/* =========================================================================
   ALGERIE VOYAGE — algerie-voyage.com
   Feuille de style unique. Aucune dependance, aucun framework.
   1. Tokens        5. Accueil        9. Encarts location
   2. Base & typo   6. Article       10. Pied de page
   3. En-tete       7. Rubriques     11. Petits ecrans
   4. Composants    8. Recherche
   ========================================================================= */

/* 1. TOKENS ============================================================== */
:root {
  /* Terres et sables */
  --encre:     #241A12;
  --encre-2:   #4E3D2E;
  --encre-3:   #6E5C49;
  --encre-4:   #A6947E;
  --sable:     #FAF4E9;
  --sable-2:   #F2E8D6;
  --sable-3:   #E8DAC1;
  --trait:     #DCCBAF;
  --trait-fin: #EADFC9;

  /* Couleurs de rubrique */
  --terre:     #A8442A;
  --turquoise: #16697A;
  --ocre:      #855510;
  --olive:     #4F6B2A;
  --prune:     #7A3350;

  --accent:      var(--terre);
  --accent-sur:  #FFF8ED;
  --accent-voile: color-mix(in srgb, var(--accent) 12%, var(--sable));

  /* Bloc profond : reste sombre dans les deux themes */
  --nuit:       #241A12;
  --nuit-2:     #33261B;
  --nuit-clair: #FAF4E9;
  --nuit-doux:  #C3B29A;
  --nuit-trait: #4A3826;

  /* Typo */
  --titre: "Bricolage Grotesque", "Helvetica Neue", Helvetica, sans-serif;
  --texte: "Lora", Georgia, "Times New Roman", serif;
  --ui:    "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Mesures */
  --page:    1200px;
  --large:   1400px;
  --colonne: 660px;
  --marge:   clamp(1.15rem, 4vw, 3rem);
  --espace:  clamp(1.15rem, 2.2vw, 1.85rem);
  --souffle: clamp(3.5rem, 7vw, 6.5rem);

  /* L arche : le motif de forme du site */
  --arche: 999px 999px 10px 10px;

  --relief-1: 0 1px 2px rgba(36, 26, 18, .07);
  --relief-2: 0 3px 6px rgba(36, 26, 18, .06), 0 12px 28px -14px rgba(36, 26, 18, .22);
  --relief-3: 0 6px 12px rgba(36, 26, 18, .08), 0 24px 48px -20px rgba(36, 26, 18, .34);

  --t: 220ms cubic-bezier(.25, .6, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --encre:     #F3E9DA;
    --encre-2:   #D3C2AB;
    --encre-3:   #A08E78;
    --encre-4:   #786852;
    --sable:     #171009;
    --sable-2:   #211810;
    --sable-3:   #2D2116;
    --trait:     #3C2D1E;
    --trait-fin: #2A1F15;
    --terre:     #E28063;
    --turquoise: #57B3C0;
    --ocre:      #D6A44A;
    --olive:     #93B85E;
    --prune:     #D089A6;
    --accent-sur: #171009;
    --nuit:       #241A12;
    --nuit-2:     #33261B;
    --relief-1: 0 1px 2px rgba(0, 0, 0, .35);
    --relief-2: 0 3px 6px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .55);
    --relief-3: 0 6px 12px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .65);
  }
}
[data-theme="dark"] {
  --encre:     #F3E9DA;
  --encre-2:   #D3C2AB;
  --encre-3:   #A08E78;
  --encre-4:   #786852;
  --sable:     #171009;
  --sable-2:   #211810;
  --sable-3:   #2D2116;
  --trait:     #3C2D1E;
  --trait-fin: #2A1F15;
  --terre:     #E28063;
  --turquoise: #57B3C0;
  --ocre:      #D6A44A;
  --olive:     #93B85E;
  --prune:     #D089A6;
  --accent-sur: #171009;
  --relief-1: 0 1px 2px rgba(0, 0, 0, .35);
  --relief-2: 0 3px 6px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .55);
  --relief-3: 0 6px 12px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .65);
}

