/* ==========================================================
   V2X Studio — page d'accueil
   Noir et blanc, grandes lettres, filets fins, un seul accent bleu.
   La ville 3D : assets/js/ville3d.js · les animations : assets/js/accueil.js
   ========================================================== */

.accueil {
  --pad: clamp(16px, 3.4vw, 52px);
  /* ce qui est fixé en haut de l'écran : l'en-tête (+ le bandeau de la démo INSEEC, qui définit --demo-h) */
  --haut: calc(var(--header-h) + var(--demo-h, 0px));
  --a-gris: #f2f2f0;
  --a-trait: rgba(10, 10, 10, .13);
  --a-trait-clair: rgba(255, 255, 255, .2);
  --a-texte: #3f3f46;
  --muted: #63636b;
  --gout: max(var(--pad), calc((100vw - 1640px) / 2 + var(--pad)));
  /* couleurs du plan 3D (lues par ville3d.js) */
  --v-sol: #ebe9e3; --v-rue: #ffffff; --v-rue-bord: #b3afa4;
  --v-toit: #f6f4ed; --v-mur: #e0ded4; --v-mur-ombre: #a39f93; --v-ombre: .85;
  --v-vert: #b8cba3; --v-bois: #a3b98b; --v-sport: #adc595; --v-eau: #98badf; --v-cimetiere: #aab79c; --v-rail: #5f5b52;
  --v-encre: #0a0a0a; --v-teinte: #dbe4ff;
  --v-mer: #c9d7e4; --v-cote: #a29e94; --v-frontiere: #bdb9af;
  --v-reseau: #2f6bff; --v-reseau-vif: #2f6bff; --v-client: #2f6bff; --v-client-vif: #ffffff;
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  .accueil {
    --a-gris: #0e0e0f; --a-trait: rgba(255, 255, 255, .14); --a-texte: #c4c4c8; --muted: #8f8f95;
    --v-sol: #141416; --v-rue: #34343a; --v-rue-bord: #0a0a0c;
    --v-toit: #4f4f57; --v-mur: #3d3d44; --v-mur-ombre: #232328; --v-ombre: .62;
    --v-vert: #1f3022; --v-bois: #1a2a1c; --v-sport: #233626; --v-eau: #1a3556; --v-cimetiere: #212c23; --v-rail: #74747c;
    --v-encre: #f4f4f5; --v-teinte: #212b4c;
    --v-mer: #13263a; --v-cote: #4a4a52; --v-frontiere: #393940;
    --v-reseau: #5b8cff; --v-reseau-vif: #a9c1ff; --v-client: #7aa3ff; --v-client-vif: #141416;
  }
}

.container-l { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 var(--pad); }
.accueil--bloc .container-l { max-width: 1180px; }
.accueil--bloc h2 { font-size: clamp(38px, 5.4vw, 92px); line-height: .95; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }

/* ---------- Typographie ---------- */
.accueil main h2 { font-size: clamp(38px, 5.4vw, 92px); line-height: .95; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.tete { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 120px); }
.tete h2 { max-width: 15ch; }
.tete-texte { color: var(--a-texte); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 52ch; }
.tete-texte a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .tete { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); align-items: end; column-gap: 6vw; }
}

/* ---------- Boutons : pastille noire + rond flèche ---------- */
.pastille {
  display: inline-flex; align-items: center; gap: 16px; height: 54px; padding: 0 6px 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); cursor: pointer;
  font: 500 15.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; transition: background .3s, color .3s;
}
.pastille i { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); transition: transform .5s var(--ease); }
.pastille i svg { width: 15px; height: 15px; }
.pastille:hover i { transform: rotate(-45deg); }
.pastille--contour { background: transparent; color: var(--ink); }
.pastille--contour i { background: var(--ink); color: var(--bg); }
.pastille--contour:hover { background: var(--ink); color: var(--bg); }
.pastille--contour:hover i { background: var(--bg); color: var(--ink); }
.pastille--inverse { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.pastille--inverse i { background: var(--ink); color: var(--bg); }
.pastille--grand { height: 64px; padding-left: 30px; font-size: 17px; }
.pastille--grand i { width: 52px; height: 52px; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15.5px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.lien-fleche svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.lien-fleche:hover svg { transform: translate(2px, -2px); }

/* ---------- En-tête, barre de progression, bouton mobile ---------- */
.accueil .site-header { position: fixed; left: 0; right: 0; top: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .35s, border-color .35s; }
.accueil .site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--a-trait); }
.accueil .site-header .btn, .accueil .nav a { border-radius: 999px; box-shadow: none; }
.accueil .nav a:hover, .accueil .nav a.is-active { background: transparent; color: var(--ink); }
.accueil .nav-new { background: var(--ink); color: var(--bg); }
.accueil .scroll-progress { background: var(--ink); height: 2px; }
.accueil .sticky-cta { border-radius: 999px; height: 52px; box-shadow: none; }
.accueil .mobile-menu .btn { border-radius: 999px; }

