/* =========================================================================
   ALGERIE MAGAZINE — algerie-magazine.com
   Feuille de style unique. Aucune dependance, aucun framework.
   Parti pris : grille apparente, serif d affiche, aplats pleins.
   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 {
  --noir:     #0B0B0C;
  --noir-2:   #2E2E30;
  --gris-3:   #6A6A6E;
  --gris-4:   #9B9BA0;
  --blanc:    #FFFFFF;
  --papier:   #F7F7F5;
  --papier-2: #EFEFEC;
  --trait:    #0B0B0C;
  --trait-fin:#D9D9D4;

  /* Couleurs de rubrique, saturees et pleines */
  --vert:   #0A6B45;
  --rouge:  #B4181F;
  --or:     #836205;
  --bleu:   #17457E;
  --cyan:   #10646E;
  --violet: #5C2A73;

  --accent:     var(--vert);
  --accent-sur: #FFFFFF;

  /* Typo */
  --affiche: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --texte:   "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Mesures */
  --page:    1240px;
  --large:   1440px;
  --colonne: 680px;
  --marge:   clamp(1.15rem, 3.5vw, 2.5rem);
  --espace:  clamp(1rem, 2vw, 1.75rem);
  --souffle: clamp(3.25rem, 6.5vw, 6rem);

  --t: 160ms cubic-bezier(.2, .6, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --noir:     #F2F2EF;
    --noir-2:   #C9C9C4;
    --gris-3:   #97979C;
    --gris-4:   #6C6C71;
    --blanc:    #0D0D0F;
    --papier:   #121214;
    --papier-2: #1A1A1D;
    --trait:    #3A3A3E;
    --trait-fin:#2A2A2E;
    --vert:   #4CBD8C;
    --rouge:  #F0736F;
    --or:     #D9AE3C;
    --bleu:   #7BA6DC;
    --cyan:   #55B3BE;
    --violet: #B98CD0;
    --accent-sur: #0D0D0F;
  }
}
[data-theme="dark"] {
  --noir:     #F2F2EF;
  --noir-2:   #C9C9C4;
  --gris-3:   #97979C;
  --gris-4:   #6C6C71;
  --blanc:    #0D0D0F;
  --papier:   #121214;
  --papier-2: #1A1A1D;
  --trait:    #3A3A3E;
  --trait-fin:#2A2A2E;
  --vert:   #4CBD8C;
  --rouge:  #F0736F;
  --or:     #D9AE3C;
  --bleu:   #7BA6DC;
  --cyan:   #55B3BE;
  --violet: #B98CD0;
  --accent-sur: #0D0D0F;
}

.r-vert   { --accent: var(--vert); }
.r-rouge  { --accent: var(--rouge); }
.r-or     { --accent: var(--or); }
.r-bleu   { --accent: var(--bleu); }
.r-cyan   { --accent: var(--cyan); }
.r-violet { --accent: var(--violet); }

/* 2. BASE & TYPO ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 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(--blanc);
  color: var(--noir);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--affiche);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h4 { font-family: var(--texte); font-weight: 700; margin: 0; }

a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: var(--noir); color: var(--blanc); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
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 ------------------------------------------------------ */
.rubrique-tag {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.rubrique-tag--noir { color: var(--noir); }

.signature {
  font-family: var(--texte);
  font-size: .78125rem;
  font-weight: 500;
  color: var(--gris-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
}
.signature > * + *::before { content: "—"; margin-right: .45rem; color: var(--gris-4); }

.chapo {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--noir-2);
}

/* En-tete de bloc : filet epais et titre d affiche */
.bloc-titre {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 3px solid var(--noir);
  padding-top: .9rem;
  margin-bottom: 1.75rem;
}
.bloc-titre h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.bloc-titre p { margin: .5rem 0 0; color: var(--gris-3); font-size: .9375rem; max-width: 52ch; }
.voir-plus {
  font-family: var(--texte);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--noir);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--t);
}
.voir-plus:hover { color: var(--accent); }

