/* Pagaie — feuille unique, sans dépendance. Palette « schiste et rouille », titres en serif système. */
:root {
  --papier: #f3efe6;
  --papier-2: #e9e3d6;
  --encre: #1f2a24;
  --encre-douce: #4b554f;
  --trait: #cfc6b4;
  --rouille: #b4532a;
  --rouille-fonce: #8e3d1c;
  --mousse: #3f6b45;
  --alerte: #a8322a;
  --panneau: #1f2a24;
  --panneau-texte: #f3efe6;
  --panneau-doux: #b9c2bb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 72rem;
  --mesure: 42rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #161a18;
    --papier-2: #1f2421;
    --encre: #ece7dc;
    --encre-douce: #a9b1ab;
    --trait: #39413c;
    --rouille: #e07a4f;
    --rouille-fonce: #f09a73;
    --mousse: #7fb487;
    --alerte: #ef7d72;
    --panneau: #262d29;
    --panneau-texte: #ece7dc;
    --panneau-doux: #a9b1ab;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 1.0625rem/1.65 var(--sans);
}
a { color: var(--rouille-fonce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rouille); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.evitement { position: absolute; left: -999px; top: 0; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--encre); color: var(--papier); padding: .5rem 1rem; z-index: 10; }

/* En-tête : bandeau fin, marque à gauche */
.entete { border-bottom: 1px solid var(--trait); }
.entete__in {
  max-width: var(--largeur); margin: 0 auto; padding: .9rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marque { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); line-height: 1.15; }
.marque__nom { font: 700 1.5rem/1 var(--serif); letter-spacing: -.01em; }
.marque__nom::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .12em; background: var(--rouille); border-radius: 50%; }
.marque__ligne { font-size: .8rem; color: var(--encre-douce); margin-top: .2rem; }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; gap: 1.4rem; align-items: center; }
.menu a { color: var(--encre); text-decoration: none; font-weight: 500; }
.menu a:hover, .menu a[aria-current] { color: var(--rouille-fonce); text-decoration: underline; }
.menu__groupe { position: relative; }
.menu__groupe > span { font-weight: 500; cursor: default; }
.menu__groupe > span::after { content: " ▾"; font-size: .75em; color: var(--encre-douce); }
.menu__groupe > ul {
  position: absolute; top: 100%; left: -1rem; min-width: 11rem; padding: .6rem 1rem;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 6px;
  display: none; z-index: 5;
}
.menu__groupe:hover > ul, .menu__groupe:focus-within > ul { display: block; }
.menu__groupe > ul li { padding: .2rem 0; }
.menu-bouton {
  display: none; font: inherit; font-weight: 600; background: none; color: var(--encre);
  border: 1px solid var(--encre); border-radius: 999px; padding: .35rem 1rem; cursor: pointer;
}

/* Ouverture de page : grand titre serif, relevé à droite sur grand écran */
main { max-width: var(--largeur); margin: 0 auto; padding: 0 1rem 4rem; }
.ouverture { padding: 3rem 0 2rem; display: grid; gap: 2rem; }
.ouverture--releve { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.surtitre {
  margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rouille-fonce);
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 0; font-weight: 700; }
.chapo { font-size: 1.2rem; color: var(--encre-douce); max-width: 38rem; margin: 1.25rem 0 0; }

