/* Charte Eure-et-Loir Tourisme / Let it Slow.
   Toutes les valeurs viennent de raw/charte/charte.json, relevé par getComputedStyle sur
   randonnees.eurelien.fr. Les seules valeurs dérivées sont signalées par un commentaire. */

/* ------------------------------------------------------------------ polices */
@font-face {
  font-family: "Brother Grade Stamp";
  src: url("/assets/fonts/BrotherGrade-Stamp.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Homemade Sausage";
  src: url("/assets/fonts/HomemadeSausage.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway Locale";
  src: url("/assets/fonts/Raleway-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway Locale";
  src: url("/assets/fonts/Raleway-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------------ jetons */
:root {
  --e28-primary: #c2cd8b;
  --e28-primary-hover: #b6be8e;
  --e28-secondary: #eed1c6;
  --e28-accent: #f2d186;
  --e28-bleu: #aed4de;
  --e28-bleu-gris: #b9ced4;
  --e28-beige: #e5d0c8;
  --e28-sable: #e7cd92;
  --e28-gris-clair: #f1ecec;
  --e28-text: #3a3335;
  --e28-text-muted: #707070;
  --e28-surface: #ffffff;
  --e28-surface-alt: #f1ecec;
  --e28-footer: #3a3335;

  /* Voile des tuiles : valeur par défaut Elementor relevée sur la grille d'activités. */
  --e28-voile: rgba(0, 0, 0, 0.3);
  --e28-voile-survol: rgba(58, 51, 53, 0);

  /* Dérivés. La charte ne définit ni bordure ni vert foncé : le site d'origine n'a
     aucune bordure et son seul vert sombre appartient au widget tiers. Ces deux
     valeurs sont un assombrissement du vert de marque et un gris du texte à 12 %. */
  --e28-primary-dark: #6f7d3c;
  --e28-border: #e4dfdd;

  /* Couleurs de tracé par activité. La charte n'en fournit aucune : chacune est une
     couleur d'ambiance du kit Elementor assombrie pour rester lisible sur la carte. */
  --e28-act-hiking: #6f7d3c;
  --e28-act-biking: #2f5d80;
  --e28-act-mountainbike: #9a7524;
  --e28-act-equestrian: #8c6252;
  --e28-act-canoe: #2e8080;
  --e28-act-default: #3a3335;

  /* Route Henri IV. Ces quatre valeurs ne sont pas dérivées : elles sont échantillonnées
     sur le dépliant de la route, dont le rose est déjà celui de la charte (#EED1C6). */
  --e28-h4: #9b2c47;
  --e28-h4-creme: #f8f7f2;
  --e28-h4-vert: #a8c3b1;
  --e28-h4-clair: #bb7282;

  --e28-radius-sm: 8px;
  --e28-radius: 10px;
  --e28-radius-lg: 15px;
  --e28-radius-bande: 25px;
  --e28-radius-pilule: 40px;

  --e28-font: "Raleway Locale", "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --e28-font-titre: "Brother Grade Stamp", "Raleway Locale", sans-serif;
  --e28-font-sous-titre: "Homemade Sausage", "Raleway Locale", sans-serif;

  --e28-largeur: 1170px;
  --e28-shadow: none;
}

/* ------------------------------------------------------------------ socle */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--e28-surface);
  color: var(--e28-text);
  font-family: var(--e28-font);
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--e28-primary); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--e28-primary-dark);
  outline-offset: 2px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

h1 {
  font-family: var(--e28-font-titre);
  font-size: 100px;
  line-height: 109px;
  color: var(--e28-primary);
}
.e28-display {
  font-family: var(--e28-font-titre);
  font-size: 90px;
  line-height: 95px;
  color: var(--e28-primary);
}
.e28-display--rose { color: var(--e28-secondary); }
.e28-display--sable { color: var(--e28-accent); }

h2, h3, .e28-sous-titre {
  font-family: var(--e28-font-sous-titre);
  font-size: 35px;
  line-height: 59px;
  letter-spacing: 0.56px;
  color: var(--e28-text);
}

p { margin: 0 0 14.4px; }

.e28-conteneur {
  width: 100%;
  max-width: var(--e28-largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.e28-section { padding: 60px 0; }
.e28-section--large { padding: 90px 0; }

.e28-saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--e28-surface);
  color: var(--e28-text);
  padding: 12px 18px;
}
.e28-saut-contenu:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------------ boutons */
.e28-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 51px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--e28-radius);
  background: var(--e28-primary);
  color: var(--e28-surface);
  font-family: var(--e28-font-sous-titre);
  font-size: 30px;
  line-height: 31px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.e28-bouton:hover { background: var(--e28-primary-hover); color: var(--e28-surface); text-decoration: none; }
.e28-bouton--pilule { border-radius: var(--e28-radius-pilule); min-width: 191px; }
.e28-bouton--petit { font-size: 22px; min-height: 44px; padding: 8px 18px; }
.e28-bouton--sombre { background: var(--e28-text); }
.e28-bouton--sombre:hover { background: var(--e28-primary-dark); }

/* ------------------------------------------------------------------ en-tête */
.e28-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 18px 0;
}
/* Écarts resserrés depuis 24 et 28 px, et libellés insécables : la quatrième entrée du
   menu, « Route Henri IV », fait passer la barre au-dessus de la largeur disponible en
   1440 px, et les quatre libellés partaient alors sur deux lignes. */
