/* =========================================================================
   Les Routes du Sénégal — feuille de style

   Charte stricte : vert du logo #128E38, noir, blanc. Aucune couleur tierce.
   Le second ton n'est pas une couleur importée : c'est une dilution de l'axe
   noir/blanc du logo. La hiérarchie repose sur la valeur et la graisse.

   Organisation : jetons, socle, ossature, en-tête, blocs, pied, mobile.
   ====================================================================== */

/* -------------------------------------------------------------------------
   1. JETONS
   ---------------------------------------------------------------------- */
:root {
	--vert: #128E38;
	--vert-d: #0C6828;
	--vert-dd: #084C1D;
	--vert-l: #3FBF63;

	--pierre: #B9C2B6;
	--graphite: #545B51;
	--pierre-c: #DDE3DA;

	--ivoire: #FAF9F6;
	--ivoire-2: #F0F1EC;
	--craie: #FFFFFF;
	--encre: #111310;
	--encre-2: #2C332A;
	--gris: #6B7367;
	--ligne: #E0E3DC;

	--nuit: #0A0F0A;
	--nuit-2: #0F1810;
	--nuit-3: #16241A;
	--ligne-d: #24401F;
	--brume: #9FB29B;
	--brume-c: #D8E3D5;

	--dis: "Montserrat", system-ui, -apple-system, sans-serif;
	--txt: "Poppins", system-ui, -apple-system, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;

	--r-s: 10px;
	--r-m: 16px;
	--r-l: 24px;
	--ease: cubic-bezier(.16, 1, .3, 1);

	/* Marge latérale : elle grandit avec l'écran. Le site est en pleine
	   largeur, mais les colonnes de texte restent bridées bloc par bloc —
	   une ligne qui court sur 2000 px est illisible. */
	--marge: clamp(20px, 4vw, 88px);
}

/* -------------------------------------------------------------------------
   2. SOCLE
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--txt);
	font-size: 16px;
	line-height: 1.62;
	color: var(--encre);
	background: var(--ivoire);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--dis); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }

.saut {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--vert); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.saut:focus { left: 0; }

/* -------------------------------------------------------------------------
   3. OSSATURE
   ---------------------------------------------------------------------- */
.cont { width: 100%; margin-inline: auto; padding-inline: var(--marge); }

.sec { padding-block: clamp(56px, 8vw, 118px); }
.sec--ivoire { background: var(--ivoire); }
.sec--creme  { background: var(--ivoire-2); }
.sec--craie  { background: var(--craie); }
.sec--nuit   { background: var(--nuit); }
.sec--foret  { background: var(--nuit-3); }

.ondark { color: var(--brume-c); }
.ondark h1, .ondark h2, .ondark h3 { color: #fff; }

/* --- En-tête de section --- */
.sh { max-width: 74ch; }
.sh--centre { margin-inline: auto; text-align: center; }
.sh__num {
	display: inline-block; font-family: var(--mono); font-size: 11.5px;
	letter-spacing: .16em; text-transform: uppercase; color: var(--vert);
}
.ondark .sh__num { color: var(--vert-l); }
.sh__k {
	display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px;
	letter-spacing: .1em; text-transform: uppercase; color: var(--graphite);
}
.ondark .sh__k { color: var(--pierre); }
.sh__t { font-size: clamp(1.7rem, 3.6vw, 3rem); margin-top: 12px; max-width: 22ch; }
.sh--centre .sh__t { margin-inline: auto; }
.sh__t em { font-style: normal; color: var(--vert); }
.ondark .sh__t em { color: var(--vert-l); }
.sh__c { margin-top: 16px; color: var(--gris); max-width: 68ch; }
.ondark .sh__c { color: var(--brume); }
.sh--centre .sh__c { margin-inline: auto; }

/* --- Boutons --- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--dis); font-weight: 700; font-size: .88rem;
	padding: 15px 30px; border-radius: 999px; border: 1.6px solid transparent;
	cursor: pointer; white-space: nowrap;
	transition: background-color .35s var(--ease), color .35s var(--ease),
	            border-color .35s var(--ease), transform .35s var(--ease);
}
.btn__f { transition: transform .35s var(--ease); }
.btn:hover .btn__f { transform: translateX(4px); }

.btn--primaire { background: var(--vert); color: #fff; }
.btn--primaire:hover { background: var(--vert-d); transform: translateY(-2px); }

.btn--clair { background: #fff; color: var(--vert-d); }
.btn--clair:hover { background: var(--ivoire-2); transform: translateY(-2px); }

/* Le bouton secondaire s'adapte au fond : blanc sur sombre, encre sur clair.
   Le figer en blanc le rendrait invisible sur une section crème. */
.btn--fantome { background: transparent; border-color: var(--ligne); color: var(--encre); }
.btn--fantome:hover { border-color: var(--vert); color: var(--vert-d); }
.ondark .btn--fantome,
.appel .btn--fantome,
.ouv .btn--fantome,
.porte--pleine .btn--fantome {
	border-color: rgba(255, 255, 255, .45); color: #fff;
}
.ondark .btn--fantome:hover,
.appel .btn--fantome:hover,
.ouv .btn--fantome:hover,
.porte--pleine .btn--fantome:hover { border-color: #fff; }

/* --- Flèche circulaire --- */
/* Un <i> est en ligne par défaut : largeur et hauteur y seraient sans effet,
   et les deux traits se superposeraient en croix. */
.fleche {
	display: inline-block; width: 34px; height: 34px; flex: none;
	border-radius: 50%; border: 1.5px solid currentColor; position: relative;
	vertical-align: middle;
	transition: transform .45s var(--ease), background-color .45s var(--ease);
}
.fleche::before, .fleche::after {
	content: ""; position: absolute; top: 50%; left: 50%; background: currentColor;
}
.fleche::before { width: 12px; height: 1.6px; transform: translate(-50%, -50%); }
.fleche::after {
	width: 7px; height: 7px; background: none;
	border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
	transform: translate(-72%, -50%) rotate(45deg);
}

/* -------------------------------------------------------------------------
   4. BARRE DE CONTACT
   ---------------------------------------------------------------------- */
.topbar { background: #000; color: #fff; }
.topbar__in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap; padding-block: 9px; min-height: 44px;
}
.topbar__g { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); flex-wrap: wrap; }
.topbar__i { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; }
/* Chaque icône dans sa pastille verte : elle se lit d'un coup d'œil sur le
   noir, là où un simple trait vert se perdrait. */
.topbar__i svg {
	color: #fff; box-sizing: content-box; padding: 6px; border-radius: 50%;
	background: var(--vert); transition: background-color .3s var(--ease);
}
.topbar__i:hover { color: var(--vert-l); }
.topbar__i:hover svg { background: var(--vert-l); }

.topbar__s { display: flex; gap: 8px; }
.topbar__s a {
	width: 30px; height: 30px; border-radius: 50%; background: var(--vert-dd);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--mono); font-size: 12px; font-weight: 500; color: #fff;
	transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.topbar__s a:hover { background: var(--vert); transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   5. EN-TÊTE
   ---------------------------------------------------------------------- */
.entete {
	--logo-h: 64px;
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	transition: box-shadow .35s var(--ease);
}
/* Le filet vert qui referme la barre. */
.entete::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, var(--vert-dd), var(--vert) 45%, var(--vert-l));
}
.entete.est-defile { box-shadow: 0 10px 30px -18px rgba(10, 15, 10, .45); }

