/* ==========================================================================
   ATLAS-PLACO — feuille de style principale
   Direction artistique : plâtre / gris bleuté / bleu ardoise / turquoise / bleu glacier
   Réalisé par VD Studio — https://vd-studio.fr
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  /* Palette alignée sur le logo officiel (montagnes) :
     bleu ardoise #46668A (texte du logo), turquoise #5BB0B5, bleu glacier #BCDEE9, blanc */
  --plaster: #f4f6f8;       /* fond clair, légèrement bleuté */
  --white: #ffffff;
  --mineral-100: #e6ebef;
  --mineral-200: #d5dce2;
  --mineral-300: #bec8cf;
  --mineral-400: #8d9aa7;   /* petit texte sur fond bleu nuit — 6,2:1 */
  --mineral-500: #63717e;   /* 5,0:1 sur blanc */
  --navy-600: #4b5b6c;      /* texte secondaire — 7,0:1 sur blanc */
  --navy: #1f2f42;          /* bleu nuit dérivé du bleu ardoise : texte et sections sombres — 13,6:1 */
  --navy-900: #111b27;      /* hero, pied de page */
  /* Accent principal bleu ardoise : CTA, liens, états interactifs */
  --blue: #46668a;          /* bleu ardoise du logo — 5,9:1 sur blanc (texte blanc OK) */
  --blue-dark: #324b67;     /* hover, liens, petit texte — 9,0:1 sur blanc */
  --blue-deep: #24374c;     /* texte accentué sur fond clair teinté */
  /* Accents secondaires issus des montagnes du logo */
  --teal: #5bb0b5;          /* turquoise du logo : détails sur fond sombre — 5,4:1 sur bleu nuit */
  --teal-strong: #409296;   /* turquoise renforcé : traits et repères sur fond clair — 3,6:1 */
  --ice: #bcdee9;           /* bleu glacier du logo */
  --ice-soft: #ecf6f9;      /* fonds subtils (sélection, encadrés, états cochés) */
  --error: #b3261e;
  --success: #2f6b46;

  /* Typographie */
  --font-display: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --text-h2: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
  --text-h1: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);
  --text-h1-page: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Mise en page */
  --container: 72rem;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 4.5rem;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
  --dur-fast: 0.2s;

  color-scheme: light;
}

@media (min-width: 64em) {
  :root {
    --header-h: 5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-4);
}

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

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

strong {
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

address {
  font-style: normal;
}

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

::selection {
  background: var(--ice-soft);
  color: var(--navy);
}

.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 48rem;
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: calc(var(--section) * 0.65);
}

.section--plaster {
  background: var(--plaster);
}

.section--dark {
  background: var(--navy);
  color: var(--mineral-100);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark a {
  color: var(--white);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.section-head p {
  font-size: var(--text-lg);
  color: var(--navy-600);
  max-width: 56ch;
}

.section--dark .section-head p {
  color: var(--mineral-200);
}

/* Sur fond bleu nuit, le bleu ardoise manque de contraste (2,3:1) :
   on utilise le turquoise du logo pour les détails et le focus clavier. */
.section--dark,
.cta-band,
.site-footer,
.hero,
.lightbox {
  --accent-on-dark: var(--teal);
}

.section--dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--teal);
}

.measure {
  max-width: var(--measure);
}

.lead {
  font-size: var(--text-lg);
  color: var(--navy-600);
}

.muted {
  color: var(--mineral-500);
}

.mt-5 {
  margin-top: var(--space-5);
}

.grid-2 {
  display: grid;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 48em) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7);
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  --btn-border: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.btn:focus-visible {
  --btn-bg: var(--blue-dark);
  --btn-border: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-border: var(--navy);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  --btn-bg: var(--navy);
  --btn-border: var(--navy);
  color: var(--white);
}

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.7);
}

.btn--light:hover,
.btn--light:focus-visible {
  --btn-bg: var(--white);
  --btn-border: var(--white);
  color: var(--navy);
}

.btn--dark {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-border: var(--navy);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  --btn-bg: var(--navy-900);
  --btn-border: var(--navy-900);
}

