/* Site vitrine de Firegrow : une flamme qui fait grandir l'entreprise.
   Un noir chaud de braise éteinte, une lueur de feu qui monte du bas, des braises qui s'élèvent, et le plan de chantier en filigrane.
   Sombre et chaleureux ; une seule section claire, couleur papier chaud, là où Étienne parle de lui. La vedette reste le téléphone. */
:root {
  color-scheme: dark;
  --nuit: #140C08; --nuit-2: #1C110B; --verre: rgba(255, 190, 140, .055); --trait: rgba(255, 176, 120, .15); --trait-fort: rgba(255, 176, 120, .34);
  --titre: #FFF3E6; --texte: #DCC9BA; --doux: #A8917F;
  --flamme: #FF7A2F; --ambre: #FFB23E; --braise: #E0421B; --sur-flamme: #2A1206;
  --cle: var(--ambre); /* la couleur des petits repères : ambre sur fond sombre, brique sur fond clair */
  --feu: linear-gradient(100deg, var(--flamme), var(--ambre));
  --f-titre: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --max: 1160px; --gout: clamp(16px, 4vw, 40px); --sec: clamp(64px, 9vw, 124px); --rayon: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--flamme); color: var(--sur-flamme); }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--nuit); }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 1.0625rem/1.65 var(--f-texte); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--titre); text-wrap: balance; }
h1, h2 { font-family: var(--f-titre); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; }
h1 { font-size: clamp(2.1rem, 5.3vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); max-width: 20em; }
h3 { font: 700 1.14rem/1.3 var(--f-texte); }
p { margin: 0 0 1em; }
a { color: var(--cle); }
b, strong { color: var(--titre); font-weight: 600; }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }
.cadre { max-width: var(--max); margin: 0 auto; padding-inline: var(--gout); }
.evitement { position: absolute; left: 8px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ambre); color: var(--sur-flamme); font-weight: 700; text-decoration: none; border-radius: 8px; }
.evitement:focus { top: 8px; }