/* Relevé : panneau sombre, chiffres en grand */
.releve {
  background: var(--panneau); color: var(--panneau-texte); border-radius: 10px; padding: 1.4rem 1.5rem;
  border-top: 5px solid var(--encre-douce);
}
.releve--ouvert { border-top-color: var(--mousse); }
.releve--ferme { border-top-color: var(--alerte); }
.releve--info { border-top-color: var(--rouille); }
.releve p { margin: 0; }
.releve a { color: inherit; }
.releve__riviere { font: 700 1.15rem/1.2 var(--serif); }
.releve__etat { display: flex; align-items: center; gap: .5rem; margin-top: .35rem !important; font-weight: 600; }
.pastille { width: .7rem; height: .7rem; border-radius: 50%; background: var(--panneau-doux); flex: none; }
.releve--ouvert .pastille { background: #6fbf73; }
.releve--ferme .pastille { background: #ef6f62; }
.releve--info .pastille { background: #e59a6b; }
.releve__mesures { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.1rem 0 0; }
.releve__mesures dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panneau-doux); }
.releve__mesures dd { margin: 0; color: var(--panneau-doux); }
.releve__mesures strong { font: 700 2.2rem/1.05 var(--serif); color: var(--panneau-texte); font-variant-numeric: tabular-nums; }
.releve--compact .releve__mesures strong { font-size: 1.6rem; }
.releve__sous-titre { margin-top: 1.3rem !important; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panneau-doux); }
.prevision { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; align-items: end; }
.prevision li { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .75rem; color: var(--panneau-doux); }
.prevision__barre { display: block; width: 100%; height: 4.5rem; position: relative; }
.prevision__barre::before {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: var(--h);
  background: #6fbf73; border-radius: 3px 3px 0 0;
}
.prevision li.non .prevision__barre::before { background: #ef6f62; }
.prevision__val { color: var(--panneau-texte); font-variant-numeric: tabular-nums; }
.prevision__jour { white-space: nowrap; }
.releve__statut, .releve__conseil { margin-top: 1rem !important; font-size: .92rem; }
.releve__conseil { padding-left: .8rem; border-left: 3px solid var(--rouille); }
.releve__date { margin-top: 1rem !important; font-size: .78rem; color: var(--panneau-doux); }
.releves { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }

/* Corps rédigé */
.texte > * { max-width: var(--mesure); }
.texte > .releves { max-width: none; }
.texte > :first-child { margin-top: 0; }
.texte h2 { font-size: 1.85rem; margin: 3rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.texte h3 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.texte ul, .texte ol { padding-left: 1.3rem; }
.texte li + li { margin-top: .35rem; }
.note {
  margin: 1.8rem 0; padding: 1rem 1.2rem; background: var(--papier-2); border-left: 4px solid var(--rouille); border-radius: 0 6px 6px 0;
}
.note > :first-child { margin-top: 0; } .note > :last-child { margin-bottom: 0; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem 2rem; margin: 1.5rem 0; }
.grille-2 > * { margin: 0; }
.chiffre { margin: 0; padding: .8rem 0; border-top: 2px solid var(--encre); }
.chiffre strong { display: block; font: 700 2rem/1.1 var(--serif); }
.chiffre span { color: var(--encre-douce); font-size: .95rem; }
.etapes { counter-reset: etape; list-style: none; padding-left: 0 !important; }
.etapes > li { counter-increment: etape; position: relative; padding-left: 3rem; margin-top: 1.2rem !important; }
.etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: .05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 1rem/1 var(--serif); background: var(--encre); color: var(--papier);
}
.tableau-defile { overflow-x: auto; margin: 1.5rem 0; }
.tableau { width: 100%; border-collapse: collapse; font-size: .97rem; font-variant-numeric: tabular-nums; }
.tableau th, .tableau td { text-align: left; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); border-bottom: 2px solid var(--encre); }
.tableau td.ok { color: var(--mousse); font-weight: 600; }
.tableau td.non { color: var(--alerte); font-weight: 600; }
.bouton {
  display: inline-block; background: var(--rouille); color: #fff; text-decoration: none; font-weight: 600;
  padding: .7rem 1.3rem; border-radius: 999px;
}
.bouton:hover { background: var(--rouille-fonce); color: #fff; }

/* FAQ visible */
.questions { max-width: var(--mesure); margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.questions h2 { font-size: 1.85rem; margin: 0 0 1rem; }
.questions details { border-bottom: 1px solid var(--trait); padding: .9rem 0; }
.questions summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 400 1.4rem/1 var(--serif); color: var(--rouille); }
.questions details[open] summary::after { content: "−"; }
.questions details > div { color: var(--encre-douce); padding-top: .4rem; }

/* Pied de page */
.pied { background: var(--papier-2); border-top: 1px solid var(--trait); margin-top: 2rem; }
.pied__in {
  max-width: var(--largeur); margin: 0 auto; padding: 2.5rem 1rem;
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; font-size: .92rem; color: var(--encre-douce);
}
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li + li { margin-top: .3rem; }
.pied__titre { font-weight: 700; color: var(--encre); margin-top: 0; }
.pied .marque__nom { color: var(--encre); display: block; margin-bottom: .6rem; }

/* Menu repliable jusqu’à 70rem : au-delà, toutes les entrées tiennent sur une ligne. */
@media (max-width: 70rem) {
  .menu-bouton { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--trait); padding: 1rem; z-index: 5; }
  .menu--ouvert { display: block; }
  .entete { position: relative; }
  .menu > ul { flex-direction: column; align-items: flex-start; gap: .8rem; }
  /* Même disposition au repos, au toucher (:hover) et au focus : sinon la liste se réorganise sous le doigt. */
  .menu__groupe > ul, .menu__groupe:hover > ul, .menu__groupe:focus-within > ul { position: static; display: flex; flex-wrap: wrap; gap: 0 1.2rem; border: 0; padding: .2rem 0 0; min-width: 0; background: none; }
  .menu a { display: inline-block; padding: .45rem 0; }
  .menu__groupe > span::after { content: ""; }
  .menu__groupe > span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); }
}