.btn--lg {
  min-height: 3.5rem;
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal-strong);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--blue-dark);
}

.text-link svg {
  width: 1em;
  height: 1em;
}

/* --------------------------------------------------------------------------
   5. En-tête et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mineral-100);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px -16px rgba(17, 27, 39, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
}

/* Logo officiel (SVG). Deux fichiers : couleur et version claire pour les fonds sombres. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding-block: 0.25rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.brand__logo {
  width: auto;
  height: 2.6rem;   /* proportions du logo : 1011 × 325 */
}

.brand__logo--light {
  display: none;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: 0.6rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--teal-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  font-weight: 600;
}

.header-actions {
  display: none;
}

.btn--call svg {
  width: 1.15em;
  height: 1.15em;
}

.btn--call:hover svg {
  transform: none;
}

.header-call {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.8rem;
}

.header-call__num {
  display: none;
}

.header-actions .header-cta {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle__bars {
  position: relative;
  width: 1.375rem;
  height: 0.875rem;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) ease;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bars span:nth-child(3) { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(0.375rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-0.375rem) rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: var(--space-5) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur) var(--ease), opacity var(--dur) ease, visibility 0s linear var(--dur);
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur) var(--ease), opacity var(--dur) ease, visibility 0s;
}

.mobile-menu__list {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  border-top: 1px solid var(--mineral-100);
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--mineral-100);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}

.mobile-menu__link[aria-current="page"] {
  color: var(--blue-dark);
}

.mobile-menu__link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--mineral-300);
}

.mobile-menu__actions {
  display: grid;
  gap: var(--space-3);
}

.mobile-menu__foot {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-6);
}

.mobile-menu__logo {
  width: 9rem;
  height: auto;
  flex: none;
}

.mobile-menu__meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--mineral-500);
}

