/* Sauna & Bain froid : feuille de style unique
   Charte : givre (fond), encre (texte), lac (froid), braise (chaud), cendre (texte secondaire).
   Signature : l'échelle des températures, de la braise au lac. */

@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-italique.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  --givre: #F1F4F4;
  --blanc: #FFFFFF;
  --encre: #15232C;
  --cendre: #52626B;
  --trait: #D3DCDF;
  --glace: #DCEAF0;
  --lac: #1E6A8A;
  --lac-fonce: #164F68;
  --braise: #B9432A;
  --braise-pale: #F6E3DC;
  --echelle: linear-gradient(to bottom, #B9432A 0%, #C9774F 30%, #B9C3C4 55%, #4F8FAA 78%, #1E6A8A 100%);
  --echelle-h: linear-gradient(to right, #1E6A8A 0%, #4F8FAA 22%, #B9C3C4 45%, #C9774F 70%, #B9432A 100%);
  --titre: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --texte: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mesure: 40rem;
  --large: 72rem;
  --gouttiere: 1rem;
}
@media (min-width: 40em) { :root { --gouttiere: 1.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--givre); color: var(--encre); font-family: var(--texte); font-size: 1.0625rem; line-height: 1.7; font-optical-sizing: auto; }
@media (min-width: 40em) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--lac-fonce); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--braise); }
:focus-visible { outline: 2px solid var(--lac); outline-offset: 3px; border-radius: 2px; }
.sr-only:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: .5rem; left: .5rem; z-index: 20; background: var(--blanc); padding: .5rem 1rem; }