/* 3. EN-TETE ============================================================= */
.acces-direct {
  position: absolute;
  left: -9999px;
  background: var(--noir);
  color: var(--blanc);
  padding: .8rem 1.2rem;
  z-index: 200;
  font-weight: 700;
}
.acces-direct:focus { left: .5rem; top: .5rem; }

.entete {
  border-bottom: 3px solid var(--noir);
  background: var(--blanc);
  position: sticky;
  top: 0;
  z-index: 100;
}
.entete__haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: clamp(.85rem, 2vw, 1.35rem);
}

.titre-journal {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  color: var(--noir);
  flex: none;
}
.titre-journal__nom {
  font-family: var(--affiche);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.titre-journal__nom em { font-style: italic; }
.titre-journal__mention {
  font-family: var(--texte);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris-3);
  white-space: nowrap;
}

.outils { display: flex; align-items: center; gap: .4rem; flex: none; }
.bouton-rond {
  appearance: none;
  background: transparent;
  border: 2px solid var(--noir);
  color: var(--noir);
  width: 2.35rem; height: 2.35rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.bouton-rond:hover { background: var(--noir); color: var(--blanc); }
.bouton-rond svg { width: 17px; height: 17px; }

/* Barre de rubriques, sous le titre */
.entete__nav { border-top: 1px solid var(--trait-fin); }
.nav-rubriques { display: flex; align-items: stretch; }
.nav-rubriques a {
  font-family: var(--texte);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--noir);
  text-decoration: none;
  padding: .75rem 1.05rem;
  border-right: 1px solid var(--trait-fin);
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.nav-rubriques a:first-child { border-left: 1px solid var(--trait-fin); }
.nav-rubriques a:hover { background: var(--papier-2); }
.nav-rubriques a[aria-current="page"] { background: var(--noir); color: var(--blanc); }
.nav-rubriques a.appel {
  margin-left: auto;
  background: var(--rouge);
  color: #fff;
  border-right: 0;
}
.nav-rubriques a.appel:hover { background: var(--noir); }

.ouvrir-menu { display: none; }
@media (max-width: 1080px) {
  .entete__nav { display: none; }
  .ouvrir-menu { display: inline-grid; }
}

.menu-mobile { display: none; border-top: 1px solid var(--trait-fin); background: var(--blanc); }
.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 var(--marge);
  text-decoration: none;
  font-family: var(--affiche);
  font-size: 1.5rem;
}
.menu-mobile a .no {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gris-4);
}
.menu-mobile a.appel { background: var(--rouge); color: #fff; }
.menu-mobile a.appel .no { color: rgba(255,255,255,.75); }

/* 4. COMPOSANTS ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--texte);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border: 2px solid var(--noir);
  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(--noir); color: var(--blanc); }
.btn--plein:hover { background: transparent; color: var(--noir); }
.btn--rouge { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn--rouge:hover { background: transparent; color: var(--rouge); }
.btn--vide { background: transparent; color: var(--noir); }
.btn--vide:hover { background: var(--noir); color: var(--blanc); }
.btn--clair { background: var(--blanc); border-color: var(--blanc); color: var(--noir); }
.btn--clair:hover { background: transparent; color: var(--blanc); }

/* Article a la une, en pleine largeur -------------------------------------- */
.une {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
  border-bottom: 3px solid var(--noir);
}
@media (max-width: 900px) { .une { grid-template-columns: 1fr; } }
.une__visuel { border: 1px solid var(--trait-fin); overflow: hidden; }
.une__visuel svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.une a { text-decoration: none; color: inherit; }
.une h1,
.une h2 {
  font-size: clamp(2.125rem, 5.2vw, 3.75rem);
  margin: .75rem 0 1rem;
  letter-spacing: -0.02em;
}
.une a:hover h2 { color: var(--accent); }
.une h1 { max-width: 18ch; }
.une .chapo { max-width: 46ch; }
.une .signature { margin-top: 1.25rem; }

/* Carte article -------------------------------------------------------------- */
.carte {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.carte__visuel {
  border: 1px solid var(--trait-fin);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--papier);
}
.carte__visuel svg { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.2,.6,.3,1); }
.carte:hover .carte__visuel svg { transform: scale(1.03); }
.carte__titre { font-size: 1.375rem; line-height: 1.1; }
.carte:hover .carte__titre { color: var(--accent); }
.carte__extrait { font-size: .9375rem; color: var(--noir-2); margin: 0; line-height: 1.55; }
.carte--petite .carte__titre { font-size: 1.1875rem; }