.c-terre     { --accent: var(--terre); }
.c-turquoise { --accent: var(--turquoise); }
.c-ocre      { --accent: var(--ocre); }
.c-olive     { --accent: var(--olive); }
.c-prune     { --accent: var(--prune); }

/* 2. BASE & TYPO ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--accent-sur); }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--trait); margin: var(--souffle) 0; }

.zone {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--marge);
}
.zone--large { max-width: var(--large); }
.zone--texte { max-width: calc(var(--colonne) + 2 * var(--marge)); }

/* Bandeau de motif amazigh, utilise en separateur */
.frise-motif {
  height: 16px;
  background-image:
    linear-gradient(135deg, var(--accent) 25%, transparent 25%),
    linear-gradient(225deg, var(--accent) 25%, transparent 25%);
  background-size: 16px 16px;
  background-position: 0 0;
  opacity: .35;
}

/* Micro-typographie */
.mention {
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.mention::before {
  content: "";
  width: 9px; height: 9px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.mention--nu::before { display: none; }

.details {
  font-family: var(--ui);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--encre-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.details > * + *::before { content: "·"; margin-right: .5rem; color: var(--encre-4); }

.intro {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.62;
  color: var(--encre-2);
}

.entete-bloc {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.entete-bloc h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); }
.entete-bloc p {
  margin: .6rem 0 0;
  color: var(--encre-3);
  font-size: .9375rem;
  max-width: 54ch;
}
.suite {
  font-family: var(--ui);
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--t);
}
.suite:hover { opacity: .65; }

/* 3. EN-TETE ============================================================= */
.saut {
  position: absolute;
  left: -9999px;
  background: var(--nuit);
  color: var(--nuit-clair);
  padding: .8rem 1.2rem;
  border-radius: 6px;
  z-index: 200;
  font-family: var(--ui);
  font-weight: 600;
}
.saut:focus { left: .75rem; top: .75rem; }

.barre {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sable) 90%, transparent);
  backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--trait-fin);
}
.barre__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.375rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--encre);
  flex: none;
}
.logo__signe { flex: none; }
.logo__texte { display: flex; flex-direction: column; line-height: 1.02; }
.logo__nom {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.logo__nom em { font-style: normal; color: var(--terre); }
.logo__slogan {
  font-family: var(--ui);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-top: .28rem;
}

.menu { display: flex; align-items: center; gap: .15rem; }
.menu a {
  font-family: var(--ui);
  font-size: .875rem;
  font-weight: 600;
  color: var(--encre-2);
  text-decoration: none;
  padding: .5rem .8rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.menu a:hover { background: var(--sable-2); color: var(--encre); }
.menu a[aria-current="page"] { color: var(--accent); background: var(--accent-voile); }
.menu a.appel {
  background: var(--terre);
  color: #FFF8ED;
  padding: .62rem 1.1rem;
  margin-left: .5rem;
  border-radius: 999px;
  box-shadow: var(--relief-1);
}
.menu a.appel:hover { background: var(--encre); color: var(--sable); }

.outils { display: flex; align-items: center; gap: .35rem; flex: none; }
.rond {
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--trait);
  color: var(--encre-2);
  width: 2.4rem; height: 2.4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.rond:hover { background: var(--sable-2); border-color: var(--encre-4); color: var(--encre); }
.rond svg { width: 18px; height: 18px; }

.ouvrir-menu { display: none; }
@media (max-width: 1060px) {
  .menu { display: none; }
  .ouvrir-menu { display: inline-grid; }
}

.menu-mobile { display: none; border-top: 1px solid var(--trait-fin); background: var(--sable); }
.menu-mobile[data-ouvert="true"] { display: block; }
.menu-mobile ul { list-style: none; margin: 0; padding: .85rem 0 1.5rem; display: grid; gap: .35rem; }
.menu-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--titre);
  font-size: 1.1875rem;
  font-weight: 700;
  background: var(--sable-2);
}
.menu-mobile a .no { font-family: var(--ui); font-size: .75rem; font-weight: 700; color: var(--encre-4); }
.menu-mobile a.appel { background: var(--terre); color: #FFF8ED; }
.menu-mobile a.appel .no { color: rgba(255, 248, 237, .7); }

/* 4. COMPOSANTS ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ui);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--terre { background: var(--terre); color: #FFF8ED; box-shadow: var(--relief-2); }
.btn--terre:hover { background: #8E3722; }
.btn--encre { background: var(--nuit); color: var(--nuit-clair); box-shadow: var(--relief-2); }
.btn--encre:hover { background: var(--nuit-2); }
.btn--contour { border-color: var(--trait); color: var(--encre); background: transparent; }
.btn--contour:hover { border-color: var(--encre); background: var(--sable-2); }
.btn--clair { background: var(--nuit-clair); color: var(--nuit); }
.btn--clair:hover { background: #fff; }

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--accent-voile);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  text-decoration: none;
}

/* La carte-arche : le composant signature du site --------------------- */
.arche {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform var(--t);
}
.arche:hover { transform: translateY(-4px); }
.arche__image {
  aspect-ratio: 3 / 4;
  border-radius: var(--arche);
  overflow: hidden;
  background: var(--sable-2);
  border: 1px solid var(--trait);
  box-shadow: var(--relief-1);
  transition: box-shadow var(--t), border-color var(--t);
}
.arche:hover .arche__image {
  box-shadow: var(--relief-3);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--trait));
}
.arche__image svg { width: 100%; height: 100%; object-fit: cover; }
.arche__corps { padding: 1.1rem .35rem 0; display: flex; flex-direction: column; gap: .45rem; }
.arche__titre { font-size: 1.1875rem; line-height: 1.2; }
.arche:hover .arche__titre { color: var(--accent); }
.arche__note { font-size: .9375rem; color: var(--encre-2); margin: 0; line-height: 1.5; }