.e28-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.e28-header__logo img { width: 166px; height: 72px; object-fit: contain; }
.e28-header__social { display: flex; gap: 12px; }
.e28-header__social a { display: block; width: 22px; height: 22px; }
.e28-header__social img { width: 22px; height: 22px; }
.e28-nav { margin-left: auto; }
.e28-nav__liste {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e28-nav__item { position: relative; }
.e28-nav__lien {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--e28-font);
  font-size: 18px;
  line-height: 21px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--e28-surface);
  text-shadow: 0 1px 3px rgba(58, 51, 53, 0.55);
}
.e28-nav__lien:hover { text-decoration: none; }
.e28-nav__sous {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  min-width: 260px;
  background: var(--e28-primary);
  border-radius: 0 0 var(--e28-radius-sm) var(--e28-radius-sm);
}
.e28-nav__item:hover .e28-nav__sous,
.e28-nav__item:focus-within .e28-nav__sous { display: block; }
.e28-nav__sous a {
  display: block;
  padding: 10px;
  font-size: 18px;
  line-height: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--e28-surface);
  background: var(--e28-primary);
}
.e28-nav__sous a:hover { background: var(--e28-surface); color: var(--e28-primary-dark); text-decoration: none; }

.e28-recherche { display: flex; align-items: center; }
.e28-recherche input {
  width: 130px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--e28-radius-sm) 0 0 var(--e28-radius-sm);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--e28-font);
  font-size: 14px;
  color: var(--e28-text);
}
.e28-recherche button {
  height: 40px;
  width: 44px;
  border: 0;
  border-radius: 0 var(--e28-radius-sm) var(--e28-radius-sm) 0;
  background: var(--e28-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.e28-recherche button img { width: 18px; height: 18px; }

.e28-burger {
  display: none;
  width: 33px;
  height: 33px;
  margin-left: auto;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.e28-burger span {
  display: block;
  height: 3px;
  margin: 6px 0;
  border-radius: 2px;
  background: var(--e28-surface);
}

/* ------------------------------------------------------------------ héros */
.e28-hero {
  position: relative;
  height: 406px;
  overflow: hidden;
  background: var(--e28-text);
}
/* Les quatre visuels du diaporama font 1920x880 et portent leur texte incrusté :
   les recadrer coupe les pastilles de slogan, on garde donc leur proportion exacte. */
.e28-hero--accueil { height: auto; aspect-ratio: 1920 / 880; max-height: 92vh; }
.e28-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: e28-ken 12s ease-out infinite alternate;
}
.e28-hero__slide.is-actif { opacity: 1; }
@keyframes e28-ken {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.e28-hero__img { width: 100%; height: 100%; object-fit: cover; }
/* Héros des 58 circuits sans photo : un aplat de la charte, jamais une photo d'ailleurs. */
.e28-hero__repli {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, var(--e28-primary) 0%, var(--e28-act, var(--e28-primary-dark)) 100%);
}
.e28-hero__repli img { width: 84px; height: 84px; opacity: 0.55; filter: invert(1); }
.e28-hero__voile { position: absolute; inset: 0; background: rgba(58, 51, 53, 0.28); }
/* Le diaporama d'accueil porte son texte dans l'image : on ne l'assombrit que le
   strict nécessaire pour que le menu blanc reste lisible. */
.e28-hero--accueil .e28-hero__voile { background: rgba(58, 51, 53, 0.12); }
.e28-hero__legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  color: var(--e28-surface);
}
.e28-hero__fil {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: var(--e28-surface);
}
.e28-hero__fil a { color: var(--e28-surface); }
.e28-hero__fil span { opacity: 0.7; padding: 0 6px; }
.e28-hero__titre {
  font-family: var(--e28-font-titre);
  font-size: 72px;
  line-height: 78px;
  color: var(--e28-surface);
  margin: 6px 0 0;
  text-shadow: 0 2px 12px rgba(58, 51, 53, 0.5);
}
.e28-hero__fleche {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 34px;
  color: var(--e28-surface);
}
.e28-hero__marque {
  position: absolute;
  left: 40px;
  bottom: 40px;
  width: 190px;
}
@media (prefers-reduced-motion: reduce) {
  .e28-hero__slide { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ blocs éditoriaux */
.e28-intro { max-width: 860px; }
.e28-intro p { color: var(--e28-text); }
.e28-titraille { margin-bottom: 28px; }
.e28-titraille p { margin-top: 10px; }

.e28-chiffres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.e28-chiffre {
  padding: 22px 18px;
  border-radius: var(--e28-radius-lg);
  background: color-mix(in srgb, var(--e28-primary) 22%, #fff);
}
.e28-chiffre b {
  display: block;
  font-family: var(--e28-font-titre);
  font-size: 48px;
  line-height: 52px;
  color: var(--e28-primary-dark);
  font-weight: 400;
}
.e28-chiffre span { font-size: 15px; line-height: 21px; color: var(--e28-text); }
.e28-chiffre small { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--e28-text-muted); }

/* ------------------------------------------------------------------ tuiles */
.e28-tuiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 51px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e28-tuiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e28-tuile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 398px;
  padding: 26px;
  border-radius: var(--e28-radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: box-shadow 0.5s ease;
}
.e28-tuile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--e28-voile);
  transition: background 0.3s ease;
}
.e28-tuile:hover::before { background: var(--e28-voile-survol); }
.e28-tuile:hover { text-decoration: none; }
.e28-tuile__libelle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 286px;
  max-width: 100%;
  min-height: 71px;
  padding: 8px 12px;
  border-radius: var(--e28-radius);
  background: var(--e28-primary);
  color: var(--e28-surface);
  font-family: var(--e28-font-sous-titre);
  font-size: 30px;
  line-height: 34px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  text-align: center;
}
.e28-tuile__compte {
  font-family: var(--e28-font);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* ------------------------------------------------------------------ cartes de circuit */
.e28-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e28-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.e28-carte {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--e28-border);
  border-radius: var(--e28-radius-lg);
  overflow: hidden;
  background: var(--e28-surface);
  transition: border-color 0.3s ease;
}
.e28-carte:hover { border-color: var(--e28-primary); }
.e28-carte__media {
  position: relative;
  aspect-ratio: 13 / 9;
  background: var(--e28-surface-alt);
  overflow: hidden;
}
.e28-carte__media img { width: 100%; height: 100%; object-fit: cover; }
.e28-carte__act {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--e28-radius-sm);
  background: var(--e28-surface);
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--e28-text);
}
.e28-carte__act img { width: 14px; height: 14px; }
.e28-carte__act::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--e28-act, var(--e28-act-default));
}
.e28-carte__corps { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; }
.e28-carte__titre {
  font-family: var(--e28-font-sous-titre);
  font-size: 22px;
  line-height: 27px;
  letter-spacing: 0.3px;
  color: var(--e28-text);
}
.e28-carte__titre a { color: inherit; font-weight: inherit; }
.e28-carte__titre a:hover { color: var(--e28-primary-dark); text-decoration: none; }
.e28-carte__lieu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--e28-text-muted);
}
.e28-carte__lieu img { width: 14px; height: 14px; opacity: 0.65; }
.e28-carte__chapo {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--e28-text);
}
.e28-carte__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--e28-border);
  list-style: none;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--e28-text);
}
.e28-carte__meta li { display: flex; align-items: center; gap: 5px; }
.e28-carte__meta img { width: 15px; height: 15px; opacity: 0.7; }
.e28-carte__meta { margin-top: auto; }