/* Liste numerotee ------------------------------------------------------------- */
.classement { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.classement li { counter-increment: c; border-top: 1px solid var(--trait-fin); }
.classement li:first-child { border-top: 0; }
.classement a {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  text-decoration: none;
  align-items: start;
}
.classement a::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--affiche);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: .9;
}
.classement h3 { font-size: 1.1875rem; line-height: 1.15; margin-bottom: .35rem; }
.classement a:hover h3 { color: var(--accent); }

/* Rangee ---------------------------------------------------------------------- */
.rangees { list-style: none; margin: 0; padding: 0; }
.rangees > li { border-bottom: 1px solid var(--trait-fin); }
.rangee {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 720px) { .rangee { grid-template-columns: 1fr; } }
.rangee__visuel { border: 1px solid var(--trait-fin); overflow: hidden; aspect-ratio: 3 / 2; }
.rangee__visuel svg { width: 100%; height: 100%; object-fit: cover; }
.rangee__corps { display: flex; flex-direction: column; gap: .65rem; }
.rangee__corps h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.rangee:hover h2 { color: var(--accent); }
.rangee__corps p { margin: 0; color: var(--noir-2); font-size: .9375rem; max-width: 66ch; }

/* Grilles avec filets, la signature du site ------------------------------------ */
.grille { display: grid; gap: 0; border-top: 1px solid var(--trait-fin); }
.grille > * {
  padding: 1.5rem var(--espace);
  border-bottom: 1px solid var(--trait-fin);
  border-right: 1px solid var(--trait-fin);
}
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.grille > *:first-child { border-left: 1px solid var(--trait-fin); }
.grille--3 > *:nth-child(3n+1) { border-left: 1px solid var(--trait-fin); }
.grille--4 > *:nth-child(4n+1) { border-left: 1px solid var(--trait-fin); }
.grille--2 > *:nth-child(2n+1) { border-left: 1px solid var(--trait-fin); }
@media (max-width: 980px) {
  .grille--4, .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .grille--4 > *, .grille--3 > * { border-left: 1px solid var(--trait-fin); }
}
@media (max-width: 620px) {
  .grille--2, .grille--3, .grille--4 { grid-template-columns: minmax(0, 1fr); }
  .grille > * { border-left: 1px solid var(--trait-fin); }
}

/* 5. ACCUEIL ============================================================== */
.bandeau-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-3);
  padding-block: .7rem;
  border-bottom: 1px solid var(--trait-fin);
}

/* Sommaire des rubriques, en colonnes numerotees */
.sommaire-rubriques {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--trait-fin);
  border-bottom: 3px solid var(--noir);
}
@media (max-width: 1000px) { .sommaire-rubriques { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sommaire-rubriques { grid-template-columns: repeat(2, 1fr); } }
.sommaire-rubriques a {
  padding: 1.25rem 1rem 1.5rem;
  text-decoration: none;
  border-right: 1px solid var(--trait-fin);
  transition: background var(--t);
  display: block;
}
.sommaire-rubriques a:first-child { border-left: 1px solid var(--trait-fin); }
.sommaire-rubriques a:hover { background: var(--papier-2); }
.sommaire-rubriques .no {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
}
.sommaire-rubriques .nom {
  font-family: var(--affiche);
  font-size: 1.375rem;
  display: block;
  margin-top: .5rem;
  line-height: 1.05;
}
.sommaire-rubriques .compte {
  font-family: var(--texte);
  font-size: .75rem;
  color: var(--gris-3);
  display: block;
  margin-top: .35rem;
}

/* Double colonne de l accueil : articles a gauche, sommaire a droite */
.accueil-double {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 980px) {
  .accueil-double { grid-template-columns: minmax(0, 1fr); }
}

/* Bloc de chiffres, en aplats pleins */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 900px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .chiffres { grid-template-columns: minmax(0, 1fr); } }
.chiffre {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, .22);
  background: var(--accent);
  color: #fff;
}
.chiffre:last-child { border-right: 0; }
.chiffre dt {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .6rem;
}
.chiffre dd {
  margin: 0;
  font-family: var(--affiche);
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: .95;
}
.chiffre p { margin: .7rem 0 0; font-size: .8125rem; line-height: 1.5; opacity: .82; }

