/* =========================================================================
   LOCATION ALGERIE APPARTEMENT — location-algerie-appartement.com
   Feuille de style unique. Aucune dependance, aucun framework.
   Parti pris : le plan d architecte. Fond millimetre, traits fins,
   cotations, fiches techniques.
   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 {
  --encre:     #10203A;
  --encre-2:   #3B4B63;
  --gris-3:    #586780;
  --gris-4:    #98A6BC;
  --papier:    #FBFCFD;
  --papier-2:  #F1F5F9;
  --papier-3:  #E4EBF3;
  --trait:     #C7D3E2;
  --trait-fin: #E2E9F1;

  /* Couleurs de rubrique */
  --plan:      #275AA3;
  --corail:    #BE4A2A;
  --ambre:     #8A5F0B;
  --vert:      #146A4B;
  --ardoise:   #3B5270;

  --accent:      var(--plan);
  --accent-sur:  #FFFFFF;
  --accent-pale: color-mix(in srgb, var(--accent) 9%, var(--papier));

  /* Bloc profond */
  --nuit:      #10203A;
  --nuit-2:    #1B2E4C;
  --nuit-clair:#F1F5F9;
  --nuit-doux: #A3B3C9;
  --nuit-trait:#2E4265;

  /* Typo */
  --titre: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --texte: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tech:  "IBM Plex Sans", ui-monospace, Menlo, monospace;

  /* Mesures */
  --page:    1220px;
  --large:   1400px;
  --colonne: 670px;
  --marge:   clamp(1.15rem, 3.5vw, 2.5rem);
  --espace:  clamp(1rem, 2vw, 1.75rem);
  --souffle: clamp(3.25rem, 6.5vw, 5.75rem);

  --r: 4px;
  --r-l: 8px;

  --relief-1: 0 1px 2px rgba(16, 32, 58, .05);
  --relief-2: 0 2px 4px rgba(16, 32, 58, .05), 0 10px 24px -12px rgba(16, 32, 58, .2);
  --relief-3: 0 4px 8px rgba(16, 32, 58, .06), 0 20px 40px -18px rgba(16, 32, 58, .3);

  --t: 170ms cubic-bezier(.2, .6, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --encre:     #E9EFF6;
    --encre-2:   #BCC8D8;
    --gris-3:    #8695AC;
    --gris-4:    #5D6B82;
    --papier:    #0B1220;
    --papier-2:  #121B2C;
    --papier-3:  #1A2537;
    --trait:     #27354C;
    --trait-fin: #1B2637;
    --plan:      #74A8E8;
    --corail:    #EE8460;
    --ambre:     #D6A03C;
    --vert:      #4FBE92;
    --ardoise:   #97AEC9;
    --accent-sur: #0B1220;
    --nuit:      #16233A;
    --nuit-2:    #1F3050;
    --nuit-trait:#31435F;
    --relief-1: 0 1px 2px rgba(0, 0, 0, .35);
    --relief-2: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .55);
    --relief-3: 0 4px 8px rgba(0, 0, 0, .35), 0 20px 40px -18px rgba(0, 0, 0, .6);
  }
}
[data-theme="dark"] {
  --encre:     #E9EFF6;
  --encre-2:   #BCC8D8;
  --gris-3:    #8695AC;
  --gris-4:    #5D6B82;
  --papier:    #0B1220;
  --papier-2:  #121B2C;
  --papier-3:  #1A2537;
  --trait:     #27354C;
  --trait-fin: #1B2637;
  --plan:      #74A8E8;
  --corail:    #EE8460;
  --ambre:     #D6A03C;
  --vert:      #4FBE92;
  --ardoise:   #97AEC9;
  --accent-sur: #0B1220;
  --nuit:      #16233A;
  --nuit-2:    #1F3050;
  --nuit-trait:#31435F;
  --relief-1: 0 1px 2px rgba(0, 0, 0, .35);
  --relief-2: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .55);
  --relief-3: 0 4px 8px rgba(0, 0, 0, .35), 0 20px 40px -18px rgba(0, 0, 0, .6);
}

.s-plan    { --accent: var(--plan); }
.s-corail  { --accent: var(--corail); }
.s-ambre   { --accent: var(--ambre); }
.s-vert    { --accent: var(--vert); }
.s-ardoise { --accent: var(--ardoise); }