.entete__in {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	gap: clamp(16px, 2.4vw, 40px);
	padding-block: clamp(12px, calc(var(--logo-h) * .26), 28px);
	transition: padding-block .45s var(--ease);
}
.entete.est-defile .entete__in { padding-block: 8px; }

.marque { justify-self: start; }
/* Sélecteur assez spécifique pour l'emporter sur la règle générique des
   images : sans cela, le logo prendrait sa hauteur naturelle. */
.entete .marque__logo {
	height: var(--logo-h); width: auto; max-width: none;
	transition: height .45s var(--ease);
}
.entete.est-defile .marque__logo { height: max(28px, calc(var(--logo-h) * .68)); }

.nav { justify-self: center; }
.entete__act { justify-self: end; display: flex; align-items: center; gap: 14px; }

/* --- Le menu --- */
.menu { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 36px); }
.menu__i { position: relative; }
.menu__i > a {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--txt); font-weight: 600; font-size: .85rem;
	letter-spacing: .06em; text-transform: uppercase; color: var(--encre);
	padding-block: 8px; position: relative;
	transition: color .3s var(--ease);
}
.menu__i > a:hover { color: var(--vert-d); }
.menu__i.a-enfants > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 2px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .35s var(--ease);
}
/* Le trait de l'entrée courante se déploie depuis la gauche. */
.menu__i > a::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	border-radius: 3px; background: var(--vert);
	transform: scaleX(0); transform-origin: right;
	transition: transform .4s var(--ease);
}
.menu__i > a:hover::before,
.menu__i > a:focus-visible::before,
.menu__i.est-actif > a::before,
.menu__i.est-ouvert > a::before { transform: scaleX(1); transform-origin: left; }

/* --- Panneau déroulant --- */
.sous {
	position: absolute; top: calc(100% + 14px); left: 50%; z-index: 50;
	min-width: 236px; padding: 10px;
	background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-m);
	box-shadow: 0 30px 60px -34px rgba(10, 15, 10, .45);
	/* Pas de « pointer-events: none » : c'est la visibilité qui rend le panneau
	   inerte. Tant qu'il est visible — y compris pendant le délai de fermeture
	   ci-dessous —, y revenir le maintient ouvert. */
	opacity: 0; visibility: hidden;
	transform: translate(-50%, 14px) scale(.98); transform-origin: top center;
	/* La fermeture attend un quart de seconde : une main qui descend en
	   diagonale sort un instant de la zone survolée, et le panneau ne doit pas
	   se dérober sous elle. */
	transition: opacity .25s var(--ease) .15s, transform .25s var(--ease) .15s, visibility 0s linear .4s;
}
/* Pont invisible au-dessus du panneau : il comble les 14 pixels qui le
   séparent du lien. Sans lui, la souris traversait un vide en descendant,
   le survol cessait, et le sous-menu se refermait avant d'être atteint. */
@media (min-width: 1021px) {
	/* Réservé à l'ordinateur : dans le tiroir mobile, le sous-menu est un bloc
	   ordinaire, et ce pont se poserait sur l'entrée précédente, où il
	   intercepterait les appuis. */
	.sous::before {
		content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 18px;
	}
}
.sous a {
	display: block; padding: 11px 14px; border-radius: var(--r-s);
	font-size: .92rem; color: var(--encre-2); white-space: nowrap;
	transition: background-color .25s, color .25s;
}
.sous a:hover, .sous a[aria-current] { background: var(--ivoire-2); color: var(--vert-d); }