/* 6. ARTICLE ============================================================= */
.article-tete { padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem); }
.ariane {
  font-family: var(--texte);
  font-size: .75rem;
  font-weight: 500;
  color: var(--gris-3);
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.ariane a { color: var(--gris-3); text-decoration: none; }
.ariane a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article-tete h1 {
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  margin: .85rem 0 1.15rem;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.article-tete .chapo { max-width: 60ch; }
.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-fin);
}
.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: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--trait-fin);
}
figcaption {
  font-family: var(--texte);
  font-size: .78125rem;
  color: var(--gris-3);
  margin-top: .7rem;
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.article-corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  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.72; }
.texte > * + * { margin-top: 1.3em; }
.texte p { margin: 0; }
.texte > p:first-child::first-letter {
  font-family: var(--affiche);
  font-size: 3.6em;
  float: left;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--accent);
}
.texte h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  margin-top: 2.2em;
  margin-bottom: -.05em;
  scroll-margin-top: 5rem;
  border-top: 1px solid var(--trait-fin);
  padding-top: .85em;
}
.texte h3 { font-size: 1.375rem; margin-top: 1.9em; margin-bottom: -.4em; }
.texte h4 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-top: 2em;
  margin-bottom: -.5em;
}
.texte ul, .texte ol { margin-left: 0; padding-left: 1.35rem; }
.texte li + li { margin-top: .5em; }
.texte li::marker { color: var(--accent); font-weight: 700; }
.texte a { color: var(--noir); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.texte a:hover { color: var(--accent); }
.texte strong { font-weight: 700; }
.texte blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.5rem;
  border-left: 4px solid var(--accent);
  font-family: var(--affiche);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--noir);
}
.texte blockquote p { margin: 0; }
.texte code { font-family: ui-monospace, Menlo, monospace; font-size: .875em; background: var(--papier-2); padding: .14em .38em; }

.tableau { overflow-x: auto; border: 1px solid var(--trait); margin-block: 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: .85rem 1.1rem; border-bottom: 1px solid var(--trait-fin); vertical-align: top; }
.texte thead th {
  background: var(--noir);
  color: var(--blanc);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 0;
}
.texte tbody tr:last-child td, .texte tbody tr:last-child th { border-bottom: 0; }
.texte tbody th { font-weight: 700; }

/* Encadres, en blocs pleins ------------------------------------------------- */
.encadre {
  padding: 1.4rem 1.6rem;
  margin-block: 2.25em;
  background: var(--papier);
  border-left: 5px solid var(--accent);
  font-size: 1rem;
}
.encadre > * + * { margin-top: .85em; }
.encadre p { margin: 0; }
.encadre__titre {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75em;
}
.encadre ul, .encadre ol { margin: 0; padding-left: 1.2rem; }
.encadre--reperes { background: var(--noir); color: var(--blanc); border-left-color: var(--accent); }
.encadre--reperes .encadre__titre { color: var(--blanc); opacity: .7; }
.encadre--source {
  background: transparent;
  border: 1px solid var(--trait-fin);
  border-left: 5px solid var(--gris-4);
  font-size: .9375rem;
  color: var(--noir-2);
}
.encadre--source .encadre__titre { color: var(--gris-3); }

