/* =====================================================================
   Solutions CA — styles.css (V3)
   Un seul fichier, organisé en couches :
   1. Tokens   2. Base   3. Composants partagés   4. Header / Footer
   5. Accueil  6. CADealer 2  7. À propos  8. Démo  9. Industries
   10. Pages légales  11. Heros centrés  12. Analytics
   Règle de couleur : marine = texte et bandes sombres ; teal = l'unique
   accent (CTA, liens, icônes). Pas d'autre couleur d'accent.
   ===================================================================== */

@import url('../fonts/archivo.css');
@import url('../fonts/inter.css');

/* ───────────── 1. TOKENS ───────────── */
:root {
  /* Marque */
  --navy:        #001952;
  --navy-deep:   #0A0F27;
  --teal:        #12769E;
  --teal-hover:  #0E5F80;
  --teal-soft:   #E6F1F6;

  /* Neutres */
  --bg:          #ffffff;
  --bg-alt:      #F4F6F9;
  --surface:     #ffffff;
  --line:        #DCE3EC;
  --text:        #0A0F27;
  --text-2:      #475467;
  --text-3:      #6B7686;
  --on-dark:     #ffffff;
  --on-dark-2:   #B8C7DE;
  --on-dark-3:   #7F90AE;

  /* États (formulaire demo) */
  --error:       #B42318;
  --error-bg:    #FEF3F2;
  --success:     #067647;
  --success-bg:  #ECFDF3;

  /* Typographie — Archivo = titres, Inter = corps */
  --font-display: "Archivo", "Inter", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:  0.8125rem;
  --text-sm:  0.9375rem;
  --text-md:  1.0625rem;
  --text-lg:  1.25rem;
  --text-xl:  1.625rem;
  --text-2xl: 2.25rem;
  --text-3xl: clamp(2.5rem, 5vw, 3.75rem);

  /* Espacement */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem;   --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-24: 6rem;

  /* Formes */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(10,15,39,.04), 0 8px 24px -12px rgba(0,25,82,.18);

  --container: 1200px;
  --header-h: 72px;
}

/* ───────────── 2. BASE ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h1 { font-size: var(--text-3xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0; }
a  { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }
img { max-width: 100%; height: auto; display: block; }
ul  { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ───────────── 3. COMPOSANTS PARTAGÉS ───────────── */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--space-24); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head p { color: var(--text-2); font-size: var(--text-lg); margin-top: var(--space-4); }
.lede { color: var(--text-2); font-size: var(--text-lg); }
.lede + .lede { margin-top: var(--space-4); }

/* Icône générique (SVG inline, 1 couleur = currentColor) */
.icon-xs { width: 16px; height: 16px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--text-sm);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.75rem; font-size: var(--text-md); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-soft); color: var(--teal-hover); }
/* Sur fond sombre */
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* Carte de base */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

/* ───────────── 4. HEADER ───────────── */
/* Header marine (#001952 = --navy), texte clair, logo blanc.
   Réserve la hauteur (et la couleur) tant que includeHeader.js n'a pas injecté
   le header : évite le saut de mise en page et le flash blanc à l'arrivée.
   Le sticky est sur le placeholder et non sur .site-header : un élément sticky
   ne colle que dans les limites de son parent, ici de la même hauteur que lui. */
#header-placeholder { min-height: var(--header-h); position: sticky; top: 0; z-index: 50; background: var(--navy); }

