/* ============================================================
   signaWeb — Design system du site signaweb.fr
   Charte : parchemin #E1D3B4 dominant (~70%), brun #2C1810 (texte,
   sections sombres), orange #FF4416 (accent ~10-15%), jaune #FFC700
   et teal #00A88E (secondaires). Bricolage Grotesque / Work Sans / Lora.
   Grille 8px. Coins : 8px (petits éléments), 12-16px (cartes).

   Choix documenté (protocole section 27 du plan) : les boutons orange
   portent du texte brun (contraste 4.9:1, conforme WCAG AA) plutôt que
   blanc (3.4:1, non conforme en taille de texte courante). Le hover
   inverse vers brun/parchemin — geste distinctif, jamais vu sur un
   template générique.
   ============================================================ */

:root {
  --parchemin: #E1D3B4;
  --parchemin-clair: #EDE2C9; /* variation légère pour alterner les fonds */
  --creme: #FFFBF3;           /* fond des cartes (repris des documents de marque) */
  --brun: #2C1810;
  --brun-doux: #4a3c2c;       /* texte secondaire sur fonds clairs (contraste ≥ 7:1) */
  --texte: #3a2c1e;
  --orange: #FF4416;
  --orange-fonce: #D93A10;
  --jaune: #FFC700;
  --teal: #00A88E;
  --terracotta: #E06542;
  --ocre: #E3B23C;
  --sarcelle: #2F8E7E;
  --ligne: #cbb896;           /* filets, bordures discrètes */
  --parchemin-sombre: #d8c6a3;

  --titres: 'Bricolage Grotesque', sans-serif;
  --texte-police: 'Work Sans', sans-serif;
  --citations: 'Lora', serif;

  /* Grille d'espacement — multiples de 8px */
  --e-xs: 4px; --e-sm: 8px; --e-md: 16px; --e-lg: 24px; --e-xl: 40px; --e-2xl: 64px;

  --rayon-sm: 8px;
  --rayon-md: 12px;
  --rayon-lg: 16px;

  /* Ombre « affiche » : décalage dur dans le brun de la charte, cohérent
     avec la géométrie plate du symbole — pas de flou générique */
  --ombre-plate: 6px 6px 0 rgba(44, 24, 16, 0.16);
  --ombre-plate-hover: 10px 10px 0 rgba(44, 24, 16, 0.2);

  --largeur-contenu: 1120px;
}

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

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

body {
  background: var(--parchemin);
  color: var(--texte);
  font-family: var(--texte-police);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--titres);
  color: var(--brun);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { max-width: 68ch; }

a { color: var(--brun); }

::selection { background: var(--jaune); color: var(--brun); }

:focus-visible {
  outline: 3px solid var(--brun);
  outline-offset: 3px;
  border-radius: 2px;
}
.surface-sombre :focus-visible,
.surface-sombre:focus-visible { outline-color: var(--jaune); }

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

.skip-link {
  position: absolute; left: var(--e-md); top: -60px;
  background: var(--brun); color: var(--parchemin);
  padding: 12px 20px; border-radius: 0 0 var(--rayon-sm) var(--rayon-sm);
  font-family: var(--titres); font-weight: 700; font-size: 14px;
  text-decoration: none; z-index: 100; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.contenu { max-width: var(--largeur-contenu); margin: 0 auto; padding: 0 24px; }

/* ---------- Typographie ---------- */
.titre-hero {
  font-size: clamp(34px, 6.4vw, 72px);
  font-weight: 800;
  line-height: 1.04;
}
.titre-section {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: var(--e-md);
}
.titre-carte { font-size: 24px; font-weight: 800; }

/* Mot surligné en orange : texte brun sur trait orange (4.9:1, AA),
   plutôt que texte orange sur parchemin (2.2:1, non conforme). */
.marque {
  position: relative;
  display: inline-block;
  padding: 0 0.14em;
  background: var(--orange);
  color: var(--brun);
  border-radius: 6px;
  transform: rotate(-1deg);
}
.marque.jaune { background: var(--jaune); transform: rotate(1deg); }
.marque.teal { background: var(--teal); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap; max-width: 100%;
  font-family: var(--titres); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brun);
  background: transparent;
  border: 1.5px solid var(--brun);
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: var(--e-md);
}
.kicker::before {
  content: ""; width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50% 50% 0 50%; /* clin d'œil au quart de cercle du symbole */
  flex-shrink: 0;
}

.sous-titre {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--brun-doux);
  max-width: 56ch;
}

.citation {
  font-family: var(--citations);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.35;
  letter-spacing: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--titres); font-weight: 700; font-size: 17px;
  padding: 14px 28px; min-height: 52px;
  border-radius: var(--rayon-sm);
  text-decoration: none; cursor: pointer; border: none;
  transition: background-color 0.2s ease, color 0.2s ease,
              transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}
.btn svg { flex-shrink: 0; }

/* Bouton « physique » : épaisseur 3D qui s'enfonce au clic */
.btn-primaire {
  background: var(--orange);
  color: var(--brun);
  box-shadow: 0 5px 0 var(--brun);
}
.btn-primaire:hover { background: var(--brun); color: var(--parchemin); box-shadow: 0 5px 0 var(--orange-fonce); }
.btn-primaire:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brun); }

.btn-secondaire {
  background: transparent;
  color: var(--brun);
  border: 2px solid var(--brun);
  box-shadow: 0 5px 0 rgba(44,24,16,0.25);
}
.btn-secondaire:hover { background: var(--brun); color: var(--parchemin); }
.btn-secondaire:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(44,24,16,0.25); }

.surface-sombre .btn-secondaire { color: var(--parchemin); border-color: var(--parchemin); box-shadow: 0 5px 0 rgba(0,0,0,0.35); }
.surface-sombre .btn-secondaire:hover { background: var(--parchemin); color: var(--brun); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--titres); font-weight: 700; font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 14px; border-radius: 20px;
}
.badge-teal { background: var(--teal); color: var(--brun); }
.badge-jaune { background: var(--jaune); color: var(--brun); }
.badge-orange { background: var(--orange); color: var(--brun); }
.badge-contour { border: 1.5px solid var(--brun); color: var(--brun); }

/* ---------- Header / navigation ----------
   La barre se fait discrète quand on descend (hauteur et opacité
   réduites) et redevient pleine dès qu'on remonte — classe
   .entete--compacte posée par main.js selon la direction du scroll. */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(225, 211, 180, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--brun);
  transition: background-color 0.3s ease;
}
.entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--e-lg);
  min-height: 72px;
  transition: min-height 0.3s ease;
}
.entete--compacte { background: rgba(225, 211, 180, 0.72); }
.entete--compacte .entete-inner { min-height: 54px; }
.entete--compacte .logo-lockup img { height: 30px; }
.entete--compacte .logo-lockup .mot { font-size: 20px; }
/* .entete.entete--compacte : spécificité supérieure à la règle
   « .entete .btn-devis » plus bas, sinon le bouton garde ses 48 px
   dans la barre rétrécie de 54 px et son ombre déborde dessous */
