/* Spyrall — feuille de style du site (piste « Signature »)
   1. Base  2. Boutons  3. En-tête et menus  4. Héros  5. Sections
   6. Composants des pages  7. Pied de page  8. Animations  9. Mobile */

/* ---------- 1. Base ---------- */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #2b66fa; --blue-600: #1f55e6; --blue-50: #f2f6ff; --blue-100: #e3ebff; --blue-200: #cddcff;
  --ink: #0b1633; --text: #4b587a; --muted: #7d89a6; --line: #e5eaf4;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: "Figtree", system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, 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; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.on-blue :focus-visible { outline-color: #fff; }
.container { width: min(100% - 48px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 12px 18px; border-radius: 12px; color: #fff; background: var(--ink); transition: top .2s; }
.skip-link:focus { top: 16px; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo svg { height: var(--logo-h, 32px); width: auto; aspect-ratio: 1471 / 484; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 2. Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--ease-out); }
.btn--lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn .icon { width: 19px; height: 19px; }
.btn--primary { color: #fff; background: var(--blue); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn--white { color: var(--blue); background: #fff; box-shadow: 0 14px 30px -14px rgba(11, 22, 51, .45); }
.btn--white:hover { background: #f7f9ff; transform: translateY(-1px); }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
/* Même allure qu'un bouton, mais simple affichage (ex. numéro de téléphone du haut de l'accueil) */
.btn--static { cursor: default; user-select: text; }
.btn--static.btn--glass:hover { background: rgba(255, 255, 255, .12); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--line:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-200); }
.icon-arrow { transition: transform .35s var(--ease-out); }
a:hover > .icon-arrow, a:hover .icon-arrow { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.link .icon { width: 18px; height: 18px; }

/* ---------- 3. En-tête et menus ---------- */
/* Barre fixe, toujours bleue : la même sur toutes les pages, en haut comme pendant le défilement */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; background: var(--blue); }
.menu-open .header { z-index: 95; }
.header__inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.header .logo { --logo-h: 33px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { display: flex; } /* chaque lien à la même hauteur, quel que soit son texte */
.nav__link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 16px; font-weight: 500; transition: background-color .2s; }
.nav__link:hover, .nav__link[aria-current], .has-sub.is-open > .nav__link { background: rgba(255, 255, 255, .14); }
.header__cta { box-shadow: none; }

.has-sub { position: relative; }
.chev { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.has-sub.is-open .chev { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 60;
  width: 400px; margin-left: -200px; padding: 10px;
  border-radius: 26px; color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 22, 51, .06), 0 30px 70px -24px rgba(11, 22, 51, .32);
  opacity: 0; visibility: hidden; transform: translate3d(0, 10px, 0);
  transition: opacity .22s var(--ease-soft), transform .32s var(--ease-out), visibility 0s linear .32s;
}
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.sub :focus-visible { outline-color: var(--blue); }
.sub ul { display: grid; align-content: center; }
.sub__item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; transition: background-color .2s; }
.sub__item:hover, .sub__item[aria-current] { background: var(--blue-50); }
/* Illustration de la machine, sur une vignette bleu clair qui passe en blanc au survol et sur la page en cours */
.sub__machine { display: grid; place-items: center; flex: none; width: 60px; height: 72px; border-radius: 16px; background: var(--blue-50); transition: background-color .25s, box-shadow .25s; }
.sub__machine img { height: 60px; width: auto; filter: drop-shadow(0 4px 5px rgba(11, 22, 51, .2)); transition: transform .4s var(--ease-out); }
.sub__item:hover .sub__machine, .sub__item[aria-current] .sub__machine { background: #fff; box-shadow: 0 0 0 1px var(--blue-100); }
.sub__item:hover .sub__machine img { transform: translateY(-2px) scale(1.05); }
.sub__item strong { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.sub__item strong .icon { width: 16px; height: 16px; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease-out); }
.sub__item:hover strong .icon { opacity: 1; transform: none; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.burger span { display: block; width: 20px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.menu-open .burger span:first-child { transform: translateY(3.9px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.9px) rotate(-45deg); }
.mmenu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: 92px 24px 28px; overflow-y: auto; color: var(--ink); background: #fff; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-soft), visibility 0s linear .35s; }
.mmenu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mmenu__list > li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(.06s + var(--i, 0) * 50ms); }
.mmenu.is-open .mmenu__list > li { opacity: 1; transform: none; }
.mmenu__list > li > a, .mmenu__label { display: block; padding: 18px 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.mmenu__sub { padding: 0 0 14px; }
.mmenu__sub a { display: block; padding: 9px 0 9px 14px; font-size: 16px; color: var(--text); border-left: 2px solid var(--blue-200); }
.mmenu a[aria-current] { color: var(--blue); }
.mmenu__sub a[aria-current] { border-left-color: var(--blue); }
.mmenu__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }

/* ---------- 4. Héros (toujours sur fond bleu) ---------- */
.hero { --overlap: 0px; position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; left: 0; right: 0; top: 0; bottom: var(--overlap); z-index: -1; border-radius: 0 0 calc(var(--p, 0) * 64px) calc(var(--p, 0) * 64px); background: radial-gradient(60% 75% at 50% 0%, #4f87ff 0%, rgba(79, 135, 255, 0) 70%), var(--blue); transform: scale(calc(1 - var(--p, 0) * .04)); transform-origin: 50% 0; }
.hero__label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.hero__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.hero__title { font-size: clamp(42px, 6.2vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.hero__lead { max-width: 640px; margin-top: 28px; font-size: 20px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__media { position: relative; overflow: hidden; border-radius: 30px; background: #dfe7f7; box-shadow: 0 50px 90px -50px rgba(11, 22, 51, .55); --reveal-y: 60px; }
.hero__media > div { position: absolute; inset: -9% 0; transform: translate3d(0, var(--py, 0), 0); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Accueil : texte centré, grande photo à cheval sur le bleu */
.hero--home { --media-h: min(calc((100vw - 48px) * .44), 528px); --overlap: calc(var(--media-h) * .42); padding-top: 172px; text-align: center; }
.hero--home .hero__lead { margin-inline: auto; }
.hero--home .hero__actions { justify-content: center; }
.hero--home .hero__media { height: var(--media-h); margin-top: 76px; }

/* Pages intérieures : texte à gauche, photo à droite qui déborde sur le blanc */
.hero--split { --overlap: 120px; padding-top: 148px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero--split .hero__text { padding-bottom: calc(var(--overlap) + 72px); }
.hero--split .hero__title { margin-top: 22px; font-size: clamp(40px, 5.2vw, 72px); }
.hero--split .hero__media { aspect-ratio: 4 / 4.6; }
.hero--map { --overlap: 0px; padding-bottom: 96px; }
.hero--map .hero__text { padding-bottom: 24px; }
.hero__map { --map-dot: #fff; width: 100%; max-width: 520px; margin-left: auto; }
.hero__map--reseau { max-width: 580px; }
@media (min-width: 961px) {
  .hero--map .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}

/* Contact : centré, sans photo */
.hero--contact { padding: 168px 0 120px; text-align: center; }
.hero--contact .hero__lead { margin-inline: auto; }
.hero--contact .hero__actions { justify-content: center; }
.hero--simple { padding-bottom: 96px; }
.hero--simple .hero__title { font-size: clamp(40px, 5vw, 64px); }
.hero__phone { display: inline-block; margin-top: 36px; font-size: clamp(40px, 6vw, 80px); font-weight: 700; line-height: 1; letter-spacing: -.035em; }

/* Accueil : le slogan et la description, fixes à gauche ; en fond, le film des pauses (vraies séquences),
   sous un voile bleu plein côté texte qui s'efface vers la droite. Sur téléphone, le texte passe en bas. */
.hero--film { display: flex; align-items: center; min-height: max(640px, min(100svh, 980px)); padding: 132px 0 104px; }
.hero--film .hero__bg { transform: none; border-radius: 0; }
.hero--film .hero__grid { display: block; }
.hero--film .hero__text { max-width: 640px; }
.hero--film .hero__title { font-size: clamp(46px, 5.4vw, 82px); text-shadow: 0 2px 40px rgba(10, 30, 90, .25); }
.hero--film .hero__lead { max-width: 540px; color: rgba(255, 255, 255, .92); }
/* Sous les boutons : la note Google (les étoiles se remplissent à l'apparition) et les clients */
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 44px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.rating { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.rating strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.rating__note { font-weight: 600; font-variant-numeric: tabular-nums; }
.stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3L14.59 9.24L21.99 9.56L16.19 14.16L18.17 21.3L12 17.2L5.83 21.3L7.81 14.16L2.01 9.56L9.41 9.24Z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  position: relative; flex: none; width: 100px; height: 18px; overflow: hidden; background: rgba(255, 255, 255, .28);
  -webkit-mask: var(--star) 0 0 / 20px 18px repeat-x; mask: var(--star) 0 0 / 20px 18px repeat-x;
}
.stars::before { content: ""; position: absolute; inset: 0; background: #fbbc04; transform: scaleX(calc(var(--note) / 5)); transform-origin: 0 50%; transition: transform 1.6s var(--ease-out) calc(var(--d, 0s) + .35s); }
.hero__clients { display: inline-flex; align-items: center; gap: 22px; }
.hero__clients::before { content: ""; width: 1px; height: 18px; background: rgba(255, 255, 255, .3); }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__proof:not(.is-in) .stars::before { transform: scaleX(0); }
}
.film { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: url(/assets/video/pauses.webp?v=3) 50% 50% / cover no-repeat; }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 84, 226, .92) 0%, rgba(43, 102, 250, .78) 30%, rgba(43, 102, 250, .24) 58%, rgba(43, 102, 250, 0) 78%),
    linear-gradient(180deg, rgba(14, 38, 110, .42) 0%, rgba(14, 38, 110, 0) 24%);
}
@media (orientation: portrait) {
  .film { background-image: url(/assets/video/pauses-mobile.webp?v=3); }
}
@media (max-width: 760px) {
  .hero--film { align-items: flex-end; min-height: max(600px, 100svh); padding: 120px 0 108px; } /* au-dessus de la barre d’appel */
  .hero--film .hero__title { font-size: clamp(40px, 11vw, 52px); }
  .hero--film .hero__lead { margin-top: 18px; font-size: 17px; }
  .hero--film .hero__actions { margin-top: 26px; }
  .hero__proof { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 24px; font-size: 14px; }
  .hero__clients::before { display: none; }
  .film::after {
    background:
      linear-gradient(0deg, rgba(31, 84, 226, .95) 0%, rgba(43, 102, 250, .8) 36%, rgba(43, 102, 250, .14) 64%, rgba(43, 102, 250, 0) 76%),
      linear-gradient(180deg, rgba(14, 38, 110, .45) 0%, rgba(14, 38, 110, 0) 20%);
  }
}

/* ---------- 5. Sections ---------- */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.section--tight { padding-top: 0; }
.section--close { padding-top: clamp(36px, 4vw, 56px); } /* juste sous un haut de page : moins d'espace au-dessus */
.label { font-size: 15px; font-weight: 600; color: var(--blue); }
.h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; color: var(--ink); }
.label + .h2 { margin-top: 16px; }
.lead { max-width: 520px; margin-top: 22px; font-size: 19px; line-height: 1.6; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.sec-head .lead { max-width: 440px; margin-top: 0; }

/* Texte qui s'éclaire à la lecture */
.statement { max-width: 1040px; margin-top: 26px; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.22; letter-spacing: -.028em; font-weight: 600; color: var(--ink); }

/* Trois piliers soulignés */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.pillar { position: relative; padding-top: 30px; }
.pillar::before, .pillar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line); }
.pillar::after { right: auto; width: 64px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out) calc(var(--d, 0s) + .25s); }
.pillar.is-in::after { transform: none; }
.pillar h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; color: var(--ink); }
.pillar p { max-width: 340px; margin-top: 10px; font-size: 17px; }

/* Boissons chaudes : les points forts en chiffres. 26 et 24 comptent, la tasse se remplit puis fume. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.stat { display: flex; flex-direction: column; align-items: center; padding: 40px 28px 36px; border-radius: 28px; text-align: center; background: var(--blue-50); }
.stat__figure { display: flex; align-items: center; justify-content: center; height: clamp(76px, 8vw, 104px); font-size: clamp(64px, 7vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.045em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat__title { margin-top: 18px; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.stat__text { max-width: 290px; margin-top: 8px; font-size: 16px; line-height: 1.55; }
.cup { width: auto; height: 100%; overflow: visible; }
.cup__body, .cup__handle, .cup__saucer { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.cup__inside { fill: #fff; }
.cup__coffee { fill: #6f4226; }
.cup__crema { fill: #c48a54; }
.cup__steam path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  html.js .stats:not(.is-playing) .cup__fill { transform: translateY(48px); }
  html.js .stats .cup__steam path { opacity: 0; }
  .stats.is-playing .cup__fill { animation: cup-fill 2.2s cubic-bezier(.35, .1, .3, 1) .25s both; }
  .stats.is-playing .cup__steam path { animation: cup-steam 2.6s ease-out 2.4s infinite; }
  .stats.is-playing .cup__steam path:nth-child(2) { animation-delay: 3.1s; }
  .stats.is-playing .cup__steam path:nth-child(3) { animation-delay: 3.8s; }
}
@keyframes cup-fill { from { transform: translateY(48px); } to { transform: none; } }
@keyframes cup-steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: .55; } 100% { opacity: 0; transform: translateY(-10px); } }
/* Snacks : les produits glissent sur l'étagère l'un après l'autre, puis, en boucle, un produit part et un autre
   prend sa place ; le thermomètre descend du chaud au froid et le givre apparaît. */
.shelf, .thermo { width: auto; height: 100%; overflow: visible; }
.shelf__line { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; }
.shelf__item, .shelf__alt { transform-box: fill-box; transform-origin: 50% 100%; }
.shelf__alt { opacity: 0; }
.thermo__glass { fill: #fff; stroke: var(--blue); stroke-width: 5; stroke-linejoin: round; }
.thermo__level, .thermo__bulb { fill: var(--blue); }
.thermo__level { transform-origin: 50px 76px; transform: scaleY(.35); }
.thermo__ticks { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; opacity: .4; }
.thermo__frost path { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; opacity: .7; transform-box: fill-box; transform-origin: center; }
/* Machine à café : les grains tombent dans le réservoir puis frémissent (la mouture) ; le latte se forme : le
   lait et la mousse montent, le café se glisse entre les deux, puis la mousse déborde un peu du verre. */
.beans, .latte { width: auto; height: 100%; overflow: visible; }
.beans__hopper { fill: #fff; }
.beans__rim { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linejoin: round; }
.beans__bean ellipse { fill: #7a4a2c; }
.beans__bean path { fill: none; stroke: #3e2415; stroke-width: 1.6; stroke-linecap: round; }
.latte__glass { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linejoin: round; }
.latte__milk { fill: #efe3cf; }
.latte__foam, .latte__dome { fill: #fffdf8; }
.latte__coffee { fill: #a36a3e; transform-box: fill-box; transform-origin: 50% 0; }
.latte__dome { transform-box: fill-box; transform-origin: 50% 100%; }
/* Pourquoi ? : les barres du télétravail (2019, 2021, 2023) montent l'une après l'autre, puis leur valeur apparaît */
.bars { width: auto; height: 100%; overflow: visible; }
.bars__bar { fill: var(--blue); transform-box: fill-box; transform-origin: 50% 100%; }
.bars__bar--before { fill: var(--blue-200); }
.bars__base { fill: none; stroke: var(--blue-200); stroke-width: 2.5; stroke-linecap: round; }
.bars__value { font-size: 15px; font-weight: 700; letter-spacing: 0; fill: var(--blue); text-anchor: middle; }
.bars__year { font-size: 12.5px; font-weight: 600; letter-spacing: 0; fill: var(--muted); text-anchor: middle; }
/* Sources des chiffres, en petit sous la section */
.sources { max-width: 820px; margin-top: 28px; font-size: 13px; line-height: 1.55; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  html.js .stats:not(.is-playing) .shelf__item { opacity: 0; }
  /* réassort : les trois places changent l'une après l'autre (1,6 s d'écart), puis à nouveau une demi-période
     (7,2 s) plus tard ; le remplaçant suit la même boucle, décalé d'une demi-période */
  .stats.is-playing .shelf__item { animation: shelf-in .8s var(--ease-out) calc(.3s + var(--i) * .25s) both, shelf-swap 14.4s ease-in-out calc(2.6s + var(--i) * 1.6s) infinite; }
  .stats.is-playing .shelf__alt { animation: shelf-swap 14.4s ease-in-out calc(var(--i) * 1.6s - 4.6s) infinite; }
  html.js .stats:not(.is-playing) .thermo__level { transform: none; fill: #f76707; }
  html.js .stats:not(.is-playing) .thermo__bulb { fill: #f76707; }
  html.js .stats .thermo__frost path { opacity: 0; }
  .stats.is-playing .thermo__level { animation: thermo-cool 1.8s cubic-bezier(.45, 0, .2, 1) .6s both; }
  .stats.is-playing .thermo__bulb { animation: thermo-tint 1.8s cubic-bezier(.45, 0, .2, 1) .6s both; }
  .stats.is-playing .thermo__frost path { animation: frost-in .7s var(--ease-out) 2.2s both, frost-glint 3.2s ease-in-out 3s infinite; }
  .stats.is-playing .thermo__frost path:nth-child(2) { animation-delay: 2.45s, 4.6s; }
  .stats.is-playing .thermo__frost path:nth-child(3) { animation-delay: 2.7s, 3.8s; }
  html.js .stats:not(.is-playing) .beans__bean { opacity: 0; }
  .stats.is-playing .beans__bean { animation: bean-fall .75s cubic-bezier(.45, 0, .6, 1) calc(.3s + var(--i) * .2s) both; }
  .stats.is-playing .beans__pile { animation: bean-grind 3.2s ease-in-out 2.6s infinite; }
  html.js .stats:not(.is-playing) .latte__fill { transform: translateY(72px); }
  html.js .stats:not(.is-playing) .latte__coffee, html.js .stats:not(.is-playing) .latte__dome { opacity: 0; }
  .stats.is-playing .latte__fill { animation: latte-pour 1.4s cubic-bezier(.35, .1, .3, 1) .3s both; }
  .stats.is-playing .latte__coffee { animation: latte-shot 1s ease-out 1.6s both; }
  .stats.is-playing .latte__dome { animation: latte-dome .5s var(--ease-out) 2.4s both; }
  html.js .stats:not(.is-playing) .bars__bar { transform: scaleY(0); }
  html.js .stats:not(.is-playing) .bars__value { opacity: 0; }
  .stats.is-playing .bars__bar { animation: bar-grow .9s var(--ease-out) calc(.3s + var(--i) * .3s) both; }
  .stats.is-playing .bars__value { animation: bar-value .45s ease-out calc(1s + var(--i) * .3s) both; }
}
@keyframes shelf-in { 0% { opacity: 0; transform: translateX(48px); } 65% { opacity: 1; transform: translateX(-4px); } 100% { opacity: 1; transform: none; } }
@keyframes shelf-swap {
  0% { opacity: 1; transform: none; }
  6% { opacity: 0; transform: translateY(-18px); }
  7%, 54% { opacity: 0; transform: scale(.5); }
  58% { opacity: 1; transform: scale(1.06); }
  62%, 100% { opacity: 1; transform: none; }
}
@keyframes thermo-cool { from { transform: none; fill: #f76707; } to { transform: scaleY(.35); fill: var(--blue); } }
@keyframes thermo-tint { from { fill: #f76707; } to { fill: var(--blue); } }
@keyframes frost-in { from { opacity: 0; transform: rotate(-60deg) scale(.4); } to { opacity: .7; transform: none; } }
@keyframes frost-glint { 0%, 100% { opacity: .7; } 50% { opacity: .25; } }
@keyframes bean-fall { 0% { opacity: 0; transform: translateY(-70px); } 20% { opacity: 1; } 75% { transform: none; } 88% { transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }
@keyframes bean-grind { 0%, 82%, 100% { transform: none; } 86% { transform: translateX(-1.2px); } 90% { transform: translateX(1.2px); } 94% { transform: translateX(-.6px); } }
@keyframes latte-pour { from { transform: translateY(72px); } to { transform: none; } }
@keyframes latte-shot { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes latte-dome { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes bar-value { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .stats { grid-template-columns: 1fr; } }

/* Étapes reliées par une ligne qui se remplit au défilement */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 88px); }
.steps::before, .steps::after { content: ""; position: absolute; top: 27px; left: 28px; right: calc((100% - 64px) / 3 - 28px); height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { position: relative; --on: clamp(0, (var(--p, 0) - var(--t, 0)) * 20 + 1, 1); }
.step__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-size: 18px; font-weight: 700; }
.step__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); transform: scale(var(--on)); }
.step__dot span { position: relative; color: color-mix(in srgb, #fff calc(var(--on) * 100%), var(--muted)); }
.step h3 { margin-top: 28px; font-size: 23px; line-height: 1.25; letter-spacing: -.018em; font-weight: 700; color: var(--ink); }
.step p { max-width: 340px; margin-top: 10px; font-size: 17px; }

/* Cartes empilées (solutions) */
.stack { display: grid; gap: 28px; margin-top: 64px; }
.panel { position: sticky; top: calc(112px + var(--i) * 18px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); min-height: 540px; padding: clamp(24px, 3vw, 40px); border-radius: 34px; background: var(--blue-50); transform-origin: 50% 0; transform: scale(calc(1 - var(--s, 0) * .05)); box-shadow: 0 -18px 40px -30px rgba(11, 22, 51, .3); }
.panel:nth-child(2) { background: var(--blue-100); }
.panel:nth-child(3) { color: rgba(255, 255, 255, .86); background: var(--blue); }
.panel__body { display: flex; flex-direction: column; justify-content: center; padding: 16px 0 16px clamp(0px, 2vw, 20px); }
.panel__num { font-size: 15px; font-weight: 600; color: var(--blue); }
.panel h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; color: var(--ink); }
.panel p { max-width: 440px; margin-top: 18px; font-size: 18px; }
.panel .btn { align-self: flex-start; }
.panel:nth-child(3) .panel__num { color: rgba(255, 255, 255, .7); }
.panel:nth-child(3) h3, .panel:nth-child(3) .ticks li { color: #fff; }
.panel:nth-child(3) .ticks .icon { color: var(--blue); background: #fff; }
.panel:nth-child(3) .btn--primary { color: var(--blue); background: #fff; }
.panel__media { min-height: 420px; overflow: hidden; border-radius: 24px; background: rgba(255, 255, 255, .5); }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.ticks { display: grid; gap: 12px; margin: 28px 0 36px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.ticks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: var(--blue); stroke-width: 2.6; }

/* Bloc carte de France */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.zone__visual { padding: clamp(24px, 4vw, 56px); border-radius: 34px; background: var(--blue-50); }
.zone__map { max-width: 520px; margin: 0 auto; }
.zone .btn { margin-top: 36px; }

/* Bandeau contact bleu */
.cta { position: relative; padding: clamp(110px, 13vw, 170px) 0; text-align: center; color: #fff; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -1; border-radius: calc((1 - var(--p, 1)) * 64px); background: radial-gradient(55% 70% at 50% 100%, #4f87ff 0%, rgba(79, 135, 255, 0) 70%), var(--blue); transform: scale(calc(.93 + var(--p, 1) * .07)); }
.cta__title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.cta__text { max-width: 560px; margin: 26px auto 0; font-size: 19px; color: rgba(255, 255, 255, .86); }
.cta__phone { display: inline-block; margin-top: 40px; font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -.03em; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta__hint { margin-top: 26px; font-size: 15px; color: rgba(255, 255, 255, .72); }

/* ---------- 6. Composants des pages ---------- */
/* Solutions : prise en charge complète */
.care { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(32px, 5vw, 72px); border-radius: 36px; background: var(--blue-50); }
.care .h2 { font-size: clamp(32px, 3.4vw, 46px); }
.care__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.care__item { padding: 26px 26px 28px; border-radius: 24px; background: #fff; }
.care__item .icon { width: 26px; height: 26px; color: var(--blue); }
.care__item h3 { margin-top: 18px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.care__item p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; }

/* Zone : plusieurs sites */
.sites { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sites figure { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 30px; }
.sites img { width: 100%; height: 100%; object-fit: cover; }
.sites .btn { margin-top: 36px; }

/* Boissons chaudes : le modèle installé. La photo de la machine est fondue dans la scène (multiply) ;
   par-dessus, en vectoriel : l'écran, le voyant, le reflet et le gobelet animé. */
.model { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.model__stage { display: grid; justify-items: center; padding: clamp(36px, 5vw, 56px) 24px 28px; border-radius: 32px; background: radial-gradient(55% 50% at 50% 40%, #fff 0%, rgba(255, 255, 255, 0) 72%), var(--blue-50); }
.opera { --liquid: #8a5a36; --foam: #f3e6d4; position: relative; height: clamp(420px, 46vw, 560px); aspect-ratio: 190 / 466; }
.opera__photo { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.opera > svg, .opera > span { position: absolute; pointer-events: none; }
.opera__screen { left: 61.05%; top: 11.588%; width: 14.21%; height: 7.511%; border-radius: 2px; background: linear-gradient(rgba(140, 200, 255, .2), rgba(140, 200, 255, .06)); mix-blend-mode: screen; }
.opera__led { left: 63.158%; top: 22.532%; width: 10.526%; height: 1.717%; border-radius: 2px; background: rgba(120, 190, 255, .6); box-shadow: 0 0 8px 2px rgba(80, 160, 255, .7); opacity: .6; mix-blend-mode: screen; }
.opera__cup { left: 15.789%; top: 47.425%; width: 32.105%; height: 11.373%; overflow: visible; }
.opera__glass { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .85); stroke-width: .9; stroke-linejoin: round; }
.opera__liquid { fill: var(--liquid); }
.opera__foam { fill: var(--foam); }
.opera__stream { stroke: var(--liquid); stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
.opera__steam path { fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; opacity: .55; }
.opera__shine { left: 7.368%; top: 1.931%; width: 50%; height: 92.918%; overflow: hidden; border-radius: 4px; }
.opera__shine::before, .tcn__shine::before { content: ""; position: absolute; top: -10%; bottom: -10%; width: 45%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); transform: translateX(-130%) skewX(-12deg); mix-blend-mode: screen; }
/* Snacks & boissons : même principe. Par-dessus la vitrine, le produit choisi (data-item) s'illumine dans sa case
   (--x, --y), avance puis tombe (--t : durée de chute, --r : rotation) ; le volet du bac s'éclaire à l'arrivée. */
.tcn { --x: 38px; --y: 38.5px; --r: 24deg; --t: .62s; position: relative; height: clamp(420px, 46vw, 560px); aspect-ratio: 420 / 690; }
.tcn__photo { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.tcn > svg, .tcn > span { position: absolute; pointer-events: none; }
.tcn__lights { inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.tcn__screen { fill: rgba(160, 210, 255, .55); filter: url(#tcn-glow); opacity: 0; }
.tcn__flap { fill: url(#tcn-flap-light); stroke: rgba(170, 210, 255, .85); stroke-width: 1.2; stroke-linejoin: round; filter: url(#tcn-glow); opacity: 0; }
.tcn__drop { left: 12.381%; top: 7.536%; width: 49.048%; height: 57.246%; overflow: hidden; }
.tcn__at { transform: translate(var(--x), var(--y)); }
.tcn__halo, .tcn__pop { opacity: 0; }
.tcn__pop > g { display: none; }
.tcn[data-item="chips"] .tcn__chips, .tcn[data-item="bar"] .tcn__bar, .tcn[data-item="biscuits"] .tcn__biscuits,
.tcn[data-item="juice"] .tcn__juice, .tcn[data-item="water"] .tcn__water, .tcn[data-item="soda"] .tcn__soda { display: inline; }
.tcn__shine { left: 12.381%; top: 7.536%; width: 49.048%; height: 57.246%; overflow: hidden; }
/* Machines à café : trois photos sur une même toile (800 x 960), une seule visible à la fois (data-item). Grande
   capacité et compacte : les verres de la photo se remplissent, car une version « verres vides » de leur zone
   s'efface du bas vers le haut ; écran tactile : on touche le cappuccino à l'écran, puis un verre se remplit. */
.coffee { position: relative; width: min(100%, clamp(350px, 38.33vw, 467px)); aspect-ratio: 800 / 960; } /* même hauteur que les autres machines, sans dépasser sur téléphone */
.coffee::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1.5%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 22, 51, .22), rgba(11, 22, 51, 0)); }
.coffee__machine { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.coffee[data-item="grande"] .coffee__machine--grande, .coffee[data-item="tactile"] .coffee__machine--tactile,
.coffee[data-item="compacte"] .coffee__machine--compacte { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.coffee__photo, .coffee__machine > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.coffee__pour { position: absolute; opacity: 0; pointer-events: none; }
.coffee__pour svg { display: block; width: 100%; height: 100%; overflow: visible; }
.coffee__pour--grande { left: 43.125%; top: 50.208%; width: 31.75%; height: 25.104%; }
.coffee__pour--compacte { left: 45.75%; top: 57.292%; width: 32.625%; height: 18.333%; }
.coffee__stream { fill: none; stroke: #4a2a17; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.coffee__pour--grande .coffee__stream { stroke: #f1e8d8; stroke-width: 3.5; }
.coffee__cup .coffee__stream { stroke: #8a5a36; }
.coffee__steam path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.coffee__tap { fill: rgba(255, 255, 255, .25); stroke: #fff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.coffee__outline { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; stroke-linejoin: round; }
.coffee__base { fill: rgba(255, 255, 255, .28); }
.coffee__shine { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2.4; stroke-linecap: round; }
.coffee__liquid { fill: #8a5a36; }
.coffee__foam { fill: #f3e6d4; }
.machine__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; box-shadow: 0 10px 24px -14px rgba(11, 22, 51, .35); }
.machine__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.model__title { margin-top: 34px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.model__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; }
.model__head .model__title { margin-top: 0; white-space: nowrap; }
.model__more { display: inline-flex; flex: none; align-items: center; gap: 4px; white-space: nowrap; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--blue); background: var(--blue-50); transition: background-color .2s; }
.model__more:hover { background: var(--blue-100); }
.model__more .icon { width: 16px; height: 16px; stroke-width: 2; transition: transform .35s var(--ease-out); }
.model__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
html:not(.js) .model__more { display: none; }
/* Liste complète des boissons : se déplie en douceur (rangée de grille de 0 à 1fr) */
.drink-menu { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-out); }
html.js .drink-menu:not(.is-open) { grid-template-rows: 0fr; }
.drink-menu > div { overflow: hidden; }
.drink-menu__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; margin-top: 16px; padding: 22px 24px; border-radius: 22px; background: var(--blue-50); }
.drink-menu__group--cafes { grid-column: 1 / -1; }
.drink-menu h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.drink-menu h4 span { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--blue); background: #fff; }
.drink-menu ul { display: grid; gap: 7px; margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--text); }
.drink-menu__group--cafes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.drink-menu li { display: flex; align-items: baseline; gap: 8px; }
.drink-menu li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .45; transform: translateY(-2px); }
@media (max-width: 560px) {
  .drink-menu__inner { grid-template-columns: 1fr 1fr; padding: 20px; }
  .drink-menu__group--cafes ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .drink-menu__group--cafes ul { grid-template-columns: 1fr; } } /* noms longs (« Décaféiné cappuccino ») sur une ligne */
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.choices li { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 12px; border-radius: 999px; font-size: 15.5px; font-weight: 600; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s, box-shadow .35s, color .35s; }
.choices li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.choices li.is-active { color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue); }
/* Liste « à choisir » (data-pick) : le script fait de chaque produit un bouton qui couvre toute la pastille */
.choices.is-pickable li { position: relative; cursor: pointer; }
.choices.is-pickable li:not(.is-active):hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-200); }
.choices__pick::after { content: ""; position: absolute; inset: 0; border-radius: 999px; }
.choices__pick:focus-visible { outline: 0; }
.choices__pick:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 3px; }
.choices__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
/* Choix de la machine à café : trois cartes (photo, nom, pour qui) ; la carte de la machine montrée est en bleu */
.machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.machines li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 8px 12px; border-radius: 20px; text-align: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s, box-shadow .35s; }
.machines li.is-active { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue); }
.machines.is-pickable li { cursor: pointer; }
.machines.is-pickable li:not(.is-active):hover { box-shadow: inset 0 0 0 1px var(--blue-200); }
.machines .choices__pick { display: flex; flex-direction: column; align-items: center; width: 100%; }
.machines .choices__pick::after { border-radius: 20px; }
.machines img { width: auto; height: 74px; margin-bottom: 10px; }
.machines__name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.machines li.is-active .machines__name { color: var(--blue); }
.machines__for { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
/* Détail de la machine montrée : les trois fiches occupent la même place (pas de saut de mise en page), seule
   celle qui correspond à data-item de la machine est visible */
.coffee-info { display: grid; margin-top: 24px; }
.coffee-info > div { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.model:has(.coffee[data-item="grande"]) [data-panel="grande"], .model:has(.coffee[data-item="tactile"]) [data-panel="tactile"],
.model:has(.coffee[data-item="compacte"]) [data-panel="compacte"] { opacity: 1; visibility: visible; transition: opacity .45s .1s, visibility 0s; }
@supports not selector(:has(*)) { [data-panel="grande"] { opacity: 1; visibility: visible; } }
.coffee-info__text { font-size: 16.5px; line-height: 1.6; }
.coffee-info .model__title { margin-top: 22px; }
.spaces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.spaces li { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text); background: var(--blue-50); }
@media (prefers-reduced-motion: no-preference) {
  .opera.is-serving .opera__drink { animation: op-arrive .45s var(--ease-out) both, op-leave .4s ease-in 4.55s both; }
  .opera.is-serving .opera__fill { animation: op-fill 2.1s cubic-bezier(.35, .1, .3, 1) .6s both; }
  .opera.is-serving .opera__stream { animation: op-stream 2.3s linear .5s both; }
  .opera.is-serving .opera__steam path { animation: op-steam 1.9s ease-out 2.7s both; }
  .opera.is-serving .opera__steam path + path { animation-delay: 3.2s; }
  .tcn.is-serving .tcn__screen { animation: tcn-screen 1.3s ease-out both; }
  .tcn.is-serving .tcn__halo { animation: tcn-halo 1.1s ease-out .25s both; }
  .tcn.is-serving .tcn__pop { animation: tcn-pop .7s var(--ease-out) .5s both; }
  .tcn.is-serving .tcn__fall { animation: tcn-fall var(--t) cubic-bezier(.55, .085, .68, .53) 1.25s both; }
  .tcn.is-serving .tcn__flap { animation: tcn-flap 2.2s ease-out calc(1.25s + var(--t)) both; }
  .coffee[data-item="grande"].is-serving .coffee__pour--grande { animation: coffee-pour 3.9s linear both; }
  .coffee[data-item="grande"].is-serving .coffee__pour--grande .coffee__stream { animation: coffee-stream-latte 3.9s linear both; }
  .coffee[data-item="grande"].is-serving .coffee__machine--grande .coffee__steam path { animation: coffee-steam 2.4s ease-out 3.7s both; }
  .coffee[data-item="grande"].is-serving .coffee__machine--grande .coffee__steam path + path { animation-delay: 4.1s; }
  .coffee[data-item="compacte"].is-serving .coffee__pour--compacte { animation: coffee-pour 3.3s linear both; }
  .coffee[data-item="compacte"].is-serving .coffee__pour--compacte .coffee__stream { animation: coffee-stream 3.3s linear both; }
  .coffee[data-item="compacte"].is-serving .coffee__machine--compacte .coffee__steam path { animation: coffee-steam 2.4s ease-out 3.1s both; }
  .coffee[data-item="compacte"].is-serving .coffee__machine--compacte .coffee__steam path + path { animation-delay: 3.5s; }
  .coffee[data-item="tactile"].is-serving .coffee__tap { animation: coffee-tap .9s ease-out .15s both; }
  .coffee[data-item="tactile"].is-serving .coffee__glass { animation: op-arrive .5s var(--ease-out) .55s both; }
  .coffee[data-item="tactile"].is-serving .coffee__fill { animation: coffee-rise 2.6s cubic-bezier(.35, .1, .3, 1) 1s both; }
  .coffee[data-item="tactile"].is-serving .coffee__cup .coffee__stream { animation: op-stream 2.8s linear .9s both; }
  .coffee[data-item="tactile"].is-serving .coffee__cup .coffee__steam path { animation: coffee-steam 2.4s ease-out 3.6s both; }
  .coffee[data-item="tactile"].is-serving .coffee__cup .coffee__steam path + path { animation-delay: 4s; }
  .opera__shine::before, .tcn__shine::before { animation: op-shine 7s ease-in-out 1.2s infinite; }
  .opera__led { animation: op-led 2.6s ease-in-out infinite; }
  .machine__dot { animation: op-dot 1.6s ease-in-out infinite; }
}
@keyframes op-arrive { from { transform: translateY(-9px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes op-leave { to { opacity: 0; } }
@keyframes op-fill { from { transform: translateY(19px); } to { transform: none; } }
@keyframes op-stream { 0% { opacity: 0; } 8%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes op-steam { 0% { transform: translateY(3px); opacity: 0; } 35% { opacity: .75; } 100% { transform: translateY(-5px); opacity: 0; } }
@keyframes op-shine { 0%, 55% { transform: translateX(-130%) skewX(-12deg); } 85%, 100% { transform: translateX(260%) skewX(-12deg); } }
@keyframes op-led { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes op-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 102, 250, .45); } 50% { box-shadow: 0 0 0 6px rgba(43, 102, 250, 0); } }
@keyframes tcn-screen { 0% { opacity: 0; } 15%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tcn-halo { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: .9; transform: none; } 100% { opacity: 0; transform: scale(1.2); } }
@keyframes tcn-pop {
  0% { opacity: 0; transform: translateY(0) rotate(0) scale(.94); }
  25% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
  55% { transform: translateY(-1.5px) rotate(0) scale(1.1); }
  75% { transform: translateY(0) rotate(-2deg) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) rotate(1deg) scale(1.1); }
}
@keyframes tcn-fall { to { transform: translateY(calc(430px - var(--y))) rotate(var(--r)); } }
@keyframes tcn-flap { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: .85; } 100% { opacity: 0; } }
/* les verres vides apparaissent, puis s'effacent du bas vers le haut : le verre de la photo se remplit */
@keyframes coffee-pour { 0% { opacity: 0; clip-path: inset(0 0 0 0); } 6%, 16% { opacity: 1; clip-path: inset(0 0 0 0); } 92%, 100% { opacity: 1; clip-path: inset(0 0 100% 0); } }
@keyframes coffee-stream { 0%, 14% { opacity: 0; } 18%, 84% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes coffee-stream-latte { 0%, 14% { opacity: 0; stroke: #f1e8d8; } 18% { opacity: 1; } 52% { stroke: #f1e8d8; } 56%, 84% { opacity: 1; stroke: #a8703f; } 90%, 100% { opacity: 0; stroke: #a8703f; } }
@keyframes coffee-tap { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes coffee-rise { from { transform: translateY(80px); } to { transform: none; } }
@keyframes coffee-steam { 0% { opacity: 0; transform: translateY(8px); } 35% { opacity: .6; } 100% { opacity: 0; transform: translateY(-18px); } }
@media (max-width: 960px) { .model { grid-template-columns: 1fr; } }

/* Contact : les trois façons de nous joindre */
.ways { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.way { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 30px; background: var(--blue-50); }
.way--main { color: rgba(255, 255, 255, .86); background: var(--blue); }
.way__badge { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--blue); background: #fff; }
.way .icon { width: 30px; height: 30px; color: var(--blue); }
.way--main .icon { color: #fff; }
.way h2 { margin-top: 22px; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; color: var(--ink); }
.way--main h2 { color: #fff; }
.way p { margin-top: 10px; font-size: 16.5px; }
.way__value { margin-top: 18px; font-size: 20px; font-weight: 600; color: var(--ink); }
.way .btn { margin-top: 28px; align-self: flex-start; }
.qr { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .12); }
.qr img { width: 104px; height: 104px; padding: 8px; border-radius: 12px; background: #fff; }
.qr p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.tips { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; margin-top: 20px; padding: clamp(32px, 4vw, 56px); border-radius: 30px; box-shadow: inset 0 0 0 1px var(--line); }
.tips h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; color: var(--ink); }
.tips ul { display: grid; gap: 14px; }
.tips li { display: flex; align-items: flex-start; gap: 12px; font-size: 17.5px; color: var(--ink); }
.tips li .icon { margin-top: 3px; color: var(--blue); stroke-width: 2.2; }

/* Pages de texte (mentions légales) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
.prose p { margin-top: 14px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.todo { padding: 1px 6px; border-radius: 6px; background: #fff3b0; color: #6b5300; }

/* ---------- 7. Pied de page ---------- */
.footer { padding: 72px 0 40px; background: var(--blue-50); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .logo { color: var(--blue); --logo-h: 30px; }
.footer__tagline { max-width: 260px; margin-top: 18px; font-size: 16px; color: var(--text); }
.footer__title { margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
.footer__col a { display: block; padding: 5px 0; font-size: 15.5px; color: var(--text); transition: color .2s; }
.footer__col a:hover, .footer__col a[aria-current] { color: var(--blue); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--blue-100); font-size: 14px; color: var(--muted); }
.footer__bottom a:hover { color: var(--blue); }

/* Barre d'appel fixe sur mobile */
.callbar { display: none; }

/* ---------- 8. Animations ---------- */
.map { width: 100%; height: auto; overflow: visible; }
.map path { fill: none; stroke: var(--map-dot, var(--blue)); stroke-width: 5.4; stroke-linecap: round; transition: opacity .7s ease; transition-delay: calc(var(--r) * 80ms); }
.map .t0 { opacity: .26; }
.map .t1 { opacity: .58; }
.hero__map .map .t0 { opacity: .22; }
.hero__map .map .t1 { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  html.js .map:not(.is-in) path { opacity: 0; } /* apparition depuis le centre ; sinon (sans JavaScript, moins d'animations), carte affichée d'emblée */
}

/* Carte de la zone d'intervention : Spyrall est à Paris. La carte s'allume depuis Paris, des routes partent vers les
   grandes villes, tracées par une traînée lumineuse, et chaque ville s'allume à l'arrivée. Ensuite, une traînée
   repart de temps en temps de Paris vers une ville, qui pulse quand elle arrive. */
.hero__map--reseau .map .t1 { opacity: .4; }
.hero__map--reseau .map .t2 { opacity: .78; }
.map--reseau .map__routes path { stroke: #fff; stroke-width: 1.5; stroke-opacity: .55; stroke-dasharray: 1; }
.map--reseau .map__streaks path { stroke: #fff; stroke-width: 3.2; stroke-dasharray: .07 1.2; stroke-dashoffset: .07; }
.map__core { fill: #fff; stroke: var(--blue); stroke-width: 2.2; }
.map__hub { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.map__core, .map__hub, .map__ping, .map__ring { transform-box: fill-box; transform-origin: center; }
.map__ping, .map__ring { fill: none; stroke: #fff; stroke-width: 1.4; opacity: 0; }
.map__label { font-size: 15px; font-weight: 600; fill: #fff; paint-order: stroke; stroke: var(--blue); stroke-width: 5px; stroke-linejoin: round; }
.map__label--paris { font-size: 17px; font-weight: 700; }
@media (max-width: 760px) { .map__label { font-size: 20px; } .map__label--paris { font-size: 22px; } } /* carte plus petite : noms agrandis */
@media (prefers-reduced-motion: no-preference) {
  html.js .map--reseau .map__routes path { stroke-dashoffset: 1; transition: stroke-dashoffset var(--dd) var(--ease-out) var(--d); }
  html.js .map--reseau .map__core, html.js .map--reseau .map__hub { transform: scale(0); transition: transform .6s var(--ease-out) var(--a, .3s); }
  html.js .map--reseau .map__label { opacity: 0; transition: opacity .5s ease var(--a, .5s); }
  html.js .map--reseau.is-in .map__routes path { stroke-dashoffset: 0; }
  html.js .map--reseau.is-in .map__core, html.js .map--reseau.is-in .map__hub { transform: none; }
  html.js .map--reseau.is-in .map__label { opacity: 1; }
  .map--reseau.is-in .map__streaks path { animation: map-streak var(--dd) var(--ease-out) var(--d) both, map-pulse var(--t) linear var(--l) infinite; }
  .map--reseau.is-in .map__ping { animation: map-arrive 1s var(--ease-out) var(--a), map-arrive-loop var(--t) linear var(--l) infinite; }
  .map--reseau.is-in .map__ring { animation: map-hub 3.2s var(--ease-out) .4s infinite; }
  .map--reseau.is-in .map__ring--2 { animation-delay: 2s; }
}
.map--reseau.is-paused, .map--reseau.is-paused * { animation-play-state: paused !important; }
@keyframes map-streak { from { stroke-dashoffset: .07; } to { stroke-dashoffset: -1; } }
@keyframes map-pulse { 0% { stroke-dashoffset: .07; } 30%, 100% { stroke-dashoffset: -1; } }
@keyframes map-arrive { from { transform: scale(.6); opacity: .9; } to { transform: scale(3); opacity: 0; } }
@keyframes map-arrive-loop { 0%, 27% { transform: scale(.6); opacity: 0; } 28% { opacity: .9; } 50%, 100% { transform: scale(3); opacity: 0; } }
@keyframes map-hub { 0% { transform: scale(.9); opacity: .7; } 70%, 100% { transform: scale(3.6); opacity: 0; } }

html.js [data-reveal] { opacity: 0; transform: translate3d(0, var(--reveal-y, 26px), 0); transition: opacity var(--reveal-dur, .9s) var(--ease-out), transform var(--reveal-dur, 1.1s) var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
.lines .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lines .line > span { display: inline-block; }
html.js .lines .line > span { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 110ms); }
html.js .lines.is-in .line > span { transform: none; }
.words .w { opacity: calc(.14 + .86 * clamp(0, var(--p, 1) * (var(--n, 1) + 6) - var(--i, 0), 1)); }

/* ?capture : état final sans transition, pour les captures de contrôle */
html.capture *, html.capture *::before, html.capture *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js .lines .line > span { opacity: 1; transform: none; transition: none; }
  .map path { transition: none; }
  .words .w { opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- 9. Mobile ---------- */
@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
  .header__inner { height: 70px; }
  .header .logo { --logo-h: 28px; }
  .hero--home { --media-h: min(calc((100vw - 48px) * .72), 420px); padding-top: 128px; }
  .hero--split { --overlap: 90px; padding-top: 112px; }
  .hero--map { --overlap: 0px; } /* pas de photo à cheval sur le blanc : le bleu va jusqu'en bas */
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero--split .hero__text { padding-bottom: 0; }
  .hero--split .hero__media { aspect-ratio: 4 / 3; }
  .hero--map .hero__text { padding-bottom: 0; }
  .hero__map { max-width: 420px; margin: 0 auto; }
  .hero--contact { padding: 124px 0 88px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .pillars, .zone, .care, .sites, .ways, .tips { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 80px; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .step__dot { position: absolute; left: -80px; top: -12px; }
  .step h3 { margin-top: 0; }
  .panel { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; transform: none; }
  .panel__media { min-height: 260px; order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px -12px rgba(11, 22, 51, .35), 0 0 0 1px rgba(11, 22, 51, .06); }
  .callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600; }
  .callbar a:first-child { color: #fff; background: var(--blue); }
  .callbar a:last-child { color: var(--blue); background: var(--blue-50); }
  .qr { display: none; }
  body { padding-bottom: 84px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 36px, 1200px); }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .care__list { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
