/* VigiMandat : système graphique.
   Titres en IBM Plex Serif, texte en Plex Sans, chiffres en Plex Mono. Bleu marine institutionnel, orange du fanal
   réservé aux actions et aux signaux. Bandeaux pleine largeur en alternance, cartes à pictogrammes. */
@font-face { font-family: "Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/static/fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/static/fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --encre: #0f1d2b;
  --texte: #253442;
  --doux: #5e6b77;
  --pale: #8a96a1;
  --fond: #ffffff;
  --teinte: #f3f5f7;
  --teinte-2: #e8edf1;
  --trait: #d8dee4;
  --trait-fin: #e8ecf0;
  --marine: #0f2132;
  --marine-2: #17324a;
  --marine-3: #24486a;
  --bleu-clair: #dfe8f0;
  --fanal: #d9622b;
  --fanal-fonce: #b4501f;
  --fanal-pale: #fcece3;
  --vert: #2e7d5b;
  --gris-barre: #c5ccd3;
  --alerte: #9b3412;
  --ombre: 0 1px 2px rgba(15, 33, 50, .06), 0 4px 16px rgba(15, 33, 50, .06);
  --ombre-forte: 0 2px 4px rgba(15, 33, 50, .08), 0 12px 32px rgba(15, 33, 50, .12);
  --rayon: 6px;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Plex Serif", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fond); color: var(--texte); font: 16px/1.6 var(--sans); }
main { flex: 1 0 auto; }
a { color: var(--marine-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fanal-fonce); }
:focus-visible { outline: 3px solid #f2a67f; outline-offset: 2px; }
h1, h2, h3 { color: var(--encre); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.2; margin: 0 0 .9rem; }
h3 { font-size: 1.06rem; font-weight: 600; margin: 0 0 .4rem; line-height: 1.35; }
p { margin: 0 0 1rem; }
.largeur { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.contenu { padding-top: 2.5rem; padding-bottom: 3rem; }
.etroit { max-width: 600px; }
.nb, td.nb, th.nb { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.code { font-family: var(--mono); font-size: .9em; color: var(--doux); }
.petit { font-size: .88rem; color: var(--doux); }
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Bandeau d'information et en-tête */
.bandeau-info { background: var(--marine); color: #c3d0dc; font-size: .82rem; }
.bandeau-info .largeur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; flex-wrap: wrap; }
.bandeau-info a { color: #fff; text-decoration: none; }
.bandeau-info a:hover { text-decoration: underline; color: #fff; }
.bandeau-info .point { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fanal); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(217, 98, 43, .25); }
.entete { background: #fff; border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 10; }
.entete .largeur { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; flex-wrap: wrap; }
.marque { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; padding: 10px 0; }
.marque img { display: block; height: 52px; width: auto; }
.marque .baseline { color: var(--doux); font-size: .88rem; border-left: 1px solid var(--trait); padding-left: 18px; line-height: 1.3; max-width: 12rem; }
.entete nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.entete nav a { color: var(--texte); text-decoration: none; font-size: .96rem; padding: 8px 12px; border-radius: 4px; position: relative; }
.entete nav a:hover { background: var(--teinte); color: var(--encre); }
.entete nav a[aria-current="page"] { color: var(--encre); font-weight: 600; }
.entete nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -21px; height: 3px; background: var(--fanal); }
.entete nav a.essai { background: var(--fanal); color: #fff; font-weight: 600; margin-left: 8px; }
.entete nav a.essai:hover { background: var(--fanal-fonce); color: #fff; }
.entete nav a.essai::after { display: none; }

/* Boutons et formulaires */
.bouton { display: inline-flex; align-items: center; gap: 8px; background: var(--fanal); color: #fff; border: 1px solid var(--fanal); border-radius: 4px;
  padding: .8rem 1.3rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
.bouton:hover { background: var(--fanal-fonce); border-color: var(--fanal-fonce); color: #fff; box-shadow: 0 4px 12px rgba(217, 98, 43, .25); }
.bouton .ico { width: 18px; height: 18px; }
.bouton.secondaire { background: transparent; color: var(--marine); border-color: var(--marine); }
.bouton.secondaire:hover { background: var(--marine); color: #fff; box-shadow: none; }
.bouton.clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.bouton.clair:hover { background: #fff; color: var(--marine); }
.bouton.danger { background: var(--alerte); border-color: var(--alerte); }
.bouton.plein { width: 100%; justify-content: center; }
.lien { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--marine-3); }
.lien-fleche .ico { width: 18px; height: 18px; transition: transform .15s; }
.lien-fleche:hover .ico { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.formulaire label { display: block; margin: .9rem 0 .35rem; font-weight: 600; font-size: .94rem; color: var(--encre); }
.formulaire input[type=email], .formulaire input[type=number], select {
  width: 100%; max-width: 440px; padding: .75rem .85rem; font: inherit; border: 1px solid #b9c3cc; border-radius: 4px; background: #fff; color: var(--texte); }
.formulaire input:focus, select:focus { outline: 3px solid var(--fanal-pale); border-color: var(--fanal); }
.formulaire fieldset { border: 1px solid var(--trait); border-radius: var(--rayon); margin: 1rem 0; padding: .8rem 1.1rem; }
.formulaire legend { font-weight: 600; font-size: .94rem; padding: 0 .35rem; color: var(--encre); }
.formulaire fieldset label { display: block; margin: .3rem 0; font-weight: 400; }
.formulaire .bouton { margin-top: 1rem; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 14px; max-height: 300px; overflow-y: auto; }
.cases label { font-size: .9rem; }

/* Bandeaux de page */
.bande { padding: 4.5rem 0; }
.bande.teinte { background: var(--teinte); }
.bande.serree { padding: 3rem 0; }
.tete-section { max-width: 760px; margin-bottom: 2.4rem; }
.tete-section.centre { margin-left: auto; margin-right: auto; text-align: center; }
.tete-section p { color: var(--doux); font-size: 1.08rem; margin: 0; }
.surtitre { display: inline-block; font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--fanal-fonce); margin-bottom: 1rem; }

/* Grand bandeau d'accueil */
.hero { background: var(--marine) url("/static/phare-filigrane.svg") no-repeat right -60px bottom -80px / 520px auto; color: #c9d5e0; padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--fanal) 0 22%, transparent 22%); }
.hero-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero .surtitre { color: #f0a274; }
.hero .chapo { font-size: 1.16rem; color: #c9d5e0; max-width: 36rem; }
.recherche { background: #fff; border-radius: var(--rayon); padding: 18px; margin-top: 1.8rem; box-shadow: var(--ombre-forte); max-width: 560px; }
.recherche label { display: flex; align-items: center; gap: 8px; color: var(--encre); font-weight: 600; margin-bottom: .6rem; }
.recherche .ligne { display: flex; gap: 10px; }
.recherche select { max-width: none; flex: 1; }
.recherche .bouton { white-space: nowrap; }
.hero .liens-hero { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.hero .liens-hero a { color: #fff; }
.releve { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--rayon); padding: 22px 24px; font: .9rem/1.75 var(--mono); color: #c9d5e0; backdrop-filter: blur(2px); }
.releve .titre { color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .14); padding-bottom: 10px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.releve .titre .direct { font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #f0a274; display: inline-flex; align-items: center; gap: 6px; }
.releve .titre .direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fanal); box-shadow: 0 0 0 3px rgba(217, 98, 43, .3); }
.releve .ligne { display: grid; grid-template-columns: 4.2rem 1fr; gap: 10px; }
.releve .h { color: #7f97ab; }
.releve strong { color: #fff; font-weight: 500; }
.releve .signal { color: #f0a274; }
.releve .pied-releve { color: #7f97ab; font-size: .78rem; margin-top: 12px; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.chiffres > div { padding: 6px 28px 6px 0; border-right: 1px solid var(--trait); margin-right: 28px; }
.chiffres > div:last-child { border-right: 0; margin-right: 0; }
.chiffres strong { display: block; font: 500 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--mono); color: var(--encre); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.chiffres span { color: var(--doux); font-size: .93rem; line-height: 1.4; display: block; margin-top: 8px; }
.chiffres .fort strong { color: var(--fanal-fonce); }
.source { color: var(--pale); font-size: .82rem; margin-top: 1.6rem; }

/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.carte-icone { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px 26px 22px; box-shadow: var(--ombre); transition: box-shadow .2s, transform .2s; }
.carte-icone:hover { box-shadow: var(--ombre-forte); transform: translateY(-2px); }
.carte-icone .pastille { width: 48px; height: 48px; border-radius: 50%; background: var(--bleu-clair); color: var(--marine-2); display: grid; place-items: center; margin-bottom: 18px; }
.carte-icone .numero { font: 500 .8rem/1 var(--mono); color: var(--fanal-fonce); margin-bottom: 10px; display: block; }
.carte-icone p { color: var(--doux); margin: 0; }

.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.liste-coches { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.liste-coches li { display: flex; gap: 12px; margin: .7rem 0; }
.liste-coches .ico { color: var(--vert); width: 22px; height: 22px; margin-top: 2px; }

/* Exemple de récapitulatif : rendu d'un e-mail */
.courriel { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre-forte); overflow: hidden; font-size: .93rem; border: 1px solid var(--trait); }
.courriel .barre-courriel { background: var(--teinte-2); padding: 10px 16px; display: flex; gap: 6px; align-items: center; }
.courriel .barre-courriel i { width: 10px; height: 10px; border-radius: 50%; background: #c5ccd3; display: block; }
.courriel .entete-courriel { padding: 14px 20px; border-bottom: 1px solid var(--trait-fin); }
.courriel .entete-courriel b { display: block; color: var(--encre); }
.courriel .entete-courriel span { color: var(--doux); font-size: .84rem; }
.courriel .evt { padding: 14px 20px; border-bottom: 1px solid var(--trait-fin); }
.courriel .evt:last-child { border-bottom: 0; }
.courriel .detail { color: var(--doux); font-size: .86rem; margin-top: 2px; }
.courriel .fictif { font-size: .76rem; color: var(--pale); padding: 10px 20px; background: var(--teinte); }
.etiquette { display: inline-block; font: 600 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; padding: 5px 8px; border-radius: 3px; background: var(--fanal-pale); color: var(--fanal-fonce); margin-bottom: 7px; }
.etiquette.neutre { background: var(--bleu-clair); color: var(--marine-2); }
.etiquette.verte { background: #e1f1e9; color: var(--vert); }

/* Tarifs */
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offre { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--ombre); }
.offre.mise-en-avant { border: 2px solid var(--marine-2); position: relative; }
.offre .bandeau-offre { position: absolute; top: -13px; left: 28px; background: var(--marine-2); color: #fff; font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; }
.offre h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .2rem; }
.offre .pour { color: var(--doux); font-size: .93rem; min-height: 2.8em; }
.offre .prix { font: 500 2.6rem/1 var(--mono); color: var(--encre); margin: 1rem 0 .3rem; letter-spacing: -0.03em; }
.offre .prix small { font: 400 .95rem var(--sans); color: var(--doux); letter-spacing: 0; }
.offre .annuel { color: var(--doux); font-size: .9rem; margin-bottom: 1.2rem; }
.offre .liste-coches { margin: 0 0 1.6rem; flex: 1; }
.offre .liste-coches li { margin: .45rem 0; font-size: .95rem; }
.note-tarifs { color: var(--doux); font-size: .9rem; margin: 1.8rem auto 0; max-width: 760px; text-align: center; }
.offre .prix .devise { font: 500 .62em var(--sans); margin-left: 6px; vertical-align: .55em; }

/* Foire aux questions */
.faq { max-width: 860px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; color: var(--encre); font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--marine-3); border-bottom: 2px solid var(--marine-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--texte); margin: 0 0 1.3rem; max-width: 760px; }

.grille-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.grille-faq .tete-section { margin-bottom: 0; }
.grille-faq .tete-section p { font-size: 1rem; }

/* Grille des départements */
.grille-dep { columns: 170px; column-gap: 28px; font-size: .9rem; margin: 0; }
.grille-dep a { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; break-inside: avoid; text-decoration: none; color: var(--texte); border-bottom: 1px dotted var(--trait); }
.grille-dep a:hover { color: var(--fanal-fonce); }
.grille-dep .code { width: 2.2rem; flex: none; }

/* Bandeau d'appel final */
.appel-bande { background: var(--marine) url("/static/phare-filigrane.svg") no-repeat right 4% center / 300px auto; color: #c9d5e0; padding: 3.8rem 0; }
.appel-bande .largeur { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.appel-bande h2 { color: #fff; margin-bottom: .4rem; }
.appel-bande p { margin: 0; max-width: 40rem; }

/* En-tête des pages intérieures */
.entete-page { background: var(--teinte); border-bottom: 1px solid var(--trait); padding: 2.2rem 0 2.6rem; }
.entete-page h1 { margin-bottom: .6rem; }
.entete-page .sous-titre { color: var(--doux); font-size: 1.1rem; max-width: 760px; margin: 0; }
.fil { font-size: .86rem; color: var(--doux); margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fil a { color: var(--doux); }
.fil .sep { color: var(--pale); }
.titre-dep { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.badge-code { font: 500 1rem/1 var(--mono); background: var(--marine-2); color: #fff; padding: 6px 10px; border-radius: 4px; vertical-align: middle; }
.entete-page .chiffres { margin-top: 2rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 26px; }

/* Mise en page avec sommaire */
.avec-aside { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-top: 3rem; padding-bottom: 3.5rem; }
.sommaire { position: sticky; top: 104px; align-self: start; font-size: .92rem; }
.sommaire p { font: 600 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--doux); margin-bottom: .9rem; }
.sommaire ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--trait); }
.sommaire a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--texte); text-decoration: none; line-height: 1.35; }
.sommaire a:hover { border-left-color: var(--fanal); color: var(--encre); }
.section-page { margin-bottom: 3.2rem; scroll-margin-top: 110px; }
.section-page:last-child { margin-bottom: 0; }
.section-page > h2 { font-size: 1.55rem; padding-bottom: .7rem; border-bottom: 1px solid var(--trait); margin-bottom: 1.4rem; }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); font-size: .93rem; }
.tableau th, .tableau td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--trait-fin); vertical-align: middle; }
.tableau .nb { text-align: right; }
.tableau thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); font-weight: 600; background: var(--teinte); border-bottom: 1px solid var(--trait); font-family: var(--sans); }
.tableau tbody tr:hover { background: #f8fafb; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .barre { width: 30%; min-width: 90px; }
.barre svg { display: block; width: 100%; height: 8px; border-radius: 4px; }
.defile { overflow-x: auto; }
.repartition svg { display: block; width: 100%; height: 16px; border-radius: 3px; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--doux); margin: 12px 0 0; padding: 0; list-style: none; }
.legende li::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px; border-radius: 2px; background: var(--c); }
.l-pro { --c: var(--marine-2); } .l-ben { --c: var(--fanal); } .l-inc { --c: var(--gris-barre); }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.encadre { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 24px; }
.encadre h3 { margin-bottom: 1rem; }

/* Articles */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.filtres a { border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: .9rem; text-decoration: none; color: var(--texte); }
.filtres a:hover { border-color: var(--marine-3); color: var(--marine-3); }
.grille-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.carte-article { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ombre); transition: box-shadow .2s, transform .2s; position: relative; }
.carte-article:hover { box-shadow: var(--ombre-forte); transform: translateY(-2px); }
.carte-article h3 { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; line-height: 1.3; margin: .2rem 0 .6rem; }
.carte-article h3 a { color: var(--encre); text-decoration: none; }
.carte-article h3 a::after { content: ""; position: absolute; inset: 0; }
.carte-article p { color: var(--doux); font-size: .93rem; flex: 1; margin-bottom: 1rem; }
.carte-article .meta { font-size: .8rem; color: var(--pale); }
.categorie-bloc { margin-bottom: 3.2rem; scroll-margin-top: 110px; }
.categorie-bloc > h2 { display: flex; align-items: baseline; gap: 12px; }
.categorie-bloc > h2 .nombre { font: 500 .9rem var(--mono); color: var(--pale); }
.prose { max-width: 740px; }
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 1rem; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose p, .prose li { font-size: 1.07rem; line-height: 1.75; }
.prose > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--encre); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin: .35rem 0; }
.prose blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--fanal); color: var(--doux); font-family: var(--serif); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--trait); font-size: .94rem; margin: 1.2rem 0 1.6rem; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--trait-fin); text-align: left; }
.prose th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); background: var(--teinte); }
.prose td:not(:first-child) { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--teinte-2); padding: 1px 5px; border-radius: 3px; }
.meta-article { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--doux); font-size: .9rem; margin-top: 1rem; }
.meta-article span { display: inline-flex; align-items: center; gap: 6px; }
.meta-article .ico { width: 17px; height: 17px; }

/* Connexion */
.connexion { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 116px); }
.connexion .panneau-gauche { padding: 4rem 0; display: flex; align-items: center; }
.connexion .panneau-gauche > div { width: 100%; max-width: 480px; margin-left: auto; padding: 0 48px 0 24px; }
.connexion .panneau-droit { background: var(--marine) url("/static/phare-filigrane.svg") no-repeat right -80px bottom -60px / 420px auto; color: #c9d5e0; padding: 4rem 0; display: flex; align-items: center; }
.connexion .panneau-droit > div { max-width: 480px; padding: 0 24px 0 56px; }
.connexion .panneau-droit h2 { color: #fff; }
.connexion .panneau-droit .liste-coches .ico { color: #f0a274; }
.connexion .panneau-droit .liste-coches b { color: #fff; }
.connexion input[type=email] { max-width: none; }

/* Espace abonné */
.carte { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 10px 26px 24px; margin: 22px 0; box-shadow: var(--ombre); }
.carte h2 { margin-top: 1.1rem; font-size: 1.35rem; }
.carte .tableau { border-left: 0; border-right: 0; border-radius: 0; }
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1rem 0; }
.formule { padding: 18px; border: 1px solid var(--trait); border-radius: var(--rayon); }
.formule form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .6rem; }
.onglet { padding: .3rem .7rem; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-family: var(--mono); font-size: .88rem; }
.onglet.actif { border-color: var(--trait); background: var(--teinte); color: var(--encre); }
.erreur, .avertissement { background: var(--fanal-pale); color: var(--alerte); padding: .75rem 1rem; border-radius: 4px; border-left: 3px solid var(--fanal); }
.info { background: var(--bleu-clair); padding: .75rem 1rem; border-radius: 4px; border-left: 3px solid var(--marine-3); }

/* Pages de texte */
.texte { max-width: 780px; }
.texte h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.liste { padding-left: 1.1rem; }
.liste li { margin: .5rem 0; }

/* Pied de page */
.pied { background: var(--teinte); border-top: 1px solid var(--trait); color: var(--doux); font-size: .9rem; flex-shrink: 0; }
.pied .colonnes-pied { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 3.2rem; padding-bottom: 2.6rem; }
.pied h4 { font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--encre); margin: .4rem 0 1.1rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin: .5rem 0; }
.pied a { color: var(--texte); text-decoration: none; }
.pied a:hover { color: var(--fanal-fonce); text-decoration: underline; }
.pied .marque-pied img { display: block; height: 46px; width: auto; margin-bottom: 1rem; }
.pied .marque-pied .baseline { font-family: var(--serif); font-size: 1.05rem; color: var(--encre); margin-bottom: .8rem; }
.pied .bas-pied { border-top: 1px solid var(--trait); padding: 1.1rem 0 1.4rem; font-size: .82rem; color: var(--pale); }
.pied .bas-pied .largeur { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.pied form { margin: 0; }
.pied .lien { color: var(--doux); }

/* Compléments */
.hero-grille > *, .deux > *, .avec-aside > *, .connexion > *, .grille-faq > *, .chiffres > * { min-width: 0; }
select { min-width: 0; text-overflow: ellipsis; }
.evitement { position: absolute; left: -9999px; top: 0; background: var(--fanal); color: #fff; padding: 10px 16px; z-index: 50; }
.evitement:focus { left: 16px; top: 8px; }
.bouton.marine { background: var(--marine-2); border-color: var(--marine-2); }
.bouton.marine:hover { background: var(--marine); border-color: var(--marine); box-shadow: 0 4px 12px rgba(15, 33, 50, .25); }
.bande.bordee { border-bottom: 1px solid var(--trait); }
.suite-liste { margin: 2rem 0 0; }
.sommaire .bouton { margin-top: 1.6rem; font-size: .92rem; padding: .7rem 1rem; }
.entete-page .meta-article { margin-top: 1.2rem; }
.entete-page .filtres { margin-top: 1.6rem; }
.entete-page h1 .badge-code { font-size: .5em; position: relative; top: -.35em; margin-left: .3em; }
.message-centre { max-width: 580px; margin: 3rem auto 2rem; text-align: center; background: #fff; border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 44px 40px 30px; box-shadow: var(--ombre); }
.message-centre .pastille { width: 60px; height: 60px; border-radius: 50%; background: var(--bleu-clair); color: var(--marine-2); display: grid; place-items: center; margin: 0 auto 20px; }
.message-centre .pastille .ico { width: 28px; height: 28px; }
.message-centre h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.message-centre form { margin: 1.4rem 0 1rem; }
.code-erreur { font: 500 4rem/1 var(--mono); color: var(--fanal); margin: 0 0 .6rem; letter-spacing: -0.04em; }
.actions-centre { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.garantie { display: flex; gap: 10px; align-items: flex-start; margin-top: 1.4rem; }
.garantie .ico { width: 20px; height: 20px; color: var(--vert); margin-top: 1px; }
.connexion h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.connexion .panneau-droit .liste-coches li { margin: 1.1rem 0; }
.connexion .panneau-droit .surtitre { color: #f0a274; }
.espace .carte:first-child { margin-top: 0; }
.formulaire input::placeholder { color: var(--pale); }

/* Photos et pictogrammes des articles */
.carte-article .photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--teinte-2); transition: transform .4s; }
.carte-article:hover .photo { transform: scale(1.03); }
.carte-article .photo.vide { display: grid; place-items: center; color: var(--marine-3); }
.carte-article .photo.vide .ico { width: 40px; height: 40px; }
.carte-article .corps-carte { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; background: #fff; position: relative; }
.carte-article .meta { display: inline-flex; align-items: center; gap: 6px; }
.carte-article .etiquette { align-self: flex-start; }
.carte-article .meta .ico { width: 15px; height: 15px; }
.etiquette .ico { width: 13px; height: 13px; stroke-width: 2; vertical-align: -2px; margin-right: 5px; }
.entete-page .surtitre .ico { width: 15px; height: 15px; stroke-width: 2; vertical-align: -3px; margin-right: 2px; }
.filtres a { display: inline-flex; align-items: center; gap: 8px; }
.filtres a .ico { width: 17px; height: 17px; color: var(--marine-3); }
.filtres .nombre { font: 500 .8rem var(--mono); color: var(--pale); }
.tete-categorie { display: flex; gap: 18px; align-items: flex-start; }
.tete-categorie .pastille { width: 52px; height: 52px; border-radius: 50%; background: var(--bleu-clair); color: var(--marine-2); display: grid; place-items: center; flex: none; margin-top: 2px; }
.tete-categorie h2 { margin-bottom: .4rem; }
.photo-article { margin-top: -1.6rem; position: relative; z-index: 1; }
.photo-article img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre-forte); }
.photo-article figcaption { font-size: .78rem; color: var(--pale); margin-top: .5rem; text-align: right; }
.photo-article figcaption a { color: var(--doux); }
.entete-page:has(+ .photo-article) { padding-bottom: 3.6rem; }

@media (max-width: 980px) {
  .hero-grille, .deux, .connexion, .grille-faq { grid-template-columns: 1fr; gap: 36px; }
  .cartes, .offres, .grille-articles { grid-template-columns: 1fr 1fr; }
  .avec-aside { grid-template-columns: 1fr; gap: 0; }
  .sommaire { display: none; }
  .pied .colonnes-pied { grid-template-columns: 1fr 1fr; }
  .connexion .panneau-gauche > div, .connexion .panneau-droit > div { margin: 0 auto; padding: 0 24px; }
}
@media (max-width: 680px) {
  .bande { padding: 3.2rem 0; }
  .marque .baseline, .bandeau-info { display: none; }
  .entete .largeur { min-height: 0; gap: 4px; padding-bottom: 8px; }
  .marque img { height: 44px; }
  .entete nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin: 0 -8px; scrollbar-width: none; }
  .entete nav a { padding: 6px 8px; font-size: .9rem; white-space: nowrap; }
  .entete nav a.essai { margin-left: auto; }
  .entete nav a[href="/#fonctionnement"], .entete nav a[href="/donnees"] { display: none; }
  .connexion { min-height: 0; }
  .connexion .panneau-gauche, .connexion .panneau-droit { padding: 2.6rem 0; }
  .hero { padding: 2.6rem 0 3.4rem; }
  .photo-article { margin-top: 1rem; }
  .tete-categorie .pastille { display: none; }
  .releve { font-size: .8rem; padding: 18px; }
  .releve .ligne { grid-template-columns: 3.2rem 1fr; }
  .message-centre { padding: 32px 22px 24px; margin-top: 1.5rem; }
  .largeur { padding: 0 16px; }
  .entete nav a[aria-current="page"]::after { display: none; }
  .cartes, .offres, .grille-articles, .grille-2, .pied .colonnes-pied { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .chiffres > div:nth-child(2) { border-right: 0; margin-right: 0; }
  .recherche .ligne { flex-direction: column; }
  .tableau .barre { display: none; }
  .hero { background-size: 300px auto; }
  .entete { position: static; }
}