.entete.entete--compacte .btn-devis { min-height: 40px; padding: 8px 18px; font-size: 14.5px; }
.logo-lockup {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-lockup img { height: 40px; width: auto; transition: height 0.3s ease, transform 0.25s ease; }
/* Survol du logo : le symbole s'incline et le mot se souligne en orange —
   signale clairement que le lockup est cliquable et ramène à l'accueil */
.logo-lockup:hover img,
.logo-lockup:focus-visible img { transform: rotate(-9deg) scale(1.06); }
.logo-lockup:hover .mot,
.logo-lockup:focus-visible .mot {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 5px;
}
.logo-lockup .mot { transition: font-size 0.3s ease; }
.logo-lockup .mot {
  font-family: var(--titres); font-weight: 800; font-size: 24px; color: var(--brun);
}
.logo-lockup .mot em { color: var(--orange); font-style: normal; }

.nav-principale ul {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-principale a {
  position: relative;
  display: inline-block;
  font-weight: 500; font-size: 15px;
  color: var(--brun); text-decoration: none;
  padding: 12px 10px;
  white-space: nowrap;
}
/* Soulignement animé de gauche à droite */
.nav-principale a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-principale a:hover::after,
.nav-principale a:focus-visible::after,
.nav-principale a[aria-current="page"]::after { transform: scaleX(1); }
.nav-principale a[aria-current="page"] { font-weight: 600; }

.entete .btn-devis {
  padding: 12px 22px; min-height: 48px; font-size: 15.5px;
  /* le passage compact/normal se fait en douceur, au même rythme
     que la hauteur de la barre */
  transition: min-height 0.3s ease, padding 0.3s ease, font-size 0.3s ease,
              background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.burger {
  display: none;
  background: none; border: 2px solid var(--brun); border-radius: var(--rayon-sm);
  width: 48px; height: 48px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 2.5px; background: var(--brun);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: flex; }
  .nav-principale {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--parchemin);
    border-bottom: 1.5px solid var(--brun);
    display: none;
    padding: var(--e-sm) var(--e-lg) var(--e-lg);
  }
  .nav-principale.ouverte { display: block; }
  .nav-principale ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-principale a { display: block; padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--ligne); }
  .nav-principale a::after { display: none; }
  .entete .btn-devis { display: none; } /* le CTA reste accessible via le menu mobile */
  .nav-principale .nav-cta { margin-top: var(--e-md); border-bottom: none; }
  .nav-principale .nav-cta .btn { width: 100%; }
  /* Sans JavaScript, le menu reste déplié : le contenu prime sur l'esthétique */
  html.no-js .nav-principale { display: block; }
  html.no-js .burger { display: none; }
}
@media (min-width: 1101px) {
  .nav-principale .nav-cta { display: none; }
}
@media (min-width: 1101px) and (max-width: 1240px) {
  .nav-principale a { padding: 12px 9px; font-size: 14.5px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-serree { padding: clamp(40px, 6vw, 72px) 0; }

.surface-sombre {
  background: var(--brun);
  color: var(--parchemin);
}
.surface-sombre h1, .surface-sombre h2, .surface-sombre h3, .surface-sombre h4 { color: var(--parchemin); }
.surface-sombre p { color: #d9cbae; }
.surface-sombre a { color: var(--parchemin); }

.surface-claire { background: var(--creme); }

/* Formes décoratives dérivées du symbole (quarts de cercle, demi-disques).
   Remplacent toute photo de stock — règle « sourcing des visuels » du plan. */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-quart {
  width: 120px; height: 120px;
  background: var(--jaune);
  border-radius: 100% 0 0 0; /* quart de cercle */
  opacity: 0.85;
}
.deco-quart.orange { background: var(--orange); border-radius: 0 100% 0 0; }
.deco-quart.teal { background: var(--teal); border-radius: 0 0 100% 0; }
.deco-demi {
  width: 140px; height: 70px;
  background: var(--terracotta);
  border-radius: 0 0 140px 140px; /* demi-disque, dôme vers le bas */
  opacity: 0.85;
}

/* ---------- Hero « enseigne vivante » ----------
   Aucune capture ni maquette : une composition animée pure — symbole en
   parallax souris + scroll, fond qui respire en continu, typographie
   kinétique. Les couches sont pilotées par animations.js (GSAP) ; sans
   JS ou en mouvement réduit, le hero reste une belle affiche statique. */
.hero {
  position: relative;
  min-height: clamp(540px, 88vh, 860px);
  display: flex; align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
}
.hero-scene { position: relative; z-index: 1; text-align: center; width: 100%; }
.hero-scene .kicker { margin-bottom: var(--e-lg); }
.hero .titre-hero { max-width: 15ch; margin: 0 auto; }
.hero .sous-titre { margin: var(--e-xl) auto var(--e-xl); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--e-md); justify-content: center; }
/* margin auto : la règle globale « p { max-width: 68ch } » borne le
   bloc, sans auto il colle à gauche au lieu de se centrer */
.hero-note { margin: var(--e-lg) auto 0; font-size: 14.5px; color: var(--brun-doux); }
/* dans le hero, le surlignage reste parfaitement horizontal — le titre
   doit être droit, la pente reste réservée aux titres de section */
.hero .titre-hero .marque { transform: rotate(0deg); overflow: hidden; }
/* un léger reflet balaye la boîte orange toutes les 9 s : le seul
   mouvement continu autorisé sur le titre — il attire l'œil sur le
   mot-clé sans déplacer une seule lettre. Départ différé : le
   surlignage se pose vers 1,6 s, le premier reflet passe après. */
.hero .titre-hero .marque::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: 0; width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255, 251, 243, 0.45), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: marque-reflet 9s ease-in-out 3.5s infinite;
  pointer-events: none;
}
@keyframes marque-reflet {
  0% { transform: translateX(-160%) skewX(-18deg); }
  11% { transform: translateX(460%) skewX(-18deg); }
  100% { transform: translateX(460%) skewX(-18deg); }
}

/* Couche 1 — fond : une lueur chaude fixe derrière le titre et un
   dégradé vertical très doux. La lueur « respire » à peine. */
.hero-fond {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(56% 42% at 50% 30%, rgba(255, 199, 0, 0.14), transparent 74%),
    linear-gradient(180deg, var(--parchemin-clair), var(--parchemin) 62%);
  transform-origin: 50% 40%;
  animation: fond-respire 9s ease-in-out infinite;
}
@keyframes fond-respire {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

/* Couche 2 — le lever d'enseigne : trois demi-disques concentriques qui
   se lèvent du bas du hero comme un soleil rétro — teal au large,
   terracotta, puis le cœur jaune. Chaque arc « respire » en décalé,
   en pur CSS : le soleil vit même sans GSAP. */
.hero-soleil {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: clamp(680px, 78vw, 1240px);
  aspect-ratio: 2 / 1;
}
.hero-soleil .arc {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  border-radius: 100vw 100vw 0 0;
  animation: arc-respire 8s ease-in-out infinite;
}
/* palette chaude uniquement : les trois bandes s'empilent, donc le
   centre se dore naturellement — un teal ici virerait à l'olive */
.hero-soleil .arc-terracotta {
  width: 100%; aspect-ratio: 2 / 1;
  background: rgba(224, 101, 66, 0.09);
}
.hero-soleil .arc-ocre {
  width: 68%; aspect-ratio: 2 / 1;
  background: rgba(227, 178, 60, 0.12);
  animation-delay: 1.1s;
}
.hero-soleil .arc-jaune {
  width: 40%; aspect-ratio: 2 / 1;
  background: rgba(255, 199, 0, 0.2);
  animation-delay: 2.2s;
}
@keyframes arc-respire {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(2.5%); }
}

/* Couche 3 — l'enseigne suspendue : une pastille crème accrochée en
   haut à droite, symbole plein dedans. Elle se balance doucement comme
   une enseigne de boutique (le balancier est sur l'élément intérieur :
   GSAP garde la main sur le parallax de l'élément extérieur). */
