/* Polices auto-hébergées — aucun appel réseau vers Google (RGPD).
   Fichiers variables : un seul woff2 couvre toute la plage de graisses. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   Kelro — feuille de style principale
   Palette issue de la charte : bleu marine #001F3F, bleu clair #A7C7E3, blanc.
   ========================================================================== */

:root {
  /* Couleurs */
  --c-navy: #001F3F;
  --c-navy-800: #06305A;
  --c-navy-900: #001732;
  --c-accent: #A7C7E3;
  --c-accent-200: #D5E5F1;
  --c-accent-100: #EDF4FA;
  --c-white: #FFFFFF;
  --c-text: #1B2733;
  --c-muted: #5A6B7C;
  --c-border: #DDE5EC;
  --c-bg-soft: #F6F9FC;
  --c-success: #0F6B45;
  --c-error: #A32020;

  /* Typo */
  --font-title: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.0625rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  --step-5: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);

  /* Espacement */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 31, 63, 0.06), 0 1px 3px rgba(0, 31, 63, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 31, 63, 0.08), 0 10px 20px -6px rgba(0, 31, 63, 0.12);
  --shadow-lg: 0 12px 32px -8px rgba(0, 31, 63, 0.18);

  --wrap: 1140px;
  --wrap-narrow: 760px;
}

/* --------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--c-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-4); font-weight: 800; }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; }

p { text-wrap: pretty; }

a { color: var(--c-navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-navy-800); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-navy);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------------------------------------------------------------- Layout --- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--sp-9); }
.section--soft { background: var(--c-bg-soft); }
.section--accent { background: var(--c-accent-100); }

.section__head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section__head p { color: var(--c-muted); margin-top: var(--sp-3); font-size: var(--step-2); line-height: 1.5; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-navy);
  color: var(--c-white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 200;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ------------------------------------------------------------- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}
.logo svg { width: 30px; height: 30px; }
.logo__word {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  color: var(--c-navy);
}
/* Logo agrandi sur ordinateur uniquement — sur mobile la barre reste compacte
   pour laisser la place au bouton d'appel et au menu. */
@media (min-width: 901px) {
  .header .logo svg { width: 42px; height: 42px; }
  .header .logo__word { font-size: 2rem; }
}

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav__list { display: flex; align-items: center; gap: var(--sp-5); list-style: none; padding: 0; }
.nav__link {
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--c-text);
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--c-navy); border-bottom-color: var(--c-accent); }
.nav__link[aria-current="page"] { color: var(--c-navy); font-weight: 600; border-bottom-color: var(--c-navy); }

.nav__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--c-navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav__tel svg { width: 16px; height: 16px; }
.nav__tel:hover { text-decoration: underline; }

.burger {
  display: none;
  place-items: center;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  /* 44px : cible tactile confortable (WCAG 2.5.5) */
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--sp-3);
  cursor: pointer;
  color: var(--c-navy);
}
.burger svg { width: 22px; height: 22px; }

/* Appel direct depuis l'en-tête mobile : le numéro est sinon enfermé dans le
   menu burger, soit deux taps pour l'action de conversion principale. */
.header__call {
  display: none;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--c-navy);
  color: var(--c-white);
  margin-left: auto;
  margin-right: var(--sp-2);
}
.header__call svg { width: 20px; height: 20px; }
.header__call:hover { background: var(--c-navy-800); color: var(--c-white); }

@media (max-width: 900px) {
  .burger { display: grid; }
  .header__call { display: grid; }
  .nav {
    display: none;
    position: absolute;
    inset: 74px 0 auto 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) 1.25rem var(--sp-5);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--c-border);
  }
  .nav__link:hover, .nav__link[aria-current="page"] { border-bottom-color: var(--c-border); }
  .nav__tel { padding-top: var(--sp-4); }
}