/* Fiche classique (guides pratiques) ------------------------------------ */
.fiche {
  display: flex;
  flex-direction: column;
  background: var(--sable);
  border: 1px solid var(--trait);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.fiche:hover {
  transform: translateY(-3px);
  box-shadow: var(--relief-2);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--trait));
}
.fiche__image { aspect-ratio: 16 / 10; background: var(--sable-2); border-bottom: 1px solid var(--trait-fin); overflow: hidden; }
.fiche__image svg { width: 100%; height: 100%; object-fit: cover; }
.fiche__corps { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.fiche__titre { font-size: 1.125rem; line-height: 1.22; }
.fiche:hover .fiche__titre { color: var(--accent); }
.fiche__extrait { font-size: .9375rem; color: var(--encre-2); line-height: 1.55; margin: 0; flex: 1; }

/* Rangee (listes de rubrique) -------------------------------------------- */
.rangees { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.rangee {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.6vw, 2.25rem);
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--trait-fin);
  transition: transform var(--t);
}
.rangee:hover { transform: translateX(4px); }
.rangee__image {
  border-radius: 14px;
  overflow: hidden;
  background: var(--sable-2);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--trait);
}
.rangee__image svg { width: 100%; height: 100%; object-fit: cover; }
.rangee__corps { display: flex; flex-direction: column; gap: .6rem; }
.rangee__corps h2 { font-size: clamp(1.1875rem, 2.2vw, 1.5rem); }
.rangee:hover h2 { color: var(--accent); }
.rangee__corps p { margin: 0; color: var(--encre-2); font-size: .9375rem; max-width: 66ch; }
@media (max-width: 720px) { .rangee { grid-template-columns: 1fr; } }

