/* Cheminées Éco Design, refonte 2026. Direction « premium et cocooning » : voir ../DESIGN.md */

/* Polices hébergées sur le site (23/10/2026) : Newsreader et Figtree, licence libre SIL OFL 1.1, jeux latin et latin étendu */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/newsreader-italique-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/newsreader-italique-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ---------- Variables ---------- */
:root {
  color-scheme: dark; /* barres de défilement et commandes natives sombres */
  --nuit: #14110f;
  --nuit-2: #1c1815;
  --nuit-3: #26201b;
  --trait: #352d27;
  --ivoire: #f5f0e8;
  --texte: #b5aca2;
  --discret: #8c837a;
  --lin: #efe9e1;
  --encre: #221d19;
  --encre-douce: #5a5048;
  --rouge: #d62828;
  --braise: #a41e1e;
  --flamme: #b80000;

  --f-titre: "Newsreader", Georgia, serif;
  --f-texte: "Figtree", system-ui, sans-serif;
  --titre-graisse: 400;
  --titre-interlettrage: -0.015em;

  --largeur: 1320px;
  --gouttiere: clamp(20px, 5vw, 72px);
  --rayon: 20px;
  --rayon-champ: 14px;
  --douce: cubic-bezier(.22, .61, .36, 1);
  --entete: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: clamp(1.0625rem, 1vw + .6rem, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ivoire); outline-offset: 4px; border-radius: 4px; }
/* Lien d'évitement : invisible jusqu'à ce qu'on arrive dessus au clavier */
.evitement { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 18px; border-radius: 999px; background: var(--ivoire); color: var(--nuit); font-size: 15px; font-weight: 500; transition: top .3s var(--douce); }
.evitement:focus { top: 16px; }
::selection { background: var(--rouge); color: #fff; }

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

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: var(--titre-graisse);
  letter-spacing: var(--titre-interlettrage);
  color: var(--ivoire);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1; }
h2 { font-size: clamp(2.125rem, 4.2vw, 3.75rem); line-height: 1.06; }
h3, .titre-3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
.titre-3 { font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); color: var(--ivoire); text-wrap: balance; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 1em; }

.libelle {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--discret);
}
.libelle::before { content: ""; width: 22px; height: 1px; background: var(--rouge); }

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .5s var(--douce), border-color .5s var(--douce), color .5s var(--douce), transform .2s ease;
}
.bouton:active { transform: scale(.98); }
.bouton--principal { background: var(--rouge); color: #fff; }
.bouton--principal:hover { background: var(--braise); }
.bouton--contour { background: transparent; color: var(--ivoire); border-color: rgba(245, 240, 232, .38); }
.bouton--contour:hover { border-color: var(--ivoire); background: rgba(245, 240, 232, .06); }
.bouton--petit { min-height: 44px; padding: 0 22px; font-size: 15px; }
.bouton .fleche { transition: transform .5s var(--douce); }
.bouton:hover .fleche { transform: translateX(3px); }

.lien {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ivoire); font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .6s var(--douce);
}
.lien:hover { background-size: 100% 1px; }
.lien .fleche { transition: transform .5s var(--douce); }
.lien:hover .fleche { transform: translateX(4px); }