.hero-enseigne {
  position: absolute; z-index: 0;
  right: clamp(20px, 7vw, 110px); top: 15%;
  width: clamp(140px, 15vw, 220px);
  will-change: transform;
}
/* le fil : il monte jusqu'au « plafond » (l'overflow du hero le coupe
   au bord haut, comme s'il y était accroché) et ne se balance pas —
   seule la pastille pivote, à l'anneau d'attache */
.hero-enseigne::before {
  content: ""; position: absolute;
  left: 50%; bottom: 97%; transform: translateX(-50%);
  width: 2px; height: 100vh;
  background: var(--brun);
}
.enseigne-pendule {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1;
  background: var(--creme);
  border: 1.5px solid var(--brun);
  border-radius: 50%;
  box-shadow: var(--ombre-plate);
  position: relative;
  transform-origin: 50% -5%;
  animation: enseigne-balance 5.6s ease-in-out infinite;
}
/* l'anneau d'attache, à la jonction du fil et de la pastille */
.enseigne-pendule::after {
  content: ""; position: absolute;
  left: 50%; top: -7px; transform: translateX(-50%);
  width: 11px; height: 11px;
  border: 2px solid var(--brun); border-radius: 50%;
  background: var(--parchemin);
}
.enseigne-pendule img { width: 64%; height: auto; }
@keyframes enseigne-balance {
  0%, 100% { transform: rotate(2.4deg); }
  50% { transform: rotate(-2.4deg); }
}

/* Le symbole en filigrane : encore utilisé par la page 404
   (l'accueil, lui, est passé à l'enseigne suspendue ci-dessus) */
.hero-symbole {
  position: absolute; z-index: 0;
  right: -7%; top: 14%;
  width: clamp(280px, 32vw, 540px);
  opacity: 0.13;
  will-change: transform;
}
@media (max-width: 720px) {
  .hero-symbole { width: 220px; right: -18%; top: 4%; opacity: 0.1; }
}

/* Couche 4 — l'escalier : trois quarts de cercle emboîtés, du plus grand
   au plus petit, ancrés en bas à gauche. Une composition qui cite le
   logo — lisible comme un choix, pas comme un semis aléatoire. */
.hero-escalier {
  position: absolute; z-index: 0; pointer-events: none;
  left: clamp(16px, 6vw, 96px); bottom: 13%;
  display: flex; align-items: flex-end; gap: 6px;
  will-change: transform;
}
.hero-escalier .bloc { display: block; }
.hero-escalier .q-jaune { width: 84px; height: 84px; background: var(--jaune); border-radius: 100% 0 0 0; }
.hero-escalier .q-terracotta { width: 54px; height: 54px; background: var(--terracotta); border-radius: 0 100% 0 0; }
.hero-escalier .q-teal { width: 32px; height: 32px; background: var(--teal); border-radius: 100% 0 0 0; }

/* Les deux accents qui encadrent le bloc de titre, en diagonale */
.hero-accent {
  position: absolute; z-index: 0; pointer-events: none;
  will-change: transform;
}
.hero-accent .bloc { display: block; }
/* positions en marge de la colonne de texte : même avec le parallax
   souris et le flottement, un accent ne touche jamais une lettre */
.hero-accent.a-gauche { left: 7%; top: 22%; }
.hero-accent.a-droite { right: 9%; top: 68%; }
.hero-accent .demi { width: 58px; height: 29px; background: var(--terracotta); border-radius: 58px 58px 0 0; opacity: 0.9; }
.hero-accent .point { width: 15px; height: 15px; background: var(--brun); border-radius: 50% 50% 0 50%; }

/* Entre 720 et 1100px : l'enseigne remonte au niveau du kicker (la
   colonne de titre s'élargit et viendrait sinon la frôler) */
@media (max-width: 1100px) {
  .hero-enseigne { width: clamp(104px, 12vw, 140px); right: 3vw; top: 9%; }
  .hero-accent.a-gauche { display: none; }
}

/* Sous 720px : l'enseigne disparaît (le soleil et l'escalier suffisent),
   l'escalier rétrécit, les accents disparaissent — le titre garde
   toute la place */
@media (max-width: 720px) {
  .hero-enseigne { display: none; }
  /* tailles réduites en dur (pas de scale : GSAP pilote transform) */
  .hero-escalier { bottom: 9%; gap: 4px; }
  .hero-escalier .q-jaune { width: 52px; height: 52px; }
  .hero-escalier .q-terracotta { width: 34px; height: 34px; }
  .hero-escalier .q-teal { width: 20px; height: 20px; }
  .hero-accent { display: none; }
}

/* Écrans peu hauts (laptops) : le hero se resserre pour que la note
   tarifaire et l'indice de scroll restent visibles sans être coupés */
@media (max-height: 780px) {
  .hero { min-height: 0; padding-top: 44px; padding-bottom: 104px; }
}

/* Grain très léger sur le hero (1 des 2 seuls usages de texture du site) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Typographie kinétique : les lettres sont découpées par animations.js.
   Sans GSAP, le titre reste entier et pleinement lisible. */
.titre-kinetique .lettre {
  display: inline-block;
  will-change: transform;
  transition: font-variation-settings 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.titre-kinetique .mot-k { display: inline-block; white-space: nowrap; }
/* Au survol, la lettre s'alourdit et se soulève — le titre est « vivant sous les doigts » */
@media (hover: hover) {
  .titre-kinetique .lettre:hover {
    font-variation-settings: "wght" 800, "opsz" 96;
    transform: translateY(-0.06em) rotate(-2deg);
    color: var(--orange-fonce);
  }
}

/* CTA principal : une micro-vie propre — l'ombre « respire » en continu */
html:not(.no-js) .btn-vivant {
  animation: cta-respire 3.2s ease-in-out infinite;
}
@keyframes cta-respire {
  0%, 100% { box-shadow: 0 5px 0 var(--brun), 0 0 0 0 rgba(255, 68, 22, 0.32); }
  50% { box-shadow: 0 5px 0 var(--brun), 0 0 0 14px rgba(255, 68, 22, 0); }
}
.btn-vivant:hover { animation-play-state: paused; }

/* Indice de scroll : petite flèche qui invite à découvrir la suite */
.hero-indice {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--titres); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brun-doux); text-decoration: none;
}
.hero-indice .fil {
  display: block; width: 2px; height: 34px;
  background: linear-gradient(var(--brun) 50%, transparent 50%);
  background-size: 100% 200%;
  animation: fil-scroll 1.8s ease-in-out infinite;
}
@keyframes fil-scroll {
  0% { background-position: 0 100%; }
  60%, 100% { background-position: 0 -100%; }
}

/* Révélation du titre mot par mot (pages intérieures — les spans sont
   posés par main.js ; sans JS le titre reste pleinement visible) */
