/* ============================= */
/* RESET / BODY */
/* ============================= */
body {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

/* ============================= */
/* HEADER / NAV */
/* ============================= */
header h1 {
    text-align: center;
    color: #01448a;
    margin-bottom: 20px;
}

header h1 a {
    text-decoration: none;
    color: #01448a;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin-bottom: 40px;
}

nav a {
    text-decoration: none;
    color: #01448a;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* ============================= */
/* MAIN / SECTIONS */
/* ============================= */
main {
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #01448a;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ============================= */
/* COMPTEUR */
/* ============================= */
#counter {
    font-weight: bold;
    color: #000;
    font-size: 20px;
    margin-top: 10px;
}

/* ============================= */
/* CARDS PROJETS */
/* ============================= */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h2 {
    margin-top: 0;
    font-size: 20px;
    color: #01448a;
}

.card-content p {
    flex: 1;
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.5;
}

.tech {
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    background-color: #01448a;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 12px;
}

/* BOUTONS CARDS */
.card-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.card-links a {
    text-decoration: none;
    color: white;
    background-color: #01448a;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.card-links a:hover {
    background-color: #007BFF;
}

/* ============================= */
/* CONTACT */
/* ============================= */
.contact-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-left: 4px solid #01448a;
    padding-left: 16px;
}

.contact-item strong {
    color: #01448a;
}

.contact-item a {
    color: #01448a;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.closing {
    margin-top: 30px;
    font-style: italic;
    color: #555555;
}