/* ---------- En-tête : logo au centre, menu de part et d'autre ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--entete);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--douce), border-color .6s var(--douce), height .6s var(--douce);
}
.entete.est-solide { height: 70px; background: var(--nuit); border-bottom-color: var(--trait); }
.entete .contenu { position: relative; display: flex; align-items: center; justify-content: center; }
.entete__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.entete__logo img { width: 158px; height: auto; }
.menu { width: 100%; }
.menu ul { display: grid; grid-template-columns: repeat(3, auto) minmax(220px, 1fr) repeat(3, auto); align-items: center; column-gap: clamp(22px, 2.6vw, 44px); }
.menu li:nth-child(4) { grid-column: 5; }
.menu a {
  display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 500;
  color: rgba(245, 240, 232, .72);
  background: linear-gradient(var(--rouge), var(--rouge)) 50% 100% / 0 1px no-repeat;
  transition: color .4s ease, background-size .5s var(--douce);
}
.menu a:hover { color: var(--ivoire); }
.menu a[aria-current="page"] { color: var(--ivoire); background-size: 100% 1px; }
.bouton-menu {
  display: none; min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid rgba(245, 240, 232, .35); color: var(--ivoire); font-size: 15px; font-weight: 500;
}
@media (max-width: 960px) {
  :root { --entete: 72px; }
  .entete .contenu { justify-content: space-between; }
  .entete__logo { position: relative; left: auto; top: auto; transform: none; }
  .entete__logo img { width: 136px; }
  .bouton-menu { display: inline-flex; align-items: center; position: relative; z-index: 2; }
  .menu {
    position: fixed; inset: 0; z-index: 1; display: flex; align-items: center;
    padding: var(--entete) var(--gouttiere) 48px; background: var(--nuit);
    visibility: hidden; opacity: 0; transition: opacity .45s var(--douce), visibility 0s linear .45s;
  }
  .menu ul { display: flex; flex-direction: column; width: 100%; }
  .menu a {
    display: block; padding: 14px 0; border-bottom: 1px solid var(--trait);
    font-family: var(--f-titre); font-weight: var(--titre-graisse); font-size: clamp(2rem, 9vw, 2.75rem);
    letter-spacing: var(--titre-interlettrage); line-height: 1.2; color: var(--ivoire); background: none;
  }
  .menu a[aria-current="page"] { font-style: italic; color: var(--rouge); }
  .menu-ouvert .menu { visibility: visible; opacity: 1; transition: opacity .45s var(--douce); }
  .menu-ouvert { overflow: hidden; }
  .menu-ouvert .entete { background: var(--nuit); border-bottom-color: transparent; }
}

/* ---------- Ouverture : la flamme comme fenêtre sur le feu ---------- */
.ouverture {
  position: relative; min-height: 100dvh; overflow: hidden;
  display: grid; align-items: center;
  padding: calc(var(--entete) + 24px) 0 clamp(40px, 7vh, 80px);
}
.ouverture .contenu { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.ouverture__texte p { margin-top: 28px; font-size: clamp(1.125rem, 1.4vw, 1.3rem); color: var(--texte); max-width: 30ch; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.ouverture__visuel { position: relative; display: grid; place-items: center; }
/* Lueur du feu sur le mur, dessinée par un dégradé */
.ouverture__visuel::before {
  content: ""; position: absolute; width: 150%; aspect-ratio: 1; left: 50%; top: 52%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(214, 86, 40, .22), rgba(214, 86, 40, .08) 45%, rgba(214, 86, 40, 0) 100%);
  pointer-events: none; opacity: var(--lueur, 1);
}
.fenetre-flamme {
  position: relative; height: min(76dvh, 740px); aspect-ratio: 282 / 392; max-width: 100%;
  -webkit-mask: url("../assets/logos/flamme.svg") center / contain no-repeat;
  mask: url("../assets/logos/flamme.svg") center / contain no-repeat;
  transform-origin: 73% 57.7%;
}
.fenetre-flamme__media { position: absolute; inset: -4% 0; }
.fenetre-flamme__media img, .fenetre-flamme__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.fenetre-flamme__video { opacity: 0; transition: opacity 1.2s var(--douce); }
.fenetre-flamme__video.est-prete { opacity: 1; }
@media (max-width: 860px) {
  .ouverture { align-items: start; }
  .ouverture .contenu { grid-template-columns: 1fr; gap: 8px; }
  .ouverture__visuel { order: -1; }
  .fenetre-flamme { height: 40dvh; }
  .ouverture__texte p { margin-top: 18px; }
  .ouverture__actions { margin-top: 28px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--relief { background: var(--nuit-2); }
.entete-section { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.entete-section p { color: var(--texte); }

/* Le poêle du mois (rempli par main.js d'après js/poele-du-mois.js) */
.poele-mois[hidden], .poele-mois [hidden] { display: none !important; }
.poele-mois { scroll-margin-top: 90px; }
.poele-mois__vitrine {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 80px);
  padding: clamp(16px, 2vw, 28px); border-radius: calc(var(--rayon) + 8px);
  background: var(--nuit-2); border: 1px solid var(--trait);
}
.poele-mois__visuel { position: relative; }
/* Lueur de feu derrière la photo : un dégradé, jamais un filtre */
.poele-mois__visuel::before {
  content: ""; position: absolute; inset: 8% -6% -4%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(214, 110, 40, .16), rgba(214, 110, 40, 0));
}
.poele-mois__photo { position: relative; z-index: 1; aspect-ratio: 1 / 1.08; }
.poele-mois__texte { display: grid; gap: 18px; justify-items: start; padding: clamp(0px, 1vw, 12px) clamp(0px, 2vw, 24px) clamp(0px, 1vw, 12px) 0; }
.poele-mois .libelle { flex-wrap: wrap; row-gap: 6px; }
.poele-mois .libelle > span:first-of-type { white-space: nowrap; }
.poele-mois__exemple { margin-left: 4px; padding: 0 9px; border: 1px dashed var(--discret); border-radius: 999px; font-size: 12px; line-height: 20px; }
.poele-mois__titre { font-size: clamp(2.75rem, 5vw, 4.75rem); line-height: .98; margin-top: -4px; }
.poele-mois__nom { margin-top: 6px; font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); font-size: clamp(1.625rem, 2.4vw, 2.25rem); line-height: 1.1; color: var(--ivoire); text-wrap: balance; }
.poele-mois__type { margin-top: -10px; font-size: 15px; color: var(--discret); }
.poele-mois__points { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 0 clamp(20px, 3vw, 44px); margin: 4px 0 0; }
.poele-mois__points > div { padding-top: 12px; border-top: 1px solid var(--trait); }
.poele-mois__points dt { font-size: 13px; font-weight: 500; color: var(--discret); }
.poele-mois__points dd { margin: 2px 0 0; font-family: var(--f-titre); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; color: var(--ivoire); white-space: nowrap; }
.poele-mois__offre { display: grid; gap: 10px; margin-top: 10px; padding-left: 20px; border-left: 1px solid var(--rouge); }
.poele-mois__prix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; max-width: none; font-family: var(--f-titre); color: var(--ivoire); }
.poele-mois__prix s { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--discret); text-decoration-thickness: 1px; }
.poele-mois__prix strong { font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); font-size: clamp(2.75rem, 4.4vw, 3.75rem); line-height: 1; }
.poele-mois__remise { padding: 0 12px; border-radius: 999px; background: var(--rouge); color: #fff; font-family: var(--f-texte); font-size: 15px; font-weight: 600; line-height: 30px; white-space: nowrap; }
.poele-mois__conditions { font-size: 14px; line-height: 1.6; color: var(--discret); }
.poele-mois__temps { display: flex; align-items: center; gap: 16px; width: min(100%, 380px); margin-top: 4px; }
.poele-mois__reste { flex: none; font-size: 15px; font-weight: 500; color: var(--ivoire); }
.poele-mois__jauge { flex: 1; height: 2px; border-radius: 2px; background: var(--trait); overflow: hidden; }
.poele-mois__jauge > span { display: block; height: 100%; background: var(--ivoire); transform-origin: left; transform: scaleX(1); }
.poele-mois__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 8px; }
@media (max-width: 760px) {
  .poele-mois__vitrine { grid-template-columns: 1fr; }
  .poele-mois__photo { aspect-ratio: 4 / 3.4; }
  .poele-mois__texte { padding: 0 8px 12px; }
  .poele-mois__points dd { white-space: normal; }
}