html:not(.no-js) .titre-anime .mot-anime {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(2deg);
  animation: mot-arrive 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: var(--delai, 0s);
}
@keyframes mot-arrive {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (max-width: 900px) {
  .hero { min-height: 78vh; }
  .hero-indice { display: none; }
}

/* ---------- Mockup navigateur (vitrine des sites démo) ---------- */
.navigateur {
  background: var(--creme);
  border: 2px solid var(--brun);
  border-radius: var(--rayon-md);
  box-shadow: var(--ombre-plate);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.navigateur-barre {
  display: flex; align-items: center; gap: 8px;
  background: var(--brun);
  padding: 10px 14px;
}
.navigateur-barre .pastille { width: 10px; height: 10px; border-radius: 50%; }
.navigateur-barre .pastille:nth-child(1) { background: var(--orange); }
.navigateur-barre .pastille:nth-child(2) { background: var(--jaune); }
.navigateur-barre .pastille:nth-child(3) { background: var(--teal); }
.navigateur-barre .url {
  flex: 1; text-align: center;
  font-family: var(--titres); font-size: 11.5px; font-weight: 600;
  color: var(--parchemin);
  background: rgba(225,211,180,0.14);
  border-radius: 6px; padding: 3px 10px;
  max-width: 260px; margin: 0 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navigateur-corps { position: relative; container-type: inline-size; /* les tailles cqw des mini-mockups suivent la largeur de la carte */ }

/* Tilt 3D au survol (JS pose les variables --tx/--ty) */
.tilt { will-change: transform; }
html:not(.no-js) .tilt:hover {
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) translateY(-4px);
  box-shadow: var(--ombre-plate-hover);
}

/* ---------- Bandeau de réassurance (compteurs) ---------- */
.bandeau-chiffres {
  border-top: 1.5px solid var(--brun);
  border-bottom: 1.5px solid var(--brun);
  background: var(--parchemin-clair);
}
.chiffres-grille {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--e-lg);
  padding: var(--e-xl) 0;
}
.chiffre { text-align: center; }
.chiffre .valeur {
  font-family: var(--titres); font-weight: 800;
  font-size: clamp(34px, 4.4vw, 52px);
  color: var(--brun); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.chiffre .valeur .unite { color: var(--orange-fonce); }
.chiffre .legende { font-size: 14.5px; color: var(--brun-doux); margin-top: var(--e-sm); }
@media (max-width: 720px) {
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cartes génériques ---------- */
.carte {
  background: var(--creme);
  border: 1.5px solid var(--brun);
  border-radius: var(--rayon-lg);
  padding: var(--e-lg);
  box-shadow: var(--ombre-plate);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.carte { text-decoration: none; display: block; cursor: pointer; }
.carte-survol:hover { transform: translate(-3px, -3px); box-shadow: var(--ombre-plate-hover); }

/* Cartes « pour qui » : chaque métier a sa couleur désaturée de la palette */
.metiers-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e-lg); }
.carte-metier { position: relative; overflow: hidden; padding: var(--e-lg) var(--e-lg) var(--e-xl); }
.carte-metier .icone {
  width: 56px; height: 56px; border-radius: 50% 50% 8px 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--e-md);
  border: 1.5px solid var(--brun);
}
.carte-metier.t-terracotta .icone { background: var(--terracotta); }
.carte-metier.t-ocre .icone { background: var(--ocre); }
.carte-metier.t-sarcelle .icone { background: var(--sarcelle); }
.carte-metier .icone svg { stroke: var(--brun); }
.carte-metier h3 { font-size: 21px; margin-bottom: var(--e-sm); }
.carte-metier p { font-size: 15.5px; color: var(--brun-doux); }
.carte-metier .exemple {
  margin-top: var(--e-md); font-size: 14px; color: var(--brun);
  font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.carte-metier .exemple::before {
  content: ""; width: 8px; height: 8px; background: var(--orange);
  border-radius: 50% 50% 0 50%; flex-shrink: 0;
}
@media (max-width: 860px) { .metiers-grille { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cartes d'offre ---------- */
.offres-grille {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--e-lg); align-items: stretch;
}
.carte-offre {
  display: flex; flex-direction: column;
  background: var(--creme);
  border: 1.5px solid var(--brun);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--ombre-plate);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.carte-offre.vedette {
  background: var(--brun);
  color: var(--parchemin);
  border-color: var(--brun);
}
.carte-offre.vedette h3 { color: var(--jaune); }
.carte-offre .badge-vedette {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--brun);
  font-family: var(--titres); font-weight: 700; font-size: 12px;
  letter-spacing: 0.05em;
  padding: 7px 16px; border-radius: 20px;
  border: 1.5px solid var(--brun);
  white-space: nowrap;
}
/* Pulsation discrète du badge (coupée si reduced-motion) */
html:not(.no-js) .badge-vedette { animation: pulse-badge 2.8s ease-in-out infinite; }
@keyframes pulse-badge {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}
.carte-offre h3 { font-size: 26px; text-align: center; margin-bottom: 2px; }
.carte-offre .prix {
  font-family: var(--titres); font-weight: 800; font-size: 44px;
  text-align: center; color: var(--orange-fonce); line-height: 1.1;
}
.carte-offre.vedette .prix { color: var(--orange); }
.carte-offre .tagline {
  text-align: center; font-family: var(--citations); font-style: italic;
  font-size: 14.5px; color: var(--brun-doux); margin-bottom: var(--e-lg);
}
.carte-offre.vedette .tagline { color: #c9b896; }
.carte-offre ul { list-style: none; flex: 1; margin-bottom: var(--e-lg); }
.carte-offre li {
  font-size: 15px; padding: 5px 0 5px 26px; position: relative; line-height: 1.45;
}
.carte-offre li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 10px; height: 10px;
  background: var(--orange); border-radius: 50% 50% 0 50%;
}
.carte-offre.vedette li::before { background: var(--jaune); }
.carte-offre .btn { width: 100%; }
@media (max-width: 900px) {
  .offres-grille { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
  .carte-offre.vedette { order: -1; } /* l'offre recommandée d'abord sur mobile */
}

/* ---------- Timeline horizontale (aperçu du parcours) ---------- */
.parcours-mini {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--e-md);
  counter-reset: etape;
  position: relative;
}
.parcours-mini::before {
  /* ligne qui relie les étapes ; se « remplit » au scroll via --avancement */
  content: ""; position: absolute; top: 27px; left: 8%; right: 8%;
  height: 3px;
  background: linear-gradient(to right,
    var(--orange) calc(var(--avancement, 0) * 100%),
    var(--ligne) calc(var(--avancement, 0) * 100%));
}
.etape-mini { position: relative; text-align: center; padding-top: 0; }
.etape-mini .jour {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 56px; padding: 0 10px;
  background: var(--creme); border: 2px solid var(--brun); border-radius: var(--rayon-md);
  font-family: var(--titres); font-weight: 800; font-size: 15px; color: var(--brun);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.etape-mini.active .jour { background: var(--orange); }
.etape-mini h3 { font-size: 17px; margin: var(--e-md) 0 var(--e-xs); }
.etape-mini p { font-size: 14px; color: var(--brun-doux); margin: 0 auto; }
@media (max-width: 860px) {
  .parcours-mini { grid-template-columns: 1fr; gap: var(--e-lg); }
  .parcours-mini::before {
    top: 8%; bottom: 8%; left: 27px; right: auto; width: 3px; height: auto;
    background: linear-gradient(to bottom,
      var(--orange) calc(var(--avancement, 0) * 100%),
      var(--ligne) calc(var(--avancement, 0) * 100%));
  }
  .etape-mini { display: grid; grid-template-columns: 56px 1fr; gap: var(--e-md); text-align: left; }
  .etape-mini h3 { margin-top: 0; grid-column: 2; }
  .etape-mini p { grid-column: 2; }
  .etape-mini .jour { grid-row: 1 / span 2; align-self: start; }
}

/* ---------- Citation de positionnement ---------- */
.section-citation { text-align: center; overflow: hidden; }
.section-citation .citation { max-width: 22ch; margin: 0 auto; color: var(--parchemin); }
.section-citation .citation strong { color: var(--jaune); font-weight: 500; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; overflow: hidden; position: relative; }
.cta-final h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: var(--e-md); }
.cta-final p { margin: 0 auto var(--e-xl); }
.cta-final .hero-actions { justify-content: center; }

/* ---------- Footer « signature » ----------
   Le footer se lit comme la signature d'une affiche : liseré aux cinq
   couleurs de la charte, coins supérieurs arrondis (le site se referme
   comme une carte), et le mot signaWeb en très grand, à moitié sorti du
   cadre — l'identité domine, la mention légale reste en petit. */
.pied {
  position: relative;
  background: var(--brun);
  color: var(--parchemin);
  padding: var(--e-2xl) 0 0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}
/* Liseré signature : les cinq couleurs de la charte en bandes nettes */
.pied::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(to right,
    var(--orange) 0 22%, var(--jaune) 22% 44%, var(--teal) 44% 62%,
    var(--terracotta) 62% 82%, var(--ocre) 82% 100%);
  z-index: 2;
}
/* Grain léger (2e et dernier usage de texture du site) */
.pied::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
}
.pied > .contenu { position: relative; z-index: 1; }
.pied-grille {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--e-xl);
  padding-bottom: var(--e-xl);
}
.pied .logo-lockup .mot { color: var(--parchemin); }
.pied .accroche { font-size: 14.5px; color: #c9b896; margin-top: var(--e-md); max-width: 30ch; }
.pied h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--jaune); margin-bottom: var(--e-md);
}
.pied h2::before {
  content: ""; width: 9px; height: 9px; flex-shrink: 0;
  background: var(--orange); border-radius: 50% 50% 0 50%;
}
.pied ul { list-style: none; }
.pied li { margin-bottom: 10px; }
.pied a { color: var(--parchemin); text-decoration: none; font-size: 15px; }
.pied a:hover { color: var(--jaune); text-decoration: underline; text-underline-offset: 3px; }
.pied address { font-style: normal; font-size: 15px; line-height: 1.8; color: #d9cbae; }
.pied-bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: var(--e-sm) var(--e-md);
  padding-top: var(--e-lg);
  border-top: 1px solid rgba(225,211,180,0.18);
  font-size: 13px; color: #b3a184;
}
.pied-bas .legale { font-size: 12px; color: #8f7c5e; }
/* Le mot signaWeb géant, à moitié sorti du cadre — l'identité qui signe */
.pied-signature {
  position: relative;
  margin-top: var(--e-md);
  height: clamp(58px, 10vw, 132px);
  overflow: hidden;
}
.pied-signature span {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font-family: var(--titres); font-weight: 800;
  font-size: clamp(84px, 15vw, 200px);
  line-height: 1; letter-spacing: -0.03em; white-space: nowrap;
  color: rgba(225, 211, 180, 0.13);
  user-select: none;
}
.pied-signature span em { font-style: normal; color: rgba(255, 68, 22, 0.34); }
@media (max-width: 860px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pied-grille { grid-template-columns: 1fr; } }

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-flottant {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--teal); border: 2px solid var(--brun); border-radius: 50%;
  box-shadow: 4px 4px 0 rgba(44,24,16,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-flottant:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(44,24,16,0.3); }
.whatsapp-flottant svg { fill: var(--brun); }

/* ---------- Bannière cookies (RGPD : deux boutons de poids égal) ----------
   Une carte crème avec le liseré 5 couleurs du footer en chapeau, un
   biscuit qui se balance, et une sortie « miam » quand on accepte. */
.banniere-cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  max-width: 318px;
  background: var(--creme); color: var(--brun);
  border: 1.5px solid var(--brun);
  border-radius: var(--rayon-lg);
  padding: 0 16px 14px;
  overflow: hidden;
  box-shadow: var(--ombre-plate);
  animation: banniere-arrive 0.55s cubic-bezier(0.2, 0.7, 0.3, 1.25) both;
}
.banniere-cookies[hidden] { display: none; }
@keyframes banniere-arrive {
  from { transform: translateY(130%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* le liseré : les 5 couleurs de la signature du footer */
.banniere-cookies::before {
  content: ""; display: block;
  height: 6px; margin: 0 -16px 12px;
  background: linear-gradient(90deg,
    var(--jaune) 0 20%, var(--orange) 0 40%, var(--terracotta) 0 60%,
    var(--teal) 0 80%, var(--brun) 0);
}
.cookie-entete { display: flex; gap: 12px; align-items: flex-start; }
.cookie-titre {
  font-family: var(--titres); font-weight: 700;
  font-size: 15.5px; color: var(--brun);
  margin-bottom: 2px;
}
.banniere-cookies p { font-size: 13px; line-height: 1.55; color: var(--brun-doux); margin-bottom: 12px; }
.banniere-cookies .cookie-titre { margin-bottom: 2px; }
.banniere-cookies a { color: var(--brun); font-weight: 600; }
/* Le biscuit : un rond ocre auquel il manque une bouchée (découpe en
   radial-gradient), des pépites en box-shadow — pur CSS, zéro emoji.
   Il se balance en continu, comme l'enseigne du hero. */
.cookie-biscuit {
  flex-shrink: 0; position: relative;
  width: 44px; height: 44px; margin-top: 3px;
  background: radial-gradient(circle 15px at 88% 8%, transparent 97%, var(--ocre) 100%);
  border-radius: 50%;
  transform-origin: 50% -20%;
  animation: cookie-balance 3.8s ease-in-out infinite;
}
.cookie-biscuit::before {
  content: ""; position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brun); left: 10px; top: 16px;
  box-shadow: 17px 7px 0 var(--brun), 7px 16px 0 var(--brun),
              21px 18px 0 -1px var(--brun), 2px -7px 0 -1px var(--terracotta);
}
@keyframes cookie-balance {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
}
/* Sorties : « miam » (accepté — le biscuit se fait croquer) et
   « zou » (refusé — la carte replonge simplement) */
.banniere-cookies.miam, .banniere-cookies.zou {
  animation: banniere-sort 0.5s ease-in 0.12s forwards;
}
.banniere-cookies.miam .cookie-biscuit {
  animation: cookie-croque 0.45s ease-in forwards;
}
@keyframes banniere-sort {
  to { transform: translateY(140%); opacity: 0; }
}
@keyframes cookie-croque {
  40% { transform: rotate(-14deg) scale(0.82); }
  100% { transform: rotate(24deg) scale(0); }
}
.cookies-boutons { display: flex; gap: 10px; }
.cookies-boutons .btn { flex: 1; font-size: 13.5px; padding: 8px 10px; min-height: 40px; }
/* Refuser a exactement le même poids visuel qu'accepter (conformité
   RGPD) : mêmes dimensions, même ombre — seule la couleur change */
.btn-cookie {
  background: var(--parchemin); color: var(--brun);
  border: 1.5px solid var(--brun); box-shadow: 0 4px 0 var(--brun);
}
.btn-cookie:hover { background: var(--jaune); }
.btn-cookie-oui { background: var(--orange); }
.btn-cookie:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brun); }