@media (min-width: 1021px) {
	.menu__i.a-enfants:hover > .sous,
	.menu__i.a-enfants:focus-within > .sous,
	.menu__i.est-ouvert > .sous {
		opacity: 1; visibility: visible;
		transform: translate(-50%, 0) scale(1);
		/* L'ouverture, elle, est immédiate. */
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
	}
	.menu__i.a-enfants:hover > a::after,
	.menu__i.est-ouvert > a::after { transform: rotate(225deg) translateY(2px); }
	/* Les entrées du panneau se révèlent l'une après l'autre. */
	.sous li { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
	.menu__i.a-enfants:hover > .sous li,
	.menu__i.a-enfants:focus-within > .sous li,
	.menu__i.est-ouvert > .sous li { opacity: 1; transform: none; }
	.sous li:nth-child(2) { transition-delay: .04s; }
	.sous li:nth-child(3) { transition-delay: .08s; }
	.sous li:nth-child(4) { transition-delay: .12s; }

	.nav__fermer, .nav__cta { display: none; }
}

/* --- Hamburger --- */
.burger {
	display: none; width: 44px; height: 44px; border: 0; background: none;
	cursor: pointer; padding: 10px; border-radius: 10px;
}
.burger span {
	display: block; height: 2px; border-radius: 2px; background: var(--encre);
	transition: transform .4s var(--ease), opacity .3s;
}
.burger span + span { margin-top: 5px; }
.entete.est-ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.entete.est-ouvert .burger span:nth-child(2) { opacity: 0; }
.entete.est-ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   6. BLOCS
   ---------------------------------------------------------------------- */

/* --- Chiffres --- */
.chif {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: clamp(14px, 2vw, 26px);
}
.chif__c {
	padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-m);
	background: var(--craie); border: 1px solid var(--ligne);
}
.ondark .chif__c { background: rgba(255, 255, 255, .05); border-color: var(--ligne-d); }
.chif__v {
	font-family: var(--dis); font-weight: 800;
	font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.04em;
	color: var(--vert); font-variant-numeric: tabular-nums;
}
.ondark .chif__v { color: #fff; }
.chif__l { margin-top: 10px; font-size: .9rem; line-height: 1.45; color: var(--gris); }
.ondark .chif__l { color: var(--brume); }
.chif__note { margin-top: clamp(20px, 2.6vw, 32px); font-size: .88rem; color: var(--gris); max-width: 72ch; }
.ondark .chif__note { color: var(--brume); }

/* --- Cartes --- */
.cartes {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(14px, 2vw, 24px); margin-top: clamp(28px, 4vw, 48px);
}
.carte {
	display: block; position: relative; padding: clamp(22px, 2.6vw, 32px);
	border-radius: var(--r-m); background: var(--craie); border: 1px solid var(--ligne);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.ondark .carte { background: rgba(255, 255, 255, .05); border-color: var(--ligne-d); }
a.carte:hover { transform: translateY(-5px); border-color: var(--vert); box-shadow: 0 28px 50px -32px rgba(10, 15, 10, .5); }
.carte__ic {
	display: inline-grid; place-items: center; width: 50px; height: 50px;
	border-radius: 14px; background: rgba(18, 142, 56, .1); color: var(--vert);
}
.ondark .carte__ic { background: rgba(63, 191, 99, .14); color: var(--vert-l); }
.carte__t { font-size: 1.1rem; margin-top: 18px; color: var(--encre); }
.ondark .carte__t { color: #fff; }
.carte__x { margin-top: 10px; font-size: .93rem; color: var(--gris); }
.ondark .carte__x { color: var(--brume); }
.carte__f { position: absolute; top: 24px; right: 24px; color: var(--vert); opacity: 0; transition: opacity .3s, transform .3s; }
a.carte:hover .carte__f { opacity: 1; transform: translateX(3px); }

/* --- Piliers --- */
.pil {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(14px, 2vw, 24px); margin-top: clamp(28px, 4vw, 48px);
	counter-reset: pil;
}
.pil__i { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-m); background: var(--craie); border: 1px solid var(--ligne); }
.ondark .pil__i { background: rgba(255, 255, 255, .05); border-color: var(--ligne-d); }
.pil__n {
	font-family: var(--dis); font-weight: 800; font-size: 2rem; line-height: 1;
	color: var(--vert); opacity: .28;
}
.ondark .pil__n { color: var(--vert-l); }
.pil__t { font-size: 1.08rem; margin-top: 12px; color: var(--encre); }
.ondark .pil__t { color: #fff; }
.pil__x { margin-top: 8px; font-size: .92rem; color: var(--gris); }
.ondark .pil__x { color: var(--brume); }

/* --- Section-porte --- */
.porte { margin-block: 0; }
.porte__l { display: block; }
.porte__l:focus-visible { outline-offset: 6px; border-radius: var(--r-l); }
.porte__n { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--vert); }
.ondark .porte__n { color: var(--vert-l); }
.porte__k { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.ondark .porte__k { color: var(--pierre); }
.porte__t { font-size: clamp(1.7rem, 3.4vw, 3rem); margin-top: 12px; max-width: 20ch; color: var(--encre); }
.ondark .porte__t { color: #fff; }
.porte__t em { font-style: normal; color: var(--vert); }
.ondark .porte__t em { color: var(--vert-l); }
.porte__x { margin-top: 16px; color: var(--gris); max-width: 62ch; }
.ondark .porte__x { color: var(--brume); }
.porte__p { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.porte__p span {
	font-family: var(--mono); font-size: 11.5px; background: var(--ivoire-2);
	border-radius: 999px; padding: 7px 14px; color: var(--encre-2);
}
.ondark .porte__p span { background: rgba(255, 255, 255, .08); color: var(--brume-c); }
.porte__cta {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
	font-family: var(--dis); font-weight: 700; color: var(--vert-d);
}
.ondark .porte__cta { color: var(--vert-l); }
.porte__l:hover .fleche { transform: translateX(6px); }

.porte--decalee .porte__l {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(24px, 4vw, 72px); align-items: center;
}
.porte--decalee.porte--inv .porte__m { order: 2; }
.porte__m { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4/3; background: var(--ivoire-2); }
.porte__m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.porte__l:hover .porte__m img { transform: scale(1.06); }

.porte--pleine .porte__l {
	position: relative; isolation: isolate; display: flex; align-items: flex-end;
	min-height: clamp(360px, 54vh, 600px); border-radius: var(--r-l); overflow: hidden;
}
.porte--pleine .porte__m { position: absolute; inset: 0; z-index: -2; border-radius: 0; aspect-ratio: auto; }
.porte--pleine .porte__l::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(0deg, rgba(10, 15, 10, .9) 0%, rgba(10, 15, 10, .35) 56%, rgba(10, 15, 10, .1) 100%);
}
.porte--pleine .porte__b { padding: clamp(26px, 4vw, 56px); }
.porte--pleine .porte__t, .porte--pleine .porte__cta { color: #fff; }
.porte--pleine .porte__x { color: var(--brume-c); }
.porte--pleine .porte__k { color: var(--pierre); }
.porte--pleine .porte__n { color: var(--vert-l); }
.porte--pleine .porte__p span { background: rgba(255, 255, 255, .15); color: #fff; }

/* --- Vignettes --- */
.vigs {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(28px, 4vw, 48px);
}
.vig {
	position: relative; isolation: isolate; display: flex; align-items: flex-end;
	min-height: 320px; border-radius: var(--r-m); overflow: hidden; background: var(--nuit-2);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.vig:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(10, 15, 10, .65); }
.vig__m { position: absolute; inset: 0; z-index: -2; margin: 0; }
.vig__m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vig:hover .vig__m img { transform: scale(1.08); }
.vig::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(0deg, rgba(10, 15, 10, .92) 8%, rgba(10, 15, 10, .3) 62%, rgba(10, 15, 10, .05) 100%);
}
.vig__n { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .6); }
.vig__b { display: block; padding: clamp(18px, 2.4vw, 26px); }
.vig__t { display: block; font-family: var(--dis); font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.2; color: #fff; }
/* Le texte n'apparaît qu'au survol : la vignette reste une image, et
   l'information vient à la demande. Il reste lu par les technologies
   d'assistance, qui ignorent la hauteur. */
.vig__x {
	display: block; margin-top: 8px; font-size: .9rem; line-height: 1.55; color: var(--brume-c);
	max-height: 0; overflow: hidden; opacity: 0;
	transition: max-height .5s var(--ease), opacity .4s var(--ease);
}
.vig:hover .vig__x, .vig:focus-visible .vig__x { max-height: 8em; opacity: 1; }
.vig .fleche { margin-top: 16px; color: #fff; }
.vig:hover .fleche { background: var(--vert); border-color: var(--vert); }

/* --- Frise --- */
.frise { position: relative; padding-left: 58px; margin-top: clamp(28px, 4vw, 48px); }
.frise__ligne { position: absolute; left: 20px; top: 8px; bottom: 8px; width: 2px; background: var(--ligne); border-radius: 2px; overflow: hidden; }
.ondark .frise__ligne { background: var(--ligne-d); }
.frise__ligne i {
	position: absolute; inset: 0 0 auto 0; height: var(--frise-fill, 0%);
	background: linear-gradient(180deg, var(--vert), var(--vert-l));
	transition: height .25s linear;
}
html:not(.js) .frise__ligne i { height: 100%; }
.frise__l { display: grid; gap: clamp(16px, 2.2vw, 30px); }
.frise__e { position: relative; }
html.js .frise__e { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .frise__e.est-vu { opacity: 1; transform: none; }
.frise__pt {
	position: absolute; left: -47px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
	background: var(--craie); border: 3px solid var(--ligne);
	transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.ondark .frise__pt { background: var(--nuit-2); border-color: var(--ligne-d); }
.frise__e.est-vu .frise__pt { border-color: var(--vert); transform: scale(1.18); }
.frise__c { padding: clamp(18px, 2.2vw, 28px); border-radius: var(--r-m); background: var(--craie); border: 1px solid var(--ligne); }
.ondark .frise__c { background: rgba(255, 255, 255, .05); border-color: var(--ligne-d); }
.frise__pk { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--vert); }
.ondark .frise__pk { color: var(--vert-l); }
.frise__t { font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-top: 8px; color: var(--encre); }
.ondark .frise__t { color: #fff; }
.frise__q { display: inline-block; margin-top: 6px; font-size: .82rem; color: var(--graphite); }
.ondark .frise__q { color: var(--pierre); }
.frise__x { margin-top: 10px; font-size: .94rem; color: var(--gris); max-width: 68ch; }
.ondark .frise__x { color: var(--brume); }
.frise__m { margin: 16px 0 0; border-radius: var(--r-s); overflow: hidden; }

/* --- Questions fréquentes --- */
.faq { max-width: 880px; margin-top: clamp(28px, 4vw, 48px); }
.faq__r { border-bottom: 1px solid var(--ligne); }
.faq__r:first-child { border-top: 1px solid var(--ligne); }
.ondark .faq__r, .ondark .faq__r:first-child { border-color: var(--ligne-d); }
.faq__q {
	display: flex; width: 100%; align-items: center; justify-content: space-between;
	gap: 18px; padding: 20px 0; background: none; border: 0; cursor: pointer;
	text-align: left; font-family: var(--dis); font-weight: 700;
	font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.3; color: var(--encre);
	transition: color .25s;
}
.ondark .faq__q { color: #fff; }
.faq__q:hover { color: var(--vert-d); }
.ondark .faq__q:hover { color: var(--vert-l); }
.faq__ch {
	width: 12px; height: 12px; flex: none;
	border-right: 2px solid var(--vert); border-bottom: 2px solid var(--vert);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .45s var(--ease);
}
.faq__r.est-ouvert .faq__ch { transform: rotate(225deg) translate(-2px, -2px); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 20px; font-size: .96rem; line-height: 1.62; color: var(--gris); max-width: 68ch; }
.ondark .faq__a p { color: var(--brume); }
html.js .faq__r:not(.est-ouvert) .faq__a { height: 0; }

/* --- Appel --- */
.appel { text-align: center; max-width: 780px; margin-inline: auto; }
.appel__k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-l); }
.appel__t { font-size: clamp(1.8rem, 4vw, 3.2rem); margin-top: 14px; color: #fff; }
.appel__t em { font-style: normal; color: var(--vert-l); }
.appel__x { margin-top: 18px; color: var(--brume); }
.appel__b { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* -------------------------------------------------------------------------
   7. PIED DE PAGE
   ---------------------------------------------------------------------- */
.pied { background: var(--nuit); color: var(--brume); padding-top: clamp(40px, 6vw, 70px); }

.ruban {
	overflow: hidden; border-block: 1px solid var(--ligne-d); padding-block: 22px;
	margin-bottom: clamp(36px, 5vw, 64px);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ruban__piste { display: flex; width: max-content; animation: ruban 38s linear infinite; }
.ruban:hover .ruban__piste { animation-play-state: paused; }
.ruban__lot { display: flex; align-items: center; }
.ruban__m {
	font-family: var(--dis); font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.5rem);
	letter-spacing: -.02em; color: rgba(255, 255, 255, .14); white-space: nowrap;
	transition: color .5s var(--ease);
}
.ruban:hover .ruban__m { color: rgba(255, 255, 255, .3); }
.ruban__p { width: 9px; height: 9px; border-radius: 50%; background: var(--vert); margin-inline: clamp(20px, 3vw, 46px); flex: none; }
@keyframes ruban { to { transform: translateX(-50%); } }

.pied__appel {
	display: flex; align-items: center; justify-content: space-between;
	gap: clamp(20px, 3vw, 48px); flex-wrap: wrap;
	padding-bottom: clamp(36px, 5vw, 58px); border-bottom: 1px solid var(--ligne-d);
	margin-bottom: clamp(36px, 5vw, 58px);
}
.pied__at { font-size: clamp(1.6rem, 3.4vw, 2.7rem); color: #fff; max-width: 18ch; }
.pied__at em { font-style: normal; color: var(--vert-l); }

.pied__cols {
	display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(170px, 1fr));
	gap: clamp(24px, 3vw, 48px); padding-bottom: clamp(32px, 4vw, 54px);
}
.pied__logo { height: 76px; width: auto; }
.pied__nom { margin-top: 16px; font-family: var(--dis); font-weight: 800; font-size: 1.15rem; color: #fff; }
.pied__devise { margin-top: 10px; font-size: .9rem; color: var(--brume); max-width: 34ch; }
.pied__soc { display: flex; gap: 8px; margin-top: 20px; }
.pied__soc a {
	width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .07);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--mono); font-size: 13px; color: #fff; transition: background-color .3s, transform .3s;
}
.pied__soc a:hover { background: var(--vert); transform: translateY(-2px); }

.pied__ct { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-l); }
.pied__col ul { margin-top: 18px; display: grid; gap: 11px; }
.pied__col a { font-size: .92rem; color: var(--brume); transition: color .25s, padding-left .25s; }
.pied__col a:hover { color: #fff; padding-left: 4px; }
.pied__contact li { display: flex; gap: 11px; font-size: .9rem; color: var(--brume); }
.pied__contact svg { flex: none; margin-top: 3px; color: var(--vert-l); }
.pied__contact a:hover { color: #fff; }

.pied__bas {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--ligne-d);
	font-size: .84rem; color: var(--graphite);
}
.pied__bas nav { display: flex; gap: 20px; flex-wrap: wrap; }
.pied__bas a { transition: color .25s; }
.pied__bas a:hover { color: var(--vert-l); }

/* --- Retour en haut --- */
.haut {
	position: fixed; right: 22px; bottom: 22px; z-index: 90;
	width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--vert); color: #fff;
	box-shadow: 0 14px 30px -14px rgba(10, 15, 10, .6);
	opacity: 0; pointer-events: none;
	transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.haut.est-vu { opacity: 1; pointer-events: auto; }
.haut:hover { transform: translateY(-3px); }

/* -------------------------------------------------------------------------
   8. MOBILE
   ---------------------------------------------------------------------- */
@media (max-width: 1020px) {
	.entete__in { grid-template-columns: auto 1fr; }
	.burger { display: block; }

	/* Un panneau plein écran qui glisse depuis la droite : sur téléphone, un
	   menu déroulant classique oblige à viser des cibles de quelques pixels. */
	.nav {
		position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); z-index: 300;
		background: #fff; padding: 88px 26px 32px; overflow-y: auto;
		transform: translateX(102%); visibility: hidden;
		box-shadow: -30px 0 60px -30px rgba(10, 15, 10, .5);
		transition: transform .5s var(--ease), visibility .5s;
	}
	.entete.est-ouvert .nav { transform: none; visibility: visible; }
	.entete.est-ouvert::before {
		content: ""; position: fixed; inset: 0; z-index: 290;
		background: rgba(10, 15, 10, .5);
	}

	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu__i { border-bottom: 1px solid var(--ligne); }
	.menu__i > a { display: flex; justify-content: space-between; padding: 16px 2px; font-size: .95rem; }
	.menu__i > a::before { display: none; }

	.sous {
		position: static; transform: none; opacity: 1; visibility: visible;
		pointer-events: auto; box-shadow: none; border: 0; background: transparent;
		min-width: 0; padding: 0 0 12px 14px;
		height: 0; overflow: hidden; transition: height .4s var(--ease);
	}
	.menu__i.est-ouvert > .sous { height: auto; }
	.menu__i.est-ouvert > a::after { transform: rotate(225deg) translateY(2px); }
	.sous a { white-space: normal; }

	.entete.est-ouvert .entete__act .btn { display: none; }
	.nav__cta { margin-top: 26px; }
	.nav__cta .btn { width: 100%; justify-content: center; }

	.nav__fermer {
		position: absolute; top: 22px; right: 22px; width: 42px; height: 42px;
		border-radius: 50%; border: 1px solid var(--ligne); background: #fff;
		display: grid; place-items: center; cursor: pointer; color: var(--encre);
	}
	.nav__fermer::before, .nav__fermer::after {
		content: ""; position: absolute; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
	}
	.nav__fermer::before { transform: rotate(45deg); }
	.nav__fermer::after { transform: rotate(-45deg); }

	.porte--decalee .porte__l { grid-template-columns: 1fr; }
	.porte--decalee.porte--inv .porte__m { order: 0; }
	.pied__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
	.topbar__g { gap: 12px; }
	.topbar__i { font-size: .78rem; }
	.pied__cols { grid-template-columns: 1fr; }
	.frise { padding-left: 40px; }
	.frise__ligne { left: 11px; }
	.frise__pt { left: -33px; }
	.haut { right: 14px; bottom: 14px; }
}

/* -------------------------------------------------------------------------
   9. MOUVEMENT RÉDUIT
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	html.js .frise__e { opacity: 1; transform: none; }
	.ruban__piste { animation: none; }
}

/* =========================================================================
   10. OUVERTURE « SUR LA PISTE »
   Pleine hauteur, photographie voilée, faits qui se relaient.
   ====================================================================== */
.ouv {
	position: relative; display: flex; align-items: center; isolation: isolate;
	min-height: min(92vh, 860px); padding-block: clamp(70px, 11vh, 140px);
	background: var(--nuit); overflow: hidden;
}
.ouv__fond { position: absolute; inset: 0; z-index: -2; }
.ouv__fond img { width: 100%; height: 100%; object-fit: cover; }
.ouv::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(105deg, rgba(10,15,10,.86) 0%, rgba(10,15,10,.66) 46%, rgba(10,15,10,.34) 100%);
}
/* Le filet de piste, qui descend le long du bloc. */
.ouv__piste {
	position: absolute; left: var(--marge); top: 0; bottom: 0; width: 2px; opacity: .5;
	background: repeating-linear-gradient(180deg, var(--vert-l) 0 12px, transparent 12px 26px);
}
.ouv__in { position: relative; width: 100%; }

.ouv__badge {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--brume-c);
	border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 9px 18px;
}
.ouv__badge i {
	width: 7px; height: 7px; border-radius: 50%; background: var(--vert-l);
	box-shadow: 0 0 0 0 rgba(63,191,99,.6); animation: ouvPulse 2.4s infinite;
}
@keyframes ouvPulse {
	70%  { box-shadow: 0 0 0 10px rgba(63,191,99,0); }
	100% { box-shadow: 0 0 0 0 rgba(63,191,99,0); }
}

.ouv__t {
	font-size: clamp(2.4rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -.04em;
	color: #fff; margin-top: clamp(18px, 3vh, 32px); max-width: 16ch;
}
.ouv__t em { display: block; font-style: normal; color: var(--vert-l); }
html.js .ouv__t > * { animation: ouvMonte .9s var(--ease) both; }
html.js .ouv__t em { animation-delay: .12s; }
@keyframes ouvMonte { from { opacity: 0; transform: translateY(28px); } }

.ouv__lede {
	margin-top: clamp(16px, 2.6vh, 28px); max-width: 58ch;
	font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.66; color: var(--brume-c);
}
.ouv__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.4vh, 40px); }

/* --- Les faits qui se relaient --- */
.ouv__faits {
	position: relative; margin-top: clamp(32px, 5vh, 60px);
	padding-top: clamp(20px, 3vh, 32px); border-top: 1px solid rgba(255,255,255,.15);
	min-height: 92px;
}
.ouv__fait { display: block; }
/* Sans script, tous les faits se lisent à la suite. */
html.js .ouv__fait {
	position: absolute; top: clamp(20px, 3vh, 32px); left: 0;
	opacity: 0; transform: translateY(14px); pointer-events: none;
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js .ouv__fait.est-on { opacity: 1; transform: none; pointer-events: auto; }
.ouv__k {
	display: block; font-family: var(--dis); font-weight: 800;
	font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -.04em;
	color: #fff; font-variant-numeric: tabular-nums;
}
.ouv__v {
	display: block; margin-top: 6px; font-family: var(--mono); font-size: 12.5px;
	letter-spacing: .1em; text-transform: uppercase; color: var(--vert-l);
}
.ouv__fait:hover .ouv__v { color: #fff; }
.ouv__fait:hover .ouv__v::after { content: " →"; }

.ouv__scroll {
	position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px;
	margin-left: -13px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35);
}
.ouv__scroll i {
	position: absolute; left: 50%; top: 9px; width: 3px; height: 7px; margin-left: -1.5px;
	border-radius: 2px; background: var(--vert-l);
	animation: ouvMolette 1.8s var(--ease) infinite;
}
@keyframes ouvMolette {
	0%   { opacity: 0; transform: translateY(0); }
	30%  { opacity: 1; }
	100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 700px) {
	.ouv { min-height: auto; }
	.ouv__piste, .ouv__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html.js .ouv__t > * { animation: none; }
	.ouv__badge i, .ouv__scroll i { animation: none; }
	html.js .ouv__fait { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 18px; }
}

/* =========================================================================
   11. BARRE D'ACTION MOBILE
   L'appel à l'action reste sous le pouce pendant toute la lecture, plutôt
   que de disparaître en haut de page dès le premier défilement.
   ====================================================================== */
.barre-mob { display: none; }

@media (max-width: 1020px) {
	/* Le bouton quitte la barre du haut : il s'y serrait contre le logo et le
	   hamburger, et les trois éléments devenaient illisibles. */
	.entete__act .btn { display: none; }

	/* La barre de contact disparaît sur mobile : sur un écran étroit, elle
	   mangeait une ligne entière au-dessus du logo. Ses coordonnées passent
	   en bas du tiroir du menu. */
	.topbar { display: none; }

	.barre-mob {
		display: flex; gap: 10px; align-items: center;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 280;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, .94);
		backdrop-filter: blur(14px);
		border-top: 1px solid var(--ligne);
		box-shadow: 0 -14px 34px -22px rgba(10, 15, 10, .45);
		transition: transform .45s var(--ease);
	}
	/* Le tiroir a son propre bouton : deux appels superposés se disputeraient
	   la même zone de l'écran. */
	.entete.est-ouvert ~ .barre-mob,
	.barre-mob.est-cache { transform: translateY(105%); }

	.barre-mob__cta {
		flex: 1; display: inline-flex; align-items: center; justify-content: center;
		gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px;
		background: var(--vert); color: #fff;
		font-family: var(--dis); font-weight: 700; font-size: .92rem;
		transition: background-color .3s var(--ease);
	}
	.barre-mob__cta:active { background: var(--vert-d); }

	.barre-mob__ec {
		flex: none; width: 50px; height: 50px; border-radius: 50%;
		display: grid; place-items: center;
		border: 1.6px solid var(--ligne); color: var(--vert-d); background: #fff;
	}
	.barre-mob__ec:active { border-color: var(--vert); }

	/* Le pied ne doit pas passer sous la barre. */
	body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }

	/* Le bouton de retour en haut se pose au-dessus d'elle. */
	.haut { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
	.barre-mob { transition: none; }
}

/* =========================================================================
   12. CARTE DES CIRCUITS
   Le Sénégal réel — contour Natural Earth, enclave gambienne, chefs-lieux à
   leurs coordonnées — parcouru par un véhicule.
   ====================================================================== */
.atlas__grille {
	display: grid; grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(20px, 3vw, 40px); align-items: start;
	margin-top: clamp(28px, 4vw, 48px);
}
@media (max-width: 940px) { .atlas__grille { grid-template-columns: 1fr; } }

.atlas__cadre {
	background: var(--nuit-2); border: 1px solid var(--ligne-d);
	border-radius: var(--r-l); padding: clamp(10px, 2vw, 22px); overflow: hidden;
}
.atlas__cadre svg { width: 100%; height: auto; overflow: visible; display: block; }

/* --- Géographie --- */
.atlas__terre { fill: #1B2E1E; stroke: #3C6B45; stroke-width: 1.6; }
/* La Gambie n'est pas le Sénégal : on la creuse et on la borde en pointillé —
   c'est une frontière, pas une côte. */
.atlas__gmb { fill: var(--nuit); stroke: #3C6B45; stroke-width: 1.1; stroke-dasharray: 4 4; opacity: .9; }
.atlas__gmb-l {
	font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
	text-transform: uppercase; fill: var(--pierre); opacity: .75; text-anchor: middle;
}

/* --- Chefs-lieux --- */
.ville { cursor: pointer; }
.ville .pt { fill: var(--nuit-2); stroke: var(--pierre); stroke-width: 1.8; transition: all .35s var(--ease); }
.ville .nm {
	font-family: var(--txt); font-weight: 500; font-size: 12px; fill: var(--pierre);
	pointer-events: none; transition: fill .3s;
	paint-order: stroke; stroke: rgba(10, 15, 10, .75); stroke-width: 3px;
}
.ville:hover .pt, .ville.est-on .pt { fill: var(--vert); stroke: #fff; r: 6; }
.ville:hover .nm, .ville.est-on .nm { fill: #fff; font-weight: 700; }
.ville.est-etape .pt { stroke: var(--vert); }
.ville:focus-visible { outline: none; }
.ville:focus-visible .pt { stroke: var(--vert); stroke-width: 3.4; }

/* --- Tracés --- */
.route {
	fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
	opacity: .22; transition: opacity .5s var(--ease), stroke-width .5s var(--ease);
}
.route.est-on { opacity: 1; stroke-width: 4; }
.route.est-trace {
	stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
	animation: trace 1.6s var(--ease) forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }

/* --- Véhicule --- */
.veh { opacity: 0; transition: opacity .4s; }
.veh.est-on { opacity: 1; }
.veh__c { fill: var(--vert); stroke: #fff; stroke-width: 1.6; }
.veh__v { fill: rgba(255, 255, 255, .94); }
.veh__r { fill: var(--nuit); stroke: #fff; stroke-width: 1; }
.veh__h { fill: var(--vert); opacity: .18; }

/* --- Panneau --- */
.atlas__panneau {
	background: var(--nuit-2); border: 1px solid var(--ligne-d);
	border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 26px);
}
.atlas__liste { display: grid; gap: 8px; }
.atlas__liste button {
	display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 14px;
	background: transparent; border: 1px solid var(--ligne-d); border-radius: var(--r-s);
	text-align: left; cursor: pointer; transition: all .35s var(--ease);
}
.atlas__liste button:hover { border-color: var(--vert); transform: translateX(3px); }
.atlas__liste button[aria-pressed="true"] { background: rgba(18, 142, 56, .14); border-color: var(--vert); }
.atlas__pt { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.atlas__lab { display: block; font-weight: 600; font-size: .9rem; line-height: 1.25; color: #fff; }
.atlas__meta { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; color: var(--pierre); }

.atlas__fiche { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ligne-d); min-height: 160px; }
.atlas__fiche .n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--vert-l); }
.atlas__fiche h3 { font-size: 1.12rem; margin: 8px 0 6px; color: #fff; }
.atlas__fiche p { font-size: .88rem; line-height: 1.6; margin-bottom: 12px; color: var(--brume); }
.atlas__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas__tags span {
	font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
	background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 5px 11px; color: var(--brume);
}
.atlas__fiche ol { margin-top: 12px; padding-left: 1.1em; list-style: decimal; font-size: .85rem; line-height: 1.7; color: var(--brume); }
.atlas__fiche ol li::marker { color: var(--vert-l); }
.atlas__cmd { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.atlas__cmd .btn { font-size: .78rem; padding: 10px 16px; }

@media (prefers-reduced-motion: reduce) {
	.route.est-trace { animation: none; stroke-dashoffset: 0; }
	.veh { display: none; }
}

/* =========================================================================
   13. SIMULATEUR « 1 KM 1 ARBRE »
   ====================================================================== */
.sim__boite {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(20px, 3vw, 48px); align-items: center;
	margin-top: clamp(24px, 3vw, 42px); padding: clamp(22px, 3vw, 40px);
	border-radius: var(--r-l); background: rgba(255, 255, 255, .05); border: 1px solid var(--ligne-d);
}
@media (max-width: 820px) { .sim__boite { grid-template-columns: 1fr; } }

.sim__lab { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--pierre); }
.sim__val {
	display: block; font-family: var(--dis); font-weight: 700;
	font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.03em;
	color: #fff; font-variant-numeric: tabular-nums; margin: 10px 0 22px;
}
.sim__range {
	-webkit-appearance: none; appearance: none; width: 100%; height: 6px;
	border-radius: 6px; background: var(--ligne-d); outline: none; cursor: pointer;
}
.sim__range::-webkit-slider-thumb {
	-webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--vert); border: 3px solid #fff; cursor: grab;
	box-shadow: 0 4px 14px -4px rgba(18, 142, 56, .7);
}
.sim__range::-moz-range-thumb {
	width: 28px; height: 28px; border-radius: 50%; background: var(--vert);
	border: 3px solid #fff; cursor: grab;
}
.sim__range:focus-visible { outline: 3px solid var(--vert-l); outline-offset: 4px; }
.sim__ech { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--brume); }

.sim__res { text-align: center; padding: clamp(18px, 2.4vw, 30px); border-radius: var(--r-m); background: var(--vert); color: #fff; }
.sim__out {
	font-family: var(--dis); font-weight: 800;
	font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.04em;
	font-variant-numeric: tabular-nums;
}
.sim__unite { margin-top: 6px; font-size: .95rem; opacity: .92; }
.sim__foret { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 18px 0 4px; min-height: 26px; }
.sim__foret svg { width: 18px; height: 18px; opacity: .92; }
.sim__plus { font-family: var(--mono); font-size: 12px; font-weight: 600; align-self: center; margin-left: 4px; }
.sim__res .btn { margin-top: 16px; }
.sim__note { margin-top: 16px; font-size: .85rem; color: var(--brume); max-width: 72ch; }

/* =========================================================================
   14. BLOCS DES PAGES INTÉRIEURES
   ====================================================================== */
.espace-haut { margin-top: clamp(28px, 4vw, 48px); }
.centre { text-align: center; }
.vide { padding: 20px; border-radius: var(--r-m); background: var(--ivoire-2); color: var(--gris); }

/* --- En-tête de page --- */
.ep {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--nuit); color: var(--brume-c);
	padding-block: clamp(70px, 10vw, 130px) clamp(56px, 7vw, 96px);
}
.ep--img { padding-block: clamp(96px, 14vw, 180px) clamp(64px, 8vw, 110px); }
.ep__fond { position: absolute; inset: 0; z-index: -2; }
.ep__fond img { width: 100%; height: 100%; object-fit: cover; }
.ep--img::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, rgba(10,15,10,.9) 0%, rgba(10,15,10,.72) 50%, rgba(10,15,10,.45) 100%);
}
/* Un filet vert en pied d'ouverture, repris de l'en-tête du site. */
.ep::before {
	content: ""; position: absolute; left: var(--marge); bottom: 0; width: 88px; height: 4px;
	border-radius: 4px 4px 0 0; background: var(--vert);
}
.ep__in { position: relative; }
.ep__k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-l); }
.ep__t { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.04em; color: #fff; margin-top: 16px; max-width: 18ch; }
.ep__t em { font-style: normal; color: var(--vert-l); }
.ep__c { margin-top: 20px; max-width: 62ch; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.66; color: var(--brume-c); }
.ep__retour { display: inline-block; margin-bottom: 18px; font-size: .88rem; color: var(--brume); transition: color .25s; }
.ep__retour:hover { color: #fff; }
.ep .ouv__cta { margin-top: 30px; }

/* --- Texte --- */
.txt { max-width: 880px; }
.sh--centre + .txt__c, .txt:has(.sh--centre) { margin-inline: auto; }
.txt:has(.sh--centre) .txt__c { margin-inline: auto; text-align: center; }
.txt__c { margin-top: clamp(20px, 2.6vw, 30px); max-width: 70ch; }
.txt__c p, .ti__c p, .proj__x p, .article__corps p { margin-bottom: 1.05em; font-size: 1.02rem; line-height: 1.75; color: var(--encre-2); }
.ondark .txt__c p { color: var(--brume-c); }
.txt__c strong, .ti__c strong, .proj__x strong { color: var(--encre); }
.ondark .txt__c strong { color: #fff; }
.txt__c em, .ti__c em { font-style: normal; color: var(--vert); font-weight: 600; }

/* --- Texte et image --- */
.ti {
	display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	gap: clamp(26px, 4.4vw, 76px); align-items: center;
}
.ti--inv .ti__m { order: 2; }
.ti__m { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4/3; background: var(--ivoire-2); }
.ti__m img { width: 100%; height: 100%; object-fit: cover; }
.ti__c { margin-top: clamp(18px, 2.2vw, 26px); }
.ti__p { display: grid; gap: 12px; margin-top: 22px; }
.ti__p li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--encre-2); }
.ti__p svg { flex: none; margin-top: 2px; color: var(--vert); }
.ondark .ti__p li { color: var(--brume-c); }
.ti__cta { margin-top: 28px; }

/* --- Projets --- */
.projs { display: grid; gap: clamp(40px, 6vw, 84px); margin-top: clamp(32px, 4.4vw, 56px); }
.proj {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(26px, 4.4vw, 72px); align-items: center; scroll-margin-top: 110px;
}
.proj--inv .proj__m { order: 2; }
.proj__m { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 5/4; background: var(--ivoire-2); }
.proj__m img { width: 100%; height: 100%; object-fit: cover; }
.proj__tag {
	display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
	text-transform: uppercase; color: #fff; background: var(--vert); border-radius: 999px; padding: 6px 12px;
}
.proj__t { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-top: 16px; color: var(--encre); }
.proj__a { margin-top: 10px; font-family: var(--dis); font-weight: 600; font-size: 1.08rem; color: var(--vert-d); }
.proj__x { margin-top: 16px; }

/* --- Territoires --- */
.terrs {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(14px, 2vw, 22px); margin-top: clamp(28px, 4vw, 48px);
}
.terr { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-m); background: var(--craie); border: 1px solid var(--ligne); }
.terr__ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(18,142,56,.1); color: var(--vert); }
.terr__n { font-size: 1.2rem; margin-top: 14px; color: var(--encre); }
.terr__a { margin-top: 4px; font-weight: 600; font-size: .92rem; color: var(--vert-d); }
.terr__x { margin-top: 10px; font-size: .9rem; color: var(--gris); }
.terr .porte__p { margin-top: 14px; }

/* --- Circuits --- */
.circs { display: grid; gap: clamp(16px, 2.2vw, 26px); margin-top: clamp(28px, 4vw, 48px); }
.circ {
	display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	border-radius: var(--r-l); overflow: hidden; background: var(--craie); border: 1px solid var(--ligne);
	scroll-margin-top: 110px;
}
.circ__m { margin: 0; min-height: 240px; }
.circ__m img { width: 100%; height: 100%; object-fit: cover; }
.circ__b { padding: clamp(22px, 3vw, 36px); }
.circ__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--vert); }
.circ__t { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-top: 8px; color: var(--encre); }
.circ .porte__p { margin-top: 14px; }
.circ__x { margin-top: 14px; font-size: .95rem; color: var(--gris); max-width: 64ch; }
.circ__e { margin-top: 16px; padding-left: 1.2em; list-style: decimal; display: grid; gap: 6px; font-size: .92rem; color: var(--encre-2); }
.circ__e li::marker { color: var(--vert); font-weight: 600; }