.e28-repli {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  background: color-mix(in srgb, var(--e28-act, var(--e28-primary)) 16%, #fff);
}
.e28-repli img { width: 46px; height: 46px; opacity: 0.55; }
.e28-repli span {
  font-family: var(--e28-font-sous-titre);
  font-size: 19px;
  line-height: 23px;
  color: var(--e28-act, var(--e28-primary-dark));
}

/* ------------------------------------------------------------------ carte La Trace */
/* Le conteneur porte la hauteur, jamais le SDK : ses options `height` poseraient un style
   en ligne qui battrait la charte. Le SDK ne fait que remplir ce cadre à 100 %.
   Sous 800 px de large, il remplace la carte par un message « Écran trop petit » sur
   desktop : aucun de ces blocs ne doit être posé dans une colonne étroite. */
.e28-carte-bloc {
  height: 720px;
  border: 1px solid var(--e28-border);
  border-radius: var(--e28-radius-lg);
  overflow: hidden;
}
.e28-carte-bloc--fiche { height: 640px; }
/* Le planificateur empile tout son wizard dans une colonne : la hauteur du bloc de carte
   le couperait. Il porte donc la sienne, et le conteneur suit son contenu.
   Cf. la note iframe-bridee-par-le-css-de-lhote : le style inline de l'iframe ne suffit
   pas, c'est la hauteur du parent qui tranche. */
.e28-carte-bloc--planificateur { height: auto; max-height: none; }
.e28-carte-vide {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--e28-text-muted);
}
/* La feuille du SDK arrondit à 20 px et pose une ombre portée : la charte n'a aucune
   ombre, et son rayon de carte est celui du conteneur. */