@media (min-width: 64em) {
  /* Logo horizontal : on resserre légèrement la navigation pour tout garder sur une ligne */
  .brand__logo {
    height: 2.5rem;
  }

  .site-header__inner {
    gap: var(--space-3);
  }

  .nav__link {
    padding-inline: 0.4rem;
  }

  .nav__link::after {
    left: 0.4rem;
    right: 0.4rem;
  }

  .nav {
    display: block;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .nav-toggle,
  .mobile-menu {
    display: none;
  }
}

@media (min-width: 80em) {
  .header-call__num {
    display: inline;
  }

  .header-call {
    padding-inline: 0.8rem;
  }
}

/* En-tête transparent au-dessus du hero (accueil), à toutes les tailles d'écran */
.site-header--over {
  margin-bottom: calc(-1 * var(--header-h));
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .brand__logo:not(.brand__logo--light) {
  display: none;
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .brand__logo--light {
  display: block;
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .nav__link,
.site-header--over:not(.is-scrolled):not(.is-menu-open) .nav-toggle {
  color: var(--white);
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .nav__link::after {
  background: var(--teal);
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .header-call {
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.7);
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .header-call:hover,
.site-header--over:not(.is-scrolled):not(.is-menu-open) .header-call:focus-visible {
  --btn-bg: var(--white);
  --btn-border: var(--white);
  color: var(--navy);
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .header-cta {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
  --btn-border: var(--white);
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) .header-cta:hover,
.site-header--over:not(.is-scrolled):not(.is-menu-open) .header-cta:focus-visible {
  --btn-bg: var(--blue);
  --btn-border: var(--blue);
  color: var(--white);
}

.site-header--over:not(.is-scrolled):not(.is-menu-open) :focus-visible {
  outline-color: var(--teal);
}

/* --------------------------------------------------------------------------
   6. Hero (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 56rem);
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-7);
  color: var(--white);
  background: var(--navy-900);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 27, 39, 0.88) 0%, rgba(17, 27, 39, 0.72) 42%, rgba(17, 27, 39, 0.25) 100%),
    linear-gradient(180deg, rgba(17, 27, 39, 0.5) 0%, rgba(17, 27, 39, 0) 30%, rgba(17, 27, 39, 0.55) 100%);
}

.hero__content {
  max-width: 44rem;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.hero__kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--teal);
  flex: none;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-5);
}

.hero__lead {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: var(--space-6);
}

.hero .btn-group {
  margin-bottom: var(--space-8);
}

.hero .btn-group .btn {
  flex: 1 1 13rem;
}

@media (min-width: 40em) {
  .hero .btn-group .btn {
    flex: 0 0 auto;
  }
}

/* Réglet : trait de niveau gradué, signature graphique du site */
.ruler {
  position: relative;
  height: 14px;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px) left bottom / 100% 10px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  color: rgba(255, 255, 255, 0.55);
  transform-origin: left;
}

.ruler--dark {
  color: var(--mineral-300);
}

.hero__facts {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.hero__facts strong {
  display: block;
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 40em) {
  .hero__facts {
    grid-template-columns: repeat(3, auto);
    gap: var(--space-7);
    justify-content: start;
  }
}

/* Animation d'entrée du hero (une seule séquence orchestrée) */
.hero__kicker { --i: 0; }
.hero h1 { --i: 1; }
.hero__lead { --i: 2; }
.hero .btn-group { --i: 3; }
.hero__facts { --i: 4; }

.stagger > :nth-child(1) { --i: 0; }
.stagger > :nth-child(2) { --i: 1; }
.stagger > :nth-child(3) { --i: 2; }
.stagger > :nth-child(4) { --i: 3; }
.stagger > :nth-child(5) { --i: 4; }
.stagger > :nth-child(6) { --i: 5; }
.stagger > :nth-child(7) { --i: 6; }
.stagger > :nth-child(8) { --i: 7; }

.hero [data-hero] {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 0.8s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

.hero .ruler {
  transform: scaleX(0);
  animation: ruler-in 1.1s var(--ease) forwards;
  animation-delay: 420ms;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ruler-in {
  to {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   7. En-tête de page intérieure
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: var(--plaster);
  border-bottom: 1px solid var(--mineral-100);
}

.page-hero h1 {
  font-size: var(--text-h1-page);
  max-width: 20ch;
}

.page-hero__lead {
  font-size: var(--text-lg);
  color: var(--navy-600);
  max-width: var(--measure);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  font-size: var(--text-xs);
  color: var(--mineral-500);
}

.breadcrumb a {
  color: var(--mineral-500);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue-dark);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--mineral-300);
}

/* --------------------------------------------------------------------------
   8. Images
   -------------------------------------------------------------------------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mineral-100);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.img-frame--4x5 { aspect-ratio: 4 / 5; }
.img-frame--3x4 { aspect-ratio: 3 / 4; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--3x2 { aspect-ratio: 3 / 2; }
.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--square { aspect-ratio: 1; }

@media (hover: hover) {
  a.img-frame:hover img,
  .img-frame--hover:hover img {
    transform: scale(1.03);
  }
}

.img-note {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--mineral-500);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--mineral-200);
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   9. Accueil — introduction
   -------------------------------------------------------------------------- */
.intro__text h2 {
  max-width: 18ch;
}

.intro__points {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.intro__points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--navy-600);
}

.intro__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.9rem;
  height: 2px;
  background: var(--teal-strong);
}

.intro__figure {
  display: grid;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   10. Carrousels tactiles
   -------------------------------------------------------------------------- */
.carousel {
  display: flex;
  gap: var(--space-3);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel > * {
  flex: 0 0 min(80%, 21rem);
  scroll-snap-align: start;
}

.carousel-progress {
  position: relative;
  height: 2px;
  max-width: 12rem;
  margin-top: var(--space-5);
  background: var(--mineral-200);
  border-radius: 2px;
  overflow: hidden;
}

.carousel-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--carousel-size, 30%);
  background: var(--teal-strong);
  border-radius: 2px;
  transform: translateX(var(--carousel-offset, 0%));
  transition: transform 0.15s linear;
}

.section--dark .carousel-progress {
  background: rgba(255, 255, 255, 0.18);
}

.section--dark .carousel-progress span {
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   10 bis. Accueil — prestations en panneaux photographiques
   Mobile / tablette / écrans tactiles : carrousel de grandes cartes.
   Ordinateur (souris) : accordéon horizontal, le panneau survolé s'élargit.
   -------------------------------------------------------------------------- */
.svc {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-block: 0;
}

.svc__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.svc__link img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.svc__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 27, 39, 0) 30%, rgba(17, 27, 39, 0.55) 58%, rgba(17, 27, 39, 0.9) 100%);
  transition: background-color 0.6s ease;
}

.svc__link:hover,
.svc__link:focus-visible {
  color: var(--white);
}

.svc__link:focus-visible {
  outline-offset: 4px;
}

.svc__body {
  display: block;
  padding: var(--space-5);
}

.svc__title {
  display: block;
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.svc__desc {
  display: block;
  margin: 0 0 var(--space-4);
  max-width: 32ch;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.svc__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 1.5px solid var(--teal);
}

.svc__more svg {
  width: 1em;
  height: 1em;
  transition: transform var(--dur-fast) var(--ease);
}

.svc__link:hover .svc__more svg {
  transform: translateX(3px);
}

.svc__vlabel {
  display: none;
}

.svc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.svc-foot .carousel-progress {
  margin-top: 0;
  flex: 1 1 100%;
}

.svc + .svc-foot {
  margin-top: var(--space-5);
}

@media (min-width: 64em) and (hover: hover) {
  .svc {
    display: flex;
    gap: 0.625rem;
    height: clamp(30rem, 24rem + 12vw, 36rem);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .svc > .svc__item {
    flex: 1 1 0;
    min-width: 0;
    transition: flex-grow 0.7s var(--ease);
  }

  .svc > .svc__item.is-active {
    flex-grow: 4;
  }

  .svc__link {
    aspect-ratio: auto;
  }

  .svc__link::after {
    background-color: rgba(17, 27, 39, 0.38);
  }

  .svc__item.is-active .svc__link::after {
    background-color: rgba(17, 27, 39, 0);
  }

  .svc__item.is-active .svc__link img {
    transform: scale(1.03);
  }

  /* Titre vertical lisible dans un panneau étroit */
  .svc__vlabel {
    display: block;
    position: absolute;
    left: 50%;
    bottom: var(--space-5);
    margin-left: -0.7em;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: opacity 0.3s ease;
  }

  .svc__item.is-active .svc__vlabel {
    opacity: 0;
  }

  /* Contenu détaillé : largeur fixe pour éviter tout recalcul du texte pendant l'animation */
  .svc__body {
    width: 23rem;
    max-width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .svc__item.is-active .svc__body {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease 0.25s, transform 0.6s var(--ease) 0.25s;
  }

  .svc-foot .carousel-progress {
    display: none;
  }

  .svc-foot .text-link {
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   11. Accueil — d'un espace brut à une pièce prête à vivre (comparateur sur un même chantier)
   -------------------------------------------------------------------------- */
.proof-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.proof-head h2 {
  max-width: 16ch;
  margin-bottom: 0;
}

.proof-head p {
  font-size: var(--text-lg);
  color: var(--navy-600);
  max-width: 48ch;
}

/* Les deux images du comparateur sont verticales (4:5) : à partir de 48em, le texte
   et le comparateur se partagent la largeur au lieu de s'empiler. */
@media (min-width: 48em) {
  .proof {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-7);
    align-items: center;
  }

  .proof .proof-head {
    margin-bottom: 0;
  }

  .proof .ba-figure {
    width: 100%;
    max-width: 34rem;
    justify-self: end;
  }
}

@media (min-width: 64em) {
  .proof {
    gap: var(--space-8);
  }
}

/* Comparateur « pendant / après » d'un même chantier.
   Les deux photos sont côte à côte, chacune avec son propre cadrage, et se rejoignent
   sur la séparation : la photo « pendant » est collée à sa droite, la photo « après »
   à sa gauche. Déplacer la séparation (--pos) révèle davantage l'une ou l'autre,
   sans jamais les superposer ni les déformer. */
.ba-figure {
  margin: 0;
}

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mineral-100);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ba__pane {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.ba__pane--before {
  left: 0;
  width: var(--pos);
}

.ba__pane--after {
  left: var(--pos);
  right: 0;
}

.ba__pane img {
  position: absolute;
  top: 0;
  width: auto;
  max-width: none;
  height: 100%;
  pointer-events: none;
}

.ba__pane--before img {
  right: 0;
}

.ba__pane--after img {
  left: 0;
}

.ba__label {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  max-width: calc(100% - 1.5rem);
  padding: 0.3rem 0.6rem;
  overflow: hidden;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(17, 27, 39, 0.72);
  border-radius: var(--radius);
}

.ba__label--after {
  left: auto;
  right: var(--space-3);
  background: var(--blue);
}

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

.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2f42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
  box-shadow: 0 4px 14px -6px rgba(17, 27, 39, 0.45);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease);
}

.ba.is-dragging .ba__handle::after {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Le curseur natif reste accessible au clavier et aux lecteurs d'écran ;
   la souris et le doigt sont gérés par main.js sur toute la surface. */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.ba__range:focus-visible + .ba__handle::after {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.ba-figure__caption {
  margin-top: var(--space-3);
  max-width: var(--measure);
  font-size: var(--text-sm);
  color: var(--navy-600);
}

.ba-figure__caption strong {
  display: block;
  color: var(--navy);
}

@media (min-width: 48em) {
  .ba {
    aspect-ratio: 16 / 9;
  }
}

/* Variante superposée : deux images au MÊME cadrage, empilées l'une sur l'autre.
   L'image « après » n'est visible qu'à droite de la séparation (clip-path) ;
   l'image « pendant » reste entière dessous. Cadre vertical 4:5 à toutes les tailles. */
.ba.ba--overlay {
  aspect-ratio: 4 / 5;
}

.ba--overlay .ba__pane {
  inset: 0;
  width: auto;
}

.ba--overlay .ba__pane--after {
  z-index: 1;
  -webkit-clip-path: inset(0 0 0 var(--pos));
  clip-path: inset(0 0 0 var(--pos));
}

.ba--overlay .ba__pane img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   12. Méthode — 4 étapes, texte toujours visible
   Mobile : cartes à faire défiler. Tablette : 2 colonnes. Ordinateur : 4 colonnes ;
   au survol, l'étape est mise en avant et le trait de niveau progresse jusqu'à elle.
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-block: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border-top: 2px solid var(--teal);
  border-radius: 0 0 var(--radius) var(--radius);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal);
  transform-origin: left bottom;
  transition: transform 0.5s var(--ease), color 0.4s ease;
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--mineral-200);
}

@media (min-width: 48em) {
  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .steps + .carousel-progress {
    display: none;
  }
}

@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step {
    padding: var(--space-6) var(--space-5);
    background: transparent;
    border-top-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.4s ease, border-color 0.4s ease;
  }

  .step.is-done {
    border-top-color: var(--teal);
  }

  .step.is-active {
    background: rgba(255, 255, 255, 0.06);
  }

  .step::before {
    color: rgba(255, 255, 255, 0.4);
  }

  .step.is-done::before {
    color: var(--teal);
  }

  .step.is-active::before {
    transform: scale(1.25);
  }
}

/* --------------------------------------------------------------------------
   13. Galerie et lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery__item {
  margin: 0;
}

.gallery__link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mineral-100);
  aspect-ratio: 4 / 5;
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

@media (hover: hover) {
  .gallery__link:hover img {
    transform: scale(1.04);
  }
}

.gallery__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--mineral-500);
}

.gallery__caption span {
  white-space: nowrap;
}

.gallery__caption strong {
  color: var(--navy);
  font-weight: 600;
}

@media (min-width: 40em) {
  .gallery {
    gap: var(--space-4);
  }
}

@media (min-width: 48em) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64em) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: rgba(17, 27, 39, 0.94);
  color: var(--white);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__figure {
  margin: 0;
  width: min(92vw, 80rem);
  max-height: 100%;
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  font-size: var(--text-sm);
  color: var(--mineral-200);
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox__close {
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
}

.lightbox__prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  top: max(1.4rem, calc(env(safe-area-inset-top) + 0.4rem));
  left: 1.25rem;
  font-size: var(--text-xs);
  color: var(--mineral-300);
}

/* --------------------------------------------------------------------------
   14. Prestations — page éditoriale
   -------------------------------------------------------------------------- */
.service-block {
  display: grid;
  gap: var(--space-5);
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--mineral-100);
}

.service-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service-block__media .img-frame {
  aspect-ratio: 4 / 3;
}

.service-block__body h2 {
  max-width: 18ch;
}

.service-block__body p {
  color: var(--navy-600);
}

.service-block__examples {
  list-style: none;
  margin: var(--space-5) 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.service-block__examples li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--text-sm);
}

.service-block__examples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.75rem;
  height: 2px;
  background: var(--teal-strong);
}

.service-block__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 48em) {
  .service-block {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
    align-items: center;
  }

  .service-block--flip .service-block__media {
    order: 2;
  }

  .service-block__media .img-frame {
    aspect-ratio: 4 / 5;
  }
}