.cocher { list-style: none; padding-left: 0; }
.cocher li { position: relative; padding-left: 1.75rem; }
.cocher li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: .8rem; height: .8rem;
  background: var(--accent);
}

/* Reperes chronologiques ----------------------------------------------------- */
.chrono { list-style: none; counter-reset: k; margin: 2.25em 0; padding: 0; }
.chrono li {
  counter-increment: k;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--trait-fin);
}
.chrono li::before {
  content: counter(k, decimal-leading-zero);
  font-family: var(--affiche);
  font-size: 1.625rem;
  color: var(--accent);
  line-height: 1;
}
.chrono h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.chrono p { margin: 0; color: var(--noir-2); font-size: 1rem; }

/* Questions ------------------------------------------------------------------- */
.questions { margin-block: 2.25em; border-top: 1px solid var(--trait-fin); }
.questions details { border-bottom: 1px solid var(--trait-fin); }
.questions summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-family: var(--affiche);
  font-size: 1.3125rem;
  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: .35rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--texte);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.questions details[open] summary::after { content: "\2013"; }
.questions details > div { padding: 0 0 1.35rem; color: var(--noir-2); max-width: 68ch; }
.questions details > div > * + * { margin-top: .9em; }
.questions details > div p { margin: 0; }

/* Colonne laterale -------------------------------------------------------------- */
.laterale { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 2rem; font-family: var(--texte); }
@media (max-width: 1040px) { .laterale { position: static; } }

.sommaire { border-top: 3px solid var(--noir); padding-top: .9rem; }
.sommaire__titre {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-3);
  margin-bottom: .9rem;
}
.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 1fr;
  gap: .5rem;
  padding: .5rem 0;
  font-size: .875rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--noir-2);
  border-bottom: 1px solid var(--trait-fin);
  transition: color var(--t);
}
.sommaire a::before { content: counter(s, decimal-leading-zero); color: var(--gris-4); font-size: .75rem; font-weight: 700; }
.sommaire a:hover, .sommaire a.actif { 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); border-bottom: 3px solid var(--noir); }
.page-tete__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  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__no {
  font-family: var(--affiche);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--accent);
  line-height: .8;
  display: block;
  margin-bottom: .5rem;
}
.page-tete h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); margin: 0; }
.page-tete .chapo { margin: 0; }
.page-tete__compte { font-family: var(--texte); font-size: .78125rem; color: var(--gris-3); margin-top: .9rem; }

/* 8. RECHERCHE ==================================================================== */
.champ {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 2px solid var(--noir);
  padding: .35rem .35rem .35rem 1.15rem;
  max-width: 580px;
}
.champ input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--texte);
  font-size: 1rem;
  color: var(--noir);
  padding: .7rem 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: var(--blanc);
  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.75rem 0 0; padding: 0; border-top: 1px solid var(--trait-fin); }