/* 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;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;

  /* Le fond millimetre : la signature du site */
  background-color: var(--papier);
  background-image:
    linear-gradient(to right, var(--trait-fin) 1px, transparent 1px),
    linear-gradient(to bottom, var(--trait-fin) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.021em;
  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: var(--r); }
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)); }

/* Surface : un bloc pose sur le papier millimetre */
.surface {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
}

/* Micro-typographie ------------------------------------------------------ */
.legende {
  font-family: var(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.legende::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  flex: none;
  position: relative;
}
.legende--nu::before { display: none; }

.meta {
  font-family: var(--tech);
  font-size: .78125rem;
  color: var(--gris-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.meta > * + *::before { content: "/"; margin-right: .5rem; color: var(--gris-4); }

.chapo {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--encre-2);
}

/* Titre de bloc, avec cotation */
.bloc-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: .9rem;
  position: relative;
}
.bloc-tete::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--trait);
}
.bloc-tete::before {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 1px; height: 9px;
  background: var(--accent);
}
.bloc-tete h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
.bloc-tete p { margin: .55rem 0 0; color: var(--gris-3); font-size: .9375rem; max-width: 54ch; }
.lien-plus {
  font-family: var(--tech);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--t);
}
.lien-plus::after { content: "→"; }
.lien-plus:hover { gap: .7rem; }

/* 3. EN-TETE ============================================================= */
.evitement {
  position: absolute;
  left: -9999px;
  background: var(--nuit);
  color: var(--nuit-clair);
  padding: .8rem 1.2rem;
  border-radius: var(--r);
  z-index: 200;
  font-weight: 600;
}
.evitement:focus { left: .75rem; top: .75rem; }

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--encre);
  flex: none;
}
.marque__plan { flex: none; }
.marque__mots { display: flex; flex-direction: column; line-height: 1.05; }
.marque__nom {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.032em;
}
.marque__nom span { color: var(--plan); }
.marque__note {
  font-family: var(--tech);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-top: .22rem;
}

.menu { display: flex; align-items: center; gap: .15rem; }
.menu a {
  font-family: var(--texte);
  font-size: .875rem;
  font-weight: 600;
  color: var(--encre-2);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: var(--r);
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.menu a:hover { background: var(--papier-2); color: var(--encre); }
.menu a[aria-current="page"] { color: var(--accent); background: var(--accent-pale); }
.menu a.appel {
  background: var(--corail);
  color: #fff;
  padding: .6rem 1.05rem;
  margin-left: .45rem;
  box-shadow: var(--relief-1);
}
.menu a.appel:hover { background: var(--encre); color: var(--papier); }

.outils { display: flex; align-items: center; gap: .35rem; flex: none; }
.bouton-carre {
  appearance: none;
  background: var(--papier);
  border: 1px solid var(--trait);
  color: var(--encre-2);
  width: 2.4rem; height: 2.4rem;
  border-radius: var(--r);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.bouton-carre:hover { background: var(--papier-2); border-color: var(--gris-4); color: var(--encre); }
.bouton-carre svg { width: 18px; height: 18px; }

.ouvrir-menu { display: none; }
@media (max-width: 1080px) {
  .menu { display: none; }
  .ouvrir-menu { display: inline-grid; }
}

.menu-mobile { display: none; border-top: 1px solid var(--trait); background: var(--papier); }
.menu-mobile[data-ouvert="true"] { display: block; }
.menu-mobile ul { list-style: none; margin: 0; padding: .75rem 0 1.35rem; display: grid; gap: .3rem; }
.menu-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--trait);
  border-radius: var(--r);
  background: var(--papier);
  text-decoration: none;
  font-family: var(--titre);
  font-size: 1.0625rem;
  font-weight: 700;
}
.menu-mobile a .no { font-family: var(--tech); font-size: .75rem; font-weight: 600; color: var(--gris-4); }
.menu-mobile a.appel { background: var(--corail); border-color: var(--corail); color: #fff; }
.menu-mobile a.appel .no { color: rgba(255,255,255,.72); }

/* 4. COMPOSANTS ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--texte);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.35rem;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--corail { background: var(--corail); color: #fff; box-shadow: var(--relief-1); }
.btn--corail:hover { background: #A03C21; }
.btn--encre { background: var(--nuit); color: var(--nuit-clair); }
.btn--encre:hover { background: var(--nuit-2); }
.btn--contour { border-color: var(--trait); color: var(--encre); background: var(--papier); }
.btn--contour:hover { border-color: var(--encre-2); background: var(--papier-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(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r);
  background: var(--accent-pale);
  color: var(--accent);
  text-decoration: none;
}

/* Cotation : une ligne de mesure, comme sur un plan --------------------- */
.cotation {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--tech);
  font-size: .75rem;
  color: var(--gris-3);
  margin: 0;
}
.cotation::before, .cotation::after {
  content: "";
  height: 1px;
  background: var(--trait);
  flex: 1;
  position: relative;
}