.site-header {
  position: relative;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header :focus-visible { outline-color: #fff; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav a { color: var(--on-dark-2); font-weight: 500; font-size: var(--text-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-actions { display: flex; align-items: center; gap: var(--space-6); }
.phone { color: #fff; font-weight: 600; font-size: var(--text-sm); display: inline-flex; align-items: center; gap: .45rem; }
.phone svg { color: var(--teal); }
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: none; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-sm); color: #fff;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .icon-close { display: none; }
.site-header.open .menu-btn .icon-open { display: none; }
.site-header.open .menu-btn .icon-close { display: block; }

@media (max-width: 960px) {
  .nav, .phone { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: var(--space-2) 0;
  }
  .site-header.open .nav a { padding: .9rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-header.open .nav a:last-child { border-bottom: 0; }
  .header-actions .btn { padding: .7rem 1.1rem; }
}
@media (max-width: 420px) {
  .header-actions .btn-label-long { display: none; }
}
@media (min-width: 421px) {
  .header-actions .btn-label-short { display: none; }
}

/* ───────────── 4. FOOTER ───────────── */
.site-footer { background: var(--navy-deep); color: var(--on-dark-2); padding: var(--space-16) 0 var(--space-8); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-12); }
.footer-grid img { height: 36px; width: auto; margin-bottom: var(--space-4); }
.footer-grid h3 { color: #fff; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-4); }
.footer-grid li + li { margin-top: var(--space-2); }
.footer-grid a { color: var(--on-dark-2); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  color: var(--on-dark-3); font-size: var(--text-xs);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ───────────── 5. ACCUEIL — HERO ───────────── */
.hero { position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.hero-media {
  position: absolute; inset: 0 0 0 auto; width: 62%;
  background-image: url('../illustrations/motodroite2.JPG');
  background-size: cover; background-position: 70% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, #000 42%);
  opacity: .92;
}
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,25,82,.15), rgba(0,25,82,.55)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); max-width: 620px; }
.hero h1 { color: #fff; }
.hero p.lede { color: var(--on-dark-2); margin-top: var(--space-6); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* Animations automatiques du site : l'entrée du hero et l'emblème flottant de À propos (section 7). */
.hero-animate { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-animate:nth-child(2) { animation-delay: .1s; }
.hero-animate:nth-child(3) { animation-delay: .2s; }
.hero-animate:nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-facts {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(0,25,82,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-facts li { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-right: 1px solid rgba(255,255,255,.14); }
.hero-facts li + li { padding-left: var(--space-6); }
.hero-facts li:last-child { border-right: 0; }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.hero-facts span { color: var(--on-dark-2); font-size: var(--text-sm); }

@media (max-width: 960px) {
  .hero-media {
    width: 100%; opacity: .5;
    -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 70%);
            mask-image: linear-gradient(to bottom, transparent 20%, #000 70%);
  }
  .hero-facts ul { grid-template-columns: repeat(2, 1fr); }
  .hero-facts li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding-left: 0 !important; }
  .hero-facts li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ───────────── 5. ACCUEIL — MODULES ───────────── */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.module { transition: border-color .15s; }
.module:hover { border-color: var(--teal); }
.module .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: var(--space-4); }
.module p { color: var(--text-2); font-size: var(--text-sm); margin-top: var(--space-2); }
.modules-foot { margin-top: var(--space-8); display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.modules-foot p { color: var(--text-2); }
@media (max-width: 960px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .modules { grid-template-columns: 1fr; } }

/* ───────────── 5. ACCUEIL — POURQUOI ───────────── */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-16); align-items: start; }
.why h2 + .lede { margin-top: var(--space-4); }
.why-list { display: grid; gap: var(--space-4); }
.why-list li { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-4); }
.why-list .check { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.why-list h3 { font-size: var(--text-md); }
.why-list p { color: var(--text-2); font-size: var(--text-sm); margin-top: var(--space-1); }
@media (max-width: 960px) { .why { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ───────────── 5. ACCUEIL — MARQUES (défilement) ───────────── */
.brands { padding-block: var(--space-12); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-inner { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); align-items: center; }
.brands-inner p { color: var(--text-2); font-size: var(--text-sm); }
.brand-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.brand-track ul { display: flex; align-items: center; gap: var(--space-12); width: max-content; animation: marquee 48s linear infinite; }
.brand-track img { height: 44px; width: auto; filter: grayscale(100%); opacity: .7; transition: filter .2s, opacity .2s; }
.brand-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 960px) { .brands-inner { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .brand-track ul { animation: none; flex-wrap: wrap; width: auto; } .brand-track { mask-image: none; -webkit-mask-image: none; } }

/* ───────────── 5. ACCUEIL — TÉMOIGNAGES ───────────── */
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); margin-bottom: var(--space-12); }
.testi-head .section-head { margin-bottom: 0; }
.testi-nav { display: flex; gap: var(--space-2); flex-shrink: 0; }
.testi-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: grid; place-items: center;
  transition: border-color .15s, color .15s;
}
.testi-nav button:hover { border-color: var(--teal); color: var(--teal); }
.testi-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--space-4)) / 3);
  gap: var(--space-4);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* overflow-x rogne aussi verticalement : on réserve la place du relief au survol
     (montée de 3px + ombre) sans décaler la section. */
  padding: 4px 0 var(--space-6); margin: -4px 0 calc(-1 * var(--space-6));
}
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  scroll-snap-align: start; padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.testi:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-card); }
@media (prefers-reduced-motion: reduce) { .testi:hover { transform: none; } }
.testi blockquote { margin: 0; font-size: var(--text-md); color: var(--text); flex: 1; }
.testi blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--teal); margin-bottom: var(--space-4); }
.testi footer { display: flex; align-items: center; gap: var(--space-3); }
.testi .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); display: grid; place-items: center; }
.testi cite { font-style: normal; display: block; line-height: 1.3; }
.testi cite strong { display: block; font-size: var(--text-sm); }
.testi cite span { color: var(--text-3); font-size: var(--text-xs); }
@media (max-width: 960px) { .testi-track { grid-auto-columns: calc((100% - var(--space-4)) / 2); } }
@media (max-width: 640px) { .testi-track { grid-auto-columns: 88%; } .testi-head { flex-direction: column; align-items: flex-start; } }