/* Photos */
.cadre { position: relative; overflow: hidden; border-radius: var(--rayon); background: var(--nuit-3); isolation: isolate; }
.cadre > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--douce); }
a:hover .cadre > img, .cadre:hover > img { transform: scale(1.03); }

/* ---------- Bande claire : qui sommes-nous ---------- */
.sur-lin { background: var(--lin); color: var(--encre-douce); }
.sur-lin h2, .sur-lin h3 { color: var(--encre); }
.sur-lin .libelle { color: #6f645a; }
.maison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.maison__titre { grid-column: 1 / -1; display: grid; gap: 22px; max-width: 900px; }
.reperes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 44px; }
.repere { padding: 22px 0 0; border-top: 1px solid rgba(34, 29, 25, .18); font-family: var(--f-titre); font-weight: var(--titre-graisse); font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.15; color: var(--encre); letter-spacing: var(--titre-interlettrage); }
.maison__photo .cadre { aspect-ratio: 4 / 3.1; }
.citation { margin: 40px 0 0; padding: 0; }
.citation p { font-family: var(--f-titre); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--encre); max-width: 34ch; }
.citation footer { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--encre); }
.citation footer img { width: 22px; height: auto; }
@media (max-width: 860px) {
  .maison { grid-template-columns: 1fr; }
  .reperes { grid-template-columns: 1fr; gap: 0; margin-bottom: 32px; }
  .repere { padding: 16px 0; }
}

/* ---------- Les cinq étapes ---------- */
.etapes { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.etapes__titre { position: sticky; top: 140px; align-self: start; display: grid; gap: 22px; }
.etapes__liste { position: relative; padding-left: 64px; }
.fil { position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--trait); }
.fil span { position: absolute; inset: 0; background: var(--rouge); transform-origin: top; transform: scaleY(0); }
.etape { position: relative; padding: 0 0 clamp(48px, 6vw, 80px); }
.etape:last-child { padding-bottom: 0; }
.etape__numero {
  position: absolute; left: -64px; top: -6px; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: var(--nuit); border: 1px solid var(--trait);
  font-family: var(--f-titre); font-style: italic; font-size: 22px; color: var(--ivoire);
  transition: border-color .6s var(--douce);
}
.etape.est-active .etape__numero { border-color: var(--rouge); }
.etape .titre-3 { margin-bottom: 12px; }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr; }
  .etapes__titre { position: static; }
  .etapes__liste { padding-left: 60px; }
}

/* ---------- Trois énergies ---------- */
.energies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.energie { display: grid; gap: 20px; align-content: start; }
.energie .cadre { aspect-ratio: 3 / 4; }
.energie:nth-child(2) { margin-top: clamp(0px, 6vw, 88px); }
.energie .titre-3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.energie p { font-size: 16px; }
.energie .lien { margin-top: 4px; width: max-content; }
@media (max-width: 860px) {
  .energies { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(var(--gouttiere) * -1); padding-right: var(--gouttiere); scrollbar-width: none; }
  .energies::-webkit-scrollbar { display: none; }
  .energie { scroll-snap-align: start; }
  .energie:nth-child(2) { margin-top: 0; }
}

/* ---------- Marques et labels ---------- */
.marques { display: grid; gap: 48px; }
.marques__groupe { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 32px; border-top: 1px solid var(--trait); }
.marques__logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4vw, 60px); }
.marques__logos img { height: 52px; width: auto; }
.marques__logos--labels img { height: 60px; }
@media (max-width: 760px) {
  .marques__groupe { grid-template-columns: 1fr; }
  .marques__logos img { height: 40px; }
  .marques__logos--labels img { height: 48px; }
}

/* ---------- Showrooms ---------- */
.showrooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.showroom {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end;
  padding: clamp(20px, 2.6vw, 36px); border-radius: calc(var(--rayon) + 8px); background: var(--nuit-2); border: 1px solid var(--trait);
}
.showroom .cadre { width: clamp(140px, 17vw, 230px); aspect-ratio: 3 / 4; }
.showroom address { font-style: normal; margin-top: 12px; }
.showroom .telephone { display: inline-block; margin-top: 18px; font-family: var(--f-titre); font-size: clamp(1.375rem, 2vw, 1.75rem); color: var(--ivoire); letter-spacing: var(--titre-interlettrage); }
.showroom .telephone:hover { color: #fff; }
.showrooms__suite { margin-top: 40px; }
@media (max-width: 960px) { .showrooms { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .showroom { grid-template-columns: 1fr; } .showroom .cadre { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--rayon); } }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit-2); border-top: 1px solid var(--trait); padding: clamp(64px, 8vw, 112px) 0 32px; font-size: 15px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.pied__logo img { width: 170px; }
.pied__accroche { margin-top: 20px; max-width: 34ch; }
.pied__titre { font-family: var(--f-titre); font-size: 20px; color: var(--ivoire); margin-bottom: 12px; }
.pied address { font-style: normal; }
.pied a:hover { color: var(--ivoire); }
.reseaux { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--trait); font-size: 13px; color: var(--discret); }
@media (max-width: 960px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: 1fr; } }