/* Grilles ----------------------------------------------------------------- */
.grille { display: grid; gap: var(--espace); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grille--2, .grille--3 { grid-template-columns: 1fr; }
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
}

/* 5. ACCUEIL ============================================================= */
.affiche {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--nuit);
  color: var(--nuit-clair);
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  isolation: isolate;
}
.affiche__fond { position: absolute; inset: 0; z-index: -2; }
.affiche__fond svg { width: 100%; height: 100%; object-fit: cover; }
.affiche__voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(36, 26, 18, .94) 0 34%,
    rgba(36, 26, 18, .78) 56%,
    rgba(36, 26, 18, .34) 82%,
    rgba(36, 26, 18, .12) 100%);
}
.affiche__inner {
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
  max-width: 46rem;
  position: relative;
}
.affiche h1 {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 1rem 0 1.25rem;
  color: var(--nuit-clair);
}
.affiche p { color: var(--nuit-doux); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); max-width: 48ch; margin: 0 0 2rem; }
.affiche .mention { color: #E28063; }
.affiche__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Bandeau de repères sous l affiche */
.reperes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 1.25rem;
}
@media (max-width: 860px) { .reperes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .reperes { grid-template-columns: 1fr; } }
.repere { background: var(--sable); padding: 1.15rem 1.25rem; }
.repere dt {
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: .45rem;
}
.repere dd {
  margin: 0;
  font-family: var(--titre);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.15;
}
.repere p { margin: .4rem 0 0; font-size: .8125rem; color: var(--encre-3); line-height: 1.45; }

/* Bandeau rubriques ------------------------------------------------------- */
.rubriques { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
@media (max-width: 1000px) { .rubriques { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .rubriques { grid-template-columns: repeat(2, 1fr); } }
.rubrique {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 16px;
  background: var(--sable-2);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.rubrique:hover {
  background: var(--accent-voile);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  transform: translateY(-3px);
}
.rubrique__icone {
  width: 2.6rem; height: 2.6rem;
  border-radius: 999px 999px 8px 8px;
  background: var(--sable);
  border: 1px solid var(--trait);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.rubrique__icone svg { width: 20px; height: 20px; }
.rubrique__no { font-family: var(--ui); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; color: var(--encre-4); }
.rubrique__nom { font-family: var(--titre); font-weight: 700; font-size: 1.0625rem; line-height: 1.18; }

/* Saisons ------------------------------------------------------------------ */
.saisons { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--espace); }
@media (max-width: 900px) { .saisons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .saisons { grid-template-columns: 1fr; } }
.saison {
  border: 1px solid var(--trait);
  border-radius: 16px;
  padding: 1.35rem;
  background: var(--sable);
}
.saison__mois {
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.saison h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.saison p { margin: 0; font-size: .9375rem; color: var(--encre-2); line-height: 1.55; }
.saison__barre { height: 6px; border-radius: 3px; background: var(--accent); opacity: .85; margin-bottom: 1rem; }

/* 6. ARTICLE ============================================================= */
.article-tete { padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
.fil {
  font-family: var(--ui);
  font-size: .8125rem;
  color: var(--encre-3);
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1.35rem;
}
.fil a { color: var(--encre-3); text-decoration: none; }
.fil a:hover { color: var(--accent); }
.fil span[aria-hidden] { color: var(--encre-4); }

.article-tete h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.04;
  margin: .9rem 0 1.15rem;
  max-width: 21ch;
}
.article-tete .intro { max-width: 62ch; }
.article-tete__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
}
.partage { display: flex; gap: .4rem; }

.article-visuel { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.article-visuel figure { margin: 0; }
.article-visuel svg {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--trait);
}
figcaption { font-family: var(--ui); font-size: .8125rem; color: var(--encre-3); margin-top: .75rem; line-height: 1.5; }

.article-corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: var(--souffle);
}
@media (max-width: 1040px) { .article-corps { grid-template-columns: minmax(0, 1fr); } }

.texte { max-width: var(--colonne); font-size: 1.125rem; }
.texte > * + * { margin-top: 1.3em; }
.texte p { margin: 0; }
.texte h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-top: 2.4em;
  margin-bottom: -.05em;
  scroll-margin-top: 5.5rem;
  position: relative;
  padding-left: 1.15rem;
}
.texte h2::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 11px; height: 11px;
  background: var(--accent);
  transform: rotate(45deg);
}
.texte h3 { font-size: 1.3125rem; margin-top: 2em; margin-bottom: -.4em; }
.texte h4 {
  font-family: var(--ui);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-top: 2em;
  margin-bottom: -.5em;
}
.texte ul, .texte ol { margin-left: 0; padding-left: 1.4rem; }
.texte li + li { margin-top: .5em; }
.texte li::marker { color: var(--accent); font-weight: 700; }
.texte a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.texte a:hover { text-decoration-thickness: 3px; }
.texte strong { font-weight: 700; }
.texte blockquote {
  margin: 2em 0;
  padding: 1.35rem 1.65rem;
  background: var(--sable-2);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--encre-2);
}
.texte blockquote p { margin: 0; }
.texte code { font-family: ui-monospace, Menlo, monospace; font-size: .875em; background: var(--sable-3); padding: .14em .38em; border-radius: 5px; }