.service-index {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-index a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--mineral-200);
  border-radius: 999px;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.service-index a:hover {
  border-color: var(--navy);
}

/* --------------------------------------------------------------------------
   15. Zone d'intervention
   -------------------------------------------------------------------------- */
.areas {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0 var(--space-6);
}

.areas__group {
  padding-top: var(--space-3);
  border-top: 1px solid var(--mineral-200);
}

.areas__group--main {
  border-top: 2px solid var(--teal-strong);
}

.areas__title {
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

.areas__list {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--navy-600);
}

.zone-map {
  margin: 0;
}

.zone-map svg {
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin-inline: auto;
}

.zone-map figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--mineral-500);
  text-align: center;
}

.zone-map__dept {
  fill: var(--ice-soft);
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.zone-map__ems {
  fill: var(--blue);
  fill-opacity: 0.32;
  stroke: var(--blue);
  stroke-width: 1;
  stroke-linejoin: round;
}

.zone-map__town {
  fill: var(--navy);
}

.zone-map__city {
  fill: var(--blue);
  stroke: var(--white);
  stroke-width: 2;
}

.zone-map text {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--navy-600);
}

.zone-map .zone-map__label-main {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  fill: var(--navy);
}

.zone-map .zone-map__label-dept {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  fill: var(--blue-dark);
  fill-opacity: 0.55;
}

