/* ==========================================================================
   Gouvernorat de la Région de Maradi — République du Niger
   Charte reprise des armoiries de la République : vert de l'écu, orange du drapeau,
   or du soleil et du zébu. Titres : Fraunces ; texte : Source Sans 3.
   ========================================================================== */

:root {
    --banco: #0B7A35;          /* vert de l'écu : couleur principale (boutons, liens) */
    --banco-fonce: #075224;
    --orange: #E8650A;         /* orange du drapeau */
    --orange-texte: #B9500C;
    --ocre: #F28C1E;
    --ocre-fonce: #A2561C;
    --sable: #F5C400;          /* or du soleil et du zébu */
    --sable-clair: #FFF8E6;
    --dune: #F28C1E;
    --indigo: #2A2E33;         /* fonds sombres neutres : le vert reste réservé aux accents */
    --indigo-2: #1E2125;
    --nuit: #16181B;
    --vert: #0DB02B;
    --or: #F5C400;
    --encre: #14231A;
    --texte: #33402F;
    --doux: #637060;
    --trait: #E5E0CF;
    --fond: #FFFDF6;
    --r: 14px;
    --wrap: 1200px;
    --titre: 'Fraunces', Georgia, serif;
    --corps: 'Source Sans 3', system-ui, sans-serif;
    --ombre: 0 24px 50px -30px rgba(30, 33, 37, .55);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--fond); color: var(--texte); font: 400 1.075rem/1.7 var(--corps); }
