/* Mise en page : bandes pleine largeur, contenu centré sur 1160px, alternance blanc / bleu acier / bleu nuit */
:root {
  --navy: #0f3d6e;
  --navy-deep: #0a2a4c;
  --blue: #1d64b3;
  --sky: #a9c8ea;
  --mist: #eef3f9;
  --line: #d6e0eb;
  --ink: #14202e;
  --ink-soft: #3d4c5d;
  --white: #ffffff;
  --on-navy: #dce8f5;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 { text-wrap: balance; line-height: 1.1; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy); }
h3 { font-size: 1.25rem; color: var(--navy); }
p { margin: 0; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.band { padding-block: clamp(56px, 8vw, 88px); }
.band--mist { background: var(--mist); border-block: 1px solid var(--line); }
.band--navy { background: var(--navy); color: var(--white); }
.band--navy h2, .band--navy h3 { color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.band--navy .lead, .band--navy p { color: var(--on-navy); }
.eyebrow { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 70ch; }

/* En-tête */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 20; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3.4vw, 1.5rem); letter-spacing: 0.02em; line-height: 1; display: block; }
.brand-sub { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em; display: block; margin-top: 3px; }
.nav-toggle {
  display: none; background: var(--white); border: 1px solid var(--line); color: var(--navy);
  font: inherit; font-weight: 700; min-height: 44px; padding: 0 14px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; display: inline-block; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); }
.site-nav a.btn { color: var(--white); padding: 11px 18px; box-shadow: none; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { width: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 13px 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav a.btn { text-align: center; margin-top: 12px; }
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 2px solid var(--navy); background: var(--navy); color: var(--white); cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.hero .eyebrow { color: var(--sky); }
.hero p { color: var(--on-navy); font-size: 1.15rem; max-width: 54ch; }
.hero-photo { border: 6px solid var(--white); aspect-ratio: 4 / 3; width: 100%; max-width: 100%; object-fit: cover; }
.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(44px, 6vw, 64px); }
.page-hero .eyebrow { color: var(--sky); }
.page-hero p { color: var(--on-navy); font-size: 1.15rem; max-width: 62ch; }
.breadcrumb { font-size: 0.9rem; color: var(--sky); }
.breadcrumb a { color: var(--sky); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Bandeau engagements */
.promises { background: var(--mist); border-bottom: 1px solid var(--line); }
.promises ul { list-style: none; margin: 0; padding-block: 18px; display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: space-between; font-weight: 700; color: var(--navy); }
.promises li { display: flex; align-items: center; gap: 10px; }
.check { flex: none; }

/* Grilles */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tile { border: 1px solid var(--line); background: var(--white); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tile p { color: var(--ink-soft); }
a.tile { text-decoration: none; color: var(--ink); }
a.tile:hover { border-color: var(--blue); }
.tile .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--blue); }

/* Coupe de panneau : petit schéma tôle / isolant / tôle */
.panel-icon { width: 46px; height: 46px; flex: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

.list-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-check li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.list-check svg { margin-top: 4px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--white); padding: 9px 16px; font-weight: 600; color: var(--navy); }

/* Note de périmètre */
.scope { border: 2px solid var(--navy); background: var(--white); padding: 24px 26px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; align-items: start; }
.scope p { color: var(--ink-soft); }
.scope strong { color: var(--navy); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.steps li { border-top: 3px solid var(--sky); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--sky); }

/* Photos */
figure { margin: 0; }
.photo { display: flex; flex-direction: column; gap: 10px; }
.photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.photo figcaption { font-size: 0.95rem; color: var(--ink-soft); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--navy); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 70ch; }

/* Appel à l'action */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta p { max-width: 56ch; }

/* Formulaire */
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 4vw, 34px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .form .consent, .form .btn, .form-status { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #8fa3b8; padding: 11px 12px; min-height: 46px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.95rem; color: var(--ink-soft); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; }
.hp { position: absolute; left: -9999px; }
.form-status { background: var(--mist); border: 1px solid var(--line); padding: 14px 16px; color: var(--navy); font-weight: 600; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list dt { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; color: var(--navy); }

/* Texte légal */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: 1.7rem; margin-top: 22px; }
.legal p, .legal li { color: var(--ink-soft); }

/* Pied de page */
.site-footer { background: var(--navy-deep); color: #c9d8e8; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-block: 48px 32px; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #c9d8e8; }
.site-footer a:hover { color: var(--white); }
.footer-base { border-top: 1px solid rgba(255,255,255,0.15); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