.notice {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--teal-strong);
  background: var(--ice-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   16. À propos
   -------------------------------------------------------------------------- */
.about-facts {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-facts li {
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--mineral-200);
}

.about-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.about-facts span {
  font-size: var(--text-sm);
  color: var(--mineral-500);
}

@media (min-width: 40em) {
  .about-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.values {
  display: grid;
  gap: var(--space-5);
}

.values__item {
  padding-top: var(--space-4);
  border-top: 1px solid var(--mineral-200);
}

.values__item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.values__item p {
  color: var(--navy-600);
  font-size: var(--text-sm);
}

@media (min-width: 48em) {
  .values {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 64em) {
  .values {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   17. Formulaire
   -------------------------------------------------------------------------- */
.form-layout {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 64em) {
  .form-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--space-9);
    align-items: start;
  }

  .form-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.form {
  display: grid;
  gap: var(--space-6);
}

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: var(--space-4);
}

.form legend {
  padding: 0;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form-row {
  display: grid;
  gap: var(--space-4);
  /* Chaque colonne garde sa hauteur naturelle : un texte d'aide dans une
     colonne n'étire plus l'autre (labels et champs restent alignés en haut). */
  align-items: start;
}

@media (min-width: 40em) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field label,
.field__label-text {
  font-size: var(--text-sm);
  font-weight: 600;
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--mineral-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--mineral-300);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2f42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--ice-soft);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  display: none;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--error);
}

.field.has-error .field__error,
.consent-field.has-error .field__error {
  display: block;
}

.consent-field {
  display: grid;
  gap: 0.4rem;
}

.field__files {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.field--files .field__label-text { margin: 0; }

/* Une ligne par photo : libellé, bouton, nom du fichier, bouton retirer */
.file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: 0.65rem 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--mineral-200);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) ease;
}

