@charset "UTF-8";
/* ==========================================================================
   BOX LUBERON — Feuille de styles unique
   Votre espace, votre liberté.
   --------------------------------------------------------------------------
   01. Tokens          11. Timeline (etapes)
   02. Reset & bases   12. Tarifs / formules
   03. Typographie     13. Comparatif
   04. Layout          14. FAQ
   05. Boutons         15. Formulaires
   06. Header & nav    16. Carte
   07. Fil d'Ariane    17. Footer & signature
   08. Hero            18. Pages legales
   09. Bandeau faits   19. 404 / merci
   10. Cartes          20. Animations
                       21. Responsive
                       22. Impression
   ========================================================================== */

/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  /* --- Palette de marque --- */
  --c-primary:        #000000;
  --c-secondary:      #0008FE;
  --c-accent:         #FF7511;
  --c-bg:             #FFFFFF;
  --c-text:           #1A1A1A;

  /* --- Neutres derives --- */
  --c-text-soft:      #4A4A4A;
  --c-text-muted:     #6B6B6B;
  --c-surface:        #F6F7F9;
  --c-surface-alt:    #EEF0F4;
  --c-border:         #E2E5EA;
  --c-border-strong:  #C9CED6;

  /* --- Teintes de marque --- */
  --c-secondary-dark: #0006C4;
  --c-secondary-tint: #EEEFFF;
  --c-accent-tint:    #FFF1E4;
  --c-accent-deep:    #A64200;   /* accent lisible en texte sur fond clair */

  /* --- Etats --- */
  --c-error:          #B3261E;
  --c-error-bg:       #FDECEA;
  --c-success:        #0F6E3F;
  --c-success-bg:     #E7F5ED;

  --c-focus:          #0008FE;

  /* --- Typographie --- */
  --font-heading: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-h1:   clamp(2rem, 1.6rem + 1.9vw, 3.25rem);
  --fs-h2:   clamp(1.5rem, 1.25rem + 1.3vw, 2.375rem);
  --fs-h3:   clamp(1.1875rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h4:   clamp(1.0625rem, 1.02rem + 0.25vw, 1.1875rem);
  --fs-h5:   1rem;
  --fs-h6:   0.9375rem;
  /* Chapeau volontairement discret : il accompagne le titre, il ne le double pas */
  --fs-lead: clamp(0.9375rem, 0.9rem + 0.22vw, 1.0625rem);
  --fs-body: 1rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;

  --lh-tight: 1.14;
  --lh-snug:  1.3;
  --lh-body:  1.7;
  --ls-tight: -0.02em;
  --ls-wide:  0.08em;

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

  --section-y: clamp(2.75rem, 1.9rem + 4vw, 5.5rem);

  /* --- Layout --- */
  --container:      1200px;
  --container-nar:  820px;
  --gutter:         clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);

  --header-h: 68px;

  /* --- Rayons --- */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-pill: 999px;

  /* --- Elevations --- */
  --sh-xs: 0 1px 2px rgba(16, 18, 26, 0.06);
  --sh-sm: 0 2px 8px rgba(16, 18, 26, 0.07);
  --sh-md: 0 8px 24px rgba(16, 18, 26, 0.10);
  --sh-lg: 0 18px 46px rgba(16, 18, 26, 0.14);

  /* --- Mouvement ---------------------------------------------------------
     Direction artistique « dynamique » = animations NOMBREUSES et AMPLES,
     que l'oeil a le temps de suivre — surtout pas des animations rapides.
     Seuls les retours au survol restent brefs : une interaction doit
     repondre instantanement. */
  --t-hover:      200ms;   /* survol : reponse immediate */
  --t-enter:      900ms;   /* apparition d'un bloc */
  --t-enter-slow: 1300ms;  /* apparition d'une image */
  --t-stagger:    130ms;   /* decalage entre deux elements d'une serie */

  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.30, 1);   /* decelere longuement */

  --z-header: 1000;
  --z-drawer: 1100;
}

/* ==========================================================================
   02. RESET & BASES
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: var(--header-h);
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg, iframe { max-width: 100%; display: block; }
img { height: auto; border-style: none; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }

a { color: var(--c-secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-secondary-dark); }

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

::selection      { background: var(--c-accent); color: #1A1A1A; text-shadow: none; }
::-moz-selection { background: var(--c-accent); color: #1A1A1A; text-shadow: none; }

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

.skip-link {
  position: absolute; left: var(--sp-4); top: var(--sp-2);
  z-index: calc(var(--z-header) + 10);
  transform: translateY(-200%);
  background: var(--c-primary); color: #FFFFFF;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
  transition: transform var(--t-hover) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #FFFFFF; }

.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;
}
[hidden] { display: none !important; }

/* ==========================================================================
   03. TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-heading);
  color: var(--c-text);
  font-weight: 700;
  line-height: var(--lh-snug);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); font-weight: 800; }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-tight); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--c-text-soft); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--c-text-soft); }

strong, b { font-weight: 600; color: var(--c-text); }
small { font-size: var(--fs-xs); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--c-secondary);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--c-accent); }
.eyebrow--on-dark { color: #FFFFFF; }

.list-check { list-style: none; display: grid; gap: var(--sp-3); }
.list-check li {
  position: relative;
  padding-left: calc(var(--sp-6) + var(--sp-1));
  color: var(--c-text-soft);
}
.list-check li::before {
  content: "";
  position: absolute; left: 0; top: 0.28em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7511' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}
.list-check strong { color: var(--c-text); }

.prose > * + * { margin-top: var(--sp-4); }
.prose ul, .prose ol { padding-left: var(--sp-5); display: grid; gap: var(--sp-2); }
.prose li { color: var(--c-text-soft); }

/* ==========================================================================
   04. LAYOUT
   ========================================================================== */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-nar); }

