/* Espace Combles · LP aménagement de combles (structure 1, V2) */

/* Polices. Les fichiers Gilroy et Circular seront fournis par le client :
   une fois déposés dans assets/fonts/, ajouter leur url() en première source
   de chaque bloc, par exemple
   src: url("../assets/fonts/gilroy-bold.woff2") format("woff2"), url("../assets/fonts/fallback/outfit-latin-700-normal.woff2") format("woff2");
   Tant qu'ils sont absents, la première source ferait une requête 404 à chaque visite. */
@font-face {
  font-family: "EC Titres";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/fallback/outfit-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EC Texte";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/fallback/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EC Texte";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/fallback/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EC Texte";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/fallback/dm-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --cyan: #01A4CD;
  --cta: #0180A0;
  --cta-hover: #016A85;
  --title: #5A5A5A;
  --text: #666666;
  --input: #333333;
  --border: #CCCCCC;
  --hairline: #DDDDDD;
  --error: #C62828;
  --required: #FF0000;
  --bg-tint: #EBF8FB;
  --bg-grey: #F4F4F4;
  --bg-deep: #015F78;
  --bg-dark: #222222;
  --timeline: #B3E2EE;
  --focus: #101010;
  --white: #FFFFFF;

  --font-title: "EC Titres", "EC Texte", system-ui, sans-serif;
  --font-text: "EC Texte", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 3px 10px rgba(0, 0, 0, .1);
  --radius-field: 2px;
  --radius-btn: 3px;
  --radius-card: 5px;

  --container: 1248px;
  --gutter: 24px;
  --section-y: 96px;
  --header-top: 20px;
  --header-h: 80px;
  --sticky-h: 68px;
}

@media (max-width: 719.98px) {
  :root {
    --gutter: 16px;
    --section-y: 64px;
    --header-top: 12px;
    --header-h: 60px;
  }
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: var(--cta); }
a:hover { color: var(--cta-hover); }

button,
input,
select { font: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.on-dark :focus-visible { outline-color: var(--white); }

[tabindex="-1"]:focus { outline: none; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Mise en page */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); }
.section--grey { background: var(--bg-grey); }
.section--dark { background: var(--bg-dark); }
.section--deep { background: var(--bg-deep); }

/* Typographie */
.h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(31px, 3vw, 39px);
  line-height: 1.3;
  color: var(--title);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.4;
  color: var(--title);
  text-wrap: balance;
}

.h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--title);
}

.lead { font-size: 20px; line-height: 1.5; }
.small { font-size: 14px; line-height: 1.5; }

/* Tiret signature sous les H1 et H2 */
.dash::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: var(--dash-gap, 16px);
  background: var(--cyan);
}
.dash--white::after { background: var(--white); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 10px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  background: var(--cta);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--cta-hover); color: var(--white); }
.btn[aria-disabled="true"] { cursor: progress; opacity: .75; }
.btn--header { min-height: 48px; padding: 0 20px; }

.link-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cta);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.link-btn:hover { color: var(--cta-hover); text-decoration: underline; }

/* Header flottant sur le hero */
.site-header {
  position: absolute;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 10;
}

.site-header__bar {
  width: min(100% - 2 * var(--gutter), var(--container));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  border-radius: var(--radius-btn);
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-header__logo {
  flex: 0 1 219px;
  width: 219px;
  min-width: 120px;
}

.site-header__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__phone-label { font-size: 14px; color: var(--text); }
.site-header__phone-number { font-size: 20px; font-weight: 700; color: var(--cta); }
.site-header__phone:hover .site-header__phone-number { color: var(--cta-hover); }

@media (max-width: 959.98px) {
  .site-header__bar { padding-inline: 20px; gap: 16px 20px; }
  .site-header__actions { gap: 20px; }
}

@media (max-width: 719.98px) {
  .site-header__bar { padding: 6px 10px 6px 12px; gap: 8px; }
  .site-header__logo { flex-basis: 150px; width: 150px; min-width: 0; }
  .site-header__phone { display: none; }
  .btn--header { min-height: 48px; padding: 0 14px; white-space: nowrap; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--white);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 55% 50%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .1) 100%);
}

.hero__inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: calc(var(--header-top) + var(--header-h) + 72px) 0 128px;
}

.hero__content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 16px;
  font-weight: 500;
}

.rating__stars { display: inline-flex; gap: 2px; }
.star { width: 18px; height: 18px; fill: var(--cyan); }
.star--empty { fill: rgba(255, 255, 255, .3); }
.star-partial { position: relative; width: 18px; height: 18px; }
.star-partial__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 18px;
  overflow: hidden;
}
.star-partial__fill .star { max-width: none; }

