: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;
    margin: 0;
    padding: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* --- HEADER UNIFIÉ --- */
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);
}

/* --- NAVIGATION --- */
nav {
    display: contents;
}

.nav {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
    transition: all 0.5s ease; /* Pour l'animation 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 (Mobile) --- */
.hamburger, .close-icon {
    display: none;
    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);
}

/* --- CONTENU DE LA FICHE --- */
main {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.H2_p {
    text-align: center;
    margin: 24px 0;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--surface) 0%, #f8f8f8 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
}

.H2_p h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.fiche {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 24px;
}

.fiche-media {
    flex: 0 0 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px var(--card-shadow);
}

.fiche-media img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.fiche-contenu {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px var(--card-shadow);
}

.fiche-contenu h3 {
    margin: 24px 0 12px 0;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.fiche-contenu p {
    margin: 12px 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

ul {
    margin: 12px 0 12px 20px;
}

/* --- ACTIONS --- */
.actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.btn {
    background: var(--text);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* --- GRILLE CARTES (SI PRÉSENTE) --- */
.Conure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.Conure > a {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--card-shadow);
}

.Conure > a:hover {
    transform: translateY(-8px);
}

.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;
}