/* Fiche : le composant principal ---------------------------------------- */
.fiche {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  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) 45%, var(--trait));
}
.fiche__plan {
  aspect-ratio: 4 / 3;
  background: var(--papier-2);
  border-bottom: 1px solid var(--trait);
  overflow: hidden;
}
.fiche__plan svg { width: 100%; height: 100%; object-fit: cover; }
.fiche__corps { padding: 1.1rem 1.2rem 1.3rem; 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 ----------------------------------------------------------------- */
.rangees { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.rangee {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.6vw, 2rem);
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.rangee:hover {
  transform: translateY(-2px);
  box-shadow: var(--relief-2);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--trait));
}
.rangee__plan { border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--papier-2); }
.rangee__plan svg { width: 100%; height: 100%; object-fit: cover; }
.rangee__corps { display: flex; flex-direction: column; gap: .55rem; padding: .3rem .4rem .4rem 0; }
.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: minmax(0, 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: minmax(0, 1fr); }
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
}

/* 5. ACCUEIL ============================================================= */
.entree {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4.5vw, 3.75rem);
}
@media (max-width: 900px) { .entree { grid-template-columns: minmax(0, 1fr); } }
.entree h1 {
  font-size: clamp(2.125rem, 5vw, 3.375rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 1rem 0 1.15rem;
}
.entree p.chapo { max-width: 50ch; margin: 0 0 1.9rem; }
.entree__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.entree__plan {
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  background: var(--papier);
  overflow: hidden;
  box-shadow: var(--relief-2);
}
.entree__plan svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entree__plan figcaption {
  font-family: var(--tech);
  font-size: .6875rem;
  color: var(--gris-3);
  padding: .7rem 1rem;
  border-top: 1px solid var(--trait);
  border-left: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Bandeau de reperes chiffres ------------------------------------------- */
.reperes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  background: var(--papier);
  overflow: hidden;
}
@media (max-width: 860px) { .reperes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .reperes { grid-template-columns: minmax(0, 1fr); } }
.repere { padding: 1.2rem 1.35rem; border-right: 1px solid var(--trait); }
.repere:last-child { border-right: 0; }
@media (max-width: 860px) {
  .repere:nth-child(2n) { border-right: 0; }
  .repere:nth-child(-n+2) { border-bottom: 1px solid var(--trait); }
}
@media (max-width: 460px) {
  .repere { border-right: 0; border-bottom: 1px solid var(--trait); }
  .repere:last-child { border-bottom: 0; }
}
.repere dt {
  font-family: var(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-bottom: .5rem;
}
.repere dd {
  margin: 0;
  font-family: var(--titre);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}
.repere p { margin: .5rem 0 0; font-size: .8125rem; color: var(--gris-3); line-height: 1.5; }

/* Sommaire des rubriques ------------------------------------------------- */
.rubriques { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
@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: .5rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  background: var(--papier);
  text-decoration: none;
  color: inherit;
  transition: background var(--t), border-color var(--t), transform var(--t);
  position: relative;
}
.rubrique::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  border-radius: var(--r-l) var(--r-l) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.rubrique:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--trait)); transform: translateY(-2px); }
.rubrique:hover::before { transform: scaleX(1); }
.rubrique__no { font-family: var(--tech); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.rubrique__nom { font-family: var(--titre); font-weight: 700; font-size: 1.0625rem; line-height: 1.18; }
.rubrique__compte { font-family: var(--tech); font-size: .75rem; color: var(--gris-3); }

/* 6. ARTICLE ============================================================= */
.article-tete { padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem); }
.fil {
  font-family: var(--tech);
  font-size: .75rem;
  color: var(--gris-3);
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1.35rem;
}
.fil a { color: var(--gris-3); text-decoration: none; }
.fil a:hover { color: var(--accent); }

