/* Guide Abri d'Hiver — feuille de style */
:root {
  --bleu-fonce: #16324f;
  --bleu: #1f6fb2;
  --bleu-clair: #e8f1fa;
  --accent: #e8752a;
  --accent-fonce: #c85f1a;
  --texte: #2b2b2b;
  --gris: #5a6b7c;
  --fond: #ffffff;
  --fond-doux: #f5f8fb;
  --bordure: #dbe4ee;
  --vert: #2e7d32;
  --rouge: #c0392b;
  --rayon: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.65;
  font-size: 17px;
}

/* ---------- En-tête ---------- */
.site-header {
  background: var(--bleu-fonce);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .2px;
}
.site-logo span { color: #9fd0f5; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  color: #dce9f5;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .95rem;
}
.main-nav a:hover, .main-nav a.actif {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* ---------- Contenu ---------- */
.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.conteneur-etroit { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.hero {
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu) 100%);
  color: #fff;
  padding: 56px 0 48px;
}
.hero h1 { margin: 0 0 12px; font-size: 2.1rem; line-height: 1.25; }
.hero p.sous-titre { font-size: 1.15rem; color: #d7e8f7; max-width: 640px; }

.bandeau-outil {
  background: var(--bleu-clair);
  border: 1px solid #bcd6ee;
  border-radius: var(--rayon);
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bandeau-outil h2 { margin: 0 0 6px; font-size: 1.25rem; }
.bandeau-outil p { margin: 0; color: var(--gris); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--accent-fonce); }
.btn-secondaire { background: var(--bleu); }
.btn-secondaire:hover { background: #185d93; }

.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.carte {
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 22px;
}
.carte h3 { margin-top: 0; }
.carte h3 a { color: var(--bleu-fonce); text-decoration: none; }
.carte h3 a:hover { color: var(--bleu); }
.carte p { color: var(--gris); margin-bottom: 0; }

section.bloc { margin: 40px 0; }
h2.section { font-size: 1.6rem; color: var(--bleu-fonce); margin-bottom: 14px; }

/* ---------- Tableaux ---------- */
.tableau-defilant { overflow-x: auto; margin: 20px 0; }
table.prix {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
  min-width: 560px;
}
table.prix th, table.prix td {
  border: 1px solid var(--bordure);
  padding: 10px 14px;
  text-align: left;
}
table.prix th { background: var(--bleu-fonce); color: #fff; }
table.prix tr:nth-child(even) td { background: var(--fond-doux); }
table.prix td.nombre { font-weight: 700; color: var(--bleu-fonce); white-space: nowrap; }

.note {
  font-size: .9rem;
  color: var(--gris);
  background: var(--fond-doux);
  border-left: 4px solid var(--bleu);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.note.danger { border-left-color: var(--rouge); }
.note.succes { border-left-color: var(--vert); }

/* ---------- Listes ---------- */
ul.verif { list-style: none; padding-left: 0; }
ul.verif li { padding: 6px 0 6px 30px; position: relative; }
ul.verif li::before { content: "✓"; position: absolute; left: 4px; color: var(--vert); font-weight: 800; }
ul.alerte { list-style: none; padding-left: 0; }
ul.alerte li { padding: 6px 0 6px 30px; position: relative; }
ul.alerte li::before { content: "⚠"; position: absolute; left: 2px; }

/* ---------- Formulaires / outils ---------- */
.outil {
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 28px;
  margin: 28px 0;
}
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--bleu-fonce); }
.champ select, .champ input[type="number"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--bordure);
  border-radius: 6px;
}
.champ-case { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.champ-case input { margin-top: 5px; transform: scale(1.25); }
.champ-case label { font-weight: 600; }
.champ-case small { display: block; color: var(--gris); font-weight: 400; }

.resultat {
  display: none;
  background: #fff;
  border: 2px solid var(--bleu);
  border-radius: var(--rayon);
  padding: 24px;
  margin-top: 24px;
}
.resultat.visible { display: block; }
.resultat .fourchette {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bleu-fonce);
  margin: 6px 0 12px;
}
.resultat .fourchette small { font-size: 1rem; font-weight: 400; color: var(--gris); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--bordure);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--fond-doux);
}
.faq summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--bleu-fonce);
}
.faq details div { padding: 0 18px 16px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--bleu-fonce);
  color: #b9d2e8;
  margin-top: 60px;
  padding: 36px 0 28px;
  font-size: .92rem;
}
.site-footer a { color: #dcebfb; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-inner nav a { margin-right: 16px; text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .resultat .fourchette { font-size: 1.5rem; }
  .outil { padding: 18px; }
}

/* ---------- Rafraîchissement visuel — éditorial moderne (oct. 2026) ----------
   Léger : transitions de survol subtiles, ombres douces, échelle typographique.
   Aucun framework, aucune image, aucune police externe. */
main { display: block; }

h1, h2, h3 { letter-spacing: -0.015em; text-wrap: balance; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem); line-height: 1.18; }
.hero { border-bottom: 4px solid var(--accent); }
.hero p.sous-titre { line-height: 1.6; }