h1, h2, h3, .titre { font-family: var(--titre); font-weight: 700; line-height: 1.1; letter-spacing: -0.012em; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; letter-spacing: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.chiffre { font-family: var(--titre); font-variant-numeric: tabular-nums; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(241,244,244,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--encre); font-family: var(--titre); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.marque svg { width: 1.7rem; height: 1.7rem; flex: none; }
.marque:hover { color: var(--encre); }
.menu-bouton { font: 600 .95rem var(--titre); background: none; border: 1px solid var(--encre); color: var(--encre); padding: .45rem .8rem; border-radius: 2rem; cursor: pointer; }
.nav { display: none; }
.nav.ouvert { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--givre); border-bottom: 1px solid var(--trait); padding: .5rem var(--gouttiere) 1.25rem; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .7rem 0; font-family: var(--titre); font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--encre); border-bottom: 1px solid var(--trait); }
.nav a[aria-current="page"] { color: var(--braise); }
@media (min-width: 52em) {
  .menu-bouton { display: none; }
  .nav, .nav.ouvert { display: block; position: static; background: none; border: 0; padding: 0; }
  .nav ul { display: flex; gap: 1.6rem; }
  .nav a { padding: .3rem 0; font-size: .98rem; border: 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
}

/* Accueil */
.accueil { padding: 2.5rem 0 3rem; }
.accueil__grille { display: grid; gap: 2.5rem; }
@media (min-width: 60em) { .accueil__grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; align-items: start; padding-top: 1.5rem; } }
.accueil h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); max-width: 14ch; }
.accueil__intro { font-size: 1.15rem; max-width: 34rem; color: var(--encre); }
.accueil__entrees { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.pastille { display: inline-block; font: 600 1rem var(--titre); text-decoration: none; padding: .6rem 1rem; border-radius: 2rem; border: 1px solid var(--encre); color: var(--encre); background: var(--blanc); }
.pastille:hover { background: var(--encre); color: var(--givre); }

/* L'échelle des températures */
.echelle { position: relative; background: var(--blanc); border: 1px solid var(--trait); border-radius: .9rem; padding: 1.25rem 1.25rem 1.25rem 3.4rem; }
.echelle__titre { font: 700 1.05rem var(--titre); margin: 0 0 .2rem; }
.echelle__note { font-size: .92rem; color: var(--cendre); margin: 0 0 1rem; line-height: 1.5; }
.echelle__tube { position: absolute; left: 1.4rem; top: 1.4rem; bottom: 1.4rem; width: .55rem; border-radius: 1rem; background: var(--trait); overflow: hidden; }
.echelle__mercure { position: absolute; inset: 0; background: var(--echelle); transform-origin: bottom; }
.echelle ol { list-style: none; margin: 0; padding: 0; }
.echelle li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .8rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--trait); }
.echelle li:first-child { border-top: 0; }
.echelle__degres { font: 700 1.35rem var(--titre); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.echelle__degres.chaud { color: var(--braise); }
.echelle__degres.froid { color: var(--lac); }
.echelle__degres.tiede { color: var(--cendre); }
.echelle__ligne { line-height: 1.35; }
.echelle__ligne a { font: 600 1.02rem var(--titre); text-decoration: none; color: var(--encre); }
.echelle__ligne a:hover { color: var(--braise); text-decoration: underline; }
.echelle__ligne small { display: block; font-size: .9rem; color: var(--cendre); margin-top: .15rem; }
@media (prefers-reduced-motion: no-preference) {
  .echelle__mercure { animation: monte 1.6s cubic-bezier(.2,.7,.2,1) .2s both; }
  @keyframes monte { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Rubriques (accueil et pages de rubrique) */
.rubriques { padding: 3rem 0; border-top: 1px solid var(--trait); }
.rubriques__grille { display: grid; gap: 2.5rem; }
@media (min-width: 52em) { .rubriques__grille { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.rubrique h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.rubrique h2 a { text-decoration: none; color: inherit; }
.rubrique__plage { font: 600 .95rem var(--titre); margin: 0 0 1rem; }
.rubrique__plage.chaud { color: var(--braise); } .rubrique__plage.froid { color: var(--lac); }
.liste-guides { list-style: none; margin: 0; padding: 0; }
.liste-guides li { border-top: 1px solid var(--trait); }
.liste-guides a { display: block; padding: .8rem 0; text-decoration: none; color: var(--encre); font: 600 1.05rem/1.3 var(--titre); }
.liste-guides a:hover { color: var(--braise); }
.liste-guides span { display: block; font: 400 .93rem/1.45 var(--texte); color: var(--cendre); margin-top: .2rem; }

.bandeau { margin: 0 0 3rem; padding: 1.6rem; background: var(--encre); color: var(--givre); border-radius: .9rem; display: grid; gap: 1rem; }
@media (min-width: 52em) { .bandeau { grid-template-columns: 1fr auto; align-items: center; padding: 2rem 2.4rem; } }
.bandeau h2 { color: var(--givre); margin: 0 0 .3rem; font-size: 1.45rem; }
.bandeau p { margin: 0; color: #C9D5D9; }
.bouton { display: inline-block; font: 700 1rem var(--titre); text-decoration: none; padding: .8rem 1.3rem; border-radius: 2rem; background: var(--braise); color: var(--blanc); border: 0; cursor: pointer; text-align: center; }
.bouton:hover { background: #9A3521; color: var(--blanc); }
.bouton--clair { background: var(--givre); color: var(--encre); }
.bouton--clair:hover { background: var(--blanc); color: var(--encre); }

.auteur { display: grid; gap: 1rem; padding: 1.6rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: .9rem; margin: 3rem 0; }
@media (min-width: 40em) { .auteur { grid-template-columns: 4rem 1fr; } }
.auteur__initiale { width: 4rem; height: 4rem; border-radius: 50%; background: var(--echelle); display: grid; place-items: center; color: var(--blanc); font: 700 1.6rem var(--titre); }
.auteur h2, .auteur p.titre { font-size: 1.2rem; margin: 0 0 .3rem; }
.auteur p { margin: 0 0 .6rem; font-size: 1rem; }

/* Pages de rubrique */
.tete-rubrique { padding: 2.5rem 0 1rem; }
.tete-rubrique p { max-width: 38rem; font-size: 1.12rem; }

/* Article */
.fil { font: 500 .9rem var(--titre); color: var(--cendre); margin: 1.4rem 0 1.4rem; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.fil li + li::before { content: "/"; margin-right: .3rem; color: var(--trait); }
.fil a { color: var(--cendre); }
.article-tete { max-width: 46rem; }
.jauge { position: relative; margin: 0 0 1.6rem; max-width: 28rem; padding-top: 1.7rem; }
.jauge__valeur { position: absolute; top: 0; transform: translateX(-50%); font: 700 .95rem var(--titre); color: var(--encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.jauge__barre { position: relative; height: .5rem; border-radius: 1rem; background: var(--echelle-h); }
.jauge__repere { position: absolute; top: 50%; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--blanc); border: 3px solid var(--encre); transform: translate(-50%, -50%); }
.jauge__legende { display: flex; justify-content: space-between; font: 500 .82rem var(--titre); color: var(--cendre); margin-top: .45rem; font-variant-numeric: tabular-nums; }
.jauge__legende strong { color: var(--encre); font-weight: 700; }
.chapo { font-size: 1.18rem; line-height: 1.6; max-width: 40rem; }
.meta { font: 500 .92rem var(--titre); color: var(--cendre); margin: 1rem 0 0; }

.article-corps { display: grid; gap: 0 4rem; padding-bottom: 2rem; }
@media (min-width: 70em) { .article-corps { grid-template-columns: minmax(0, var(--mesure)) 15rem; margin-top: 2rem; } .article-corps .sommaire { margin-top: 0; } .article-corps .sommaire { grid-column: 2; grid-row: 1; position: sticky; top: 5.5rem; align-self: start; } .article-corps .prose { grid-column: 1; grid-row: 1; } }
.prose { max-width: var(--mesure); min-width: 0; }
.prose > h2:first-child { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--cendre); }

.en-bref { background: var(--blanc); border: 1px solid var(--trait); border-left: 5px solid var(--lac); border-radius: .5rem; padding: 1.2rem 1.3rem; margin: 2rem 0; }
.en-bref.chaud { border-left-color: var(--braise); }
.prose > .en-bref:first-child { margin-top: .6rem; }
@media (min-width: 70em) { .prose > .en-bref:first-child { margin-top: 0; } }
.en-bref p.titre { font-size: 1.05rem; margin: 0 0 .4rem; }
.en-bref p:last-child, .en-bref ul:last-child { margin-bottom: 0; }

.sommaire { font-family: var(--titre); margin: 1.5rem 0; }
.sommaire summary { cursor: pointer; font-weight: 700; padding: .7rem 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); list-style-position: inside; }
.sommaire ol { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .95rem; line-height: 1.4; }
.sommaire li { margin: .45rem 0; }
.sommaire a { text-decoration: none; color: var(--encre); }
.sommaire a:hover { color: var(--braise); }

.encadre { background: var(--glace); border-radius: .5rem; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.encadre.alerte { background: var(--braise-pale); }
.encadre p.titre { font-size: 1.02rem; margin: 0 0 .35rem; }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }

.tableau { overflow-x: auto; margin: 1.4rem 0 1.8rem; -webkit-overflow-scrolling: touch; }
.tableau table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .95rem; line-height: 1.45; background: var(--blanc); }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: .65rem .75rem; border-bottom: 1px solid var(--trait); }
.tableau th { font: 700 .9rem var(--titre); background: var(--encre); color: var(--givre); }
.tableau td:first-child { font-weight: 600; }

.offres { margin: 1.4rem 0 2rem; display: grid; gap: 1rem; }
.offre { background: var(--blanc); border: 1px solid var(--trait); border-radius: .7rem; padding: 1.1rem 1.2rem; }
.offre h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.offre__prix { font: 700 1.05rem var(--titre); color: var(--braise); margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
.offre p { font-size: 1rem; margin-bottom: .6rem; }
.offre a.lien-offre { font: 700 .98rem var(--titre); }
.mention-affiliation { font: 500 .88rem/1.45 var(--titre); color: var(--cendre); border-left: 3px solid var(--trait); padding-left: .8rem; margin: 1rem 0; }

.faq details { border-top: 1px solid var(--trait); padding: .2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; font: 700 1.05rem/1.35 var(--titre); padding: .8rem 0; }
.faq details p { margin: 0 0 1rem; }

.sources { font-size: .92rem; line-height: 1.5; color: var(--cendre); }
.sources ol { padding-left: 1.2rem; }
.sources a { color: var(--cendre); word-break: break-word; }

.a-lire { padding: 2rem 0 1rem; border-top: 1px solid var(--trait); }
.a-lire h2 { margin-top: 0; font-size: 1.35rem; }
.a-lire .liste-guides { display: grid; gap: 0 2rem; }
@media (min-width: 52em) { .a-lire .liste-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Calculateur */
.calc { background: var(--blanc); border: 1px solid var(--trait); border-radius: .9rem; padding: 1.3rem; margin: 1.6rem 0 2rem; font-family: var(--titre); }
.calc p.titre { font-size: 1.2rem; margin: 0 0 1rem; }
.calc__champs { display: grid; gap: .9rem; }
@media (min-width: 36em) { .calc__champs { grid-template-columns: 1fr 1fr; } }
.calc label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.calc input, .calc select { width: 100%; font: 500 1rem var(--titre); padding: .6rem .7rem; border: 1px solid #A9B7BC; border-radius: .4rem; background: var(--givre); color: var(--encre); }
.calc small { display: block; color: var(--cendre); font-size: .82rem; margin-top: .25rem; line-height: 1.35; }
.calc__resultats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.calc__resultats div { text-align: left; }
.calc__resultats span { display: block; font-size: .82rem; color: var(--cendre); }
.calc__resultats output { font-weight: 700; font-size: clamp(1.15rem, 4.5vw, 1.6rem); font-variant-numeric: tabular-nums; color: var(--braise); }
.calc__detail { font: 400 .92rem var(--texte); color: var(--cendre); margin: .8rem 0 0; }

/* Pied de page */
.pied { background: var(--encre); color: #C9D5D9; padding: 3rem 0 2rem; margin-top: 3rem; font-family: var(--titre); font-size: .95rem; }
.pied a { color: var(--givre); text-decoration: none; }
.pied a:hover { text-decoration: underline; color: var(--blanc); }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 52em) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied p.titre { color: var(--givre); font-size: 1rem; margin: 0 0 .6rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: .4rem 0; }
.pied__bas { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #2E4350; font-size: .85rem; line-height: 1.5; }
.pied .marque { color: var(--givre); margin-bottom: .8rem; }

/* Pages simples */
.page-simple { padding: 2rem 0 1rem; }
.page-simple .prose { margin-top: 1rem; }

@media print { .entete, .pied, .sommaire, .a-lire { display: none; } body { background: #fff; } }