.article-tete h1 {
  font-size: clamp(2rem, 4.8vw, 3.125rem);
  line-height: 1.06;
  margin: .85rem 0 1.15rem;
  max-width: 21ch;
}
.article-tete .chapo { max-width: 62ch; }
.article-tete__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--trait);
}
.partage { display: flex; gap: .4rem; }

.article-plan { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.article-plan figure {
  margin: 0;
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--papier);
}
.article-plan svg { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
figcaption {
  font-family: var(--tech);
  font-size: .75rem;
  color: var(--gris-3);
  line-height: 1.5;
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--trait);
  background: var(--papier-2);
}

.article-corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 310px);
  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.4375rem, 2.6vw, 1.875rem);
  margin-top: 2.3em;
  margin-bottom: -.05em;
  scroll-margin-top: 5.5rem;
  padding-top: 1em;
  border-top: 1px solid var(--trait);
  position: relative;
}
.texte h2::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 42px; height: 3px;
  background: var(--accent);
}
.texte h3 { font-size: 1.25rem; margin-top: 1.9em; margin-bottom: -.4em; }
.texte h4 {
  font-family: var(--tech);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-top: 1.9em;
  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: 600; }
.texte blockquote {
  margin: 2em 0;
  padding: 1.3rem 1.5rem;
  background: var(--papier-2);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  font-size: 1.0625rem;
  color: var(--encre-2);
}
.texte blockquote p { margin: 0; }
.texte code { font-family: var(--tech); font-size: .875em; background: var(--papier-3); padding: .12em .38em; border-radius: 3px; }

/* Tableau : la fiche technique ------------------------------------------- */
.tableau {
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  margin-block: 2em;
  background: var(--papier);
  -webkit-overflow-scrolling: touch;
}
.texte table { width: 100%; border-collapse: collapse; font-family: var(--texte); font-size: .9375rem; min-width: 460px; }
.texte th, .texte td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--trait-fin); vertical-align: top; }
.texte thead th {
  background: var(--papier-2);
  font-family: var(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--encre-2);
  white-space: nowrap;
  border-bottom: 1px solid var(--trait);
}
.texte tbody tr:last-child td, .texte tbody tr:last-child th { border-bottom: 0; }
.texte tbody th { font-weight: 600; }
.texte tbody tr:hover { background: var(--papier-2); }

/* Encadres ---------------------------------------------------------------- */
.encadre {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--r-l);
  padding: 1.35rem 1.55rem;
  margin-block: 2.25em;
  background: var(--accent-pale);
  font-size: 1rem;
}
.encadre > * + * { margin-top: .85em; }
.encadre p { margin: 0; }
.encadre__titre {
  font-family: var(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75em;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.encadre__titre::before {
  content: "";
  width: 16px; height: 1px;
  background: currentColor;
  flex: none;
}
.encadre ul, .encadre ol { margin: 0; padding-left: 1.2rem; }
.encadre--alerte { --accent: var(--corail); }
.encadre--verif {
  background: var(--papier-2);
  border-color: var(--trait);
  font-size: .9375rem;
  color: var(--encre-2);
}
.encadre--verif .encadre__titre { color: var(--gris-3); }

/* Liste a cocher : cases de plan ------------------------------------------ */
.cocher { list-style: none; padding-left: 0; }
.cocher li { position: relative; padding-left: 2rem; }
.cocher li::before {
  content: "";
  position: absolute;
  left: 0; top: .4em;
  width: 1.15rem; height: 1.15rem;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}
.cocher li::after {
  content: "";
  position: absolute;
  left: .36rem; top: .58em;
  width: .34rem; height: .62rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* Etapes numerotees -------------------------------------------------------- */
.etapes { list-style: none; counter-reset: e; margin: 2.25em 0; padding: 0; }
.etapes li {
  counter-increment: e;
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 1.65rem;
}
.etapes li::before {
  content: counter(e, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--r);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--tech);
  font-size: .8125rem;
  font-weight: 600;
  background: var(--papier);
}
.etapes li::after {
  content: "";
  position: absolute;
  left: 1.2rem; top: 2.7rem; bottom: .4rem;
  width: 1px;
  background: var(--trait);
}
.etapes li:last-child { padding-bottom: 0; }
.etapes li:last-child::after { display: none; }
.etapes h3 { font-size: 1.125rem; margin: .3rem 0 .35rem; }
.etapes p { margin: 0; color: var(--encre-2); font-size: 1rem; }

/* Questions ---------------------------------------------------------------- */
.questions { margin-block: 2.25em; display: grid; gap: .55rem; }
.questions details {
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  background: var(--papier);
  overflow: hidden;
}
.questions details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--trait)); }
.questions summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  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.35rem; top: 1.4rem;
  width: 11px; height: 2px;
  background: var(--accent);
}
.questions summary::before {
  content: "";
  position: absolute;
  right: 1.8rem; top: 1rem;
  width: 2px; height: 11px;
  background: var(--accent);
  transition: transform var(--t), opacity var(--t);
}
.questions details[open] summary::before { transform: rotate(90deg); opacity: 0; }
.questions details > div { padding: 0 1.3rem 1.25rem; 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.35rem; }
@media (max-width: 1040px) { .laterale { position: static; } }

