/* 1. POLICES ET BASES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f0fdf4; /* Un vert très clair plus moderne que #c4f1d7 */
    overflow-x: hidden;
}

/* 2. NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    border-bottom: 2px solid #eee;
}

nav h1 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0;
}

nav .onglets a {
    text-decoration: none;
    margin: 0 10px;
    padding: 8px 20px;
    color: #333;
    border: 1px solid #333;
    border-radius: 50px; /* Plus moderne que 20% */
    transition: 0.3s;
    display: inline-block;
}

nav .onglets a:hover {
    background: #008000;
    color: white;
    border-color: #008000;
}

/* 3. SECTION CARTES (MODERNE) */
.presence-section {
    padding: 60px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
}

.underline {
    width: 60px;
    height: 4px;
    background: #008000;
    margin: 10px auto;
    border-radius: 2px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.modern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.category {
    color: #008000;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content h3 {
    margin: 10px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
}

/* 4. FORMULAIRES */
.form_presence, .form_login {
    background-color: #008000;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,128,0,0.2);
    color: white;
    max-width: 500px;
    margin: 40px auto;
}

.form_presence input {
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 5. FOOTER */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 5%;
    text-align: center;
    margin-top: 60px;
}

/* 6. RESPONSIVE */
@media screen and (max-width: 768px) {
    body { padding: 0; }
    nav { flex-direction: column; gap: 15px; }
    nav .onglets { margin-left: 0; }
    .section-header h2 { font-size: 1.8rem; }
}