/*
 * Le site du Carnet de Pêche.
 *
 * Deux matières : la photo de l'eau, rivière, lac ou côte, en plein écran en
 * haut de chaque page ; et la réglette jaune, celle que tout pêcheur a dans sa
 * bourriche, posée dessus. Le jaune lui est réservé, ainsi qu'au bouton de
 * l'application et aux mailles ; il n'apparaît nulle part ailleurs, pour qu'il
 * garde son sens : « ici, on mesure ».
 *
 * Vert et rouge ne servent qu'aux états réglementaires (ouvert, fermé). Ils ne
 * portent jamais seuls l'information : chaque état est aussi écrit en toutes
 * lettres, pour les daltoniens et pour l'impression.
 *
 * Le texte posé sur une photo l'est toujours sur un voile d'encre, et la
 * bannière a l'encre pour couleur de fond : si la photo ne charge pas, le
 * texte blanc reste lisible.
 *
 * Les polices sont servies par le site lui-même : aucun appel à un tiers,
 * donc rien à déclarer côté cookies, et rien qui casse si Google Fonts change
 * d'adresse. Si un fichier manque, la pile de repli prend le relais.
 */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap;
  src: url("/polices/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("/polices/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400 600; font-display: swap;
  src: url("/polices/source-serif-4.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/polices/source-serif-4-italique.woff2") format("woff2"); }

:root {
  --encre: #12343b;        /* eau profonde : texte, en-tête */
  --nuit: #0b2227;         /* le fond des sections sombres */
  --papier: #eef2ec;       /* fond, vert de rivière très pâle */
  --blanc: #ffffff;
  --roche: #56686b;        /* texte secondaire */
  --berge: #cfd9d2;        /* filets, bordures */
  --reglette: #f2c230;     /* réservé à la réglette, aux mailles et au bouton de l'appli */
  --ouvert: #2e7d4f;
  --ferme: #b3261e;
  --relache: #b86e00;      /* remise à l'eau obligatoire */

  /* Le voile posé sur les photos : sombre en haut (sous le menu) et en bas
   * (sous le titre), clair au milieu, là où est le paysage. */
  --voile: linear-gradient(180deg, rgba(8, 28, 32, .72) 0, rgba(8, 28, 32, .18) 26%,
           rgba(8, 28, 32, .12) 50%, rgba(8, 28, 32, .82) 100%);

  --titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texte: "Source Serif 4", Georgia, "Times New Roman", serif;

  --mesure: 68ch;
  --large: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* Les sections pleine largeur font 100vw, barre de défilement comprise. */
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--encre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--reglette); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-top: 1.8em; }
h3 { font-size: 1.35rem; margin-top: 1.4em; font-weight: 500; }

p, ul, ol { margin: 0 0 1em; }