/* Repères de section : numérotés comme les planches d'un dossier de plans */
.repere { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 400 .78rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.repere span { color: var(--cle); font-weight: 600; }
.repere::after { content: ""; flex: 0 1 140px; border-top: 1px dashed var(--trait-fort); }
.intro { max-width: 40em; margin-top: 16px; font-size: 1.1rem; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.15em; font: 600 1rem/1.1 var(--f-texte); color: var(--titre); text-decoration: none; background: var(--verre); border: 1px solid var(--trait-fort); border-radius: 999px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease; }
.bouton:hover { border-color: var(--ambre); transform: translateY(-2px); }
.bouton--plein { background: var(--feu); border-color: transparent; color: var(--sur-flamme); font-weight: 700; box-shadow: 0 10px 30px -14px rgba(255, 122, 47, .9); }
.bouton--plein:hover { box-shadow: 0 16px 40px -12px rgba(255, 140, 50, .95); border-color: transparent; }
.bouton--grand { min-height: 54px; padding: .8em 1.5em; font-size: 1.05rem; }

/* Barre du haut */
.barre { position: sticky; top: 0; z-index: 50; background: rgba(20, 12, 8, .8); border-bottom: 1px solid var(--trait); }
@supports (backdrop-filter: blur(10px)) { .barre { backdrop-filter: blur(12px); } }
.barre__in { display: flex; align-items: center; gap: 12px 26px; padding-block: 12px; }
.marque { display: flex; align-items: center; gap: 8px; margin-right: auto; font: 700 1.05rem/1.1 var(--f-titre); letter-spacing: -.01em; color: var(--titre); text-decoration: none; min-width: 0; }
/* Le signe : une flamme (tracé Lucide « flame », licence ISC), remplie du dégradé de la marque */
.marque__signe { flex: none; width: 30px; height: 30px; background: linear-gradient(180deg, #FFD27A, var(--flamme) 55%, var(--braise));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.barre__nav { display: none; gap: 26px; }
.barre__nav a { font-size: .95rem; font-weight: 500; color: var(--texte); text-decoration: none; }
.barre__nav a:hover { color: var(--titre); }
@media (min-width: 900px) { .barre__nav { display: flex; } }
@media (max-width: 420px) { .barre__cta { padding-inline: .9em; font-size: .92rem; } }

/* Haut de page : le feu vient du bas, les braises montent, le plan reste en filigrane */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--trait); }
.hero__plan { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px circle at var(--x, 72%) var(--y, 36%), rgba(255, 150, 70, .2), transparent 62%),
    radial-gradient(1200px 560px at 50% 122%, rgba(224, 66, 27, .42), transparent 66%),
    linear-gradient(var(--trait) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--trait) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 55% 55%, #000 35%, transparent 88%); mask-image: radial-gradient(ellipse 100% 100% at 55% 55%, #000 35%, transparent 88%); }
.hero__braises { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__in { position: relative; display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 104px); }
.hero__in > * { min-width: 0; }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.1fr .9fr; } }
.lueur { background: linear-gradient(100deg, #FF6A2B 4%, var(--ambre) 58%, #FFE08A); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(255, 122, 47, .45)); }
.chapo { max-width: 34em; margin: 22px 0 26px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.essai { display: grid; gap: 14px; max-width: 560px; padding: 18px; background: var(--verre); border: 1px solid var(--trait); border-radius: var(--rayon); }
.essai__champs { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .essai__champs { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); } #e-ville-champ { grid-column: 1 / -1; } }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label, .essai__styles legend, .calcul label { font: 400 .74rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.champ input, .champ select { width: 100%; min-height: 50px; padding: 10px 14px; font: 600 1.05rem var(--f-texte); color: var(--titre); background: rgba(20, 12, 8, .72); border: 1px solid var(--trait-fort); border-radius: 12px; }
.champ input::placeholder { color: #8A7465; font-weight: 500; }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--ambre); box-shadow: 0 0 0 4px rgba(255, 178, 62, .2); }
.essai__styles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.essai__styles legend { padding: 0; margin-bottom: 8px; }
.essai__styles label { position: relative; }
.essai__styles input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.essai__styles span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px 6px 8px; font-weight: 600; font-size: .95rem; color: var(--texte); border: 1px solid var(--trait-fort); border-radius: 999px; transition: border-color .15s, color .15s, background-color .15s; }
.essai__styles i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 1px solid rgba(255, 255, 255, .25); }
.essai__styles input:checked + span { border-color: var(--ambre); color: var(--titre); background: rgba(255, 178, 62, .13); }
.essai__styles input:focus-visible + span { outline: 2px solid var(--ambre); outline-offset: 3px; }
.essai__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.essai__actions .bouton { flex: 1 1 190px; }
.essai__note { margin: 0; font-size: .86rem; color: var(--doux); }

.hero__ecran { display: grid; place-items: center; perspective: 1400px; }
.telephone { position: relative; width: min(302px, 78vw); aspect-ratio: 302 / 620; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #5A3A26, #1C100A 45%, #4A2C1B); box-shadow: 0 0 0 1px var(--trait-fort), 0 50px 90px -40px rgba(0, 0, 0, .9), 0 30px 130px -30px rgba(255, 110, 40, .6); transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.telephone__verre { width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: #1D1E20; }
.telephone iframe { display: block; width: 390px; height: calc(100% / var(--z, .728)); border: 0; transform: scale(var(--z, .728)); transform-origin: 0 0; background: #1D1E20; }
.telephone__cote { position: absolute; right: -34px; top: 8%; bottom: 8%; border-right: 1px solid var(--ambre); }
.telephone__cote::before, .telephone__cote::after { content: ""; position: absolute; right: -6px; width: 12px; border-top: 1px solid var(--ambre); }
.telephone__cote::before { top: 0; }
.telephone__cote::after { bottom: 0; }
.telephone__cote span { position: absolute; top: 50%; right: 0; padding: 2px 10px; background: var(--nuit); font: 400 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ambre); white-space: nowrap; transform: translate(50%, -50%) rotate(90deg); }
@media (max-width: 520px) { .telephone__cote { display: none; } .telephone { transform: none; } }

/* Sections */
.section { padding-block: var(--sec); }
.section--verre { background: var(--nuit-2); border-block: 1px solid var(--trait); }
/* La section claire : un papier chaud, comme un mot écrit à la main au coin du feu */
.section--claire { --titre: #2A1509; --texte: #5B4435; --doux: #86695A; --cle: #B8400E; --trait-fort: rgba(110, 60, 25, .4); color: var(--texte); background: radial-gradient(640px circle at 100% 0%, #FFD7A6, transparent 62%), radial-gradient(520px circle at 0% 100%, #FFE2BF, transparent 60%), #FFF1E0; }
.etapes { display: grid; gap: 18px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.etapes li { position: relative; padding: 26px 22px 20px; background: var(--verre); border: 1px solid var(--trait); border-radius: var(--rayon); min-width: 0; }
.etapes__num { display: block; margin-bottom: 14px; font: 800 2.6rem/1 var(--f-titre); color: transparent; -webkit-text-stroke: 1.5px var(--ambre); }
.etapes p { margin: 8px 0 0; }
.atouts { display: grid; gap: 1px; margin: 40px 0 0; padding: 0; list-style: none; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
@media (min-width: 700px) { .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .atouts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.atouts li { position: relative; padding: 26px 24px; background: var(--nuit-2); min-width: 0; transition: background-color .2s; }
.atouts li:hover { background: #26170E; }
.atouts li::before { content: ""; position: absolute; left: 12px; top: 12px; width: 10px; height: 10px; border-left: 1px solid var(--ambre); border-top: 1px solid var(--ambre); }
.atouts p { margin: 8px 0 0; font-size: 1rem; }

.styles { display: grid; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.styles a { display: grid; gap: 14px; padding: 14px; color: var(--texte); text-decoration: none; background: var(--verre); border: 1px solid var(--trait); border-radius: var(--rayon); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.styles a:hover { transform: translateY(-6px); border-color: var(--ambre); box-shadow: 0 30px 60px -36px rgba(255, 122, 47, .8); }
.styles img { width: 100%; aspect-ratio: 375 / 520; object-fit: cover; object-position: top; border-radius: 10px; }
.styles span { display: grid; gap: 2px; font-size: .96rem; }
.styles b { font: 700 1.05rem/1.2 var(--f-titre); }

.prix { display: grid; gap: 36px; align-items: center; }
.prix > * { min-width: 0; }
@media (min-width: 940px) { .prix { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.calcul { display: grid; gap: 12px; margin-top: 30px; padding: 20px; background: var(--verre); border: 1px solid var(--trait); border-radius: var(--rayon); }
.calcul output { color: var(--ambre); font-weight: 600; }
.calcul input[type="range"] { width: 100%; accent-color: var(--flamme); height: 28px; }
.calcul p { margin: 0; font-size: 1.12rem; color: var(--titre); }
.tarif { position: relative; padding: 30px 26px; background: linear-gradient(165deg, rgba(255, 122, 47, .2), rgba(255, 178, 62, .05) 62%), var(--nuit); border: 1px solid rgba(255, 178, 62, .5); border-radius: 24px; box-shadow: 0 40px 90px -50px rgba(255, 110, 40, .8); }
.tarif__prix { margin: 0; font: 800 clamp(3rem, 8vw, 4.4rem)/1 var(--f-titre); color: var(--titre); font-variant-numeric: tabular-nums; }
.tarif__prix small { display: block; margin-top: 8px; font: 400 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ambre); }
.tarif__an { margin: 14px 0 18px; }
.tarif ul { display: grid; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--titre); }
.tarif li { position: relative; padding-left: 26px; }
.tarif li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 12px; height: 7px; border-left: 2px solid var(--ambre); border-bottom: 2px solid var(--ambre); transform: rotate(-45deg); }
.tarif__ancre { font-size: .92rem; color: var(--doux); }
.tarif .bouton { width: 100%; }

.qui { max-width: 820px; }
.qui h2 { margin-bottom: 20px; }
.qui p:not(.repere) { font-size: 1.15rem; }
.questions { display: grid; gap: 30px; }
.questions > * { min-width: 0; }
@media (min-width: 940px) { .questions { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.questions details { border-top: 1px solid var(--trait-fort); }
.questions details:last-child { border-bottom: 1px solid var(--trait-fort); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.06rem; color: var(--titre); list-style: none; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--f-mono); color: var(--ambre); transition: transform .2s ease; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { max-width: 44em; margin: 0 0 18px; }

.contact { position: relative; text-align: center; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(820px 520px at 50% 128%, rgba(255, 122, 47, .5), rgba(224, 66, 27, .16) 45%, transparent 68%); }
.contact__in { position: relative; display: grid; justify-items: center; }
.contact .repere::before { content: ""; flex: 0 1 140px; border-top: 1px dashed var(--trait-fort); }
.contact h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.contact__num { margin: 20px 0 0; font: 600 clamp(1.4rem, 4vw, 2rem)/1.2 var(--f-mono); color: var(--titre); letter-spacing: .04em; user-select: all; }

.pied { padding-block: 30px 44px; border-top: 1px solid var(--trait); font-size: .9rem; color: var(--doux); }
.pied__in { display: grid; gap: 10px; }
.pied p { margin: 0; }
.mentions summary { cursor: pointer; color: var(--texte); }
.mentions div { margin-top: 10px; max-width: 60em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .telephone { transform: none; }
}