/* ───────────── 5. ACCUEIL — PARTENAIRES ───────────── */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.partner { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: var(--space-6); transition: border-color .15s; }
.partner:hover { border-color: var(--teal); }
/* minmax(0, 1fr) + max-width 100 % : les colonnes peuvent rétrécir sous la largeur du logo
   (sinon la grille déborde du conteneur sur mobile). */
.partner img { max-height: 56px; width: auto; max-width: min(160px, 100%); }
@media (max-width: 960px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .partner { min-height: 96px; padding: var(--space-4); } .partner img { max-height: 44px; } }

/* ───────────── 5. ACCUEIL — BANDE D'APPEL ───────────── */
.cta-band { background: var(--navy); color: var(--on-dark); padding-block: var(--space-16); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: var(--on-dark-2); margin-top: var(--space-3); }
.cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ───────────── 6. CADEALER 2 — EN-TÊTE DE PAGE ───────────── */
.page-hero { background: var(--navy); color: var(--on-dark); }
/* Le bas est allongé pour que la capture d'écran chevauche la bande marine. */
.page-hero-inner { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(6rem, 12vw, 9rem); max-width: 680px; }
.page-hero h1 { color: #fff; }
.page-hero p.lede { color: var(--on-dark-2); margin-top: var(--space-6); max-width: 58ch; }
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: var(--space-4); }

.product-shot-wrap { margin-top: clamp(-7rem, -9vw, -4rem); position: relative; }
.product-shot { margin: 0; }
.product-shot img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(10,15,39,.06), 0 24px 48px -16px rgba(0,25,82,.35);
  background: #fff;
}
.product-shot figcaption { margin-top: var(--space-3); color: var(--text-3); font-size: var(--text-xs); text-align: center; }

/* ───────────── 6. CADEALER 2 — FONCTIONNALITÉS ───────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.feature { padding: var(--space-8); }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: var(--space-4); }
.feature p { color: var(--text-2); font-size: var(--text-sm); margin-top: var(--space-2); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature { padding: var(--space-6); } }

/* ───────────── 6. CADEALER 2 — MODULE F&I ───────────── */
/* Photo fondue dans le fond de section, même recette que .hero-media sur l'accueil :
   ancrée au bord gauche, masquée vers le texte (droite) et vers le titre (haut),
   avec un léger voile couleur --bg-alt pour garder le titre lisible. */
#fi { position: relative; overflow: hidden; }
.fi { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-16); align-items: start; }
.fi h2 + .lede { margin-top: var(--space-4); }
.fi-media {
  position: absolute; inset: 0 auto 0 0; width: 48%;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 100%);
          mask-image: linear-gradient(to right, #000 50%, transparent 100%);
}
.fi-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 35% center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}
.fi-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,246,249,.7), rgba(244,246,249,.1)); }
.fi-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.fi-steps li { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-4); }
.fi-num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.fi-steps h3 { font-size: var(--text-md); }
.fi-steps p { color: var(--text-2); font-size: var(--text-sm); margin-top: var(--space-1); }
@media (max-width: 960px) {
  .fi { grid-template-columns: 1fr; gap: var(--space-10); }
  /* Une colonne : la photo passe en tête de section, pleine largeur, fondue vers le bas. */
  .fi-media { position: relative; inset: auto; width: auto; height: 260px; margin: calc(-1 * var(--space-24)) 0 var(--space-8); -webkit-mask-image: none; mask-image: none; }
  .fi-media img { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
  .fi-media::after { background: linear-gradient(180deg, rgba(244,246,249,.1), rgba(244,246,249,.5)); }
}

/* ───────────── 6. CADEALER 2 — FAQ ───────────── */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-16); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  padding: var(--space-6) 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--teal); font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; line-height: 1;
  transition: transform .2s, border-color .15s;
}
.faq-list summary:hover { color: var(--teal); }
.faq-list summary:hover::after { border-color: var(--teal); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-2); padding-bottom: var(--space-6); max-width: 65ch; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 0; } }