img, svg { display: block; max-width: 100%; }
a { color: var(--banco); text-underline-offset: .18em; }
a:hover { color: var(--banco-fonce); }
h1, h2, h3, h4 { font-family: var(--titre); color: var(--encre); line-height: 1.14; margin: 0 0 .6rem; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
svg.icon, .icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }
/* icônes en ligne (composant x-icon) : taille du texte par défaut */
.topbar-info svg, .pied-contact svg, .fil svg { width: 1em; height: 1em; flex-shrink: 0; }
.pied-contact svg { width: 18px; height: 18px; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--or); color: var(--encre); padding: .6rem 1rem; border-radius: 6px; font-weight: 700; }
.skip:focus { left: .5rem; }
.bandeau-test { background: #FFF1C9; color: #6B4A06; text-align: center; font-size: .88rem; font-weight: 600; padding: .45rem 1rem; border-bottom: 1px solid #EBD6A0; }

.surtitre { display: inline-flex; align-items: center; gap: .6rem; font: 700 .8rem/1 var(--corps); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-texte); margin-bottom: .9rem; }
.surtitre::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .82rem 1.3rem; border-radius: 999px; font: 700 .98rem/1 var(--corps); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-banco { background: var(--banco); color: #fff; }
.btn-banco:hover { background: var(--banco-fonce); color: #fff; box-shadow: 0 12px 24px -14px rgba(7, 82, 36, .8); }
.btn-clair { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-clair:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-ligne { border-color: var(--banco); color: var(--banco); background: transparent; }
.btn-ligne:hover { background: var(--banco); color: #fff; }
.btn-petit { padding: .6rem 1.05rem; font-size: .9rem; }
.lien-fleche { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.lien-fleche svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lien-fleche:hover svg { transform: translateX(4px); }

/* ---------- Bandeau national et en-tête ---------- */
.drapeau { display: grid; grid-template-columns: repeat(3, 1fr); height: 5px; }
.drapeau i:nth-child(1) { background: var(--orange); }
.drapeau i:nth-child(2) { background: #fff; }
.drapeau i:nth-child(3) { background: var(--vert); }
.topbar { background: var(--nuit); color: rgba(255, 255, 255, .75); font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar p { margin: 0; }
.topbar strong { color: #fff; letter-spacing: .04em; }
.topbar em { font-style: italic; opacity: .8; margin-left: .7rem; }
.topbar-info { display: flex; align-items: center; gap: 1.2rem; }
.topbar-info a { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .8); text-decoration: none; }
.topbar-info a:hover { color: #fff; }

.entete { background: #fff; border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; }
.marque { display: flex; align-items: center; gap: .9rem; text-decoration: none; flex-shrink: 0; }
.marque img { width: 76px; height: 50px; object-fit: contain; }
.marque b { display: block; font: 800 1.12rem/1.15 var(--titre); color: var(--encre); max-width: 15rem; }
.marque small { display: block; color: var(--doux); font-size: .84rem; letter-spacing: .02em; }
.marque-clair b { color: #fff; }
.marque-clair small { color: rgba(255, 255, 255, .6); }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a, .sous-bouton { display: flex; align-items: center; gap: .35rem; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: var(--texte); font: 600 .98rem/1.2 var(--corps); white-space: nowrap; background: none; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.nav a:hover, .sous-bouton:hover { background: var(--sable-clair); color: var(--banco); }
.nav a[aria-current="page"], .sous-bouton.actif { color: var(--banco); }
.nav > ul > li > a[aria-current="page"]::after, .sous-bouton.actif::after { content: ""; position: absolute; }
.sous-bouton svg { width: 14px; height: 14px; transition: transform .25s; }
.a-sous { position: relative; }
.a-sous.ouvert .sous-bouton svg { transform: rotate(180deg); }
.sous { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + .4rem); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--trait); border-radius: 14px; box-shadow: var(--ombre); display: none; z-index: 10; }
.a-sous.ouvert .sous { display: block; animation: apparition .25s var(--ease); }
.sous a { padding: .65rem .8rem; }
.sous a svg { width: 18px; height: 18px; color: var(--banco); }
.nav-contact { margin-left: .5rem; }
.nav .nav-contact .btn { color: #fff; background: var(--banco); padding: .7rem 1.2rem; }
.nav .nav-contact .btn:hover, .nav .nav-contact .btn[aria-current] { color: #fff; background: var(--banco-fonce); }
.nav-bouton { display: none; background: none; border: 1px solid var(--trait); border-radius: 10px; padding: .55rem .65rem; cursor: pointer; color: var(--encre); }
.nav-bouton svg { width: 24px; height: 24px; }
.nav-voile { display: none; }
@keyframes apparition { from { opacity: 0; transform: translateY(-6px); } }

/* Bandeau « En ce moment » */
.flash { background: var(--sable-clair); border-bottom: 1px solid var(--trait); font-size: .92rem; }
.flash .wrap { display: flex; align-items: center; gap: 1rem; min-height: 42px; overflow: hidden; }
.flash-label { flex-shrink: 0; font-weight: 700; color: var(--banco); padding-right: 1rem; border-right: 2px solid var(--orange); }
.flash-piste { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.flash-defile { display: flex; gap: 2.5rem; width: max-content; animation: defile 45s linear infinite; }
.flash-piste:hover .flash-defile { animation-play-state: paused; }
.flash a { color: var(--texte); text-decoration: none; white-space: nowrap; }
.flash a:hover { color: var(--banco); }
.flash em { font-style: normal; font-weight: 700; color: var(--orange-texte); margin-right: .5rem; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-sable { background: var(--sable-clair); }
.section-nuit { background: var(--indigo-2); color: rgba(255, 255, 255, .85); }
.section-nuit h2, .section-nuit h3 { color: #fff; }
.section-nuit .surtitre { color: var(--sable); }
.tete { max-width: 46rem; margin-bottom: 2.8rem; }
.tete p { color: var(--doux); font-size: 1.12rem; }
.section-nuit .tete p { color: rgba(255, 255, 255, .7); }
.tete-ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
.tete-ligne > div { max-width: 46rem; }
.vide { padding: 2rem; border: 1px dashed var(--trait); border-radius: var(--r); color: var(--doux); text-align: center; background: #fff; }
.justifie, .prose p, .prose li { text-align: justify; hyphens: auto; }

/* ---------- Héros (accueil) ---------- */
.heros { position: relative; overflow: hidden; color: #fff; background: var(--nuit); isolation: isolate; }
.heros-fond { position: absolute; inset: -4% 0 0; z-index: -2; background: url('../img/maradi-scene.svg') 0% 100% / cover no-repeat; transform-origin: 25% 80%; animation: zoom-lent 28s ease-in-out infinite alternate; will-change: transform; }
.heros-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(18, 20, 23, .94) 0%, rgba(30, 33, 37, .82) 38%, rgba(30, 33, 37, .2) 64%, rgba(30, 33, 37, 0) 100%); }
.heros .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; padding: 2.5rem 0 9.5rem; min-height: 0; }
.heros-texte { grid-column: 2; }
.heros h1 { color: #fff; font-size: clamp(1.7rem, 2.9vw, 2.45rem); letter-spacing: -.01em; line-height: 1.18; }
.heros h1 span { color: var(--sable); }
.heros-lead { font-size: 1.08rem; max-width: 36rem; color: rgba(255, 255, 255, .88); }
.heros .surtitre { color: var(--sable); }
.heros-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.heros-embleme { justify-self: center; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 0 0 30px rgba(255, 255, 255, .05); animation: respire 6s ease-in-out infinite; }
.heros-embleme img { width: 86%; }
.heros .paysage { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 260px; }
@keyframes respire { 50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, .1), 0 0 0 42px rgba(255, 255, 255, .04); } }

/* Chiffres clés */
.chiffres { position: relative; z-index: 2; margin-top: -5.5rem; }
.chiffres ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--ombre); overflow: hidden; }
.chiffres li { padding: 1.8rem 1.6rem; border-right: 1px solid var(--trait); }
.chiffres li:last-child { border-right: 0; }
.chiffres b { display: block; font: 800 2.15rem/1 var(--titre); color: var(--indigo); margin-bottom: .45rem; }
.chiffres span { color: var(--doux); font-size: .95rem; line-height: 1.4; display: block; }

/* ---------- En-tête des pages intérieures ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: url('../img/motif-haoussa.svg') 0 0 / 120px 120px, linear-gradient(100deg, rgba(18, 20, 23, .97) 0%, rgba(42, 46, 51, .92) 55%, rgba(232, 101, 10, .85) 100%), url('../img/maradi-scene.svg') center 80% / cover no-repeat; padding: 3.6rem 0 7.5rem; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 52rem; }
.page-head p { max-width: 46rem; font-size: 1.15rem; color: rgba(255, 255, 255, .85); margin: 0; }
.page-head .surtitre { color: var(--sable); }
.page-head-paysage { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 150px; }
.fil { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; margin-bottom: 1.4rem; color: rgba(255, 255, 255, .65); }
.fil a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.fil a:hover { color: #fff; text-decoration: underline; }

/* ---------- Mot du Gouverneur ---------- */
.mot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.mot-page { align-items: start; }
.portrait { position: relative; max-width: 420px; width: 100%; justify-self: center; margin: 0 1.6rem 1.6rem 0; }
.portrait::before { content: ""; position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem; border: 3px solid var(--orange); border-radius: 18px; transition: inset .5s var(--ease); }
.portrait img, .portrait .visuel { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 18px; box-shadow: var(--ombre); }
.portrait-legende { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 1rem; text-align: center; color: rgba(255, 255, 255, .75); font-size: .85rem; }
.section-nuit .portrait::before { border-color: var(--sable); }
.guillemet { display: block; font: 800 5rem/1 Georgia, serif; color: var(--orange); height: 2.8rem; }
.mot blockquote { margin: 0 0 1.6rem; font-size: 1.13rem; line-height: 1.85; }
.mot blockquote p { text-align: justify; hyphens: auto; }
.signature { display: block; font-style: normal; color: var(--doux); margin-bottom: 1.6rem; }
.signature strong { display: block; font: 800 1.35rem/1.2 var(--titre); color: var(--banco); }
.section-nuit .signature { color: rgba(255, 255, 255, .65); }
.section-nuit .signature strong { color: #fff; }

/* ---------- Sultanat ---------- */
.sultanat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.sultanat .prose p { color: rgba(255, 255, 255, .82); }
.carte-sultan { background: linear-gradient(170deg, #34383E, #16181B); border-radius: 22px; padding: 2.2rem; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.carte-gobir { background: linear-gradient(170deg, #D2600E, #6E2A06); }
.carte-sultan-initiales { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--sable); }
.carte-sultan-initiales svg { width: 54px; height: 54px; }
.sultanats-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.section-motif { background-image: url('../img/motif-haoussa.svg'); background-size: 120px 120px; }
.onglets-sultanats { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: -1.8rem; position: relative; z-index: 3; }
.onglets-sultanats a { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; background: #fff; border-radius: 999px; box-shadow: var(--ombre); font-weight: 700; text-decoration: none; color: var(--banco); transition: transform .3s var(--ease), background .3s, color .3s; }
.onglets-sultanats a:hover { background: var(--banco); color: #fff; transform: translateY(-3px); }
.onglets-sultanats svg { width: 18px; height: 18px; }
.citation-sultan { margin: 0 0 2rem; padding: 1.2rem 1.4rem; border-left: 4px solid var(--orange); background: var(--sable-clair); border-radius: 0 12px 12px 0; font-style: italic; }
.btn-or { background: var(--sable); color: var(--encre); }
.btn-or:hover { background: #fff; color: var(--encre); }
.carte-sultan-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--sable); margin-bottom: 1.2rem; }
.carte-sultan .filigrane { position: absolute; right: -40px; top: -30px; width: 210px; height: 210px; color: #fff; opacity: .07; }
.carte-sultan h3 { font-size: 1.6rem; color: #fff; margin-bottom: .2rem; }
.carte-sultan dl { margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.carte-sultan dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sable); }
.carte-sultan dd { margin: .15rem 0 0; color: #fff; font-weight: 600; }
.pastilles { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.pastilles span { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; color: rgba(255, 255, 255, .8); }

/* ---------- Frise historique ---------- */
.frise { position: relative; list-style: none; margin: 0; padding: 0; }
.frise::before { content: ""; position: absolute; left: 128px; top: .4rem; bottom: .4rem; width: 3px; background: linear-gradient(var(--orange), var(--ocre) 50%, var(--banco)); transform-origin: top; }
.frise > li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 3rem; padding: 0 0 2.4rem; position: relative; }
.frise > li::after { content: ""; position: absolute; left: 121px; top: .45rem; width: 17px; height: 17px; border-radius: 50%; background: var(--fond); border: 4px solid var(--banco); }
.frise time { font: 800 1.35rem/1.2 var(--titre); color: var(--orange); text-align: right; }
.frise h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.frise .prose p { margin-bottom: .6rem; }
.frise img { margin-top: .8rem; border-radius: 12px; max-height: 280px; object-fit: cover; }
.frise-courte > li:nth-child(n+6) { display: none; }

/* ---------- Départements et communes ---------- */
.depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.dept { background: #fff; border: 1px solid var(--trait); border-radius: var(--r); padding: 1.7rem; display: flex; flex-direction: column; color: var(--texte); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.dept:hover { transform: translateY(-6px); box-shadow: var(--ombre); border-color: transparent; color: var(--texte); }
.dept-tete { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .8rem; }
.dept-tete h3 { margin: 0; }
.dept-tete small { display: block; color: var(--doux); font-size: .88rem; }
.dept-pop { font: 800 1.1rem/1 var(--titre); color: var(--orange-texte); white-space: nowrap; text-align: right; }
.dept-pop span { display: block; font: 600 .72rem/1.3 var(--corps); color: var(--doux); letter-spacing: .04em; }
.dept p { color: var(--doux); font-size: .97rem; text-align: justify; hyphens: auto; }
.communes { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--trait); }
.communes b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre); margin-bottom: .5rem; }
.communes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.communes li, .puce { background: var(--sable-clair); color: var(--ocre-fonce); border-radius: 999px; padding: .28rem .75rem; font-size: .88rem; font-weight: 600; }
.liste-communes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.commune-carte { display: block; height: 100%; background: #fff; border: 1px solid var(--trait); border-left: 4px solid var(--ocre); border-radius: 12px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--texte); transition: box-shadow .3s, transform .3s var(--ease); }
.commune-carte:hover { box-shadow: var(--ombre); transform: translateY(-3px); color: var(--texte); }
.commune-carte h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.commune-carte small { color: var(--doux); }
.commune-carte p { margin: .5rem 0 0; font-size: .93rem; color: var(--doux); }
.commune-carte.urbaine { border-left-color: var(--banco); }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.atout { position: relative; border-radius: 18px; padding: 2rem 1.8rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; transition: background .35s, transform .35s var(--ease); }
.atout:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.atout-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(233, 200, 147, .14); color: var(--sable); margin-bottom: 1.2rem; }
.atout-ico svg { width: 28px; height: 28px; }
.atout p { color: rgba(255, 255, 255, .72); font-size: .98rem; margin: 0; text-align: justify; hyphens: auto; }
.atouts-clairs .atout { background: #fff; border-color: var(--trait); }
.atouts-clairs .atout:hover { box-shadow: var(--ombre); }
.atouts-clairs .atout-ico { background: var(--sable-clair); color: var(--banco); }
.atouts-clairs .atout p { color: var(--doux); }
.atout-detail { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--trait); }
.atout-detail .atout-ico { width: 72px; height: 72px; background: var(--sable-clair); color: var(--banco); margin: 0; }

/* ---------- Sites à découvrir ---------- */
.sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; }
.sites-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-carte { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--trait); text-decoration: none; color: var(--texte); transition: transform .35s var(--ease), box-shadow .35s; }
.site-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); color: var(--texte); }
.site-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.site-img img, .site-img .visuel { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.site-carte:hover .site-img img { transform: scale(1.06); }
.badge { position: absolute; left: .8rem; top: .8rem; background: rgba(18, 20, 23, .8); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .65rem; border-radius: 999px; }
.site-corps { padding: 1.1rem 1.2rem 1.3rem; }
.site-corps small { color: var(--orange-texte); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.site-corps h3 { font-size: 1.12rem; margin: .2rem 0 .35rem; }
.site-corps p { color: var(--doux); font-size: .93rem; margin: 0; text-align: justify; hyphens: auto; }

/* Illustration de remplacement */
.visuel { position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, .45); overflow: hidden; }
.visuel > svg:last-child { position: relative; width: 28%; height: auto; max-width: 84px; aspect-ratio: 1; }
.visuel-dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; }

/* ---------- Actualités ---------- */
.actus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.actu { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--texte); transition: transform .35s var(--ease), box-shadow .35s; }
.actu:hover { transform: translateY(-6px); box-shadow: var(--ombre); color: var(--texte); }
.actu-img { aspect-ratio: 16 / 10; overflow: hidden; }
.actu-img img, .actu-img .visuel { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.actu:hover .actu-img img { transform: scale(1.06); }
.actu-corps { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.actu-meta { font-size: .86rem; color: var(--doux); margin-bottom: .4rem; display: flex; gap: .7rem; }
.actu-meta b { color: var(--orange-texte); }
.actu h3 { font-size: 1.16rem; transition: color .2s; }
.actu:hover h3 { color: var(--banco); }
.actu p { color: var(--doux); font-size: .95rem; text-align: justify; hyphens: auto; }
.actu .btn { align-self: flex-start; margin-top: auto; }
.actu:hover .btn { background: var(--banco); color: #fff; }
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filtres a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--trait); background: #fff; color: var(--texte); text-decoration: none; font-weight: 600; font-size: .93rem; }
.filtres a:hover { border-color: var(--banco); color: var(--banco); }
.filtres a[aria-current="true"] { background: var(--banco); border-color: var(--banco); color: #fff; }

/* ---------- Article / fiche avec colonne latérale ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
.fiche-image { width: 100%; border-radius: 18px; margin-bottom: 2rem; max-height: 520px; object-fit: cover; }
.fiche-image.visuel { aspect-ratio: 16 / 8; }
.prose { font-size: 1.1rem; line-height: 1.85; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; padding-left: .9rem; border-left: 4px solid var(--orange); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .liste-titre { font-weight: 700; color: var(--encre); margin-bottom: .4rem; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin-top: 2rem; }
.galerie a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.galerie a:hover img { transform: scale(1.06); }
.encart { background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 1.6rem; margin-bottom: 1.4rem; }
.encart h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.encart dl { margin: 0; display: grid; gap: .9rem; }
.encart dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--banco); font-weight: 700; }
.encart dd { margin: .1rem 0 0; font-weight: 600; color: var(--encre); }
.encart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.encart li a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--texte); font-weight: 600; }
.encart li:last-child a { border-bottom: 0; }
.encart li a:hover { color: var(--banco); }
.encart li a svg { width: 18px; height: 18px; color: var(--banco); }
.encart-sombre { background: var(--indigo-2); border-color: transparent; color: rgba(255, 255, 255, .8); }
.encart-sombre h2 { color: #fff; }
.colonne-fixe { position: sticky; top: 110px; }

/* ---------- Démarches ---------- */
.demarches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.demarche { display: flex; gap: 1.2rem; align-items: start; padding: 1.5rem; border-radius: 16px; background: #fff; border: 1px solid var(--trait); text-decoration: none; color: var(--texte); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.demarche:hover { border-color: var(--banco); box-shadow: var(--ombre); transform: translateY(-3px); color: var(--texte); }
.demarche-ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--sable-clair); color: var(--banco); }
.demarche-ico svg { width: 26px; height: 26px; }
.demarche h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.demarche p { margin: 0; color: var(--doux); font-size: .95rem; }
.demarches-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demarches-4 .demarche { flex-direction: column; gap: .8rem; }

/* ---------- Documents ---------- */
.recherche { display: flex; gap: .6rem; margin-bottom: 1.5rem; max-width: 560px; }
.recherche input { flex: 1; }
.doc-groupe + .doc-groupe { margin-top: 2.6rem; }
.doc-groupe h2 { font-size: 1.4rem; display: flex; align-items: baseline; gap: .6rem; }
.doc-groupe h2 small { font: 600 .9rem var(--corps); color: var(--doux); }
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.doc { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--trait); transition: background .3s; }
.doc:hover { background: linear-gradient(90deg, var(--sable-clair), transparent 70%); }
.doc-ico { width: 48px; height: 56px; border-radius: 4px; background: var(--sable-clair); color: var(--banco); display: grid; place-items: center; font: 800 .72rem var(--corps); position: relative; }
.doc-ico::after { content: ""; position: absolute; right: 0; top: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: var(--fond) var(--fond) var(--dune) var(--dune); }
.doc h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.doc p { margin: 0; color: var(--doux); font-size: .92rem; }

/* ---------- Galeries ---------- */
.galeries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.galerie-carte { text-decoration: none; color: var(--texte); }
.galerie-couv { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: .9rem; transition: box-shadow .4s var(--ease); }
.galerie-couv img, .galerie-couv .visuel { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.galerie-carte:hover .galerie-couv { box-shadow: 14px 14px 0 -2px var(--sable-clair), 14px 14px 0 0 var(--dune); }
.galerie-carte:hover img { transform: scale(1.05); }
.galerie-carte h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.galerie-carte small { color: var(--doux); }
.visionneuse { position: fixed; inset: 0; background: rgba(3, 26, 10, .94); display: none; place-items: center; z-index: 200; padding: 2rem; }
.visionneuse.ouverte { display: grid; }
.visionneuse img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.visionneuse button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; }
.visionneuse .v-fermer { top: 1rem; right: 1rem; }
.visionneuse .v-prec { left: 1rem; top: 50%; }
.visionneuse .v-suiv { right: 1rem; top: 50%; }

/* ---------- Partenaires ---------- */
.partenaires { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.partenaires li { background: #fff; border: 1px solid var(--trait); border-radius: 12px; min-height: 96px; display: grid; place-items: center; padding: 1rem; text-align: center; font-weight: 700; color: var(--indigo); transition: transform .3s var(--ease), box-shadow .3s; }
.partenaires li:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.partenaires img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partenaires li:hover img { filter: none; opacity: 1; }
.partenaires a { text-decoration: none; color: inherit; }

/* ---------- Contact et formulaires ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.coordonnees { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.coordonnees li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; align-items: start; }
.coordonnees .demarche-ico { width: 46px; height: 46px; }
.coordonnees b { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--banco); }
.coordonnees span, .coordonnees a { font-weight: 600; color: var(--encre); text-decoration: none; }
.formulaire { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--trait); border-radius: 18px; padding: 2rem; }
.formulaire label { display: grid; gap: .35rem; font-weight: 600; font-size: .93rem; color: var(--encre); }
input, select, textarea { font: inherit; width: 100%; min-width: 0; padding: .75rem .9rem; border: 1px solid #D9C8AE; border-radius: 10px; background: var(--fond); color: var(--encre); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--banco); box-shadow: 0 0 0 4px rgba(11, 122, 53, .16); }
.form-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.formulaire .btn { justify-self: start; }
.erreur { color: #9A2B1C; font-size: .86rem; font-weight: 600; margin: 0; }
.piege { position: absolute; left: -9999px; }
.avis { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; margin-bottom: 1.4rem; }
.avis-ok { background: #E8F6EA; color: #1E6B2B; }
.avis-erreur { background: #FBE9E5; color: #8A2A1A; }
.carte-lien { display: block; border-radius: 16px; overflow: hidden; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; }
.pager-item { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--trait); background: #fff; color: var(--texte); text-decoration: none; font-weight: 600; }
.pager-item:hover { border-color: var(--banco); color: var(--banco); }
.pager-item.is-off { opacity: .45; }
.pager-info { color: var(--doux); }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .7); padding: 4.5rem 0 0; font-size: .96rem; position: relative; }
.pied::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--orange) 33.3%, #fff 33.3% 66.6%, var(--vert) 66.6%); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.pied h2 { color: #fff; font: 700 1rem var(--corps); margin: 0 0 1rem; letter-spacing: .04em; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pied a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s, padding-left .25s var(--ease); }
.pied ul a:hover { color: var(--sable); padding-left: .3rem; }
.pied ul:not(.pied-contact) a { display: inline-flex; align-items: baseline; gap: .55rem; }
.pied ul:not(.pied-contact) a::before { content: "»"; color: var(--orange); font: 800 1.1rem/1 var(--titre); transition: transform .3s var(--ease), color .3s; }
.pied ul:not(.pied-contact) a:hover::before { transform: translateX(3px); color: var(--sable); }
.pied-marque p { margin-top: 1.2rem; }
.pied-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.pied-contact svg { margin-top: .3rem; color: var(--sable); }
.pied-btn { margin-top: 1.2rem; }
.pied-bas { margin-top: 3.5rem; border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; font-size: .86rem; }
.pied-bas .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pied-bas .credit { margin-left: 1.2rem; }

.haut { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 50px; height: 50px; border-radius: 50%; background: var(--banco); color: #fff; display: grid; place-items: center; box-shadow: var(--ombre); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s; z-index: 60; }
.haut.visible { opacity: 1; pointer-events: auto; }
.haut:hover { transform: translateY(-4px); color: #fff; background: var(--banco-fonce); }
.haut svg { width: 22px; height: 22px; transform: rotate(-90deg); }

/* ---------- Apparition au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .apparait.vu { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
    .nav-bouton { display: block; }
    .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: #fff; padding: 4.5rem 1.2rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); z-index: 70; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .3); }
    .nav.ouvert { transform: none; }
    .nav > ul { flex-direction: column; align-items: stretch; }
    .nav a, .sous-bouton { width: 100%; justify-content: space-between; padding: .8rem .6rem; }
    .sous { position: static; box-shadow: none; border: 0; padding: 0 0 .4rem .6rem; min-width: 0; }
    .sous a { justify-content: flex-start; }
    .nav-contact { margin: 1rem 0 0; }
    .nav-contact .btn { justify-content: center; }
    .nav-fermer { position: absolute; top: 1rem; right: 1rem; }
    .nav-voile { position: fixed; inset: 0; background: rgba(3, 26, 10, .55); z-index: 65; }
    .nav.ouvert + .nav-voile { display: block; }
    .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demarches-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .heros .wrap, .mot, .sultanat, .contact, .fiche, .sultanats-duo { grid-template-columns: 1fr; }
    .heros .wrap { padding: 4rem 0 11rem; }
    .heros-embleme { width: 220px; }
    .chiffres ul { grid-template-columns: 1fr 1fr; }
    .chiffres li:nth-child(2) { border-right: 0; }
    .chiffres li:nth-child(-n+2) { border-bottom: 1px solid var(--trait); }
    .depts, .atouts, .actus, .galeries, .sites-3 { grid-template-columns: 1fr 1fr; }
    .demarches { grid-template-columns: 1fr; }
    .portrait { max-width: 330px; margin-right: 2rem; }
    .colonne-fixe { position: static; }
    .tete-ligne { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .topbar em, .topbar-info a:not([aria-label]) { display: none; }
    .marque img { width: 52px; height: 52px; }
    .marque b { font-size: .98rem; max-width: 12rem; }
    .entete-ligne { min-height: 76px; }
    .depts, .atouts, .actus, .sites, .sites-3, .galeries, .demarches-4, .pied-grille, .form-2 { grid-template-columns: 1fr; }
    .frise::before { left: 8px; }
    .frise > li { grid-template-columns: 1fr; gap: .3rem; padding-left: 2.2rem; }
    .frise > li::after { left: 1px; }
    .frise time { text-align: left; }
    .doc { grid-template-columns: 40px minmax(0, 1fr); }
    .doc .btn { grid-column: 2; justify-self: start; }
    .page-head { padding: 2.6rem 0 6rem; }
    .flash-label { display: none; }
    .chiffres b { font-size: 1.55rem; }
    .chiffres li { padding: 1.3rem 1.1rem; }
    .heros .paysage { height: 140px; }
    .heros .wrap { padding-bottom: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .apparait { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
@media print {
    .topbar, .entete, .flash, .pied, .haut, .heros .paysage, .page-head-paysage { display: none; }
    .page-head, .heros { background: none; color: #000; }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Barre de progression de lecture aux couleurs du drapeau */
.progression { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 120; transform-origin: left; transform: scaleX(0); pointer-events: none; background: linear-gradient(90deg, var(--orange) 0 33.3%, #fff 33.3% 66.6%, var(--vert) 66.6%); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }

/* En-tête : plus compact et ombré au défilement */
.entete { transition: box-shadow .3s, background .3s; }
.entete-ligne { transition: min-height .3s var(--ease); }
.entete .marque img { transition: width .3s var(--ease), height .3s var(--ease), transform .6s var(--ease); }
.entete.reduit { box-shadow: 0 10px 30px -18px rgba(18, 20, 23, .45); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); }
.entete.reduit .entete-ligne { min-height: 70px; }
.entete.reduit .marque img { width: 52px; height: 52px; }
.marque:hover img { transform: rotate(-8deg) scale(1.05); }
.nav > ul > li > a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > ul > li > a { position: relative; }
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* Héros : entrée en cascade */
.entree { animation: monte 1s var(--ease) both; animation-delay: var(--e, 0s); }
.entree-zoom { animation: zoom-entree 1.2s var(--ease) both; animation-delay: var(--e, 0s); }
@keyframes monte { from { opacity: 0; transform: translateY(34px); } }
@keyframes zoom-entree { from { opacity: 0; transform: scale(.8) rotate(-6deg); } }
@keyframes zoom-lent { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Le mot « Agadez » : reflet doré qui passe */
.mot-dore { background: linear-gradient(100deg, var(--sable) 0%, var(--sable) 40%, #fff7e0 50%, var(--sable) 60%, var(--sable) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: reflet 5s ease-in-out infinite; }
@keyframes reflet { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: -50% 0; } }

/* Emblème : anneau tricolore qui tourne et flottement */
.heros-embleme-zone { position: relative; width: 132px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 1.4rem; }
.heros-embleme-zone .heros-embleme { width: 84%; animation: flotte 6s ease-in-out infinite; box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); }
.heros-embleme-zone .anneau::after { width: 10px; height: 10px; margin-left: -5px; }
.anneau { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--orange), var(--sable), var(--vert), var(--banco), var(--orange)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: tourne 14s linear infinite; opacity: .9; }
.anneau::after { content: ""; position: absolute; top: -2px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--sable); box-shadow: 0 0 18px 4px rgba(242, 193, 78, .8); }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes flotte { 50% { transform: translateY(-12px); } }

/* Grains de sable portés par le vent */
.heros-grains { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.heros-grains i { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: rgba(242, 193, 78, .5); filter: blur(.5px); animation: grain 14s linear infinite; }
.heros-grains i:nth-child(1) { left: 8%; animation-delay: 0s; }
.heros-grains i:nth-child(2) { left: 22%; width: 4px; height: 4px; animation-delay: 3s; animation-duration: 17s; }
.heros-grains i:nth-child(3) { left: 37%; animation-delay: 6s; }
.heros-grains i:nth-child(4) { left: 51%; width: 3px; height: 3px; animation-delay: 1.5s; animation-duration: 12s; }
.heros-grains i:nth-child(5) { left: 64%; animation-delay: 8s; animation-duration: 19s; }
.heros-grains i:nth-child(6) { left: 76%; width: 4px; height: 4px; animation-delay: 4.5s; }
.heros-grains i:nth-child(7) { left: 88%; animation-delay: 10s; animation-duration: 16s; }
.heros-grains i:nth-child(8) { left: 95%; width: 3px; height: 3px; animation-delay: 2s; }
@keyframes grain { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(-160px, -720px); opacity: 0; } }

/* Dunes qui ondulent doucement */
.paysage .dune-loin { animation: dune 18s ease-in-out infinite alternate; transform-origin: bottom; }
.paysage .dune-pres { animation: dune 12s ease-in-out infinite alternate-reverse; transform-origin: bottom; }
@keyframes dune { to { transform: translateX(-30px) scaleY(1.06); } }

/* Chiffres clés */
.chiffres b i { font-style: normal; }
.chiffres li { position: relative; transition: background .3s; }
.chiffres li::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--banco)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.chiffres li:hover { background: var(--sable-clair); }
.chiffres li:hover::after { transform: scaleX(1); }

/* Titres de section : trait tricolore qui se dessine */
.tete h2::after { content: ""; display: block; width: 84px; height: 4px; margin-top: .9rem; border-radius: 4px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--sable) 33.3% 66.6%, var(--banco) 66.6%); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .3s; }
.tete.vu h2::after, .no-js .tete h2::after { transform: scaleX(1); }
.js .surtitre::before { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .15s; }
.js .vu .surtitre::before, .js .vu.surtitre::before, .entree.surtitre::before { transform: scaleX(1); }

/* Frise : la ligne se dessine, les points apparaissent */
.js .frise::before { transform: scaleY(0); transition: transform 2.2s var(--ease); }
.js .frise.dessinee::before { transform: scaleY(1); }
.frise > li::after { transition: transform .5s var(--ease), background .3s; transform: scale(0); }
.frise > li.vu::after, html:not(.js) .frise > li::after { transform: scale(1); }
.frise > li:hover::after { background: var(--orange); transform: scale(1.25); }

/* Portraits */
.portrait img { transition: transform .8s var(--ease), box-shadow .5s; }
.portrait:hover img { transform: translate(-6px, -6px); box-shadow: 0 34px 60px -30px rgba(18, 20, 23, .7); }
.portrait:hover::before { inset: 1rem -1rem -1rem 1rem; }
.carte-sultan-photo { transition: transform .6s var(--ease); }
.carte-sultan:hover .carte-sultan-photo { transform: scale(1.06) rotate(-2deg); }
.carte-sultan .filigrane { animation: tourne 60s linear infinite; }

/* Boutons : reflet au survol */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); z-index: -1; pointer-events: none; }
.btn:hover::before { animation: balaye .8s ease; }
@keyframes balaye { to { left: 130%; } }

/* Cartes : reflet lumineux et icônes animées */
.site-img::after, .actu-img::after, .galerie-couv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); pointer-events: none; }
.actu-img { position: relative; }
.site-carte:hover .site-img::after, .actu:hover .actu-img::after, .galerie-carte:hover .galerie-couv::after { transform: translateX(120%); }
.atout-ico, .demarche-ico { transition: transform .5s var(--ease), background .3s, color .3s; }
.atout:hover .atout-ico { transform: rotate(-10deg) scale(1.12); background: var(--orange); color: #fff; }
.demarche:hover .demarche-ico { transform: rotate(-8deg) scale(1.1); background: var(--banco); color: #fff; }
.dept { position: relative; overflow: hidden; }
.dept::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--orange), var(--ocre), var(--banco)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.dept:hover::before { transform: scaleX(1); }
.communes li { transition: background .25s, color .25s, transform .25s; }
.dept:hover .communes li { background: var(--sable-clair); color: var(--orange-fonce, #A2561C); }
.atout { transform-style: preserve-3d; }

/* Variantes d'apparition au défilement */
.js .apparait.depuis-gauche { transform: translateX(-50px); }
.js .apparait.depuis-droite { transform: translateX(50px); }
.js .apparait.zoom { transform: scale(.92); }
.js .apparait.vu.depuis-gauche, .js .apparait.vu.depuis-droite, .js .apparait.vu.zoom { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .heros-fond, .anneau, .heros-embleme-zone .heros-embleme, .heros-grains, .mot-dore, .paysage path, .carte-sultan .filigrane { animation: none !important; }
    .mot-dore { color: var(--sable) !important; background: none; }
    .js .frise::before, .frise > li::after, .tete h2::after, .js .surtitre::before { transform: none !important; }
    .progression { display: none; }
}
@media (max-width: 960px) {
    .heros .wrap { min-height: 0; }
    .heros-texte { grid-column: 1; }
    .heros-voile { background: linear-gradient(180deg, rgba(18, 20, 23, .55) 0%, rgba(30, 33, 37, .9) 60%, rgba(30, 33, 37, .85) 100%); }
    .heros-embleme-zone { width: 104px; }
}

/* ==========================================================================
   Capitale économique : bandeau des filières, corridors, secteurs porteurs
   ========================================================================== */
.filieres { position: relative; z-index: 1; margin: 3rem 0 -1.5rem; overflow: hidden; background: var(--orange); color: #fff; border-block: 3px solid var(--sable); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); transform: rotate(-1.2deg); }
.filieres-piste { display: flex; gap: 2.6rem; width: max-content; padding: .85rem 0; animation: defile 40s linear infinite; }
.filieres:hover .filieres-piste { animation-play-state: paused; }
.filieres span { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.02rem var(--titre); white-space: nowrap; letter-spacing: .02em; }
.filieres svg { width: 22px; height: 22px; color: #fff; }

.section-eco { position: relative; overflow: hidden; color: rgba(255, 255, 255, .86); background-color: var(--indigo-2); background-image: url('../img/motif-haoussa.svg'), radial-gradient(700px 380px at 90% 10%, rgba(245, 196, 0, .2), transparent 60%), radial-gradient(600px 380px at 0% 100%, rgba(232, 101, 10, .3), transparent 60%); background-size: 120px 120px, auto, auto; }
.section-eco h2, .section-eco h3 { color: #fff; }
.section-eco .surtitre { color: var(--sable); }
.section-eco .tete p { color: rgba(255, 255, 255, .72); }
.eco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eco-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .85); text-align: justify; }
.eco-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.eco-points li { display: flex; gap: .9rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: transform .35s var(--ease), background .3s; }
.eco-points li:hover { transform: translateX(8px); background: rgba(255, 255, 255, .1); }
.eco-points svg { width: 26px; height: 26px; color: var(--sable); flex-shrink: 0; }
.eco-points b { color: #fff; }
.section:not(.section-eco) .eco .prose { color: var(--texte); }
.eco-carte-fixe { position: sticky; top: 110px; }
.atouts-eco { margin-top: 3.5rem; }

.corridors { margin: 0; position: relative; padding: 1rem; border-radius: 24px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }
.section:not(.section-eco) .corridors { background: var(--indigo-2); }
.corridors svg { width: 100%; height: auto; overflow: visible; }
.corridors figcaption { text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .55); margin-top: .3rem; }
.corridors .frontiere { fill: none; stroke: rgba(245, 196, 0, .55); stroke-width: 2; stroke-dasharray: 8 7; }
.corridors .pays { font: 700 12px var(--corps); letter-spacing: .3em; fill: rgba(255, 255, 255, .35); }
.corridors .route { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 6; stroke-linecap: round; }
.corridors .route-flux { fill: none; stroke: var(--sable); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; animation: flux 1.6s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -32; } }
.corridors .mobile { fill: var(--sable); filter: drop-shadow(0 0 6px rgba(245, 196, 0, .9)); }
.corridors .mobile-retour { fill: var(--orange); filter: drop-shadow(0 0 6px rgba(232, 101, 10, .9)); }
.corridors .ville circle { fill: #fff; stroke: var(--banco); stroke-width: 3; }
.corridors .ville text { font: 700 15px var(--titre); fill: #fff; }
.corridors .ville text.ville-sous { font: 600 10.5px var(--corps); fill: rgba(255, 255, 255, .6); letter-spacing: .04em; }
.corridors .coeur { fill: var(--orange); stroke: #fff; stroke-width: 4; }
.corridors .onde { fill: none; stroke: var(--sable); stroke-width: 2.5; transform-origin: 300px 205px; animation: onde-eco 2.6s ease-out infinite; }
.corridors .onde-2 { animation-delay: 1.3s; }
@keyframes onde-eco { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.corridors .halo { animation: respire-eco 4s ease-in-out infinite; transform-origin: 300px 205px; }
@keyframes respire-eco { 50% { transform: scale(1.15); opacity: .7; } }
.corridors .nom-maradi { font: 900 22px var(--titre); fill: var(--sable); letter-spacing: .12em; paint-order: stroke; stroke: rgba(18, 20, 23, .8); stroke-width: 5px; }

.secteurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.secteur { position: relative; overflow: hidden; padding: 1.8rem 1.6rem 1.6rem; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: transform .4s var(--ease), background .3s, border-color .3s; }
.secteur:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .1); border-color: rgba(245, 196, 0, .55); }
.secteur-num { position: absolute; right: 1.1rem; top: .4rem; font: 900 4.2rem/1 var(--titre); color: transparent; -webkit-text-stroke: 1.5px rgba(245, 196, 0, .3); }
.secteur p { color: rgba(255, 255, 255, .75); font-size: .98rem; margin: 0; text-align: justify; }
.atouts-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.atout-detail { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--trait); border-radius: 18px; padding: 1.5rem; transition: transform .35s var(--ease), box-shadow .35s; }
.atout-detail:hover { transform: translateY(-5px); box-shadow: var(--ombre); }
.atout-detail .atout-ico { background: var(--sable-clair); color: var(--banco); flex-shrink: 0; margin: 0; }
.atout-detail h3 { margin-bottom: .3rem; }
.appel-eco { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(1.8rem, 4vw, 3rem); border-radius: 26px; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(245, 196, 0, .35), transparent 60%), linear-gradient(135deg, var(--indigo), var(--nuit)); box-shadow: var(--ombre); }
.appel-eco h2 { color: #fff; margin-bottom: .4rem; }
.appel-eco p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 40rem; }

/* ---------- Vidéos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.video { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--trait); transition: transform .4s var(--ease), box-shadow .4s; }
.video:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.video-ecran { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: var(--nuit); overflow: hidden; }
.video-ecran img, .video-ecran video, .video-ecran .visuel { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.video-ecran::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 20, 23, .55)); }
.video:hover .video-ecran img { transform: scale(1.07); }
.video-lecture { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .2); transition: transform .4s var(--ease); }
.video-lecture svg { width: 30px; height: 30px; margin-left: 4px; }
.video:hover .video-lecture { transform: scale(1.12); }
.video-corps { padding: 1.1rem 1.3rem 1.3rem; }
.video-corps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.video-corps p { color: var(--doux); font-size: .95rem; margin: 0; }
.actu-date { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--doux); margin-bottom: .4rem; }
.actu-date svg { width: 15px; height: 15px; color: var(--orange); }
.lecteur { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: 2rem; background: rgba(3, 26, 10, .95); }
.lecteur.ouvert { display: grid; }
.lecteur-cadre { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.lecteur-cadre iframe, .lecteur-cadre video { width: 100%; height: 100%; border: 0; display: block; }
.lecteur-titre { color: #fff; font-weight: 600; margin-top: 1rem; text-align: center; }
.lecteur-fermer { position: absolute; top: 1rem; right: 1rem; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem; cursor: pointer; }

@media (max-width: 960px) {
    .eco, .atouts-detail { grid-template-columns: 1fr; }
    .secteurs, .videos { grid-template-columns: repeat(2, 1fr); }
    .eco-carte-fixe { position: static; }
}
@media (max-width: 640px) {
    .secteurs, .videos { grid-template-columns: 1fr; }
    .filieres span { font-size: .92rem; }
}

/* Mobile : pas de justification (évite les grands espaces entre les mots) */
@media (max-width: 600px) {
    .justifie, .prose p, .prose li, .mot blockquote p, .dept p, .atout p { text-align: left; }
}
