/* ==========================================================
   EMGClean – Feuille de styles
   Mobile en priorité : les styles de base visent le mobile,
   les media queries (min-width) enrichissent pour les grands écrans.

   Contrastes vérifiés (WCAG AA, texte normal ≥ 4,5:1) :
   - texte #22312B : 11,9 sur sauge, 11,8 sur sable, 8,0 sur menthe
   - bleu marine : 11,0 sur sauge, 10,9 sur sable, 7,5 sur menthe
   - vert profond : 5,5 sur sauge, 5,4 sur sable, 6,2 sur blanc
     (3,7 sur menthe et 2,0 sur bleu marine : jamais utilisé en texte sur ces fonds)
   - blanc sur bleu marine : 12,6 ; menthe sur bleu marine : 7,5
   ========================================================== */

/* ---------- 1. Variables (palette stricte) ---------- */
:root {
  --sage: #E8F2ED;      /* fond principal de la page */
  --mint: #97D3BF;      /* couleur de la marque, sections entières */
  --sand: #F3EEE6;      /* fond chaud en alternance */
  --navy: #13306B;      /* titres, boutons, sections sombres, pied de page */
  --deep: #2F6B58;      /* sur-titres, icônes, liens, traits décoratifs */
  --white: #FFFFFF;     /* uniquement les cartes posées sur un fond coloré */
  --text: #22312B;      /* texte courant */

  --font-title: "Fraunces", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 8px;
  --header-h: calc(var(--logo-h-mobile) + 14px);   /* logo + 7px d'air au-dessus et en dessous (80px au total) */

  /* Logo de l'en-tête */
  --logo-h-desktop: 94px;   /* hauteur du logo à partir de 768px */
  --logo-h-mobile: 66px;    /* hauteur du logo sous 768px */
  --logo-h: var(--logo-h-mobile);
  --logo-stretch: 1.18;     /* étirement horizontal (1 = proportions d'origine) */
  --logo-ratio: 1.2121;     /* largeur / hauteur du fichier logo (640 × 528) */
  --container: 1180px;
  --section-pad: 72px;

  --shadow-sm: 0 2px 6px rgba(19, 48, 107, .06), 0 8px 24px rgba(19, 48, 107, .07);
  --shadow-md: 0 4px 10px rgba(19, 48, 107, .08), 0 16px 40px rgba(19, 48, 107, .12);
  --line: rgba(47, 107, 88, .18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sage);
  -webkit-font-smoothing: antialiased;
  /* « clip » au lieu de « hidden » : ne casse pas position: sticky (Safari iOS) */
  overflow-x: clip;
}

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

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

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
}

h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.nowrap { white-space: nowrap; }

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

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

/* Icônes Lucide : taille réservée pour éviter tout décalage au chargement */
[data-lucide], .lucide {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  flex-shrink: 0;
  display: inline-block;
}

/* Sur-titre en majuscules espacées : vert profond par défaut */
.eyebrow {
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 12px;
}

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .lucide, .btn [data-lucide] { width: 18px; height: 18px; }

/* Principal : bleu marine, survol menthe (texte bleu marine) */
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--mint); border-color: var(--mint); color: var(--navy); box-shadow: var(--shadow-sm); }

/* Secondaire : contour bleu marine sur fond transparent */
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover,
.btn-secondary:focus-visible { background: var(--mint); border-color: var(--mint); }

/* Menthe (bandeau CTA sur bleu marine) : texte bleu marine */
.btn-mint { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.btn-mint:hover,
.btn-mint:focus-visible { background: var(--sage); border-color: var(--sage); }

/* ---------- 4. En-tête (sauge translucide) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(232, 242, 237, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Au défilement (classe ajoutée par script.js) */
.site-header.is-scrolled {
  background: rgba(232, 242, 237, .82);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(19, 48, 107, .08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: block; }
.brand img {
  height: var(--logo-h);
  width: auto;
  /* Étirement horizontal, ancré à gauche */
  transform: scaleX(var(--logo-stretch));
  transform-origin: left center;
  /* Le transform ne réserve pas de place : on ajoute à droite la largeur gagnée */
  margin-right: calc(var(--logo-h) * var(--logo-ratio) * (var(--logo-stretch) - 1));
}
@media (min-width: 768px) {
  :root { --logo-h: var(--logo-h-desktop); --header-h: calc(var(--logo-h-desktop) + 19px); } /* + 9,5px d'air (113px au total) */
}

/* Menu mobile : panneau déroulant */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--sage);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 20px 24px;
  display: none;
}
.main-nav.is-open { display: block; }

