/* isolation-brest.fr - design system "rade"
   Ardoise + laiton. Bandes horizontales pleine largeur, typo display serif.
   Aucune dependance JS pour la mise en page. */

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-400.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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-normal-400.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: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-normal-400-700.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;
}

:root {
  --ardoise-950: #0d1418;
  --ardoise-900: #131e24;
  --ardoise-800: #1c2b33;
  --ardoise-600: #3d5561;
  --ardoise-400: #6f8b98;
  --ardoise-200: #c3d2d9;
  --ardoise-100: #e2eaee;
  --ardoise-50:  #f2f6f8;
  --laiton:      #b8873b;
  --laiton-clair:#d9a856;
  --laiton-pale: #f6ecd9;
  --rouille:     #9c4a2f;
  --vert:        #2f6b4f;
  --blanc:       #ffffff;

  --fond:        var(--ardoise-50);
  --fond-carte:  var(--blanc);
  --fond-creux:  var(--ardoise-100);
  --texte:       var(--ardoise-950);
  --texte-doux:  var(--ardoise-600);
  --bordure:     #d3e0e6;
  --accent:      var(--laiton);
  --accent-texte:#7d5a20;

  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --corps: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --ombre: 0 1px 2px rgba(13, 20, 24, .06), 0 8px 24px -12px rgba(13, 20, 24, .18);
  --ombre-forte: 0 2px 4px rgba(13, 20, 24, .08), 0 24px 48px -20px rgba(13, 20, 24, .28);
  --largeur: 1180px;
  --gouttiere: clamp(1.15rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond:       var(--ardoise-950);
    --fond-carte: var(--ardoise-900);
    --fond-creux: var(--ardoise-800);
    --texte:      #eef4f7;
    --texte-doux: #9db1bc;
    --bordure:    #27383f;
    --accent:     var(--laiton-clair);
    --accent-texte: var(--laiton-clair);
    --laiton-pale: #241c0e;
    --blanc:      var(--ardoise-900);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-texte); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.14; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 600; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5.6vw, 4rem); letter-spacing: -.02em; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.14rem, 1.8vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }
strong { font-weight: 600; }

.wrap { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.wrap-etroit { max-width: 760px; margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------- Barre d'annonce ---------- */
.bandeau {
  background: var(--ardoise-950);
  color: var(--ardoise-200);
  font-size: .84rem;
  letter-spacing: .01em;
}
.bandeau .wrap { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding-block: .55rem; flex-wrap: wrap; }
.bandeau strong { color: var(--laiton-clair); font-weight: 600; }

/* ---------- En-tete ---------- */
.entete {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--bordure);
}
.entete .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .85rem; }

.logo { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--texte); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.logo em { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); font-size: 1.2em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--texte-doux); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--texte); }
.nav-tel {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ardoise-950); color: #fff !important;
  padding: .6rem 1.05rem; border-radius: 100px; font-weight: 600; font-size: .95rem;
}
.nav-tel:hover { background: var(--laiton); }

.burger { display: none; background: none; border: 1px solid var(--bordure); border-radius: var(--r-s); padding: .5rem .6rem; cursor: pointer; color: var(--texte); }

@media (max-width: 900px) {
  .burger { display: block; margin-left: auto; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fond-carte); border-bottom: 1px solid var(--bordure);
    padding: .5rem var(--gouttiere) 1.1rem;
    display: none;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--bordure); }
  .nav-tel { justify-content: center; margin-top: .9rem; border-bottom: 0 !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ardoise-950); color: #eef4f7; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 78% 12%, rgba(184,135,59,.30), transparent 62%),
    radial-gradient(52% 70% at 8% 92%, rgba(61,85,97,.55), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.2rem, 8vw, 5.6rem); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--laiton-clair); }