/* ------------------------------------------------------------ Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn--primary { background: var(--c-navy); color: var(--c-white); }
.btn--primary:hover { background: var(--c-navy-800); color: var(--c-white); }

.btn--accent { background: var(--c-accent); color: var(--c-navy); }
.btn--accent:hover { background: var(--c-accent-200); color: var(--c-navy); }

.btn--ghost { background: var(--c-white); color: var(--c-navy); border-color: var(--c-border); }
.btn--ghost:hover { background: var(--c-bg-soft); border-color: var(--c-accent); color: var(--c-navy); }

.btn--lg { padding: 1rem 1.75rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------- Hero --- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, var(--c-accent-100), transparent 70%),
    var(--c-white);
  padding-block: var(--sp-9) var(--sp-8);
  border-bottom: 1px solid var(--c-border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-accent-100);
  border: 1px solid var(--c-accent-200);
  color: var(--c-navy);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: var(--sp-5);
}
.hero__tagline {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-navy);
  font-size: var(--step-2);
  margin-top: var(--sp-4);
}
.hero__lead {
  color: var(--c-muted);
  font-size: var(--step-2);
  line-height: 1.5;
  margin-top: var(--sp-4);
  max-width: 46ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero__note {
  margin-top: var(--sp-5);
  font-size: var(--step--1);
  color: var(--c-muted);
}

.hero__card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
}
.hero__card h2 { font-size: var(--step-2); }
.hero__card ul { list-style: none; padding: 0; margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.hero__card li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--step-0);
}
.hero__card li svg { width: 18px; height: 18px; color: var(--c-navy); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .hero { padding-block: var(--sp-7) var(--sp-7); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ------------------------------------------------------ Fil d'Ariane --- */
.fil { margin-bottom: var(--sp-5); }
.fil ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  color: var(--c-muted);
}
.fil li { display: flex; align-items: center; gap: 0.4rem; }
.fil li + li::before { content: "\203A"; color: var(--c-border); }
.fil a { color: var(--c-muted); text-decoration: none; }
.fil a:hover, .fil a:focus-visible { color: var(--c-navy); text-decoration: underline; }
.fil [aria-current="page"] { color: var(--c-navy); font-weight: 600; }

/* -------------------------------------------------------------- Cards --- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--c-accent-100);
  border: 1px solid var(--c-accent-200);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  color: var(--c-navy);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: var(--sp-2); font-size: var(--step-1); }
.card p { color: var(--c-muted); font-size: var(--step-0); }
/* Téléphone et e-mail des cartes de contact : ce sont des CTA, pas du texte
   courant — ils doivent être tapables au pouce. */
.card p a { display: inline-block; padding-block: 0.55rem; }

/* Carte de segmentation (particulier / pro) */
.segment {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.segment__tag {
  align-self: flex-start;
  font-size: var(--step--1);
  font-weight: 700;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-navy);
  background: var(--c-accent-100);
  border: 1px solid var(--c-accent-200);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  margin-bottom: var(--sp-4);
}
.segment h3 { font-size: var(--step-3); }
.segment > p { color: var(--c-muted); margin-top: var(--sp-3); }
.segment ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0;
  display: grid;
  gap: var(--sp-2);
}
/* Le bouton final descend seul en bas de la carte : les puces restent groupées
   sous le texte au lieu d'être étirées par la hauteur de la carte (espacement
   irrégulier quand les cartes voisines ont plus de puces). */
.segment > .btn { margin-top: auto; }
.segment li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--step-0);
}
.segment li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.6em;
}

/* --------------------------------------------------- Configurateur --- */
.config {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.config__body { padding: var(--sp-6); }

.config__step { margin-bottom: var(--sp-6); }
.config__step:last-child { margin-bottom: 0; }
.config__step[hidden] { display: none; }

.config__label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: var(--sp-4);
  font-size: var(--step-1);
}
.config__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }

.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  padding: 0.85rem 0.75rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.3;
  transition: border-color .15s ease, background-color .15s ease;
  height: 100%;
}
.choice input:hover + span { border-color: var(--c-accent); background: var(--c-accent-100); }
.choice input:focus-visible + span { outline: 3px solid var(--c-navy); outline-offset: 2px; }
.choice input:checked + span {
  border-color: var(--c-navy);
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 600;
}

/* Choix illustré : « ma terrasse, c'est de la pierre ou du béton ? » est une
   vraie hésitation. Une photo tranche plus vite qu'un mot. */
.choice--visuel span {
  flex-direction: column;
  /* Le libellé est un nœud texte, pas un élément : il devient un item flex
     anonyme, qu'aucun sélecteur ne peut cibler. C'est donc gap qui l'espace. */
  gap: 0.55rem;
  padding: 0 0 0.7rem;
  overflow: hidden;
  text-align: center;
}
.choice--visuel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* Le bouton a un rayon : sans ça l'image déborderait dans les coins. */
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background: var(--c-bg-soft);
}