.file-picker.has-file {
  border-color: var(--mineral-300);
}

.file-picker__num {
  flex: 0 0 auto;
  min-width: 4.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}

/* Le vrai champ fichier reste dans le formulaire (envoi Netlify inchangé),
   il est seulement masqué visuellement ; le label sert de bouton. */
.field .file-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.field .file-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  background: var(--plaster);
  border: 1px solid var(--mineral-300);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.file-picker__btn svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.field .file-picker__btn:hover {
  background: var(--ice-soft);
  border-color: var(--blue);
  color: var(--blue-dark);
}

.file-picker__input:focus-visible + .file-picker__btn {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.file-picker__input[aria-invalid="true"] + .file-picker__btn {
  border-color: var(--error);
}

.file-picker__name {
  flex: 1 1 10rem;
  min-width: 0;
  font-size: var(--text-sm);
  color: var(--mineral-500);
  overflow-wrap: anywhere;
}

.file-picker.has-file .file-picker__name {
  color: var(--navy);
  font-weight: 500;
}

.file-picker__clear {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  padding: 0;
  color: var(--mineral-500);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.file-picker__clear[hidden] {
  display: none;
}

.file-picker__clear svg {
  width: 1.1rem;
  height: 1.1rem;
}

.file-picker__clear:hover {
  color: var(--error);
  border-color: var(--mineral-200);
}

.choice-grid {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 30em) {
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  font-size: var(--text-sm);
  background: var(--white);
  border: 1.5px solid var(--mineral-300);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--blue);
  flex: none;
}

.choice:hover {
  border-color: var(--navy);
}

.choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--ice-soft);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--navy-600);
}