/* --- Équipe --- */
.equipe {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: clamp(14px, 2vw, 22px); margin-top: clamp(28px, 4vw, 48px);
}
.membre { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-m); background: var(--craie); border: 1px solid var(--ligne); }
.membre__av {
	display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
	background: var(--vert); color: #fff; font-family: var(--dis); font-weight: 800; font-size: 1.4rem;
}
.membre__r { font-size: 1.05rem; margin-top: 16px; color: var(--encre); }
.membre__n { margin-top: 4px; font-weight: 600; color: var(--vert-d); font-size: .92rem; }
.membre__x { margin-top: 10px; font-size: .9rem; color: var(--gris); }

/* --- Articles --- */
.arts {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: clamp(16px, 2.2vw, 26px); margin-top: clamp(28px, 4vw, 48px);
}
.art { border-radius: var(--r-m); overflow: hidden; background: var(--craie); border: 1px solid var(--ligne);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.art:hover { transform: translateY(-5px); box-shadow: 0 30px 56px -34px rgba(10,15,10,.5); }
.art__l { display: flex; flex-direction: column; height: 100%; }
.art__m { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--ivoire-2); }
.art__m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.art:hover .art__m img { transform: scale(1.06); }
.art__b { padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; flex: 1; }
.art__meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--graphite); }
.art__t { font-size: 1.1rem; line-height: 1.3; margin-top: 10px; color: var(--encre); }
.art__x { margin-top: 10px; font-size: .9rem; color: var(--gris); }
.art__lire { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px;
	font-family: var(--dis); font-weight: 700; font-size: .88rem; color: var(--vert-d); }