/* Section « chaque matériau, sa méthode » */
.materiau {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.materiau img {
  width: 100%;
  /* Photo agrandie : la vignette occupe l'essentiel de la carte, le libellé
     tient sur une ligne en dessous. */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--c-bg-soft);
}
.materiau__corps { padding: var(--sp-4) var(--sp-5); }
.materiau h3 { font-size: var(--step-2); margin: 0; text-align: center; }

.config__result {
  background: var(--c-navy);
  color: var(--c-white);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: center;
}
.config__result[hidden] { display: none; }
.config__result h3 { color: var(--c-white); font-size: var(--step-1); font-weight: 600; }
.config__price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);
  color: var(--c-white);
  line-height: 1.05;
  margin-block: var(--sp-2);
  letter-spacing: -0.03em;
}
.config__price small {
  font-size: var(--step-0);
  font-weight: 600;
  opacity: .75;
  letter-spacing: 0;
  margin-left: 0.35rem;
  vertical-align: 0.55em; /* aligne "HT" sur le haut du chiffre, pas sur la ligne de base */
}
.config__incl {
  font-size: var(--step--1);
  color: var(--c-accent);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  max-width: 52ch;
}
.config__incl svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }

.config__placeholder {
  padding: var(--sp-6);
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--step-0);
  text-align: center;
}
.config__placeholder[hidden] { display: none; }

/* --------------------------------------------------- Panier ------------ */
.panier {
  margin-top: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}
.panier[hidden] { display: none; }
.panier__titre { font-size: var(--step-2); margin-bottom: var(--sp-4); }

.panier__liste { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.panier__ligne {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
}
.panier__desc { font-size: var(--step-0); color: var(--c-text); }
.panier__prix { font-weight: 700; color: var(--c-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.panier__retirer {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.panier__retirer:hover { background: #FDF0F0; color: var(--c-error); border-color: var(--c-error); }

.panier__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--c-navy);
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-navy);
  font-size: var(--step-2);
}
.panier__montant { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panier__incl { margin: var(--sp-3) 0 var(--sp-5); font-size: var(--step--1); color: var(--c-muted); }

@media (max-width: 560px) {
  .panier { padding: var(--sp-5); }
  .panier__ligne { grid-template-columns: 1fr auto; grid-template-areas: "desc retirer" "prix retirer"; row-gap: 2px; }
  .panier__desc { grid-area: desc; }
  .panier__prix { grid-area: prix; }
  .panier__retirer { grid-area: retirer; align-self: center; }
  /* Évite que « 1 110 € TTC » ne se coupe : libellé plus petit, montant compact. */
  .panier__total { font-size: var(--step-1); }
  .panier__montant { font-size: var(--step-2); }
}

@media (max-width: 700px) {
  .config__body { padding: var(--sp-5); }
  .config__result { grid-template-columns: 1fr; padding: var(--sp-5); }
}

/* ----------------------------------------------------------- Formulaires --- */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 600; font-size: var(--step-0); color: var(--c-navy); }
.field .req { color: var(--c-error); }
.field__hint { font-size: var(--step--1); color: var(--c-muted); }

.field input, .field select, .field textarea {
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: var(--step-0);
  width: 100%;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(167, 199, 227, 0.5);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Honeypot anti-spam : masqué aux humains, laissé accessible aux robots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__opt { font-weight: 400; color: var(--c-muted); font-size: var(--step--1); }

/* Champ fichier : le bouton natif est laissé tel quel (il est familier et
   parfaitement accessible), on n'habille que le cadre autour. */
.field input[type="file"] {
  padding: 0.55rem 0.6rem;
  background: var(--c-bg-soft);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: var(--sp-3);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--c-accent); }

.photos__liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-1);
  font-size: var(--step--1);
  color: var(--c-muted);
}
.photos__liste[hidden] { display: none; }
.photos__erreur { color: var(--c-error); font-weight: 600; }

.photos__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 8px;
}

/* 44 px de haut : cible tactile confortable, l'essentiel des devis part du
   téléphone et ce bouton est le seul moyen de revenir sur une photo. */
