/* ========================================
   CONFÉRENCES EAU ADOUR-GARONNE
   Design épuré · Eau · Nature
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    font-family: 'Inter', sans-serif;
    color: #1a2332;
    line-height: 1.7;
    background: #f7f9fc;
    overflow-x: hidden;
}

a { color: #0369a1; text-decoration: none; transition: color 0.3s; }
a:hover { color: #0284c7; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

:root {
    --bleu: #0369a1;
    --bleu-light: #0ea5e9;
    --bleu-dark: #0c4a6e;
    --bleu-pale: #e0f2fe;
    --vert: #059669;
    --vert-pale: #d1fae5;
    --blanc: #ffffff;
    --gris: #f7f9fc;
    --border: #e2e8f0;
    --text: #1a2332;
    --text-light: #64748b;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- DISCLAIMER --- */
.disclaimer-banner {
    background: #fef9c3;
    border-bottom: 1px solid #fde047;
    padding: 8px 20px;
    text-align: center;
    font-size: 0.78rem;
    color: #854d0e;
}

/* --- HEADER --- */
header {
    background: var(--blanc);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bleu-dark);
    font-weight: 700;
    font-size: 1.05rem;
}
.logo:hover { text-decoration: none; color: var(--bleu-dark); }
.logo-wave { font-size: 1.4rem; }
.logo span { color: var(--bleu); font-weight: 800; }

nav ul { display: flex; gap: 4px; }
nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
nav a:hover { background: var(--bleu-pale); color: var(--bleu); text-decoration: none; }

/* --- HERO --- */
.hero {
    background: linear-gradient(170deg, #0c4a6e 0%, #0369a1 40%, #0ea5e9 100%);
    color: #fff;
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--gris);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.04) 0%, transparent 30%);
}

.hero .container { position: relative; z-index: 1; }

.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.6rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 620px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- SECTIONS --- */
section { padding: 60px 0; }
section:nth-child(even) { background: var(--blanc); }

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem;
    color: var(--bleu-dark);
    margin-bottom: 8px;
    text-align: center;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--bleu-light);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* --- CARDS --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-emoji { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.card p { color: var(--text-light); font-size: 0.9rem; }

/* --- QUIZ --- */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-lg);
}

.quiz-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.quiz-dot {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    transition: background 0.3s;
}

.quiz-dot.active { background: var(--bleu); }
.quiz-dot.done { background: var(--vert); }

.quiz-question {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--bleu-dark);
}

.quiz-answers { display: flex; flex-direction: column; gap: 10px; }

.quiz-answer {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: var(--gris);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.93rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quiz-answer:hover {
    border-color: var(--bleu);
    background: var(--bleu-pale);
}

.quiz-answer.correct {
    border-color: var(--vert);
    background: var(--vert-pale);
    color: #065f46;
}

.quiz-answer.wrong {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.quiz-answer:disabled { cursor: default; opacity: 0.7; }
.quiz-answer.correct:disabled, .quiz-answer.wrong:disabled { opacity: 1; }

.quiz-feedback {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.quiz-feedback.show { display: block; }
.quiz-feedback.success { background: var(--vert-pale); color: #065f46; }
.quiz-feedback.error { background: #fef2f2; color: #991b1b; }

.quiz-next {
    display: none;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--bleu);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.quiz-next:hover { background: var(--bleu-light); }
.quiz-next.show { display: inline-block; }

.quiz-score {
    text-align: center;
    padding: 30px;
    display: none;
}

.quiz-score.show { display: block; }

.quiz-score .big {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: var(--bleu);
}

/* --- VIDEO EMBED --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.video-card:hover { box-shadow: var(--shadow-lg); }

.video-card .video-wrap {
    position: relative;
    padding-top: 56.25%;
    background: #0c4a6e;
}

.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card .video-info {
    padding: 16px;
}

.video-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.video-card p { font-size: 0.82rem; color: var(--text-light); }

/* --- TIMELINE --- */
.timeline {
    max-width: 700px;
    margin: 30px auto 0;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bleu-pale);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bleu);
    border: 3px solid var(--bleu-pale);
}

.timeline-item .year {
    font-weight: 800;
    color: var(--bleu);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item h3 { font-size: 1rem; margin: 4px 0; }
.timeline-item p { font-size: 0.88rem; color: var(--text-light); }

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bleu-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.3s;
}

.gallery-item:hover { transform: scale(1.03); }

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-item:hover .overlay { opacity: 1; }

/* --- ACCORDION FAQ --- */
.accordion {
    max-width: 700px;
    margin: 20px auto 0;
}

.accordion-item {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover { background: var(--gris); }

.accordion-header .icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--bleu);
}

.accordion-item.open .accordion-header .icon { transform: rotate(45deg); }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-body-inner {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.accordion-body-inner a { font-weight: 600; }

/* --- CTA --- */
.cta-section {
    background: linear-gradient(135deg, var(--vert) 0%, #047857 100%);
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

.cta-section h2 { color: #fff; }
.cta-section h2::after { background: rgba(255,255,255,0.4); }
.cta-section p { max-width: 580px; margin: 12px auto 24px; opacity: 0.92; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-white { background: #fff; color: var(--vert); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; text-decoration: none; }

.btn-primary { background: var(--bleu); color: #fff; }
.btn-primary:hover { background: var(--bleu-light); color: #fff; text-decoration: none; }

/* --- CONTENT PAGE --- */
.breadcrumb { padding: 14px 0; font-size: 0.82rem; color: var(--text-light); }
.breadcrumb a { color: var(--bleu); }

.content-page {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 45px;
    margin: 25px auto;
    max-width: 850px;
    box-shadow: var(--shadow);
}

.content-page h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--bleu-dark);
    margin-bottom: 18px;
}

.content-page h2 { font-size: 1.3rem; text-align: left; margin-top: 30px; color: var(--bleu); }
.content-page h2::after { display: none; }
.content-page p { margin-bottom: 14px; }
.content-page ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.content-page ul li { margin-bottom: 6px; }

.content-page .highlight-box {
    background: var(--bleu-pale);
    border-left: 4px solid var(--bleu);
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 25px 0;
}

.content-page .highlight-box.green {
    background: var(--vert-pale);
    border-left-color: var(--vert);
}

/* --- FOOTER --- */
footer {
    background: #0f172a;
    color: rgba(255,255,255,0.65);
    padding: 45px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.footer-col h4 { color: var(--bleu-light); margin-bottom: 14px; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 0.75rem;
}

.footer-disclaimer {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 18px;
    margin-top: 14px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.35);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    header .container { flex-direction: column; gap: 8px; height: auto; padding: 10px 22px; }
    nav ul { gap: 3px; flex-wrap: wrap; justify-content: center; }
    .content-page { padding: 24px 16px; margin: 12px; }
    .cards-grid, .video-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .quiz-container { padding: 20px; }
}

.menu-toggle { display: none; background: var(--bleu); border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 6px 14px; border-radius: 6px; }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { display: none; width: 100%; }
    nav.active { display: block; }
    nav ul { flex-direction: column; text-align: center; padding: 8px 0; }
}
