/* =========================================================================
   AGENCES IMMOBILIERES ALGER — agences-immobilieres-alger.com
   Feuille de style unique. Aucune dependance, aucun framework.
   Parti pris : fond sombre par defaut, laiton, filets fins, elevations.
   Le theme clair reste accessible par la bascule de l en-tete.
   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 {
  /* Sombre : le mode par defaut du site */
  --fond:      #14161A;
  --fond-2:    #1B1E23;
  --fond-3:    #23272D;
  --encre:     #ECEEF1;
  --encre-2:   #B4B9C1;
  --gris-3:    #8A9098;
  --gris-4:    #646A72;
  --trait:     #2E333A;
  --trait-fin: #23272D;

  --laiton:    #CFA83A;
  --cuivre:    #D08A5A;
  --sauge:     #86B392;
  --azur:      #7BAAD0;
  --prune:     #B694CC;

  --accent:     var(--laiton);
  --accent-sur: #14161A;
  --accent-voile: color-mix(in srgb, var(--accent) 12%, var(--fond));

  /* Typo */
  --titre: "Spectral", "Iowan Old Style", Georgia, serif;
  --texte: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Mesures */
  --page:    1200px;
  --large:   1400px;
  --colonne: 670px;
  --marge:   clamp(1.15rem, 4vw, 3rem);
  --espace:  clamp(1rem, 2vw, 1.75rem);
  --souffle: clamp(3.5rem, 7vw, 6.5rem);

  --t: 200ms cubic-bezier(.22, .61, .36, 1);
}

/* Le theme clair ne s applique que sur demande explicite */
[data-theme="light"] {
  --fond:      #FBFAF7;
  --fond-2:    #F3F1EB;
  --fond-3:    #E9E6DE;
  --encre:     #17191D;
  --encre-2:   #3F444C;
  --gris-3:    #61666F;
  --gris-4:    #949AA3;
  --trait:     #DCD8CE;
  --trait-fin: #E8E5DC;

  --laiton:    #826012;
  --cuivre:    #9F5025;
  --sauge:     #33684A;
  --azur:      #25587D;
  --prune:     #6D4488;
  --accent-sur: #FBFAF7;
}

.a-laiton { --accent: var(--laiton); }
.a-cuivre { --accent: var(--cuivre); }
.a-sauge  { --accent: var(--sauge); }
.a-azur   { --accent: var(--azur); }
.a-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(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.008em;
  margin: 0;
  text-wrap: balance;
}
h4 { font-family: var(--texte); font-weight: 600; margin: 0; }

a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--accent-sur); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
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)); }

/* Micro-typographie ------------------------------------------------------ */
.surtitre {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.infos {
  font-family: var(--texte);
  font-size: .8125rem;
  color: var(--gris-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.infos > * + *::before { content: "·"; margin-right: .5rem; color: var(--gris-3); }

.chapo {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
  color: var(--encre-2);
}

/* En-tete de bloc : numero en gros, filet, titre en serif */
.bloc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--trait);
  margin-bottom: 2rem;
}
.bloc__no {
  font-family: var(--titre);
  font-size: 1.125rem;
  color: var(--accent);
  letter-spacing: .04em;
}
.bloc h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
.bloc p { margin: .5rem 0 0; color: var(--gris-3); font-size: .9375rem; max-width: 56ch; }
.bloc__lien {
  font-family: var(--texte);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding-bottom: 2px;
  transition: border-color var(--t);
}
.bloc__lien:hover { border-bottom-color: var(--accent); }
@media (max-width: 640px) {
  .bloc { grid-template-columns: auto minmax(0, 1fr); }
  .bloc__lien { grid-column: 1 / -1; justify-self: start; }
}

/* 3. EN-TETE ============================================================= */
.evitement {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: var(--accent-sur);
  padding: .8rem 1.2rem;
  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(--fond) 90%, transparent);
  backdrop-filter: saturate(160%) 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.5rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--encre);
  flex: none;
}
.marque__signe { flex: none; }
.marque__mots { display: flex; flex-direction: column; line-height: 1.08; }
.marque__nom {
  font-family: var(--titre);
  font-size: 1.1875rem;
  letter-spacing: -0.005em;
}
.marque__nom em { font-style: normal; color: var(--laiton); }
.marque__note {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-top: .3rem;
}

