/* Fichier css/services2.css · chargé par : index */
/* =========================================================
   Services v4 : cartes au repos (logo + nom), carte qui s'étire à l'horizontale
   avec une scène de motion design, petite carte d'info qui sort à côté.
   Les tailles et positions sont pilotées par services.js.
   ========================================================= */
.scard { --w0: clamp(230px, 20vw, 320px); --h0: min(56vh, 460px); width: var(--w0); height: var(--h0); margin: calc(var(--h0) / -2) 0 0 calc(var(--w0) / -2); top: 50%; left: 50%; transform-style: flat; }
.scard > div { position: absolute; inset: 0; border-radius: var(--r-card); overflow: hidden; }

/* ---------- Au repos : le logo et le nom, centrés ---------- */
.scard__front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 26px; text-align: center;
  background: radial-gradient(80% 60% at 50% 38%, rgb(var(--acc-rgb) / .12), transparent 70%), linear-gradient(165deg, color-mix(in srgb, var(--space) 70%, var(--surface)), color-mix(in srgb, var(--surface) 40%, var(--bg)));
  border: 1px solid rgb(var(--text-rgb) / .12); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .7), inset 0 1px 0 rgb(var(--text-rgb) / .07);
  opacity: calc(1 - var(--e, 0) * 1.6); transition: none; }
.scard__front .scard__sym { width: 42%; border: 0; background: none; }
.scard__front .scard__sym::before { width: 62%; height: 78%; background: var(--action); filter: drop-shadow(0 0 22px rgb(var(--acc-rgb) / .45)); }
.scard__front .scard__t { font-size: clamp(1.15rem, .8rem + 1vw, 1.7rem); max-width: 12ch; }
html:not([data-da]) .scard[data-tone="light"] .scard__front { background: radial-gradient(80% 60% at 50% 35%, rgb(255 255 255 / .85), transparent 70%), linear-gradient(165deg, var(--bg), color-mix(in srgb, rgb(var(--space-rgb)) 60%, var(--surface))); border-color: rgb(var(--text-rgb) / .14); }

/* ---------- Activée : la scène ---------- */
.scard__stage { container-type: size; opacity: clamp(0, (var(--e, 0) - .55) * 3, 1); pointer-events: none;
  background: radial-gradient(70% 90% at 80% 0%, rgb(var(--space-glow) / .35), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgb(var(--acc-rgb) / .08), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--space) 80%, var(--surface)), color-mix(in srgb, var(--bg) 85%, #000));
  border: 1px solid rgb(var(--acc-rgb) / .28); box-shadow: 0 60px 120px -50px rgb(0 0 0 / .85), 0 0 80px -30px rgb(var(--acc-rgb) / .3); }
html:not([data-da]) .scard[data-tone="light"] .scard__stage { background: radial-gradient(70% 90% at 80% 0%, rgb(255 255 255 / .9), transparent 60%), linear-gradient(160deg, var(--bg), color-mix(in srgb, rgb(var(--space-rgb)) 70%, var(--surface))); border-color: rgb(var(--text-rgb) / .16); box-shadow: 0 60px 120px -50px rgb(0 0 0 / .6); }
.scard.is-open .scard__stage { pointer-events: auto; }
/* apparition générique des éléments numérotés */

/* 1. Chatbots : une vraie conversation, le prospect est qualifié, le créneau réservé, le CRM mis à jour */
.c-win { left: 4%; top: 7%; bottom: 7%; width: 54%; border-radius: 1.4em; background: rgb(var(--bg-rgb) / .55); border: 1px solid var(--line2); padding: 1.1em; display: flex; flex-direction: column; gap: .8em; overflow: hidden; }
.c-head { display: flex; align-items: center; gap: .6em; padding-bottom: .8em; border-bottom: 1px solid var(--line2); }
.c-head i { width: .7em; height: .7em; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); }
.c-head .mono { margin-left: auto; }
.c-msg { max-width: 78%; padding: .7em 1em; border-radius: 1.1em; line-height: 1.3; }
.c-in { align-self: flex-start; background: var(--soft); border-bottom-left-radius: .3em; }
.c-out { align-self: flex-end; background: rgb(var(--acc-rgb) / .18); border: 1px solid rgb(var(--acc-rgb) / .45); border-bottom-right-radius: .3em; }
.c-typing { display: flex; gap: .35em; padding: .9em 1em; }
.c-typing i { width: .45em; height: .45em; border-radius: 50%; background: var(--ink); animation: mxDot 1s infinite; }
.c-typing i:nth-child(2) { animation-delay: .15s; } .c-typing i:nth-child(3) { animation-delay: .3s; }
.mx2 .c-typing.on ~ .c-out.on, .c-typing.gone { display: none; }
.c-side { left: 62%; right: 4%; top: 7%; bottom: 7%; display: flex; flex-direction: column; gap: .8em; }
.c-side > * { position: relative; border-radius: 1.1em; background: rgb(var(--bg-rgb) / .45); border: 1px solid var(--line2); padding: .9em 1em; }
.c-chan { display: flex; flex-wrap: wrap; gap: .4em; background: none !important; border: 0 !important; padding: 0 !important; }
.c-chan span { padding: .35em .8em; border-radius: 99px; border: 1px solid rgb(var(--acc-rgb) / .45); font-size: .85em; animation: mxGlow 3s infinite; }
.c-chan span:nth-child(2) { animation-delay: 1s; } .c-chan span:nth-child(3) { animation-delay: 2s; }
.c-lead b { display: block; font-size: 1.6em; color: var(--hot); margin: .1em 0 .4em; }
.c-lead ul { list-style: none; display: grid; gap: .45em; }
.c-lead li { display: grid; grid-template-columns: 5em 1fr; align-items: center; font-size: .85em; }
.c-lead u { height: .45em; border-radius: 99px; background: var(--soft); position: relative; overflow: hidden; }
.c-lead u::after { content: ""; position: absolute; inset: 0; background: var(--hot); transform-origin: left; transform: scaleX(0); transition: transform 1.2s .3s var(--ease); }
.c-lead.on u::after { transform: scaleX(var(--v)); }
.c-cal div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35em; margin-top: .5em; }
.c-cal i { height: 1.9em; border-radius: .5em; background: var(--soft); font-style: normal; display: grid; place-items: center; font-size: .8em; color: transparent; transition: background .5s .6s, color .5s .6s; }
.c-cal.on .is-pick { background: var(--hot); color: var(--on-action); }
.c-crm { color: var(--hot); font-weight: 600; }