/* ==========================================================
   1. La ville
   ========================================================== */
.ville { position: relative; background: var(--v-sol); overflow-x: clip; }
.ville-scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ville-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.ville--prete .ville-canvas { opacity: 1; }
.ville--sans3d .ville-scene { background: var(--v-sol) url(/assets/img/ville-affiche-1600.webp) 64% 100% / cover no-repeat; }
@media (prefers-color-scheme: dark) { .ville--sans3d .ville-scene { background-image: url(/assets/img/ville-affiche-sombre-1600.webp); } }
/* petits écrans : la même image, bien plus légère */
@media (max-width: 899px) { .ville--sans3d .ville-scene { background-image: url(/assets/img/ville-affiche-1000.webp); } }
@media (max-width: 899px) and (prefers-color-scheme: dark) { .ville--sans3d .ville-scene { background-image: url(/assets/img/ville-affiche-sombre-1000.webp); } }
.ville-voile { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); }
.ville-voile--g { background: linear-gradient(90deg, var(--v-sol) 0%, color-mix(in srgb, var(--v-sol) 78%, transparent) 26%, transparent 52%); }
.ville-voile--d { background: linear-gradient(270deg, var(--v-sol) 0%, color-mix(in srgb, var(--v-sol) 78%, transparent) 26%, transparent 52%); }
.ville[data-cote="g"] .ville-voile--g, .ville[data-cote="d"] .ville-voile--d { opacity: 1; }
.ville-calque { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ville-credit { position: absolute; left: var(--gout); bottom: 12px; margin: 0; font: 400 10px/1 var(--mono); color: var(--muted); background: var(--v-sol); padding: 2px 6px; margin-left: -6px; border-radius: 3px; }

/* étiquettes posées sur la carte */
.ville-etiquette { position: absolute; left: 0; top: 0; will-change: transform; }
.ville-etiquette span {
  position: absolute; left: 0; bottom: 8px; transform: translate(-50%, 10px) scale(.9); opacity: 0;
  transition: opacity .35s ease, transform .6s var(--ease);
  font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--ink); color: var(--bg); padding: 8px 11px; border-radius: 999px;
}
.ville-etiquette.is-on span { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ville-etiquette--commerce span { font-size: 11.5px; padding: 10px 14px; }
.ville-etiquette--boutique span { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); padding-left: 23px; }
.ville-etiquette--boutique span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ink); }
.ville-etiquette--echelle span { background: none; color: var(--accent); padding: 0; bottom: 4px; }
/* plan élargi : villes (un point bleu, le nom à droite, détaché du plan par un halo), zone et mers */
.ville-etiquette--lieu span, .ville-etiquette--zone span, .ville-etiquette--mer span { bottom: auto; top: 0; background: none; border-radius: 0; }
.ville-etiquette--lieu span { color: var(--ink); padding: 0 0 0 13px; transform: translate(-4px, -50%) scale(.96); text-shadow: 0 0 2px var(--v-sol), 0 0 4px var(--v-sol), 0 0 7px var(--v-sol); }
.ville-etiquette--lieu.is-on span { transform: translate(-4px, -50%) scale(1); }
.ville-etiquette--lieu span::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--v-reseau); box-shadow: 0 0 0 2px var(--v-sol); }
.ville-etiquette--ici span { font-weight: 600; padding-left: 15px; }
.ville-etiquette.is-nu span { color: transparent; text-shadow: none; }
/* crédit de la carte : effacé quand un texte du récit passe dessus (filter, pour ne pas gêner l'animation d'entrée qui règle leur opacité) */
.ville-credit { transition: filter .35s ease; }
.ville-scene .is-sous-texte { filter: opacity(0); }
.ville-etiquette--ouest span { padding: 0 13px 0 0; transform: translate(calc(-100% + 4px), -50%) scale(.96); }
.ville-etiquette--ouest.is-on span { transform: translate(calc(-100% + 4px), -50%) scale(1); }
.ville-etiquette--ouest span::before { left: auto; right: 0; }
.ville-etiquette--ici span::before { width: 9px; height: 9px; margin-top: -4.5px; left: -1px; background: var(--v-encre); }
.ville-etiquette--zone span, .ville-etiquette--mer span { padding: 0; transform: translate(-50%, -50%) scale(.96); }
.ville-etiquette--zone.is-on span, .ville-etiquette--mer.is-on span { transform: translate(-50%, -50%) scale(1); }
.ville-etiquette--zone span { color: var(--v-reseau); font-size: 11px; letter-spacing: .32em; text-shadow: 0 0 3px var(--v-sol), 0 0 6px var(--v-sol); }
.ville-etiquette--mer span { color: color-mix(in srgb, var(--v-mer) 40%, var(--ink)); letter-spacing: .26em; font-style: italic; }