.section { padding-block: var(--section-y); }
.section--surface { background: var(--c-surface); }
.section--tint    { background: var(--c-secondary-tint); }
.section--dark    { background: var(--c-primary); color: #FFFFFF; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #FFFFFF; }
.section--dark p, .section--dark li { color: rgba(255, 255, 255, 0.82); }
.section--dark a { color: #FFFFFF; }

.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--c-text-soft); font-size: var(--fs-lead); line-height: 1.65; margin-bottom: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.78); }

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

/* Un enfant de grille a `min-width: auto` par defaut : il refuse de devenir
   plus etroit que son contenu le plus long, ce qui fait deborder la page. */
.grid > *, .split > *, .hero-grid > *, .contact-layout > *,
.pricing-grid > *, .timeline > *, .footer-grid > *,
.page-hero-grid > *, .facts-band > * { min-width: 0; }

.stack   { display: grid; gap: var(--sp-4); align-content: start; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.center  { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: #1A1A1A;                    /* 6.44:1 sur l'accent — conforme AA */
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.5;
}
.badge--outline { background: transparent; border: 1.5px solid var(--c-border-strong); color: var(--c-text-soft); }
.badge--blue    { background: var(--c-secondary); color: #FFFFFF; }

.img-critical { display: block; }

.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--sh-md);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall   { aspect-ratio: 4 / 5; }
.media-frame--wide   { aspect-ratio: 16 / 10; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* Visuel detoure : aucun cadre, aucune ombre, aucun arrondi — l'image se
   fond dans le fond de page. Reserve aux PNG a fond transparent. */
.media-plain {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.media-plain img {
  width: 100%; height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* ==========================================================================
   05. BOUTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: #FFFFFF;
  --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: var(--sp-3) var(--sp-6);
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-heading);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition:
    background-color var(--t-hover) var(--ease),
    border-color     var(--t-hover) var(--ease),
    color            var(--t-hover) var(--ease),
    transform        var(--t-hover) var(--ease),
    box-shadow       var(--t-hover) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary:hover, .btn--primary:focus-visible {
  --btn-bg: var(--c-accent); --btn-bd: var(--c-accent); --btn-fg: #1A1A1A;
}
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--c-secondary); --btn-bd: var(--c-secondary); }
.btn--secondary:hover, .btn--secondary:focus-visible {
  --btn-bg: var(--c-secondary); --btn-fg: #FFFFFF; --btn-bd: var(--c-secondary);
}
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #FFFFFF; --btn-bd: rgba(255,255,255,0.55); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible {
  --btn-bg: #FFFFFF; --btn-fg: #1A1A1A; --btn-bd: #FFFFFF;
}

.btn--lg { min-height: 56px; padding: var(--sp-4) var(--sp-7); font-size: var(--fs-body); }
.btn--sm { min-height: 42px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* Groupe d'actions — sur mobile, les boutons occupent toute la largeur et
   sont donc parfaitement alignes entre eux (plus de largeurs disparates). */
.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-group--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; text-decoration: none; color: var(--c-secondary);
}
.link-arrow::after { content: "\2192"; transition: transform var(--t-hover) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   06. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}

/* Le flou est porte par un pseudo-element : applique sur .site-header,
   `backdrop-filter` ferait de celui-ci le BLOC CONTENEUR de ses descendants
   en position fixed, et le tiroir mobile serait dimensionne sur la hauteur
   du header au lieu du viewport. */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  transition: background-color var(--t-hover) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: var(--sh-sm); }
.site-header.is-scrolled::before { background: rgba(255, 255, 255, 0.97); }

.header-inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}

/* Logo agrandi sans epaissir le header : la hauteur du logo reste inferieure
   a --header-h, seule la marge interne se resserre. */
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand:focus-visible { outline-offset: 4px; }

.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  z-index: var(--z-drawer);
  background: var(--c-bg);
  padding: var(--sp-6) var(--gutter) var(--sp-8);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--sp-6);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 500ms var(--ease-out), visibility 500ms;
}
.primary-nav.is-open { transform: translateX(0); visibility: visible; }

.nav-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-1); }
.nav-link {
  display: block;
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--font-heading);
  font-size: 1.125rem; font-weight: 600; text-decoration: none;
  transition: color var(--t-hover) var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--c-secondary); }

