/* ==========================================================
   Stove Industry — feuille de style commune
   Charte : fonte (gris-bleu), cendre, braise, oxyde, laiton
   ========================================================== */

:root {
  --fonte: #1E2A33;
  --fonte-2: #2B3B47;
  --suie: #131A20;
  --cendre: #E8EAE7;
  --cendre-2: #F4F5F3;
  --papier: #FFFFFF;
  --braise: #F08A24;
  --braise-clair: #FFB45E;
  --oxyde: #A63A1E;
  --laiton: #D9B26A;
  --texte: #1B232A;
  --texte-doux: #4A5862;
  --filet: #CBD1CF;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --mesure: 66ch;
  --gouttiere: clamp(16px, 4vw, 40px);
  --rayon-s: 6px;
  --rayon-l: 22px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cendre-2);
  color: var(--texte);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--oxyde); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--fonte); }

:focus-visible {
  outline: 3px solid var(--braise);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--braise); color: var(--suie); padding: 8px 14px; z-index: 100;
  font-family: var(--display); font-weight: 700;
}
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - 2 * var(--gouttiere)); margin-inline: auto; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fonte);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem); font-stretch: 85%; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); margin-top: 1.4em; font-weight: 700; }
p { margin: 0 0 1.05em; }
.chapo { font-size: 1.18em; color: var(--texte-doux); max-width: 58ch; }
strong { font-weight: 650; color: var(--fonte); }

/* ---------- En-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fonte) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-flame {
  width: 44px; height: 44px; border-radius: 12px;
  transition: transform .5s cubic-bezier(.3,1.6,.5,1), box-shadow .4s;
}
.logo:hover .logo-flame { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 4px rgba(240,138,36,.25), 0 0 26px rgba(240,138,36,.55); }
.logo-texte {
  font-family: var(--display); font-weight: 800; line-height: .9; font-size: 1.12rem;
  letter-spacing: -.01em; font-stretch: 80%;
}
.logo-texte small { display: block; font-weight: 500; font-size: .68rem; color: #93A3AB; letter-spacing: .02em; margin-top: 5px; font-stretch: 100%; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: #D7DEE2; text-decoration: none; padding: 8px 12px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { color: var(--braise-clair); }
.nav .btn { margin-left: 10px; }

.menu-toggle { display: none; }
.menu-btn {
  display: none; cursor: pointer; color: #fff;
  font-family: var(--display); font-weight: 700; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
}

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--fonte); padding: 12px var(--gouttiere) 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav a { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Boutons d'action ---------- */
.btn {
  --bg: var(--braise);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--suie) !important; text-decoration: none;
  background: var(--bg);
  padding: .85em 1.35em; border-radius: 999px; border: 0;
  box-shadow: 0 0 0 0 rgba(240,138,36,.55);
  transition: transform .18s ease, box-shadow .3s ease;
}
/* reflet de braise qui balaie le bouton */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,240,200,.75) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(240,138,36,.7); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn .flamme { width: 1em; height: 1.2em; flex: none; transform-origin: 50% 100%; }
.btn:hover .flamme { animation: vacille .45s ease-in-out infinite alternate; }

.btn--pulse { animation: braise-pulse 2.6s ease-out infinite; }
.btn--ghost {
  --bg: transparent; color: #fff !important;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--braise-clair); }
.btn--sombre { --bg: var(--fonte); color: #fff !important; }

@keyframes braise-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240,138,36,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(240,138,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,138,36,0); }
}
@keyframes vacille {
  from { transform: scaleY(1) rotate(-3deg); }
  to   { transform: scaleY(1.15) rotate(3deg); }
}

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 62%, rgba(240,138,36,.28), transparent 65%),
    linear-gradient(180deg, var(--fonte) 0%, var(--suie) 100%);
  color: #DCE3E6;
  padding: clamp(48px, 8vw, 110px) 0 0;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
.hero h1 { color: #fff; max-width: 13ch; }
.hero .chapo { color: #B9C5CB; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero-note { font-size: .92rem; color: #93A3AB; max-width: 46ch; }
.hero-text { padding-bottom: clamp(48px, 8vw, 110px); }
.hero-visuel { position: relative; align-self: end; }
.hero-visuel img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }

/* lueur au sol sous le poêle */
.hero-visuel::after {
  content: ""; position: absolute; left: 10%; right: 0; bottom: -30px; height: 90px;
  background: radial-gradient(50% 60% at 55% 30%, rgba(255,160,70,.45), transparent 70%);
  animation: lueur 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes lueur { from { opacity: .55; } to { opacity: 1; } }

/* Les étincelles montantes du hero */
.etincelles { position: absolute; inset: 0; pointer-events: none; }
.etincelles span {
  position: absolute; bottom: 8%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--braise-clair); box-shadow: 0 0 8px 2px rgba(255,150,50,.8);
  opacity: 0; animation: monte 6s linear infinite;
}
.etincelles span:nth-child(1) { left: 62%; animation-delay: 0s; }
.etincelles span:nth-child(2) { left: 70%; animation-delay: 1.4s; animation-duration: 7s; }
.etincelles span:nth-child(3) { left: 76%; animation-delay: 2.8s; }
.etincelles span:nth-child(4) { left: 82%; animation-delay: 4.1s; animation-duration: 5.4s; }
.etincelles span:nth-child(5) { left: 67%; animation-delay: 5s; animation-duration: 6.6s; }
@keyframes monte {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(-40px, -70vh); opacity: 0; }
}