.menu { display: flex; align-items: center; gap: .1rem; }
.menu a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--encre-2);
  text-decoration: none;
  padding: .55rem .8rem;
  white-space: nowrap;
  position: relative;
  transition: color var(--t);
}
.menu a::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .3rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.menu a:hover { color: var(--encre); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--accent); }
.menu a.appel {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .55rem 1.05rem;
  margin-left: .6rem;
}
.menu a.appel::after { display: none; }
.menu a.appel:hover { background: var(--accent); color: var(--accent-sur); }

.outils { display: flex; align-items: center; gap: .35rem; flex: none; }
.bouton {
  appearance: none;
  background: transparent;
  border: 1px solid var(--trait);
  color: var(--encre-2);
  width: 2.4rem; height: 2.4rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.bouton:hover { border-color: var(--accent); color: var(--accent); }
.bouton svg { width: 17px; height: 17px; }

.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(--fond); }
.menu-mobile[data-ouvert="true"] { display: block; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile li { border-bottom: 1px solid var(--trait-fin); }
.menu-mobile a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  font-family: var(--titre);
  font-size: 1.375rem;
}
.menu-mobile a .no { font-family: var(--texte); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; color: var(--gris-3); }
.menu-mobile a.appel { color: var(--accent); }

/* 4. COMPOSANTS ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--texte);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--plein { background: var(--accent); color: var(--accent-sur); border-color: var(--accent); }
.btn--plein:hover { background: transparent; color: var(--accent); }
.btn--ligne { border-color: var(--trait); color: var(--encre); }
.btn--ligne:hover { border-color: var(--encre); }
.btn--cuivre { background: var(--cuivre); border-color: var(--cuivre); color: #14161A; }
.btn--cuivre:hover { background: transparent; color: var(--cuivre); }

.mention {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
  text-decoration: none;
}

/* Fiche : elevation en haut, texte en dessous ---------------------------- */
.fiche {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border: 1px solid var(--trait);
  background: var(--fond-2);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.fiche:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--trait));
  background: var(--fond-3);
  transform: translateY(-2px);
}
.fiche__vue {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--trait);
  background: var(--fond);
}
.fiche__vue svg { width: 100%; height: 100%; object-fit: cover; }
.fiche__corps { padding: 1.15rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.fiche__titre { font-size: 1.1875rem; line-height: 1.24; }
.fiche:hover .fiche__titre { color: var(--accent); }
.fiche__extrait { font-size: .9375rem; color: var(--encre-2); line-height: 1.6; margin: 0; flex: 1; }

/* Rangee ----------------------------------------------------------------- */
.rangees { list-style: none; margin: 0; padding: 0; }
.rangees > li { border-bottom: 1px solid var(--trait); }
.rangee {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left var(--t);
}
.rangee:hover { padding-left: .75rem; }
.rangee__vue { border: 1px solid var(--trait); overflow: hidden; aspect-ratio: 4 / 3; background: var(--fond-2); }
.rangee__vue svg { width: 100%; height: 100%; object-fit: cover; }
.rangee__corps { display: flex; flex-direction: column; gap: .6rem; }
.rangee__corps h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.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, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grille--2, .grille--3 { grid-template-columns: minmax(0, 1fr); }
  .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fiche de criteres : lignes cle / valeur -------------------------------- */
.criteres { border-top: 1px solid var(--trait); margin: 2em 0; }
.criteres .ligne {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 1.25rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--trait-fin);
  font-size: .9375rem;
}
.criteres dt { color: var(--gris-3); margin: 0; }
.criteres dd { margin: 0; color: var(--encre); }
@media (max-width: 560px) { .criteres .ligne { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }

/* 5. ACCUEIL ============================================================= */
.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--trait);
}
@media (max-width: 900px) { .ouverture { grid-template-columns: minmax(0, 1fr); } }
.ouverture h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  line-height: 1.08;
  margin: 1.1rem 0 1.35rem;
}
.ouverture .chapo { max-width: 52ch; margin: 0 0 2rem; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.ouverture__vue { border: 1px solid var(--trait); background: var(--fond-2); }
.ouverture__vue svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ouverture__vue figcaption {
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-3);
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--trait);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Reperes chiffres -------------------------------------------------------- */
.reperes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--trait); }
@media (max-width: 860px) { .reperes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .reperes { grid-template-columns: minmax(0, 1fr); } }
.repere { padding: 1.75rem 1.5rem; 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-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-bottom: .7rem;
}
.repere dd {
  margin: 0;
  font-family: var(--titre);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.05;
  color: var(--accent);
}
.repere p { margin: .7rem 0 0; font-size: .8125rem; color: var(--gris-3); line-height: 1.55; }