.nav-actions { display: grid; gap: var(--sp-3); }
.nav-actions .btn { width: 100%; }

.nav-meta {
  display: grid; gap: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm); color: var(--c-text-soft);
}
.nav-meta a { color: var(--c-text-soft); text-decoration: none; font-weight: 500; }
.nav-meta a:hover { color: var(--c-secondary); }

.nav-toggle {
  --bar: var(--c-text);
  position: relative;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: transparent;
  flex: none;
}
.nav-toggle-box { position: relative; width: 20px; height: 14px; }
.nav-toggle-box span {
  position: absolute; left: 0; width: 100%; height: 2px;
  border-radius: 2px; background: var(--bar);
  transition: transform var(--t-hover) var(--ease), opacity 160ms var(--ease);
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 6px; }
.nav-toggle-box span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

.lang-switch { display: flex; gap: var(--sp-1); align-items: center; }
.lang-switch a {
  padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700;
  text-decoration: none; color: var(--c-text-muted); text-transform: uppercase;
}
.lang-switch a[aria-current="true"] { background: var(--c-surface-alt); color: var(--c-text); }

/* ==========================================================================
   06b. BANDEAU D'ANNONCE (pre-ouverture)
   Fixe au-dessus du header. Sa hauteur reelle est mesuree en JS et exposee
   via --banner-h (le texte peut occuper 1 a 3 lignes selon l'ecran) : voir
   js/announce-bar.js. A SUPPRIMER (ce bloc + le JS + le balisage HTML) une
   fois l'ouverture du 2 novembre 2026 passee.
   ========================================================================== */
.announce-bar {
  position: fixed; inset: 0 0 auto 0;
  z-index: calc(var(--z-drawer) + 10);
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-3) calc(var(--sp-8) + var(--sp-2));
  background: var(--c-accent);
  text-align: center;
}
.announce-bar p {
  margin: 0;
  max-width: 760px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.5;
  color: #1A1A1A;
}
.announce-bar-close {
  position: absolute; right: var(--sp-2); top: 50%;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: none; border-radius: var(--r-md);
  background: transparent; color: #1A1A1A;
  flex: none;
  transition: background-color var(--t-hover) var(--ease);
}
.announce-bar-close:hover { background: rgba(26, 26, 26, 0.12); }
.announce-bar-close svg { width: 16px; height: 16px; }

html.has-announce .site-header { top: var(--banner-h, 0px); }
html.has-announce body { padding-top: calc(var(--header-h) + var(--banner-h, 0px)); }
html.has-announce .primary-nav { inset: calc(var(--header-h) + var(--banner-h, 0px)) 0 0 0; }
html.has-announce { scroll-padding-top: calc(var(--header-h) + var(--banner-h, 0px) + var(--sp-4)); }

@media (max-width: 599.98px) {
  .announce-bar { padding: var(--sp-3) calc(var(--sp-7) + var(--sp-1)); }
}

/* ==========================================================================
   07. FIL D'ARIANE
   ========================================================================== */
.breadcrumb {
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.breadcrumb ol {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--c-text-muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "\203A"; color: var(--c-border-strong); font-size: 1rem; line-height: 1; }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-secondary); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* ==========================================================================
   08. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2rem, 1.4rem + 3vw, 4.5rem) clamp(2.25rem, 1.6rem + 3vw, 4.5rem);
  overflow: hidden;
}
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lead { margin-bottom: var(--sp-6); max-width: 32rem; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}
.hero-proof li {
  list-style: none; display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-soft);
}
.hero-proof svg { width: 20px; height: 20px; flex: none; color: var(--c-secondary); }

.hero-media { position: relative; }
.hero-media .media-frame { aspect-ratio: 4 / 3; box-shadow: var(--sh-lg); }

.hero-tag {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--sh-md);
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-text);
}
.hero-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); flex: none; }

/* --- Hero des pages internes ---------------------------------------------
   Deux colonnes : le texte n'est plus seul au milieu d'une zone blanche.
   L'espace sous le hero est volontairement reduit pour que le contenu
   principal demarre immediatement. */
.page-hero { padding-block: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem) clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.page-hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero .lead { max-width: 40rem; margin-bottom: 0; }
.page-hero .btn-group { margin-top: var(--sp-6); }

/* Le bloc qui suit immediatement un hero interne se rapproche. */
.page-hero + .section { padding-top: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem); }

/* Encart d'appui a droite du hero interne (faits, resume tarifaire, contact) */
.hero-aside {
  display: grid; gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.hero-aside h2 {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--c-text-muted); margin-bottom: 0;
}
.hero-aside-list { list-style: none; display: grid; gap: var(--sp-4); }
.hero-aside-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.hero-aside-list .ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-bg); color: var(--c-secondary);
  border: 1px solid var(--c-border);
}
.hero-aside-list .ico svg { width: 19px; height: 19px; }
.hero-aside-list strong { display: block; font-size: var(--fs-sm); color: var(--c-text); }
.hero-aside-list span { font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.55; }