/* 2. Automatisations : un déclencheur, un agent IA, quatre outils servis en parallèle */
/* 3. SaaS : l'application se construit, l'IA y est intégrée, la version mobile suit */
.s-main { position: relative; flex: 1; padding: 1em 1.2em; display: flex; flex-direction: column; gap: .8em; }
.s-top { display: flex; align-items: center; gap: .6em; } .s-top b { font-size: 1.15em; margin-right: auto; }
/* 4. Sites web : la page s'assemble, le visiteur clique, Google et les IA la trouvent */
.w-hero { left: 5%; top: 7em; width: 52%; display: grid; gap: .7em; }
.w-hero u { height: 1.5em; border-radius: .4em; background: var(--ink); opacity: .9; } .w-hero u + u { width: 70%; }
.w-cur { left: 70%; top: 85%; width: 1.3em; height: 1.3em; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); rotate: -15deg; }
.w-cur.on { animation: wCur 3.4s var(--ease) infinite; }
@keyframes wCur { 0% { left: 70%; top: 85%; } 45% { left: 16%; top: 42%; } 55% { scale: .7; } 62% { scale: 1; } 100% { left: 16%; top: 42%; } }
.w-ai { right: 4%; top: 44%; width: 32%; padding: .9em 1em; border-radius: 1em; background: rgb(var(--acc-rgb) / .16); border: 1px solid rgb(var(--acc-rgb) / .45); display: grid; gap: .3em; }
/* 5. Vidéo : tournage et IA sur la même timeline, un même film dans tous les formats */
@keyframes vMorph { 0%, 30% { width: 58%; height: 58%; } 38%, 62% { width: 19%; height: 66%; } 70%, 94% { width: 36%; height: 64%; } 100% { width: 58%; height: 58%; } }
@keyframes vSwap { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes vFmt { 0%, 30% { background: var(--hot); color: var(--on-action); border-color: transparent; } 34%, 100% { background: none; color: inherit; } }
@keyframes vHead { to { left: calc(100% - .7em); } }

/* 6. Branding : la grille de construction, le symbole, la palette, la typo, puis la marque appliquée */
.b-grid { left: 3%; top: 6%; width: 40%; height: 70%; }
.b-grid * { fill: none; stroke: rgb(var(--text-rgb) / .28); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease); }
.b-grid.on * { stroke-dashoffset: 0; }
.b-sym { left: 23%; top: 41%; width: 15%; aspect-ratio: 4 / 5; translate: -50% -50%; background: var(--hot); -webkit-mask: url(../ui/symbole.svg) center / contain no-repeat; mask: url(../ui/symbole.svg) center / contain no-repeat; filter: drop-shadow(0 0 20px rgb(var(--acc-rgb) / .5)); }
.b-word { left: 3%; bottom: 8%; width: 40%; text-align: center; font-size: 3em; font-weight: 300; letter-spacing: .4em; }
.b-sw { left: 46%; top: 8%; display: flex; gap: .5em; }
.b-sw i { width: 2.4em; height: 2.4em; border-radius: 50%; border: 1px solid var(--line2); }
.b-sw i:nth-child(1) { background: var(--hot); } .b-sw i:nth-child(2) { background: var(--copper); } .b-sw i:nth-child(3) { background: var(--space); } .b-sw i:nth-child(4) { background: rgb(var(--space-glow)); } .b-sw i:nth-child(5) { background: var(--text); }
.b-type { left: 46%; top: 26%; display: flex; align-items: baseline; gap: .8em; } .b-type b { font-size: 3.4em; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.b-mock { border-radius: .9em; border: 1px solid var(--line2); background: rgb(var(--bg-rgb) / .6); display: grid; place-items: center; overflow: hidden; }
.b-mock span { width: 40%; aspect-ratio: 4 / 5; background: var(--hot); -webkit-mask: url(../ui/symbole.svg) center / contain no-repeat; mask: url(../ui/symbole.svg) center / contain no-repeat; }
/* 7. 3D : un objet en volume qui tourne, le sol, l'orbite 360°, le balayage de lumière */
@keyframes dFloor { to { background-position: 0 3em; } }
@keyframes dSpin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes dSweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes mxGlow { 0%, 70%, 100% { box-shadow: none; } 20% { box-shadow: 0 0 16px rgb(var(--acc-rgb) / .6); background: rgb(var(--acc-rgb) / .14); } }

/* ---------- Petite carte d'info ---------- */
.svc__info { position: absolute; left: 0; top: 0; z-index: 320; width: min(360px, 30vw); padding: 22px 24px 24px; border-radius: 20px; opacity: 0; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(90% 80% at 100% 0%, rgb(var(--acc-rgb) / .14), transparent 60%), color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid rgb(var(--acc-rgb) / .3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8); }
.svc__info.is-on { pointer-events: auto; }
.svc__info-pole { color: var(--action) !important; }
.svc__info-t { font-size: clamp(1.25rem, .9rem + .9vw, 1.8rem); font-weight: 650; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; margin: 8px 0 10px; }
.svc__info-p { color: var(--muted-space); font-size: .95rem; line-height: 1.4; margin-bottom: 16px; }


/* longueurs des sections : toutes regroupées dans responsive.css */

/* =========================================================
   Services v5 : écran à droite, cartes fermées rangées à gauche,
   carte texte en bas à gauche, bouton flottant en bas à droite
   ========================================================= */
/* toutes les cartes sont cliquables (activer directement un service) */
.scard, .scard.is-far { pointer-events: auto; cursor: pointer; }
.scard.is-open { cursor: default; }
html.has-cursor .scard { cursor: none; }
/* carte fermée : le numéro du service en très grand, très discret */
.scard__front { container-type: size; }
.scard__num { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none;
  font-size: 62cqw; font-weight: 800; letter-spacing: -.07em; line-height: 1; color: rgb(var(--text-rgb) / .07); font-variant-numeric: tabular-nums; }
.scard__front .scard__sym, .scard__front .scard__t { position: relative; z-index: 1; }
/* carte texte : flou d'arrière-plan maîtrisé, sans bordure de couleur, texte limité à 3 lignes */
.svc__info { width: min(600px, 44vw); padding: 22px 28px 24px; border: 1px solid rgb(var(--text-rgb) / .08);
  background: linear-gradient(160deg, rgb(var(--surface-rgb) / .62), rgb(var(--bg-rgb) / .48));
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .06); }
.svc__info-t { margin: 0 0 10px; }
.svc__info-p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* bouton qui flotte seul */
.svc__go { position: absolute; left: 0; top: 0; z-index: 320; opacity: 0; pointer-events: none; height: 52px; padding: 0 26px; will-change: transform, opacity; box-shadow: 0 20px 40px -16px rgb(var(--acc-rgb) / .55); }
.svc__go.is-on { pointer-events: auto; }
.svc__skip:hover { color: var(--action) !important; }
.svc__skip span { display: inline-block; transition: transform .3s var(--ease); }
.svc__skip:hover span { transform: translateX(4px); }
.svc__now { display: none; }