.hero-chapo { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: #c3d2d9; max-width: 34em; }

.hero-preuves { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.hero-preuves li { display: flex; gap: .7rem; align-items: flex-start; color: #dce6ea; font-size: .98rem; }
.hero-preuves li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; margin-top: .55em; border-radius: 50%; background: var(--laiton-clair); }

.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-stats div { border-left: 2px solid rgba(184,135,59,.55); padding-left: .9rem; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; color: #fff; line-height: 1; }
.hero-stats span { font-size: .82rem; color: #93a9b4; letter-spacing: .02em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--corps); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-or { background: var(--laiton); color: #1a1206; }
.btn-or:hover { background: var(--laiton-clair); }
.btn-clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-clair:hover { border-color: var(--laiton-clair); color: var(--laiton-clair); }
.btn-sombre { background: var(--ardoise-950); color: #fff; }
.btn-sombre:hover { background: var(--ardoise-800); }
.btn-bloc { width: 100%; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5rem); }
.sec-creuse { background: var(--fond-creux); }
.sec-noire { background: var(--ardoise-950); color: #dce6ea; }
.sec-noire h2, .sec-noire h3 { color: #fff; }
.sec-noire a { color: var(--laiton-clair); }

.titre-oeil { font-family: var(--corps); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-texte); margin: 0 0 .8rem; }
.sec-noire .titre-oeil { color: var(--laiton-clair); }
.intro-sec { max-width: 62ch; color: var(--texte-doux); font-size: 1.08rem; }
.sec-noire .intro-sec { color: #a8bcc5; }

/* ---------- Grilles ---------- */
.grille { display: grid; gap: 1.15rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.carte {
  background: var(--fond-carte); border: 1px solid var(--bordure);
  border-radius: var(--r-l); padding: 1.6rem; box-shadow: var(--ombre);
}
.carte h3 { margin-bottom: .5rem; }
.carte p:last-child { margin-bottom: 0; }
.carte-num { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--accent); display: block; margin-bottom: .5rem; }

.carte-lien { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s ease, border-color .15s ease; }
.carte-lien:hover { border-color: var(--accent); box-shadow: var(--ombre-forte); }
.carte-lien .fleche { color: var(--accent-texte); font-weight: 600; font-size: .93rem; display: inline-flex; gap: .35rem; align-items: center; margin-top: .8rem; }

/* ---------- Tableau prix ---------- */
.tableau-enveloppe { overflow-x: auto; border: 1px solid var(--bordure); border-radius: var(--r-m); background: var(--fond-carte); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 520px; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--bordure); }
thead th { background: var(--fond-creux); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--accent-texte); }
.note-tab { font-size: .85rem; color: var(--texte-doux); margin-top: .8rem; }

/* ---------- Prose editoriale ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.8em 0; padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--accent); background: var(--laiton-pale);
  border-radius: 0 var(--r-m) var(--r-m) 0; font-size: 1.02rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .87rem; color: var(--texte-doux); margin-top: .5rem; }

.encadre {
  border: 1px solid var(--bordure); border-left: 3px solid var(--accent);
  background: var(--fond-carte); border-radius: 0 var(--r-m) var(--r-m) 0;
  padding: 1.2rem 1.4rem; margin: 1.8em 0;
}
.encadre h4 { margin-bottom: .4rem; }
.encadre p:last-child { margin-bottom: 0; }

/* ---------- Fil d'Ariane ---------- */
.ariane { font-size: .87rem; color: var(--texte-doux); padding-block: 1rem 0; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.ariane li::after { content: '/'; margin-left: .45rem; color: var(--ardoise-400); }
.ariane li:last-child::after { content: ''; }
.ariane a { color: var(--texte-doux); }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--bordure); padding: 1.05rem 0;
}
.faq details[open] summary { color: var(--accent-texte); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--accent); flex: 0 0 auto; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > *:not(summary) { margin-top: .85rem; color: var(--texte-doux); }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- Communes ---------- */
.communes { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.communes a {
  display: inline-block; text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .5rem .95rem; border-radius: 100px;
  border: 1px solid var(--bordure); background: var(--fond-carte); color: var(--texte);
}
.communes a:hover { border-color: var(--accent); color: var(--accent-texte); }
.communes .cp { color: var(--texte-doux); font-size: .85em; font-variant-numeric: tabular-nums; }

/* ---------- Formulaire devis ---------- */
.devis { scroll-margin-top: 90px; }
.devis-boite {
  background: var(--fond-carte); border: 1px solid var(--bordure);
  border-radius: var(--r-l); box-shadow: var(--ombre-forte); overflow: hidden;
}
.devis-tete { background: var(--ardoise-950); color: #fff; padding: 1.5rem 1.7rem; }
.devis-tete h2, .devis-tete h3 { color: #fff; margin-bottom: .3rem; }
.devis-tete p { color: #a8bcc5; margin: 0; font-size: .95rem; }
form.devis-form { padding: 1.7rem; display: grid; gap: 1rem; }

.champ { display: grid; gap: .35rem; }
.champ label { font-size: .86rem; font-weight: 600; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1rem; color: var(--texte);
  background: var(--fond); border: 1px solid var(--bordure); border-radius: var(--r-s);
  padding: .75rem .9rem; width: 100%;
}
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consentement {
  border: 1px solid var(--bordure); border-radius: var(--r-m);
  background: var(--fond-creux); padding: 1rem 1.1rem;
}
.consentement label { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.consentement input[type=checkbox] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--laiton); }
.mention-legale { font-size: .8rem; color: var(--texte-doux); margin: .8rem 0 0; line-height: 1.5; }
.mention-legale a { color: var(--accent-texte); }

.devis-message { font-size: .95rem; padding: .85rem 1rem; border-radius: var(--r-s); display: none; }
.devis-message.ok { display: block; background: #e7f4ec; color: #1c5237; border: 1px solid #b6ddc6; }
.devis-message.ko { display: block; background: #fdecea; color: #8c2c1c; border: 1px solid #f0c2ba; }
@media (prefers-color-scheme: dark) {
  .devis-message.ok { background: #10291d; color: #8fd8ae; border-color: #1f4a34; }
  .devis-message.ko { background: #2c1512; color: #f0a898; border-color: #56241c; }
}

.rassurance { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .84rem; color: var(--texte-doux); margin: 0; padding: 0; list-style: none; }
.rassurance li { display: flex; gap: .4rem; align-items: center; }

/* ---------- Bloc devis en 2 colonnes ---------- */
.devis-duo { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
@media (max-width: 940px) { .devis-duo { grid-template-columns: 1fr; } }

/* ---------- Pied ---------- */
.pied { background: var(--ardoise-950); color: #93a9b4; padding-block: 3.2rem 2rem; font-size: .93rem; }
.pied a { color: #c3d2d9; text-decoration: none; }
.pied a:hover { color: var(--laiton-clair); text-decoration: underline; }
.pied h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied-grille { grid-template-columns: 1fr; } }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied-bas { border-top: 1px solid #22333a; margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .84rem; }

/* ---------- Barre mobile collante ---------- */
.barre-mobile { display: none; }
@media (max-width: 700px) {
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; inset: auto 0 0 0; z-index: 50;
    padding: .7rem var(--gouttiere) calc(.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--fond) 92%, transparent);
    backdrop-filter: blur(12px); border-top: 1px solid var(--bordure);
  }
  .barre-mobile .btn { padding: .8rem 1rem; font-size: .95rem; }
  body { padding-bottom: 4.6rem; }
}

.saut-contenu { position: absolute; left: -9999px; }
.saut-contenu:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--blanc); color: var(--texte); padding: .7rem 1rem; border-radius: var(--r-s); }

/* ---------- Hero compact (pages villes et guides) ---------- */
.hero-compact { background: var(--ardoise-950); color: #eef4f7; position: relative; overflow: hidden; }
.hero-compact::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 88% 0%, rgba(184,135,59,.24), transparent 60%);
  pointer-events: none;
}
.hero-compact .wrap { position: relative; z-index: 1; padding-block: clamp(2.2rem, 5vw, 3.4rem) clamp(2.4rem, 5vw, 3.6rem); }
.hero-compact h1 { color: #fff; max-width: 20ch; }
.hero-compact .hero-chapo { color: #c3d2d9; }
.hero-compact .ariane { color: #7f97a3; padding-top: 0; padding-bottom: 1.4rem; }
.hero-compact .ariane a { color: #a8bcc5; }
.hero-compact .ariane li::after { color: #56707d; }
.fiche-cles { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.8rem; }
.fiche-cles div { border-left: 2px solid rgba(184,135,59,.55); padding-left: .9rem; }
.fiche-cles b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.fiche-cles span { font-size: .8rem; color: #93a9b4; letter-spacing: .02em; text-transform: uppercase; }

/* ---------- Bloc editeur revele au scroll ---------- */
/* Sans JS, la classe js-reveal n'est jamais posee : le bloc reste visible (conformite). */
.bloc-editeur { transition: opacity .55s ease, transform .55s ease; }
.js-reveal .bloc-editeur { opacity: 0; transform: translateY(16px); }
.js-reveal .bloc-editeur.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bloc-editeur { transition: none; }
  .js-reveal .bloc-editeur { transform: none; }
}
.fiche-editeur {
  margin: 0 0 1.2rem; display: grid; gap: 0;
  border: 1px solid var(--bordure); border-radius: var(--r-m);
  background: var(--fond-carte); overflow: hidden;
}
.fiche-editeur > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--bordure); }
.fiche-editeur > div:last-child { border-bottom: 0; }
.fiche-editeur dt { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); font-weight: 600; align-self: center; }
.fiche-editeur dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .fiche-editeur > div { grid-template-columns: 1fr; gap: .2rem; } }
.note-editeur { font-size: .9rem; color: var(--texte-doux); }

/* ---------- Correctif lisibilite ---------- */
/* La boite de devis est une carte claire posee sur une section sombre : sans couleur
   explicite, son contenu heritait la couleur de texte de la section et devenait
   illisible (le libelle de consentement notamment). */
.devis-boite { color: var(--texte); }
.consentement label { color: var(--texte); }
.consentement label span { color: var(--texte); }

/* ---------- Images editoriales ---------- */
.prose figure { margin: 2rem 0; }
.prose figure img,
.prose img { width: 100%; height: auto; border-radius: var(--r-m); border: 1px solid var(--bordure); }