/* ==========================================================================
   09. BANDEAU DE FAITS
   Remplace l'ancienne bande noire pleine largeur : meme role de separation
   et de rythme entre les sections, mais integre a la charte au lieu de
   trancher brutalement avec le reste de la page.
   ========================================================================== */
.facts-band {
  position: relative;
  padding-block: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}
/* Filet accentue : rappel discret de la couleur de marque */
.facts-band::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-secondary) 0%, var(--c-accent) 100%);
}
/* 2 colonnes des le mobile : quatre faits empiles verticalement etireraient
   inutilement la page. */
.facts-list { list-style: none; display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); }
.facts-list li {
  display: grid; gap: var(--sp-1);
  text-align: center;
  padding-inline: var(--sp-3);
}
.facts-list .fact-k {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
}
.facts-list .fact-k em { font-style: normal; color: var(--c-accent-deep); }
.facts-list .fact-l {
  font-size: var(--fs-xs); color: var(--c-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   10. CARTES
   ========================================================================== */
.card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg);
  transition: transform var(--t-hover) var(--ease),
              box-shadow var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.card h3 { margin-bottom: 0; }
.card p  { color: var(--c-text-soft); margin-bottom: 0; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--c-border); }

.card-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-secondary-tint); color: var(--c-secondary);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--accent { background: var(--c-accent-tint); color: var(--c-accent-deep); }

.audience-card {
  position: relative; overflow: hidden;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.audience-card h3 { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.audience-card ul { list-style: none; display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.audience-card li { position: relative; padding-left: var(--sp-5); color: var(--c-text-soft); font-size: var(--fs-sm); }
.audience-card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent);
}

/* Bloc alterne texte / image */
.split { display: grid; gap: var(--sp-6); align-items: center; }
.split .media-frame { aspect-ratio: 4 / 3; }

/* ==========================================================================
   11. TIMELINE (ETAPES)
   Vertical sur mobile et tablette (rail a gauche, lecture naturelle),
   horizontal sur desktop (rail traversant, numeros alignes).
   Une seule structure HTML pour les deux : plus de decalages de rendu.
   ========================================================================== */
.timeline {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: var(--sp-5);
  padding-bottom: var(--sp-7);
}
.timeline-item:last-child { padding-bottom: 0; }

/* Rail vertical reliant les pastilles */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 25px; top: 52px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--c-border) 0%, var(--c-border) 100%);
}
.timeline-item:last-child::before { display: none; }

.timeline-num {
  grid-row: 1 / span 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.0625rem;
  line-height: 1;
  position: relative; z-index: 1;
  transition: background-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.timeline-num::before { content: counter(step, decimal-leading-zero); }
.timeline-item:hover .timeline-num { background: var(--c-accent); color: #1A1A1A; transform: scale(1.06); }

.timeline-body { padding-top: var(--sp-1); }
.timeline-body h3 { margin-bottom: var(--sp-2); font-size: var(--fs-h4); }
.timeline-body p  { margin-bottom: 0; color: var(--c-text-soft); font-size: var(--fs-sm); }

/* ==========================================================================
   12. TARIFS / FORMULES
   Un seul format de box, plusieurs durees de location.
   ========================================================================== */

/* Fiche descriptive du box unique */
.box-spec {
  display: grid; gap: var(--sp-6);
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.box-spec-figures { list-style: none; display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
.box-spec-figures li {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  text-align: center;
}
.box-spec-figures .k {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 800; color: var(--c-text);
  line-height: 1.2;
}
.box-spec-figures .l { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 2px; }

/* Grille des formules de duree */
.pricing-grid { display: grid; gap: var(--sp-4); align-items: stretch; }

.price-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg);
  transition: transform var(--t-hover) var(--ease),
              box-shadow var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.price-card--featured {
  border-color: var(--c-primary);
  border-width: 2px;
  box-shadow: var(--sh-md);
}
.price-flag {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.price-term {
  font-family: var(--font-heading);
  font-size: var(--fs-h4); font-weight: 700;
  color: var(--c-text); margin: 0 0 var(--sp-1);
}
.price-sub { font-size: var(--fs-xs); color: var(--c-text-muted); margin: 0 0 var(--sp-5); }

.price-amount { display: flex; align-items: baseline; justify-content: center; gap: var(--sp-1); margin: 0 0 var(--sp-2); }
.price-amount .val {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.875rem);
  font-weight: 800; line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
}
.price-amount .per { font-size: var(--fs-sm); color: var(--c-text-muted); font-weight: 500; }
.price-equiv {
  text-align: center;
  font-size: var(--fs-xs); color: var(--c-accent-deep);
  font-weight: 600;
  margin: 0 0 var(--sp-5);
  min-height: 1.4em;
}
.price-card .btn { margin-top: auto; }

/* La formule vedette et son contenu sont centres */
.price-card { text-align: center; }
.price-card .price-term, .price-card .price-sub { text-align: center; }

/* Tableau recapitulatif */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  -webkit-overflow-scrolling: touch;
}
table.rates {
  width: 100%; min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--c-bg);
}
table.rates caption {
  padding: var(--sp-4) var(--sp-5);
  text-align: left; font-size: var(--fs-xs);
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
}
table.rates th, table.rates td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
table.rates thead th {
  background: var(--c-surface);
  font-family: var(--font-heading);
  font-weight: 700; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: var(--ls-wide);
  color: var(--c-text-soft); white-space: nowrap;
}
table.rates tbody th { font-weight: 600; color: var(--c-text); }
table.rates tbody tr:last-child th, table.rates tbody tr:last-child td { border-bottom: none; }
table.rates tbody tr:hover { background: var(--c-surface); }
table.rates .num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   13. COMPARATIF
   Duel de deux colonnes plutot qu'un tableau neutre : l'avantage Box Luberon
   ressort visuellement au lieu d'etre noye dans une grille grise.
   ========================================================================== */
.versus { display: grid; gap: var(--sp-5); align-items: start; }

.versus-col {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
}

.versus-head {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.versus-head h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-h4); }
.versus-head p  { margin: 0; font-size: var(--fs-xs); color: var(--c-text-muted); }