.hero__title {
  --dash-gap: 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.2;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.hero__lead {
  max-width: 540px;
  font-size: 20px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 8px;
}
.hero__ctas .btn { padding-inline: 28px; }

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hero__phone:hover { color: var(--white); text-decoration: underline; }

.hero__note { font-size: 14px; color: var(--white); }

.hero :focus-visible { outline-color: var(--white); }

/* Le voile de la maquette suppose une colonne de texte dans les 45 % de gauche.
   En dessous de 1440 px, le texte déborde sur la zone claire : voile renforcé
   pour garder un contraste d'au moins 4,5:1 (WCAG 1.4.3). */
@media (min-width: 720px) and (max-width: 1439.98px) {
  .hero__veil {
    background: linear-gradient(90deg, rgba(0, 0, 0, .66) 0, rgba(0, 0, 0, .6) calc(max(var(--gutter), (100% - var(--container)) / 2) + 640px), rgba(0, 0, 0, .1) 100%);
  }
}

@media (max-width: 719.98px) {
  .hero__veil { background: rgba(0, 0, 0, .6); }
  .hero__inner { padding-top: calc(var(--header-top) + var(--header-h) + 48px); }
  .hero__lead { font-size: 20px; }
}

/* Bandeau de preuves + avant/après */
.realisations {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 0;
}

.proofs {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: -64px auto 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}

.proofs__list {
  display: flex;
  flex-wrap: wrap;
  margin: -1px 0 0 -1px;
}

.proofs__item {
  flex: 1 1 240px;
  min-width: 0;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
}

.proofs__value {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 31px;
  line-height: 1.4;
  color: var(--title);
}

.ba-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px 56px;
}

.ba-block__text {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-block__text .btn { align-self: flex-start; }

/* Comparateur avant/après */
.ba {
  --pos: 50%;
  flex: 2.4 1 560px;
  min-width: 0;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--hairline);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba__label {
  position: absolute;
  top: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-btn);
  background: rgba(34, 34, 34, .85);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  pointer-events: none;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  pointer-events: none;
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}
.ba__range:focus-visible ~ .ba__handle {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Galerie de réalisations */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.gallery__list > li { flex: 1 1 220px; min-width: 0; }

.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.figure figcaption { font-size: 14px; color: var(--text); }

.figure__img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.figure__img--4x3 { aspect-ratio: 4 / 3; }
.figure__img--3x2 { aspect-ratio: 3 / 2; }

/* Vidéo */
.video-section { color: var(--white); }
.video-section .h2 { color: var(--white); --dash-gap: 20px; }

.video-section__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}

.video-section__text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.video-section__text .lead { color: rgba(255, 255, 255, .88); }

.video-section__list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.video-section__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.video-section__list strong { font-weight: 700; color: var(--white); }
.video-section__list span { color: rgba(255, 255, 255, .75); }

.video {
  flex: 1.4 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #000000;
}

.video__poster,
.video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video__player { object-fit: contain; background: #000000; }
.video__player:focus-visible { outline-offset: -3px; }

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.video__play svg { margin-left: 4px; }
.video__play:hover { transform: scale(1.06); }

.video__caption { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* Pourquoi choisir */
.pourquoi__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 64px;
}

.split__media { flex: 1.3 1 520px; min-width: 0; }

.split__text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split__text .btn { align-self: flex-start; }

.split__pair { display: flex; gap: 12px; }
.split__pair .figure { flex: 1 1 0; min-width: 0; }

.accroche {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.5;
  color: var(--text);
}

.args {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}

.args__item {
  flex: 1 1 240px;
  min-width: 0;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--hairline);
}

/* Étapes */
.etapes__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 0;
}

.timeline__item {
  flex: 1 1 200px;
  min-width: 0;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline__item--last { padding-right: 0; }

.timeline__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline__num {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--title);
}
.timeline__item--last .timeline__num {
  border-color: var(--cta);
  background: var(--cta);
  color: var(--white);
}

.timeline__line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--timeline);
}

.timeline__delay {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--cta);
  font-size: 14px;
  font-weight: 700;
}

.timeline__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--title);
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 30px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}

.callout__value {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 25px;
  color: var(--title);
}

/* Avis */
.avis__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.avis__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
}
.avis__score strong { font-weight: 700; color: var(--title); }

.avis__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.review {
  flex: 1 1 300px;
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}
.review__author { margin-top: auto; }
.review__author strong { font-weight: 700; color: var(--title); }

/* Bloc devis */
.devis { color: var(--white); }
.devis .h2 { color: var(--white); --dash-gap: 20px; }

.devis__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 56px;
}

.devis__intro {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.devis__intro .lead { color: rgba(255, 255, 255, .9); }

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.checks__icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.devis__call {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .9);
}
.devis__call a {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.devis__call a:hover { color: var(--white); text-decoration: underline; }

.devis__call a,
.site-footer__contact a { position: relative; }
.devis__call a::after,
.site-footer__contact a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  margin-top: -22px;
}

.devis__card {
  flex: 1.7 1 560px;
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text);
}
.devis__card :focus-visible { outline-color: var(--focus); }

/* Formulaire en 5 étapes */
.quiz {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz[data-step="result"] .quiz__progress { display: none; }

.quiz__progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.quiz__progress-label { font-weight: 700; color: var(--title); }

.quiz__track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--hairline);
}