@media (max-width: 52rem) {
  .ouverture { padding-top: 2rem; }
  .ouverture--releve { grid-template-columns: 1fr; }
  .pied__in { grid-template-columns: 1fr 1fr; }
  .tableau { font-size: .88rem; }
  .tableau th, .tableau td { padding-right: .55rem; }
  .pied__in > div:first-child { grid-column: 1 / -1; }
}

/* Sélecteur de langue */
.langues { display: flex; gap: .15rem; padding-left: 1rem; border-left: 1px solid var(--trait); }
.langues a { font-size: .8rem; font-weight: 700; letter-spacing: .06em; padding: .2rem .35rem; border-radius: 4px; color: var(--encre-douce); }
.langues a[aria-current] { background: var(--encre); color: var(--papier); text-decoration: none; }
@media (max-width: 70rem) { .langues { border-left: 0; padding-left: 0; padding-top: .4rem; } }

/* Graphique 15 jours */
.bande-graphique { margin: 0 0 2.5rem; }
.graphique { margin: 0; padding: 1.2rem 1.2rem .8rem; background: var(--papier-2); border-radius: 10px; }
.graphique__titre { margin: 0; font-size: .9rem; color: var(--encre-douce); margin-bottom: .5rem; }
.graphique__titre strong { font-family: var(--serif); font-size: 1.15rem; color: var(--encre); }
.graphique__zone { position: relative; height: 14rem; margin: .4rem 0 1.6rem 2.6rem; }
.graphique__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g-grille { stroke: var(--trait); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-jour { stroke: var(--trait); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.g-seuil { stroke: var(--rouille); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.g-aire { fill: var(--mousse); opacity: .14; }
.g-courbe { fill: none; stroke: var(--mousse); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.g-y, .g-x, .g-seuil-txt { position: absolute; font-size: .72rem; color: var(--encre-douce); white-space: nowrap; line-height: 1; }
.g-y { right: calc(100% + .5rem); transform: translateY(-50%); }
.g-x { top: calc(100% + .45rem); transform: translateX(-50%); }
.g-seuil-txt { left: .3rem; transform: translateY(-130%); color: var(--rouille-fonce); font-weight: 600; }
.g-point { position: absolute; width: .6rem; height: .6rem; margin: -.3rem 0 0 -.3rem; border-radius: 50%; background: var(--mousse); box-shadow: 0 0 0 2px var(--papier-2); }
@media (max-width: 30rem) { .g-x:nth-of-type(even) { display: none; } .graphique__zone { height: 11rem; } }
.graphique__legende { margin: .4rem 0 0; font-size: .85rem; color: var(--encre-douce); }

/* Sous-navigation d'une rivière */
.sous-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 2rem; }
.sous-nav a { padding: .4rem .9rem; border: 1px solid var(--trait); border-radius: 999px; text-decoration: none; color: var(--encre); font-weight: 600; font-size: .92rem; }
.sous-nav a[aria-current] { background: var(--encre); color: var(--papier); border-color: var(--encre); }

/* Statut officiel */
.officiel { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; margin: 1.5rem 0; border: 1px solid var(--trait); border-left: 5px solid var(--mousse); border-radius: 6px; max-width: none !important; }
.officiel--ferme { border-left-color: var(--alerte); }
.officiel > div { padding: .8rem 1rem; border-bottom: 1px solid var(--trait); }
.officiel dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); }
.officiel dd { margin: .2rem 0 0; }
.officiel dd span { color: var(--encre-douce); font-size: .9rem; }

/* Widget intégrable et générateur */
body.embed { background: transparent; margin: 0; padding: 4px; }
body.embed .releve { border-radius: 8px; }
.embed__lien { margin: .4rem 0 0; font-size: .8rem; text-align: right; }
.generateur { margin: 1.5rem 0; padding: 1.2rem; background: var(--papier-2); border-radius: 10px; max-width: none !important; }
.generateur__champs { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.generateur label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.generateur select, .generateur textarea { font: inherit; font-weight: 400; padding: .5rem .6rem; border: 1px solid var(--trait); border-radius: 6px; background: var(--papier); color: var(--encre); }
.generateur textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; width: 100%; resize: vertical; }
.generateur .bouton { margin-top: .8rem; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.generateur__apercu-titre { margin: 1.4rem 0 .4rem; font-weight: 600; }
.generateur__apercu { border: 1px dashed var(--trait); border-radius: 8px; max-width: 100%; background: var(--papier); }

/* Fiche d'une offre */
.fiche { background: var(--panneau); color: var(--panneau-texte); border-radius: 10px; padding: 1.4rem 1.5rem; border-top: 5px solid var(--rouille); }
.fiche--fermee { border-top-color: var(--alerte); }
.fiche p { margin: 0; }
.fiche a { color: inherit; }
.fiche__riviere { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panneau-doux); }
.fiche__nom { font: 700 1.6rem/1.15 var(--serif); margin-top: .3rem !important; }
.fiche__faits { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; margin: 1.1rem 0 1.3rem; }
.fiche__faits dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panneau-doux); }
.fiche__faits dd { margin: .15rem 0 0; font-weight: 600; }
.fiche__bouton { font: inherit; font-weight: 700; font-size: 1.05rem; border: 0; cursor: pointer; width: 100%; padding: .85rem 1.3rem; }
.fiche__note { margin-top: .8rem !important; font-size: .85rem; color: var(--panneau-doux); }
.fiche__ferme { padding: .8rem 1rem; border-left: 3px solid var(--alerte); background: rgba(0,0,0,.2); font-size: .92rem; }