.tableau {
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: 16px;
  margin-block: 2em;
  -webkit-overflow-scrolling: touch;
}
.texte table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: .9375rem; min-width: 480px; }
.texte th, .texte td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--trait-fin); vertical-align: top; }
.texte thead th {
  background: var(--sable-2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--encre-2);
  white-space: nowrap;
}
.texte tbody tr:last-child td, .texte tbody tr:last-child th { border-bottom: 0; }
.texte tbody tr:hover { background: var(--sable-2); }

/* Encadres ---------------------------------------------------------------- */
.encadre {
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin-block: 2.25em;
  background: var(--accent-voile);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 1rem;
}
.encadre > * + * { margin-top: .85em; }
.encadre p { margin: 0; }
.encadre__titre {
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75em;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.encadre__titre::before {
  content: "";
  width: 9px; height: 9px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.encadre ul, .encadre ol { margin: 0; padding-left: 1.25rem; }
.encadre--alerte { --accent: var(--terre); }
.encadre--verif {
  background: var(--sable-2);
  border-color: var(--trait);
  font-size: .9375rem;
  color: var(--encre-2);
}
.encadre--verif .encadre__titre { color: var(--encre-3); }

.cocher { list-style: none; padding-left: 0; }
.cocher li { position: relative; padding-left: 1.9rem; }
.cocher li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .85rem; height: .85rem;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: .85;
}

/* Etapes ------------------------------------------------------------------- */
.etapes { list-style: none; counter-reset: e; margin: 2.25em 0; padding: 0; }
.etapes li {
  counter-increment: e;
  position: relative;
  padding-left: 3.6rem;
  padding-bottom: 1.7rem;
}
.etapes li::before {
  content: counter(e, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px 999px 6px 6px;
  background: var(--accent);
  color: var(--accent-sur);
  display: grid;
  place-items: center;
  font-family: var(--ui);
  font-size: .8125rem;
  font-weight: 700;
}
.etapes li::after {
  content: "";
  position: absolute;
  left: 1.2rem; top: 2.8rem; bottom: .5rem;
  width: 2px;
  background: var(--trait);
}
.etapes li:last-child { padding-bottom: 0; }
.etapes li:last-child::after { display: none; }
.etapes h3 { font-size: 1.125rem; margin: .35rem 0 .35rem; }
.etapes p { margin: 0; color: var(--encre-2); font-size: 1rem; }

/* Questions ----------------------------------------------------------------- */
.questions { margin-block: 2.25em; display: grid; gap: .6rem; }
.questions details {
  border: 1px solid var(--trait);
  border-radius: 16px;
  background: var(--sable);
  overflow: hidden;
}
.questions details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--trait)); background: var(--sable-2); }
.questions summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.35rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.0625rem;
  position: relative;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--accent); }