.art__lire .fleche { width: 28px; height: 28px; }
.art:hover .fleche { transform: translateX(4px); }

.article__corps { max-width: 72ch; margin-inline: auto; }
.article__chapo { font-family: var(--dis); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--encre); margin-bottom: 1.4em; }

/* --- Galerie --- */
.galerie { columns: 3 280px; column-gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 48px); }
.gal { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 20px); border-radius: var(--r-m); overflow: hidden; background: var(--craie); border: 1px solid var(--ligne); }
.gal a { display: block; overflow: hidden; cursor: zoom-in; }
.gal img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gal a:hover img { transform: scale(1.05); }
.gal figcaption { padding: 12px 16px; font-size: .86rem; }
.gal figcaption strong { display: block; color: var(--encre); font-weight: 600; }
.gal figcaption span { color: var(--gris); font-size: .82rem; }

/* Visionneuse : construite par le script, absente sans lui — la vignette
   reste alors un simple lien vers l'image en grand. */
.visio {
	position: fixed; inset: 0; z-index: 600; display: grid; place-items: center;
	background: rgba(10,15,10,.94); padding: 60px 20px;
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.visio.est-ouverte { opacity: 1; visibility: visible; }
.visio figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.visio img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: var(--r-s); }
.visio figcaption { margin-top: 14px; color: var(--brume-c); font-size: .92rem; }
.visio button {
	position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255,255,255,.1); color: #fff; font-size: 1.4rem; display: grid; place-items: center;
	transition: background-color .25s;
}
.visio button:hover { background: var(--vert); }
.visio__fermer { top: 18px; right: 18px; }
.visio__prec { left: 18px; top: 50%; transform: translateY(-50%); }
.visio__suiv { right: 18px; top: 50%; transform: translateY(-50%); }