/* récit : les panneaux défilent par-dessus la scène */
.ville-recit { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.ville-pan { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--haut) + 24px) var(--gout) 56px; }
.ville-pan > * { pointer-events: auto; }
.ville-pan--droite { justify-content: flex-end; }
.etape { width: 100%; max-width: 540px; }
.etape-titre { font-size: clamp(36px, 4.6vw, 76px) !important; margin: 20px 0 20px; }
.etape-texte { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--a-texte); max-width: 42ch; }
.etape-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 32px; }

/* l'accueil proprement dit */
.ville-pan--une { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px; padding-top: calc(var(--haut) + clamp(28px, 6vh, 64px)); padding-bottom: clamp(36px, 6vh, 72px); }
.une { display: flex; flex-direction: column; flex: 1; justify-content: space-between; gap: 32px; }
.une-titre { margin: 22px 0 0; font-size: clamp(46px, 6.6vw, 148px); line-height: .9; letter-spacing: -.062em; font-weight: 600; }
@media (min-width: 900px) { .une-ligne { display: block; } }
/* entrée du haut de page, en CSS seulement et dès le premier affichage : rien n'attend un script, le titre est lisible tout de suite
   (le titre monte sans fondu : c'est le plus grand élément de l'écran, il doit être peint dès la première image) */
@media (prefers-reduced-motion: no-preference) {
  .une-titre { animation: une-monte .9s cubic-bezier(.16, 1, .3, 1) both; }
  .une-bas { animation: une-vient .9s cubic-bezier(.16, 1, .3, 1) .12s both; }
}
@keyframes une-monte { from { transform: translateY(24px); } }
@keyframes une-vient { from { opacity: 0; transform: translateY(18px); } }
.une-bas { max-width: 560px; }
.une-promesse { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--a-texte); }
.une-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; }

@media (max-width: 899px) {
  .ville-credit { bottom: 72px; } /* au-dessus du bouton collant « Réserver un appel gratuit » */
  .ville-voile--g, .ville-voile--d { background: linear-gradient(180deg, var(--v-sol) 0%, color-mix(in srgb, var(--v-sol) 90%, transparent) 44%, transparent 64%); }
  .ville[data-cote] .ville-voile--g { opacity: 1; }
  .ville[data-cote] .ville-voile--d { opacity: 0; }
  .ville-pan { align-items: flex-start; padding-top: calc(var(--haut) + 22px); }
  .ville-pan--droite { justify-content: flex-start; }
  .ville-pan--une { justify-content: flex-start; padding-top: calc(var(--haut) + 18px); }
  .une { justify-content: flex-start; gap: 22px; }
  .une-titre { font-size: clamp(40px, 11.6vw, 64px); margin-top: 14px; }
  .une-actions { margin-top: 22px; }
  .etape-titre { font-size: clamp(32px, 9vw, 46px) !important; margin: 14px 0; }
}

/* ==========================================================
   2. Réalisations : galerie horizontale
   ========================================================== */