/* ---------- Révélations au scroll ---------- */
html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--delai, 0s);
}
html:not(.no-js) .reveal.visible { opacity: 1; transform: none; }

/* Parallax générique : JS pose --parallax en px */
.parallax { transform: translateY(var(--parallax, 0)); will-change: transform; }

/* ---------- Accordéons FAQ (details/summary : fonctionne sans JS) ---------- */
.accordeon {
  background: var(--creme);
  border: 1.5px solid var(--brun);
  border-radius: var(--rayon-md);
  margin-bottom: var(--e-md);
  overflow: hidden;
}
.accordeon summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-md);
  cursor: pointer;
  font-family: var(--titres); font-weight: 700; font-size: 17.5px; color: var(--brun);
  padding: 18px 22px;
  list-style: none;
  transition: background-color 0.2s ease;
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary:hover { background: var(--parchemin-clair); }
.accordeon summary::after {
  content: ""; flex-shrink: 0;
  width: 14px; height: 14px;
  background: var(--orange);
  border-radius: 50% 50% 0 50%;
  transition: transform 0.25s ease, border-radius 0.25s ease;
}
.accordeon[open] summary::after { transform: rotate(135deg); background: var(--teal); }
.accordeon .reponse { padding: 0 22px 20px; font-size: 15.5px; color: var(--texte); }
.accordeon .reponse p + p { margin-top: var(--e-sm); }