.e28-carte-bloc .cii-iframe-block { border-radius: 0; box-shadow: none; }
.e28-carte-bloc--repli { display: grid; place-items: center; background: var(--e28-surface-alt); }
.e28-carte-bloc--repli .e28-carte-vide { max-width: 560px; }

/* ------------------------------------------------------------------ fiche */
.e28-fiche__entete { padding: 40px 0 0; }
.e28-fiche__titre {
  font-family: var(--e28-font-titre);
  font-size: 62px;
  line-height: 68px;
  color: var(--e28-primary-dark);
}
.e28-fiche__sur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--e28-text-muted);
}
.e28-pastille {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--e28-radius-pilule);
  background: color-mix(in srgb, var(--e28-act, var(--e28-primary)) 20%, #fff);
  color: var(--e28-act, var(--e28-primary-dark));
  font-size: 13px;
  letter-spacing: 0.4px;
}
.e28-pastille img { width: 15px; height: 15px; }

.e28-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.e28-stat {
  padding: 16px;
  border-radius: var(--e28-radius-lg);
  background: var(--e28-surface-alt);
}
.e28-stat b {
  display: block;
  font-family: var(--e28-font-sous-titre);
  font-size: 26px;
  line-height: 30px;
  font-weight: 400;
  color: var(--e28-text);
}
.e28-stat span { font-size: 13px; line-height: 18px; color: var(--e28-text-muted); }

.e28-galerie {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin: 34px 0 0;
}
.e28-galerie__principale {
  border-radius: var(--e28-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--e28-surface-alt);
}
.e28-galerie__principale img { width: 100%; height: 100%; object-fit: cover; }
.e28-galerie__reste { display: grid; grid-template-rows: repeat(2, 1fr); gap: 12px; }
.e28-galerie__reste figure { margin: 0; border-radius: var(--e28-radius-lg); overflow: hidden; background: var(--e28-surface-alt); }
.e28-galerie__reste img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.e28-galerie--seule { grid-template-columns: 1fr; }
.e28-credit { margin: 10px 0 0; font-size: 12px; line-height: 17px; color: var(--e28-text-muted); }