.travaux { position: relative; background: var(--bg); padding: clamp(96px, 12vw, 180px) 0; overflow-x: clip; }
.travaux-tete { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.travaux-tete h2 { font-size: clamp(36px, 4.4vw, 72px); max-width: 17ch; }
.travaux-intro { color: var(--a-texte); font-size: clamp(16px, 1.2vw, 18px); max-width: 44ch; }
.travaux-rail { display: flex; flex-direction: column; gap: 72px; padding: 0 var(--gout); }
.projet { display: grid; gap: 22px; }
.projet-visuel { position: relative; display: block; overflow: hidden; background: var(--a-gris); aspect-ratio: 1.42; border-radius: 4px; }
.projet-ecran { position: absolute; left: 7%; top: 9%; width: 78%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--a-trait); }
.projet-tel { position: absolute; right: 6%; bottom: -14%; width: 19%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--a-trait); }
.projet-visuel--numapi { display: grid; place-items: center; }
.projet-logo { width: 46%; height: auto; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .projet-logo { filter: invert(1) grayscale(1); mix-blend-mode: screen; } }
.projet h3 { font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -.05em; line-height: .95; }
.projet-accroche { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin: 12px 0 10px; }
.projet-texte > p:not(.projet-accroche) { color: var(--a-texte); font-size: 15px; line-height: 1.55; }
.projet-texte > .lien-fleche { margin-top: 20px; }
.projet--fin { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 52px); background: var(--ink); color: var(--bg); border-radius: 4px; min-height: 320px; }
.projet-fin-titre { font-size: clamp(38px, 4.4vw, 76px); font-weight: 600; letter-spacing: -.055em; line-height: .95; max-width: 11ch; }
.projet--fin .pastille { align-self: flex-start; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.projet--fin .pastille i { background: var(--ink); color: var(--bg); }
.travaux-pied { display: none; }
/* sans GSAP (ou « réduire les animations ») sur ordinateur : l'image à gauche, le texte à une largeur lisible */
@media (min-width: 900px) {
  html:not(.has-gsap) .projet:not(.projet--fin) { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: end; column-gap: clamp(22px, 2.2vw, 36px); }
}
.projet-texte { max-width: 62ch; }

@media (min-width: 900px) {
  .has-gsap .travaux { padding: 0; }
  .has-gsap .travaux-colle { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; display: flex; flex-direction: column; justify-content: center; padding-top: var(--haut); }
  .has-gsap .travaux-tete { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 6vw; margin-bottom: clamp(24px, 4vh, 48px); }
  .has-gsap .travaux-tete h2 { font-size: clamp(34px, 3.6vw, 62px); }
  .has-gsap .travaux-rail { flex-direction: row; align-items: flex-end; gap: clamp(40px, 4vw, 80px); width: max-content; will-change: transform; }
  .has-gsap .projet { flex: none; display: flex; align-items: flex-end; gap: clamp(22px, 2.2vw, 36px); }
  .has-gsap .projet-visuel { flex: none; height: min(52vh, 560px); aspect-ratio: 1.42; }
  .has-gsap .projet-texte { flex: none; width: clamp(280px, 22vw, 360px); }
  .has-gsap .projet--fin { flex: none; width: min(48vh, 520px); height: min(52vh, 560px); min-height: 0; }
  .has-gsap .travaux-pied { display: flex; align-items: center; gap: 18px; margin-top: clamp(24px, 4vh, 48px); font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .has-gsap .travaux-barre { position: relative; flex: 1; max-width: 360px; height: 1px; background: var(--a-trait); }
  .has-gsap .travaux-barre i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
}
@media (min-width: 900px) and (max-height: 860px) {
  .has-gsap .projet-visuel { height: min(44vh, 480px); }
  .has-gsap .projet--fin { height: min(44vh, 480px); width: min(42vh, 440px); }
  .has-gsap .travaux-tete h2 { font-size: clamp(28px, 5.6vh, 52px); }
  .has-gsap .travaux-intro { display: none; }
  .has-gsap .travaux-colle { padding-top: calc(var(--haut) + 6px); }
  .has-gsap .travaux-pied { margin-top: 18px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .has-gsap .projet-texte > p:not(.projet-meta):not(.projet-accroche) { display: none; }
}

/* ==========================================================
   3. Services : liste éditoriale
   ========================================================== */
.services { padding: clamp(96px, 12vw, 200px) 0; overflow: hidden; }
.srv-liste { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--a-trait); }
.srv { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 14px; align-items: baseline; padding: 22px 0 26px; }
/* filet du haut : il se trace au passage (de gauche ou de droite, comme le titre) */
.srv::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--a-trait); transform: scaleX(var(--trait, 1)); transform-origin: left; }
.srv--droite::before { transform-origin: right; }
.srv-cadre { min-width: 0; overflow: hidden; overflow: clip; padding-block: .06em; }
.srv-titre { font-size: clamp(34px, 8.6vw, 64px); line-height: .95; letter-spacing: -.055em; font-weight: 600; transition: color .35s, translate .6s var(--ease); }
.srv-texte { color: var(--a-texte); font-size: 15.5px; line-height: 1.55; max-width: 46ch; }
.srv-texte a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .srv { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); align-items: center; column-gap: 32px; padding: 28px 0 30px; }
  .srv-titre { font-size: clamp(40px, 4.9vw, 104px); white-space: nowrap; }
}
@media (hover: hover) and (min-width: 1000px) {
  .srv::after { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--a-gris); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
  .srv:hover::after { transform: scaleY(1); }
  .srv:hover .srv-titre { translate: 18px 0; }
}

/* ==========================================================
   4. Logiciel & CRM
   ========================================================== */