/* ---------- Tableaux ---------- */
.tableau-cadre { overflow-x: auto; border-radius: var(--rayon-md); border: 1.5px solid var(--brun); }
table.comparatif { width: 100%; border-collapse: collapse; background: var(--creme); min-width: 640px; }
table.comparatif th {
  background: var(--brun); color: var(--parchemin);
  font-family: var(--titres); font-size: 14px; font-weight: 700;
  text-align: left; padding: 14px 16px;
}
table.comparatif th.avant { background: var(--orange-fonce); color: var(--creme); }
table.comparatif td {
  padding: 12px 16px; font-size: 15px;
  border-bottom: 1px solid var(--parchemin-sombre);
  vertical-align: top;
}
table.comparatif tr:last-child td { border-bottom: none; }
table.comparatif th.ligne {
  background: var(--creme); color: var(--brun);
  font-family: var(--texte-police); font-weight: 600; font-size: 15px;
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--parchemin-sombre);
}
table.comparatif tr:last-child th.ligne { border-bottom: none; }
table.comparatif td.oui { color: var(--brun); font-weight: 600; }
table.comparatif td.non { color: #9b8465; }
table.comparatif td.prix { text-align: right; color: var(--orange-fonce); font-weight: 700; white-space: nowrap; }

/* ---------- Formulaires ---------- */
.champ { margin-bottom: var(--e-lg); }
.champ label {
  display: block;
  font-family: var(--titres); font-weight: 700; font-size: 15px; color: var(--brun);
  margin-bottom: var(--e-sm);
}
.champ label .optionnel { font-weight: 400; color: var(--brun-doux); font-family: var(--texte-police); font-size: 13.5px; }
.champ input, .champ textarea, .champ select {
  width: 100%;
  font-family: var(--texte-police); font-size: 16px; color: var(--texte);
  background: var(--creme);
  border: 1.5px solid var(--brun);
  border-radius: var(--rayon-sm);
  padding: 13px 16px;
  min-height: 50px;
  transition: box-shadow 0.2s ease;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: 3px solid var(--brun); outline-offset: 2px;
}
.champ .erreur-msg {
  display: none;
  font-size: 14px; color: #A32100; font-weight: 600;
  margin-top: 6px;
}
.champ.invalide input, .champ.invalide textarea { border-color: #A32100; box-shadow: 0 0 0 1.5px #A32100; }
.champ.invalide .erreur-msg { display: block; }
/* Le honeypot est retiré du flux ET de l'accessibilité */
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-confirmation {
  background: var(--teal); color: var(--brun);
  border: 1.5px solid var(--brun); border-radius: var(--rayon-md);
  padding: var(--e-lg);
  font-weight: 600;
}
.form-confirmation[hidden] { display: none; }

/* ---------- Page contact ---------- */
.grille-contact {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .grille-contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pages légales ---------- */
.page-legale h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: var(--e-sm); }
.page-legale .maj { font-size: 14px; color: var(--brun-doux); margin-bottom: var(--e-xl); }
.corps-legal { max-width: 780px; }
.corps-legal h2 {
  font-size: 21px; margin: var(--e-xl) 0 var(--e-md);
  padding-left: 14px; border-left: 4px solid var(--orange);
}
.corps-legal h2 .num { color: var(--orange-fonce); }
.corps-legal p { margin-bottom: var(--e-md); }
.corps-legal ul { margin: 0 0 var(--e-md) 22px; }
.corps-legal li { margin-bottom: 6px; }
.corps-legal .tableau-cadre { margin-bottom: var(--e-md); }

/* ---------- Filtres de portfolio ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: var(--e-sm); margin-bottom: var(--e-xl); }
.filtre {
  font-family: var(--titres); font-weight: 600; font-size: 14.5px;
  color: var(--brun); background: var(--creme);
  border: 1.5px solid var(--brun); border-radius: 20px;
  padding: 9px 20px; min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filtre:hover { background: var(--parchemin-clair); }
.filtre[aria-pressed="true"] { background: var(--brun); color: var(--parchemin); }

.projet[hidden] { display: none; }

/* ---------- Divers ---------- */
.note-honnete {
  display: flex; gap: var(--e-md); align-items: flex-start;
  background: var(--parchemin-clair);
  border: 1.5px dashed var(--brun);
  border-radius: var(--rayon-md);
  padding: var(--e-lg);
  font-size: 15px; color: var(--texte);
  max-width: 820px;
}
.note-honnete strong { font-family: var(--titres); }
.note-honnete svg { flex-shrink: 0; margin-top: 2px; }

.liste-coche { list-style: none; }
.liste-coche li { position: relative; padding: 6px 0 6px 32px; }
.liste-coche li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--brun); border-radius: 50% 50% 4px 50%;
  background: var(--teal);
}