/* =====================================================================
   Pages intérieures
   ===================================================================== */
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- En-tête de page ---------- */
.page-tete { position: relative; padding: calc(var(--entete) + clamp(48px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-tete::before {
  content: ""; position: absolute; width: 70vw; aspect-ratio: 1; right: -20vw; top: -30vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(214, 86, 40, .14), rgba(214, 86, 40, 0));
}
.page-tete .contenu { position: relative; display: grid; gap: 24px; }
.page-tete p.intro { font-size: clamp(1.125rem, 1.4vw, 1.3rem); max-width: 46ch; }
.page-tete__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.fil-ariane { font-size: 14px; color: var(--discret); }
.fil-ariane a { color: var(--texte); }
.fil-ariane a:hover { color: var(--ivoire); }
.fil-ariane span[aria-hidden] { margin: 0 8px; }

.page-tete--compacte { padding: calc(var(--entete) + clamp(28px, 4vw, 56px)) 0 clamp(28px, 3vw, 40px); }
.page-tete--compacte .contenu { gap: 16px; }
.page-tete--compacte h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
.onglets { display: inline-flex; gap: 4px; padding: 4px; margin-top: 8px; width: max-content; border-radius: 999px; border: 1px solid var(--trait); }
.onglets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--texte); transition: background-color .4s var(--douce), color .4s var(--douce); }
.onglets a:hover { color: var(--ivoire); }
.onglets a[aria-current="page"] { background: var(--ivoire); color: var(--encre); }