.main-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.main-nav li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
}
.main-nav .nav-cta { width: 100%; }

.burger {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Formes organiques floues (menthe, discrètes) ---------- */
.section--blob { position: relative; overflow: hidden; }
.blob {
  position: absolute;
  background: var(--mint);
  filter: blur(80px);
  opacity: .45;
  pointer-events: none;
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
}
.blob--etapes { width: 320px; height: 280px; top: 10%; right: -150px; }
.blob--faq { width: 300px; height: 260px; bottom: 8%; left: -160px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;       /* mobile : texte en bas, photo visible en haut */
  padding: calc(var(--header-h) + 24px) 0 40px;
  background: var(--sage);     /* visible tant que la photo charge : jamais sombre */
}

/* Photo de fond nette + zoom lent (Ken Burns) */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 60% 40%;
  animation: ken-burns 20s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Mobile : dégradé sauge uniquement en bas de l'écran, derrière le texte */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(232, 242, 237, 0) 0%,
    rgba(232, 242, 237, 0) 22%,
    rgba(232, 242, 237, .92) 44%,
    var(--sage) 58%);
}

.hero-inner { position: relative; }
.hero-text { max-width: 640px; }

/* Badge : fond menthe, texte bleu marine */
.badge {
  display: inline-block;
  background: var(--mint);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  margin: 0 0 18px;
}

/* Titre : chaque partie de la phrase commence sur sa propre ligne
   et peut passer à la ligne (phrase longue) sans jamais être coupée. */
.hero-title {
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero-line { display: block; }

/* Seconde partie en bleu marine, soulignée d'un trait « dessiné à la main ».
   Le trait est une image de fond répétée sur chaque ligne (box-decoration-break). */
.hero-line--accent {
  display: inline;
  color: var(--navy);
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 13 C 50 5, 95 6, 140 10 S 230 15, 296 6' fill='none' stroke='%232F6B58' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Sous-titre (2e phrase de l'accroche) */
.hero-tagline {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 12px;
  max-width: 32em;
}

.hero-lead { font-size: 1.08rem; max-width: 32em; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Badges de réassurance */
.trust {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
}
.trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.trust-icon .lucide, .trust-icon [data-lucide] { width: 16px; height: 16px; }

/* ---------- 7. La transformation (scroll-scrubbing plein écran) ---------- */
/* Hauteur 300vh : la scène reste épinglée pendant 200vh de défilement,
   puis la section suivante arrive directement (aucune marge). */
.transfo { position: relative; height: 300vh; background: var(--navy); }

.transfo-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--navy);   /* fond avant la 1re image (sombre mais neutre, hors premier écran) */
}
.transfo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Léger dégradé bleu marine en bas pour la lisibilité (texte blanc sur bleu marine) */
.transfo-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(19, 48, 107, 0) 0%, rgba(19, 48, 107, .4) 50%, rgba(19, 48, 107, .78) 100%);
  pointer-events: none;
}

.transfo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 96px; /* mobile : au-dessus du bouton d'appel flottant */
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.transfo-head .eyebrow { color: var(--mint); }
.transfo-head h2 { color: var(--white); margin: 0; }
/* « Avant » / « Après » cliquables : simple texte, soulignement léger au survol */
.transfo-jump { cursor: pointer; pointer-events: auto; text-underline-offset: 3px; }
.transfo-jump:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* Légendes : pastille sauge, texte bleu marine */
.transfo-captions { list-style: none; margin: 0; padding: 0; position: relative; height: 44px; }
.transfo-captions li {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--sage);
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  border-left: 3px solid var(--mint);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap;
}
.transfo-captions li.is-final { font-family: var(--font-title); font-size: 1.1rem; }
.transfo-captions li.is-active { opacity: 1; transform: none; }