/* ---------- Cartes de réalisation ---------- */
.projets-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e-lg); }
.carte-projet { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.carte-projet .navigateur { border: none; border-radius: 0; box-shadow: none; border-bottom: 1.5px solid var(--brun); }
.carte-projet .infos { padding: var(--e-lg); display: flex; flex-direction: column; gap: var(--e-md); flex: 1; }
.carte-projet .entete-projet { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--e-md); }
.carte-projet h3 { font-size: 21px; }
.carte-projet .demontre { list-style: none; }
.carte-projet .demontre li {
  position: relative; padding: 4px 0 4px 24px; font-size: 14.5px; color: var(--texte);
}
.carte-projet .demontre li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 9px; height: 9px; background: var(--teal); border-radius: 50% 50% 0 50%;
}
.carte-projet .pied-projet {
  margin-top: auto; padding-top: var(--e-md);
  border-top: 1px solid var(--parchemin-sombre);
  display: flex; justify-content: space-between; align-items: center; gap: var(--e-sm);
  font-size: 14px; color: var(--brun-doux);
}
@media (max-width: 1000px) { .projets-grille { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }

/* ---------- Fiches projet détaillées (page Réalisations) ----------
   Trois projets seulement : de grandes fiches riches valent mieux
   qu'une grille à moitié vide (plan, section 6, point de vigilance). */
.projet-grand {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
}
.projet-grand + .projet-grand { border-top: 1.5px dashed var(--ligne); }
.projet-grand:nth-child(even) .colonne-visuel { order: 2; }
.projet-grand .badges { display: flex; flex-wrap: wrap; gap: var(--e-sm); margin-bottom: var(--e-md); }
.projet-grand h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: var(--e-sm); }
.projet-grand .pitch { font-size: 16.5px; color: var(--brun-doux); margin-bottom: var(--e-lg); }
.projet-grand h3 {
  font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--brun); margin: var(--e-lg) 0 var(--e-sm);
  display: flex; align-items: center; gap: 10px;
}
.projet-grand h3::before {
  content: ""; width: 12px; height: 12px;
  background: var(--orange); border-radius: 50% 50% 0 50%; flex-shrink: 0;
}
.projet-grand .parti-pris { font-size: 15.5px; }
.projet-grand .demontre { list-style: none; }
.projet-grand .demontre li { position: relative; padding: 5px 0 5px 28px; font-size: 15.5px; }
.projet-grand .demontre li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 10px; height: 10px; background: var(--teal); border-radius: 50% 50% 0 50%;
}
.projet-grand .demontre li strong { font-weight: 600; }
@media (max-width: 900px) {
  .projet-grand { grid-template-columns: minmax(0, 1fr); }
  .projet-grand:nth-child(even) .colonne-visuel { order: 0; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html:not(.no-js) .reveal { opacity: 1; transform: none; }
  html:not(.no-js) .titre-anime .mot-anime { opacity: 1; transform: none; animation: none; }
  .parallax { transform: none !important; }
  html:not(.no-js) .tilt:hover { transform: none; }
  .hero-enseigne { transform: none !important; }
  .enseigne-pendule, .hero-soleil .arc { animation: none !important; }
}

/* ---------- Impression ---------- */
@media print {
  .entete, .pied, .whatsapp-flottant, .banniere-cookies { display: none; }
}


/* ============================================================
   Ajouts — refonte hero/footer, réalisations réelles, pages
   Comment ça marche, À propos, Blog, Calculateur de devis, RDV
   ============================================================ */

/* Quand GSAP pilote les révélations, la version CSS s'efface
   (animations.js pose la classe gsap-on avant le premier rendu) */
html.gsap-on .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Captures réelles des sites démonstration ---------- */
.capture-site {
  position: relative;
  overflow: hidden;
  background: var(--brun);
  aspect-ratio: 16 / 10;
}
.capture-site img {
  width: 100%; height: 112%;
  object-fit: cover; object-position: top;
  will-change: transform;
}
a .capture-site img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
a:hover .capture-site img { transform: scale(1.045); }
.capture-site .voile {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: var(--e-md);
  background: linear-gradient(to top, rgba(44,24,16,0.55), transparent 45%);
  opacity: 0; transition: opacity 0.3s ease;
}
a:hover .capture-site .voile, a:focus-visible .capture-site .voile { opacity: 1; }
.capture-site .voile span {
  font-family: var(--titres); font-weight: 700; font-size: 15px;
  color: var(--parchemin);
  display: inline-flex; align-items: center; gap: 8px;
}
.capture-site .voile span::after { content: "→"; }

/* ---------- Timeline verticale (Comment ça marche) ---------- */
.timeline-verticale {
  position: relative;
  max-width: 760px;
  list-style: none;
  padding-left: 0;
}
.timeline-verticale::before {
  content: ""; position: absolute; left: 35px; top: 10px; bottom: 10px;
  width: 3px;
  background: linear-gradient(to bottom,
    var(--orange) calc(var(--avancement, 0) * 100%),
    var(--ligne) calc(var(--avancement, 0) * 100%));
  border-radius: 2px;
}
.etape-verticale {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr;
  gap: var(--e-lg);
  padding: var(--e-lg) 0;
}
.etape-verticale .jour {
  position: relative; z-index: 1;
  align-self: start; justify-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 56px; padding: 0 10px;
  background: var(--creme); border: 2px solid var(--brun); border-radius: var(--rayon-md);
  font-family: var(--titres); font-weight: 800; font-size: 16px; color: var(--brun);
  transition: background-color 0.3s ease;
}
.etape-verticale.active .jour { background: var(--orange); }
.etape-verticale h3 { font-size: 22px; margin-bottom: var(--e-sm); }
.etape-verticale p { font-size: 15.5px; color: var(--texte); }
.etape-verticale .vous {
  margin-top: var(--e-md);
  display: inline-block;
  font-size: 14px; color: var(--brun);
  background: var(--parchemin-clair);
  border: 1.5px dashed var(--brun);
  border-radius: var(--rayon-sm);
  padding: 8px 14px;
}
.etape-verticale .vous strong { font-family: var(--titres); font-weight: 700; margin-right: 4px; }
@media (max-width: 600px) {
  .timeline-verticale::before { left: 27px; }
  .etape-verticale { grid-template-columns: 56px 1fr; gap: var(--e-md); }
  .etape-verticale .jour { min-width: 56px; height: 48px; font-size: 14px; }
}

/* ---------- Page À propos ---------- */
.a-propos-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.portrait-fondateur {
  position: relative;
  justify-self: center;
}
.portrait-fondateur img {
  width: 100%; max-width: 380px;
  height: auto; /* neutralise l'attribut height du HTML, sinon l'aspect-ratio est ignoré */
  aspect-ratio: 4 / 5; object-fit: cover; /* ratio verrouillé : la photo ne peut pas se déformer */
  border-radius: 10000px 10000px var(--rayon-lg) var(--rayon-lg); /* arche : le motif qui signe le site */
  border: 2px solid var(--brun);
  box-shadow: var(--ombre-plate);
}
.portrait-fondateur .etiquette {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%) rotate(-2deg);
  background: var(--jaune); color: var(--brun);
  border: 1.5px solid var(--brun); border-radius: 20px;
  font-family: var(--titres); font-weight: 700; font-size: 13.5px;
  padding: 7px 18px; white-space: nowrap;
}
.portrait-fondateur::before {
  content: ""; position: absolute; z-index: -1;
  right: -28px; top: 14%; width: 110px; height: 110px;
  background: var(--terracotta); border-radius: 0 100% 0 0; opacity: 0.85;
}
.portrait-fondateur::after {
  content: ""; position: absolute; z-index: -1;
  left: -20px; bottom: 18px; width: 72px; height: 36px;
  background: var(--teal); border-radius: 72px 72px 0 0; opacity: 0.85;
}
.recit { max-width: 640px; }
.recit p { margin-bottom: var(--e-md); }
.conviction {
  font-family: var(--citations); font-style: italic;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.4;
  color: var(--brun);
  border-left: 4px solid var(--orange);
  padding-left: var(--e-lg);
  margin: var(--e-xl) 0;
  max-width: 44ch;
}
@media (max-width: 860px) {
  /* Ordre de lecture mobile : kicker, titre, photo, puis le récit.
     gap: 0 obligatoire — avec display: contents chaque paragraphe devient
     un enfant du flex et hériterait du grand gap prévu pour 2 colonnes. */
  .a-propos-hero { display: flex; flex-direction: column; gap: 0; }
  .recit { display: contents; }
  .recit .kicker { order: -3; }
  .recit h1 { order: -2; }
  .recit p { max-width: 640px; }
  .portrait-fondateur { order: -1; width: min(280px, 78vw); margin: 4px auto 36px; }
}