.consent input {
  margin: 0.25rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--blue);
}

.form-status {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.form-status.is-error {
  display: block;
  color: var(--error);
  background: #fbeceb;
  border: 1px solid #f0c5c1;
}

.form-status.is-success {
  display: block;
  color: var(--success);
  background: #e9f3ed;
  border: 1px solid #bfdcc9;
}

.form-submit {
  display: grid;
  gap: var(--space-3);
}

.form-submit .btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.form-submit__note {
  font-size: var(--text-xs);
  color: var(--mineral-500);
}

/* Cache le champ honeypot sans le retirer du DOM */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Colonne latérale */
.aside-card {
  padding: var(--space-5);
  background: var(--plaster);
  border-radius: var(--radius-lg);
}

.aside-card + .aside-card {
  margin-top: var(--space-4);
}

.aside-card--call {
  background: var(--ice-soft);
}

.aside-card h2,
.aside-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.aside-card p,
.aside-card li {
  font-size: var(--text-sm);
  color: var(--navy-600);
}

.aside-card ul {
  padding-left: 1.1rem;
  margin: 0;
}

.contact-lines {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-lines li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
}

.contact-lines svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blue);
  margin-top: 0.1rem;
}

.contact-lines a {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   18. Bloc devis (CTA final)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding-block: var(--section);
}

.cta-band h2 {
  color: var(--white);
  max-width: 16ch;
  margin-bottom: var(--space-3);
}

.cta-band p {
  color: var(--mineral-200);
  max-width: 40ch;
  font-size: var(--text-lg);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cta-band__actions .btn {
  flex: 1 1 15rem;
}

@media (min-width: 48em) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-8);
  }

  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band__actions .btn {
    flex: 0 0 auto;
  }
}