.e28-bloc { padding: 46px 0 0; }
.e28-bloc__titre {
  font-family: var(--e28-font-sous-titre);
  font-size: 30px;
  line-height: 40px;
  color: var(--e28-text);
  margin-bottom: 16px;
}
.e28-prose p { max-width: 760px; }
.e28-prose ol,
.e28-prose ul { max-width: 760px; padding-left: 20px; }
.e28-prose li { margin-bottom: 12px; }

.e28-etapes { max-width: 820px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.e28-etape {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--e28-border);
}
.e28-etape__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--e28-primary);
  color: var(--e28-surface);
  font-family: var(--e28-font-sous-titre);
  font-size: 19px;
}
.e28-etape__txt { font-size: 16px; line-height: 24px; }
.e28-etape__txt b { display: block; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--e28-text-muted); }

.e28-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 0; }
.e28-infos > div { padding: 18px; border-radius: var(--e28-radius-lg); background: var(--e28-surface-alt); }
.e28-infos dt { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--e28-text-muted); }
.e28-infos dd { margin: 6px 0 0; font-size: 16px; line-height: 24px; }

.e28-autour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.e28-autour__col h3 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.e28-autour__liste { margin: 0; padding: 0; list-style: none; }
.e28-autour__liste li { padding: 10px 0; border-top: 1px solid var(--e28-border); font-size: 15px; line-height: 21px; }
.e28-autour__liste b { display: block; font-weight: 700; }
.e28-autour__liste span { color: var(--e28-text-muted); font-size: 13px; }
.e28-autour__vide { color: var(--e28-text-muted); font-size: 15px; }

.e28-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }

/* ------------------------------------------------------------------ offices */
.e28-tableau-enveloppe { overflow-x: auto; }
.e28-tableau {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}
.e28-tableau th,
.e28-tableau td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--e28-border); vertical-align: top; }
.e28-tableau th {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--e28-text-muted);
}
.e28-tableau td.e28-num,
.e28-tableau th.e28-num { text-align: right; font-variant-numeric: tabular-nums; }
.e28-tableau tbody tr:hover { background: color-mix(in srgb, var(--e28-primary) 12%, #fff); }
.e28-tableau__nom { font-weight: 700; }
.e28-tableau__nom a { color: var(--e28-text); }
.e28-tableau__nom a:hover { color: var(--e28-primary-dark); }
.e28-tableau__sous { display: block; font-weight: 400; font-size: 13px; color: var(--e28-text-muted); }

.e28-avant-apres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.e28-avant-apres > div { padding: 26px; border-radius: var(--e28-radius-lg); }
.e28-avant { background: var(--e28-surface-alt); }
.e28-apres { background: color-mix(in srgb, var(--e28-primary) 22%, #fff); }
.e28-avant-apres h3 { font-size: 26px; line-height: 34px; margin-bottom: 10px; }
.e28-avant-apres ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 25px; }
.e28-avant-apres li { margin-bottom: 8px; }

.e28-bande {
  background: color-mix(in srgb, var(--e28-secondary) 22%, #fff);
  border-radius: var(--e28-radius-bande) var(--e28-radius-bande) 0 0;
  padding: 70px 0 80px;
}
.e28-bande--verte { background: color-mix(in srgb, var(--e28-primary) 22%, #fff); }

.e28-escapades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 34px 0 0; padding: 0; list-style: none; }
.e28-escapade { border-radius: var(--e28-radius-lg); overflow: hidden; background: var(--e28-surface); }
.e28-escapade img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.e28-escapade__corps { padding: 18px 20px 24px; }
.e28-escapade h3 { font-size: 26px; line-height: 32px; }
.e28-escapade p { margin-top: 8px; font-size: 15px; line-height: 23px; }

.e28-venir { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.e28-venir__cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }

/* La carte du réseau prend toute la largeur : le SDK bascule sur un message « Écran trop
   petit » dès que son conteneur descend sous 800 px sur desktop. Les deux notes qui
   l'accompagnaient passent donc dessous. */
.e28-reseau__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.e28-echelle { padding: 18px; border-radius: var(--e28-radius-lg); background: var(--e28-surface-alt); }
.e28-offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.e28-offices a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--e28-border);
  border-radius: var(--e28-radius);
  background: var(--e28-surface);
  text-decoration: none;
}
.e28-offices a:hover { background: var(--e28-surface-alt); }
.e28-offices b { display: block; font-family: var(--e28-font-sous-titre); font-size: 20px; font-weight: 400; color: var(--e28-primary-dark); }
.e28-offices span { display: block; font-size: 14px; line-height: 20px; }
.e28-offices small { display: block; margin-top: 6px; font-size: 13px; color: var(--e28-text-muted); }
@media (max-width: 767px) {
  .e28-reseau__notes { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ pied de page */
.e28-footer { background: var(--e28-footer); color: var(--e28-surface); padding: 54px 0 0; margin-top: 80px; }
.e28-footer a { color: var(--e28-surface); font-weight: 100; }
.e28-footer__partenaires { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; padding-bottom: 34px; }
.e28-footer__partenaires img { height: 62px; width: auto; object-fit: contain; }
.e28-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.1fr; gap: 30px; padding: 34px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.e28-footer h2 {
  font-family: var(--e28-font-sous-titre);
  font-size: 20px;
  line-height: 27px;
  color: var(--e28-surface);
  margin-bottom: 12px;
}
.e28-footer ul { margin: 0; padding: 0; list-style: none; }
.e28-footer li { font-size: 14px; line-height: 25px; font-weight: 100; }
.e28-footer__identite img { width: 166px; height: 72px; object-fit: contain; }
.e28-footer__identite p { font-size: 14px; line-height: 25px; font-weight: 100; margin: 12px 0 0; }
.e28-footer__social { display: flex; gap: 12px; margin-top: 10px; }
.e28-footer__social img { width: 22px; height: 22px; }
.e28-footer__slow { width: 130px; margin-top: 16px; }
.e28-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  line-height: 16px;
  font-weight: 100;
}

/* ------------------------------------------------------------------ divers */
.e28-note {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--e28-primary);
  background: var(--e28-surface-alt);
  border-radius: 0 var(--e28-radius) var(--e28-radius) 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--e28-text-muted);
}
.e28-compteur { font-size: 15px; font-weight: 700; color: var(--e28-text-muted); margin: 0 0 18px; }
.e28-visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.e28-recherche-grande { display: flex; max-width: 620px; margin: 30px 0 0; }
.e28-recherche-grande input {
  flex: 1 1 auto;
  height: 58px;
  padding: 0 18px;
  border: 1px solid var(--e28-border);
  border-right: 0;
  border-radius: var(--e28-radius) 0 0 var(--e28-radius);
  font-family: var(--e28-font);
  font-size: 16px;
  color: var(--e28-text);
  background: var(--e28-surface);
}
.e28-recherche-grande button {
  flex: none;
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 0 var(--e28-radius) var(--e28-radius) 0;
  background: var(--e28-primary);
  color: var(--e28-surface);
  font-family: var(--e28-font-sous-titre);
  font-size: 24px;
  text-transform: uppercase;
  cursor: pointer;
}
.e28-recherche-grande button:hover { background: var(--e28-primary-hover); }

/* ------------------------------------------------------------------ Route Henri IV
   Le gabarit est celui du reste du site : e28-section, e28-chiffres, e28-stats,
   e28-tableau, e28-etapes, e28-bande, e28-carte-bloc. Seules changent la couleur
   d'accent, relevée sur le dépliant de la route, et trois blocs qui n'existaient pas :
   la grille des dix sites, la ligne de jalons d'une boucle et la citation du dépliant. */
.e28-h4__baseline {
  font-family: var(--e28-font-sous-titre);
  font-size: 26px;
  line-height: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--e28-h4);
  margin: 0 0 4px;
}
.e28-h4__oeil {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--e28-h4);
  margin: 0;
}
.e28-h4__titre {
  font-family: var(--e28-font-titre);
  font-size: 46px;
  line-height: 52px;
  color: var(--e28-h4);
  margin: 4px 0 0;
}
.e28-h4__titre a { color: inherit; }
.e28-h4__h1 { color: var(--e28-h4); }
.e28-h4__sous {
  font-family: var(--e28-font-sous-titre);
  font-size: 24px;
  line-height: 32px;
  color: var(--e28-text);
  margin: 6px 0 0;
}
.e28-h4__accroche { font-size: 17px; line-height: 27px; margin: 0; }
.e28-h4__legende { font-size: 14px; line-height: 21px; color: var(--e28-text-muted); margin: 0 0 22px; }
.e28-h4__voies {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 21px;
  color: var(--e28-text-muted);
}
.e28-h4__voies img { flex: none; margin-top: 3px; }
.e28-h4__vide { color: var(--e28-text-muted); }