.versus-list { list-style: none; display: grid; }
.versus-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.versus-list li:last-child { border-bottom: none; }
.versus-list .crit {
  grid-column: 1 / -1;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-1);
}
.versus-list .mark { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Colonne Box Luberon : mise en avant */
.versus-col--win { border: 2px solid var(--c-primary); box-shadow: var(--sh-md); }
.versus-col--win .versus-head {
  background: var(--c-primary);
  border-bottom-color: var(--c-primary);
}
.versus-col--win .versus-head h3 { color: #FFFFFF; }
.versus-col--win .versus-head p  { color: rgba(255, 255, 255, 0.7); }
.versus-col--win .versus-list li { color: var(--c-text); font-weight: 500; }
.versus-col--win .mark { color: var(--c-success); }

/* Colonne de reference : volontairement en retrait */
.versus-col--ref { background: var(--c-surface); }
.versus-col--ref .versus-list li { color: var(--c-text-muted); }
.versus-col--ref .mark { color: var(--c-border-strong); }

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.faq { display: grid; gap: var(--sp-3); }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  overflow: hidden;
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.faq-item[open] { border-color: var(--c-border-strong); box-shadow: var(--sh-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  cursor: pointer; list-style: none;
  font-family: var(--font-heading);
  font-weight: 600; font-size: var(--fs-h5);
  color: var(--c-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-secondary); }
.faq-item summary::after {
  content: ""; width: 22px; height: 22px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230008FE' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 300ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-answer { padding: 0 var(--sp-5) var(--sp-5); color: var(--c-text-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   15. FORMULAIRES
   ========================================================================== */
.form-card {
  padding: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg);
  box-shadow: var(--sh-sm);
}

.form-grid { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }

.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }
.field .req { color: var(--c-error); margin-left: 2px; }
.field .hint { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* `appearance: none` est volontairement limite aux champs texte et select.
   Applique aux cases a cocher, il supprime leur rendu natif : la case
   resterait un carre blanc immuable, donnant l'impression qu'elle ne
   fonctionne pas. Les cases sont stylees explicitement plus bas. */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-body);
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
  padding-right: var(--sp-8);
}
.field input::placeholder, .field textarea::placeholder { color: #9A9A9A; }

.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover {
  border-color: var(--c-text-muted);
}
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(0, 8, 254, 0.14);
}

.field.has-error input:not([type="checkbox"]),
.field.has-error select,
.field.has-error textarea { border-color: var(--c-error); }

.field-error {
  display: none; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600; color: var(--c-error);
}
.field.has-error .field-error { display: flex; }
.field-error::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Case a cocher legale (RGPD) -----------------------------------------
   Case entierement stylee, avec un etat coche parfaitement visible. */
.field-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease);
}
.field-consent:hover { border-color: var(--c-border-strong); }

