/* =========================================================================
   MEGAPROTEC — Safety & Security Systems
   Feuille de style principale
   -------------------------------------------------------------------------
   Pour changer les couleurs de TOUT le site, ne modifiez que les variables
   du bloc ":root" ci-dessous. Rien d'autre n'est à toucher.
   ========================================================================= */

/* ---------- 1. Variables (couleurs, espacements, typographie) ---------- */
:root {
  /* Couleurs de la charte, relevées au pixel sur la carte de visite */
  --orange:      #EB7906;
  --orange-dark: #C4620A;
  --orange-soft: #FDF1E4;

  --ink:     #1D1F24; /* anthracite profond (sections sombres) */
  --grey:    #555553; /* gris exact du logo */
  --text:    #23252A;
  --muted:   #6B7078;

  --line:    #E4E5E8;
  --bg:      #FFFFFF;
  --bg-alt:  #F6F6F6; /* fond exact de la carte de visite */

  /* Typographie
     Les titres sont en Inter graisse 300 (« light ») : c'est cette légèreté,
     bien plus que la couleur, qui donne l'allure des sites de référence.
     Archivo n'est conservée que pour le nom de marque, proche du logo. */
  --font-title: "Inter", "Segoe UI", Tahoma, sans-serif;
  --font-body:  "Inter", "Segoe UI", Tahoma, sans-serif;
  --font-brand: "Archivo", "Segoe UI", Tahoma, sans-serif;

  /* Rythme — mise en page « pleine page » :
     les sections occupent toute la largeur de l'écran, seul le texte reste
     contenu pour rester lisible. */
  --wrap: 1560px;
  --section-y: 112px;
  --radius: 8px;      /* champs de formulaire, petits éléments */
  --radius-lg: 16px;  /* cartes, images, blocs */
  --radius-pill: 100px;
  --shadow-sm: 0 1px 2px rgba(29,31,36,.06), 0 4px 12px rgba(29,31,36,.05);
  --shadow-md: 0 2px 4px rgba(29,31,36,.06), 0 12px 32px rgba(29,31,36,.09);
}

/* ---------- 2. Reset et bases ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* height:auto est indispensable : sans lui, les attributs width/height du HTML
   figent la hauteur et annulent tout recadrage par aspect-ratio. */
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 300;          /* léger : c'est là que se joue l'allure */
  line-height: 1.14;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 1.1rem + 1.7vw, 2.6rem); }