.questions summary::after {
  content: "";
  position: absolute;
  right: 1.4rem; top: 1.4rem;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--t);
}
.questions details[open] summary::after { transform: rotate(-135deg); top: 1.65rem; }
.questions details > div { padding: 0 1.35rem 1.3rem; color: var(--encre-2); max-width: 68ch; }
.questions details > div > * + * { margin-top: .9em; }
.questions details > div p { margin: 0; }

/* Colonne laterale ------------------------------------------------------------ */
.laterale { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 1040px) { .laterale { position: static; } }

.sommaire { background: var(--sable-2); border-radius: 18px; padding: 1.3rem 1.4rem; }
.sommaire__titre {
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: .9rem;
}
.sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: .1rem; }
.sommaire li { counter-increment: s; }
.sommaire a {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .5rem;
  padding: .45rem .5rem;
  border-radius: 8px;
  font-family: var(--ui);
  font-size: .875rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--encre-2);
  transition: background var(--t), color var(--t);
}
.sommaire a::before { content: counter(s, decimal-leading-zero); color: var(--encre-4); font-size: .75rem; font-weight: 700; }
.sommaire a:hover, .sommaire a.actif { background: var(--sable); color: var(--accent); }
.sommaire a.actif { font-weight: 700; }
.sommaire a.actif::before { color: var(--accent); }

/* 7. RUBRIQUES ================================================================= */
.page-tete { padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem); }
.page-tete__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
@media (max-width: 820px) { .page-tete__grille { grid-template-columns: 1fr; align-items: start; } }
.page-tete h1 { font-size: clamp(2.125rem, 5.5vw, 3.5rem); line-height: 1.02; margin: .8rem 0 0; }
.page-tete__insigne {
  width: 3.4rem; height: 3.4rem;
  border-radius: 999px 999px 8px 8px;
  background: var(--accent-voile);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  margin-bottom: 1.15rem;
}
.page-tete__insigne svg { width: 26px; height: 26px; }
.page-tete .intro { margin: 0; }
.page-tete__compte { font-family: var(--ui); font-size: .8125rem; color: var(--encre-3); margin-top: .9rem; }

/* 8. RECHERCHE ================================================================== */
.champ {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--sable);
  border: 2px solid var(--trait);
  border-radius: 999px;
  padding: .3rem .35rem .3rem 1.2rem;
  max-width: 580px;
  transition: border-color var(--t);
}
.champ:focus-within { border-color: var(--accent); }
.champ input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--encre);
  padding: .7rem 0;
  min-width: 0;
}
.champ input:focus { outline: none; }
.champ input::placeholder { color: var(--encre-4); }
.champ > svg { width: 19px; height: 19px; color: var(--encre-3); flex: none; }

.voile {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--sable) 95%, transparent);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: none;
  padding: clamp(3rem, 10vh, 7rem) var(--marge) 2rem;
  overflow-y: auto;
}
.voile[data-ouvert="true"] { display: block; }
.voile__inner { max-width: 720px; margin-inline: auto; }
.voile .champ { max-width: none; }
.fermer { position: absolute; top: 1.35rem; right: var(--marge); }