.sommaire {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  padding: 1.2rem 1.3rem;
}
.sommaire__titre {
  font-family: var(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-bottom: .85rem;
}
.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: .45rem;
  padding: .42rem .45rem;
  border-radius: var(--r);
  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); font-family: var(--tech); color: var(--gris-4); font-size: .75rem; font-weight: 600; }
.sommaire a:hover, .sommaire a.actif { background: var(--papier-2); color: var(--accent); }
.sommaire a.actif { font-weight: 600; }
.sommaire a.actif::before { color: var(--accent); }

/* 7. RUBRIQUES =============================================================== */
.page-tete { padding-block: clamp(1.75rem, 4vw, 3rem) 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: minmax(0, 1fr); align-items: start; } }
.page-tete h1 { font-size: clamp(2rem, 5vw, 3.125rem); line-height: 1.04; margin: .75rem 0 0; }
.page-tete .chapo { margin: 0; }
.page-tete__compte { font-family: var(--tech); font-size: .78125rem; color: var(--gris-3); margin-top: .85rem; }

/* 8. RECHERCHE =============================================================== */
.champ {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--papier);
  border: 1.5px solid var(--trait);
  border-radius: var(--r);
  padding: .3rem .35rem .3rem 1.05rem;
  max-width: 580px;
  transition: border-color var(--t), box-shadow var(--t);
}
.champ:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.champ input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--texte);
  font-size: 1rem;
  color: var(--encre);
  padding: .68rem 0;
  min-width: 0;
}
.champ input:focus { outline: none; }
.champ input::placeholder { color: var(--gris-4); }
.champ > svg { width: 18px; height: 18px; color: var(--gris-3); flex: none; }

.voile {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--papier) 95%, transparent);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: none;
  padding: clamp(3rem, 9vh, 6rem) 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.25rem; right: var(--marge); }

.resultats { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.resultats a {
  display: block;
  padding: .95rem 1.15rem;
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  background: var(--papier);
  text-decoration: none;
  transition: border-color var(--t), transform var(--t);
}
.resultats a:hover { border-color: var(--accent); transform: translateX(3px); }
.resultats h3 { font-size: 1.0625rem; margin-bottom: .3rem; }
.resultats a:hover h3 { color: var(--accent); }
.resultats p { margin: 0; font-size: .875rem; color: var(--gris-3); line-height: 1.5; }
.etat { font-family: var(--tech); color: var(--gris-3); font-size: .9375rem; padding: 1.5rem 0 0; }
mark { background: color-mix(in srgb, var(--ambre) 30%, transparent); color: inherit; padding: 0 .12em; border-radius: 2px; }

/* 9. ENCARTS LOCATION DE VEHICULE ======================================== */
.encart-loc {
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  background: var(--papier);
  overflow: hidden;
}
.encart-loc__haut {
  background: var(--nuit);
  color: var(--nuit-clair);
  padding: 1.1rem 1.3rem 1.2rem;
  position: relative;
}
.encart-loc__haut::after {
  content: "";
  position: absolute;
  left: 1.3rem; right: 1.3rem; bottom: 0;
  height: 1px;
  background: var(--corail);
}
.encart-loc__label {
  font-family: var(--tech);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nuit-doux);
  margin: 0 0 .5rem;
}
.encart-loc__nom { font-family: var(--titre); font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.026em; margin: 0; }
.encart-loc__ville { font-family: var(--tech); font-size: .78125rem; color: var(--nuit-doux); margin: .3rem 0 0; }
.encart-loc__bas { padding: 1.2rem 1.3rem 1.35rem; }
.encart-loc__bas > p { margin: 0 0 1.1rem; font-size: .9375rem; color: var(--encre-2); line-height: 1.55; }
.encart-loc ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .5rem; font-size: .875rem; color: var(--encre-2); }
.encart-loc li { display: grid; grid-template-columns: 1rem 1fr; gap: .6rem; align-items: start; }
.encart-loc li::before {
  content: "";
  width: .6rem; height: .6rem;
  border: 1.5px solid var(--vert);
  border-radius: 2px;
  margin-top: .45rem;
}
.encart-loc .btn { width: 100%; justify-content: center; }
.encart-loc__mention {
  font-family: var(--tech);
  font-size: .6875rem;
  color: var(--gris-4);
  text-align: center;
  margin: .8rem 0 0;
  line-height: 1.45;
}

