/* ==========================================================
   ProTech.media — feuille de style
   Sommaire
     1. Réglages (couleurs, base)      7. Nos Reels
     2. Éléments communs               8. La démo (application)
     3. Écran d'entrée et menu         9. Services
     4. Accueil                       10. Méthode, questions, appel final
     5. Bandeau défilant              11. Apparitions au défilement
     6. Le constat                    12. Téléphone et accessibilité
   Règle maison : les apparitions utilisent « transform »,
   les effets au survol utilisent « translate / scale / rotate ».
   Ainsi, les deux ne se marchent jamais dessus.
   ========================================================== */

/* ---------- 1. Réglages ---------- */
:root {
  --nuit: #050D24;      /* fond le plus sombre */
  --marine: #0B1F4B;    /* bleu marine des vidéos */
  --logo: #1F3F78;      /* bleu du logo */
  --or: #FFC233;        /* doré */
  --creme: #FFF8EC;     /* crème pâtissière */
  --casse: #F4F6FB;     /* blanc cassé */
  --vif: #2563EB;       /* bleu vif */
  --caramel: #8A5216;
  --rose: #E0355F;
  --vert: #0E9F6E;
  --doux: cubic-bezier(.2, .8, .2, 1);      /* mouvement souple */
  --rebond: cubic-bezier(.3, 1.4, .4, 1);   /* petit rebond à l'arrivée */
  --ombre: 0 1px 2px rgba(11, 31, 75, .05), 0 10px 28px -14px rgba(11, 31, 75, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font-family: 'Poppins', system-ui, sans-serif; line-height: 1.6;
  color: var(--marine); background: var(--nuit); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
section[id] { scroll-margin-top: 20px; }
:focus-visible { outline: 3px solid var(--vif); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--or); color: var(--nuit); }

/* ---------- 2. Éléments communs ---------- */
.conteneur { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { position: relative; padding: clamp(4.5rem, 10vw, 8.5rem) 0; overflow: clip; }
.creme { background: var(--creme); }
.casse { background: var(--casse); }
.blanc { background: #fff; }
.nuit { background: var(--nuit); color: #fff; }
.texte-or { color: var(--or); }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.ico {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.plaque {
  display: inline-block; background: #fff; color: var(--logo);
  padding: .1em .5em; border-radius: .38em; font-weight: 800; letter-spacing: .01em; line-height: 1.35;
}

.surtitre {
  display: inline-block; margin-bottom: 1.2rem; padding: .42rem .95rem; border-radius: 99px;
  background: var(--or); color: var(--nuit);
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.titre { font-size: clamp(2rem, 3.4vw + .7rem, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.chapo { margin-top: 1.2rem; font-size: 1.08rem; opacity: .72; }
.tete-centre { max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.tete-gauche { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

.contour {
  display: block; margin-bottom: .7rem; font-size: 3.2rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--vif);
}
.nuit .contour, .service-nuit .contour { -webkit-text-stroke-color: var(--or); }
.service-or .contour { -webkit-text-stroke-color: var(--nuit); }

/* Boutons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 700; font-size: .98rem; white-space: nowrap;
  translate: var(--ax, 0px) var(--ay, 0px);
  transition: translate .4s var(--doux), box-shadow .35s, scale .2s;
}
.btn::before { /* reflet qui traverse le bouton au survol */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  translate: -120% 0; transition: translate .7s var(--doux);
}
.btn:hover::before { translate: 120% 0; }
.btn:active { scale: .96; }
.btn .ico { transition: translate .3s var(--doux); }
.btn:hover .ico:last-child { translate: 4px 0; }
.btn-or { background: var(--or); color: var(--nuit); box-shadow: 0 12px 32px -10px rgba(255, 194, 51, .7); }
.btn-or:hover { box-shadow: 0 18px 44px -10px rgba(255, 194, 51, .9); }
.btn-verre { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn-verre:hover { background: rgba(255, 255, 255, .16); }
.btn-nuit { background: var(--nuit); color: #fff; box-shadow: 0 14px 34px -12px rgba(5, 13, 36, .6); }
.btn-petit { padding: .62rem 1.1rem; font-size: .84rem; }
.btn-large { width: 100%; }
.btn-geant { padding: 1.3rem 2.4rem; font-size: clamp(1rem, 2.6vw, 1.2rem); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-lien { font-size: .82rem; font-weight: 600; color: rgba(11, 31, 75, .6); text-decoration: underline; text-underline-offset: 4px; }
.btn-lien:hover { color: var(--marine); }

/* Halo doré qui suit la souris sur les cartes */
.lueur::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 194, 51, .22), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.lueur:hover::before { opacity: 1; }

/* Anneaux décoratifs (le motif de vos Reels) */
.anneau { position: absolute; pointer-events: none; translate: 0 var(--py, 0px); }

/* ---------- 3. Écran d'entrée et menu ---------- */
.rideau {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--nuit);
  animation: rideau-sortie .8s cubic-bezier(.7, 0, .2, 1) .95s forwards;
}
.rideau .plaque { font-size: clamp(2rem, 6vw, 3.4rem); animation: plaque-entree .7s var(--rebond) both; }
@keyframes plaque-entree { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes rideau-sortie { to { transform: translateY(-100%); visibility: hidden; } }

.progression {
  position: fixed; top: 0; left: 0; z-index: 150; width: 100%; height: 3px;
  background: var(--or); transform-origin: left; transform: scaleX(var(--p, 0));
}

.nav {
  position: fixed; top: 14px; left: 50%; z-index: 100; translate: -50% 0;
  width: min(1180px, 100% - 1.5rem); padding: .5rem .55rem .5rem 1rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: #fff; background: rgba(5, 13, 36, .5); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background .3s, box-shadow .3s;
  animation: nav-entree .9s var(--doux) 1.4s backwards;
}
.nav.defile { background: rgba(5, 13, 36, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px -18px rgba(5, 13, 36, .7); }
@keyframes nav-entree { from { opacity: 0; transform: translateY(-130%); } }
.logo { display: flex; align-items: center; gap: .3rem; font-weight: 800; font-size: 1.02rem; }
.logo-suffixe { color: var(--or); }
.nav-liens { display: flex; gap: .2rem; }
.nav-liens a {
  padding: .45rem .9rem; border-radius: 99px; font-size: .87rem; font-weight: 500;
  color: rgba(255, 255, 255, .72); transition: color .25s, background .25s;
}
.nav-liens a:hover, .nav-liens a.actif { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-burger { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--doux), top .35s var(--doux); }
.nav-burger span:first-child { top: 16px; }
.nav-burger span:last-child { top: 24px; }
.nav-burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.menu-plein {
  position: fixed; inset: 0; z-index: 90; padding: 6rem 1.5rem 2rem;
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  background: var(--nuit); color: #fff;
}
.menu-plein[hidden] { display: none; }
.menu-plein a { animation: monter-doux .55s var(--doux) both; animation-delay: calc(var(--i) * 60ms); }
.menu-plein a:not(.btn) { padding: .35rem 0; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.menu-plein .btn { margin-top: 1.5rem; }

/* ---------- 4. Accueil ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 6rem;
  color: #fff; background: var(--nuit);
}
.hero-fond { position: absolute; inset: 0; z-index: -1; }
.aurore { position: absolute; border-radius: 50%; filter: blur(90px); animation: derive 18s ease-in-out infinite alternate; }
.a1 { width: 520px; height: 520px; top: -160px; left: -140px; background: var(--vif); opacity: .5; }
.a2 { width: 460px; height: 460px; bottom: -180px; right: 6%; background: var(--or); opacity: .2; animation-duration: 23s; animation-delay: -6s; }
.a3 { width: 380px; height: 380px; top: 18%; right: -140px; background: #3B82F6; opacity: .32; animation-duration: 27s; animation-delay: -11s; }
@keyframes derive { to { transform: translate(70px, 50px) scale(1.18); } }
.grille-points {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 75%);
}
.anneau-1 { width: 620px; left: -220px; bottom: -300px; color: rgba(255, 255, 255, .06); }
.anneau-2 { width: 300px; right: 30%; top: -170px; color: rgba(255, 194, 51, .1); }
.projecteur { position: absolute; inset: 0; background: radial-gradient(460px circle at var(--sx, 70%) var(--sy, 30%), rgba(255, 194, 51, .1), transparent 60%); }

.hero-grille { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 2rem; }

/* Les éléments de l'accueil arrivent l'un après l'autre, après le lever du rideau */
.entree { animation: monter-doux .95s var(--doux) backwards; animation-delay: calc(1.25s + var(--i) * .1s); }
@keyframes monter-doux { from { opacity: 0; transform: translateY(28px); } }

.etiquette {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; padding: .45rem 1rem .45rem .8rem;
  border-radius: 99px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: .8rem; font-weight: 500; color: rgba(255, 255, 255, .85);
}
.pouls { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.pouls::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--or); animation: pouls 1.8s ease-out infinite; }
@keyframes pouls { to { transform: scale(3.6); opacity: 0; } }

.titre-hero { font-size: clamp(2.15rem, 4.6vw + 1rem, 4.5rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.titre-hero .ligne { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .12em; margin-bottom: -.12em; }
.titre-hero .ligne > span { display: inline-block; animation: monter-ligne 1s var(--doux) backwards; animation-delay: calc(1.2s + var(--i) * .13s); }
@keyframes monter-ligne { from { transform: translateY(115%); } }
.rotateur { display: inline-block; color: var(--or); }
.rotateur-mot { display: inline-block; }
.titre-hero mark { position: relative; z-index: 0; display: inline-block; padding: 0 .16em; background: none; color: var(--nuit); }
.titre-hero mark::before { /* le bloc doré, comme dans vos Reels */
  content: ''; position: absolute; inset: .1em 0 .04em; z-index: -1; border-radius: .14em; background: var(--or);
  transform-origin: left; animation: surligner .7s var(--doux) 2s backwards;
}
@keyframes surligner { from { transform: scaleX(0); } }

.hero-chapo { max-width: 34rem; margin-top: 1.6rem; font-size: clamp(1rem, 1.2vw + .6rem, 1.15rem); color: rgba(255, 255, 255, .74); }
.hero-boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-preuves { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; font-size: .86rem; color: rgba(255, 255, 255, .7); }
.hero-preuves li { display: flex; align-items: center; gap: .4rem; }
.hero-preuves .ico { color: var(--or); stroke-width: 3; }

/* La scène 3D */
.hero-scene { display: grid; place-items: center; min-height: 600px; perspective: 1300px; }
.scene-3d { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

.tel {
  position: relative; width: 270px; aspect-ratio: 9 / 17; padding: 10px; border-radius: 44px;
  background: linear-gradient(145deg, #2c3d6e, #0a1330);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 0 40px 80px -24px rgba(0, 0, 0, .75), 0 0 120px -20px rgba(37, 99, 235, .6);
}
.tel::before { content: ''; position: absolute; top: 19px; left: 50%; z-index: 3; translate: -50% 0; width: 78px; height: 21px; border-radius: 99px; background: #04070f; }
.tel-moyen { width: 236px; border-radius: 40px; }
.tel-ecran { position: relative; height: 100%; overflow: hidden; border-radius: 35px; background: var(--marine); }
.tel-moyen .tel-ecran { border-radius: 31px; }
.tel-video { width: 100%; height: 100%; object-fit: cover; }
.tel-ui { position: absolute; right: 10px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; gap: 14px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.tel-action { position: relative; display: flex; flex-direction: column; align-items: center; font-size: .72rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.tel-action .ico { width: 27px; height: 27px; }
#hero-coeur .ico { fill: #ff4d6d; stroke: #ff4d6d; }
#hero-coeur.bat .ico { animation: battre .45s var(--rebond); }
@keyframes battre { 40% { transform: scale(1.4); } }
.coeur-vol { position: absolute; bottom: 20px; left: 2px; width: 22px; height: 22px; fill: #ff4d6d; stroke: none; animation: envol 1.5s ease-out forwards; }
@keyframes envol { to { transform: translate(var(--dx, -10px), -120px) scale(.4) rotate(var(--rot, 20deg)); opacity: 0; } }

.pf { position: absolute; overflow: hidden; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .16); }
.pf img { width: 100%; height: 100%; object-fit: cover; }
.pf-1 { width: 180px; aspect-ratio: 4 / 5; left: -130px; top: 5%; rotate: -9deg; transform: translateZ(-70px); animation: flotter 7s ease-in-out infinite; }
.pf-2 { width: 160px; aspect-ratio: 1; right: -120px; bottom: 6%; rotate: 8deg; transform: translateZ(-50px); animation: flotter 9s -3s ease-in-out infinite; }
@keyframes flotter { 50% { translate: 0 -14px; } }

.verre {
  position: absolute; padding: .8rem 1rem; border-radius: 18px; color: #fff;
  background: rgba(20, 34, 74, .62); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 22px 44px -14px rgba(0, 0, 0, .6);
}
.verre-titre { font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .65); }
.verre-valeur { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.carte-creneau { top: 10%; right: -124px; transform: translateZ(70px); animation: flotter 6s -1s ease-in-out infinite; }
.mini-barres { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: .5rem; }
.mini-barres i { width: 9px; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .32); transform-origin: bottom; animation: barre 2.2s ease-in-out infinite alternate; }
.mini-barres i:nth-child(1) { --min: .3; } .mini-barres i:nth-child(2) { --min: .5; animation-delay: -.4s; }
.mini-barres i:nth-child(3) { --min: .35; animation-delay: -.9s; } .mini-barres i:nth-child(4) { --min: .6; animation-delay: -1.3s; }
.mini-barres i:nth-child(5) { --min: .88; animation-delay: -.2s; } .mini-barres i:nth-child(6) { --min: .55; animation-delay: -1.7s; }
.mini-barres .top { background: var(--or); }
@keyframes barre { from { transform: scaleY(var(--min, .4)); } to { transform: scaleY(calc(var(--min, .4) + .12)); } }
.carte-notif { bottom: 13%; left: -146px; display: flex; align-items: center; gap: .7rem; min-width: 228px; transform: translateZ(90px); animation: flotter 8s -2s ease-in-out infinite; }
.carte-notif b { display: block; font-size: .86rem; line-height: 1.3; }
.carte-notif small { font-size: .72rem; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.notif-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--or); color: var(--nuit); }
.carte-notif.change > * { animation: notif-change .5s var(--doux); }
@keyframes notif-change { from { opacity: 0; transform: translateY(10px); } }

.hero-suite { position: absolute; bottom: 2.6rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 99px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.hero-suite span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--or); animation: molette 1.8s var(--doux) infinite; }
@keyframes molette { 60% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 0; } }

/* ---------- 5. Bandeau défilant ---------- */
.bandeau { position: relative; z-index: 3; width: 106%; margin: -1.7rem 0 -1.7rem -3%; padding: .95rem 0; overflow: hidden; rotate: -1.4deg; background: var(--or); color: var(--nuit); box-shadow: 0 20px 40px -20px rgba(5, 13, 36, .5); }
.bandeau-piste { display: flex; width: max-content; animation: defiler 30s linear infinite; }
.bandeau-piste span { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.bandeau-piste i { font-style: normal; font-size: .8em; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* ---------- 6. Le constat ---------- */
.constat-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.constat-fixe { position: sticky; top: 110px; }
.paradoxe { margin-top: 2rem; padding: 1.6rem 1.6rem 1.3rem; border-radius: 26px; background: #fff; box-shadow: var(--ombre); }
.paradoxe-ligne p { display: flex; align-items: baseline; gap: .6rem; font-weight: 600; }
.paradoxe-ligne b { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.paradoxe-ligne .texte-or { color: #E0A100; }
.jauge { height: 12px; margin: .5rem 0 1.3rem; overflow: hidden; border-radius: 99px; background: var(--casse); }
.jauge i { display: block; width: var(--v); min-width: 8px; height: 100%; border-radius: 99px; background: var(--marine); transform-origin: left; }
.js .jauge i { transform: scaleX(0); transition: transform 1.5s var(--doux) .3s; }
.js .vu .jauge i { transform: scaleX(1); }
.jauge .jauge-or { background: var(--or); }
.paradoxe-note { padding-top: 1rem; border-top: 1px dashed rgba(11, 31, 75, .15); font-size: .95rem; }

.erreurs { display: grid; gap: 1.6rem; }
.erreur {
  position: sticky; top: calc(108px + var(--n) * 26px); overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 31, 75, .05), 0 -14px 30px -22px rgba(11, 31, 75, .25), 0 30px 60px -34px rgba(11, 31, 75, .35);
}
.erreur h3 { font-size: clamp(1.25rem, 1.4vw + .8rem, 1.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.erreur > p { margin-top: .7rem; opacity: .72; }
.illus { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.3rem; min-height: 168px; margin-top: 1.5rem; overflow: hidden; border-radius: 20px; background: var(--casse); }
.illus-affiche { padding-bottom: 1.4rem; }
.tuile-illus { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 20px; background: #fff; box-shadow: var(--ombre); font-size: 1.7rem; color: rgba(11, 31, 75, .4); }
.tuile-illus em { position: absolute; top: calc(100% + .4rem); font-size: .74rem; font-style: normal; font-weight: 600; color: var(--marine); }
.tuile-oui { background: var(--nuit); color: var(--or); animation: sautiller 2.6s var(--doux) infinite; }
@keyframes sautiller { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -10px; } }
.pastille-non, .pastille-oui { position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; color: #fff; }
.pastille-non { background: #E5484D; } .pastille-oui { background: var(--vert); }
.pastille-non .ico, .pastille-oui .ico { stroke-width: 3.2; }
.fleche-illus { font-size: 1.6rem; animation: pousser 1.3s ease-in-out infinite; }
@keyframes pousser { 50% { translate: 7px 0; } }
.illus-photo img { width: 100%; height: 190px; object-fit: cover; animation: zoom-lent 14s ease-in-out infinite alternate; }
@keyframes zoom-lent { to { transform: scale(1.14); } }
.bouton-lecture { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--or); color: var(--nuit); font-size: 1.5rem; animation: onde 2s infinite; }
@keyframes onde { from { box-shadow: 0 0 0 0 rgba(255, 194, 51, .7); } to { box-shadow: 0 0 0 26px rgba(255, 194, 51, 0); } }
.illus-avis { flex-direction: column; gap: .7rem; padding: 1.5rem; }
.illus-avis p { font-size: .95rem; font-weight: 600; font-style: italic; }
.etoiles { display: flex; gap: .3rem; font-size: 2rem; color: #D5DBE8; }
.etoiles .ico, .illus-etoiles .ico { animation: etoile 4.4s infinite; }
.etoiles .ico:nth-child(2), .illus-etoiles .ico:nth-child(2) { animation-delay: .3s; }
.etoiles .ico:nth-child(3), .illus-etoiles .ico:nth-child(3) { animation-delay: .6s; }
.etoiles .ico:nth-child(4), .illus-etoiles .ico:nth-child(4) { animation-delay: .9s; }
.etoiles .ico:nth-child(5), .illus-etoiles .ico:nth-child(5) { animation-delay: 1.2s; }
@keyframes etoile {
  0%, 8% { color: var(--etoile-off, #D5DBE8); scale: 1; }
  15% { color: var(--etoile-on, #FFC233); scale: 1.4; }
  22%, 86% { color: var(--etoile-on, #FFC233); scale: 1; }
  100% { color: var(--etoile-off, #D5DBE8); }
}

/* ---------- 7. Nos Reels ---------- */
.anneau-3 { width: 560px; right: -200px; top: -160px; color: rgba(255, 255, 255, .05); }
.vitrine { display: flex; justify-content: center; align-items: flex-end; gap: clamp(1rem, 4vw, 3.5rem); }
.reel { text-align: center; cursor: pointer; opacity: .5; scale: .86; transition: scale .6s var(--doux), rotate .6s var(--doux), opacity .6s, translate .6s var(--doux); }
.reel:first-child { rotate: -6deg; translate: 16px 10px; }
.reel:last-child { rotate: 6deg; translate: -16px 10px; }
.reel.actif { position: relative; z-index: 2; opacity: 1; scale: 1; rotate: 0deg; translate: 0 0; }
.reel figcaption { margin-top: 1.3rem; }
.reel figcaption b { display: block; font-size: 1.05rem; }
.reel figcaption span { font-size: .82rem; color: rgba(255, 255, 255, .6); }
.tel-lecture { position: absolute; left: 12px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; pointer-events: none; background: rgba(5, 13, 36, .6); backdrop-filter: blur(6px); color: #fff; font-size: 1rem; transition: opacity .3s, scale .3s; }
.reel.joue .tel-lecture { opacity: 0; scale: .5; }
.tel-son { position: absolute; right: 12px; bottom: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(5, 13, 36, .7); backdrop-filter: blur(6px); color: #fff; transition: scale .2s, background .2s; }
.tel-son:hover { scale: 1.1; }
.tel-son.actif { background: var(--or); color: var(--nuit); }

/* ---------- 8. La démo ---------- */
.appli { overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 31, 75, .08), 0 60px 110px -40px rgba(11, 31, 75, .45); }
.appli-barre { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; background: var(--nuit); color: #fff; }
.feux { display: flex; gap: 6px; }
.feux i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.feux i:nth-child(2) { background: #FEBC2E; } .feux i:nth-child(3) { background: #28C840; }
.appli-titre { flex: 1; font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .7); text-align: center; }
.appli-badge { padding: .22rem .7rem; border-radius: 99px; background: rgba(255, 194, 51, .16); color: var(--or); font-size: .7rem; font-weight: 600; white-space: nowrap; }
.appli-corps { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 660px; }
.appli-menu { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem .8rem; background: var(--marine); }
.appli-menu button { position: relative; z-index: 1; display: flex; align-items: center; gap: .7rem; padding: .78rem .9rem; border-radius: 12px; font-size: .9rem; font-weight: 600; text-align: left; white-space: nowrap; color: rgba(255, 255, 255, .65); transition: color .3s; }
.appli-menu button:hover { color: #fff; }
.appli-menu button.actif { color: var(--nuit); }
.appli-vues { min-width: 0; padding: clamp(.9rem, 2vw, 1.5rem); background: var(--casse); }
.vue { animation: vue-entree .55s var(--doux); }
@keyframes vue-entree { from { opacity: 0; transform: translateY(16px); } }
.vue-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin-bottom: 1.1rem; }
.vue-tete h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.vue-tete p { font-size: .84rem; color: rgba(11, 31, 75, .6); }
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* Le curseur glissant (onglets, filtres) : app.js lui donne sa position */
.curseur { position: absolute; left: 0; top: 0; width: var(--l, 0); height: var(--h, 0); border-radius: 9px; pointer-events: none; background: var(--marine); transform: translate(var(--x, 0), var(--y, 0)); transition: transform .45s var(--rebond), width .45s var(--rebond), height .45s var(--rebond); }
.appli-menu .curseur { border-radius: 12px; background: var(--or); }
.segments { position: relative; display: inline-flex; padding: 4px; border-radius: 13px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 31, 75, .08); }
.segments button { position: relative; z-index: 1; padding: .42rem .85rem; border-radius: 9px; font-size: .8rem; font-weight: 600; color: rgba(11, 31, 75, .62); transition: color .3s; }
.segments button.actif { color: #fff; }

/* Chiffres clés */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { position: relative; overflow: hidden; padding: 1rem 1.1rem 2.5rem; border-radius: 20px; background: #fff; box-shadow: var(--ombre); transition: translate .4s var(--doux), box-shadow .4s; }
.kpi:hover { translate: 0 -4px; box-shadow: 0 20px 40px -20px rgba(11, 31, 75, .4); }
.kpi-tete { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .76rem; font-weight: 600; color: rgba(11, 31, 75, .62); }
.kpi-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--casse); color: var(--vif); }
.kpi-valeur { margin-top: .35rem; font-size: clamp(1.4rem, 1.6vw + .7rem, 1.85rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-delta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .2rem; margin-top: .2rem; font-size: .72rem; font-weight: 700; color: var(--vert); }
.kpi-delta.baisse { color: var(--rose); }
.kpi-delta span { font-weight: 500; color: rgba(11, 31, 75, .5); }
.etincelle { position: absolute; left: 0; bottom: 4px; width: 100%; height: 30px; }
.etincelle path { fill: none; stroke: var(--or); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.blocs { display: grid; gap: 1rem; margin-top: 1rem; }
.blocs-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.blocs-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bloc { min-width: 0; padding: 1.2rem; border-radius: 20px; background: #fff; box-shadow: var(--ombre); }
.bloc-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; margin-bottom: .9rem; }
.bloc-tete h4 { font-size: .98rem; font-weight: 700; }
.bloc-tete span { font-size: .74rem; color: rgba(11, 31, 75, .55); }
.bloc-tete .badge-or { padding: .25rem .75rem; border-radius: 99px; background: var(--or); color: var(--nuit); font-weight: 700; }

.courbe-zone { position: relative; }
#courbe { width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.bulle { position: absolute; z-index: 2; padding: .35rem .65rem; border-radius: 9px; pointer-events: none; white-space: nowrap; background: var(--nuit); color: #fff; font-size: .74rem; font-weight: 600; translate: -50% -135%; transition: left .12s, top .12s; }
.bulle[hidden] { display: none; }

.donut-zone { position: relative; width: min(180px, 72%); margin: .2rem auto 1rem; }
#donut { rotate: -90deg; }
.donut-fond, .donut-part { fill: none; stroke-width: 14; }
.donut-fond { stroke: var(--casse); }
.donut-part { transition: stroke-dasharray .9s var(--doux), stroke-dashoffset .9s var(--doux); }
.donut-part[data-part="0"] { stroke: var(--marine); } .donut-part[data-part="1"] { stroke: var(--or); } .donut-part[data-part="2"] { stroke: var(--vif); }
.donut-centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-centre b { font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.donut-centre span { font-size: .74rem; color: rgba(11, 31, 75, .55); }
.donut-legende li { display: flex; align-items: center; gap: .5rem; padding: .32rem 0; font-size: .82rem; }
.donut-legende i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.donut-legende b { margin-left: auto; font-variant-numeric: tabular-nums; }

.chaleur { display: grid; grid-template-columns: 2.2rem repeat(6, minmax(0, 1fr)); gap: 5px; align-items: center; }
.chaleur-titre { font-size: .7rem; font-weight: 600; text-align: center; color: rgba(11, 31, 75, .55); }
.case { height: 30px; border-radius: 8px; background-color: rgba(11, 31, 75, calc(.05 + var(--f) * .9)); transition: background-color .6s, scale .2s, box-shadow .2s; }
.case:hover, .case:focus-visible { scale: 1.12; box-shadow: 0 0 0 2px var(--vif); }
.case.top { background-color: var(--or); box-shadow: 0 0 0 3px rgba(255, 194, 51, .35); }
.chaleur-detail { margin-top: .9rem; padding: .65rem .9rem; border-radius: 12px; background: var(--creme); color: var(--caramel); font-size: .82rem; min-height: 3.6em; }

.top-posts li { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; animation: vue-entree .5s var(--doux) backwards; animation-delay: calc(var(--k) * 70ms); }
.top-posts img { flex: none; width: 52px; height: 52px; border-radius: 13px; object-fit: cover; }
.top-posts div { flex: 1; min-width: 0; }
.top-posts b { display: block; overflow: hidden; font-size: .86rem; white-space: nowrap; text-overflow: ellipsis; }
.top-posts small { font-size: .73rem; color: rgba(11, 31, 75, .6); }
.top-barre { height: 6px; margin-top: .35rem; overflow: hidden; border-radius: 99px; background: var(--casse); }
.top-barre i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--marine), var(--vif)); transition: width .9s var(--doux); }

/* Calendrier */
.couverture { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; padding: .7rem 1rem; border-radius: 16px; background: #fff; box-shadow: var(--ombre); font-size: .84rem; font-weight: 600; }
.pips { display: flex; gap: 5px; }
.pips i { width: 26px; height: 8px; border-radius: 99px; background: var(--casse); transition: background .4s, scale .4s var(--rebond); }
.pips i.plein { background: var(--or); scale: 1 1.3; }

.banque { margin-bottom: 1rem; padding: .9rem; border-radius: 18px; background: var(--marine); color: #fff; }
.banque-titre { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font-size: .86rem; font-weight: 700; }
.banque-titre .ico { color: var(--or); }
.banque-titre span { font-weight: 400; color: rgba(255, 255, 255, .6); }
.banque-liste { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.banque-vide { padding: .6rem .2rem; font-size: .84rem; color: rgba(255, 255, 255, .7); }

.semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.jour { display: flex; flex-direction: column; gap: .5rem; min-height: 320px; padding: .6rem; border-radius: 18px; background: #fff; box-shadow: var(--ombre); transition: background .25s, box-shadow .25s, translate .25s var(--doux); }
.jour.cible { background: #FFF4D2; box-shadow: 0 0 0 2px var(--or), 0 16px 30px -16px rgba(255, 194, 51, .8); translate: 0 -4px; }
.jour-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .3rem; }
.jour-nom { font-size: .84rem; font-weight: 700; }
.jour-ideal { font-size: .64rem; font-weight: 600; color: var(--caramel); white-space: nowrap; }
.jour-ajout { margin-top: auto; padding: .45rem; border: 1.5px dashed rgba(11, 31, 75, .2); border-radius: 11px; font-size: .74rem; font-weight: 600; color: rgba(11, 31, 75, .5); transition: border-color .2s, color .2s, background .2s; }
.jour-ajout:hover { border-color: var(--vif); background: rgba(37, 99, 235, .06); color: var(--vif); }
.jour-saisie { width: 100%; margin-top: auto; padding: .45rem .55rem; border: 1.5px solid var(--vif); border-radius: 11px; background: #fff; font-size: .76rem; outline: none; }

.post { position: relative; overflow: hidden; border-radius: 13px; background: var(--casse); cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .25s, translate .25s var(--doux), opacity .2s; }
.post:hover { box-shadow: 0 12px 24px -12px rgba(11, 31, 75, .5); translate: 0 -2px; }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; }
.post-corps { padding: .45rem .55rem .55rem; }
.post-titre { font-size: .73rem; font-weight: 600; line-height: 1.3; }
.post-meta { display: flex; align-items: center; gap: .3rem; margin-top: .25rem; font-size: .63rem; color: rgba(11, 31, 75, .6); white-space: nowrap; }
.post-meta i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.post-format { position: absolute; top: 6px; left: 6px; padding: .12rem .42rem; border-radius: 6px; background: rgba(5, 13, 36, .78); color: #fff; font-size: .6rem; font-weight: 700; }
.post-suppr { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(5, 13, 36, .78); color: #fff; font-size: .72rem; opacity: 0; transition: opacity .2s, background .2s; }
.post-suppr:hover { background: var(--rose); }
.post:hover .post-suppr, .post:focus-visible .post-suppr, .post-suppr:focus-visible { opacity: 1; }
.poignee { position: absolute; right: 4px; bottom: 4px; display: none; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; box-shadow: var(--ombre); color: var(--marine); touch-action: none; }
.post.source { opacity: .25; }
.post.compact { display: flex; flex: none; align-items: center; width: 232px; background: rgba(255, 255, 255, .1); color: #fff; }
.post.compact img { width: 58px; height: 58px; aspect-ratio: auto; }
.post.compact .post-corps { min-width: 0; padding: .3rem .7rem; }
.post.compact .post-meta { color: rgba(255, 255, 255, .65); }
.post.compact .post-format, .post.compact .post-suppr { display: none; }
.fantome { position: fixed; left: 0; top: 0; z-index: 300; margin: 0; pointer-events: none; rotate: 3deg; scale: 1.05; opacity: .96; box-shadow: 0 26px 50px -12px rgba(5, 13, 36, .6); transition: none; }
.fantome.compact { background: var(--marine); }
body.en-glisse, body.en-glisse * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
@media (hover: none) {
  .post-suppr { opacity: 1; }
  .poignee { display: grid; }
  .post.compact .post-corps { padding-right: 2.3rem; }
  .post:not(.compact) .post-corps { padding-right: 2.2rem; }
}

/* Légendes */
.legendes-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.reglage-titre { margin: 1.3rem 0 .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(11, 31, 75, .55); }
.reglage-titre:first-child { margin-top: 0; }
.choix-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choix-photo { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 15px; transition: scale .35s var(--rebond), box-shadow .3s; }
.choix-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--doux); }
.choix-photo:hover img { scale: 1.1; }
.choix-photo span { position: absolute; inset: auto 0 0; padding: 1.2rem .4rem .4rem; background: linear-gradient(transparent, rgba(5, 13, 36, .85)); color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.2; text-align: center; }
.choix-photo.actif { scale: 1.04; box-shadow: 0 0 0 3px var(--or), 0 14px 24px -10px rgba(11, 31, 75, .5); }
.puces { display: flex; flex-wrap: wrap; gap: .4rem; }
.puce { padding: .45rem .95rem; border-radius: 99px; background: var(--casse); font-size: .82rem; font-weight: 600; transition: background .25s, color .25s, scale .2s; }
.puce:hover { scale: 1.05; }
.puce.actif { background: var(--marine); color: #fff; }
.reglages .segments { background: var(--casse); }
#btn-generer { margin-top: 1.5rem; }
#btn-generer.tourne .ico { animation: tourner .7s var(--doux); }
@keyframes tourner { to { rotate: 360deg; } }

.apercu { display: grid; gap: .8rem; }
.publication { width: 100%; max-width: 360px; margin: 0 auto; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--ombre); }
.publication header { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; }
.publication header b { display: block; font-size: .88rem; line-height: 1.2; }
.publication header span { font-size: .72rem; color: rgba(11, 31, 75, .6); }
.avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(from 200deg, var(--or), #FF7A59, var(--vif), var(--or)); color: #fff; }
.avatar .ico { fill: #fff; stroke: none; }
.pub-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--casse); transition: aspect-ratio .6s var(--doux); }
.pub-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, scale .8s var(--doux); }
.pub-image.change img { opacity: 0; scale: 1.1; }
.pub-coeur-geant { position: absolute; inset: 0; width: 96px; height: 96px; margin: auto; opacity: 0; pointer-events: none; }
.pub-coeur-geant .ico { width: 100%; height: 100%; fill: #fff; stroke: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .4)); }
.pub-image.aime .pub-coeur-geant { animation: coeur-geant .9s var(--doux); }
@keyframes coeur-geant { 0% { opacity: 0; scale: .3; } 25% { opacity: 1; scale: 1.15; } 45% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; scale: 1.25; } }
.pub-actions { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem .2rem; font-size: 1.35rem; }
.pub-actions .pousse { flex: 1; }
#pub-aime { display: grid; transition: scale .2s; }
#pub-aime:active { scale: .8; }
#pub-aime[aria-pressed="true"] { color: #FF3B5C; }
#pub-aime[aria-pressed="true"] .ico { fill: currentColor; animation: battre .45s var(--rebond); }
.pub-texte { min-height: 4.6em; padding: .35rem 1rem 0; font-size: .88rem; }
.curseur-texte { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--vif); opacity: 0; }
.publication.ecrit .curseur-texte { opacity: 1; animation: clignoter .7s steps(2) infinite; }
@keyframes clignoter { 50% { opacity: 0; } }
.pub-tags { padding: .4rem 1rem 1rem; font-size: .84rem; font-weight: 500; color: var(--vif); transition: opacity .4s, translate .4s var(--doux); }
.publication.ecrit .pub-tags { opacity: 0; translate: 0 6px; }
.variantes { display: grid; gap: .5rem; }
.variante { display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem .35rem .35rem; border: 2px solid transparent; border-radius: 15px; background: #fff; box-shadow: var(--ombre); transition: border-color .3s, translate .3s var(--doux); animation: vue-entree .5s var(--doux) backwards; animation-delay: calc(var(--k) * 80ms); }
.variante:hover { translate: 3px 0; }
.variante.actif { border-color: var(--marine); }
.variante-choix { display: flex; flex: 1; align-items: center; gap: .6rem; min-width: 0; padding: .35rem; text-align: left; }
.variante-choix i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--casse); font-size: .75rem; font-style: normal; font-weight: 700; transition: background .3s; }
.variante.actif i { background: var(--or); }
.variante-choix span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: .8rem; line-height: 1.35; }
.btn-copier { display: flex; flex: none; align-items: center; gap: .3rem; padding: .42rem .75rem; border-radius: 99px; background: var(--casse); font-size: .74rem; font-weight: 700; transition: background .25s, color .25s; }
.btn-copier:hover { background: var(--marine); color: #fff; }
.btn-copier.fait { background: var(--vert); color: #fff; }

/* ---------- 9. Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.service { position: relative; overflow: hidden; padding: 1.5rem; border-radius: 30px; background: var(--casse); transition-property: opacity, transform, translate, box-shadow; }
.service:hover { translate: 0 -10px; box-shadow: 0 34px 60px -30px rgba(11, 31, 75, .5); }
.service h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.service p { margin-top: .7rem; opacity: .75; }
.service-nuit { background: var(--nuit); color: #fff; }
.service-or { background: var(--or); color: var(--nuit); }
.service-illus { position: relative; display: flex; height: 172px; margin-bottom: 1.5rem; overflow: hidden; border-radius: 20px; background: rgba(11, 31, 75, .06); }
.illus-montage { flex-direction: column; justify-content: center; gap: 10px; padding: 0 16px; background: rgba(255, 255, 255, .07); }
.piste { position: relative; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.piste i { position: absolute; left: var(--x); top: 4px; bottom: 4px; width: var(--l); border-radius: 6px; background: rgba(255, 255, 255, .28); }
.piste .or { background: var(--or); } .piste .bleu { background: var(--vif); }
.tete-lecture { position: absolute; top: 16px; bottom: 16px; left: 16px; width: 2px; background: #fff; box-shadow: 0 0 14px 2px rgba(255, 255, 255, .7); animation: lecture 4.5s linear infinite; }
.tete-lecture::before { content: ''; position: absolute; top: -6px; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
@keyframes lecture { to { left: calc(100% - 16px); } }
.illus-semaine { align-items: center; justify-content: center; gap: 8px; padding: 0 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 31, 75, .06); }
.illus-semaine i { flex: 1; max-width: 36px; aspect-ratio: 1 / 1.35; border-radius: 9px; background: var(--casse); animation: remplir 6s infinite; }
.illus-semaine i:nth-child(2) { animation-delay: .45s; } .illus-semaine i:nth-child(3) { animation-delay: .9s; }
.illus-semaine i:nth-child(4) { animation-delay: 1.35s; } .illus-semaine i:nth-child(5) { animation-delay: 1.8s; }
.illus-semaine i:nth-child(6) { animation-delay: 2.25s; } .illus-semaine i:nth-child(7) { animation-delay: 2.7s; }
@keyframes remplir {
  0%, 6% { background: var(--casse); translate: 0 0; }
  12% { background: var(--or); translate: 0 -10px; }
  20%, 82% { background: var(--marine); translate: 0 0; }
  100% { background: var(--casse); }
}
.illus-etoiles { --etoile-on: #050D24; --etoile-off: rgba(5, 13, 36, .18); align-items: center; justify-content: center; gap: .4rem; background: rgba(5, 13, 36, .08); font-size: 2.3rem; color: rgba(5, 13, 36, .18); }

/* ---------- 10. Méthode, questions, appel final ---------- */
.etapes { position: relative; }
.etapes-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.etapes-ligne { position: absolute; top: 27px; left: calc(100% / 6); right: calc(100% / 6); height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .12); }
.etapes-ligne i { display: block; height: 100%; border-radius: 9px; background: var(--or); transform-origin: left; transform: scaleX(var(--p, 0)); }
.etape { text-align: center; }
.etape-pastille { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--marine); color: rgba(255, 255, 255, .5); font-size: 1.2rem; font-weight: 800; box-shadow: 0 0 0 6px var(--nuit); transition: background .5s, color .5s, scale .5s var(--rebond), box-shadow .5s; }
.etape h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.etape p { max-width: 20rem; margin: .6rem auto 0; color: rgba(255, 255, 255, .7); }
.js .etape h3, .js .etape p { opacity: .35; transition: opacity .6s; }
.js .etape.atteinte h3, .js .etape.atteinte p { opacity: 1; }
.etape.atteinte .etape-pastille { background: var(--or); color: var(--nuit); scale: 1.14; box-shadow: 0 0 0 6px var(--nuit), 0 0 44px rgba(255, 194, 51, .55); }
.engagements { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.engagements li { display: flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 99px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: .9rem; font-weight: 500; }
.engagements .ico { color: var(--or); stroke-width: 3; }

.questions-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.questions-grille .tete-gauche { position: sticky; top: 110px; margin-bottom: 0; }
.faq-item { margin-bottom: .8rem; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--ombre); }
.faq-item button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.2rem 1.4rem; font-size: 1.02rem; font-weight: 700; text-align: left; }
.faq-item button .ico { display: block; padding: 5px; width: 32px; height: 32px; border-radius: 50%; background: var(--casse); transition: rotate .45s var(--doux), background .3s; }
.faq-item.ouvert button .ico { rotate: 180deg; background: var(--or); }
.faq-reponse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--doux); }
.faq-reponse > div { overflow: hidden; }
.faq-reponse p { padding: 0 1.4rem 1.3rem; opacity: .75; }
.faq-item.ouvert .faq-reponse { grid-template-rows: 1fr; }

.final { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 9.5rem) 0; background: var(--or); color: var(--nuit); text-align: center; }
.anneau-4 { width: 600px; left: -240px; top: -220px; color: rgba(5, 13, 36, .07); }
.anneau-5 { width: 380px; right: -120px; bottom: -160px; color: rgba(255, 255, 255, .35); }
.final-contenu { position: relative; }
.titre-geant { max-width: 17ch; margin: 0 auto; font-size: clamp(2.1rem, 5vw + .6rem, 4.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.final p { max-width: 32rem; margin: 1.6rem auto 2.4rem; font-size: 1.1rem; font-weight: 500; }

.pied { padding: 2.2rem 0; background: var(--nuit); color: rgba(255, 255, 255, .6); font-size: .88rem; }
.pied-grille { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pied .logo { color: #fff; }

/* ---------- 11. Apparitions au défilement (pilotées par app.js) ---------- */
.js [data-anim] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--doux) var(--d, 0s), transform .9s var(--doux) var(--d, 0s); }
.js [data-anim="zoom"] { transform: translateY(50px) scale(.94); }
.js [data-anim].vu { opacity: 1; transform: none; }
/* Ces éléments ont aussi un effet au survol : on garde les deux mouvements */
.js .service[data-anim] { transition: opacity .9s var(--doux) var(--d, 0s), transform .9s var(--doux) var(--d, 0s), translate .5s var(--doux), box-shadow .5s; }
.js .btn[data-anim] { transition: opacity .9s var(--doux), transform .9s var(--doux), translate .4s var(--doux), box-shadow .35s, scale .2s; }
/* Titres : chaque mot monte depuis une « fente » */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.mot > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--doux); transition-delay: calc(var(--i) * 55ms); }
.vu .mot > span { transform: none; }

/* ---------- 12. Téléphone et accessibilité ---------- */
@media (max-width: 1100px) {
  .semaine { grid-template-columns: repeat(7, minmax(148px, 1fr)); overflow-x: auto; padding: 4px 2px .7rem; scroll-snap-type: x proximity; }
  .jour { scroll-snap-align: start; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .blocs-2-1, .blocs-1-1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .hero { padding-top: 7rem; }
  .hero-grille { grid-template-columns: 1fr; }
  .hero-scene { min-height: 560px; margin-top: 1.5rem; }
  .hero-suite { display: none; }
}
@media (max-width: 960px) {
  .nav-liens, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .constat-grille, .questions-grille { grid-template-columns: 1fr; }
  .constat-fixe, .questions-grille .tete-gauche, .erreur { position: relative; top: auto; }
  .questions-grille .tete-gauche { margin-bottom: 1rem; }
  .services { grid-template-columns: 1fr; }
  .appli-corps { grid-template-columns: minmax(0, 1fr); }
  .appli-menu { flex-direction: row; overflow-x: auto; padding: .6rem; }
  .appli-menu button { padding: .6rem .9rem; font-size: .84rem; }
  .appli-titre { text-align: left; }
  .legendes-grille { grid-template-columns: minmax(0, 1fr); }
  .etapes-liste { grid-template-columns: 1fr; gap: 2.2rem; }
  .etapes-ligne { top: 28px; bottom: 60px; left: 27px; right: auto; width: 3px; height: auto; }
  .etapes-ligne i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .etape { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.2rem; text-align: left; }
  .etape-pastille { grid-row: span 2; margin: 0; }
  .etape p { margin: .4rem 0 0; }
}
@media (max-width: 760px) {
  .vitrine { justify-content: flex-start; align-items: flex-start; gap: 1.2rem; margin-inline: -1.25rem; padding: 1rem 1.25rem 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vitrine::-webkit-scrollbar { display: none; }
  .reel, .reel:first-child, .reel:last-child { flex: none; opacity: 1; scale: 1; rotate: 0deg; translate: 0 0; scroll-snap-align: center; }
  .vitrine::before, .vitrine::after { content: ''; flex: none; width: calc(50vw - 138px); }
}
@media (max-width: 560px) {
  .scene-3d { scale: .8; }
  .hero-scene { min-height: 500px; }
  .pf-1 { left: -84px; } .pf-2 { right: -78px; }
  .carte-creneau { right: -64px; } .carte-notif { left: -62px; }
  .hero-boutons .btn { width: 100%; }
  .appli { border-radius: 20px; margin-inline: -.6rem; }
  .appli-badge { display: none; }
  .segments button { padding: .42rem .65rem; font-size: .76rem; }
  .kpi { padding: .8rem .85rem 2.2rem; }
  .kpi-delta span { display: none; }
  .pips i { width: 18px; }
  .btn-geant { width: 100%; padding-inline: 1rem; }
}

/* Si la personne a demandé « moins d'animations » sur son appareil, on les coupe toutes */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rideau { display: none; }
  .js [data-anim], .mot > span, .js .jauge i { opacity: 1; transform: none; }
  .js .etape h3, .js .etape p { opacity: 1; }
}