/* ---------- Haut de page avec image d'ambiance (fond, pas un cadre) ---------- */
.page-tete--ambiance { min-height: clamp(380px, 52vh, 560px); display: grid; align-items: end; }
.page-tete--ambiance::before { display: none; }
.ambiance { position: absolute; inset: 0; pointer-events: none; }
.ambiance__image {
  position: absolute; top: 0; right: 0; width: min(78%, 1200px); height: 100%; object-fit: cover; opacity: .72;
  -webkit-mask-image: linear-gradient(to left, #000 35%, rgba(0,0,0,.6) 60%, transparent 92%), linear-gradient(to bottom, transparent 0%, #000 26%, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 35%, rgba(0,0,0,.6) 60%, transparent 92%), linear-gradient(to bottom, transparent 0%, #000 26%, #000 58%, transparent 100%);
  mask-composite: intersect;
}
.page-tete--ambiance .contenu { z-index: 1; }
.page-tete--ambiance-courte { min-height: clamp(300px, 40vh, 420px); } /* pages catalogue : on arrive vite aux appareils */
.page-tete--ambiance .intro { color: rgba(245, 240, 232, .82); }
@media (max-width: 860px) {
  .page-tete--ambiance { min-height: 420px; }
  .page-tete--ambiance-courte { min-height: 340px; }
  .ambiance__image { width: 100%; opacity: .45;
    -webkit-mask-image: linear-gradient(to top, transparent 5%, #000 60%); mask-image: linear-gradient(to top, transparent 5%, #000 60%); }
}

/* ---------- Catalogue ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtres button {
  min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--trait); color: var(--texte); font-size: 15px; font-weight: 500;
  transition: border-color .4s var(--douce), color .4s var(--douce), background-color .4s var(--douce);
}
.filtres button:hover { border-color: rgba(245, 240, 232, .5); color: var(--ivoire); }
.filtres button { display: inline-flex; align-items: center; gap: 8px; }
.filtres__logo { height: 18px; width: auto; }
.filtres button[aria-pressed="true"] { background: var(--nuit-3); border-color: var(--ivoire); color: var(--ivoire); }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 36px 20px; }
.produit { position: relative; display: grid; align-content: start; gap: 2px; }
.produit[hidden], .fiche__3d[hidden] { display: none; }
.produit__photo { aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: 14px; }
.produit__marque { font-size: 13px; font-weight: 500; color: var(--discret); }
.produit__nom { font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); font-size: 1.25rem; line-height: 1.2; color: var(--ivoire); transition: color .4s ease; }
.produit__type { font-size: 14px; line-height: 1.5; }
.produit__caracteristiques { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.produit__caracteristiques > div { display: none; }
.produit__caracteristiques > .essentiel { display: block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--trait); font-size: 13px; color: var(--texte); }
.produit__caracteristiques dt { display: none; }
.produit__caracteristiques dd { margin: 0; }
.produit__ouvrir { position: absolute; inset: 0; background: none; border: 0; cursor: zoom-in; border-radius: var(--rayon); }
.produit:hover .cadre > img { transform: scale(1.03); }
.produit__logo {
  position: absolute; top: 10px; left: 10px; z-index: 1; display: grid; place-items: center;
  height: 34px; padding: 0 9px; border-radius: 9px; background: rgba(20, 17, 15, .8);
}
.produit__logo img { height: 20px; width: auto; }
.produit__badge { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 0 11px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 500; line-height: 26px; }
.produit:hover .produit__nom { color: #fff; }
.catalogue__aide { font-size: 14px; color: var(--discret); }
.barre-filtres {
  position: sticky; top: 70px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin: 0 calc(var(--gouttiere) * -1) 32px; padding: 14px var(--gouttiere); background: var(--nuit); border-bottom: 1px solid var(--trait);
}
.compte { margin-left: 4px; font-size: 13px; color: var(--discret); }
.filtres button[aria-pressed="true"] .compte { color: var(--texte); }
@media (max-width: 960px) { .barre-filtres { top: 72px; } }
@media (max-width: 560px) {
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .produit__nom { font-size: 1.0625rem; }
  .catalogue__aide { display: none; }
  .filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gouttiere) * -1); padding-right: var(--gouttiere); }
  .filtres::-webkit-scrollbar { display: none; }
  .filtres button { flex: none; }
}

/* ---------- Fiche agrandie ---------- */
.fiche {
  width: min(1200px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 8px); background: var(--nuit-2); color: var(--texte);
}
.fiche::backdrop { background: rgba(10, 8, 7, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fiche[open] { animation: fiche-entree .5s var(--douce); }
@keyframes fiche-entree { from { opacity: 0; transform: translateY(12px); } }
.fiche__grille { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); align-items: center; }
.fiche__photo { position: relative; aspect-ratio: 16 / 9.4; margin: 20px 0 20px 20px; border-radius: 14px; overflow: hidden; background: var(--nuit-3); }
.fiche__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche__infos { display: grid; align-content: start; gap: 6px; padding: 64px clamp(24px, 3vw, 40px) 32px; }
.fiche__logo { height: 40px; margin-bottom: 14px; }
.fiche__logo img { height: 100%; width: auto; }
.fiche__logo:not(:has(img[src])) { display: none; }
.fiche__logo:has(img[src]) + .fiche__marque { display: none; }
.fiche__nom { font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; color: var(--ivoire); }
.fiche__chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin: 28px 0 0; }
.fiche__chiffres > div { border-top: 1px solid var(--trait); padding-top: 14px; }
.fiche__chiffres dt { font-size: 14px; color: var(--discret); }
.fiche__chiffres dd { margin: 4px 0 0; font-family: var(--f-titre); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; color: var(--ivoire); letter-spacing: var(--titre-interlettrage); }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bouton-rond {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; font-size: 20px; line-height: 1;
  background: rgba(20, 17, 15, .7); border: 1px solid rgba(245, 240, 232, .3); color: var(--ivoire);
  transition: background-color .4s var(--douce), border-color .4s var(--douce);
}
.bouton-rond:hover { background: var(--nuit); border-color: var(--ivoire); }
.fiche__fermer { position: absolute; top: 16px; right: 16px; z-index: 2; }
.fiche__nav { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }
@media (max-width: 760px) {
  .fiche__grille { grid-template-columns: 1fr; }
  .fiche__logo { height: 32px; }
  .fiche__photo { margin: 12px 12px 0; }
  .fiche__infos { padding: 24px 20px 28px; }
}

/* ---------- Textes conseils (sur la bande claire) ---------- */
.conseils { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); }
.conseils__titre { position: sticky; top: 130px; align-self: start; display: grid; gap: 22px; }
.conseils__titre p { color: var(--encre-douce); }
.conseils__suite { display: grid; gap: clamp(40px, 5vw, 64px); }
.conseil { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(34, 29, 25, .16); }
.conseil h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.sur-lin .lien { color: var(--encre); }
.sur-lin .bouton--contour { color: var(--encre); border-color: rgba(34, 29, 25, .35); }
.sur-lin .bouton--contour:hover { border-color: var(--encre); background: rgba(34, 29, 25, .04); }
@media (max-width: 860px) { .conseils { grid-template-columns: 1fr; } .conseils__titre { position: static; } }

/* ---------- Invitation au showroom ---------- */
.invitation {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; align-items: end; gap: 32px;
  padding: clamp(32px, 5vw, 72px); border-radius: calc(var(--rayon) + 12px); background: var(--nuit-2); border: 1px solid var(--trait);
}
.invitation::before {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; left: -10%; bottom: -60%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(214, 86, 40, .16), rgba(214, 86, 40, 0));
}
.invitation > * { position: relative; }
.invitation h2, .invitation__titre { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; margin-bottom: 18px; }
.invitation__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .invitation { grid-template-columns: 1fr; } }

/* ---------- Page Bois : deux portes ---------- */
.portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); }
.porte { display: grid; gap: 18px; }
.porte .cadre { aspect-ratio: 4 / 4.6; }
.porte h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.porte:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
@media (max-width: 760px) { .portes { grid-template-columns: 1fr; } .porte:nth-child(2) { margin-top: 0; } .porte .cadre { aspect-ratio: 4 / 3.4; } }