/* Sommaire des rubriques -------------------------------------------------- */
.rubriques { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--trait); }
@media (max-width: 1000px) { .rubriques { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rubrique {
  padding: 1.6rem 1.35rem 1.8rem;
  border-right: 1px solid var(--trait);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background var(--t);
  position: relative;
}
.rubrique:last-child { border-right: 0; }
.rubrique::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.rubrique:hover { background: var(--fond-2); }
.rubrique:hover::before { transform: scaleX(1); }
.rubrique__no { font-family: var(--titre); font-size: 1rem; color: var(--accent); letter-spacing: .05em; }
.rubrique__nom { font-family: var(--titre); font-size: 1.25rem; display: block; margin-top: .6rem; line-height: 1.2; }
.rubrique__compte { font-size: .75rem; color: var(--gris-3); display: block; margin-top: .5rem; }

/* 6. ARTICLE ============================================================= */
.article-tete { padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
.fil {
  font-size: .75rem;
  color: var(--gris-3);
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1.4rem;
}
.fil a { color: var(--gris-3); text-decoration: none; }
.fil a:hover { color: var(--accent); }

.article-tete h1 {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: .9rem 0 1.2rem;
  max-width: 22ch;
}
.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.85rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--trait);
}
.partage { display: flex; gap: .4rem; }

.article-vue { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.article-vue figure { margin: 0; border: 1px solid var(--trait); background: var(--fond-2); }
.article-vue svg { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
figcaption {
  font-size: .75rem;
  color: var(--gris-3);
  line-height: 1.55;
  padding: .8rem 1.15rem;
  border-top: 1px solid var(--trait);
}

.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; line-height: 1.75; }
.texte > * + * { margin-top: 1.35em; }
.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;
  padding-top: 1.1em;
  border-top: 1px solid var(--trait);
}
.texte h3 { font-size: 1.3125rem; margin-top: 2em; margin-bottom: -.4em; }
.texte h4 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-top: 2em;
  margin-bottom: -.5em;
}
.texte ul, .texte ol { margin-left: 0; padding-left: 1.4rem; }
.texte li + li { margin-top: .55em; }
.texte li::marker { color: var(--accent); }
.texte a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.texte a:hover { text-decoration-thickness: 2px; }
.texte strong { font-weight: 600; color: var(--encre); }
.texte blockquote {
  margin: 2.2em 0;
  padding: 0 0 0 1.6rem;
  border-left: 2px solid var(--accent);
  font-family: var(--titre);
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--encre);
}
.texte blockquote p { margin: 0; }
.texte code { font-family: ui-monospace, Menlo, monospace; font-size: .875em; background: var(--fond-3); padding: .12em .4em; }

.tableau { overflow-x: auto; border: 1px solid var(--trait); margin-block: 2.2em; -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: .9rem 1.15rem; border-bottom: 1px solid var(--trait-fin); vertical-align: top; }
.texte thead th {
  background: var(--fond-2);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-3);
  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; }