/* ---------- Blog ---------- */
.articles-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e-lg); }
@media (max-width: 1000px) { .articles-grille { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }
.carte-article { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.carte-article .visuel {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1.5px solid var(--brun);
  position: relative; overflow: hidden;
}
.carte-article .visuel .glyphe { width: 84px; opacity: 0.9; }
.carte-article .corps { padding: var(--e-lg); display: flex; flex-direction: column; gap: var(--e-sm); flex: 1; }
.carte-article .meta { font-size: 13.5px; color: var(--brun-doux); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.carte-article h2, .carte-article h3 { font-size: 20px; line-height: 1.25; }
.carte-article .extrait { font-size: 15px; color: var(--brun-doux); }
.carte-article .lire {
  margin-top: auto; padding-top: var(--e-md);
  font-family: var(--titres); font-weight: 700; font-size: 14.5px; color: var(--brun);
  display: inline-flex; align-items: center; gap: 8px;
}
.carte-article .lire::after { content: "→"; transition: transform 0.25s ease; }
a.carte:hover .lire::after { transform: translateX(4px); }

/* Article : gabarit de lecture */
.corps-article { max-width: 720px; }
.corps-article h2 { font-size: clamp(24px, 3vw, 30px); margin: var(--e-xl) 0 var(--e-md); }
.corps-article h3 { font-size: 20px; margin: var(--e-lg) 0 var(--e-sm); }
.corps-article p { margin-bottom: var(--e-md); }
.corps-article ul, .corps-article ol { margin: 0 0 var(--e-md) 24px; }
.corps-article li { margin-bottom: 8px; }
.corps-article .encadre {
  background: var(--parchemin-clair);
  border: 1.5px solid var(--brun); border-left-width: 6px;
  border-radius: var(--rayon-md);
  padding: var(--e-lg);
  margin: var(--e-lg) 0;
  font-size: 15.5px;
}
.barre-lecture {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 100%; height: 4px;
  transform-origin: left;
  transform: scaleX(var(--lecture, 0));
  background: var(--orange);
  pointer-events: none;
}

/* ---------- Calculateur de devis ---------- */
.calculateur { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: var(--e-xl); align-items: start; }
@media (max-width: 900px) { .calculateur { grid-template-columns: minmax(0, 1fr); } }
.choix-offre { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e-md); }
@media (max-width: 640px) { .choix-offre { grid-template-columns: minmax(0, 1fr); } }
.choix-offre input { position: absolute; opacity: 0; pointer-events: none; }
.choix-offre label {
  display: block; cursor: pointer;
  background: var(--creme);
  border: 2px solid var(--brun); border-radius: var(--rayon-md);
  padding: var(--e-md);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.choix-offre label .nom { font-family: var(--titres); font-weight: 800; font-size: 19px; display: block; }
.choix-offre label .tarif { font-family: var(--titres); font-weight: 800; font-size: 26px; color: var(--orange-fonce); display: block; }
.choix-offre label .pour { font-size: 13px; color: var(--brun-doux); }
.choix-offre input:checked + label {
  background: var(--brun);
  transform: translate(-2px, -2px);
  box-shadow: var(--ombre-plate);
}
.choix-offre input:checked + label .nom { color: var(--jaune); }
.choix-offre input:checked + label .tarif { color: var(--orange); }
.choix-offre input:checked + label .pour { color: #c9b896; }
.choix-offre input:focus-visible + label { outline: 3px solid var(--brun); outline-offset: 3px; }
.option-devis {
  display: flex; align-items: flex-start; gap: var(--e-md);
  background: var(--creme);
  border: 1.5px solid var(--brun); border-radius: var(--rayon-md);
  padding: 14px 16px;
  margin-bottom: var(--e-md);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.option-devis:hover { background: var(--parchemin-clair); }
.option-devis input {
  width: 22px; height: 22px; margin-top: 3px;
  accent-color: var(--orange-fonce);
  cursor: pointer; flex-shrink: 0;
}
.option-devis .lib { flex: 1; }
.option-devis .lib strong { font-family: var(--titres); font-weight: 700; font-size: 16px; display: block; }
.option-devis .lib span { font-size: 13.5px; color: var(--brun-doux); }
.option-devis .cout { font-family: var(--titres); font-weight: 800; font-size: 16px; color: var(--orange-fonce); white-space: nowrap; }
.recap-devis {
  position: sticky; top: 96px;
  background: var(--brun); color: var(--parchemin);
  border-radius: var(--rayon-lg);
  padding: var(--e-lg);
  box-shadow: var(--ombre-plate);
}
.recap-devis h2 { color: var(--jaune); font-size: 15px; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: var(--e-md); }
.recap-devis ul { list-style: none; margin-bottom: var(--e-md); }
.recap-devis li {
  display: flex; justify-content: space-between; gap: var(--e-md);
  font-size: 14.5px; padding: 7px 0;
  border-bottom: 1px dashed rgba(225,211,180,0.25);
}
.recap-devis li span:last-child { font-family: var(--titres); font-weight: 700; white-space: nowrap; }
.recap-devis .total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--titres); font-weight: 800;
  padding: var(--e-md) 0;
}
.recap-devis .total .somme { font-size: 40px; color: var(--orange); font-variant-numeric: tabular-nums; }
.recap-devis .mensuel { font-size: 13.5px; color: #c9b896; margin-bottom: var(--e-md); }
.recap-devis .btn { width: 100%; }
.recap-devis .note { font-size: 12.5px; color: #b3a184; margin-top: var(--e-md); }

/* ---------- Prise de rendez-vous ---------- */
.creneaux { display: flex; flex-wrap: wrap; gap: var(--e-sm); }
.creneau {
  font-family: var(--titres); font-weight: 600; font-size: 14.5px;
  color: var(--brun); background: var(--creme);
  border: 1.5px solid var(--brun); border-radius: var(--rayon-sm);
  padding: 10px 14px; min-height: 44px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.creneau:hover { background: var(--parchemin-clair); }
.creneau[aria-pressed="true"] {
  background: var(--orange); color: var(--brun);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(44,24,16,0.2);
}

/* ---------- Mini-parcours contact (3 questions qui écrivent le message) ---------- */
.mini-qcm {
  background: var(--parchemin-clair);
  border: 1.5px solid var(--ligne);
  border-radius: var(--rayon-lg);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.mini-qcm-titre { font-family: var(--titres); font-weight: 700; font-size: 16.5px; }
.mini-qcm-note { font-size: 13.5px; color: var(--brun-doux); margin-top: 2px; }
.mini-qcm-q { font-size: 14.5px; font-weight: 600; margin: 16px 0 10px; }
.mini-qcm-etape { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.mini-qcm-etape.visible { opacity: 1; transform: none; }
.mini-qcm-etape[hidden] { display: none; }
.mini-qcm-fin { font-size: 14px; font-weight: 600; color: var(--brun); margin-top: 16px; }

/* ---------- Calendly (module chargé au clic, jamais d'office) ---------- */
.calendly-bloc .calendly-inline-widget {
  border: 1.5px solid var(--brun);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  background: var(--creme);
}
.calendly-mention { font-size: 13px; color: var(--brun-doux); margin-top: 10px; }

/* ---------- Divers refonte ---------- */
/* Chiffre coloré : chaque stat du bandeau a sa pastille de couleur */
.chiffre .valeur .unite { color: var(--orange-fonce); }
.chiffre:nth-child(2) .valeur .unite { color: var(--sarcelle); }
.chiffre:nth-child(3) .valeur .unite { color: var(--ocre); }

/* ---------- Mouvement réduit : couper aussi les nouveautés ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-fond, .cookie-biscuit, .hero-soleil .arc, .enseigne-pendule,
  .banniere-cookies, .hero .titre-hero .marque::after { animation: none !important; }
  /* les choix restent instantanés : la carte disparaît sans glissade */
  .banniere-cookies.miam, .banniere-cookies.zou { display: none; }
  html:not(.no-js) .btn-vivant { animation: none; }
  .hero-indice .fil { animation: none; }
  .capture-site img { height: 100%; transition: none; }
  a:hover .capture-site img { transform: none; }
}

/* Liens légaux du pied de page : petits, discrets, même teinte */
.pied-bas a { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pied-bas a:hover { color: var(--jaune); }