.porte__titre { font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05; color: var(--ivoire); }
.porte .lien { width: max-content; }
.deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.deux-colonnes > div { display: grid; gap: 18px; align-content: start; justify-items: start; }
.deux-colonnes--espace { margin-top: clamp(48px, 6vw, 80px); }
.conseil--large { gap: 24px; }
.conseil--large h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.invitation__texte { font-family: var(--f-titre); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.3; color: var(--ivoire); max-width: 30ch; letter-spacing: var(--titre-interlettrage); }
@media (max-width: 760px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* ---------- Page Bois : deux choix ---------- */
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.choix__carte {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px;
  padding: 14px; border-radius: calc(var(--rayon) + 8px); background: var(--nuit-2); border: 1px solid var(--trait);
  transition: border-color .5s var(--douce), background-color .5s var(--douce);
}
.choix__carte:hover { border-color: #4a3f36; background: #201b17; }
.choix__carte .cadre { aspect-ratio: 4 / 3; border-radius: 14px; }
.choix__texte { display: grid; gap: 14px; justify-items: start; }
.choix__titre { font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.05; color: var(--ivoire); }
@media (max-width: 860px) { .choix { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .choix__carte { grid-template-columns: 1fr; } }
.conseil .lien { width: max-content; margin-bottom: 8px; }

/* ---------- Encadré de texte (inserts) ---------- */
.invitation--texte { grid-template-columns: 1fr; align-items: start; }
.invitation__corps { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px clamp(32px, 5vw, 80px); }
.invitation__corps h2 { grid-column: 1; grid-row: 1 / span 4; font-size: clamp(2rem, 3.2vw, 2.75rem); margin: 0; }
.invitation__corps > :not(h2) { grid-column: 2; }
.invitation__corps h3 { margin-top: 14px; }
@media (max-width: 860px) { .invitation__corps { grid-template-columns: 1fr; } .invitation__corps h2, .invitation__corps > :not(h2) { grid-column: 1; grid-row: auto; } }

/* ---------- La flamme qui dévoile (pilotée par main.js) ---------- */
.devoile { position: relative; background: var(--nuit); }
.devoile__fond { position: relative; min-height: 100dvh; display: grid; align-items: end; background: var(--nuit-2); overflow: hidden; }
.devoile__fond > .cadre { position: absolute; inset: 0; border-radius: 0; background: none; }
.devoile__fond > .cadre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,17,15,.94) 0%, rgba(20,17,15,.55) 45%, rgba(20,17,15,.1) 75%); }
.devoile__fond .contenu { position: relative; z-index: 1; padding-bottom: clamp(56px, 10vh, 112px); display: grid; gap: 22px; }
.devoile__fond p { color: rgba(245, 240, 232, .84); }
.devoile-actif {
  -webkit-mask-image: url("../assets/logos/flamme.svg"); mask-image: url("../assets/logos/flamme.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: var(--flamme-taille, 90px) auto; mask-size: var(--flamme-taille, 90px) auto;
  -webkit-mask-position: var(--flamme-x, 50%) var(--flamme-y, 50%); mask-position: var(--flamme-x, 50%) var(--flamme-y, 50%);
}
.devoile__teinte { position: absolute; inset: 0; z-index: 2; background: var(--flamme); pointer-events: none; opacity: 0; }

/* ---------- Actualités ---------- */
.une { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: 14px; border-radius: calc(var(--rayon) + 8px); background: var(--nuit-2); border: 1px solid var(--trait); transition: border-color .5s var(--douce); }
.une:hover, .breve:hover { border-color: #4a3f36; }
.une .cadre { aspect-ratio: 16 / 10; border-radius: 14px; }
.une__texte { padding-right: clamp(0px, 2vw, 24px); }
.une__texte { display: grid; gap: 18px; justify-items: start; }
.une__texte h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquette { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--trait); font-size: 13px; font-weight: 500; color: var(--texte); }
.etiquette--rouge { border-color: var(--rouge); color: var(--ivoire); }
.breves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(16px, 2vw, 28px); }
.breve { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; padding: 14px; border-radius: calc(var(--rayon) + 8px); background: var(--nuit-2); border: 1px solid var(--trait); transition: border-color .5s var(--douce); }
.breve .cadre { aspect-ratio: 4 / 3; width: 100%; border-radius: 14px; grid-row: 1 / span 4; }
.breve > :not(.cadre) { grid-column: 2; }
.breve .lien { width: max-content; }