/* Encadres ---------------------------------------------------------------- */
.encadre {
  padding: 1.4rem 1.6rem;
  margin-block: 2.3em;
  background: var(--fond-2);
  border-left: 2px solid var(--accent);
  font-size: 1rem;
}
.encadre > * + * { margin-top: .85em; }
.encadre p { margin: 0; }
.encadre__titre {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8em;
}
.encadre ul, .encadre ol { margin: 0; padding-left: 1.25rem; }
.encadre--alerte { --accent: var(--cuivre); }
.encadre--verif {
  background: transparent;
  border: 1px solid var(--trait);
  border-left: 2px solid var(--gris-4);
  font-size: .9375rem;
  color: var(--encre-2);
}
.encadre--verif .encadre__titre { color: var(--gris-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: .55em;
  width: .75rem; height: .75rem;
  border: 1px solid var(--accent);
}
.cocher li::after {
  content: "";
  position: absolute;
  left: .28rem; top: .62em;
  width: .26rem; height: .5rem;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

/* Etapes ------------------------------------------------------------------- */
.etapes { list-style: none; counter-reset: e; margin: 2.3em 0; padding: 0; }
.etapes li {
  counter-increment: e;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--trait);
}
.etapes li::before {
  content: counter(e, decimal-leading-zero);
  font-family: var(--titre);
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1.3;
}
.etapes h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.etapes p { margin: 0; color: var(--encre-2); font-size: 1rem; }

/* Questions ---------------------------------------------------------------- */
.questions { margin-block: 2.3em; border-top: 1px solid var(--trait); }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-family: var(--titre);
  font-size: 1.25rem;
  position: relative;
  transition: color var(--t);
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--accent); }
.questions summary::after {
  content: "";
  position: absolute;
  right: .5rem; top: 1.6rem;
  width: 9px; height: 9px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--t);
}
.questions details[open] summary::after { transform: rotate(-135deg); top: 1.85rem; }
.questions details > div { padding: 0 0 1.4rem; 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.75rem; }
@media (max-width: 1040px) { .laterale { position: static; } }

.sommaire { border-top: 1px solid var(--accent); padding-top: 1rem; }
.sommaire__titre {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-bottom: 1rem;
}
.sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sommaire li { counter-increment: s; }
.sommaire a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .5rem;
  padding: .5rem 0;
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--encre-2);
  border-bottom: 1px solid var(--trait-fin);
  transition: color var(--t);
}
.sommaire a::before { content: counter(s, decimal-leading-zero); color: var(--gris-3); font-size: .75rem; }
.sommaire a:hover, .sommaire a.actif { color: var(--accent); }
.sommaire a.actif::before { color: var(--accent); }

/* 7. RUBRIQUES =============================================================== */
.page-tete { padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--trait); }
.page-tete__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
@media (max-width: 820px) { .page-tete__grille { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.page-tete__no {
  font-family: var(--titre);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--accent);
  line-height: .9;
  display: block;
  margin-bottom: .75rem;
}
.page-tete h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); margin: 0; }
.page-tete .chapo { margin: 0; }
.page-tete__compte { font-size: .78125rem; color: var(--gris-3); margin-top: 1rem; }

/* 8. RECHERCHE =============================================================== */
.champ {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--trait);
  background: var(--fond-2);
  padding: .35rem .35rem .35rem 1.1rem;
  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(--texte);
  font-size: 1rem;
  color: var(--encre);
  padding: .7rem 0;
  min-width: 0;
}
.champ input:focus { outline: none; }
.champ input::placeholder { color: var(--gris-3); }
.champ > svg { width: 18px; height: 18px; color: var(--gris-3); flex: none; }

.voile {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--fond) 96%, transparent);
  backdrop-filter: blur(10px);
  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.3rem; right: var(--marge); }

.resultats { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--trait); }
.resultats li { border-bottom: 1px solid var(--trait); }
.resultats a { display: block; padding: 1.1rem .25rem; text-decoration: none; transition: padding-left var(--t); }
.resultats a:hover { padding-left: .75rem; }
.resultats h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.resultats a:hover h3 { color: var(--accent); }
.resultats p { margin: 0; font-size: .875rem; color: var(--gris-3); line-height: 1.55; }
.etat { color: var(--gris-3); font-size: .9375rem; padding: 1.5rem 0 0; }
mark { background: color-mix(in srgb, var(--laiton) 32%, transparent); color: inherit; padding: 0 .15em; }