.page { max-width: var(--large); margin: 0 auto; padding: 0 20px; }
.lecture { max-width: var(--mesure); }
.plein { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------------------------------------------------------------- en-tête */

.entete { background: var(--nuit); color: var(--papier); position: relative; z-index: 5; }
.entete .page { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; padding-block: .9rem; }
.entete a { color: var(--papier); text-decoration: none; }
.entete a:hover { text-decoration: underline; }
.marque { display: flex; align-items: center; gap: .6rem; font-family: var(--titre); font-weight: 700; font-size: 1.55rem; margin-right: auto; }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
.navigation { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; font-family: var(--titre); font-weight: 500; font-size: 1.18rem; }
.navigation [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--reglette); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Sur une page à bannière, l'en-tête flotte sur la photo. */
.avec-banniere .entete { position: absolute; inset: 0 0 auto; background: transparent; }
.avec-banniere .entete a { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

.fil { font-size: .9rem; color: var(--roche); margin: 1.2rem 0 1.6rem; }
.fil a { color: var(--roche); }

main { padding-bottom: 4rem; }
.avec-banniere main { padding-top: 2.6rem; }

.chapeau { font-size: 1.2rem; color: var(--encre); max-width: var(--mesure); }
.discret { color: var(--roche); font-size: .95rem; }

/* ------------------------------------------------------------- la bannière */

.banniere {
  position: relative;
  margin: 0;
  min-height: clamp(360px, 54vh, 580px);
  display: flex;
  align-items: flex-end;
  background: var(--nuit);
  color: var(--blanc);
  isolation: isolate;
}
.banniere-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banniere::after { content: ""; position: absolute; inset: 0; background: var(--voile); z-index: 1; }
.banniere-texte { position: relative; z-index: 2; width: 100%; padding-top: 7.5rem; padding-bottom: 2.8rem; }
.banniere h1 { color: var(--blanc); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); max-width: 20ch; margin-bottom: .25em; }
.banniere .chapeau { color: #e9f0eb; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); margin-bottom: 0; }
.banniere .fil { color: rgba(255, 255, 255, .82); margin: 0 0 .8rem; }
.banniere .fil a { color: rgba(255, 255, 255, .92); }
.banniere a { color: var(--blanc); }
.banniere .code { font-weight: 500; opacity: .75; }
.banniere .scientifique { font-style: italic; font-size: 1.2rem; color: #e9f0eb; margin: 0; }

/* La légende que les licences libres exigent : discrète, jamais absente. */
.credit {
  position: absolute; right: 12px; bottom: 8px; z-index: 2;
  max-width: min(46ch, 60%);
  font-size: .72rem; line-height: 1.35; text-align: right;
  color: rgba(255, 255, 255, .78); text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}
.credit a { color: inherit; }

/* L'accueil : la rivière en plein écran, la réglette posée au bas de l'image. */
.banniere-une { min-height: min(94svh, 940px); }
.banniere-une::after { background: linear-gradient(270deg, rgba(8, 28, 32, .62) 0, rgba(8, 28, 32, 0) 62%), var(--voile); }
@media (max-width: 900px) { .banniere-une::after { background: var(--voile); } }
.banniere-une .banniere-texte { min-height: inherit; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding-top: 9rem; padding-bottom: 3.4rem; }
.banniere-une h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); max-width: 14ch; line-height: .95; }
.banniere-une .une-titre { align-self: flex-end; max-width: 640px; }
@media (max-width: 900px) { .banniere-une .une-titre { align-self: auto; } }
.banniere-une .chapeau { font-size: clamp(1.1rem, 1.6vw, 1.32rem); max-width: 54ch; margin-bottom: 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: 0; }
.banniere-une .reglette { margin-bottom: 2.6rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 -2px 0 rgba(18, 52, 59, .18); }
.banniere .repere span { color: var(--blanc); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.banniere .legende-reglette { color: #e9f0eb; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* La fiche d'espèce : l'illustration en médaillon, à cheval sur la photo. */
.medaillon {
  position: relative; z-index: 3;
  width: 250px; margin: -192px 0 0 auto;
  background: var(--blanc); border-radius: 50%; aspect-ratio: 1; object-fit: contain; padding: 14px;
  border: 6px solid var(--papier);
  box-shadow: 0 12px 34px rgba(11, 34, 39, .25);
}
.banniere-espece .banniere-texte { padding-right: 290px; }
.banniere-espece .credit { bottom: auto; top: 4.4rem; }
@media (max-width: 760px) {
  .medaillon { width: 140px; margin-top: -126px; border-width: 4px; }
  .banniere-espece .banniere-texte { padding-right: 20px; padding-bottom: 5.4rem; }
  .banniere-espece .credit { top: auto; bottom: 8px; right: auto; left: 12px; text-align: left; max-width: 52%; }
}

/* ------------------------------------------------------------ la réglette
 *
 * Une échelle en centimètres, graduée tous les centimètres et chiffrée tous
 * les dix. Les repères (maille, taille courante, trophée) sont placés en
 * pourcentage de la longueur totale par le générateur. Sans CSS, la liste
 * des repères reste lisible en texte : c'est le chemin de dégradation.
 */

.reglette {
  --graduation: calc(100% / var(--cm));
  position: relative;
  margin: 2.2rem 0 3.4rem;
  height: 64px;
  color: var(--encre);
  background-color: var(--reglette);
  background-image:
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px calc(var(--graduation) * 10)),
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px calc(var(--graduation) * 5)),
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px var(--graduation));
  background-size: 100% 26px, 100% 16px, 100% 9px;
  background-repeat: no-repeat;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(18, 52, 59, .18);
}
.reglette-chiffres { position: absolute; inset: auto 0 6px 0; height: 1.2em; font-family: var(--titre); font-weight: 500; font-size: .85rem; }
.reglette-chiffres span { position: absolute; transform: translateX(-50%); }
.reglette ol { list-style: none; margin: 0; padding: 0; }
.repere {
  position: absolute; top: -10px; bottom: -10px; width: 0;
  border-left: 3px solid var(--encre);
}
.repere span {
  position: absolute; top: calc(100% + 4px); left: -3px;
  white-space: nowrap; font-family: var(--titre); font-size: 1.05rem; font-weight: 700;
}
.repere.droite span { left: auto; right: 0; text-align: right; }
.repere.maille { border-left-width: 5px; }
.repere.maille span { font-size: 1.25rem; }
.repere.secondaire { border-left-style: dashed; }
.repere.secondaire span { font-weight: 500; top: auto; bottom: calc(100% + 4px); }

