/* === abeillenoireouessant.fr — couche de design 2026-10 (s'ajoute à style.css) === */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/fraunces-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/sourcesans3-normal.woff2) format('woff2'); }

:root {
    --ink: #1f1a14;
    --paper: #fbf7ee;
    --sea: #1d4e63;
    --heather: #8e5a8a;
    --gorse: #e7b416;
    --line: rgba(31,26,20,.1);
    --ui: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --display: 'Fraunces', Georgia, serif;
}
body { font-family: Georgia, 'Times New Roman', serif; color: #2b2620; background: var(--white); font-size: 1.04rem; }
h1, h2, h3, .section-title, .logo-name { font-family: var(--display); letter-spacing: -.01em; }
.section-title { font-weight: 650; }
.btn, .nav-link, .badge, .stat-label, .form-group label, .faq-question, .footer, .timeline-date span { font-family: var(--ui); }
a { color: var(--sea); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gorse); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--gorse); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-family: var(--ui); font-weight: 700; }
.skip-link:focus { left: 12px; }

/* --- Barre de lecture --- */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gorse), var(--heather)); z-index: 1100; transition: width .1s linear; }

/* --- En-tête : logo abeille + sous-menu --- */
.logo-icon { width: 38px; height: 38px; display: inline-flex; }
.logo-icon svg { width: 100%; height: 100%; }
.nav-drop { position: relative; }
.nav-drop > button { background: none; border: 0; cursor: pointer; font: inherit; }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: var(--dark); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px; display: none; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.nav-drop.open .nav-drop-menu { display: block; }
@media (hover: hover) and (min-width: 769px) { .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; } }
.nav-drop-menu a { display: block; color: rgba(255,255,255,.85); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-family: var(--ui); font-size: .92rem; }
.nav-drop-menu a:hover { background: rgba(245,197,24,.12); color: var(--honey); }
.nav-link[aria-current="page"] { color: var(--honey); }
@media (max-width: 1100px) and (min-width: 769px) { .nav-link { padding: 8px 9px; font-size: .82rem; } .logo-tagline { display: none; } }
@media (max-width: 768px) {
    .nav { max-height: calc(100vh - 70px); overflow-y: auto; }
    .nav-drop-menu { position: static; display: block; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 12px; }
    .nav-drop > button { display: none; }
}