/* Bandeau large ------------------------------------------------------------ */
.bandeau-loc {
  background: var(--nuit);
  color: var(--nuit-clair);
  border-radius: var(--r-l);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bandeau-loc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(163, 179, 201, .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(163, 179, 201, .1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.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: minmax(0, 1fr); } }
.bandeau-loc .legende { color: #EE8460; }
.bandeau-loc h2 { font-size: clamp(1.625rem, 3.4vw, 2.25rem); margin: .8rem 0 1rem; }
.bandeau-loc p { color: var(--nuit-doux); max-width: 56ch; margin: 0 0 1.75rem; }
.bandeau-loc__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.bandeau-loc__mention { font-family: var(--tech); font-size: .78125rem; color: var(--nuit-doux); opacity: .8; margin-top: 1.3rem; }
.bandeau-loc__fiche { border: 1px solid var(--nuit-trait); border-radius: var(--r); }
.bandeau-loc__fiche .ligne {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--tech);
  font-size: .8125rem;
  padding: .9rem 1.15rem;
  border-bottom: 1px solid var(--nuit-trait);
}
.bandeau-loc__fiche .ligne:last-child { border-bottom: 0; }
.bandeau-loc__fiche dt { margin: 0; color: var(--nuit-doux); }
.bandeau-loc__fiche dd { margin: 0; font-weight: 600; 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: minmax(0, 1fr); } }
.prec-suiv a {
  padding: 1.3rem 1.45rem;
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  background: var(--papier);
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.prec-suiv a:hover { transform: translateY(-2px); box-shadow: var(--relief-2); border-color: var(--gris-4); }
.prec-suiv .sens {
  font-family: var(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gris-3);
  display: block;
  margin-bottom: .55rem;
}
.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 {
  border-top: 1px solid var(--trait);
  background: var(--papier);
  padding-block: clamp(2.5rem, 5vw, 4rem) 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(--trait);
}
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }
.pied h3 {
  font-family: var(--tech);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-bottom: 1rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied a { font-size: .9375rem; color: var(--encre-2); text-decoration: none; }
.pied a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pied__presentation p { font-size: .9375rem; color: var(--encre-2); line-height: 1.6; 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(--tech);
  font-size: .78125rem;
  color: var(--gris-3);
}
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pied__bas a { font-size: .78125rem; color: var(--gris-3); text-decoration: none; }

/* 404 -------------------------------------------------------------------------- */
.erreur { min-height: 52vh; display: grid; place-items: center; text-align: center; padding-block: var(--souffle); }
.erreur__code {
  font-family: var(--titre);
  font-size: clamp(4rem, 13vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  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.8rem; }
.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: 620px) {
  .marque__note { display: none; }
  .marque__nom { font-size: 1.0625rem; }
  .outils { gap: .25rem; }
  .bouton-carre { width: 2.25rem; height: 2.25rem; }
  .entete__inner { min-height: 3.85rem; }
  .bloc-tete { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .lien-plus { white-space: normal; }
  .article-plan svg { aspect-ratio: 3 / 2; }
  body { background-size: 22px 22px; }
}

/* Impression --------------------------------------------------------------------- */
@media print {
  .entete, .menu-mobile, .laterale, .bandeau-loc, .pied, .prec-suiv, .voile, .bouton-carre { 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; }
}