.resultats { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.resultats a {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--sable-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.resultats a:hover { background: var(--sable); border-color: var(--trait); transform: translateX(4px); }
.resultats h3 { font-size: 1.0625rem; margin-bottom: .3rem; }
.resultats a:hover h3 { color: var(--accent); }
.resultats p { margin: 0; font-family: var(--ui); font-size: .875rem; color: var(--encre-3); line-height: 1.5; }
.etat { font-family: var(--ui); color: var(--encre-3); font-size: .9375rem; padding: 1.5rem 0 0; }
mark { background: color-mix(in srgb, var(--ocre) 30%, transparent); color: inherit; padding: 0 .12em; border-radius: 3px; }

/* 9. ENCARTS LOCATION ==================================================== */
.encart-loc {
  border-radius: 20px;
  border: 1px solid var(--trait);
  background: var(--sable);
  overflow: hidden;
  box-shadow: var(--relief-1);
}
.encart-loc__haut {
  background: var(--nuit);
  color: var(--nuit-clair);
  padding: 1.2rem 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
}
.encart-loc__haut::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 68, 42, .45), transparent 70%);
}
.encart-loc__label {
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nuit-doux);
  margin: 0 0 .5rem;
  position: relative;
}
.encart-loc__nom {
  font-family: var(--titre);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0;
  position: relative;
}
.encart-loc__ville { font-family: var(--ui); font-size: .8125rem; color: var(--nuit-doux); margin: .3rem 0 0; position: relative; }
.encart-loc__bas { padding: 1.25rem 1.4rem 1.45rem; }
.encart-loc__bas > p { margin: 0 0 1.15rem; font-size: .9375rem; color: var(--encre-2); line-height: 1.55; }
.encart-loc ul {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-family: var(--ui);
  font-size: .875rem;
  color: var(--encre-2);
}
.encart-loc li { display: flex; align-items: flex-start; gap: .6rem; }
.encart-loc li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--olive);
  transform: rotate(45deg);
  flex: none;
  margin-top: .5rem;
}
.encart-loc .btn { width: 100%; justify-content: center; }
.encart-loc__mention {
  font-family: var(--ui);
  font-size: .6875rem;
  color: var(--encre-4);
  text-align: center;
  margin: .85rem 0 0;
  line-height: 1.45;
}

/* Bandeau location large -------------------------------------------------- */
.bandeau-loc {
  background: var(--nuit);
  color: var(--nuit-clair);
  border-radius: 26px;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bandeau-loc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(135deg, rgba(195, 178, 154, .09) 25%, transparent 25%),
    linear-gradient(225deg, rgba(195, 178, 154, .09) 25%, transparent 25%);
  background-size: 28px 28px;
}
.bandeau-loc::after {
  content: "";
  position: absolute;
  right: -6%; top: -40%;
  width: min(48%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 68, 42, .38), transparent 68%);
  z-index: -1;
}
.bandeau-loc__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
@media (max-width: 880px) { .bandeau-loc__grille { grid-template-columns: 1fr; } }
.bandeau-loc .mention { color: #E28063; }
.bandeau-loc h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); margin: .85rem 0 1rem; color: var(--nuit-clair); }
.bandeau-loc p { color: var(--nuit-doux); max-width: 56ch; margin: 0 0 1.85rem; }
.bandeau-loc__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.bandeau-loc__mention { font-family: var(--ui); font-size: .78125rem; color: var(--nuit-doux); opacity: .8; margin-top: 1.35rem; }
.bandeau-loc__carte {
  background: rgba(250, 244, 233, .06);
  border: 1px solid var(--nuit-trait);
  border-radius: 18px;
  padding: 1.5rem;
  font-family: var(--ui);
}
.bandeau-loc__carte dl { margin: 0; display: grid; gap: 1rem; }
.bandeau-loc__carte .ligne {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--nuit-trait);
}
.bandeau-loc__carte .ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.bandeau-loc__carte dt { margin: 0; color: var(--nuit-doux); }
.bandeau-loc__carte dd { margin: 0; font-weight: 700; text-align: right; }