/* 9. ENCARTS LOCATION DE VEHICULE ======================================== */
.encart-loc { border: 1px solid var(--trait); background: var(--fond-2); }
.encart-loc__haut { padding: 1.2rem 1.35rem 1.3rem; border-bottom: 1px solid var(--trait); }
.encart-loc__label {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 0 0 .65rem;
}
.encart-loc__nom { font-family: var(--titre); font-size: 1.375rem; margin: 0; line-height: 1.15; }
.encart-loc__ville { font-size: .78125rem; color: var(--gris-3); margin: .35rem 0 0; }
.encart-loc__bas { padding: 1.25rem 1.35rem 1.4rem; }
.encart-loc__bas > p { margin: 0 0 1.15rem; font-size: .9375rem; color: var(--encre-2); line-height: 1.6; }
.encart-loc ul { list-style: none; margin: 0 0 1.35rem; padding: 0; display: grid; gap: .55rem; font-size: .875rem; color: var(--encre-2); }
.encart-loc li { display: grid; grid-template-columns: .9rem minmax(0, 1fr); gap: .65rem; align-items: start; }
.encart-loc li::before { content: ""; width: .45rem; height: .45rem; border: 1px solid var(--sauge); margin-top: .5rem; }
.encart-loc .btn { width: 100%; justify-content: center; }
.encart-loc__mention {
  font-size: .6875rem;
  color: var(--gris-3);
  text-align: center;
  margin: .85rem 0 0;
  line-height: 1.5;
}

/* Bandeau large ------------------------------------------------------------ */
.bandeau-loc {
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
  background: var(--fond-2);
  padding-block: clamp(2.25rem, 5vw, 4rem);
  margin-top: var(--souffle);
}
.bandeau-loc__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 880px) { .bandeau-loc__grille { grid-template-columns: minmax(0, 1fr); } }
.bandeau-loc .surtitre { color: var(--cuivre); }
.bandeau-loc h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); margin: .85rem 0 1rem; }
.bandeau-loc p { color: var(--encre-2); max-width: 56ch; margin: 0 0 1.85rem; }
.bandeau-loc__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.bandeau-loc__mention { font-size: .78125rem; color: var(--gris-3); margin-top: 1.35rem; }
.bandeau-loc__fiche { border: 1px solid var(--trait); background: var(--fond); }
.bandeau-loc__fiche .ligne {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  padding: .95rem 1.2rem;
  border-bottom: 1px solid var(--trait-fin);
}
.bandeau-loc__fiche .ligne:last-child { border-bottom: 0; }
.bandeau-loc__fiche dt { margin: 0; color: var(--gris-3); }
.bandeau-loc__fiche dd { margin: 0; font-weight: 600; text-align: right; }

/* Precedent / suivant -------------------------------------------------------- */
.prec-suiv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); margin-top: var(--souffle); }
@media (max-width: 640px) { .prec-suiv { grid-template-columns: minmax(0, 1fr); } }
.prec-suiv a { padding: 1.6rem 1.5rem; text-decoration: none; transition: background var(--t); }
.prec-suiv a:first-child { border-right: 1px solid var(--trait); }
.prec-suiv a:hover { background: var(--fond-2); }
.prec-suiv .sens {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris-3);
  display: block;
  margin-bottom: .65rem;
}
.prec-suiv h3 { font-size: 1.1875rem; 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); 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(--trait);
}
@media (max-width: 900px) { .pied__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 540px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }
.pied h3 {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-bottom: 1.1rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pied a { font-size: .9375rem; color: var(--encre-2); text-decoration: none; transition: color var(--t); }
.pied a:hover { color: var(--accent); }
.pied__presentation p { font-size: .9375rem; color: var(--encre-2); line-height: 1.65; max-width: 44ch; margin: 1.1rem 0 0; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .78125rem;
  color: var(--gris-3);
}
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.pied__bas a { font-size: .78125rem; color: var(--gris-3); text-decoration: none; }

/* 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, 13vw, 7.5rem); color: var(--accent); line-height: .95; }
.erreur h1 { font-size: clamp(1.375rem, 3vw, 1.875rem); margin: 1.1rem 0 .8rem; }
.erreur p { color: var(--encre-2); max-width: 46ch; margin: 0 auto 1.9rem; }
.erreur__actions { display: flex; gap: .85rem; 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; line-height: 1.2; }
  .marque { flex: 0 1 auto; min-width: 0; gap: .6rem; }
  .marque__mots { min-width: 0; }
  .outils { gap: .25rem; }
  .bouton { width: 2.25rem; height: 2.25rem; }
  .entete__inner { min-height: 3.9rem; gap: .75rem; }
  .article-vue svg { aspect-ratio: 3 / 2; }
  .menu-mobile a { font-size: 1.1875rem; }
}

/* Impression --------------------------------------------------------------------- */
@media print {
  .entete, .menu-mobile, .laterale, .bandeau-loc, .pied, .prec-suiv, .voile, .bouton { 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; }
}