/* ---------- En-tête de page (articles) ---------- */
.page-head {
  background: var(--fonte); color: #C7D1D6;
  padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -10%; bottom: -60%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(240,138,36,.25), transparent);
  pointer-events: none;
}
.page-head .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); max-width: 18ch; }
.page-head .chapo { color: #B2BEC4; }
.page-head img { max-height: 280px; margin-left: auto; }

.fil {
  font-family: var(--display); font-size: .88rem; color: #8FA0A8; margin-bottom: 18px;
}
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.fil li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.fil a { color: #C7D1D6; text-decoration: none; }
.fil a:hover { color: var(--braise-clair); }

/* ---------- Mise en page article ---------- */
.article {
  display: grid; grid-template-columns: minmax(0, var(--mesure)) 300px;
  gap: clamp(32px, 5vw, 72px); justify-content: space-between;
  padding: clamp(40px, 6vw, 80px) 0;
}
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--braise); }

.aside { position: relative; }
.aside-carte {
  position: sticky; top: 100px;
  background: var(--fonte); color: #C7D1D6;
  border-radius: var(--rayon-l); padding: 28px 24px 26px;
  overflow: hidden;
}
.aside-carte img { width: 74px; margin-bottom: 10px; }
.aside-carte h2 { color: #fff; font-size: 1.4rem; margin: 0 0 .5em; }
.aside-carte p { font-size: .98rem; }
.aside-carte .btn { width: 100%; justify-content: center; margin-top: 6px; }
.aside-liens { margin-top: 26px; font-family: var(--display); font-size: .95rem; }
.aside-liens h3 { font-size: 1rem; margin: 0 0 10px; }
.aside-liens ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--filet); }
.aside-liens li { border-bottom: 1px solid var(--filet); }
.aside-liens a { display: block; padding: 10px 0; color: var(--fonte); text-decoration: none; }
.aside-liens a:hover { color: var(--oxyde); padding-left: 4px; transition: padding .2s; }

@media (max-width: 960px) {
  .article { grid-template-columns: 1fr; }
  .aside-carte { position: static; }
  .page-head .wrap { grid-template-columns: 1fr; }
  .page-head img { max-height: 180px; margin: 0; }
}

/* encadré "à retenir" */
.retenir {
  border-left: 4px solid var(--braise);
  background: var(--papier);
  padding: 20px 24px; margin: 1.8em 0; border-radius: 0 var(--rayon-s) var(--rayon-s) 0;
}
.retenir p:last-child { margin-bottom: 0; }
.retenir h3 { margin-top: 0; font-size: 1.1rem; }

/* tableau comparatif */
.tableau { width: 100%; overflow-x: auto; margin: 1.6em 0; }
.tableau table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px; background: var(--papier); }
.tableau th, .tableau td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau thead th { font-family: var(--display); background: var(--fonte); color: #fff; font-weight: 650; }
.tableau tbody th { font-family: var(--display); color: var(--fonte); font-weight: 650; }

/* étapes (vraie séquence) */
.etapes { list-style: none; counter-reset: etape; padding: 0 !important; margin: 1.6em 0; }
.etapes li {
  counter-increment: etape; position: relative;
  padding: 4px 0 18px 64px; margin: 0; border-left: 2px solid var(--filet); margin-left: 22px;
}
.etapes li:last-child { border-left-color: transparent; }
.etapes li::before {
  content: counter(etape);
  position: absolute; left: -23px; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fonte); color: var(--braise-clair);
  font-family: var(--display); font-weight: 800;
}
.etapes strong { display: block; font-family: var(--display); font-size: 1.08rem; }