/* Precedent / suivant ------------------------------------------------------- */
.prec-suiv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--espace); margin-top: var(--souffle); }
@media (max-width: 640px) { .prec-suiv { grid-template-columns: 1fr; } }
.prec-suiv a {
  padding: 1.4rem 1.55rem;
  border-radius: 18px;
  border: 1px solid var(--trait);
  background: var(--sable);
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.prec-suiv a:hover { transform: translateY(-3px); box-shadow: var(--relief-2); border-color: var(--encre-4); }
.prec-suiv .sens {
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--encre-3);
  display: block;
  margin-bottom: .6rem;
}
.prec-suiv h3 { font-size: 1.0625rem; line-height: 1.25; }
.prec-suiv a:hover h3 { color: var(--accent); }
.prec-suiv .suivant { text-align: right; }

/* 10. PIED DE PAGE ============================================================ */
.pied {
  background: var(--nuit);
  color: var(--nuit-clair);
  padding-block: clamp(2.75rem, 5vw, 4.25rem) 2rem;
  margin-top: var(--souffle);
}
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--nuit-trait);
}
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pied__grille { grid-template-columns: 1fr; } }
.pied h3 {
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nuit-doux);
  margin-bottom: 1rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied a { font-family: var(--ui); font-size: .9375rem; color: var(--nuit-clair); text-decoration: none; opacity: .85; transition: opacity var(--t); }
.pied a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.pied .logo { color: var(--nuit-clair); }
.pied .logo__nom em { color: #E28063; }
.pied .logo__slogan { color: var(--nuit-doux); }
.pied__presentation p { font-size: .9375rem; color: var(--nuit-doux); line-height: 1.65; max-width: 44ch; margin: 1rem 0 0; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-family: var(--ui);
  font-size: .8125rem;
  color: var(--nuit-doux);
}
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pied__bas a { font-size: .8125rem; color: var(--nuit-doux); }

/* 404 -------------------------------------------------------------------------- */
.erreur { min-height: 54vh; display: grid; place-items: center; text-align: center; padding-block: var(--souffle); }
.erreur__code {
  font-family: var(--titre);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  color: var(--trait);
  line-height: .9;
}
.erreur h1 { font-size: clamp(1.375rem, 3vw, 1.875rem); margin: 1rem 0 .75rem; }
.erreur p { color: var(--encre-2); max-width: 46ch; margin: 0 auto 1.85rem; }
.erreur__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Utilitaires -------------------------------------------------------------------- */
.hors-ecran {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.souffle { padding-block: var(--souffle); }
.souffle-haut { padding-top: var(--souffle); }

/* 11. PETITS ECRANS ================================================================ */
@media (max-width: 900px) {
  /* En portrait, un degrade horizontal ne couvre plus le texte :
     on bascule sur un degrade vertical, plus opaque. */
  .affiche__voile {
    background: linear-gradient(180deg,
      rgba(36, 26, 18, .92) 0 55%,
      rgba(36, 26, 18, .86) 78%,
      rgba(36, 26, 18, .6) 100%);
  }
}

@media (max-width: 620px) {
  .logo__slogan { display: none; }
  .logo__nom { font-size: 1.125rem; }
  .outils { gap: .25rem; }
  .rond { width: 2.25rem; height: 2.25rem; }
  .barre__inner { min-height: 3.9rem; }
  .affiche { border-radius: 18px; }
  .bandeau-loc { border-radius: 18px; }
  .article-visuel svg { aspect-ratio: 3 / 2; border-radius: 16px; }
  .arche__image { aspect-ratio: 4 / 5; }
}

/* Impression ------------------------------------------------------------------------ */

/* En-tete de section : passage en colonne sur petit ecran, le lien
   "voir plus" en nowrap depassait sinon la largeur de l ecran. */
@media (max-width: 620px) {
  .entete-bloc { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .suite { white-space: normal; }
}

@media print {
  .barre, .menu-mobile, .laterale, .bandeau-loc, .pied, .prec-suiv, .voile, .rond { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-corps { display: block; }
  .texte { max-width: none; }
  a { color: #000; text-decoration: none; }
  .texte a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