.field-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px; height: 24px;
  min-height: 0; min-width: 0;
  flex: none;
  margin: 0; padding: 0;
  border: 2px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background-color: var(--c-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0 0;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease),
              background-size var(--t-hover) var(--ease);
}
.field-consent input[type="checkbox"]:hover { border-color: var(--c-secondary); }
.field-consent input[type="checkbox"]:checked {
  background-color: var(--c-secondary);
  border-color: var(--c-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 15px 15px;
}
.field-consent input[type="checkbox"]:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

.field-consent label {
  font-size: var(--fs-xs); font-weight: 500;
  line-height: 1.6; color: var(--c-text-soft);
  cursor: pointer;
}
.field-consent a { color: var(--c-secondary); font-weight: 600; }
.field-consent .field-error { grid-column: 1 / -1; }
.field-consent.has-error { border-color: var(--c-error); background: var(--c-error-bg); }
.field-consent.has-error input[type="checkbox"] { border-color: var(--c-error); }

/* Piege a robots */
.hp-field {
  position: absolute !important;
  left: -9999px !important; top: auto;
  width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.form-status {
  display: none; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500;
  border: 1.5px solid transparent;
}
.form-status.is-visible { display: flex; }
.form-status--error   { background: var(--c-error-bg);   border-color: rgba(179,38,30,0.32);  color: var(--c-error); }
.form-status--success { background: var(--c-success-bg); border-color: rgba(15,110,63,0.32);  color: var(--c-success); }

.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading::before {
  content: "";
  width: 17px; height: 17px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside { display: grid; gap: var(--sp-4); align-content: start; }
.contact-block {
  display: grid; grid-template-columns: auto 1fr;
  gap: var(--sp-4); align-items: start;
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg);
}
.contact-block > * { min-width: 0; }
.contact-block .card-icon { width: 44px; height: 44px; }
.contact-block .card-icon svg { width: 22px; height: 22px; }
.contact-block h3 { font-size: var(--fs-h5); margin-bottom: var(--sp-1); }
.contact-block p, .contact-block address {
  margin: 0; font-style: normal;
  font-size: var(--fs-sm); color: var(--c-text-soft); line-height: 1.6;
  overflow-wrap: break-word;
}
.contact-block a { color: var(--c-text-soft); text-decoration: none; font-weight: 600; }
.contact-block a:hover { color: var(--c-secondary); text-decoration: underline; }

/* ==========================================================================
   16. CARTE
   ========================================================================== */
.map-embed {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3; min-height: 260px;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-sm); font-weight: 600;
}

/* ==========================================================================
   17. FOOTER & SIGNATURE
   ========================================================================== */
.site-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--fs-sm);
}
.footer-grid { display: grid; gap: var(--sp-7); }

.footer-brand img { height: 44px; width: auto; margin-bottom: var(--sp-4); }
.footer-brand p { color: rgba(255, 255, 255, 0.66); max-width: 30rem; }
.footer-slogan {
  display: block; margin-bottom: var(--sp-3);
  font-family: var(--font-heading);
  font-size: var(--fs-h5); font-weight: 600; color: #FFFFFF;
}

.footer-col h2 {
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--ls-wide);
  color: #FFFFFF; margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: grid; gap: var(--sp-3); }
.footer-col a {
  color: rgba(255, 255, 255, 0.72); text-decoration: none;
  transition: color var(--t-hover) var(--ease);
}
.footer-col a:hover { color: var(--c-accent); }
.footer-col address { font-style: normal; line-height: 1.7; color: rgba(255,255,255,0.72); }

.footer-hours {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF; font-size: var(--fs-xs); font-weight: 600;
}
.footer-hours .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); flex: none; }

.footer-bottom {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.58);
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-bottom a { color: rgba(255, 255, 255, 0.58); text-decoration: none; }
.footer-bottom a:hover { color: #FFFFFF; text-decoration: underline; }

.signature-bar {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--sp-3);
  text-align: center; font-size: var(--fs-xs);
}
.signature-bar a {
  color: rgba(255, 255, 255, 0.66); text-decoration: none;
  transition: color var(--t-hover) var(--ease);
}
.signature-bar a:hover { color: var(--c-accent); text-decoration: underline; }

/* ==========================================================================
   18. PAGES LEGALES
   ========================================================================== */
.legal { padding-block: var(--section-y); }
.legal-meta {
  display: inline-block; margin-bottom: var(--sp-6);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--c-surface); border: 1px solid var(--c-border);
  font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-soft);
}
.legal h2 {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-h3);
}
.legal h2:first-of-type { margin-top: var(--sp-6); }
.legal h3 { margin-top: var(--sp-6); font-size: var(--fs-h4); }
.legal p, .legal li { color: var(--c-text-soft); }
.legal ul, .legal ol { padding-left: var(--sp-5); display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }

.legal-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.legal-table th, .legal-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left; border: 1px solid var(--c-border);
  vertical-align: top; overflow-wrap: break-word;
}
.legal-table th { background: var(--c-surface); font-weight: 600; width: 38%; color: var(--c-text); }
.legal-table td { color: var(--c-text-soft); }

/* Sur petit ecran, un tableau a deux colonnes contenant des SIRET, des
   numeros de TVA et des adresses e-mail depasse la largeur du viewport.
   On le transforme en liste de blocs empiles : lisible et sans debordement. */
@media (max-width: 600px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td { display: block; width: 100%; }

  .legal-table tr {
    margin-bottom: var(--sp-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
  }
  .legal-table th, .legal-table td { border: 0; }
  .legal-table th {
    background: var(--c-surface);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text-soft);
  }
  .legal-table td { padding-top: var(--sp-3); }
}

.legal-callout {
  padding: var(--sp-5);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-surface);
  margin-bottom: var(--sp-4);
}
.legal-callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   19. 404 / MERCI
   ========================================================================== */
.error-page {
  display: grid; place-items: center; text-align: center;
  min-height: calc(100vh - var(--header-h) - 280px);
  padding-block: var(--sp-8);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 3rem + 12vw, 10rem);
  font-weight: 800; line-height: 0.9;
  letter-spacing: var(--ls-tight);
  color: var(--c-secondary);
  margin-bottom: var(--sp-5);
}
.error-page p { max-width: 34rem; margin-inline: auto; }
.error-links { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--c-border); }
.error-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }

.thanks-icon {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  margin: 0 auto var(--sp-6);
  border-radius: 50%;
  background: var(--c-success-bg); color: var(--c-success);
}
.thanks-icon svg { width: 42px; height: 42px; }

/* ==========================================================================
   20. ANIMATIONS
   Nombreuses et amples : chaque bloc, chaque carte et chaque image entre en
   scene separement, avec une duree suffisante pour etre percue.
   ========================================================================== */

/* Entree de page */
.page-enter { opacity: 0; transform: translateY(16px); }
.page-enter.is-ready {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

/* Reveal au defilement */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--t-enter) var(--ease-out),
              transform var(--t-enter) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="zoom"]  { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Decalage en cascade — 8 crans, 130 ms chacun */
[data-reveal-delay="1"] { transition-delay: calc(var(--t-stagger) * 1); }
[data-reveal-delay="2"] { transition-delay: calc(var(--t-stagger) * 2); }
[data-reveal-delay="3"] { transition-delay: calc(var(--t-stagger) * 3); }
[data-reveal-delay="4"] { transition-delay: calc(var(--t-stagger) * 4); }
[data-reveal-delay="5"] { transition-delay: calc(var(--t-stagger) * 5); }
[data-reveal-delay="6"] { transition-delay: calc(var(--t-stagger) * 6); }
[data-reveal-delay="7"] { transition-delay: calc(var(--t-stagger) * 7); }
[data-reveal-delay="8"] { transition-delay: calc(var(--t-stagger) * 8); }

/* Images : fondu long, accompagne d'un leger recadrage */
.img-fade {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity var(--t-enter-slow) var(--ease-out),
              transform var(--t-enter-slow) var(--ease-out);
}
.img-fade.is-loaded { opacity: 1; transform: scale(1); }

/* CTA : respiration lente et espacee, jamais clignotante */
@keyframes cta-pulse {
  0%, 72%, 100% { box-shadow: 0 0 0 0 rgba(255, 117, 17, 0); }
  84%           { box-shadow: 0 0 0 12px rgba(255, 117, 17, 0.20); }
}
.cta-pulse { animation: cta-pulse 6s var(--ease) 2.4s 3; }
.cta-pulse:hover, .cta-pulse:focus-visible { animation: none; }

/* Soulignement anime du filet de section */
@keyframes rule-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .page-enter, .img-fade {
    opacity: 1 !important; transform: none !important;
  }
  .cta-pulse { animation: none !important; }
  .primary-nav { transition: none; }
}

/* ==========================================================================
   21. RESPONSIVE — mobile first
   ========================================================================== */

/* --- Reglages propres au mobile (< 600px) -------------------------------- */
@media (max-width: 599.98px) {
  /* Les boutons d'un meme groupe occupent toute la largeur : ils sont donc
     alignes et centres entre eux, au lieu d'avoir des largeurs disparates. */
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }

  /* Le hero et les blocs centres restent lisibles */
  .hero .lead, .page-hero .lead { max-width: none; }

  /* Pastille du hero : sous l'image plutot qu'en surimpression, ou elle
     masquait le sujet sur un ecran etroit. */
  .hero-media { display: grid; gap: var(--sp-3); }
  .hero-tag {
    position: static;
    justify-content: center;
    box-shadow: none;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    font-size: var(--fs-xs);
    padding: var(--sp-2) var(--sp-4);
  }

  /* Les preuves du hero passent en colonne : plus de lignes bancales */
  .hero-proof { flex-direction: column; gap: var(--sp-3); }

  /* Cartes et sections : marges internes resserrees */
  .card, .audience-card, .price-card { padding: var(--sp-5) var(--sp-4); }
  .box-spec { padding: var(--sp-5) var(--sp-4); }

  .faq-item summary { padding: var(--sp-4); font-size: var(--fs-sm); }
  .faq-answer { padding: 0 var(--sp-4) var(--sp-4); font-size: var(--fs-sm); }

  .section-head { margin-bottom: var(--sp-6); }

  /* Pied de page : listes en colonne, jamais de ligne coupee */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom ul { gap: var(--sp-3); }

  /* Liens de rattrapage : cibles tactiles confortables, pas de simples
     lignes de texte de 27 px de haut. */
  .error-links ul { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
  .error-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
  }
}

/* --- Images decoratives masquees sur mobile -------------------------------
   Masquer la seule balise <img> ne suffit pas : son conteneur `.media-frame`
   porte un fond, une ombre et un `aspect-ratio`, et resterait affiche comme
   un rectangle gris vide. On masque donc le bloc media complet, reference
   explicitement par `.media-decorative` sur son conteneur. */
@media (max-width: 767.98px) {
  [data-hide-decorative="yes"] .img-decorative,
  [data-hide-decorative="auto"] .img-decorative,
  [data-hide-decorative="yes"] .media-decorative,
  [data-hide-decorative="auto"] .media-decorative { display: none !important; }

  /* Filet de securite si la classe a ete oubliee sur le conteneur. */
  [data-hide-decorative="yes"] .split-media:has(.img-decorative),
  [data-hide-decorative="auto"] .split-media:has(.img-decorative) { display: none !important; }
}