/* Formulaire de réservation (dialog) */
.resa { width: min(40rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: 12px; background: var(--papier); color: var(--encre); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.resa::backdrop { background: rgba(20,26,23,.6); }
.resa__form { display: flex; flex-direction: column; max-height: calc(100dvh - 1.5rem); }
.resa__tete { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem .6rem; }
.resa__offre { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rouille-fonce); font-weight: 700; }
.resa__titre { margin: .2rem 0 0; font-size: 1.5rem; }
.resa__etape { margin: .2rem 0 0; font-size: .85rem; color: var(--encre-douce); }
.resa__fermer { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--trait); background: none; color: var(--encre); font-size: 1.4rem; cursor: pointer; }
.resa__barre { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; list-style: none; margin: 0; padding: 0 1.4rem; }
.resa__barre li { height: 4px; border-radius: 2px; background: var(--trait); }
.resa__barre li.actif { background: var(--rouille); }
.resa__pas { padding: 1.2rem 1.4rem; overflow-y: auto; }
.resa__erreur { margin: 0 1.4rem; color: var(--alerte); font-weight: 600; min-height: 1.2em; }
.resa__erreur:empty { display: none; }
.resa__pied { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem 1.3rem; border-top: 1px solid var(--trait); margin-top: auto; }
.resa__pied .bouton { margin-left: auto; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.lien-bouton { background: none; border: 0; color: var(--encre); font: inherit; text-decoration: underline; cursor: pointer; padding: .5rem 0; }
.bouton--large { width: 100%; margin-top: 1rem; padding: .9rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem; }
.bouton:disabled { opacity: .6; cursor: wait; }
.champ { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.champ input, .champ select { font: inherit; font-weight: 400; padding: .65rem .75rem; border: 1px solid var(--trait); border-radius: 6px; background: var(--papier); color: var(--encre); min-height: 2.9rem; }
.champ input:focus, .champ select:focus { outline: 3px solid var(--rouille); outline-offset: 1px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.aide { font-size: .88rem; color: var(--encre-douce); margin: .2rem 0 1rem; }
.aide--demo { padding: .6rem .8rem; background: var(--papier-2); border-left: 3px solid var(--rouille); }
.creneaux { border: 0; padding: 0; margin: 0; }
.creneaux legend { font-weight: 600; margin-bottom: .5rem; }
.creneaux label { display: inline-block; margin: 0 .35rem .45rem 0; }
.creneaux input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.creneaux span { display: inline-block; padding: .5rem .85rem; border: 1px solid var(--trait); border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; }
.creneaux input:checked + span { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.creneaux input:focus-visible + span { outline: 3px solid var(--rouille); outline-offset: 2px; }
.compteur { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--trait); }
.compteur__txt { display: flex; flex-direction: column; }
.compteur__nom { font-weight: 600; }
.compteur__sous { font-size: .85rem; color: var(--encre-douce); }
.compteur__ctrl { display: flex; align-items: center; gap: .3rem; flex: none; }
.compteur__ctrl button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--encre); background: none; color: var(--encre); font-size: 1.3rem; cursor: pointer; }
.compteur__ctrl input { width: 3rem; text-align: center; font: inherit; font-weight: 700; border: 0; background: none; color: var(--encre); -moz-appearance: textfield; }
.compteur__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.case { display: flex; gap: .6rem; align-items: flex-start; margin: .7rem 0; font-size: .95rem; }
.case input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; accent-color: var(--rouille); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.devis { width: 100%; border-collapse: collapse; margin: 1rem 0 0; font-variant-numeric: tabular-nums; }
.devis th, .devis td { padding: .45rem 0; border-bottom: 1px solid var(--trait); text-align: left; font-weight: 400; }
.devis td { text-align: right; white-space: nowrap; padding-left: 1rem; }
.devis__total th, .devis__total td { font-weight: 700; border-bottom: 2px solid var(--encre); }
.recap { padding-left: 1.1rem; margin: 0 0 .5rem; }
#resa-carte { margin-top: 1rem; }
.confirmation { max-width: var(--mesure); }
.confirmation--echec p:first-child { color: var(--alerte); font-weight: 600; }

/* Fil d'Ariane et signature */
.ariane ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .85rem; color: var(--encre-douce); }
.ariane li + li::before { content: "/"; margin-right: .5rem; color: var(--trait); }
.ariane a { color: var(--encre-douce); }
.signature { margin: 1rem 0 0; font-size: .9rem; color: var(--encre-douce); }

