/* Thème clair uniquement : pas de mode sombre. */
@font-face { font-family: "Young Serif"; src: url(../fonts/young-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url(../fonts/onest-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; --papier: #f5efe3; --carte: #fffdf8; --encre: #10292f; --doux: #4d666c; --lac: #0d4a5c; --lac-vif: #0f6b80; --creme: #fbf4e4; --soleil: #f2b84b; --trait: #10292f1a; }
* { box-sizing: border-box; }
::selection { background: var(--soleil); color: var(--encre); }
:focus-visible { outline: 2px solid var(--soleil); outline-offset: 3px; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 17px/1.55 Onest, system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
/* L'en-tête bleu suit la colonne de lecture (680 px) sur grand écran. */
header { background: var(--lac); color: var(--creme); padding: calc(18px + env(safe-area-inset-top)) max(20px, calc((100% - 640px) / 2)) 36px; }
.haut { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
/* Logo Mon Lac, identique à celui de l'app */
.marque { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 400 16px/1 "Young Serif", Georgia, serif; letter-spacing: -0.01em; text-decoration: none; }
.marque svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.retour { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
h1, h2 { font-family: "Young Serif", Georgia, serif; font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.verdict { font: 400 clamp(21px, 4vw, 27px)/1.25 "Young Serif", Georgia, serif; color: var(--soleil); margin-top: 18px; }
.mesures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.mesures div + div { border-left: 1px solid #fbf4e429; padding-left: 14px; }
.mesures b { display: block; font: 400 34px/1 "Young Serif", Georgia, serif; font-variant-numeric: tabular-nums; }
.mesures small { color: #fbf4e4b8; font-size: 14px; }
.releve { color: #fbf4e4b8; font-size: 14px; margin-top: 18px; }
.bouton { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; margin-top: 22px; border-radius: 99px; background: var(--soleil); color: #10292f; font-weight: 700; text-decoration: none; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.bouton:active { transform: scale(0.97); }
main { max-width: 680px; margin: 0 auto; padding: 8px 20px 40px; }
section { margin-top: 40px; }
h2 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
ul { list-style: none; margin: 0; padding: 0; }
.acts li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--trait); }
.acts li:first-child { border-top: 0; }
.acts .nom { font-weight: 600; }
.acts .phrase { grid-column: 1 / -1; color: var(--doux); font-size: 15px; }
.acts em { font-style: normal; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 99px; align-self: start; }
.t0 { background: #f6dcd4; color: #8a2a1a; } .t1 { background: #f5e6c2; color: #6b4800; } .t2 { background: #d8eedf; color: #1b5f3c; } .t3 { background: #cde8ee; color: #0a4d5c; }
.qualite { display: flex; gap: 8px; align-items: baseline; margin: 0 0 6px; color: var(--doux); font-size: 15px; }
.qualite i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.q1 { background: #2f7f50; } .q2 { background: #9bb83a; } .q3 { background: #e3a82b; } .q4 { background: #c94a3a; } .q0 { background: #9aa; }
.voisines li { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-top: 1px solid var(--trait); }
.voisines li:first-child { border-top: 0; }
.voisines a { font-weight: 600; }
.voisines span { font: 400 19px/1 "Young Serif", Georgia, serif; color: var(--lac-vif); font-variant-numeric: tabular-nums; }
.lieux li { padding: 12px 0; border-top: 1px solid var(--trait); }
.lieux li:first-child { border-top: 0; }
.lieux b { font: 400 18px/1.3 "Young Serif", Georgia, serif; }
.lieux span { display: block; color: var(--lac-vif); font-size: 13px; font-weight: 600; }
.lieux p, section > p { margin: 4px 0 0; color: var(--doux); }
/* Pied commun (scripts/pied.mjs), calqué sur celui de l'app */
footer { max-width: 680px; margin: 0 auto; padding: 0 20px 40px; font-size: 12px; line-height: 1.5; color: var(--doux); }
footer a { color: inherit; text-underline-offset: 2px; }
footer .liens { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; margin-top: 4px; font-size: 13px; }
footer .liens a { display: inline-flex; align-items: center; min-height: 44px; }
footer .liens .langue { color: var(--lac-vif); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .bouton { transition: none; } }

/* Blog */
.ariane { font-size: 14px; color: #fbf4e4b8; margin-bottom: 10px; }
.article p, .article li { max-width: 64ch; }
.article h2 { margin-top: 36px; }
.une { margin: 24px 0 0; }
.une img { width: 100%; height: auto; border-radius: 16px; display: block; }
.une figcaption, .sources li { color: var(--doux); font-size: 13px; }
.une figcaption { margin-top: 6px; }
.bref { margin-top: 28px; padding: 18px 20px; border-radius: 18px; background: var(--carte); box-shadow: 0 1px 3px #10292f14; }
.bref h2 { margin: 0 0 6px; font-size: 20px; }
.bref p { margin: 0; }
.liste { list-style: disc; padding-left: 22px; }
.liste li { margin: 6px 0; }
.sources ul { list-style: disc; padding-left: 20px; }
.sources li { margin: 4px 0; }
.billets li { padding: 18px 0; border-top: 1px solid var(--trait); }
.billets li:first-child { border-top: 0; }
.billets b { font: 400 21px/1.25 "Young Serif", Georgia, serif; }
.billets p { margin: 6px 0; color: var(--doux); }
.billets time { font-size: 13px; color: var(--doux); }
.avertissement { margin-top: 16px; padding: 14px 18px; border: 1px solid #f2b84b8c; border-radius: 18px; background: #f2b84b1f; font-size: 15px; }
/* Vague sous l'en-tête, comme dans l'app. */
header { position: relative; padding-bottom: 54px; }
header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: var(--papier);
  --vague: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18V9c25 0 25-7 50-7s25 7 50 7 25-7 50-7 25 7 50 7 25-7 50-7 25 7 50 7 25-7 50-7 25 7 50 7v9Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--vague) center / 100% 100% no-repeat; mask: var(--vague) center / 100% 100% no-repeat; }
/* Liste du blog : article à la une en grand, puis une grille illustrée, filtrable par thème. */
body.large header { padding-left: max(20px, calc((100% - 1040px) / 2)); padding-right: max(20px, calc((100% - 1040px) / 2)); }
body.large footer { max-width: 1080px; }
.chapo { font-size: 19px; line-height: 1.5; color: #fbf4e4d9; margin: 16px 0 0; max-width: 56ch; }
.blog { max-width: 1080px; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 32px; }
.themes button { font: 600 15px Onest, system-ui, sans-serif; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--trait); background: var(--carte); color: var(--doux); cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease, color 150ms ease; }
.themes button:active { transform: scale(0.97); }
.themes button[aria-pressed="true"] { background: var(--lac); border-color: var(--lac); color: var(--creme); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 44px 28px; }
.grille li[hidden] { display: none; }
.grille a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; height: 100%; }
.vignette { display: block; overflow: hidden; border-radius: 18px; background: var(--trait); }
.vignette img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .grille a:hover img { transform: scale(1.04); } .grille a:hover h2 { color: var(--lac-vif); } }
.texte { display: flex; flex-direction: column; gap: 8px; }
.meta { font-size: 14px; font-weight: 600; color: var(--lac-vif); }
.grille h2 { font-size: 22px; line-height: 1.22; margin: 0; transition: color 150ms ease; }
.grille p { margin: 0; color: var(--doux); font-size: 16px; }
.grille .une { grid-column: 1 / -1; }
.grille .une a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center; }
.grille .une img { aspect-ratio: 16 / 10; }
.grille .une h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.grille .une p { font-size: 18px; }
.lire { margin-top: 8px; font-weight: 700; color: var(--lac); }
@media (max-width: 760px) { .grille .une a { display: flex; gap: 14px; } .grille .une h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .vignette img, .themes button { transition: none; } }
/* Liste des plages : recherche dans l'en-tête, régions en colonnes, eau en direct avec pastille de couleur. */
.cherche { margin-top: 32px; max-width: 640px; }
.cherche label { display: block; font: 400 21px/1.25 "Young Serif", Georgia, serif; margin-bottom: 12px; }
.champ { display: flex; gap: 8px; }
.champ input { flex: 1; min-width: 0; min-height: 56px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--creme); color: var(--encre); font: 500 18px Onest, system-ui, sans-serif; }
.champ input::placeholder { color: var(--doux); }
.champ button { min-height: 56px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--soleil); color: var(--encre); font: 700 17px Onest, system-ui, sans-serif; cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.champ button:active { transform: scale(0.97); }
.ecart { margin: 14px 0 0; color: #fbf4e4cc; font-size: 15px; min-height: 1.5em; }
.plages { max-width: 1080px; columns: 3 300px; column-gap: 48px; padding-top: 24px; }
.plages section { break-inside: avoid; margin-top: 0; padding-top: 28px; }
.plages h2 { font-size: 26px; margin-bottom: 8px; }
.rangs a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; border-radius: 12px; margin: 0 -10px; padding: 0 10px; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .rangs a:hover { background: var(--carte); } }
.rangs i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--trait); }
.rangs span { flex: 1; }
.rangs em { font-style: normal; font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 99px; }
.rangs b { font: 400 18px/1 "Young Serif", Georgia, serif; font-variant-numeric: tabular-nums; color: var(--doux); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions .bouton { margin-top: 0; }
.bouton.second { background: none; color: var(--creme); box-shadow: inset 0 0 0 1.5px #fbf4e480; }
.mesures .ciel { width: 28px; height: 28px; margin-left: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