/* Barre de progression fine menthe, sur le bord droit */
.transfo-progress {
  position: absolute;
  top: calc(var(--header-h) + 16px);
  bottom: 24px;
  right: 10px;
  width: 4px;
  border-radius: 2px;
  background: rgba(232, 242, 237, .35);
  overflow: hidden;
}
.transfo-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mint);
  transform: scaleY(0);
  transform-origin: top;
}

/* Scène de la vidéo : plein écran sur desktop */
.transfo-stage { position: absolute; inset: 0; }

/* Mobile (< 768 px) : bande titre + vidéo 4:5 pleine largeur (cover) + bande légendes.
   L'ensemble remplit la hauteur visible sous l'en-tête, centré verticalement.
   Si la hauteur manque, la vidéo cède d'abord de la hauteur (le recadrage
   « cover » se fait dans drawImage, script.js). */
@media (max-width: 767px) {
  .transfo-sticky {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
  }
  .transfo-stage {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    flex: 0 1 125vw;          /* ratio 4:5 */
    min-height: 0;
  }
  .transfo-shade { display: none; }
  /* Les blocs du calque deviennent des éléments de la colonne */
  .transfo-overlay { display: contents; }
  .transfo-head { order: 1; padding: 20px; }
  .transfo-head .eyebrow { margin-bottom: 8px; }
  .transfo-head h2 { font-size: 1.6rem; }
  .transfo-captions {
    order: 3;
    flex: 0 0 auto;
    height: 62px;
    margin: 0;
  }
  .transfo-captions li {
    left: 20px;
    top: 16px;
    bottom: auto;
    background: none;
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1.3;
    padding: 0 0 0 12px;
    border-radius: 0;
  }
  .transfo-captions li.is-final { font-size: 1.4rem; }
}
/* Petits écrans (ex. 375 × 667) : titre légèrement réduit */
@media (max-width: 767px) and (max-height: 720px) {
  .transfo-head { padding: 16px 20px; }
  .transfo-head .eyebrow { margin-bottom: 4px; }
  .transfo-head h2 { font-size: 1.35rem; }
}

/* Version statique (masquée par défaut, affichée si mouvement réduit) */
.transfo-static { display: none; }
.transfo-static .eyebrow { color: var(--mint); }
.transfo-static h2 { color: var(--white); }
.transfo-static-grid { display: grid; gap: 16px; }
.transfo-static figure { margin: 0; }
.transfo-static img { width: 100%; border-radius: var(--radius); }
.transfo-static figcaption { margin-top: 8px; font-weight: 600; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .transfo { height: auto; padding: var(--section-pad) 0; }
  .transfo-sticky { display: none; }
  .transfo-static { display: block; }
}

/* ---------- 8. Sections et vagues ---------- */
.section { padding: var(--section-pad) 0; }
.section--sage { background: var(--sage); }
.section--sand { background: var(--sand); }
.section--mint { background: var(--mint); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* Sur-titres : menthe sur bleu marine, bleu marine sur menthe (contraste AA) */
.section--navy .eyebrow, .section--navy .section-title::after { color: var(--mint); }
.section--mint .eyebrow { color: var(--navy); }

/* Vague : le fond du bloc = section précédente, le tracé = section suivante */
.wave { display: block; line-height: 0; }
.wave svg { display: block; width: 100%; height: 40px; }
.wave--sand-to-navy { background: var(--sand); }
.wave--sand-to-navy path { fill: var(--navy); }
.wave--navy-to-mint { background: var(--navy); }
.wave--navy-to-mint path { fill: var(--mint); }
.wave--mint-to-sage { background: var(--mint); }
.wave--mint-to-sage path { fill: var(--sage); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; position: relative; }
.section-intro { font-size: 1.05rem; margin: 0; }

/* Trait décoratif sous les titres de section */
.section-title { position: relative; padding-bottom: 16px; }
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--deep);
  border-radius: 2px;
  transform: translateX(-50%);
}
.section--navy .section-title::after { background: var(--mint); }
.section--mint .section-title::after { background: var(--navy); }
.section-title--left::after { left: 0; transform: none; }