.crm { position: relative; background: var(--a-gris); overflow: hidden; overflow: clip; }
.crm-colle { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.crm-flux { display: grid; gap: 14px; margin-bottom: 48px; }
.crm-rang { display: flex; gap: 12px; width: max-content; will-change: transform; }
.crm-rang span { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--a-trait); font-size: 14.5px; white-space: nowrap; }
.crm-rang span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.crm-rang:nth-child(2) span::before { background: var(--ink); }
.crm-rang:nth-child(3) span::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.crm-grille { position: relative; z-index: 2; display: grid; gap: 48px; }
.crm-tete h2 { margin: 22px 0 22px; max-width: 12ch; }
.crm-tete p { color: var(--a-texte); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 44ch; margin-bottom: 30px; }
.crm-ecran { position: relative; margin: 0; background: var(--bg); border-radius: 12px; box-shadow: 0 0 0 1px var(--a-trait); }
.crm-barre { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--a-trait); }
.crm-barre i { width: 9px; height: 9px; border-radius: 50%; background: var(--a-trait); }
.crm-barre span { margin-left: 12px; font: 400 11.5px/1 var(--mono); color: var(--muted); }
.crm-corps { display: grid; grid-template-columns: minmax(0, 1fr); }
.crm-menu { display: none; list-style: none; margin: 0; padding: 16px 10px; border-right: 1px solid var(--a-trait); font-size: 13.5px; }
.crm-menu li { padding: 9px 12px; border-radius: 8px; color: var(--muted); }
.crm-menu li.is-on { background: var(--a-gris); color: var(--ink); font-weight: 500; }
.crm-zone { position: relative; padding: 14px; }
.crm-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.crm-chiffres div { padding: 10px 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--a-trait); container-type: inline-size; }
.crm-chiffres small { display: block; font: 500 9.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.crm-chiffres b { display: block; margin-top: 6px; font-size: clamp(18px, 2vw, 28px); font-size: clamp(16px, 25cqi, 28px); white-space: nowrap; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.crm-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.crm-col { min-height: 214px; padding: 10px 8px; border-radius: 9px; background: var(--a-gris); }
.crm-col p { margin: 0; font: 500 9.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.crm-carte { position: absolute; left: 0; top: 0; z-index: 3; width: 120px; padding: 9px 10px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--a-trait); font-size: 12px; line-height: 1.35; opacity: 0; will-change: transform; }
.crm-carte b { display: block; font-weight: 600; letter-spacing: -.01em; }
.crm-carte small { display: block; color: var(--muted); font-size: 11px; }
.crm-toast { position: absolute; right: 12px; top: 56px; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 11px 16px 11px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; }
.crm-toast svg { width: 15px; height: 15px; color: var(--accent); }
.crm-legende { position: absolute; right: 2px; bottom: -26px; font: 400 10.5px/1 var(--mono); letter-spacing: .03em; color: var(--muted); }
.no-js .crm-carte { display: none; }
@media (min-width: 700px) {
  .crm-corps { grid-template-columns: 170px minmax(0, 1fr); }
  .crm-menu { display: block; }
  .crm-zone { padding: 18px; }
  .crm-col { min-height: 250px; }
  .crm-carte { font-size: 13px; padding: 10px 12px; }
  .crm-toast { right: -22px; }
}
@media (min-width: 1000px) {
  .has-gsap .crm { height: 300vh; }
  .has-gsap .crm-colle { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--haut) + 76px) 0 136px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; overflow: clip; }
  .has-gsap .crm-flux { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: calc(var(--haut) + 16px) 0 22px; margin: 0; }
  .has-gsap .crm-rang:first-child { margin-bottom: auto; }
  /* texte et écran côte à côte à toutes les hauteurs : sur une colonne, le contenu déborde du panneau collé */
  .crm-grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; column-gap: 5vw; }
  /* page CRM : colonne de texte étroite (conteneur de 1180px), titre plus petit */
  .accueil--bloc .crm-tete h2 { font-size: clamp(38px, 3.6vw, 64px); }
}
@media (min-width: 1000px) and (max-height: 860px) {
  .has-gsap .crm-rang:nth-child(3) { display: none; }
  .has-gsap .crm-colle { padding-bottom: 84px; padding-top: calc(var(--haut) + 68px); }
  .crm-tete h2 { font-size: clamp(32px, 7.4vh, 72px) !important; margin: 14px 0 14px; }
  .crm-tete p { font-size: 15.5px; margin-bottom: 20px; }
  .crm-col { min-height: 200px; }
}

/* ==========================================================
   5. Concevoir avec l'IA
   ========================================================== */