/* ───────────── 7. À PROPOS ───────────── */
/* En-tête sans capture qui chevauche : bas normal. */
.page-hero-short .page-hero-inner { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-12) var(--space-8); }
.pillars li { border-top: 1px solid var(--line); padding-top: var(--space-6); }
.pillars .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: var(--space-4); }
.pillars p { color: var(--text-2); font-size: var(--text-sm); margin-top: var(--space-2); }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; gap: var(--space-8); } }

.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: center; }
.story-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-md); }
.story h2 + .lede { margin-top: var(--space-4); }
.results { margin-top: var(--space-8); display: grid; gap: var(--space-3); }
.results li { padding-left: var(--space-4); border-left: 3px solid var(--teal); color: var(--text-2); }
.results strong { color: var(--text); }
@media (max-width: 960px) { .story { grid-template-columns: 1fr; gap: var(--space-10); } }

.included { margin-top: var(--space-16); padding: var(--space-10); }
.included h3 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.checklist { columns: 2; column-gap: var(--space-10); }
.checklist li { break-inside: avoid; margin-bottom: var(--space-3); }
.checklist li { position: relative; padding-left: 2rem; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--teal);
  /* coche blanche en SVG inline */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 70%; background-repeat: no-repeat; background-position: center;
}
@media (max-width: 640px) { .included { padding: var(--space-6); } .checklist { columns: 1; } }

/* En-tête À propos : texte + emblème Solutions CA qui flotte, avec halo teal
   (repris de l'accueil V2). Coupé par prefers-reduced-motion (section 2). */
.page-hero-split { display: grid; grid-template-columns: 1fr auto; gap: var(--space-12); align-items: center; }
.hero-emblem {
  width: clamp(180px, 24vw, 300px); height: auto;
  margin-right: clamp(0rem, 4vw, 4rem);
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 48px rgba(18,118,158,.55), 0 0 0 1px rgba(255,255,255,.08);
  animation: floatTilt 6s ease-in-out infinite;
}
@keyframes floatTilt {
  0%, 50%, 100% { transform: translateY(0) rotate3d(1, 1, 0, 0deg);  box-shadow: 0 0 48px rgba(18,118,158,.55), 0 0 0 1px rgba(255,255,255,.08); }
  25%           { transform: translateY(-12px) rotate3d(1, 1, 0, 4deg);  box-shadow: 0 12px 64px rgba(18,118,158,.7), 0 0 0 1px rgba(255,255,255,.08); }
  75%           { transform: translateY(-12px) rotate3d(-1, 1, 0, -4deg); box-shadow: 0 12px 64px rgba(18,118,158,.7), 0 0 0 1px rgba(255,255,255,.08); }
}
@media (max-width: 760px) {
  .page-hero-split { grid-template-columns: 1fr; gap: 0; }
  .hero-emblem { width: 140px; margin: 0 0 var(--space-12); order: 2; }
}

/* ───────────── 8. DÉMO — FORMULAIRE ───────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-8); align-items: start; }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-card); }
.form-card h2 { font-size: var(--text-xl); }
.form-note { color: var(--text-3); font-size: var(--text-xs); margin-top: var(--space-2); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); margin: var(--space-8) 0 var(--space-6); }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: var(--text-md);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { border-color: #C3CDDB; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--error-bg); }
.field-error { color: var(--error); font-size: var(--text-xs); margin-top: var(--space-1); }

.form-status { background: var(--error-bg); color: var(--error); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.form-card .btn[type="submit"] { width: 100%; }
.btn.is-busy { opacity: .7; cursor: progress; }
.btn.is-busy::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-legal { color: var(--text-3); font-size: var(--text-xs); margin-top: var(--space-4); text-align: center; }
/* Le badge reCAPTCHA est remplacé par la mention ci-dessus (permis par Google). */
.grecaptcha-badge { visibility: hidden; }