/* --------------------------------------------------------------------------
   19. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--mineral-300);
  padding-block: var(--space-8) calc(var(--space-6) + 4.5rem);
  font-size: var(--text-sm);
}

.site-footer a {
  color: var(--mineral-200);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

.footer-logo {
  display: inline-block;
  border-radius: var(--radius);
}

.footer-logo img {
  width: 12rem;
  height: auto;
}

.footer-phone {
  font-weight: 600;
}

.footer-brand p {
  margin-top: var(--space-4);
  max-width: 34ch;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mineral-400);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: var(--mineral-400);
}

.footer-bottom a {
  color: var(--mineral-300);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-7);
  }
}

@media (min-width: 64em) {
  .site-footer {
    padding-bottom: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   20. Barre mobile fixe (Appeler / Demander un devis)
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--mineral-100);
  transform: translateY(0);
  transition: transform var(--dur) var(--ease);
}

.mobile-bar.is-hidden {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.mobile-bar .btn {
  min-height: 2.9rem;
  padding-inline: 0.75rem;
  font-size: var(--text-sm);
}

.mobile-bar.is-single {
  grid-template-columns: 1fr;
}

.mobile-bar__short {
  display: none;
}

@media (max-width: 24.99em) {
  .mobile-bar:not(.is-single) .mobile-bar__num {
    display: none;
  }

  .mobile-bar:not(.is-single) .mobile-bar__short {
    display: inline;
  }
}

@media (max-width: 22.49em) {
  .mobile-bar {
    padding-inline: 0.75rem;
  }

  .mobile-bar .btn {
    padding-inline: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* Placeholders visibles dans les pages légales (remplacés avant mise en ligne) */
.placeholder {
  display: inline-block;
  padding: 0 0.35rem;
  border: 1px dashed var(--blue);
  border-radius: 3px;
  color: var(--blue-dark);
  font-weight: 600;
}

/* Image de secours (photo distante indisponible) */
img.is-fallback {
  object-fit: cover;
  background: var(--mineral-100);
}

@media (min-width: 64em) {
  .mobile-bar {
    display: none;
  }
}

/* Bouton « Retour en haut » (créé par main.js) */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(17, 27, 39, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur), background-color var(--dur-fast) ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s, background-color var(--dur-fast) ease;
}

.to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

.to-top:hover {
  background: var(--blue);
}

.to-top:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}

/* Au-dessus de la barre d'actions mobile, sans la recouvrir */
@media (max-width: 63.99em) {
  .has-mobile-bar .to-top {
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 64em) {
  .to-top {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}

/* --------------------------------------------------------------------------
   21. Pages techniques (mentions, confidentialité, merci)
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--measure);
}

.prose h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-7);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-5);
}

.prose p,
.prose li {
  color: var(--navy-600);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose .placeholder {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  color: var(--blue-dark);
  background: var(--ice-soft);
  border-radius: 3px;
}

.confirm {
  min-height: 60vh;
  display: grid;
  align-items: center;
}

.confirm__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-5);
  color: var(--blue);
}

.confirm h1 {
  font-size: var(--text-h1-page);
}

.confirm__next {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--plaster);
  border-radius: var(--radius-lg);
}

.confirm__next h2 {
  font-size: var(--text-xl);
}

.confirm__next ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--navy-600);
}

/* --------------------------------------------------------------------------
   22. Placeholders de configuration ([TELEPHONE], [EMAIL]…)
   Un élément data-config dont le contenu contient encore un placeholder
   est masqué par main.js jusqu'à ce que l'information soit renseignée.
   -------------------------------------------------------------------------- */
[data-config].is-unset {
  display: none;
}

/* --------------------------------------------------------------------------
   23. Apparition au défilement
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sans JavaScript ou avec mouvement réduit : tout est visible */
.no-js .reveal,
.no-js .hero [data-hero] {
  opacity: 1;
  transform: none;
  animation: none;
}

.no-js .hero .ruler {
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero [data-hero] {
    opacity: 1;
    transform: none;
  }

  .hero .ruler {
    transform: none;
  }

  .svc__link img,
  .svc__item.is-active .svc__link img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   24. Impression
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-bar,
  .to-top,
  .mobile-menu,
  .cta-band,
  .skip-link,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