/* Cartes : ombre douce + soulèvement subtil au survol */
.carte {
  box-shadow: 0 1px 3px rgba(15, 35, 60, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.carte:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 35, 60, 0.12);
}

/* Boutons : ombre douce + micro-interaction */
.btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14); }

/* Accessibilité : focus visible */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Section « guides connexes » */
.suggestions { border-top: 1px solid var(--bordure); padding-top: 10px; }
.suggestions .carte h3 { font-size: 1.05rem; }

/* Mobile : rythme et navigation */
@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; }
  .main-nav a { padding: 7px 10px; font-size: 0.88rem; }
  .hero { padding: 40px 0 34px; }
  .hero p.sous-titre { font-size: 1.02rem; }
  section.bloc { margin: 30px 0; }
  .site-footer { margin-top: 44px; font-size: 0.88rem; }
}

/* ============ Refonte editoriale 2026 — couche « moderne » ============
   Design uniquement : aucune police externe, aucun framework, aucune image.
   La couche s'appuie sur les jetons natifs du site via --ed-*. */
:root {
  --ed-dark: var(--bleu-fonce);
  --ed-mid: var(--bleu);
  --ed-accent: var(--accent);
  --ed-ink: var(--texte);
  --ed-muted: var(--gris);
  --ed-bg: var(--fond);
  --ed-card: #ffffff;
  --ed-soft: var(--fond-doux);
  --ed-line: var(--bordure);
  --ed-head: var(--bleu-fonce);
  --ed-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ed-radius: 14px;
  color-scheme: light dark;
}
html { scroll-behavior: smooth; }
::selection { background: var(--ed-accent); color: #fff; }

/* ----- En-tete ----- */
.site-header {
  background: color-mix(in srgb, var(--ed-dark) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.main-nav a { border-radius: 999px; font-weight: 600; }

/* ----- Kicker editorial ----- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; padding: 0;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  line-height: 1.4;
}
.kicker::before {
  content: ""; flex: none; width: 28px; height: 2px;
  border-radius: 2px; background: var(--ed-accent);
}
.hero .kicker { color: color-mix(in srgb, var(--ed-accent) 55%, #fff); }
section.bloc > .kicker { color: var(--ed-accent); }

/* ----- Heros ----- */
.hero {
  border-bottom: none;
  background:
    radial-gradient(75% 110% at 88% -10%, color-mix(in srgb, var(--ed-accent) 34%, transparent), transparent 70%),
    radial-gradient(55% 85% at 6% 112%, color-mix(in srgb, var(--ed-mid) 32%, transparent), transparent 70%),
    linear-gradient(115deg, var(--ed-dark) 0%, color-mix(in srgb, var(--ed-dark) 58%, var(--ed-mid)) 60%, var(--ed-mid) 128%);
  padding: clamp(68px, 9vw, 108px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--ed-accent), color-mix(in srgb, var(--ed-accent) 35%, var(--ed-mid)));
}
.hero h1 {
  font-family: var(--ed-display);
  font-size: clamp(2.15rem, 1.4rem + 3.6vw, 3.25rem);
  line-height: 1.05; letter-spacing: -.032em; font-weight: 800;
  max-width: 19ch; text-wrap: balance;
  margin: 0 0 18px;
}
.hero p.sous-titre {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.22rem);
  line-height: 1.62; color: rgba(255, 255, 255, .85);
  max-width: 60ch; margin: 0;
}

/* ----- En-tete d'article (pages internes) ----- */
main .conteneur > section.bloc:first-of-type { padding-top: clamp(30px, 4vw, 52px); }
main .conteneur > section.bloc:first-of-type > h1 {
  font-family: var(--ed-display);
  font-size: clamp(1.95rem, 1.4rem + 2.6vw, 2.75rem);
  line-height: 1.08; letter-spacing: -.028em; font-weight: 800;
  color: var(--ed-head); max-width: 21ch; text-wrap: balance;
  margin: 0 0 16px;
}
main .conteneur > section.bloc:first-of-type > h1 + p {
  font-size: 1.13rem; line-height: 1.66;
  color: var(--ed-muted); max-width: 63ch; margin: 0 0 8px;
}

/* ----- Sections ----- */
main { counter-reset: edito-sec; }
section.bloc { margin: clamp(46px, 6vw, 70px) 0; }
section.bloc > h2.section {
  counter-increment: edito-sec;
  font-family: var(--ed-display);
  font-size: clamp(1.42rem, 1.14rem + 1.5vw, 1.85rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.22;
  color: var(--ed-head); text-wrap: balance;
  padding-bottom: 14px; margin: 0 0 22px;
  border-bottom: 1px solid var(--ed-line);
}
section.bloc > h2.section::before {
  content: counter(edito-sec, decimal-leading-zero);
  margin-right: 12px;
  font-size: .66em; font-weight: 800; letter-spacing: .1em;
  color: var(--ed-accent); vertical-align: .14em;
}
section.suggestions > h2.section { counter-increment: none; }
section.suggestions > h2.section::before { content: none; }

/* ----- Cartes ----- */
.carte {
  background: var(--ed-card);
  border-radius: var(--ed-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 14px 34px -14px rgba(16, 24, 40, .14);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.carte:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ed-accent) 45%, var(--ed-line));
  box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .22);
}
.carte h3 { font-size: 1.14rem; letter-spacing: -.012em; line-height: 1.32; }