/* Quiz */
.quiz { max-width: none !important; }
.quiz__q { border: 0; padding: 0; margin: 0 0 1.8rem; }
.quiz__q legend { font: 700 1.25rem/1.3 var(--serif); margin-bottom: .7rem; display: flex; gap: .7rem; align-items: center; }
.quiz__num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--encre); color: var(--papier); display: grid; place-items: center; font-size: 1rem; flex: none; }
.quiz__choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.quiz__choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz__choix span { display: inline-block; padding: .65rem 1rem; border: 1px solid var(--trait); border-radius: 8px; cursor: pointer; background: var(--papier); }
.quiz__choix input:checked + span { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.quiz__choix input:focus-visible + span { outline: 3px solid var(--rouille); outline-offset: 2px; }
.quiz .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.quiz__resultat { margin: 2rem 0; max-width: 46rem !important; }
.quiz__resultat:focus { outline: none; }
.quiz__carte { background: var(--panneau); color: var(--panneau-texte); border-radius: 10px; padding: 1.3rem 1.4rem; border-top: 5px solid var(--rouille); }
.quiz__carte h2 { margin: .3rem 0 .5rem; font-size: 1.4rem; border: 0; padding: 0; }
.quiz__carte p { margin: 0 0 .8rem; color: var(--panneau-doux); }
.quiz__etiquette { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #e59a6b !important; font-weight: 700; }
.quiz__alerte { color: #ef9a90 !important; font-size: .9rem; }

/* Page de gestion */
.gestion { max-width: 90rem; padding: 2rem 1rem; }
.gestion table form { display: inline; }
.gestion table button { font: inherit; font-size: .85rem; margin: .1rem; padding: .3rem .6rem; cursor: pointer; }
.gestion pre { white-space: pre-wrap; font-size: .8rem; max-width: 28rem; }

/* Maillage : cartes de liens (« Pour aller plus loin », hubs) */
.cartes-liens { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.lien-carte { position: relative; margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--trait); border-radius: 6px; background: var(--papier-2); }
.lien-carte a { font: 600 1.15rem/1.3 var(--serif); color: var(--encre); text-decoration: none; }
.lien-carte a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.lien-carte:hover { border-color: var(--rouille); }
.lien-carte:focus-within { outline: 3px solid var(--rouille); outline-offset: 2px; }
.lien-carte a:focus-visible { outline: none; }
.lien-carte p { margin: .45rem 0 0; font-size: .92rem; color: var(--encre-douce); }
.texte .cartes-liens, .texte > .hub-groupe, .texte > .hub-rivieres { max-width: none; }
.texte .cartes-liens { padding-left: 0; }
.texte .cartes-liens li + li { margin-top: 0; }
.connexes { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.connexes h2, .hub-groupe h2 { font-size: 1.5rem; margin: 0; }
.texte .hub-groupe h2 { margin: 2.5rem 0 0; }
.hub-rivieres { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.texte .hub-riviere h2 { margin: 0; padding: 0; border: 0; font-size: 1.6rem; }
.hub-riviere h2 a { color: var(--encre); text-decoration: none; }
.hub-riviere { padding: 1.2rem; border: 1px solid var(--trait); border-radius: 6px; }
.hub-riviere .surtitre { margin: .2rem 0 0; }
.hub-riviere > p { color: var(--encre-douce); font-size: .95rem; }
.hub-riviere__liens { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.hub-riviere__liens a { padding: .35rem .8rem; border: 1px solid var(--trait); border-radius: 999px; text-decoration: none; color: var(--encre); font-weight: 600; font-size: .88rem; }
.hub-riviere__liens a:hover { border-color: var(--rouille); }
.pied__titre a { color: inherit; }

/* Alertes e-mail */
.alertes { margin: 3rem 0 0; padding: 1.4rem; border: 1px solid var(--trait); border-left: 4px solid var(--mousse); border-radius: 6px; background: var(--papier-2); max-width: var(--mesure); }
.texte .alertes { margin-top: 2rem; }
.alertes h2, .texte .alertes h2 { font-size: 1.4rem; margin: 0 0 .4rem; padding: 0; border: 0; }
.alertes > p { margin: 0 0 1rem; color: var(--encre-douce); }
.alertes .creneaux { border: 0; padding: 0; margin: 0 0 1rem; }
.alertes__ligne { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; }
.alertes__ligne .champ { flex: 1 1 15rem; margin: 0; }
.alertes__ligne .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; min-height: 2.9rem; }
.alertes .aide { margin: .8rem 0 0; }
.alertes__choix { display: flex; flex-wrap: wrap; gap: .6rem; }
.alertes__choix .bouton, .confirmation form .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.bouton--clair { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait); }
.bouton--clair:hover { background: var(--papier-2); color: var(--encre); }
.donnees { margin: .6rem 0 0; font-size: .88rem; color: var(--encre-douce); }

/* Quiz pas à pas */
.quiz--pas { max-width: 46rem !important; padding: 1.5rem; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier-2); }
.quiz__progres { margin: 0 0 1.4rem; }
.quiz__etape { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); }
.quiz__barre { height: 6px; border-radius: 3px; background: var(--trait); overflow: hidden; }
.quiz__barre span { display: block; height: 100%; width: 0; background: var(--rouille); transition: width .3s ease; }
.quiz__aide { margin: -.3rem 0 .9rem; font-size: .92rem; color: var(--encre-douce); }
.quiz legend:focus { outline: none; }
.quiz--pas .quiz__q { margin: 0; }
.quiz--pas .quiz__choix { flex-direction: column; }
.quiz--pas .quiz__choix span { display: block; padding: .85rem 1rem; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.3rem 0 0; }
.quiz__nav .bouton { margin-left: auto; }
.quiz__nav .bouton:disabled { opacity: .45; cursor: not-allowed; }
.quiz__faits { font-weight: 600; color: var(--panneau-texte) !important; }
.quiz__ouvert { color: #8fd694 !important; font-weight: 600; }
.quiz__sous { margin: 1.1rem 0 .3rem !important; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #e59a6b !important; }
.quiz__raisons { margin: 0 0 .8rem; padding-left: 1.2rem; color: var(--panneau-texte); }
.quiz__carte .bouton { margin-top: .6rem; }
.quiz__carte .alertes { margin-top: 1rem; color: var(--encre); }
.quiz__partage { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .92rem; }
.quiz__partage a, .quiz__partage .lien-bouton { color: var(--panneau-texte); }
.quiz__copie { color: #8fd694; }
.quiz__autres { margin: 1.5rem 0 0; }
.quiz__autres .quiz__sous { color: var(--rouille-fonce) !important; }
.quiz__autres ul { padding-left: 1.2rem; }
.quiz__refaire { margin-top: 1rem; }
.quiz__partage-vu { max-width: 46rem; margin: 0 0 2rem; }

/* Espace client */
.compte { max-width: 46rem; }
.compte__form { margin: 1rem 0; }
.compte__form .bouton, .g-inline button.bouton, .g-filtres .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.compte__bloc { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--trait); }
.compte__bloc h2 { font-size: 1.5rem; margin: 0 0 .8rem; }
.compte__resas { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.compte__resa { padding: 1rem 1.1rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--papier-2); }
.compte__resa p { margin: .2rem 0; }
.pastille-texte { display: inline-block; margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; background: var(--encre); color: var(--papier); font-size: .78rem; font-weight: 700; }
.compte details { margin: 1rem 0; }
.compte summary { cursor: pointer; font-weight: 600; }

/* Gestion */
body.g { background: var(--papier); }
.g-entete { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--trait); }
.g-entete .sous-nav { margin: 0; }
.gestion { max-width: 90rem; margin: 0 auto; padding: 1rem 1rem 4rem; }
.gestion h1 { font-size: 2rem; margin: 1rem 0; }
.g-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; margin: 0 0 1.5rem; }
.g-kpi { padding: .9rem 1rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--papier-2); }
.g-kpi p { margin: 0; }
.g-kpi__lib { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
.g-kpi__val { font: 700 2rem/1.15 var(--serif); }
.g-kpi a { text-decoration: none; color: var(--encre); }
.g-kpi__sous { font-size: .85rem; color: var(--encre-douce); }
.g-bloc { margin: 1.5rem 0; }
.g-bloc h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.g-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 0 1.5rem; }
.g-barres th { position: relative; font-weight: 500; }
.g-barres th span:last-child { position: relative; }
.g-barre { position: absolute; inset: .25rem auto .25rem 0; width: var(--p); background: color-mix(in srgb, var(--rouille) 18%, transparent); border-radius: 3px; }
.g-histo { display: flex; align-items: flex-end; gap: 2px; height: 10rem; padding: .5rem 0; border-bottom: 1px solid var(--trait); }
.g-histo span { flex: 1; height: var(--h); min-width: 2px; background: var(--rouille); border-radius: 2px 2px 0 0; }
.g-filtres { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin: 0 0 1rem; }
.g-filtres label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; font-weight: 600; }
.g-filtres input, .g-filtres select { font: inherit; padding: .45rem .6rem; border: 1px solid var(--trait); border-radius: 6px; background: var(--papier); color: var(--encre); }
.g-inline { display: inline-block; margin: .15rem .3rem .15rem 0; }
.g-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.g-fiche { max-width: 60rem; }
.g-pre { white-space: pre-wrap; word-break: break-word; font-size: .82rem; background: var(--papier-2); border: 1px solid var(--trait); border-radius: 6px; padding: .8rem; max-height: 32rem; overflow: auto; }
.g-alerte { background: color-mix(in srgb, var(--alerte) 12%, transparent); }
.g-resas small { color: var(--encre-douce); }

.menu a, .menu__groupe > span { white-space: nowrap; }
/* Espace client : listes et titres hors des styles d’article */
.texte .compte__resas { padding-left: 0; }
.texte .compte__resas li + li { margin-top: 0; }
.texte .compte__bloc h2 { border-top: 0; padding-top: 0; margin-top: 0; }
/* Rivière fermée : rivières ouvertes au même moment */
.ailleurs { margin: 0 0 2.5rem; padding: 1.2rem 1.3rem; border: 1px solid var(--trait); border-left: 4px solid var(--alerte); border-radius: 6px; background: var(--papier-2); }
.ailleurs h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.ailleurs > p { margin: 0 0 .8rem; }
.ailleurs .releves { margin: .5rem 0 0; }
.ailleurs__lien { margin: .5rem 0 0; font-weight: 600; }