/* Pastille d'icône : icône bleu marine sur fond menthe */
.icon-pill {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- 9. Services (fond sable, cartes blanches) ---------- */
.cards { display: grid; gap: 24px; grid-auto-rows: 1fr; }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent; /* masque le texte alternatif si l'image ne charge pas */
  transition: transform .6s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { position: relative; flex: 1; padding: 0 24px 28px; }
/* La pastille chevauche la photo */
.card-body .icon-pill { margin-top: -26px; margin-bottom: 16px; box-shadow: 0 0 0 4px var(--white); }
.card-body p { margin: 0; }

.card-short { display: none; }

/* Mobile (< 768 px) : 2 colonnes compactes, la 5e carte en pleine largeur */
@media (max-width: 767px) {
  #services { padding: 48px 0; }
  #services .section-head { margin-bottom: 24px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-rows: auto; }
  .card-body { padding: 10px 12px 14px; }
  .card-body .icon-pill { display: none; }
  .card h3 { font-size: 15px; line-height: 1.25; margin-bottom: 4px; }
  .card-desc { display: none; }
  .card-short { display: block; font-size: 13px; line-height: 1.4; }
  /* 5e carte : photo à gauche (40 %), texte à droite */
  .card:nth-child(5) { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .card:nth-child(5) .card-media { flex: 0 0 40%; }
  .card:nth-child(5) .card-body { display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; }
}

/* ---------- 10. Pourquoi nous (fond bleu marine) ---------- */
.features { display: grid; gap: 16px; }

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(232, 242, 237, .2);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { margin-bottom: .35em; }
.feature h3:only-child { margin-bottom: 0; }
.feature p { margin: 0; color: var(--white); }

/* ---------- 11. Notre engagement (fond menthe) ---------- */
.engagement-inner { display: grid; gap: 48px; align-items: center; }

.engagement-media { position: relative; margin: 0 16px 16px 0; }
/* Cadre décalé vert profond derrière la photo */
.engagement-media::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--deep);
  border-radius: var(--radius);
}
.engagement-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sage);
  color: transparent;
}

.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(19, 48, 107, .15);
  font-weight: 500;
  color: var(--text);
}
.checklist li:last-child { border-bottom: 0; }
/* Coche blanche sur pastille bleu marine */
.checklist .lucide, .checklist [data-lucide] {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  stroke-width: 2.25;
}

/* ---------- 12. Étapes (fond sauge, cartes blanches) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.step p { margin: 0; }

/* ---------- 13. Zone (fond sable) ---------- */
.zone-inner { display: grid; gap: 32px; align-items: center; }

.map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* Liste d'infos avec icônes vert profond */
.info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}
.info-list .lucide, .info-list [data-lucide] { color: var(--deep); margin-top: 2px; width: 20px; height: 20px; }
.info-list a { color: var(--deep); font-weight: 500; text-decoration: none; }
.info-list a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- 14. FAQ (fond sauge, accordéon natif <details>) ---------- */
.faq-inner { max-width: 820px; }
.faq { display: grid; gap: 12px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .lucide, .faq-item summary [data-lucide] { color: var(--deep); transition: transform .25s ease; }
.faq-item[open] summary .lucide { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 22px 22px; }

/* ---------- 15. Bandeau CTA (fond bleu marine) ---------- */
.cta-band { background: var(--navy); padding: 56px 0; }
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin: 0; }

/* ---------- 16. Devis (fond sable, formulaire centré) ---------- */
.contact-grid { max-width: 720px; margin: 0 auto; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
}