/* ----- Bandeau outil ----- */
.bandeau-outil {
  border-radius: 16px;
  box-shadow: 0 14px 32px -16px rgba(16, 24, 40, .18);
}

/* ----- Boutons ----- */
.btn {
  border-radius: 999px; padding: 14px 32px;
  font-weight: 800; letter-spacing: .015em;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--ed-accent) 70%, transparent);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  transform: translateY(-2px); filter: brightness(.93);
  box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--ed-accent) 75%, transparent);
}
.btn:active { transform: translateY(1px) scale(.99); box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .25); }

/* ----- Tableaux ----- */
.tableau-defilant {
  border: 1px solid var(--ed-line); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
}
table.prix { border-collapse: separate; border-spacing: 0; margin: 0; }
table.prix th, table.prix td { border: none; border-bottom: 1px solid var(--ed-line); }
table.prix thead th {
  background: linear-gradient(180deg, var(--ed-dark), color-mix(in srgb, var(--ed-dark) 80%, #000));
  color: #fff; font-size: .84rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 14px 16px; white-space: nowrap;
}
table.prix thead th:first-child { border-top-left-radius: 13px; }
table.prix thead th:last-child { border-top-right-radius: 13px; }
table.prix tbody tr:last-child td { border-bottom: none; }
table.prix tbody tr { transition: background-color .15s ease; }
table.prix tbody tr:hover td { background: color-mix(in srgb, var(--ed-accent) 9%, transparent); }

/* ----- FAQ ----- */
.faq details {
  border-radius: 12px; background: var(--ed-card); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--ed-accent) 55%, var(--ed-line));
  box-shadow: 0 10px 26px -14px rgba(16, 24, 40, .18);
}
.faq summary {
  list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-radius: 12px;
  transition: background-color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 400; line-height: 1;
  color: var(--ed-accent);
  background: color-mix(in srgb, var(--ed-accent) 13%, transparent);
  transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--ed-accent); color: #fff; }
.faq summary:hover { background: color-mix(in srgb, var(--ed-accent) 7%, transparent); }
.faq details[open] > div { animation: edito-reveal .28s ease; }
@keyframes edito-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ----- Notes & outils ----- */
.note {
  border: 1px solid var(--ed-line); border-left: 4px solid var(--ed-mid);
  border-radius: 12px; background: var(--ed-soft);
}
.note.danger { border-left-color: var(--rouge); }
.note.succes { border-left-color: var(--vert); }
.outil {
  border-radius: 18px;
  background: linear-gradient(180deg, var(--ed-card), color-mix(in srgb, var(--ed-soft) 60%, var(--ed-card)));
  box-shadow: 0 20px 46px -22px rgba(16, 24, 40, .25);
}
.champ select, .champ input[type="number"], .champ input[type="text"] {
  border-radius: 10px; padding: 12px 14px;
  background: var(--ed-card); color: var(--ed-ink); border: 1px solid var(--ed-line);
}
.champ select:focus, .champ input:focus {
  outline: 3px solid color-mix(in srgb, var(--ed-accent) 30%, transparent);
  border-color: var(--ed-accent); outline-offset: 1px;
}
.resultat { border-radius: 16px; background: var(--ed-card); }

/* ----- Pied de page ----- */
.site-footer { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--ed-accent), color-mix(in srgb, var(--ed-accent) 30%, var(--ed-mid)));
}

/* ----- Retour en haut ----- */
.retour-haut {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: var(--ed-dark); color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  transition: opacity .25s ease, transform .25s ease;
}
.retour-haut[hidden] { display: block; opacity: 0; pointer-events: none; transform: translateY(10px); }
.retour-haut:hover { transform: translateY(-2px); }

/* ----- Mode sombre ----- */
@media (prefers-color-scheme: dark) {
  :root {
    --bleu-fonce: #ccd9ec;
    --bleu: #6ea3d8;
    --bleu-clair: #152030;
    --texte: #e9ebef;
    --gris: #a3adb9;
    --fond: #0e1319;
    --fond-doux: #141b24;
    --bordure: #28323f;
    --ed-card: #141b24;
    --ed-soft: #141b24;
    --ed-head: #edf1f6;
    --ed-dark: #080d14;
  }
  .bandeau-outil { border-color: var(--ed-line); }
  .carte { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .5); }
  .faq summary:hover { background: color-mix(in srgb, var(--ed-accent) 14%, transparent); }
}

/* ----- Mouvements reduits ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----- Mobile ----- */
@media (max-width: 640px) {
  .hero { padding: 54px 0 46px; }
  .kicker { font-size: .7rem; letter-spacing: .14em; }
  section.bloc > h2.section::before { margin-right: 9px; }
  .retour-haut { right: 12px; bottom: 12px; width: 42px; height: 42px; }
  .faq summary { padding: 14px 16px; }
}