.photos__retirer {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 0;
  background: none;
  color: var(--c-error);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.photos__retirer:hover { color: #7A1818; }

.form__consent {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--c-muted);
}
.form__consent input { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }

.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: var(--step-0);
}
.alert--ok { background: #ECFAF3; border-color: var(--c-success); color: #0B4C31; }
.alert--err { background: #FDF0F0; border-color: var(--c-error); color: #7A1818; }
.alert ul { margin: var(--sp-2) 0 0; padding-left: 1.2rem; }

.form__recap {
  background: var(--c-accent-100);
  border: 1px solid var(--c-accent-200);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--step-0);
}
.form__recap[hidden] { display: none; }
.form__recap strong { color: var(--c-navy); }

/* --------------------------------------------------------- Bandeau contact --- */
.cta-band { background: var(--c-navy); color: var(--c-white); padding-block: var(--sp-8); }
.cta-band h2 { color: var(--c-white); }
.cta-band p { color: var(--c-accent); margin-top: var(--sp-3); font-size: var(--step-2); }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: center;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta-band .btn--ghost { background: transparent; color: var(--c-white); border-color: rgba(167, 199, 227, 0.45); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-white); border-color: var(--c-accent); }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- Zones --- */
.zones { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .zones { grid-template-columns: 1fr; } }
.zone {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  background: var(--c-white);
}
.zone h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.zone p { color: var(--c-muted); font-size: var(--step-0); }
.zone__depts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.zone__depts span {
  background: var(--c-accent-100);
  border: 1px solid var(--c-accent-200);
  color: var(--c-navy);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  font-size: var(--step--1);
  font-weight: 600;
}

/* ------------------------------------------------------------- Prose --- */
/* 58ch et non 68 : l'unité ch se base sur la largeur du glyphe « 0 », large
   dans Inter (11px à 17px de corps), alors que les minuscules font ~8,5px.
   68ch rendait ~82 caractères par ligne ; 58ch en rend ~70, dans la plage
   de confort de lecture. */
.prose { max-width: 58ch; }
.prose h2 { font-size: var(--step-3); margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--sp-4); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: var(--sp-2); }
.prose a { color: var(--c-navy-800); }
/* Liens isolés dans les listes légales (e-mail, téléphone, OVH, CNIL) : 20px de
   haut sans ça, sous le minimum WCAG 2.5.8 (24px). On ne vise pas les 44px de
   la 2.5.5 : ce sont des listes de référence denses, pas des CTA. */
.prose li a { display: inline-block; padding-block: 0.25rem; }

/* Noms techniques des cookies dans la politique de confidentialité : la CNIL
   demande de les nommer, autant qu'ils restent discrets dans le texte. */
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.todo {
  background: #FFF8E6;
  border: 1px dashed #C89A2B;
  border-radius: var(--radius);
  padding: var(--sp-4);
  font-size: var(--step--1);
  color: #6B4E0F;
  margin-bottom: var(--sp-4);
}

/* ------------------------------------------------------------- Footer --- */
.footer {
  background: var(--c-navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--sp-8) var(--sp-5);
  font-size: var(--step-0);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer .logo__word { color: var(--c-white); }
.footer__tagline { margin-top: var(--sp-3); color: var(--c-accent); font-size: var(--step--1); }
.footer h4 { color: var(--c-white); font-size: var(--step-0); margin-bottom: var(--sp-4); }
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-1); }
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: var(--c-white); text-decoration: underline; }
/* Sans padding, ces liens ne font que 20px de haut : trop petit pour le pouce. */
.footer li a { display: inline-block; padding-block: 0.6rem; }
.footer__bottom {
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------- Consentement --- */
.consent {
  position: fixed;
  z-index: 60;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  display: flex;
  justify-content: center;
}

.consent__boite {
  width: 100%;
  max-width: var(--wrap-narrow);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
}

.consent__titre {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-navy);
  margin: 0 0 var(--sp-2);
}

.consent__texte {
  font-size: var(--step--1);
  color: var(--c-muted);
  margin: 0 0 var(--sp-3);
}

.consent__texte:last-of-type { margin-bottom: var(--sp-4); }

.consent__actions {
  display: flex;
  gap: var(--sp-3);
}

/* Les deux boutons occupent la même surface : le refus doit être aussi
   accessible que l'acceptation. */
.consent__actions .btn { flex: 1 1 0; justify-content: center; }

@media (min-width: 560px) {
  .consent__actions { justify-content: flex-end; }
  .consent__actions .btn { flex: 0 0 auto; min-width: 150px; }
}

/* ------------------------------------------------------------ Divers --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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