.form-success { text-align: center; padding: var(--space-8) 0; }
.form-success:focus { outline: none; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: inline-grid; place-items: center; margin-bottom: var(--space-6); }
.form-success p { color: var(--text-2); max-width: 46ch; margin: var(--space-4) auto var(--space-8); }

.contact-aside { display: grid; gap: var(--space-4); }
.contact-aside h3 { font-size: var(--text-md); margin-bottom: var(--space-4); }
.contact-card li { display: flex; flex-direction: column; padding: var(--space-3) 0; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.contact-card li:first-child { border-top: 0; padding-top: 0; }
.contact-card li span { color: var(--text-3); font-size: var(--text-xs); }
.contact-card a { font-weight: 600; }
.demo-perks .checklist { columns: 1; }
.demo-perks .checklist li { font-size: var(--text-sm); }
.aside-demo p { color: var(--text-2); font-size: var(--text-sm); margin: calc(-1 * var(--space-2)) 0 var(--space-4); }

@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ───────────── 9. INDUSTRIES ───────────── */
/* Sommaire collant sous le header : chaque pastille saute à son industrie. */
.industry-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.industry-nav ul { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-block: var(--space-3); }
.industry-nav ul::-webkit-scrollbar { display: none; }
.industry-nav a {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .45rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--text-2); font-size: var(--text-sm); font-weight: 500;
  transition: border-color .15s, color .15s, background-color .15s;
}
.industry-nav a span { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); color: var(--teal); }
.industry-nav a:hover { border-color: var(--teal); color: var(--text); background: var(--teal-soft); }
.industry { scroll-margin-top: calc(var(--header-h) + 60px); }

.industry-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.industry-flip .industry-media { order: 2; }
.industry-media { position: relative; margin: 0; }
.industry-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.industry-num {
  position: absolute; left: var(--space-6); bottom: calc(-1 * var(--space-6));
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); line-height: 1;
  color: var(--navy); -webkit-text-stroke: 0; background: var(--bg); padding: .1em .25em .05em; border-radius: var(--radius-md);
}
.section-alt .industry-num { background: var(--bg-alt); }
.industry-flip .industry-num { left: auto; right: var(--space-6); }

.industry-kicker { color: var(--teal); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3); }
.industry-body .lede { margin-top: var(--space-4); }
.industry-points { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.industry-points li { position: relative; padding-left: 1.75rem; color: var(--text-2); }
.industry-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: 2px; background: var(--teal); }

.industry-ref { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.industry-ref > p:first-child { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-4); }
.ref-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.ref-logos img { height: 26px; width: auto; max-width: 110px; object-fit: contain; filter: grayscale(100%); opacity: .7; transition: filter .2s, opacity .2s; }
.ref-logos img:hover { filter: none; opacity: 1; }
.ref-logos img.lg { height: 40px; } /* logos carrés ou empilés, illisibles à 26px */
.ref-logos + .ref-note { margin-top: var(--space-4); }
.ref-text { font-family: var(--font-display); font-weight: 700; color: var(--text-3); }
.ref-note { color: var(--text-2); font-size: var(--text-sm); }

@media (max-width: 960px) {
  .industry-inner { grid-template-columns: 1fr; }
  .industry-flip .industry-media { order: 0; }
  .industry-body { margin-top: var(--space-6); }
}

/* ───────────── 10. PAGES LÉGALES ───────────── */
/* Texte long (politique de confidentialité, conditions) : colonne de lecture étroite. */
.legal { max-width: 72ch; }
.legal h2 { font-size: var(--text-xl); }
.legal h3 { margin-top: var(--space-8); }
.legal h2 + p, .legal h3 + p { margin-top: var(--space-3); }
.legal p { color: var(--text-2); }
.legal p + p { margin-top: var(--space-4); }
.legal p + h2, .legal ul + h2 { margin-top: var(--space-12); }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-top: var(--space-3); color: var(--text-2); }
.legal li + li { margin-top: var(--space-2); }
.legal ul + p { margin-top: var(--space-4); }

/* ───────────── 11. HEROS CENTRÉS (CADealer 2, Démo) ───────────── */
/* Variante centrée du gabarit page-hero : le h1 peut tenir sur une ligne (960px),
   le lede garde sa largeur de lecture. */