.e28-h4-intro__corps { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.e28-h4-intro .e28-intro { max-width: none; }
.e28-h4-citation {
  margin: 0;
  padding: 24px 26px;
  border-radius: var(--e28-radius-lg);
  background: var(--e28-h4);
  color: var(--e28-surface);
}
.e28-h4-citation p { margin: 0; font-size: 16px; line-height: 26px; color: var(--e28-surface); }
.e28-h4-citation footer { margin-top: 14px; font-size: 13px; line-height: 19px; color: var(--e28-secondary); }
.e28-h4-chiffres .e28-chiffre { background: color-mix(in srgb, var(--e28-h4) 12%, #fff); }
.e28-h4-chiffres .e28-chiffre b { color: var(--e28-h4); }

.e28-h4-bande { background: var(--e28-h4-creme); }
.e28-h4-bande h3 { font-family: var(--e28-font-titre); font-size: 46px; line-height: 52px; color: var(--e28-h4); }
.e28-h4-bande .e28-bloc__titre { color: var(--e28-h4); font-size: 34px; line-height: 42px; }
.e28-h4-bande--accueil .e28-intro { max-width: 860px; }

.e28-h4-sites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e28-h4-site {
  padding: 22px 22px 24px;
  border-radius: var(--e28-radius-lg);
  background: var(--e28-surface);
  border-top: 4px solid var(--e28-h4);
}
.e28-h4-site h3 { font-size: 22px; line-height: 28px; margin: 10px 0 0; color: var(--e28-h4); }
.e28-h4-site__commune {
  margin: 2px 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--e28-text-muted);
}
.e28-h4-site p { font-size: 15px; line-height: 23px; margin: 0; }
/* La grille du dépliant alterne rose poudré et vert d'eau : la même alternance ici. */
.e28-h4-site:nth-child(3n + 2) { background: color-mix(in srgb, var(--e28-secondary) 45%, #fff); }
.e28-h4-site:nth-child(3n) { background: color-mix(in srgb, var(--e28-h4-vert) 40%, #fff); }
.e28-h4-sites--fiche { background: none; }

.e28-h4-boucle { border-top: 1px solid var(--e28-border); }
.e28-h4-boucle__entete { margin-bottom: 24px; }
.e28-h4-boucle__corps { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-bottom: 26px; }
.e28-h4-boucle .e28-stats { margin-top: 0; }
.e28-h4-boucle .e28-stat { background: color-mix(in srgb, var(--e28-h4) 8%, #fff); }
.e28-etapes--h4 .e28-etape__num { background: var(--e28-h4); }
.e28-h4__soustitre { margin-top: 24px; font-size: 24px; line-height: 32px; }

.e28-h4-jalons { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.e28-h4-jalons li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--e28-border);
}
.e28-h4-jalons img { grid-row: span 2; align-self: center; }
.e28-h4-jalons b { font-size: 15px; line-height: 22px; font-weight: 800; }
.e28-h4-jalons span { grid-column: 2; font-size: 13px; line-height: 18px; color: var(--e28-text-muted); }

.e28-h4-fiche .e28-stat { background: color-mix(in srgb, var(--e28-h4) 8%, #fff); }
.e28-pastille--h4 { --e28-act: var(--e28-h4); }
.e28-bouton--h4 { background: var(--e28-h4); }
.e28-bouton--h4:hover { background: var(--e28-h4-clair); }
.e28-h4-liens b { color: var(--e28-h4); }
.e28-h4-liens span { color: var(--e28-text); }
.e28-h4-voies .e28-apres { background: color-mix(in srgb, var(--e28-h4) 10%, #fff); }
.e28-h4-voies .e28-avant { background: color-mix(in srgb, var(--e28-h4-vert) 30%, #fff); }

/* ------------------------------------------------------------------ 1024 px */
@media (max-width: 1024px) {
  :root { --e28-largeur: 1024px; }
  .e28-tuiles, .e28-grille, .e28-grille--4, .e28-escapades, .e28-autour { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e28-h4-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e28-h4-intro__corps, .e28-h4-boucle__corps { grid-template-columns: 1fr; }
  .e28-venir { grid-template-columns: 1fr; }
  .e28-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e28-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ 767 px */
@media (max-width: 767px) {
  :root { --e28-largeur: 767px; }
  body { font-size: 16px; line-height: 24px; }
  h1 { font-size: 50px; line-height: 55px; }
  .e28-display { font-size: 45px; line-height: 48px; }
  h2, h3, .e28-sous-titre { font-size: 22px; line-height: 32px; }
  .e28-bouton { font-size: 22px; min-height: 46px; }

  .e28-nav, .e28-header__social, .e28-recherche { display: none; }
  .e28-burger { display: block; }
  .e28-header__inner { gap: 12px; }
  .e28-nav.is-ouvert {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: var(--e28-primary);
    padding: 8px 0 16px;
  }
  .e28-nav.is-ouvert .e28-nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .e28-nav.is-ouvert .e28-nav__lien { padding: 10px 20px; text-shadow: none; }
  .e28-nav.is-ouvert .e28-nav__sous { position: static; display: block; margin: 0 0 6px; border-radius: 0; }
  .e28-nav.is-ouvert .e28-nav__sous a { padding: 6px 34px; font-size: 15px; font-weight: 500; }

  .e28-hero { height: 450px; }
  .e28-hero--accueil { aspect-ratio: auto; height: 66vh; min-height: 400px; max-height: none; }
  .e28-hero__titre { font-size: 38px; line-height: 42px; }
  .e28-hero__legende { bottom: 32px; }
  .e28-hero__marque { width: 120px; left: 20px; bottom: 24px; }

  .e28-section { padding: 40px 0; }
  .e28-section--large { padding: 52px 0; }
  .e28-bande { padding: 44px 0 50px; }

  .e28-tuiles, .e28-grille, .e28-grille--4, .e28-escapades, .e28-autour, .e28-avant-apres { grid-template-columns: 1fr; }
  .e28-tuiles { gap: 20px; }
  .e28-tuile { height: 260px; padding: 18px; }
  .e28-tuile__libelle { font-size: 24px; min-height: 58px; width: 100%; }
  .e28-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e28-chiffre b { font-size: 36px; line-height: 40px; }

  .e28-fiche__titre { font-size: 36px; line-height: 40px; }
  .e28-h4-sites { grid-template-columns: 1fr; }
  .e28-h4__titre, .e28-h4-bande h3 { font-size: 32px; line-height: 38px; }
  .e28-h4__baseline { font-size: 20px; line-height: 26px; }
  .e28-h4__sous { font-size: 20px; line-height: 28px; }
  .e28-galerie { grid-template-columns: 1fr; }
  .e28-galerie__reste { grid-template-rows: none; grid-template-columns: 1fr 1fr; }

  /* Mobile : le SDK pose un voile qui bascule la carte en plein écran au toucher.
     La hauteur reste confortable sans manger tout l'écran. */
  .e28-carte-bloc { height: 70vh; min-height: 440px; max-height: 560px; }
  .e28-carte-bloc--fiche { height: 480px; }
  .e28-carte-bloc--planificateur { height: auto; max-height: none; }

  .e28-footer__cols { grid-template-columns: 1fr; }
  .e28-recherche-grande { flex-direction: column; }
  .e28-recherche-grande input { border-radius: var(--e28-radius); border-right: 1px solid var(--e28-border); }
  .e28-recherche-grande button { margin-top: 10px; border-radius: var(--e28-radius); }
}