h3 { font-size: 1.24rem; font-weight: 500; letter-spacing: 0; }
h4 { font-weight: 500; }
strong, b { font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #D6D8DC; }
.section--dark h2, .section--dark h3 { color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Sur-titre orienté conversion */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section--dark .section-head p { color: #A8ACB4; }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  letter-spacing: .005em; text-decoration: none; cursor: pointer;
  padding: 16px 34px; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--ghost, .hero .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 19px 38px; font-size: 1.06rem; }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- 4. Barre utilitaire + en-tête ---------- */
.topbar { background: var(--ink); color: #9DA2AA; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar a { text-decoration: none; color: #D6D8DC; }
.topbar a:hover { color: var(--orange); }
.topbar__creds { display: flex; gap: 22px; }
.topbar__contact { display: flex; gap: 22px; align-items: center; }

.lang { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.lang a, .lang span { padding: 2px 6px; border-radius: 3px; }
.lang [aria-current="true"] { background: var(--orange); color: #fff; }
.lang .is-soon { opacity: .45; cursor: default; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px); /* Safari avant iOS 18 */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 82px; }

/* Logo : marque vectorielle + texte (fonctionne sur fond clair comme sombre) */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
/* La marque est dessinée en vectoriel (trois polygones) : on peut l'agrandir
   sans aucune perte. 104 px de large donnent 45 px de haut, soit la hauteur
   du bloc « MEGAPROTEC / SAFETY & SECURITY SYSTEMS » posé à côté.
   Attention : élargir la marque repousse le seuil du menu replié — voir la
   section 15, où ce seuil est mesuré. */
.brand__mark { width: 104px; height: auto; }
.brand__name {
  font-family: var(--font-brand); font-weight: 600; font-size: 1.32rem;
  letter-spacing: .14em; color: var(--grey); line-height: 1;
}
.brand__tag {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: .56rem; letter-spacing: .2em; color: var(--orange); margin-top: 5px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text); padding: 6px 0; position: relative; }
/* Le bouton du menu est lui aussi un « .nav a » : la règle ci-dessus lui
   retirait tout retrait horizontal et le texte venait toucher les bords de la
   pastille orange. On le lui rend, avec une sélection plus précise. */
.nav a.btn { padding: 12px 20px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--orange); transition: right .22s ease;
}
.nav a:hover::after { right: 0; }
.nav .btn::after { display: none; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #16181C 0%, var(--ink) 45%, #292C33 100%);
  color: #C9CCD2;
  padding-block: clamp(72px, 9vw, 132px);
}
.hero__deco { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 72px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { font-size: 1.2rem; line-height: 1.6; color: #B4B9C1; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 22px; font-size: .9rem; color: #8B9099; display: flex; align-items: center; gap: 9px; }
.hero__note svg { width: 17px; height: 17px; color: var(--orange); flex: none; }

/* Carte "agréments" du hero */
.credcard {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 38px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.credcard h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: 22px; }
.credcard dl { margin: 0; display: grid; gap: 18px; }
.credcard dt { font-size: .82rem; color: #8B9099; letter-spacing: .04em; }
.credcard dd { margin: 2px 0 0; font-family: var(--font-title); font-weight: 500; color: #fff; font-size: 1.06rem; }

/* ---------- 6. Bandeau de confiance ---------- */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trustbar__item { padding: 34px 26px; border-left: 1px solid var(--line); }
.trustbar__item:first-child { border-left: 0; padding-left: 0; }
.trustbar__n {
  font-family: var(--font-title); font-weight: 200; font-size: 3.1rem;
  color: var(--ink); line-height: 1; display: block; letter-spacing: -.02em;
}
.trustbar__n span { color: var(--orange); }
.trustbar__l { font-size: .92rem; color: var(--muted); margin-top: 8px; }

/* ---------- 7. Cartes de services ---------- */
/* Cartes détachées et arrondies plutôt qu'une grille soudée : plus aérien,
   et une rangée incomplète ne laisse aucune trace. */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
  background: #fff; padding: 42px 34px; display: flex; flex-direction: column;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.card:hover { transform: translateY(-3px); border-color: #D5D7DB; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { background: #FCFCFC; }
.card__icon { width: 46px; height: 46px; color: var(--orange); margin-bottom: 26px; }
.card__icon svg { width: 100%; height: 100%; }
.card p { color: var(--muted); font-size: .99rem; }
.card__list { list-style: none; margin: 18px 0 0; padding: 0; font-size: .93rem; color: var(--muted); }
.card__list li { padding-left: 20px; position: relative; margin-bottom: 7px; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  border-left: 5px solid var(--orange); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}

/* ---------- 8. Deux publics (marchés publics / privés) ---------- */
.split { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.split__col { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 46px 42px; }
.split__col h3 { font-size: 1.5rem; margin-bottom: 6px; }
.split__col ul { list-style: none; padding: 0; margin: 22px 0 0; }
.split__col li {
  padding: 13px 0 13px 30px; border-top: 1px solid rgba(255,255,255,.1);
  position: relative; font-size: .99rem; color: #B4B9C1;
}
.split__col li::before {
  content: ""; position: absolute; left: 0; top: 1.3em; width: 13px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}

/* ---------- 9. Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-title); font-weight: 600; font-size: 1rem; color: var(--orange);
  display: block; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--orange);
  letter-spacing: .06em;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .96rem; color: var(--muted); }

/* ---------- 9b. Bandeau des marques installées ---------- */
.brands {
  margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px;
}
.brands__label {
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-family: var(--font-body); font-weight: 600; margin: 0;
}
.brands__list { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; margin: 0; padding: 0; list-style: none; }
.brands__list li {
  font-family: var(--font-brand); font-weight: 500; font-size: 1.35rem;
  letter-spacing: .1em; color: var(--grey);
}
.brands__note { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- 9c. Avis clients ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px 30px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif; font-size: 4.2rem; line-height: .8;
  color: var(--orange); display: block; margin-bottom: 10px;
}
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.quote figcaption { margin-top: auto; padding-top: 22px; }
.quote__who { font-family: var(--font-title); font-weight: 600; color: var(--ink); }
.quote__meta { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.quote__src {
  display: inline-block; margin-top: 12px; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.quotes-more { margin-top: 40px; }
.quote__reply {
  margin-top: 20px; padding: 16px 18px; background: var(--bg-alt);
  border-left: 3px solid var(--orange); font-size: .93rem; color: var(--muted);
}
.quote__reply strong { display: block; color: var(--ink); font-family: var(--font-body); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }

/* Version longue, sur la page Avis */
.quotes--stack { grid-template-columns: 1fr; gap: 20px; max-width: 860px; }
.quotes--stack .quote { padding: 34px 34px 28px; }
.quotes--stack .quote::before { font-size: 3.4rem; }
.quotes--stack blockquote { font-size: 1.1rem; }

/* ---------- 9e. Bloc réalisation (référence de chantier) ---------- */
.case { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 52px; align-items: start; }
.case__media { margin: 0; display: grid; gap: 12px; }
.case__media img { width: 100%; border-radius: var(--radius-lg); }
.case__media .is-main { aspect-ratio: 4 / 3; object-fit: cover; }
.case__media .is-second { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 42%; }
.case__credit { font-size: .8rem; color: #8B9099; margin-top: 4px; }
.case h3 { font-size: 1.75rem; margin-bottom: 14px; }
.case__list { list-style: none; padding: 0; margin: 24px 0 0; }
.case__list li {
  padding: 12px 0 12px 30px; border-top: 1px solid rgba(255,255,255,.1);
  position: relative; font-size: .97rem; color: #B4B9C1;
}
.case__list li::before {
  content: ""; position: absolute; left: 0; top: 1.25em; width: 13px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}
.case__quote {
  margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--orange);
  background: rgba(255,255,255,.05); font-size: .98rem; font-style: italic; color: #C9CCD2;
}
.case__quote cite { display: block; font-style: normal; font-size: .82rem; color: #8B9099; margin-top: 9px; }

/* ---------- 9d. En-tête des pages intérieures ---------- */
.pagehero {
  background: linear-gradient(150deg, #16181C 0%, var(--ink) 55%, #292C33 100%);
  color: #B4B9C1; padding-block: clamp(56px, 6vw, 88px);
}
.pagehero h1 { color: #fff; max-width: 18ch; }
.pagehero p { max-width: 56ch; font-size: 1.1rem; color: #B4B9C1; }
.breadcrumb { font-size: .86rem; color: #8B9099; margin: 0 0 20px; }
.breadcrumb a { text-decoration: none; color: #C9CCD2; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- 9f. Texte long (pages légales) ---------- */
.prose { max-width: 76ch; }
.prose h2 {
  font-size: 1.42rem; margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 30px; }
.prose p, .prose li { color: #3C4046; }
.prose ul { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--orange-dark); }
.prose dl { margin: 0 0 1.1em; }
.prose dt { font-weight: 600; margin-top: 14px; }
.prose dd { margin: 3px 0 0; color: var(--muted); }
.prose__maj { font-size: .88rem; color: var(--muted); margin-bottom: 40px; }
.prose__encart {
  background: var(--bg-alt); border-left: 3px solid var(--orange);
  padding: 20px 24px; margin: 0 0 1.4em;
}
.prose__encart p { margin-bottom: .6em; }
.prose__encart p:last-child { margin-bottom: 0; }

/* Marqueur voyant pour les informations encore manquantes.
   Impossible à rater : c'est voulu, il ne doit pas rester en ligne. */
.todo {
  background: #FFE9C7; color: #8A4B00; font-weight: 600;
  padding: 2px 8px; border-radius: 3px; border: 1px dashed #D08A2C;
}

/* ---------- 10. FAQ ---------- */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 26px 44px 26px 0; position: relative;
  font-family: var(--font-title); font-weight: 500; font-size: 1.12rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 32px; width: 11px; height: 11px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 37px; }
.faq details p { padding: 0 44px 26px 0; color: var(--muted); }

/* ---------- 11. Formulaire de devis ---------- */
.contact { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 64px; align-items: start; }
.contact__aside p { color: var(--muted); }
.infoblock { margin-top: 34px; display: grid; gap: 22px; }
.infoblock__row { display: flex; gap: 16px; align-items: flex-start; }
.infoblock__row svg { width: 21px; height: 21px; color: var(--orange); flex: none; margin-top: 4px; }
.infoblock__row strong { display: block; font-family: var(--font-title); font-weight: 600; }
.infoblock__row a { text-decoration: none; }
.infoblock__row a:hover { color: var(--orange); }
.infoblock__row span { color: var(--muted); font-size: .95rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 42px; box-shadow: var(--shadow-md); }
/* minmax(0,1fr) et min-width:0 sont indispensables : sans eux, la largeur
   minimale native des <input> et des <select> fait déborder la grille. */
.form__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  width: 100%; min-width: 0; max-width: 100%;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft);
}
.field .err { font-size: .82rem; color: #C0392B; margin-top: 6px; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C0392B; }
.field.is-invalid .err { display: block; }

.form__consent { grid-column: 1 / -1; display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.form__consent input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--orange); }
.form__consent.is-invalid { color: #C0392B; }
.form__consent.is-invalid input { outline: 2px solid #C0392B; outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__foot .btn { flex: none; }
.form__foot small { color: var(--muted); font-size: .85rem; }
.form__status {
  grid-column: 1 / -1; padding: 15px 18px; border-radius: var(--radius);
  background: var(--orange-soft); border: 1px solid #F3D3AE; font-size: .92rem; display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-ok { background: #EAF5EC; border-color: #BEDFC6; color: #1E5B2C; }
.form__status.is-ko { background: #FCEDEB; border-color: #F2C3BC; color: #8E2A1B; }

/* Piège à robots : hors écran, jamais vu ni atteint par un visiteur */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 12. Appel final ---------- */
.finalcta { background: var(--orange); color: #fff; }
.finalcta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: 64px; }
.finalcta h2 { color: #fff; margin: 0; max-width: 20ch; }
.finalcta p { color: rgba(255,255,255,.9); margin: 10px 0 0; }
.finalcta .btn--primary { background: #fff; color: var(--ink); }
.finalcta .btn--primary:hover { background: var(--ink); color: #fff; }

/* ---------- 13. Pied de page ---------- */
.site-footer { background: var(--ink); color: #8B9099; font-size: .92rem; padding-block: 64px 34px; }
.site-footer a { text-decoration: none; color: #C9CCD2; }
.site-footer a:hover { color: var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; }
.footer__grid h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 10px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 20px; max-width: 34ch; }
.footer__legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .84rem;
}
/* Autorité de surveillance : mention obligatoire pour une activité soumise
   à autorisation (agrément SPF Intérieur). Occupe toute la largeur. */
.footer__autorite {
  flex-basis: 100%; margin: 12px 0 0; font-size: .79rem; line-height: 1.6; color: #6E737B;
}
.footer__autorite a { color: #8B9099; text-decoration: underline; }
.footer__autorite a:hover { color: var(--orange); }

/* ---------- 14. Apparition douce au défilement ----------
   Le masquage est conditionné à la classe ".js", posée par un script en tête de
   page. Si JavaScript ne s'exécute pas, le contenu reste simplement visible :
   jamais de page blanche.
------------------------------------------------------------------------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1000px) {
  :root { --section-y: 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); gap: 34px; }
  .quotes { grid-template-columns: 1fr; gap: 20px; }
  .case { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .trustbar__grid { grid-template-columns: repeat(2,1fr); }
  .trustbar__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trustbar__item:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar__creds { display: none; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__col { padding: 36px 28px; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 26px 22px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .finalcta .wrap { padding-block: 48px; }
}

/* Petits téléphones : le numéro et l'adresse e-mail ne tiennent pas côte à
   côte, et le numéro se coupait en deux lignes au milieu des chiffres.
   L'adresse reste accessible dans le bloc de contact et dans le pied de page. */
@media (max-width: 560px) {
  .topbar__contact { gap: 14px; }
  .topbar__contact a[href^="mailto"] { display: none; }
  /* Sur un téléphone, la marque à 104 px pousserait le bouton de menu hors écran. */
  .brand__mark { width: 60px; }
  /* L'écart de 32 px entre le logo et le bouton de menu ne laissait que 2 px
     de marge sur un iPhone standard. */
  .site-header .wrap { gap: 16px; }
}

/* Très petits téléphones (320 à 374 px : iPhone SE de 1re génération,
   iPhone 12 mini, Galaxy S). Le logo ne rétrécit pas — il a « flex: none » —
   et poussait le bouton de menu hors de l'écran. */
@media (max-width: 374px) {
  .brand { gap: 10px; }
  .brand__mark { width: 40px; }
  .brand__name { font-size: 1.05rem; letter-spacing: .1em; }
  .brand__tag { font-size: .5rem; letter-spacing: .16em; }
}

/* Écrans tactiles : sans souris, l'effet de survol reste « collé » après que
   le doigt a quitté l'élément. On le neutralise là où il se voit. */
@media (hover: none) {
  .btn:hover { transform: none; }
  .card:hover { transform: none; border-color: var(--line); }
  .cfg__option:hover span { transform: none; border-color: var(--line); }
}

/* ---------- Page « Réalisations » : photo pleine largeur sous le cas ---------- */
.chantier { margin: 52px auto 0; max-width: 900px; }
.chantier img { width: 100%; border-radius: var(--radius-lg); }

@media (max-width: 1320px) {
  /* --- Menu replié ---
     Le menu a son propre seuil, indépendant de celui de la mise en page :
     il dépend de la longueur des intitulés, pas de la largeur du contenu.
     En dessous de 1240 px, la barre complète ne tient plus et faisait défiler
     la page latéralement — c'était le cas sur un iPad en portrait (768 px) et
     sur un téléphone tenu à l'horizontale (812 px).
     Mesures du 11 septembre 2026, après l'agrandissement de la marque et le
     rétablissement du retrait du bouton « Demander un devis » :
       · en-tête resserré (palier 1321-1479 px) : 1309 px nécessaires
       · en-tête pleine taille (au-delà de 1480 px) : 1475 px nécessaires
     TOUTE nouvelle entrée dans le menu — la bascule de langue comprise — et
     TOUT élargissement du logo imposent de reprendre ces trois mesures.

     Le panneau est positionné en « absolute » sous l'en-tête plutôt qu'en
     « fixed » à 82 px du haut : la hauteur de l'en-tête n'est plus supposée, et
     l'alignement ne dépend plus du support de backdrop-filter par le
     navigateur — ce qui n'était pas le cas sur les iPhone d'avant iOS 18. */
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 28px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: none;
    /* Téléphone à l'horizontale : le menu est plus haut que l'écran.
       Il doit pouvoir défiler seul, sans emporter la page derrière lui. */
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; border-bottom: 0; }

  /* Zones tactiles : 22 px de haut, c'est trop peu pour un doigt. */
  .topbar .wrap { min-height: 44px; }
  .topbar a[href^="tel"], .topbar a[href^="mailto"] { padding-block: 10px; white-space: nowrap; }
}

/* Les intitulés du menu ne se coupent jamais en deux lignes. */
.nav a { white-space: nowrap; }

/* Entre 1321 et 1479 px, le menu complet tient encore, mais serré : on resserre
   l'espacement, le corps et le retrait du bouton plutôt que de laisser les
   intitulés passer à la ligne. À partir de 1480 px, tout reprend sa taille normale. */
@media (min-width: 1321px) and (max-width: 1479px) {
  .site-header .wrap { gap: 22px; }
  .nav { gap: 18px; }
  .nav a { font-size: .88rem; }
  .nav a.btn { padding: 10px 15px; }
}

/* Traduction d'un témoignage. Les avis restent affichés dans la langue où le
   client les a écrits — les traduire et les présenter comme ses mots serait les
   falsifier. La traduction est donnée en dessous, et signalée comme telle. */
.quote__vertaling { margin: 14px 0 0; font-size: .93rem; line-height: 1.55; color: var(--muted); font-style: italic; }
.quote__vertaling strong {
  display: block; font-style: normal; font-weight: 600; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}

/* Lien Facebook du pied de page, sous la marque. L'icône est dessinée dans la
   page : aucune requête vers Facebook n'est faite tant que le visiteur ne clique pas. */
.footer__social {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  text-decoration: none; font-size: .85rem; font-weight: 500; color: #C9CCD2;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-pill);
  padding: 6px 14px 6px 11px; transition: border-color .18s ease, color .18s ease;
  /* Sans cela, le libellé se replie sur trois lignes dans la colonne étroite
     du pied de page et la pastille devient plus haute qu'un bouton d'action. */
  white-space: nowrap; line-height: 1.4;
}
.footer__social svg { width: 16px; height: 16px; flex: none; }
.footer__social:hover { color: #fff; border-color: var(--orange); }

/* Aperçu d'une réalisation sur la page d'accueil : une seule photo et un renvoi
   vers la page dédiée. Le détail du chantier — les autres photos, la liste des
   travaux — reste sur realisations.html, pour ne pas alourdir le défilement. */
.apercu { margin: 0 auto; max-width: 900px; }
.apercu img {
  width: 100%; border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2; object-fit: cover;
}

/* Les scénarios : ce qui relie les métiers entre eux. Posé juste après les
   cartes, là où le visiteur vient de les découvrir séparément. */
.scenarios {
  margin-top: 56px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 34px;
}
.scenarios__list { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 13px; }
.scenarios__list li { padding-left: 20px; position: relative; color: var(--muted); font-size: .99rem; }
.scenarios__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  border-left: 5px solid var(--orange); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.scenarios__list strong { color: var(--ink); font-weight: 600; }

/* ---------- 16. Impression ---------- */
@media print {
  .site-header, .topbar, .finalcta, .nav-toggle, .hero__deco { display: none; }
  body { font-size: 12pt; color: #000; }
  .section { padding-block: 18pt; }
}

/* ---------- 17. Configurateur guidé ----------
   Une question par écran. Sans JavaScript, toutes les étapes s'affichent
   à la suite et le formulaire reste envoyable : rien n'est perdu.
------------------------------------------------------------------------- */
.cfg { max-width: 860px; margin-inline: auto; }

.cfg__progress { margin-bottom: 44px; }
.cfg__bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.cfg__bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .35s ease; }
.cfg__count { margin-top: 12px; font-size: .85rem; color: var(--muted); }

/* Un fieldset conserve par défaut une bordure, des marges et surtout
   min-width:min-content, qui fait déborder les grilles. On remet tout à plat. */
.cfg__step { display: block; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.js .cfg__step[hidden] { display: none; }
.cfg__step + .cfg__step { margin-top: 64px; }
.js .cfg__step + .cfg__step { margin-top: 0; }

.cfg__q { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem); font-weight: 300; margin-bottom: 10px; }
.cfg__hint { color: var(--muted); margin-bottom: 30px; }

.cfg__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cfg__option { position: relative; display: block; cursor: pointer; }
.cfg__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg__option span {
  display: block; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  font-weight: 500;
}
.cfg__option small { display: block; margin-top: 6px; font-weight: 400; font-size: .88rem; color: var(--muted); }
.cfg__option:hover span { border-color: #C9CBD0; transform: translateY(-2px); }
.cfg__option input:checked + span {
  border-color: var(--orange); background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.cfg__option input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }

.cfg__nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }
.cfg__nav .cfg__back { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 10px 4px; text-decoration: underline; }
.cfg__nav .cfg__back:hover { color: var(--ink); }
.cfg__err { color: #C0392B; font-size: .9rem; margin-top: 14px; display: none; }
.cfg__err.is-visible { display: block; }

/* Récapitulatif avant envoi */
.cfg__recap { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 28px 30px; margin-bottom: 30px; }
.cfg__recap h3 { font-size: 1.02rem; margin-bottom: 16px; }
.cfg__recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .95rem; }
.cfg__recap dt { color: var(--muted); }
.cfg__recap dd { margin: 0; font-weight: 500; }

@media (max-width: 600px) {
  .cfg__options { grid-template-columns: 1fr; }
  .cfg__recap dl { grid-template-columns: 1fr; gap: 2px 0; }
  .cfg__recap dd { margin-bottom: 12px; }
}

/* ---------- 18. Chemin alternatif vers le configurateur ---------- */
.altpath {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: 26px 28px; margin-top: 32px;
}
.altpath h3 { font-size: 1.06rem; margin-bottom: 6px; }
.altpath p { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }

/* Rappel discret sous les boutons du hero */
.hero__alt { margin-top: 18px; font-size: .95rem; }
.hero__alt a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero__alt a:hover { color: var(--orange); }

/* ---------- 19. Compteurs du configurateur (étape « précisions ») ---------- */
.cfg__compteurs { display: grid; gap: 12px; }
.cfg__compte {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 22px; background: #fff;
}
.cfg__compte__txt { flex: 1 1 240px; }
.cfg__compte__txt strong { display: block; font-weight: 500; }
.cfg__compte__txt small { color: var(--muted); font-size: .88rem; }

.cfg__stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.cfg__stepper button {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.3rem; line-height: 1; font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.cfg__stepper button:hover { border-color: var(--orange); background: var(--orange-soft); }
.cfg__stepper input {
  width: 64px; text-align: center; font: inherit; font-weight: 500;
  padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--radius);
  -moz-appearance: textfield;
}
.cfg__stepper input::-webkit-outer-spin-button,
.cfg__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.js .cfg__stepper input::-webkit-outer-spin-button,
.js .cfg__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

@media (max-width: 520px) {
  .cfg__compte { gap: 12px; }
  .cfg__stepper { margin-left: auto; }
}