.ia { padding: clamp(96px, 12vw, 190px) 0 clamp(80px, 9vw, 140px); overflow: hidden; border-top: 1px solid var(--a-trait); }
.ia-txt { max-width: 760px; }
.ia-txt h2 { margin: 22px 0 22px; max-width: 13ch; }
.ia-txt > p:not(.sur-titre):not(.ia-note) { color: var(--a-texte); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 52ch; }
.ia-champ { display: flex; align-items: center; gap: 14px; max-width: 680px; margin-top: 36px; padding: 6px 0 8px; border-bottom: 1.5px solid var(--ink); transition: border-color .3s; }
.ia-champ:focus-within { border-color: var(--accent); }
.ia-champ input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 clamp(16px, 1.4vw, 20px)/1 var(--sans); letter-spacing: -.01em; }
.ia-champ input::placeholder { color: var(--muted); }
.ia-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.ia-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ia-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(56px, 7vw, 110px); padding: 0 var(--gout); }
.ia-rail figure { margin: 0; }
.has-gsap .ia-rail { display: flex; width: max-content; padding: 0 0 0 var(--gout); will-change: transform; }
.has-gsap .ia-rail figure { flex: none; width: clamp(260px, 36vw, 620px); }
.ia-rail img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--a-trait); }
.ia-rail figcaption { display: flex; gap: 12px; margin-top: 12px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.ia-legende { margin-top: 28px; font: 400 11px/1 var(--mono); letter-spacing: .03em; color: var(--muted); }
@media (max-width: 560px) { .ia-champ { flex-wrap: wrap; border-bottom: 0; } .ia-champ input { flex-basis: 100%; border-bottom: 1.5px solid var(--ink); } .ia-champ input:focus { border-bottom-color: var(--accent); box-shadow: 0 1.5px 0 var(--accent); } }

/* ==========================================================
   6. À propos
   ========================================================== */
.apropos { padding: clamp(96px, 12vw, 190px) 0; background: var(--a-gris); }
.apropos-grille { display: grid; gap: 48px; }
.apropos-gauche h2 { margin-top: 22px; font-size: clamp(52px, 8.4vw, 150px); line-height: .9; max-width: 8ch; }
.badge { position: relative; display: grid; place-items: center; width: clamp(120px, 11vw, 168px); aspect-ratio: 1; margin-top: clamp(32px, 4vw, 64px); }
.badge { color: var(--ink); }
/* Portrait de Victor : le badge tournant est posé à cheval sur le coin de la photo, sur une pastille de la couleur du fond */
.apropos-portrait { position: relative; width: min(100%, clamp(250px, 28vw, 420px)); margin: clamp(30px, 3.6vw, 56px) 0 0; }
.apropos-portrait picture { display: block; }
.apropos-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: clamp(14px, 1.5vw, 22px); background: #101010; box-shadow: 0 0 0 1px var(--a-trait), 0 30px 60px -34px rgba(0, 0, 0, .55); }
.apropos-portrait .badge { position: absolute; right: 0; bottom: 0; margin: 0; width: clamp(104px, 10vw, 148px); transform: translate(38%, 30%); border-radius: 50%; background: var(--a-gris); box-shadow: 0 0 0 clamp(8px, .9vw, 12px) var(--a-gris); }
@media (max-width: 999px) { .apropos-portrait { width: min(78vw, 360px); } .apropos-portrait .badge { transform: translate(34%, 28%); } }
/* seul l'anneau de texte tourne, lentement et sans à-coups ; le centre reste droit */
.badge-texte { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: badge-tourne 26s linear infinite; }
.badge-texte text { font: 500 13px var(--mono); letter-spacing: .2em; fill: currentColor; }
@keyframes badge-tourne { to { transform: rotate(360deg); } }
.badge > span { width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 600; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: -.04em; }
.apropos-grand { font-size: clamp(22px, 2.3vw, 38px); line-height: 1.18; letter-spacing: -.035em; font-weight: 500; text-wrap: pretty; }
.apropos-droite > p:not(.apropos-grand):not(.apropos-liens) { margin-top: 22px; color: var(--a-texte); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; max-width: 60ch; }
.valeurs { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; border-bottom: 1px solid var(--a-trait); }
.valeurs li { display: grid; gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--a-trait); }
.valeurs b { font-weight: 600; letter-spacing: -.02em; }
.valeurs span { color: var(--a-texte); }
.apropos-infos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.apropos-infos li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.apropos-infos span { font: 500 11px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.apropos-liens { display: flex; gap: 28px; margin-top: 32px; }
@media (min-width: 640px) { .valeurs li { grid-template-columns: 220px minmax(0, 1fr); } }
@media (min-width: 1000px) { .apropos-grille { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 6vw; align-items: start; } .apropos-gauche { position: sticky; top: calc(var(--haut) + 40px); } }

/* ==========================================================
   7. Méthode
   ========================================================== */
.methode { padding: clamp(96px, 12vw, 190px) 0; }
.etapes-ligne { position: relative; height: 1px; background: var(--a-trait); }
.etapes-ligne span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.etapes-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.etape-m { padding: 28px 0 34px; border-bottom: 1px solid var(--a-trait); }
.etape-m-num { display: block; font-size: clamp(64px, 7vw, 120px); font-weight: 600; letter-spacing: -.07em; line-height: .85; transition: color .5s; }
.etape-m-quand { display: block; margin: 18px 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.etape-m h3 { font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.03em; margin-bottom: 10px; }
.etape-m p { color: var(--a-texte); font-size: 15.5px; line-height: 1.55; max-width: 32ch; }
@media (min-width: 900px) {
  .etapes-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .etape-m { padding: 32px 28px 8px 0; border-bottom: 0; }
  .etape-m + .etape-m { padding-left: 28px; border-left: 1px solid var(--a-trait); }
  .has-gsap .etape-m:not(.is-on) .etape-m-num { color: var(--a-trait); }
}

/* ==========================================================
   8. Tarifs
   ========================================================== */
.tarifs { padding: clamp(96px, 12vw, 190px) 0; border-top: 1px solid var(--a-trait); }
.offres { display: grid; border-top: 1px solid var(--ink); }
.offre { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px clamp(18px, 1.8vw, 28px) 32px; border-bottom: 1px solid var(--a-trait); }
.offre-nom { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.offre-prix { margin: 6px 0 0; font-size: clamp(52px, 5vw, 86px); font-weight: 600; letter-spacing: -.065em; line-height: .9; }
.offre-prix small { margin-left: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.offre-desc { color: var(--a-texte); font-size: 15.5px; }
.offre-liste { list-style: none; margin: 6px 0 22px; padding: 0; font-size: 14.5px; }
.offre-liste li { padding: 10px 0; border-top: 1px solid var(--a-trait); }
.offre .pastille { margin-top: auto; align-self: flex-start; }
.offre-drapeau { position: absolute; top: 28px; right: clamp(18px, 1.8vw, 28px); margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.offre--choix { background: var(--ink); color: var(--bg); }
.offre--choix .offre-prix small, .offre--choix .offre-desc { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.offre--choix .offre-liste li { border-color: color-mix(in srgb, var(--bg) 22%, transparent); }
.offre-xl { position: relative; display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 4vw, 60px); background: var(--a-gris); border-radius: 4px; }
.offre-xl .offre-drapeau { position: static; }
.offre-xl h3 { font-size: clamp(32px, 3.8vw, 64px); letter-spacing: -.055em; line-height: .95; max-width: 16ch; }
.offre-xl > p:not(.offre-drapeau) { color: var(--a-texte); max-width: 70ch; line-height: 1.6; }
.offre-xl a:not(.pastille) { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.offre-xl-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 10px; }
.offre-xl .offre-prix { margin: 0; font-size: clamp(40px, 4vw, 64px); }
@media (min-width: 700px) { .offres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .offre:nth-child(2n) { border-left: 1px solid var(--a-trait); } }
@media (min-width: 1200px) { .offres { grid-template-columns: repeat(4, minmax(0, 1fr)); } .offre { border-bottom: 0; } .offre + .offre { border-left: 1px solid var(--a-trait); } }

/* ==========================================================
   9. Rendez-vous
   ========================================================== */
.rdv { padding: clamp(96px, 12vw, 180px) 0; background: var(--a-gris); }
.accueil .booking-aside h2 { margin-top: 6px; font-size: clamp(40px, 5vw, 80px); }
.accueil .booking-aside > p:not(.sur-titre) { color: var(--a-texte); }
.accueil .booking { border-radius: 12px; box-shadow: 0 0 0 1px var(--a-trait); border: 0; }
.accueil .cal-tab { border-radius: 999px; }
.accueil .cal-tab.is-active .cal-tab-meta { color: var(--ink); }

/* ==========================================================
   10. Vaucluse
   ========================================================== */
.region { padding: clamp(80px, 10vw, 150px) 0 clamp(96px, 12vw, 180px); overflow: hidden; }
.region-defile { display: grid; gap: .1em; margin-bottom: clamp(56px, 8vw, 120px); font-size: clamp(56px, 9.4vw, 172px); }
.region-rang { display: flex; width: max-content; margin: 0; font-weight: 600; letter-spacing: -.065em; line-height: 1; white-space: nowrap; will-change: transform; }
.region-rang span::after { content: "·"; margin: 0 .28em; color: var(--muted); }
.region-rang + .region-rang { color: color-mix(in srgb, var(--ink) 22%, transparent); }
.region-grille { display: grid; gap: 40px; }
.region-grille h2 { margin-top: 22px; font-size: clamp(34px, 4vw, 64px); max-width: 15ch; }
.region-texte p { color: var(--a-texte); line-height: 1.65; max-width: 66ch; }
.region-texte p + p { margin-top: 14px; }
.region-texte a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.region-liens { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--a-trait); display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 12px/1.4 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.region-liens a { color: var(--ink); text-decoration: none; }
.region-liens a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .region-grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 6vw; } }

/* ==========================================================
   11. FAQ
   ========================================================== */
.faq-s { padding: clamp(96px, 12vw, 180px) 0; border-top: 1px solid var(--a-trait); }
.faq-grille { display: grid; gap: 40px; }
.faq-grille .tete { margin: 0; align-self: start; }
.faq-grille .tete { grid-template-columns: 1fr; }
.accueil .faq details { border-bottom: 1px solid var(--a-trait); }
.accueil .faq details:first-child { border-top: 1px solid var(--ink); }
.accueil .faq summary { padding: 24px 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.025em; }
.accueil .faq summary::after { width: 14px; height: 14px; border: 0; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transform: none; transition: transform .4s var(--ease); }
.accueil .faq details[open] summary::after { transform: rotate(45deg); }
.accueil .faq details p { color: var(--a-texte); font-size: 16px; line-height: 1.65; max-width: 68ch; padding-bottom: 26px; }
.accueil .faq details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) { .faq-grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 6vw; } .faq-grille .tete { position: sticky; top: calc(var(--haut) + 40px); } }

/* ==========================================================
   12. Appel final + pied de page
   ========================================================== */
.fin { padding: clamp(110px, 14vw, 230px) 0 clamp(80px, 10vw, 150px); border-top: 1px solid var(--a-trait); overflow: hidden; }
.fin-titre { margin-top: 0; font-size: clamp(50px, 9.2vw, 176px) !important; line-height: .88 !important; letter-spacing: -.067em !important; max-width: 11ch; }
.fin-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; margin-top: clamp(40px, 5vw, 72px); }
.fin-bas p { max-width: 40ch; color: var(--a-texte); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.fin-haut { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; margin-top: 26px; }
.badge--fin { flex: none; margin: 0; width: clamp(150px, 13vw, 210px); }
.badge .badge-coeur { position: relative; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: var(--bg); transition: transform .6s var(--ease), background-color .35s ease, color .35s ease; }
.badge-fleche { grid-area: 1 / 1; width: 34%; height: 34%; transition: transform .6s var(--ease); }
.badge-fleche + .badge-fleche { transform: translate(-200%, 200%); }
.badge--fin:hover .badge-coeur, .badge--fin:focus-visible .badge-coeur { transform: scale(1.08); background: var(--accent); color: #fff; }
.badge--fin:hover .badge-fleche:first-child, .badge--fin:focus-visible .badge-fleche:first-child { transform: translate(200%, -200%); }
.badge--fin:hover .badge-fleche + .badge-fleche, .badge--fin:focus-visible .badge-fleche + .badge-fleche { transform: none; }
.badge--fin:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 50%; }
@media (max-width: 899px) { .fin-haut { flex-direction: column; align-items: flex-start; } .badge--fin { width: 136px; } }
@media (prefers-reduced-motion: reduce) { .badge-texte { animation: none; } }

.accueil .site-footer { margin-top: 0; padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--a-trait); overflow: hidden; }
.pied-marque { margin: clamp(48px, 7vw, 110px) 0 clamp(18px, 2vw, 30px); font-size: clamp(64px, 18.2vw, 340px); font-weight: 600; letter-spacing: -.075em; line-height: .76; white-space: nowrap; }
/* le nom du bas de page aux couleurs du logo : violet, lavande, ciel (tons plus profonds sur fond clair) */
.pied-marque {
  --marque: linear-gradient(100deg, #6247ff 0%, #8a6dff 25%, #1d8bff 50%, #8a6dff 75%, #6247ff 100%);
  background-image: var(--marque); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .pied-marque { --marque: linear-gradient(100deg, #7c5cff 0%, #b9a8ff 25%, #6ec9ff 50%, #b9a8ff 75%, #7c5cff 100%); }
}
/* découpé lettre par lettre : chaque lettre montre sa part du même dégradé, qui glisse quand le bas de page défile */
.pied-marque.est-decoupe { background-image: none; }
.pied-lettre {
  background-image: var(--marque); background-size: var(--L, 200%) 100%; background-position: calc(var(--decale, 0px) + var(--x, 0px)) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* ==========================================================
   Sans animation : tout est lisible tel quel
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
}
@media (max-width: 380px) {
  .pastille { white-space: normal; height: auto; min-height: 54px; padding-block: 6px; gap: 12px; text-align: left; line-height: 1.2; }
  /* compteurs du CRM sur une ligne : « 8 420 € » ne repousse plus les colonnes sous les cartes déjà posées */
  .crm-chiffres b { font-size: 16px; white-space: nowrap; }
  .crm-carte { padding: 8px 6px; font-size: 10px; } .crm-carte small { font-size: 9.5px; }
  .ville-credit { font-size: 9px; }
}
/* téléphone à l'horizontale : le bouton du haut de page reste visible */
@media (max-height: 520px) and (orientation: landscape) {
  .ville-pan--une { padding-top: calc(var(--haut) + 10px); }
  .une-titre { font-size: clamp(30px, 9vh, 52px) !important; margin-top: 8px !important; }
  .une-promesse { display: none; }
  .ville-credit { left: auto; right: 72px; }
}

/* ==========================================================
   Avis clients (section affichée seulement s'il y a de vrais avis)
   ========================================================== */
.avis { padding: clamp(88px, 11vw, 170px) 0; }
.avis h2 { margin-top: 22px; font-size: clamp(40px, 6.4vw, 104px); line-height: .95; max-width: 12ch; }
.avis-liste { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 760px) { .avis-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .avis-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.avis-carte { margin: 0; padding: clamp(22px, 2.4vw, 30px); display: grid; gap: 14px; align-content: start; border-radius: 22px; background: var(--a-gris); }
.avis-etoiles { margin: 0; color: #f59e0b; font-size: 18px; letter-spacing: 3px; }
.avis-carte blockquote { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; letter-spacing: -.012em; text-wrap: pretty; }
.avis-carte figcaption { font-size: 14px; color: var(--a-texte); }
.avis-carte figcaption b { display: block; font-weight: 600; color: var(--ink); }
.avis-lien { margin-top: 30px; }