.page-hero-center .page-hero-inner { margin-inline: auto; text-align: center; max-width: 960px; }
.page-hero-center p.lede { margin-inline: auto; }
.page-hero-center .hero-cta { justify-content: center; }
/* Halo teal au bas de la bande, derrière la capture d'écran (CADealer 2). */
.page-hero-glow { position: relative; overflow: hidden; }
.page-hero-glow::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(960px, 92%); height: 240px; pointer-events: none;
  background: radial-gradient(ellipse at bottom, rgba(18,118,158,.6), transparent 70%);
}
.page-hero-glow .container { position: relative; z-index: 1; }

/* Formulaire qui chevauche la bande marine (Démo). */
.form-overlap { padding-top: 0; }
.form-overlap .form-layout { position: relative; z-index: 1; margin-top: clamp(-6rem, -9vw, -4rem); }
.form-overlap .contact-aside .card { box-shadow: var(--shadow-card); }

/* ───────────── 12. ANALYTICS ───────────── */
/* Recadrages de l'app : une mosaïque dans un cadre « tableau de bord » sous le
   hero (survol animé seulement), et une grille 2×2 de jauges (Objectifs) qui
   s'agrandissent au clic (js/lightbox.js). Chaque figure se termine par
   l'avertissement « chiffres fictifs » dans un figcaption. */
.shot-mosaic {
  display: grid; gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 2px 4px rgba(10,15,39,.06), 0 32px 64px -24px rgba(0,25,82,.45);
}
.shot-mosaic .shot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.shot-mosaic .shot-wide { grid-column: 1 / -1; }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.product-shot.shot-mosaic img, .shot-grid img {
  width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .15s, box-shadow .2s;
}
.shot-grid img { cursor: zoom-in; }
.product-shot.shot-mosaic img:hover, .shot-grid img:hover,
.product-shot.shot-mosaic img:focus-visible, .shot-grid img:focus-visible {
  transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 14px 32px -14px rgba(0,25,82,.4);
}
.product-shot.shot-mosaic figcaption { margin-top: var(--space-2); }
/* Les figures .industry-media imposent un ratio 4/3 et un recadrage (section 9) : pas ici.
   Jauges de proportions différentes : même cadre pour les quatre, fond blanc autour. */
.industry-media.shot-grid img { aspect-ratio: 5 / 4; object-fit: contain; padding: var(--space-2); }
.industry-media figcaption { grid-column: 1 / -1; margin-top: var(--space-1); color: var(--text-3); font-size: var(--text-xs); text-align: center; }
@media (max-width: 640px) {
  .shot-mosaic { padding: var(--space-3); }
  .shot-mosaic .shot-row { grid-template-columns: 1fr; }
  /* Les bandes de tuiles (1450 px de large) sont illisibles sur un téléphone. */
  .shot-wide { display: none; }
}

/* Lightbox (js/lightbox.js) : <dialog> plein écran, image centrée, légende, flèches. */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(10,15,39,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: var(--space-3); padding: var(--space-12) var(--space-16) var(--space-4); }
/* Scène : l'image y est centrée (margin auto) et, une fois zoomée au-delà, la scène défile. */
.lb-stage { min-height: 0; overflow: auto; display: flex; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
.lb-stage img { flex: none; margin: auto; display: block; border-radius: var(--radius-md); background: #fff; box-shadow: 0 32px 64px -24px rgba(0,0,0,.6); }
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage.is-zoomed:active { cursor: grabbing; }
.lightbox figcaption { color: var(--on-dark-2); font-size: var(--text-sm); text-align: center; max-width: 70ch; margin-inline: auto; }
.lb-btn {
  position: fixed; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: var(--space-4); right: var(--space-4); }
.lb-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox[data-single] .lb-prev, .lightbox[data-single] .lb-next { display: none; }
/* Barre de zoom sous la légende : − / pourcentage (clic = ajuster à l'écran) / + */
.lb-tools { display: flex; justify-content: center; align-items: center; gap: var(--space-2); }
.lb-tools .lb-btn { position: static; width: 40px; height: 40px; }
.lb-tools .lb-fit { width: auto; min-width: 5.5rem; padding: 0 var(--space-4); border-radius: var(--radius-pill); font-weight: 600; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .lightbox figure { padding: var(--space-12) var(--space-10) var(--space-4); }
  .lb-btn { width: 38px; height: 38px; }
  .lb-prev { left: var(--space-2); }
  .lb-next { right: var(--space-2); }
}