/* ------------------------------------------------------- les faits clés */

/* Des bordures plutôt qu'un fond visible à travers les interstices : une
 * rangée incomplète laisse alors une place vide, pas une case grise. */
.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--berge); border-left: 1px solid var(--berge); margin: 0 0 2rem; }
.fait { background: var(--blanc); padding: .9rem 1rem; border-right: 1px solid var(--berge); border-bottom: 1px solid var(--berge); }
.fait dt { font-size: .9rem; color: var(--roche); }
.fait dd { margin: .1rem 0 0; font-family: var(--titre); font-size: 1.6rem; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.fait dd small { display: block; font-family: var(--texte); font-size: .85rem; font-weight: 400; color: var(--roche); line-height: 1.35; margin-top: .25rem; }

.etat { font-family: var(--titre); font-weight: 700; }
.etat.ouverte { color: var(--ouvert); }
.etat.fermee, .interdit { color: var(--ferme); }
.etat.remise_a_leau { color: var(--relache); }

.alerte { border-left: 5px solid var(--ferme); background: var(--blanc); padding: .9rem 1.1rem; margin: 0 0 1.6rem; max-width: var(--mesure); }
.alerte strong { color: var(--ferme); }

/* ------------------------------------------------- la saison en 12 mois */

.saison { margin: .4rem 0 1.4rem; }
.saison-titre { font-family: var(--titre); font-weight: 500; font-size: 1.15rem; margin-bottom: .3rem; }
.bande { display: flex; height: 30px; border-radius: 3px; overflow: hidden; background: var(--berge); }
.bande span { display: block; height: 100%; }
.bande .ouverte { background: var(--ouvert); }
.bande .fermee { background: repeating-linear-gradient(135deg, var(--ferme) 0 6px, #c9493f 6px 12px); }
.bande .remise_a_leau { background: var(--relache); }
.mois { display: flex; justify-content: space-between; font-size: .78rem; color: var(--roche); margin-top: 2px; }
.saison ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .97rem; }

/* ------------------------------------------------------ fiche d'espèce */

.colonnes { display: grid; grid-template-columns: minmax(0, var(--mesure)) minmax(0, 1fr); gap: 0 3rem; }
.colonnes aside h2:first-child { margin-top: 1.2em; }
.liste-courte { padding-left: 1.1rem; }
.confusion { border-top: 1px solid var(--berge); padding-top: .8rem; }

@media (max-width: 760px) {
  .colonnes { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- l'appel à l'appli
 *
 * Il dit ce que l'appli fait DANS LA SITUATION de la page (« vérifier la maille
 * de ce brochet au bord de l'eau »), jamais un slogan. C'est ce qui le sépare
 * d'une bannière qu'on a appris à ne plus voir. Le lac au couchant derrière
 * lui est le même partout : le visiteur reconnaît le bloc d'une page à l'autre.
 */

.appli {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.4rem; align-items: center;
  color: var(--papier); padding: 1.8rem 1.8rem; border-radius: 6px; margin: 2.8rem 0; max-width: 860px;
  background: linear-gradient(90deg, rgba(11, 34, 39, .94) 0, rgba(11, 34, 39, .82) 55%, rgba(11, 34, 39, .5) 100%),
    url("/photos/lac-couchant-1200.webp") center 70% / cover, var(--nuit);
}
.appli img { width: 64px; border-radius: 14px; }
.appli p { margin: 0 0 .8rem; }
.appli strong { font-family: var(--titre); font-size: 1.55rem; display: block; line-height: 1.15; margin-bottom: .3rem; }
.bouton {
  display: inline-block; background: var(--reglette); color: var(--encre);
  font-family: var(--titre); font-weight: 700; font-size: 1.22rem;
  padding: .6rem 1.2rem; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.bouton:hover { text-decoration: underline; }
.bouton-clair {
  display: inline-block; color: var(--blanc); font-family: var(--titre); font-weight: 700; font-size: 1.22rem;
  padding: .52rem 1.1rem; border: 2px solid rgba(255, 255, 255, .85); border-radius: 4px; text-decoration: none;
  background: rgba(8, 28, 32, .25);
}
.bouton-clair:hover { background: rgba(8, 28, 32, .5); }
.banniere .bouton, .panneau .bouton, .appli-une .bouton { color: var(--encre); }
@media (max-width: 520px) { .appli { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- les listes */

.sommaire { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 1.6rem; font-family: var(--titre); font-weight: 500; font-size: 1.2rem; }

.grille { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1rem; }
.grille a { display: block; text-decoration: none; }
.grille img { background: var(--blanc); border-radius: 50%; aspect-ratio: 1; object-fit: contain; padding: 8%; margin-bottom: .4rem; transition: box-shadow .2s; }
.grille a:hover img { box-shadow: 0 0 0 4px var(--reglette); }
.grille a:hover .nom { text-decoration: underline; }
.grille .nom { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; line-height: 1.1; display: block; }
.grille .detail { font-size: .88rem; color: var(--roche); }

.colonnes-liste { columns: 3 220px; padding-left: 0; list-style: none; }
.colonnes-liste li { break-inside: avoid; padding: .15rem 0; }

table { border-collapse: collapse; width: 100%; background: var(--blanc); font-size: .97rem; }
th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--berge); vertical-align: top; }
th { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; background: var(--papier); position: sticky; top: 0; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau { overflow-x: auto; margin: 0 0 2rem; border: 1px solid var(--berge); }

.recherche { font: inherit; padding: .55rem .8rem; border: 2px solid var(--encre); border-radius: 4px; width: min(100%, 420px); margin: 0 0 1.2rem; background: var(--blanc); }

.captures { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.2rem; }
.captures img { border-radius: 14px; box-shadow: 0 10px 28px rgba(11, 34, 39, .22); }

.credits { list-style: none; padding: 0; }
.credits li { display: flex; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--berge); font-size: .95rem; }
.credits img { width: 160px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; flex: none; }

/* ----------------------------------------------------------- l'accueil */

main:has(> .plein:first-child) { padding-top: 0; }

/* Un panneau : une photo, un voile, un texte posé en bas à gauche. */
.panneau { position: relative; margin: 0; display: flex; align-items: flex-end; min-height: 540px; color: var(--blanc); background: var(--nuit); isolation: isolate; }
.panneau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.panneau::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 28, 32, .05) 0, rgba(8, 28, 32, .35) 45%, rgba(8, 28, 32, .9) 100%); }
.panneau-texte { position: relative; z-index: 2; width: 100%; padding: 3rem 20px 3.2rem; }
.panneau h2 { margin-top: 0; color: var(--blanc); }
.panneau a { color: var(--blanc); }
.panneau p { max-width: 56ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }

.ouverture-une { margin-top: 0; }
.ouverture-une .panneau { min-height: min(86svh, 760px); }
.ouverture-une .panneau::after { background: linear-gradient(90deg, rgba(8, 28, 32, .88) 0, rgba(8, 28, 32, .55) 45%, rgba(8, 28, 32, .05) 80%); }
.ouverture-une .panneau-texte { padding-inline: max(20px, calc(50vw - var(--large) / 2 + 20px)); padding-bottom: 4.5rem; }
.ouverture-une h2 { font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .2rem; }
.grande-date { font-family: var(--titre); font-weight: 700; font-size: clamp(4rem, 12vw, 9.5rem); line-height: .86; margin: 0 0 .25em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.grande-date span { display: block; font-size: .32em; font-weight: 500; line-height: 1.1; }
.compte { font-family: var(--titre); font-weight: 700; font-size: 1.6rem; margin-bottom: .8rem; }

.deux-eaux { display: grid; grid-template-columns: 1fr 1fr; }
.deux-eaux .panneau { min-height: 680px; }
.deux-eaux .panneau-texte { padding-inline: clamp(20px, 4vw, 56px); }
.deux-eaux h2 a { text-decoration: none; }
.deux-eaux h2 a:hover { text-decoration: underline; }
@media (max-width: 900px) { .deux-eaux { grid-template-columns: 1fr; } .deux-eaux .panneau { min-height: 600px; } }

.pastilles { list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: 440px; }
.pastilles a { display: grid; grid-template-columns: 48px 1fr auto; gap: .9rem; align-items: center; padding: .45rem 0; border-top: 1px solid rgba(255, 255, 255, .22); text-decoration: none; }
.pastilles li:last-child a { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.pastilles img { width: 48px; height: 48px; background: var(--blanc); border-radius: 50%; padding: 4px; object-fit: contain; }
.pastilles .nom { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; }
.pastilles a:hover .nom { text-decoration: underline; }
/* La maille, sur un bout de réglette graduée. */
.pastille-maille {
  font-family: var(--titre); font-weight: 700; font-size: 1.15rem; color: var(--encre);
  background-color: var(--reglette);
  background-image: repeating-linear-gradient(90deg, rgba(18, 52, 59, .55) 0 1px, transparent 1px 6px);
  background-size: 100% 6px; background-repeat: no-repeat;
  padding: .3rem .6rem .1rem; border-radius: 2px; min-width: 4.2rem; text-align: center;
}

.trouver { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: center; padding: 5rem 0; }
.trouver h2 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.trouver p { font-size: 1.15rem; max-width: 48ch; }
.choix-dept { display: grid; grid-template-columns: 1fr auto; gap: .5rem .8rem; }
.choix-dept label { grid-column: 1 / -1; font-family: var(--titre); font-weight: 500; font-size: 1.15rem; }
.choix-dept select { font: inherit; font-size: 1.15rem; padding: .7rem .8rem; border: 2px solid var(--encre); border-radius: 4px; background: var(--blanc); color: var(--encre); min-width: 0; }
@media (max-width: 760px) { .trouver { grid-template-columns: 1fr; padding: 3.5rem 0; } }

.appli-une { position: relative; color: var(--papier); background: var(--nuit); isolation: isolate; }
/* La dernière section de l'accueil touche le pied de page. */
main:has(> .appli-une:last-of-type) { padding-bottom: 0; }
.appli-une-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: 0; }
.appli-une::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 28, 32, .92) 0, rgba(8, 28, 32, .7) 50%, rgba(8, 28, 32, .35) 100%); }
.appli-une-contenu { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; padding-block: 5.5rem; }
.appli-une h2 { margin-top: 0; color: var(--blanc); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.appli-une p { font-size: 1.15rem; max-width: 50ch; }
.appli-une .discret { color: #c9d6cf; font-size: .95rem; }
.telephones { display: flex; gap: 1.2rem; justify-content: center; }
.telephones img { width: min(44%, 230px); border-radius: 22px; border: 5px solid #06171a; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.telephones img:nth-child(2) { margin-top: 3rem; }
.appli-une .credit { bottom: 8px; }
@media (max-width: 760px) { .appli-une-contenu { grid-template-columns: 1fr; padding-block: 4rem 5rem; } }

/* ------------------------------------------------ techniques et milieux
 *
 * Le verdict légal est une pastille, toujours écrite en toutes lettres : la
 * couleur seule ne dit rien à un daltonien, ni à l'impression en noir. Rouge
 * et vert reprennent ceux des saisons (fermé / ouvert), l'orange celui de la
 * remise à l'eau : le visiteur a déjà appris ces trois couleurs ailleurs.
 */

.statut {
  display: inline-block; font-family: var(--titre); font-weight: 700; font-size: .92rem; line-height: 1.2;
  padding: .12rem .5rem; border-radius: 3px; border: 1px solid currentColor; background: var(--blanc);
  vertical-align: middle; margin-left: .4rem;
}
.statut.libre { color: var(--ouvert); }
.statut.conditions { color: var(--relache); }
.statut.interdit { color: var(--ferme); }
.legende-statuts .statut { margin: .2rem .3rem 0 0; }

.loi { background: var(--blanc); border-top: 5px solid var(--encre); padding: .4rem 1.5rem 1.1rem; margin: 0 0 2.4rem; max-width: 860px; }
.loi h2 { margin-top: .6em; }
.loi h3 { font-weight: 700; margin-top: 1em; }
.regle { border-left: 4px solid var(--relache); padding: .2rem 0 .2rem 1rem; margin: .7rem 0 1rem; }
.regle.interdit { border-left-color: var(--ferme); }
.regle.libre { border-left-color: var(--ouvert); }
.regle p { margin: 0 0 .3rem; }
.article { font-family: var(--titre); font-size: 1rem; color: var(--roche); letter-spacing: .01em; }

.technique-une { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.4rem 2.4rem; align-items: start; margin-bottom: 2rem; }
.planche { margin: 0; }
.planche img { border-radius: 6px; box-shadow: 0 2px 14px rgba(11, 34, 39, .18); }
.planche figcaption { margin-top: .4rem; font-size: .82rem; }
@media (max-width: 760px) { .technique-une { grid-template-columns: 1fr; } .planche { max-width: 420px; } }

.etapes { padding-left: 0; list-style: none; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding: 0 0 .8rem 2.6rem; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: -.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--encre); color: var(--papier); font-family: var(--titre); font-weight: 700; text-align: center; line-height: 1.8rem;
}
.materiel dt { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; margin-top: .7rem; }
.materiel dd { margin: .1rem 0 0; }
.astuce { border-left: 5px solid var(--reglette); background: var(--blanc); padding: .9rem 1.1rem; }
.securite { border-left: 5px solid var(--relache); background: var(--blanc); padding: .9rem 1.1rem; }

.question { border-top: 1px solid var(--berge); padding: .7rem 0; max-width: var(--mesure); }
.question summary { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; cursor: pointer; }
.question p { margin: .5rem 0 0; }

.liste-techniques { list-style: none; padding: 0; }
.liste-techniques li { padding: .25rem 0; }
.liste-techniques .statut { font-size: .8rem; }

.avant-garder { background: var(--blanc); border-top: 5px solid var(--reglette); padding: .3rem 1.3rem .6rem; margin: 1.8rem 0; }
.avant-garder ul { padding-left: 1.1rem; }

.cartes-techniques { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1.2rem; }
.cartes-techniques a { display: block; text-decoration: none; }
.cartes-techniques img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; margin-bottom: .45rem; transition: box-shadow .2s; }
.cartes-techniques a:hover img { box-shadow: 0 0 0 4px var(--reglette); }
.cartes-techniques a:hover .nom { text-decoration: underline; }
.cartes-techniques .nom { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; line-height: 1.1; display: block; }
.cartes-techniques .detail { font-size: .88rem; color: var(--roche); }
.cartes-techniques .statut { margin: .35rem 0 0; font-size: .82rem; }

.cartes-milieux { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.cartes-milieux a { display: block; text-decoration: none; }
.cartes-milieux img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 6px; margin-bottom: .45rem; transition: box-shadow .2s; }
.cartes-milieux a:hover img { box-shadow: 0 0 0 4px var(--reglette); }
.cartes-milieux .nom { font-family: var(--titre); font-weight: 700; font-size: 1.45rem; display: block; line-height: 1.1; }
.cartes-milieux .detail { font-size: .9rem; color: var(--roche); }

.bloc-regle { border-top: 1px solid var(--berge); padding-top: .2rem; }
.bloc-regle h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 1.2em; }
.bloc-regle ul { padding-left: 1.1rem; }
table.appats small { display: block; color: var(--roche); font-size: .78rem; margin-top: .2rem; }
table.appats .statut { margin-left: 0; font-size: .82rem; }

/* ----------------------------------------------------------- le pied */

.pied { background: var(--nuit); color: #b9c8c1; padding: 2.6rem 0 3rem; font-size: .92rem; }
.pied a { color: #dfe8e3; }
.pied nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-bottom: 1rem; font-family: var(--titre); font-size: 1.1rem; }
.pied p { max-width: 90ch; margin: 0; }

@media (max-width: 600px) {
  .banniere-texte { padding-top: 8.5rem; }
  .banniere-une .banniere-texte { padding-top: 10rem; }
  .navigation { font-size: 1.08rem; gap: .2rem 1rem; }
}

@media print {
  .entete nav, .appli, .pied nav, .recherche, .banniere-photo, .panneau > img, .appli-une { display: none; }
  .banniere, .panneau { color: var(--encre); background: none; min-height: 0; }
  .banniere h1, .banniere .chapeau { color: var(--encre); text-shadow: none; }
  body { background: #fff; }
}

/* Accueil : la porte d'entrée vers les cours. Placée avant le choix du
 * département, parce que c'est elle qui fait revenir. */
.apprendre { padding: 4.5rem 0 1rem; }
.apprendre h2 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.apprendre .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.4rem; }