.article { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 104px); padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--trait); scroll-margin-top: 80px; }
.article__tete { position: sticky; top: 130px; align-self: start; display: grid; gap: 18px; }
.article__tete h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.article__corps { display: grid; gap: 0; }
.article__corps .chapo { font-family: var(--f-titre); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; color: var(--ivoire); margin-bottom: 1em; }
.article__corps h3 { font-size: 1.375rem; margin: 1.6em 0 .5em; }
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.galerie .cadre { aspect-ratio: 4 / 3; border-radius: 12px; }
.logo-encart { margin-top: 32px; padding: 20px; border-radius: var(--rayon); background: var(--lin); width: max-content; max-width: 100%; }
.logo-encart img { height: 56px; width: auto; }
@media (max-width: 860px) {
  .une, .breves, .article { grid-template-columns: 1fr; }
  .galerie, .galerie--une { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article__tete { position: static; }
}

/* ---------- Contact ---------- */
/* Showrooms en cartes compactes à gauche, formulaire à droite ; le poêle 3D suit juste après */
/* Les deux colonnes ont la même hauteur : les cartes se partagent celle du formulaire, haut et bas alignés */
.contact-grille { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.lieux { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.lieu { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: var(--rayon); background: var(--nuit-2); border: 1px solid var(--trait); font-size: 15px; }
.lieu__tete { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 6px; }
.lieu__tete .cadre { width: 76px; aspect-ratio: 1; border-radius: 12px; }
.lieu address { font-style: normal; }
.lieu .telephone { font-family: var(--f-titre); font-size: 1.3rem; color: var(--ivoire); letter-spacing: var(--titre-interlettrage); width: max-content; }
.horaires { margin: 6px 0 2px; font-size: 14px; line-height: 1.6; }
.horaires strong { display: block; color: var(--ivoire); font-weight: 500; margin-bottom: 4px; }
.formulaire { color-scheme: light; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--rayon) + 8px); background: var(--lin); color: var(--encre-douce); }
.formulaire h2 { color: var(--encre); margin-bottom: 22px; font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.formulaire form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.champ { display: grid; gap: 8px; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 15px; font-weight: 500; color: var(--encre); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--rayon-champ);
  background: #faf7f3; color: var(--encre); border: 1px solid #d6cdc1; font: inherit; font-size: 16px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.champ select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.champ textarea { min-height: 116px; resize: vertical; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: #b9ad9f; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(34, 29, 25, .12); }
.formulaire__envoi { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; margin-top: 4px; }
.formulaire__mention { font-size: 14px; color: var(--encre-douce); }
.formulaire__statut { font-size: 15px; font-weight: 500; }
.formulaire__statut[data-etat="sent"] { color: #2f6b2a; }
.formulaire__statut[data-etat="error"] { color: #a12a1e; }
@media (max-width: 960px) { .contact-grille { grid-template-columns: 1fr; } .lieux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lieux { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .formulaire form { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 0; max-width: 900px; }
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none;
  padding: 26px 0; font-family: var(--f-titre); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.3; color: var(--ivoire);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--trait); display: grid; place-items: center; font-family: var(--f-texte); font-size: 20px; color: var(--ivoire); transition: transform .5s var(--douce), border-color .5s var(--douce); }
.faq details[open] summary .plus { transform: rotate(45deg); border-color: var(--rouge); }
.faq details p { padding: 0 0 28px; max-width: 70ch; }

/* ---------- Mentions légales ---------- */
.legal { display: grid; gap: clamp(48px, 6vw, 80px); }
.legal > section { max-width: 920px; }
.legal section { display: grid; gap: 16px; }
.legal h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.legal dl { display: grid; grid-template-columns: minmax(160px, .5fr) minmax(0, 1fr); gap: 0; margin: 8px 0 0; border-top: 1px solid var(--trait); }
.legal dl > div { display: contents; }
.legal dt, .legal dd { padding: 14px 0; border-bottom: 1px solid var(--trait); margin: 0; }
.legal dt { color: var(--discret); font-size: 15px; padding-right: 16px; }
.legal dd { color: var(--ivoire); }
.legal a { color: var(--ivoire); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Inserts : la cheminée sur mesure ---------- */
.sur-mesure { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.sur-mesure__photo { aspect-ratio: 4 / 5; }
.sur-mesure__texte { display: grid; gap: 20px; justify-items: start; }
.sur-mesure__texte h3 { margin-top: 16px; }
@media (max-width: 860px) { .sur-mesure { grid-template-columns: 1fr; } .sur-mesure__photo { aspect-ratio: 4 / 3.4; } }

/* ---------- Actualités : compléments ---------- */
.une__titre, .breve__titre { font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); color: var(--ivoire); line-height: 1.12; }
.une__titre { font-size: clamp(2rem, 3.4vw, 3rem); }
.breve__titre { font-size: clamp(1.375rem, 1.9vw, 1.75rem); }
.une:hover .une__titre, .breve:hover .breve__titre { color: #fff; }
.intertitre { font-family: var(--f-titre); font-size: 1.375rem; color: var(--ivoire); margin-top: 1.4em !important; }
.article__corps p + p { margin-top: 1em; }
.article__actions { margin-top: 36px; }
.une__note, .article__note { font-size: 13px; line-height: 1.6; color: var(--discret); }
.article__prix { font-family: var(--f-titre); font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.1; color: var(--ivoire); }
.article__prix span { color: var(--rouge); }
.lien-texte { color: var(--ivoire); text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 4px; }
.lien-texte:hover { text-decoration-color: currentColor; }
.logo-encart--sombre { background: var(--nuit-2); border: 1px solid var(--trait); }
.galerie--une { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Contact et mentions : compléments ---------- */
.lieu__nom { font-family: var(--f-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-interlettrage); font-size: 1.3rem; line-height: 1.15; color: var(--ivoire); }
.legal__fort { color: var(--ivoire); font-weight: 500; }
.legal__date { font-size: 14px; color: var(--discret); margin-top: 1.5em !important; }

/* ---------- Poêle en 3D (page Poêles) ---------- */
/* Le poêle flotte sur la page, sans cadre : tout ce qui l'entoure se fond dans le fond du site */
.poele-3d { overflow-x: hidden; overflow-x: clip; } /* le halo du schéma déborde de la 3D sans élargir la page */
.poele-3d__cadre { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.poele-3d__scene {
  position: relative; aspect-ratio: 4 / 3.5;
  background: radial-gradient(ellipse 40% 46% at 50% 58%, rgba(150, 70, 20, .16), transparent 72%); /* lueur du feu, sans bord */
}
/* Vue schéma : le plan bleu quadrillé de la vidéo de la prise d'air, qui s'efface vers les bords */
.poele-3d__scene::before {
  content: ""; position: absolute; inset: -10% -14%; opacity: 0; pointer-events: none; transition: opacity .7s var(--douce);
  background:
    linear-gradient(rgba(120, 190, 255, .08) 1px, transparent 1px) 0 0 / 45px 45px,
    linear-gradient(90deg, rgba(120, 190, 255, .08) 1px, transparent 1px) 0 0 / 45px 45px,
    radial-gradient(closest-side, #0d2240 0%, #0a1a30 55%, rgba(8, 22, 41, 0) 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, rgba(0, 0, 0, .5) 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, rgba(0, 0, 0, .5) 60%, transparent 100%);
}
.poele-3d__scene.est-schema::before { opacity: 1; }
/* La 3D et son image d'attente s'effacent doucement en haut et sur les côtés : le conduit file vers le plafond */
.poele-3d__canvas, .poele-3d__accueil {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 96%, transparent), linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 96%, transparent), linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.poele-3d__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.poele-3d__canvas:active { cursor: grabbing; }
.poele-3d__canvas.est-sur-piece { cursor: pointer; }
/* L'image fixe du poêle, cadrée comme la 3D, le temps qu'elle se charge */
.poele-3d__accueil { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .6s var(--douce); }
.poele-3d__affiche { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.poele-3d__etat { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-size: 14px; color: var(--discret); }
.est-lance .poele-3d__accueil { opacity: 0; }
/* Pas de numéros sur le poêle : une seule étiquette, accrochée à la pièce choisie ou survolée */
.poele-3d__etiquettes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.etiquette-3d { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; opacity: 0; transition: opacity .3s ease; }
.etiquette-3d.est-visible { opacity: 1; }
.etiquette-3d.est-a-gauche { flex-direction: row-reverse; }
.etiquette-3d__point { flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--rouge); outline: 1px solid rgba(214, 40, 40, .45); outline-offset: 3px; }
.etiquette-3d.est-survol .etiquette-3d__point { background: var(--ivoire); outline-color: rgba(245, 240, 232, .35); }
.etiquette-3d__nom { padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ivoire); background: rgba(20, 17, 15, .88); border: 1px solid var(--trait); }
.est-schema .etiquette-3d__nom { background: rgba(6, 18, 36, .9); border-color: rgba(154, 215, 255, .35); }
.est-schema .etiquette-3d__point { background: #fff; outline-color: rgba(154, 215, 255, .5); }
/* Les commandes, sous le poêle */
.poele-3d__commandes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 6px; }
.poele-3d__vues { display: flex; padding: 3px; border-radius: 999px; background: var(--nuit-2); border: 1px solid var(--trait); }
.poele-3d__modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.poele-3d__vues[hidden], .poele-3d__modes[hidden] { display: flex; visibility: hidden; } /* la place reste réservée : rien ne saute */
.poele-3d__vues button {
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--texte); transition: background-color .3s ease, color .3s ease;
}
.poele-3d__vues button:hover { color: var(--ivoire); }
.poele-3d__vues button[aria-pressed="true"] { background: var(--ivoire); color: var(--encre); }
.poele-3d__modes button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500;
  background: none; border: 1px solid var(--trait); color: var(--texte); transition: border-color .3s ease, color .3s ease;
}
.poele-3d__modes button:hover, .poele-3d__modes button[aria-pressed="true"] { border-color: var(--ivoire); color: var(--ivoire); }
.poele-3d__modele { font-size: 15px; padding-left: 14px; border-left: 2px solid var(--rouge); }
.poele-3d__modele strong { color: var(--ivoire); font-weight: 500; }
.poele-3d__liste { counter-reset: none; }
.poele-3d__liste li { border-top: 1px solid var(--trait); }
.poele-3d__liste button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--ivoire); font-family: var(--f-titre); font-size: 1.1875rem; letter-spacing: var(--titre-interlettrage);
}
.poele-3d__num { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--trait); display: grid; place-items: center; font-family: var(--f-texte); font-size: 13px; letter-spacing: 0; transition: background-color .3s ease, border-color .3s ease; }
.poele-3d__liste button:hover .poele-3d__num, .poele-3d__liste .est-choisi .poele-3d__num { background: var(--rouge); border-color: var(--rouge); }
.poele-3d__liste li p { display: none; padding: 0 0 14px 40px; font-size: 15px; line-height: 1.6; }
.poele-3d__liste li.est-choisi p { display: block; }
.poele-3d__mesures { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--trait); font-size: 14px; color: var(--discret); }
@media (max-width: 960px) {
  .poele-3d__cadre { grid-template-columns: 1fr; }
  .poele-3d__scene { aspect-ratio: 1 / 1.08; }
}
@media (max-width: 560px) {
  .poele-3d__scene { aspect-ratio: 1 / 1.2; }
  .poele-3d__commandes { gap: 8px; }
  .poele-3d__modes { gap: 6px; }
  .poele-3d__modes button { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .poele-3d__vues button { min-height: 32px; padding: 0 14px; font-size: 13px; }
  .etiquette-3d__nom { font-size: 13px; padding: 5px 11px; }
}

/* ---------- Bandeau cookies ---------- */
.consentement {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px;
  display: grid; gap: 18px; padding: 22px 24px; border-radius: var(--rayon);
  background: rgba(28, 24, 21, .96); border: 1px solid var(--trait); color: var(--texte); font-size: 14px; line-height: 1.6;
  transform: translateY(calc(100% + 32px)); transition: transform .7s var(--douce);
}
.consentement.est-visible { transform: none; }
.consentement a { color: var(--ivoire); text-decoration: underline; text-underline-offset: 3px; }
.consentement__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Apparitions (préparées par main.js, jamais sans JavaScript) ---------- */
.js [data-apparait] { opacity: 0; transform: translateY(16px); }
.js .ouverture__texte > * { opacity: 0; }

/* ---------- Réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-apparait], .js .ouverture__texte > * { opacity: 1; transform: none; }
  .fil span { transform: scaleY(1); }
}

/* Titres des textes conseils, plus mesurés sur les pages de consultation */
.conseils__titre h2 { font-size: clamp(2rem, 3.4vw, 3rem); }

@media (max-width: 560px) { .breve { grid-template-columns: 1fr; } .breve .cadre { grid-row: auto; } .breve > :not(.cadre) { grid-column: 1; } }