/* --- Tablette : >= 600px -------------------------------------------------- */
@media (min-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .box-spec-figures { grid-template-columns: repeat(4, 1fr); }
}

/* --- Tablette large : >= 768px ------------------------------------------- */
@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .brand img { height: 52px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-media .media-frame { aspect-ratio: 16 / 11; }
  .map-embed { aspect-ratio: 16 / 9; }
  .versus { grid-template-columns: repeat(2, 1fr); }
}

/* --- Desktop : >= 1024px -------------------------------------------------- */
@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .brand img { height: 62px; }

  .nav-toggle { display: none; }

  .primary-nav {
    position: static; inset: auto; z-index: auto;
    transform: none; visibility: visible;
    flex-direction: row; align-items: center; justify-content: flex-end;
    gap: var(--sp-6);
    padding: 0; background: transparent; overflow: visible;
    flex: 1;
    transition: none;
  }
  .nav-list { flex-direction: row; align-items: center; gap: var(--sp-1); }
  .nav-link {
    position: relative;
    padding: var(--sp-2) var(--sp-4);
    border-bottom: none; border-radius: var(--r-sm);
    font-size: var(--fs-sm); font-weight: 500;
  }
  .nav-link::after {
    content: "";
    position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: 2px;
    height: 2px; border-radius: 2px;
    background: var(--c-accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 260ms var(--ease-out);
  }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

  .nav-actions { display: flex; gap: var(--sp-3); }
  .nav-actions .btn { width: auto; }
  .nav-meta { display: none; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin-inline: auto; }
  .facts-list { grid-template-columns: repeat(4, 1fr); }

  /* Separateurs verticaux entre les faits */
  .facts-list li { position: relative; }
  .facts-list li + li::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 46px;
    background: var(--c-border);
  }

  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); }
  .hero-media .media-frame { aspect-ratio: 4 / 3; }

  .page-hero-grid { grid-template-columns: 1.35fr 1fr; gap: var(--sp-8); }

  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--reverse .split-media { order: 2; }

  .box-spec { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }

  .contact-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--sp-7); align-items: start; }
  .form-grid--2col { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2col .field--full { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }

  /* --- Timeline horizontale -------------------------------------------
     Chaque etape est centree dans sa colonne : la composition est alors
     symetrique d'un bord a l'autre du conteneur. Precedemment, contenu et
     pastilles etaient calees a gauche et le rail s'arretait a la derniere
     pastille, ce qui laissait un large vide a droite et donnait a toute la
     section un aspect decentre. */
  .timeline { grid-template-columns: repeat(4, 1fr); column-gap: var(--sp-5); }
  .timeline-item {
    grid-template-columns: 1fr;
    row-gap: var(--sp-4);
    padding-bottom: 0;
    text-align: center;
  }
  .timeline-num { grid-row: auto; margin-inline: auto; }
  .timeline-body { padding-top: 0; }

  /* Le rail relie le bord droit d'une pastille au bord gauche de la
     suivante : il court donc de centre a centre, sans deborder au-dela de
     la derniere etape (dont le ::before reste masque). 26px = rayon. */
  .timeline-item::before {
    left:  calc(50% + 26px);
    right: calc(26px - 50% - var(--sp-5));
    top: 26px; bottom: auto;
    width: auto; height: 2px;
  }

  /* Variante empilee : pour une timeline placee dans une colonne etroite,
     ou la disposition horizontale n'aurait pas la place de respirer. */
  .timeline--stack { grid-template-columns: 1fr; }
  .timeline--stack .timeline-item {
    grid-template-columns: 52px 1fr;
    column-gap: var(--sp-5);
    row-gap: 0;
    padding-bottom: var(--sp-6);
    /* La pastille est a gauche du texte : le centrage de la variante
       horizontale n'a pas lieu d'etre ici. */
    text-align: left;
  }
  .timeline--stack .timeline-num { margin-inline: 0; }
  .timeline--stack .timeline-item:last-child { padding-bottom: 0; }
  .timeline--stack .timeline-item::before {
    left: 25px; right: auto;
    top: 52px; bottom: 0;
    width: 2px; height: auto;
  }
  .timeline--stack .timeline-num { grid-row: 1 / span 2; }
  .timeline--stack .timeline-body { padding-top: var(--sp-1); }
}

/* --- Grand ecran : >= 1280px ---------------------------------------------- */
@media (min-width: 1280px) {
  .hero-grid { gap: var(--sp-9); }
}

/* ==========================================================================
   22. IMPRESSION
   ========================================================================== */
@media print {
  body { padding-top: 0; background: #FFFFFF; color: #000000; }
  .site-header, .primary-nav, .signature-bar, .nav-toggle,
  .announce-bar, .btn-group, .btn { display: none !important; }
  .site-footer { background: none; color: #000000; padding-block: var(--sp-4); }
  .site-footer a { color: #000000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
  .section, .legal { padding-block: var(--sp-5); }
  [data-reveal], .page-enter, .img-fade { opacity: 1 !important; transform: none !important; }
}