.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0; }

label {
  display: block;
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 6px;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid #B9CCC4;
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(151, 211, 191, .7);
}
.is-invalid { border-color: #B3261E; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-note { font-size: .85rem; }
.btn + .form-note { margin-top: 10px; }   /* mention sous le bouton d'envoi */
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status.is-success { color: var(--deep); }
.form-status.is-error { color: #B3261E; }

/* ---------- 17. Pied de page (bleu marine) ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 96px; /* marge basse pour le bouton flottant mobile */
}
.site-footer a { color: var(--white); }
.site-footer a:hover { text-decoration-color: var(--mint); }

.footer-grid { display: grid; gap: 28px; }
.footer-brand { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; margin-bottom: .3em; }
.footer-title { font-weight: 600; margin-bottom: .5em; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 242, 237, .2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 18. Bouton d'appel flottant (mobile) ---------- */
.call-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(19, 48, 107, .3);
  z-index: 90;
}
.call-fab .lucide, .call-fab [data-lucide] { width: 24px; height: 24px; }

/* ---------- 19. Apparition douce au scroll ---------- */
/* Appliquée seulement si JavaScript est actif (classe .js sur <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Les cartes gardent leur effet de survol une fois apparues */
.js .card.reveal.is-visible { transition: opacity .6s ease, transform .3s ease, box-shadow .3s ease; }
.js .card.reveal.is-visible:hover { transform: translateY(-4px); }

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

/* ==========================================================
   Tablettes (≥ 640px)
   ========================================================== */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-form { padding: 32px; }
  .cta-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .transfo-static-grid { grid-template-columns: 1fr 1fr; }
  .transfo-progress { right: 16px; }
  .wave svg { height: 60px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================
   Ordinateurs (≥ 960px)
   ========================================================== */
@media (min-width: 960px) {
  :root { --section-pad: 104px; }

  /* Menu horizontal */
  .burger { display: none; }
  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .main-nav ul { display: flex; gap: 30px; margin: 0; }
  .main-nav li a {
    padding: 6px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease;
  }
  .main-nav li a:hover { border-bottom-color: var(--deep); }
  .main-nav .nav-cta { width: auto; }

  /* Hero : panneau sauge semi-opaque à gauche, photo nette à droite */
  .hero { align-items: center; padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-bg img { object-position: 70% 50%; }
  .hero-fade { display: none; }
  .hero-panel {
    max-width: 720px;
    padding: 44px 44px 40px;
    background: rgba(232, 242, 237, .9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  /* Jusqu'à 42px sur grand écran (accroche longue) */
  .hero-title { font-size: clamp(2.1rem, 2.9vw, 2.6rem); }

  .transfo-overlay { padding-bottom: 64px; }
  .transfo-captions { height: 52px; }
  .transfo-captions li { font-size: 1.05rem; padding: 10px 18px; }
  .transfo-captions li.is-final { font-size: 1.35rem; }
  .transfo-progress { right: 24px; }

  /* Services : 3 + 2 centrées, cartes de même hauteur */
  .cards { grid-template-columns: repeat(6, 1fr); gap: 28px; }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .card:nth-child(5) { grid-column: 4 / span 2; }

  .features { grid-template-columns: repeat(4, 1fr); }
  .features--5 { grid-template-columns: repeat(5, 1fr); }
  .feature { flex-direction: column; }

  .engagement-inner { grid-template-columns: 1fr 1fr; gap: 80px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .zone-inner { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .map iframe { height: 420px; }

  .cta-band { padding: 72px 0; }


  .site-footer { padding-bottom: 32px; }
  .call-fab { display: none; }
}

/* ==========================================================
   Page Mentions légales
   ========================================================== */
.legal { padding: calc(var(--header-h) + 48px) 0 var(--section-pad); background: var(--sand); }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.back-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-decoration-color: var(--deep); }
.legal ~ .site-footer { padding-bottom: 32px; }
