:root {
    --bg: #f4f5f6;
    --surface: #ffffff;
    --text: #111111;
    --muted: #6b6b6b;
    --header: #0f0f0f;
    --border: #d6d6d6;
    --shadow: rgba(0,0,0,0.06);
    --card-shadow: rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background: var(--bg);
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
}

/* --- HEADER & NAVIGATION --- */

header, .haut {
    display: flex;
    background-color: var(--header);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    gap: 20px;
    height: 80px;
}

header h1, .haut h1 {
    color: #ffffff;
    margin: 0;
    flex: 1;
    font-size: 1.5rem;
    font-weight: 600;
}

header .logo, .haut .logo {
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

header .logo:hover, .haut .logo:hover {
    transform: scale(1.1);
}

nav {
    display: contents;
}

.nav {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
    transition: all 0.5s ease; /* Transition pour l'effet de glissement mobile */
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav li {
    transition: transform 0.3s ease;
}

.nav li:hover {
    transform: scale(1.1);
}

.nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* --- BOUTONS MENU (Cachés sur Desktop) --- */

.hamburger, .close-icon {
    display: none; /* Activés via le fichier responsive.css sous 900px */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
}

.hamburger img, .close-icon img {
    display: block;
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1); /* Rend les icônes blanches */
}

/* --- CONTENU PRINCIPAL --- */

main {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.Presentation, .Info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px var(--card-shadow);
}

.Presentation { text-align: center; }

.Presentation h2, .Info h2 {
    font-size: 1.8rem;
    margin: 0 0 16px 0;
    color: var(--text);
}

.Presentation p, .Info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
}

.Info img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 16px;
    display: block;
}   

.H2_p {
    text-align: center;
    margin-bottom: 24px;
    margin-top: 48px;
    display: block;
    font-size: 1.6rem;
    color: var(--text);
    width: 100%;
    flex-basis: 100%;
}   

.Conure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;   
    padding-top: 75px;
    padding-bottom: 75px;
}

/* Sélection de toutes les cartes */
.Conure > a {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--card-shadow);
    width: 100%;
    max-width: 300px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.Conure > a:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.Conure h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    text-align: center;
}

.Conure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}

.Conure p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 4px 0;
}

.Conure .voir-plus {
    margin-top: 16px;
    text-align: center;
    color: var(--text);
    font-weight: 600;
}

/* --- FOOTER --- */

footer {
    background-color: var(--header);
    color: #ffffff;
    text-align: center;
    padding: 32px;
    margin-top: 48px;
}

/* --- UTILITAIRE --- */

html {
    scroll-behavior: smooth;
}

/* Bloquer le scroll lors de l'ouverture du menu mobile */
.no-scroll {
    overflow: hidden;
}

/* --- STYLES QUIZ --- */  
.Quiz {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 32px;   
    box-shadow: 0 4px 12px var(--card-shadow);
}

.Quiz a {
    text-decoration: none;
    color: var(--text);
    border: 4px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: block;
    margin-top: 24px;
    transition: all 0.3s ease;
    text-align: center;
}