/* ALSI Nettoyage – v5 « propreté du futur » : nuit bleue, lumière, verre et vagues du logo.
   Se charge après v4.css et n'en remplace que ce qui change. */

:root {
  --night: #0b1622;
  --night-2: #12243a;
  --glow: rgba(41, 168, 224, .45);
  --grad: linear-gradient(100deg, #29a8e0 0%, #7fd3f7 55%, #29a8e0 100%);
}

/* ---------- Barre de progression de lecture ---------- */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, #29a8e0, #7fd3f7); box-shadow: 0 0 12px var(--glow); }

/* ---------- En-tête : transparent sur la nuit de l'ouverture, clair ensuite ---------- */
.logo-sombre { display: none; }
.gnav.on-dark { background: rgba(11, 22, 34, .45); border-bottom-color: rgba(255, 255, 255, .06); box-shadow: none; }
.gnav.on-dark .logo-clair { display: none; }
.gnav.on-dark .logo-sombre { display: block; }
.gnav.on-dark nav a { color: rgba(255, 255, 255, .78); }
.gnav.on-dark nav a:hover, .gnav.on-dark .gnav-tel { color: #fff; }
.logo img { height: 64px; width: auto; }

/* ---------- Boutons : reflet au survol, halo lumineux, effet aimanté (js) ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%) no-repeat -120% 0 / 60% 100%; transition: background-position .8s var(--ease); }
.btn:hover::after { background-position: 220% 0; }
.btn:not(.btn-ghost):not(.btn-white):hover { box-shadow: 0 10px 30px rgba(22, 121, 171, .35), 0 0 0 1px rgba(127, 211, 247, .25); }

/* ---------- Ouverture : la nuit bleue ---------- */
/* l'ouverture passe sous l'en-tête translucide */
.hero { margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vh, 5rem)); }
.hero { color: #b9c8d6; background: radial-gradient(60% 70% at 75% 65%, #17344f 0%, rgba(23, 52, 79, 0) 70%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, #183049 100%); padding-bottom: 0; }
.hero::after { opacity: .07; mix-blend-mode: soft-light; }
.hero h1 { color: #fff; }
.hero .accent { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet-texte 6s ease-in-out 2.2s infinite; }
@keyframes reflet-texte { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero .kicker { color: #7fcbee; display: inline-flex; align-items: center; gap: .7rem; }
.hero .kicker::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #7fcbee); }
.hero .sub { color: #b9c8d6; }
.hero .hero-note { color: #8fa3b6; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #fff; }
.hero .btn:not(.btn-ghost) { box-shadow: 0 10px 30px rgba(41, 168, 224, .28); }
.hero-grid, .hero-text { position: relative; z-index: 2; }

/* décor : aurores, sol quadrillé, particules, projecteur qui suit la souris */
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora.a1 { width: 46vw; height: 46vw; right: -6vw; top: 4vh; background: radial-gradient(closest-side, rgba(41, 168, 224, .55), transparent); animation: derive-1 22s ease-in-out infinite alternate; }
.aurora.a2 { width: 34vw; height: 34vw; left: -10vw; top: 28vh; background: radial-gradient(closest-side, rgba(38, 62, 84, .9), transparent); animation: derive-2 26s ease-in-out infinite alternate; }
.aurora.a3 { width: 28vw; height: 28vw; right: 22vw; bottom: -8vw; background: radial-gradient(closest-side, rgba(127, 211, 247, .35), transparent); animation: derive-3 18s ease-in-out infinite alternate; }
@keyframes derive-1 { to { transform: translate3d(-6vw, 5vh, 0) scale(1.12); } }
@keyframes derive-2 { to { transform: translate3d(8vw, -6vh, 0) scale(.9); } }
@keyframes derive-3 { to { transform: translate3d(-5vw, -4vh, 0) scale(1.2); } }
.floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%; background-image: linear-gradient(rgba(127, 203, 238, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 203, 238, .16) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%); animation: sol 14s linear infinite; }
@keyframes sol { to { background-position: 0 64px, 0 0; } }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot { position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 211, 247, .12), transparent); transform: translate3d(var(--sx, 70vw), var(--sy, 40vh), 0); transition: opacity .6s; }

/* la scène : un anneau de lumière, un plateau lumineux, l'équipe éclairée par l'arrière */
.hero-stage::before { inset: 8% 4% 0; border-radius: 999px 999px 0 0; background: radial-gradient(90% 70% at 50% 100%, rgba(41, 168, 224, .35) 0%, rgba(41, 168, 224, .08) 55%, transparent 80%); box-shadow: none; border: 1px solid rgba(127, 211, 247, .22); border-bottom: 0; }
.ring { position: absolute; left: 50%; top: 2%; width: 78%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 1px solid rgba(127, 211, 247, .35); box-shadow: 0 0 60px rgba(41, 168, 224, .25), inset 0 0 60px rgba(41, 168, 224, .12); -webkit-mask-image: linear-gradient(#000 55%, transparent 80%); mask-image: linear-gradient(#000 55%, transparent 80%); pointer-events: none; transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -5px), 0) rotate(0deg); }
.ring::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #bfe9fb; box-shadow: 0 0 14px 4px rgba(127, 211, 247, .8); }
.hero-stage.go .ring { animation: anneau 14s linear infinite; }
@keyframes anneau { to { rotate: 360deg; } }
.halo { background: radial-gradient(closest-side, rgba(127, 211, 247, .35), rgba(41, 168, 224, 0)); }
.plateau { position: absolute; left: 6%; right: 6%; bottom: -6%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 211, 247, .55), rgba(41, 168, 224, .15) 60%, transparent); filter: blur(6px); pointer-events: none; }
.crew img, .crew .m-g img { filter: drop-shadow(0 0 1px rgba(191, 233, 251, .9)) drop-shadow(0 0 22px rgba(41, 168, 224, .4)) drop-shadow(-12px 10px 24px rgba(0, 0, 0, .35)); }

/* vagues du logo, en mouvement lent : elles referment l'ouverture sur la suite */
.waves { position: absolute; left: 0; bottom: -1px; z-index: 3; width: 202%; max-width: none; height: clamp(48px, 7vw, 110px); animation: vagues 18s linear infinite; }
.waves .w1 { fill: rgba(41, 168, 224, .35); }
.waves .w2 { fill: rgba(38, 62, 84, .55); animation: houle 7s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.waves .w3 { fill: #fff; }
@keyframes vagues { to { transform: translateX(-50%); } }
@keyframes houle { to { transform: scaleY(1.15); } }

/* ---------- Apparitions : mise au point sur toute la page ---------- */
.js .rv { filter: blur(8px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), filter .9s var(--ease) var(--d, 0ms); }
.js .rv.in { filter: none; }

/* ---------- Chiffres ---------- */
.chiffres { border-top: 0; }
.chiffres b { background: linear-gradient(180deg, var(--navy) 30%, #1a83b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Titres de section : filet lumineux devant l'étiquette ---------- */
.sec .kicker { display: inline-flex; align-items: center; gap: .7rem; }
.sec .kicker::before { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.head.center .kicker::after { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); }

/* ---------- Services : onglets à indicateur glissant, cartes à bord lumineux, vignettes en relief ---------- */
.onglets { position: relative; isolation: isolate; }
.onglets::before { content: ""; position: absolute; z-index: -1; top: .375rem; bottom: .375rem; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: var(--r-s); background: linear-gradient(135deg, var(--navy), #1d3a55); box-shadow: 0 6px 18px rgba(38, 62, 84, .25); transition: transform .5s cubic-bezier(.16, 1, .3, 1), width .5s cubic-bezier(.16, 1, .3, 1); }
.js .onglets button[aria-selected="true"] { background: transparent; }
.service { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(41, 168, 224, .55), rgba(226, 232, 240, .9) 35%, rgba(226, 232, 240, .9) 65%, rgba(41, 168, 224, .35)) border-box; }
.vignette { background: radial-gradient(80% 60% at 50% 100%, rgba(41, 168, 224, .55) 0%, rgba(41, 168, 224, .1) 55%, transparent 80%), linear-gradient(180deg, var(--night) 0%, #17314a 100%); transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .5s var(--ease); box-shadow: 0 24px 50px rgba(11, 22, 34, .25); }
.vignette::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(127, 203, 238, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 203, 238, .1) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%); }
.vignette::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .18), transparent 45%); pointer-events: none; }
.vignette .perso { filter: drop-shadow(0 0 1px rgba(191, 233, 251, .9)) drop-shadow(0 0 20px rgba(41, 168, 224, .45)); }
.vignette-photo { background: var(--night); }

/* ---------- Trois étapes : un fil lumineux relie les étapes ---------- */
.trio { position: relative; }
.trio::before { content: ""; position: absolute; left: 8%; right: 8%; top: 3.1rem; height: 1px; background: linear-gradient(90deg, transparent, #29a8e0 20%, #7fd3f7 50%, #29a8e0 80%, transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .2s; }
.trio.lit::before { transform: scaleX(1); }
.trio li { position: relative; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(160deg, rgba(41, 168, 224, .45), var(--line) 40%) border-box; border: 1px solid transparent; }
.trio .n { font-size: 3.25rem; line-height: 1; letter-spacing: -.03em; padding: 0; border: 0; color: transparent; -webkit-text-stroke: 1.2px #29a8e0; background: linear-gradient(180deg, rgba(41, 168, 224, .18), transparent); -webkit-background-clip: text; background-clip: text; }

/* ---------- Équipe : la nuit, la grille et le contre-jour ---------- */
.dark { background: radial-gradient(60% 50% at 25% 40%, #17344f 0%, transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); position: relative; }
.dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(127, 203, 238, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 203, 238, .06) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); pointer-events: none; }
.dark > .wrap { position: relative; }
.who:not(.who-eco) { background: radial-gradient(80% 60% at 50% 100%, rgba(41, 168, 224, .5) 0%, rgba(41, 168, 224, .08) 55%, transparent 80%), linear-gradient(180deg, #0f1f30 0%, #183451 100%); border: 1px solid rgba(127, 211, 247, .18); }
.who:not(.who-eco) img { filter: drop-shadow(0 0 1px rgba(191, 233, 251, .9)) drop-shadow(0 0 22px rgba(41, 168, 224, .45)); }
.team-stage .who.on { box-shadow: 0 0 0 1px rgba(127, 211, 247, .25), 0 30px 80px rgba(0, 0, 0, .45), 0 0 80px rgba(41, 168, 224, .18); }
.step .n { display: inline-flex; align-items: center; gap: .7rem; }
.step .n::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.step.on h3 { background: linear-gradient(90deg, #fff 40%, #7fd3f7); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Bandeau d'appel : maillage de lumière en mouvement ---------- */
.bandeau { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #1679ab, #263e54 45%, #1679ab 90%); background-size: 220% 100%; animation: maillage 14s ease-in-out infinite alternate; }
.bandeau::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(30% 40% at 20% 30%, rgba(127, 211, 247, .35), transparent 70%), radial-gradient(25% 35% at 80% 70%, rgba(41, 168, 224, .45), transparent 70%); animation: derive-1 16s ease-in-out infinite alternate; }
@keyframes maillage { to { background-position: 100% 0; } }

/* ---------- Avis : verre, guillemet lumineux ---------- */
.quote { position: relative; overflow: hidden; }
.quote::before { content: "\201C"; position: absolute; right: 1.25rem; top: -.6rem; font-family: var(--f-title); font-size: 6rem; line-height: 1; background: linear-gradient(180deg, rgba(41, 168, 224, .35), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote:hover { box-shadow: 0 20px 50px rgba(38, 62, 84, .12), 0 0 0 1px rgba(41, 168, 224, .25); }

/* ---------- Zone : les villes défilent en continu ---------- */
.marquee { display: flex; gap: .625rem; overflow: hidden; margin: 0 calc(50% - 50vw); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .chips { flex: none; flex-wrap: nowrap; max-width: none; margin: 0; padding-block: .25rem; animation: defile 38s linear infinite; }
.marquee:hover .chips { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(calc(-100% - .625rem)); } }
.chips span { white-space: nowrap; box-shadow: 0 4px 14px rgba(38, 62, 84, .05); }

/* ---------- Devis : formulaire à bord lumineux ---------- */
.form { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(150deg, rgba(41, 168, 224, .6), var(--line) 35%, var(--line) 70%, rgba(41, 168, 224, .35)) border-box; box-shadow: 0 30px 70px rgba(38, 62, 84, .12); }
.atouts b { background: linear-gradient(145deg, #eaf6fc, #d4ecf8); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(41, 168, 224, .15); }

/* ---------- Contact ---------- */
.contact .tel { background: linear-gradient(90deg, #fff 30%, #7fd3f7 70%, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .8s var(--ease); }
.contact .tel:hover { background-position: 100% 0; }
.infos > div { padding: 1.25rem; border: 1px solid rgba(127, 211, 247, .14); border-radius: var(--r); background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.infos { border-top: 0; padding-top: 0; }

/* ---------- Bouton WhatsApp : pulsation lumineuse discrète ---------- */
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(41, 168, 224, .5); animation: pulse 2.8s ease-out 3s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(41, 168, 224, 0); } }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 900px) {
  .floor { height: 34%; }
  .aurora { filter: blur(50px); }
  .trio::before { display: none; }
  .vignette { transform: none; }
}
@media (max-width: 640px) {
  .logo img { height: 48px; }
  .hero .kicker::before { display: none; }
  .ring::before { width: 6px; height: 6px; }
  .spot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .floor, .waves, .waves path, .bandeau, .bandeau::before, .wa::before, .hero .accent, .ring { animation: none !important; }
  .marquee .chips { animation: none; }
  .marquee .chips[aria-hidden] { display: none; }
  .marquee { justify-content: center; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; margin: 0; }
  .marquee .chips { flex-wrap: wrap; justify-content: center; }
  .motes { display: none; }
  .js .rv { filter: none; }
}

/* ---------- Devis guidé ---------- */
.wz-top { display: none; }
.wz-on .wz-top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem 1rem; }
.wz-back { justify-self: start; padding: .3rem 0; border: 0; background: none; font-size: .875rem; font-weight: 600; color: var(--blue-d); cursor: pointer; }
.wz-back[hidden] { visibility: hidden; display: block; }
.wz-count { justify-self: end; font-size: .8125rem; color: var(--muted); }
.wz-count b { color: var(--navy); }
.wz-bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wz-bar span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, #1679ab, #29a8e0, #7fd3f7); box-shadow: 0 0 10px var(--glow); transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.wz-on .wz-step { display: none; }
.wz-on .wz-step.on { display: grid; gap: 1.25rem; animation: wz-in .55s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes wz-in { from { opacity: 0; transform: translateX(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.wizard legend { margin-bottom: 1rem; font-family: var(--f-title); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -.015em; color: var(--navy); outline: none; }
.wizard .choix span { min-height: 56px; transition: border-color .2s, background-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.wizard .choix label:hover span { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(38, 62, 84, .08); }
.choix-cartes span { flex-direction: column; gap: .6rem; min-height: 116px !important; font-weight: 600; color: var(--navy); }
.choix-cartes svg { fill: none; stroke: #1679ab; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.choix-cartes label:hover svg { transform: scale(1.12) rotate(-4deg); }
.choix-cartes input:checked + span { background: linear-gradient(160deg, #eaf6fc, #fff); box-shadow: 0 0 0 1px #1679ab, 0 12px 28px rgba(41, 168, 224, .18); }
.wz-recap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .85rem 1rem; border-radius: var(--r-s); background: var(--blue-bg); font-size: .875rem; }
.wz-recap span { width: 100%; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); }
.wz-recap b { padding: .25rem .65rem; border-radius: 999px; background: #fff; font-weight: 600; color: var(--navy); box-shadow: 0 1px 3px rgba(38, 62, 84, .08); }

/* ---------- Ouverture au logo (une fois par visite) ---------- */
.veil { display: none; }
.intro .veil { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(50% 45% at 50% 50%, #17344f 0%, var(--night) 75%); animation: veil-leve .8s cubic-bezier(.76, 0, .24, 1) 1.55s forwards; }
.veil-waves { position: absolute; width: min(78vw, 560px); height: auto; overflow: visible; }
.vw { fill: none; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: trace .9s cubic-bezier(.65, 0, .35, 1) forwards; filter: drop-shadow(0 0 8px rgba(41, 168, 224, .7)); }
.vw1, .vw3 { stroke: #29a8e0; }
.vw2, .vw4 { stroke: #7fd3f7; stroke-width: 6; animation-delay: .12s; }
.vw3 { animation-delay: .2s; }
.vw4 { animation-delay: .3s; }
.veil-logo { position: relative; width: min(62vw, 420px); height: auto; opacity: 0; filter: blur(14px); transform: scale(.94); animation: logo-net .9s cubic-bezier(.16, 1, .3, 1) .55s forwards; }
.veil-waves { animation: vagues-fondu .5s ease .7s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes logo-net { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes vagues-fondu { to { opacity: 0; } }
@keyframes veil-leve { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- Pages de service ---------- */
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 500; color: #c9d6e2; }
.hero-page .hero-grid { grid-template-columns: 1.15fr .85fr; min-height: min(calc(82svh - var(--nav-h)), 44rem); }
.hero-page h1 { font-size: clamp(2.4rem, 4.8vw, 4.25rem); }
.hero-page .sub { max-width: 36rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.5rem; font-size: .8125rem; color: #8fa3b6; }
.crumbs a { color: #b9c8d6; transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #7fcbee; font-weight: 600; }
.page-fig { position: relative; align-self: end; width: min(100%, 26rem); margin-left: auto; --mx: 0; --my: 0; }
.page-fig .ring { width: 96%; top: 4%; }
.page-fig .plateau { bottom: -4%; }
.page-fig img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(191, 233, 251, .9)) drop-shadow(0 0 26px rgba(41, 168, 224, .45)); animation: fig-entree 1.3s cubic-bezier(.16, 1, .3, 1) .1s both; }
@keyframes fig-entree { from { opacity: 0; transform: translateY(24px); filter: blur(10px); } }
.page-service .hero-page .ring { animation: anneau 14s linear infinite; }
.compris-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.compris-carte { padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid transparent; border-radius: var(--r-l); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(150deg, rgba(41, 168, 224, .6), var(--line) 35%, var(--line) 70%, rgba(41, 168, 224, .35)) border-box; box-shadow: 0 30px 70px rgba(38, 62, 84, .1); }
.compris-carte .compris { margin-top: 0; }
.eng-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.eng { padding: 1.75rem 1.5rem; border: 1px solid rgba(127, 211, 247, .16); border-radius: var(--r); background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.eng:hover { border-color: rgba(127, 211, 247, .4); transform: translateY(-4px); box-shadow: 0 0 40px rgba(41, 168, 224, .15); }
.eng .n { margin-bottom: 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-l); }
.eng h3 { margin-bottom: .6rem; font-size: 1.2rem; color: #fff; }
.eng p:last-child { font-size: .9375rem; color: #b9c6d3; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc:hover { transform: translateY(-4px); border-color: rgba(41, 168, 224, .4); box-shadow: 0 18px 40px rgba(38, 62, 84, .1); }
.svc-img { flex: none; position: relative; width: 84px; height: 96px; border-radius: 12px; overflow: hidden; background: radial-gradient(80% 60% at 50% 100%, rgba(41, 168, 224, .55), transparent 80%), linear-gradient(180deg, var(--night), #17314a); }
.svc-img img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.svc-txt { display: flex; flex-direction: column; gap: .35rem; }
.svc-txt b { font-family: var(--f-title); font-size: 1.1rem; color: var(--navy); }
@media (max-width: 900px) {
  .hero-page .hero-grid, .compris-grid { grid-template-columns: 1fr; }
  .page-fig { margin-inline: auto; width: min(70%, 20rem); }
  .crumbs { justify-content: center; }
  .eng-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}
@media (max-width: 640px) { .eng-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .page-fig img, .page-service .hero-page .ring { animation: none; } }

/* =====================================================================
   Version téléphone : compacte, pensée pour le pouce, l'équipe visible dès le premier écran
   ===================================================================== */
@media (max-width: 640px) {
  /* rythme général */
  .sec { padding: 3.5rem 0; }
  .head { margin-bottom: 2rem; }
  h2 { font-size: clamp(1.65rem, 7vw, 2rem); }
  .lead { margin-top: .9rem; font-size: 1.02rem; }
  .kicker { margin-bottom: .7rem; font-size: .75rem; }

  /* en-tête : le numéro devient un bouton rond (la barre du bas a déjà « Appeler ») */
  .gnav-tel { width: 42px; height: 42px; justify-content: center; border-radius: 50%; font-size: 0; gap: 0; background: rgba(41, 168, 224, .12); }
  .gnav-tel svg { width: 18px; height: 18px; }
  .gnav.on-dark .gnav-tel { background: rgba(255, 255, 255, .1); }

  /* ouverture */
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero-grid { gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 2.75rem); }
  .hero .sub { margin-top: 1rem; font-size: 1.05rem; }
  .hero .links { margin-top: 1.5rem; }
  .hero .links .btn-ghost { display: none; }
  .hero-note { margin-top: 1rem; justify-content: center; font-size: .85rem; }
  .hero-stage { max-width: 24rem; }

  /* chiffres et phrase */
  .chiffres .wrap > div { padding: 1.25rem .5rem; }
  .chiffres b { font-size: 1.85rem; }
  .manifesto { padding: 3.25rem 0; }
  .manifesto p { font-size: 1.35rem; }

  /* services : onglets en grille 2 × 2, image au-dessus du texte */
  .onglets { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; width: 100%; margin: 0 0 1.25rem; border-radius: 14px; border: 1px solid var(--line); overflow: visible; }
  .onglets::before { display: none; }
  .js .onglets button[aria-selected="true"], .onglets button[aria-selected="true"] { background: var(--navy); color: #fff; }
  .onglets button { padding: .7rem .5rem; font-size: .84rem; white-space: normal; line-height: 1.25; }
  .service { gap: 1.25rem; padding: 1rem 1rem 1.5rem; }
  .service .vignette { order: -1; max-width: none; aspect-ratio: 16 / 10; }
  .service .vignette .perso { top: 7%; bottom: auto; height: 165%; }
  .vignette-photo img { object-position: 50% 35%; }
  .service h3 { font-size: 1.45rem; }
  .service .accroche { font-size: .98rem; }
  .compris { margin: 1.25rem 0 .8rem; }
  .checks { gap: .5rem; margin-bottom: 1.5rem; font-size: .95rem; }
  .service .links { flex-direction: column; align-items: stretch; gap: .9rem; text-align: center; }
  .service .links .more { justify-content: center; }

  /* trois étapes : cartes compactes, numéro à gauche */
  .trio { gap: .75rem; margin-bottom: 2rem; }
  .trio li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem 1.1rem 1.2rem; }
  .trio .n { grid-row: span 2; min-width: 3.1rem; margin: 0; font-size: 2.1rem; }
  .foot-nav { justify-content: center; }
  .trio h3 { margin-bottom: .3rem; font-size: 1.05rem; }
  .trio p { font-size: .92rem; }

  /* équipe : vignette à côté du texte */
  .team .head { margin-bottom: 2rem; }
  .steps { gap: 1.75rem; }
  .step { display: grid; grid-template-columns: 96px 1fr; column-gap: 1rem; align-items: start; }
  .step > :not(.who-inline) { grid-column: 2; }
  .step:not(:has(.who-inline)) > * { grid-column: 1 / -1; }
  .who-inline { grid-row: 1 / span 3; width: 96px; margin: 0; border-radius: 14px; }
  .who-inline img { height: 150%; bottom: auto; top: 6%; }
  .step .n { margin-bottom: .35rem; font-size: .7rem; }
  .step .n::before { width: 14px; }
  .step h3 { font-size: 1.35rem; }
  .step p:last-child { margin-top: .4rem; font-size: .92rem; }

  /* bandeau */
  .bandeau { padding: 3.25rem 0; }
  .bandeau p { font-size: 1rem; }
  .bandeau .links { flex-direction: column; gap: 1rem; }

  /* avis : on les fait défiler d'un geste */
  .stars.xl { margin-top: .75rem; font-size: 1.2rem; }
  .quotes { display: flex; gap: .875rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.25rem; padding: .25rem 1.25rem 1rem; scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 84%; scroll-snap-align: center; padding: 1.5rem 1.25rem; }
  .js .quotes .rv { opacity: 1; transform: none; }
  .quote blockquote { font-size: .98rem; }
  .src { margin-top: 1.25rem; }

  /* zone, questions */
  #zone h2 { margin-bottom: 1.5rem; }
  #zone .lead { margin-top: 1.5rem; }
  .faq summary { padding: 1.1rem 2.5rem 1.1rem 0; font-size: 1rem; }
  .faq details p { padding: 0 0 1.1rem; font-size: .95rem; }

  /* devis */
  .devis-grid { gap: 1.75rem; }
  .atouts { gap: .75rem; margin-top: 1.5rem; }
  .atouts b { width: 3rem; height: 3rem; font-size: .9rem; border-radius: 11px; }
  .wizard legend { font-size: 1.25rem; }
  .choix-cartes span { min-height: 96px !important; font-size: .9rem; }
  .wizard .choix span { min-height: 50px; font-size: .9rem; }

  /* contact */
  .contact .tel { font-size: 2.2rem; }
  .contact .links { flex-direction: column; gap: 1rem; }
  .infos { grid-template-columns: 1fr 1fr; gap: .625rem; margin-top: 2.25rem; text-align: left; }
  .infos > div { padding: .9rem; }
  .infos dt { font-size: .65rem; }
  .infos dd { font-size: .9rem; }

  /* pages de service */
  .hero-page .hero-grid { min-height: 0; }
  .hero-page h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .page-fig { width: min(62%, 15rem); }
  .crumbs { margin-bottom: 1rem; }
  .compris-carte { padding: 1.25rem; }
  .eng-grid { gap: .75rem; margin-top: 1.5rem; }
  .eng { padding: 1.25rem; }
  .svc-grid { gap: .75rem; }
}

/* =====================================================================
   Solidité sur téléphone, en particulier Safari sur iPhone
   ===================================================================== */
/* le décor de l'ouverture (vagues, halos, sol) ne doit jamais faire glisser la page sur le côté (iOS < 16 ignore « clip ») */
.hero { overflow: hidden; }
html { -webkit-tap-highlight-color: transparent; }
@media (max-width: 900px), (hover: none) {
  /* apparitions : fondu et glissement seulement, sans flou (le flou fait saccader et clignoter Safari) */
  .js .rv, .js .chiffres .rv { filter: none !important; }
  @keyframes wz-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
  @keyframes crew-entree { 0% { opacity: 0; transform: var(--from); } 100% { opacity: 1; transform: none; } }
  @keyframes fig-entree { from { opacity: 0; transform: translateY(18px); } }
  /* une seule ombre lumineuse par personnage, beaucoup plus légère à afficher */
  .crew img, .crew .m-g img, .who:not(.who-eco) img, .vignette .perso, .page-fig img { filter: drop-shadow(0 0 14px rgba(41, 168, 224, .45)); }
  /* verre dépoli réservé à l'en-tête et à la barre du bas */
  .hero .btn-ghost, .infos > div, .eng { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .aurora { filter: blur(40px); }
  .floor { animation: none; }
  /* pas d'effets de survol « collants » après un toucher */
  .btn:hover, .trio li:hover, .quote:hover, .svc:hover, .eng:hover { transform: none; }
}
/* Safari sur iPhone : textes en dégradé remplacés par une couleur pleine (ils peuvent disparaître pendant une animation) */
@supports (-webkit-touch-callout: none) {
  .hero .accent { background: none; color: #5ec4f0; -webkit-text-fill-color: #5ec4f0; animation: none; }
  .chiffres b { background: none; color: var(--navy); -webkit-text-fill-color: var(--navy); }
  .step.on h3 { background: none; color: #fff; -webkit-text-fill-color: #fff; }
  .contact .tel { background: none; color: #fff; -webkit-text-fill-color: #fff; }
}