/* --- Documents --- */
.docs__f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.docs__f button {
	padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--craie);
	font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .25s;
}
.docs__f button:hover { border-color: var(--vert); }
.docs__f button.est-actif { background: var(--vert); border-color: var(--vert); color: #fff; }
.docs__l { display: grid; gap: 12px; margin-top: 22px; }
.doc {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
	padding: clamp(16px, 2vw, 22px); border-radius: var(--r-m); background: var(--craie); border: 1px solid var(--ligne);
}
.doc[hidden] { display: none; }
.doc__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(18,142,56,.1); color: var(--vert); }
.doc__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.doc__t { font-size: 1.02rem; margin-top: 4px; color: var(--encre); }
.doc__x { margin-top: 4px; font-size: .88rem; color: var(--gris); }
.doc__dl { font-size: .82rem; padding: 10px 18px; }
.doc__bientot { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--graphite); background: var(--ivoire-2); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }

/* --- Cartes : étiquette --- */
.carte__et { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--graphite); background: var(--ivoire-2); border-radius: 999px; padding: 4px 10px; }
.carte__et + .carte__t { margin-top: 10px; }

/* --- Contact --- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__l { display: grid; gap: 18px; margin-top: clamp(22px, 3vw, 34px); }
.contact__l li { display: flex; gap: 14px; }
.contact__l svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(18,142,56,.1); color: var(--vert); }
.contact__l strong { display: block; font-size: .82rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); font-weight: 500; }
.contact__l span, .contact__l a { font-size: .96rem; color: var(--encre); }
.contact__l a:hover { color: var(--vert-d); }

.form { padding: clamp(22px, 3vw, 38px); border-radius: var(--r-l); background: var(--craie); border: 1px solid var(--ligne); scroll-margin-top: 110px; }
.form__g { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.champ { display: block; }
.champ span { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 500; color: var(--encre-2); }
.champ b { color: var(--vert); font-weight: 600; }
.champ--plein { margin-top: 14px; }
.champ input, .champ select, .champ textarea {
	width: 100%; padding: 13px 15px; border: 1.5px solid var(--ligne); border-radius: var(--r-s);
	font: inherit; font-size: .95rem; background: #fff; color: var(--encre);
	transition: border-color .25s, box-shadow .25s;
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(18,142,56,.12); }
.form__note { margin: 14px 0 20px; font-size: .84rem; color: var(--gris); }
.form__pm { position: absolute; left: -9999px; }
.form__msg { padding: 14px 18px; border-radius: var(--r-s); margin-bottom: 20px; font-size: .92rem; }
.form__msg--ok { background: #E8F5EC; border: 1px solid #B9E0C4; color: var(--vert-d); }
.form__msg--err { background: #FDECEC; border: 1px solid #F3C5C5; color: #8A1C1C; }

@media (max-width: 1020px) {
	.ti, .proj, .contact { grid-template-columns: 1fr; }
	.ti--inv .ti__m, .proj--inv .proj__m { order: 0; }
	.circ { grid-template-columns: 1fr; }
	.circ__m { min-height: 200px; max-height: 260px; }
}
@media (max-width: 620px) {
	.form__g { grid-template-columns: 1fr; }
	.doc { grid-template-columns: auto minmax(0, 1fr); }
	.doc__dl, .doc__bientot { grid-column: 1 / -1; justify-self: start; }
}

/* Une adresse e-mail ne contient pas d'espace : sans cette règle, elle ne
   se coupe jamais et déborde de sa colonne. */
.pied__contact span, .pied__contact a, .contact__l a { overflow-wrap: anywhere; }

/* Coordonnées en bas du tiroir mobile. */
.nav__contact { display: none; }
@media (max-width: 1020px) {
	.nav__contact { display: grid; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ligne); }
	.nav__contact a, .nav__contact li > span { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--encre-2); overflow-wrap: anywhere; }
	.nav__contact svg {
		flex: none; box-sizing: content-box; padding: 7px; border-radius: 50%;
		background: rgba(18, 142, 56, .1); color: var(--vert);
	}
	.nav__contact a:hover { color: var(--vert-d); }
}