.resultats li { border-bottom: 1px solid var(--trait-fin); }
.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.25rem; margin-bottom: .3rem; }
.resultats a:hover h3 { color: var(--accent); }
.resultats p { margin: 0; font-family: var(--texte); font-size: .875rem; color: var(--gris-3); line-height: 1.5; }
.etat { font-family: var(--texte); color: var(--gris-3); font-size: .9375rem; padding: 1.5rem 0 0; }
mark { background: var(--or); color: #fff; padding: 0 .15em; }

/* 9. ENCARTS LOCATION ==================================================== */
.encart-loc { border: 2px solid var(--noir); }
.encart-loc__haut { background: var(--noir); color: var(--blanc); padding: 1.15rem 1.35rem 1.3rem; }
.encart-loc__label {
  font-family: var(--texte);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
  margin: 0 0 .6rem;
}
.encart-loc__nom { font-family: var(--affiche); font-size: 1.625rem; margin: 0; line-height: 1; }
.encart-loc__ville { font-family: var(--texte); font-size: .8125rem; opacity: .7; margin: .4rem 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(--noir-2); line-height: 1.55; }
.encart-loc ul { list-style: none; margin: 0 0 1.35rem; padding: 0; display: grid; gap: .6rem; font-size: .875rem; color: var(--noir-2); }
.encart-loc li { display: grid; grid-template-columns: 1rem 1fr; gap: .6rem; align-items: start; }
.encart-loc li::before { content: ""; width: .55rem; height: .55rem; background: var(--accent); margin-top: .5rem; }
.encart-loc .btn { width: 100%; justify-content: center; }
.encart-loc__mention {
  font-family: var(--texte);
  font-size: .6875rem;
  color: var(--gris-3);
  text-align: center;
  margin: .85rem 0 0;
  line-height: 1.45;
}

/* Bandeau location, en aplat plein --------------------------------------- */
.bandeau-loc { background: var(--noir); color: var(--blanc); padding-block: clamp(2.25rem, 5vw, 4rem); }
.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 .rubrique-tag { color: var(--or); }
.bandeau-loc h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); margin: .8rem 0 1rem; }
.bandeau-loc p { color: rgba(255, 255, 255, .74); max-width: 56ch; margin: 0 0 1.85rem; }
.bandeau-loc__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.bandeau-loc__mention { font-family: var(--texte); font-size: .78125rem; color: rgba(255, 255, 255, .55); margin-top: 1.35rem; }
.bandeau-loc__fiche { border: 1px solid rgba(255, 255, 255, .25); font-family: var(--texte); }
.bandeau-loc__fiche .ligne {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.bandeau-loc__fiche .ligne:last-child { border-bottom: 0; }
.bandeau-loc__fiche dt { margin: 0; color: rgba(255, 255, 255, .62); }
.bandeau-loc__fiche dd { margin: 0; font-weight: 700; text-align: right; }

/* Precedent / suivant ------------------------------------------------------- */
.prec-suiv { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--noir); border-bottom: 1px solid var(--trait-fin); margin-top: var(--souffle); }
@media (max-width: 640px) { .prec-suiv { grid-template-columns: minmax(0, 1fr); } }
.prec-suiv a { padding: 1.5rem; text-decoration: none; transition: background var(--t); }
.prec-suiv a:first-child { border-right: 1px solid var(--trait-fin); }
.prec-suiv a:hover { background: var(--papier); }
.prec-suiv .sens {
  font-family: var(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-3);
  display: block;
  margin-bottom: .6rem;
}
.prec-suiv h3 { font-size: 1.25rem; line-height: 1.15; }
.prec-suiv a:hover h3 { color: var(--accent); }
.prec-suiv .suivant { text-align: right; }

/* 10. PIED DE PAGE ============================================================= */
.pied { border-top: 3px solid var(--noir); 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-fin);
}
@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(--texte);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .13em;
  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-family: var(--texte); font-size: .9375rem; color: var(--noir-2); text-decoration: none; }
.pied a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pied__presentation p { font-family: var(--texte); font-size: .9375rem; color: var(--noir-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(--texte);
  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); }

/* 404 ----------------------------------------------------------------------- */
.erreur { min-height: 52vh; display: grid; place-items: center; text-align: center; padding-block: var(--souffle); }
.erreur__code { font-family: var(--affiche); font-size: clamp(5rem, 16vw, 10rem); line-height: .8; color: var(--accent); }
.erreur h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 1.25rem 0 .75rem; }
.erreur p { color: var(--noir-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: 620px) {
  .titre-journal__mention { display: none; }
  .bouton-rond { width: 2.2rem; height: 2.2rem; }
  .bloc-titre { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .voir-plus { white-space: normal; }
  .texte > p:first-child::first-letter { font-size: 3em; }
}

/* Impression -------------------------------------------------------------------- */
@media print {
  .entete, .menu-mobile, .laterale, .bandeau-loc, .pied, .prec-suiv, .voile, .bouton-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; }
}