/* FAQ */
.faq { margin-top: 1.2em; }
.faq details {
  background: var(--papier); border-radius: var(--rayon-s);
  border: 1px solid var(--filet); margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-family: var(--display); font-weight: 650; color: var(--fonte);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; color: var(--braise); transition: rotate .25s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 20px 6px; animation: deplie .3s ease; }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-bande {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--oxyde), #C9531F 55%, var(--braise));
  color: #FFF4E8; border-radius: var(--rayon-l);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  margin: 2.2em 0;
}
.cta-bande h2, .cta-bande h3 { color: #fff; margin: 0 0 .35em; }
.cta-bande p { margin: 0; max-width: 52ch; }
.cta-bande .btn { --bg: #fff; }
@media (max-width: 720px) { .cta-bande { grid-template-columns: 1fr; } }

/* ---------- Sections de l'accueil ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--blanc { background: var(--papier); }
.section-tete { max-width: 60ch; margin-bottom: 40px; }
.section-tete h2 { margin-top: 0; }

.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px);
}
.choix {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: var(--cendre); border-radius: var(--rayon-l); overflow: hidden;
  text-decoration: none; color: inherit;
}
.choix-image {
  background: linear-gradient(180deg, var(--fonte-2), var(--fonte));
  padding: 34px 20px 0; display: grid; place-items: end center; min-height: 300px;
}
.choix-image img { width: 62%; max-width: 260px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.choix:hover .choix-image img { transform: translateY(-8px) scale(1.03); }
.choix-texte { padding: 26px 28px 30px; }
.choix-texte h3 { margin: 0 0 .4em; font-size: 1.6rem; }
.choix-texte p { color: var(--texte-doux); }
.lien-fleche { font-family: var(--display); font-weight: 700; color: var(--oxyde); }
.choix:hover .lien-fleche { text-decoration: underline; }

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

/* bloc budget : barres de fourchettes */
.budgets { display: grid; gap: 22px; margin: 28px 0 10px; }
.budget-ligne { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; font-family: var(--display); }
.budget-ligne span { font-weight: 650; color: var(--fonte); }
.budget-piste { position: relative; height: 38px; background: var(--cendre); border-radius: 999px; }
.budget-barre {
  position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--braise), var(--oxyde));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; white-space: nowrap; padding: 0 12px;
}
.budget-echelle { display: grid; grid-template-columns: 180px 1fr; gap: 18px; font-family: var(--display); font-size: .82rem; color: var(--texte-doux); }
.budget-echelle div { display: flex; justify-content: space-between; }
@media (max-width: 600px) {
  .budget-ligne, .budget-echelle { grid-template-columns: 1fr; gap: 6px; }
  .budget-echelle > span { display: none; }
}

/* séparation : guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--fonte); }
.guide {
  padding: 26px 24px 28px 0; border-bottom: 1px solid var(--filet);
  text-decoration: none; color: inherit; display: block;
}
.guide:nth-child(3n+2), .guide:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--filet); }
.guide h3 { margin: 0 0 .4em; font-size: 1.22rem; transition: color .2s; }
.guide p { color: var(--texte-doux); font-size: .98rem; margin: 0; }
.guide:hover h3 { color: var(--oxyde); }
@media (max-width: 860px) {
  .guides { grid-template-columns: 1fr; }
  .guide, .guide:nth-child(3n+2), .guide:nth-child(3n+3) { padding: 22px 0; border-left: 0; }
}

/* départements */
.zones { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.zones-liste { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.zones-liste a {
  font-family: var(--display); font-weight: 600; text-decoration: none;
  color: var(--fonte); background: var(--papier); border: 1px solid var(--filet);
  padding: 8px 16px; border-radius: 999px; transition: border-color .2s, color .2s;
}
.zones-liste a:hover { border-color: var(--braise); color: var(--oxyde); }
@media (max-width: 860px) { .zones { grid-template-columns: 1fr; } }

.villes { columns: 3 180px; column-gap: 28px; padding: 0; list-style: none; margin: 1em 0 1.6em; }
.villes li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dashed var(--filet); }
.villes a { text-decoration: none; color: var(--fonte); }
.villes a:hover { color: var(--oxyde); }

/* figure illustrée dans les articles */
.figure {
  margin: 2em 0; background: var(--fonte); border-radius: var(--rayon-l); padding: 24px;
}
.figure img { margin: 0 auto; max-height: 380px; }
.figure figcaption { color: #AEBBC1; font-size: .9rem; margin-top: 14px; font-family: var(--display); }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--suie); color: #93A3AB; padding: 64px 0 28px; font-family: var(--display); font-size: .95rem; }
.foot-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.site-foot h2 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #C7D1D6; text-decoration: none; }
.site-foot a:hover { color: var(--braise-clair); }
.foot-logo img { width: 200px; margin-bottom: 14px; }
.foot-bas { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) { .foot-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grille { grid-template-columns: 1fr; } }

/* ---------- Mobile hero ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 10px; }
  .hero-visuel img { max-width: 340px; margin: 0 auto; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .etincelles { display: none; }
}