/* --- Bandeaux avec photo --- */
.hero.hero--photo { position: relative; background-color: var(--dark); background-image: linear-gradient(180deg, rgba(20,22,30,.55) 0%, rgba(20,22,30,.35) 45%, rgba(20,22,30,.78) 100%), var(--hero-img); background-size: cover; background-position: var(--hero-pos, center); isolation: isolate; }
.hero.hero--photo h1, .hero.hero--photo .hero-subtitle { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero h1 { font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hero-credit { position: absolute; right: 12px; bottom: 10px; font: 12px/1.3 var(--ui); color: rgba(255,255,255,.7); max-width: 70%; text-align: right; }
.hero-credit a { color: inherit; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: -10px 0 22px; font: 600 .9rem var(--ui); color: rgba(255,255,255,.85); }
.hero-scroll { display: inline-block; margin-top: 28px; color: rgba(255,255,255,.8); font: 600 .85rem var(--ui); text-decoration: none; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* --- Figures (remplacent les grands émojis) --- */
.abeille-visual.has-photo { padding: 0; overflow: hidden; text-align: left; background: var(--dark); }
.abeille-visual.has-photo .av-body { padding: 26px 30px 30px; }
.abeille-visual.has-photo h3 { margin-top: 0; }
.photo { margin: 0; position: relative; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font: .82rem/1.45 var(--ui); color: #6b6359; padding: 8px 2px 0; }
.abeille-visual .photo figcaption { color: rgba(255,255,255,.62); padding: 8px 30px 0; }
.photo figcaption a { color: inherit; }

/* --- Sommaire --- */
.toc-wrap { background: var(--paper); border-bottom: 1px solid var(--line); }
.toc { max-width: 900px; margin: 0 auto; padding: 22px 20px; font-family: var(--ui); }
.toc summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; font-size: 1.4rem; color: var(--primary-dark); }
.toc[open] summary::after { content: '–'; }
.toc ol { margin: 14px 0 0; padding-left: 22px; columns: 2; column-gap: 40px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--sea); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
h2[id], h3[id], section[id] { scroll-margin-top: 90px; }

/* --- Apparition au défilement --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-scroll { animation: none; } html { scroll-behavior: auto; } }

/* --- Carte interactive --- */
.carte-section { background: linear-gradient(180deg, #eef4f2, var(--white)); }
.carte-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: stretch; }
.carte { height: 520px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: #cfe0e6; position: relative; z-index: 0; }
.carte-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 1rem var(--ui); color: var(--sea); }
.carte-panel { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; font-family: var(--ui); max-height: 520px; }
.carte-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--ui); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.carte-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.carte-liste li button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; cursor: pointer; font: inherit; display: flex; gap: 10px; align-items: flex-start; }
.carte-liste li button:hover { background: var(--paper); }
.carte-liste .ico { flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.carte-liste strong { display: block; color: var(--ink); font-size: .95rem; }
.carte-liste span.d { color: #6b6359; font-size: .82rem; }
.carte-note { font-size: .78rem; color: #6b6359; margin: 0; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); border: 2px solid #fff; }
.pin span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.leaflet-popup-content { font-family: var(--ui); font-size: .92rem; margin: 12px 14px; }
.leaflet-popup-content h4 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 4px; color: var(--ink); }
.leaflet-popup-content img { border-radius: 8px; margin-bottom: 8px; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.leaflet-popup-content p { margin: 0; color: #4a443c; }
@media (max-width: 900px) { .carte-layout { grid-template-columns: 1fr; } .carte { height: 420px; } .carte-panel { max-height: 300px; } }

/* --- Galerie + visionneuse --- */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.galerie a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #ddd; }
.galerie a.big { grid-column: span 2; grid-row: span 2; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galerie a:hover img { transform: scale(1.05); }
.galerie a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font: 600 .85rem var(--ui); opacity: 0; transition: opacity .3s; }
.galerie a:hover span, .galerie a:focus span { opacity: 1; }
@media (max-width: 800px) { .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .galerie a span { opacity: 1; } }
.lb { position: fixed; inset: 0; background: rgba(10,10,14,.92); z-index: 3000; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lb.open { display: flex; }
.lb img { max-width: min(1400px, 94vw); max-height: 78vh; border-radius: 8px; }
.lb p { color: #eee; font: .95rem/1.4 var(--ui); margin-top: 12px; text-align: center; max-width: 800px; }
.lb p small { color: #aaa; display: block; margin-top: 4px; }
.lb p small a { color: #ccc; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; }
.lb .lb-next { right: 16px; top: 50%; }

/* --- Le saviez-vous --- */
.saviez { background: var(--ink); color: var(--white); }
.saviez .container { display: flex; align-items: center; gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.saviez-label { flex: 0 0 auto; background: var(--gorse); color: var(--ink); font: 700 .78rem var(--ui); text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }
.saviez-texte { flex: 1; font: italic 1.05rem/1.5 var(--display); min-height: 3em; display: flex; align-items: center; transition: opacity .4s; }
.saviez button { flex: 0 0 auto; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 .85rem var(--ui); cursor: pointer; }
@media (max-width: 640px) { .saviez .container { flex-wrap: wrap; } }

/* --- Calendrier de la colonie --- */
.calendrier { max-width: 980px; margin: 0 auto; }
.mois { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-bottom: 22px; }
.mois button { border: 0; background: var(--paper); border-radius: 10px; padding: 12px 0 10px; font: 700 .85rem var(--ui); color: var(--ink); cursor: pointer; position: relative; }
.mois button i { display: block; height: 6px; margin: 8px 10px 0; border-radius: 3px; background: var(--gorse); opacity: var(--act, .3); }
.mois button[aria-selected="true"] { background: var(--ink); color: #fff; }
.mois-detail { display: grid; grid-template-columns: 260px 1fr; gap: 26px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mois-detail img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.mois-detail .md-body { padding: 24px 26px 24px 0; }
.mois-detail h3 { margin: 0 0 6px; color: var(--dark-green); font-size: 1.4rem; }
.mois-detail .flore { font: 600 .9rem var(--ui); color: var(--heather); margin-bottom: 10px; }
.mois-detail .jauge { font: 600 .85rem var(--ui); color: #6b6359; margin-top: 12px; }
@media (max-width: 760px) { .mois { grid-template-columns: repeat(6, 1fr); } .mois-detail { grid-template-columns: 1fr; } .mois-detail .md-body { padding: 0 20px 22px; } .mois-detail img { max-height: 200px; } }

/* --- Quiz --- */
.quiz { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 30px; font-family: var(--ui); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #6b6359; font-weight: 600; font-size: .9rem; }
.quiz-bar { height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; margin-bottom: 22px; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--gorse); transition: width .4s; }
.quiz h3 { font-family: var(--display); font-size: 1.35rem; color: var(--ink); margin: 0 0 16px; }
.quiz-rep { display: grid; gap: 10px; }
.quiz-rep button { text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 13px 16px; font: 600 1rem var(--ui); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.quiz-rep button:hover:not(:disabled) { border-color: var(--gorse); }
.quiz-rep button.ok { border-color: #3c8d40; background: #eaf6ea; }
.quiz-rep button.ko { border-color: #c0392b; background: #fbecea; }
.quiz-expl { margin: 16px 0 0; padding: 14px 16px; background: var(--paper); border-radius: 12px; color: #4a443c; display: none; }
.quiz-expl.show { display: block; }
.quiz-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.quiz-score { text-align: center; }
.quiz-score .big { font: 700 3rem var(--display); color: var(--primary-dark); }

/* --- À lire ensuite / ressources --- */
.suite { background: var(--paper); }
.suite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.suite-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.suite-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.suite-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.suite-card div { padding: 16px 18px 20px; }
.suite-card small { font: 700 .75rem var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--heather); }
.suite-card h3 { font-size: 1.15rem; margin: 4px 0 6px; color: var(--ink); }
.suite-card p { font-size: .92rem; color: #5c554b; margin: 0; }
.ressources { margin-top: 34px; background: var(--white); border-radius: 16px; padding: 22px 24px; border-left: 4px solid var(--sea); font-family: var(--ui); }
.ressources h3 { font-family: var(--display); margin: 0 0 8px; font-size: 1.15rem; color: var(--ink); }
.ressources ul { margin: 0; padding-left: 18px; }
.ressources li { margin: 6px 0; color: #4a443c; }
@media (max-width: 860px) { .suite-grid { grid-template-columns: 1fr; } }

/* --- Retour en haut --- */
.to-top { position: fixed; right: 24px; bottom: 92px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 999; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.to-top.show { opacity: 1; pointer-events: auto; }
body:not(.has-fab) .to-top { bottom: 24px; }

/* --- Divers --- */
.stats-section .stat-number { font-family: var(--display); }
.credits-table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: .92rem; }
.credits-table td, .credits-table th { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; text-align: left; }
.credits-table img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }
@media (max-width: 640px) { .credits-table img { width: 72px; height: 54px; } .credits-table td:nth-child(4) { display: none; } }

/* --- Retouches après captures --- */
.hero--photo .badge { background: rgba(18,18,28,.6); border-color: rgba(245,197,24,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero--photo .hero-content > p[style] { opacity: .88 !important; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 768px) {
    .timeline-item { margin-bottom: 22px; }
    .timeline-date { flex: none; padding-top: 0; }
    .timeline-content { margin: 10px 0 0 50px; }
    .hero-credit { left: 12px; right: 12px; bottom: 8px; max-width: none; text-align: center; font-size: 11px; }
}