.quiz__fill {
  width: 20%;
  height: 100%;
  background: var(--cyan);
  transition: width .25s ease;
}
.quiz[data-step="2"] .quiz__fill { width: 40%; }
.quiz[data-step="3"] .quiz__fill { width: 60%; }
.quiz[data-step="4"] .quiz__fill { width: 80%; }
.quiz[data-step="5"] .quiz__fill { width: 100%; }

.quiz__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz__legend {
  float: left;
  width: 100%;
  padding: 0;
}
.quiz__legend + * { clear: both; }

.quiz__question {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--title);
}

.choices--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.choices--pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choices--rows { display: flex; flex-direction: column; gap: 10px; }
.choices--slots { display: flex; flex-wrap: wrap; gap: 10px; }

.choice {
  margin: 0;
  border: 2px solid var(--hairline);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--title);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: var(--cta); }
.choice[aria-pressed="true"] {
  border-color: var(--cta);
  background: var(--bg-tint);
}
.quiz__step[aria-invalid="true"] .choice,
.field--group[aria-invalid="true"] .choice { border-color: var(--error); }

.choice--card {
  padding: 8px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--radius-card);
}

.choice__img,
.choice__unknown {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-btn);
}

.choice__unknown {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-grey);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 39px;
  color: var(--title);
}

.choice__text {
  display: flex;
  flex-direction: column;
  padding: 0 6px;
}
.choice__text strong { font-weight: 700; color: var(--title); }
.choice__text span { font-size: 14px; line-height: 1.5; color: var(--text); }

.choice--check {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.choice__box {
  flex: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--white);
}
.choice[aria-pressed="true"] .choice__box {
  border-color: var(--cta);
  background: var(--cta);
}

.choice--row {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.choice--slot {
  flex: 1 1 140px;
  min-height: 48px;
  padding: 0 16px;
  text-align: center;
}

.quiz__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quiz__nav .btn { padding-inline: 28px; }
.quiz__nav--start { justify-content: flex-start; }

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field--civ { flex-basis: 150px; }
.field--adresse { flex: 2 1 280px; }

.field label,
.field__label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--title);
}

.req { font-weight: 400; color: var(--required); }
.optional { font-weight: 400; color: var(--text); }

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--text);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--input);
  font-size: 16px;
  line-height: 1.3;
}
.field select {
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A5A5A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field input:focus,
.field select:focus { border-color: var(--input); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--error); }

.field--group { flex: none; }

.field-error {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--error);
}

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

.quiz__rgpd a,
#err-envoi a { padding-block: 12px; color: var(--cta); }

/* Écran final */
.quiz__result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
}

.result__badge {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
}

.result__text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result__callback { color: var(--title); }

.result__projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result__subtitle {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--title);
}

.result__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.result__grid .figure { gap: 8px; }

/* FAQ */
.faq__inner {
  width: min(100% - 2 * var(--gutter), 820px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--hairline);
}

.faq__item { border-top: 1px solid var(--hairline); }

.faq__item summary {
  position: relative;
  padding: 20px 0 20px 32px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--title);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--cta);
  border-bottom: 2px solid var(--cta);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::before { margin-top: -8px; transform: rotate(45deg); }
.faq__item summary:hover { color: var(--cta); }
.faq__item p { padding: 0 0 20px 32px; }

.faq__cta { align-self: center; padding-inline: 28px; }

/* Footer */
.site-footer {
  padding-block: 48px;
  background: var(--bg-dark);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer__logo { width: 219px; }

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}
.site-footer__contact a {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.site-footer__contact a:hover { color: var(--white); text-decoration: underline; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}
.site-footer__links a {
  display: inline-block;
  padding-block: 12px;
  color: rgba(255, 255, 255, .7);
}
.site-footer__links a:hover { color: var(--white); }

/* Barre collante mobile */
.sticky-cta { display: none; }

@media (max-width: 719.98px) {
  html { scroll-padding-bottom: calc(var(--sticky-h) + 8px); }
  body { padding-bottom: var(--sticky-h); }

  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    height: var(--sticky-h);
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--hairline);
    background: var(--white);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .sticky-cta.is-visible {
    transform: none;
    visibility: visible;
    transition: transform .25s ease, visibility 0s;
  }

  .sticky-cta__call {
    flex: 2 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cta);
    border-radius: var(--radius-btn);
    color: var(--cta);
    font-weight: 700;
    text-decoration: none;
  }
  .sticky-cta__devis { flex: 3 1 0; min-height: 0; padding: 0 12px; }
}

/* Une colonne sous 720 px */
@media (max-width: 719.98px) {
  .proofs__item,
  .ba-block__text,
  .ba,
  .gallery__list > li,
  .video-section__text,
  .video,
  .split__media,
  .split__text,
  .args__item,
  .timeline__item,
  .review,
  .devis__intro,
  .devis__card { flex-basis: 100%; max-width: none; }

  .accroche { font-size: 20px; }
  .timeline__item { padding-right: 0; }
  .faq__item summary { font-size: 20px; }
}

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