/* Revenir ← points → Passer : une seule ligne centrée */
.svc__dots { left: 50%; translate: -50% 0; }
.svc__skip, .svc__back { position: absolute; bottom: calc(clamp(26px, 4vh, 44px) - 9.5px); z-index: 300; padding: 6px 4px; color: rgb(var(--text-rgb) / .6) !important; letter-spacing: .12em; transition: color .3s; line-height: 1; }
.svc__skip { left: 50%; right: auto; margin-left: 70px; translate: none; }
.svc__back { right: 50%; left: auto; margin-right: 70px; translate: none; }
.svc__back:hover { color: var(--action) !important; }
.svc__back span { display: inline-block; transition: transform .3s var(--ease); }
.svc__back:hover span { transform: translateX(-4px); }

/* performance : le flou de la carte texte est recalculé pendant qu'elle flotte, on l'allège */
.svc__info { backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }

/* mode par étapes : la section tient sur un écran, elle se fixe et les gestes font avancer les services */
.svc__dots i { cursor: pointer; }
.svc__dots i { position: relative; }
.svc__dots i::before { content: ""; position: absolute; inset: -9px -4px; }   /* zone de clic plus grande que le point */

/* tailles et positions par format d'écran (téléphone, tablette, paysage) : voir responsive.css */
