/* ==========================================================
   Juliette Evans — Illusionniste digitale & mentaliste
   Bleu marine / noir, violet réservé à Heka. Futura gras (titres) + Albert Sans (texte).
   Surfaces séparées par des tons de fond, pas par des lignes,
   ombres ou flous.
   ========================================================== */

/* Polices hébergées avec le site (trouvées sur dafont, licences dans assets/fonts) :
   Creato Display (SIL OFL) pour l'interface et les descriptifs : aucune police à serif */
@font-face { font-family: "Creato Display"; src: url("../fonts/creato-display/CreatoDisplay-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("../fonts/creato-display/CreatoDisplay-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("../fonts/creato-display/CreatoDisplay-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
/* ESSAI : Akira Expanded (démo dafont, gratuite pour usage PERSONNEL uniquement, sans accents).
   Licence commerciale à acheter avant la mise en ligne : https://creativemarket.com/typologic/4868098-Akira-Expanded */
@font-face { font-family: "Akira Expanded"; src: url("../fonts/akira/AkiraExpanded-Demo.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* Fonds bleu marine / noir : du plus profond au plus clair */
  --bg: #03060e;
  --bg-2: #070d1c;
  --bg-3: #0c1529;
  --bg-4: #142039;
  --bg-5: #1b2a4a;
  --field: #0d1d42; /* champ bleu marine profond */
  /* Texte */
  --ink: #f1f4fb;
  --muted: #a6b1c8;
  /* Accent bleu (boutons, liens) */
  --accent: #3a6df0;
  --accent-hover: #5a86ff;
  --accent-soft: #a9c0ff;
  --ring: rgba(77, 124, 255, 0.35);
  /* Violet : réservé à Heka */
  --violet: #9d5cff;
  --violet-hover: #b07bff;
  --violet-soft: #c8a6ff;
  /* Typo : Futura (Jost en secours si Futura n'est pas installée) */
  --font-title: "Akira Expanded", "Creato Display", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Creato Display", "Helvetica Neue", Arial, sans-serif;
  /* textes descriptifs : même sans serif que l'interface, en Medium (plus lisible en clair sur fond sombre) */
  --font-read: var(--font-text);
  /* boutons : Helvetica (police système, Arial en secours) */
  --font-button: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.5rem, 0.8rem + 2.4vw, 3.1rem);
  /* Espaces */
  --margin: clamp(1rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 10rem);
  --max: 1240px;
  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tout ce qui touche à Heka reste violet */
#heka, .heka-panel, .heka-launcher {
  --accent: #7b3fe4; --accent-hover: #8b52f0; --accent-soft: var(--violet-soft);
  --ring: rgba(157, 92, 255, 0.3);
  --field: #2a1650; --bg-2: #0f0919; --bg-3: #171025; --bg-4: #221833; --bg-5: #2f2345;
}
#heka { background: linear-gradient(180deg, rgba(8, 5, 15, 0) 0%, rgba(8, 5, 15, 0.6) 22%, rgba(8, 5, 15, 0.6) 78%, rgba(8, 5, 15, 0) 100%); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--bg-5) var(--bg); accent-color: var(--accent); caret-color: var(--accent-soft); }
::placeholder { color: var(--muted); opacity: 1; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; font-kerning: normal;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--font-button); transform: translateY(-160%); transition: transform 0.2s; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-title); font-weight: 700;
  text-transform: uppercase; line-height: 0.98; letter-spacing: 0.01em;
  margin: 0; text-wrap: balance;
}
h2 { font-size: var(--step-head); margin-left: -0.03em; }
h3 { font-size: clamp(1.3rem, 0.9rem + 1.4vw, 2rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
/* descriptifs : Creato Display Medium (boutons et menu en Helvetica) */
main p, .act-facts dd, .faq-list details p { font-family: var(--font-read); font-weight: 500; font-size: 1.05em; line-height: 1.6; letter-spacing: 0.012em; text-wrap: pretty; }
.act-kind { font-family: var(--font-text) !important; font-size: 0.95rem !important; }

/* ---------- Fond animé : réseau de neurones ---------- */
#neurons { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Boutons : plats, une couleur, ronds ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0.8rem 1.8rem; border-radius: 10px; border: 0;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn, .act-link, .act-more, .read-more, .chip, .brands-toggle { font-family: var(--font-button); }
.btn svg { width: 18px; height: 18px; flex: none; }
/* angles de cadre, comme sur les blocs : haut gauche et bas droit, qui s'allongent au survol */
.btn { position: relative; }
/* boutons « fantômes » : seuls le texte et les angles se voient, sur un voile très léger */
.btn { --btn-edge: rgba(220, 228, 255, 0.85); }
.btn::before, .btn::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 0 solid var(--btn-edge); transition: width 0.4s var(--ease), height 0.4s var(--ease); }
.btn::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 10px; }
.btn::after { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 10px; }
.btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after { width: 34%; height: 70%; }
.btn:active { transform: scale(0.97); }
/* action principale : teintée de bleu pour rester repérable */
.btn-primary { --btn-edge: var(--accent-soft); background: rgba(58, 109, 240, 0.14); color: var(--accent-soft); }
.btn-primary:hover { background: rgba(58, 109, 240, 0.26); color: #fff; }
/* actions secondaires : blanc */
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- En-tête : barre simple ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s var(--ease); }
.bar.scrolled { background: rgba(3, 6, 14, 0.55); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.bar-logo { transition: opacity 0.3s var(--ease); }
.bar-logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none;
  font-family: var(--font-button); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; color: #c3cbe0; transition: color 0.2s; }
.nav a:not(.btn):hover, .nav a:not(.btn):focus-visible { color: #fff; }
.nav .btn { margin-left: 12px; min-height: 44px; padding: 0 20px; font-size: 15px; }
.burger { display: none; background: var(--bg-4); border: 0; width: 48px; height: 48px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--margin) 1.5rem; background: rgba(3, 6, 14, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 0.9rem 0; font-family: var(--font-text); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; line-height: 1; opacity: 1; }
  .nav .btn { margin: 1rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; padding: 80px 0 clamp(1.5rem, 4vh, 3rem);
}
/* Juliette vue de plus loin : la photo est plus petite, centrée sur elle, bien au-dessus du titre ;
   ses bords se fondent dans le noir */
.hero-photo { --w: min(1360px, 94vw); position: absolute; z-index: -1; top: 56px; left: calc(50% - var(--w) * 0.46); width: var(--w); aspect-ratio: 16 / 9; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  filter: saturate(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(0deg, transparent 0, #000 45%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(0deg, transparent 0, #000 45%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.hero-in { display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem; }
.hero-band { text-align: center; }
.hero-band h1 { font-size: clamp(1.3rem, 2.65vw, 2.6rem); line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.hero-band .nw { white-space: nowrap; }
/* sous-titre bleu : zone d'intervention */
.hero-sub { margin: 0.7rem 0 0; font-family: var(--font-text); font-weight: 500; font-size: clamp(1.05rem, 1.55vw, 1.45rem); letter-spacing: 0.02em; color: var(--accent-soft); }
.hero-foot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(1.25rem, 2vw, 1.75rem); margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.hero-foot p { margin: 0; max-width: 56ch; font-size: 1.125rem; line-height: 1.45; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero-ctas .btn { min-height: 64px; padding: 1rem 2.4rem; font-size: 1.125rem; }
/* bouton Heka : la sphère violette dans le bouton */
#heka .btn-primary { --btn-edge: var(--violet-soft); background: rgba(123, 63, 228, 0.16); color: var(--violet-soft); }
#heka .btn-primary:hover { background: rgba(123, 63, 228, 0.3); color: #fff; }
.btn-heka { --btn-edge: var(--violet-soft); background: rgba(123, 63, 228, 0.14); color: #fff; }
.hero-ctas .btn-heka { padding-left: 0.7rem; }
.btn-heka img { width: 46px; height: 46px; margin: -6px 0; animation: breathe 4s ease-in-out infinite; }
.btn-heka:hover { background: rgba(123, 63, 228, 0.28); }
@media (max-width: 700px) {
  .hero { padding-top: 72px; }
  .hero-photo { --w: 150vw; top: 56px; left: calc(50% - var(--w) * 0.46); width: var(--w); aspect-ratio: 16 / 9; }
  .hero-photo img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(0deg, transparent 0, #000 35%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(0deg, transparent 0, #000 35%, #000 92%, transparent 100%); }
    .hero-band h1 { font-size: 6.4vw; white-space: normal; line-height: 1.15; }
  .hero-sub { font-size: 1rem; line-height: 1.35; }
  .hero-foot { align-items: stretch; gap: 1.25rem; }
  .hero-foot p { font-size: 1rem; }
  .hero-ctas { justify-content: center; gap: 0.75rem; }
  .hero-ctas .btn { min-height: 46px; padding: 0.6rem 1.15rem; font-size: 0.95rem; }
  .btn-heka img { width: 34px; height: 34px; }
  .hero-ctas .btn-heka { padding-left: 0.5rem; }
}

/* ---------- Sections communes ---------- */
section { position: relative; }
.sec { padding: var(--section) 0; }
.sec-head { max-width: 900px; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.sec-head p { margin-top: 1.25rem; max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; }
.sec-alt { background: linear-gradient(180deg, rgba(7, 13, 28, 0) 0%, rgba(7, 13, 28, 0.6) 18%, rgba(7, 13, 28, 0.6) 82%, rgba(7, 13, 28, 0) 100%); }

/* ---------- Marques : mur de logos, sans cases ---------- */
.clients { padding: clamp(4rem, 8vw, 7rem) 0; }
.clients h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.clients .brands-toggle { display: flex; width: fit-content; margin-inline: auto; }
.brands { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); row-gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.brands li { display: flex; align-items: center; justify-content: center; height: 64px; }
.brands img { max-height: 52px; max-width: 100%; width: auto; height: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.25s, transform 0.25s var(--ease); }
.brands li:hover img { opacity: 1; transform: scale(1.06); }
.brands li.more { display: none; }
.brands.expanded li.more { display: flex; animation: rise 0.5s var(--ease) both; }
.brands-toggle { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.brands-toggle svg { transition: transform 0.3s var(--ease); }
.brands-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 1000px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .brands { grid-template-columns: repeat(3, 1fr); } .brands li { height: 48px; } .brands img { max-height: 36px; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Chiffres clés ---------- */
.stats { padding: clamp(3rem, 6vw, 5rem) 0 0; }
/* colonnes à la taille des chiffres, espacées pareil, groupe centré sur la page */
.stats-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 32px clamp(4rem, 9vw, 9rem); margin: 0 auto; text-align: center; }
.stat { margin: 0; }
.stat dt { font-family: var(--font-title); font-weight: 700; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.stat dd { margin: 12px 0 0; font-family: var(--font-text); font-size: 1rem; font-weight: 500; color: var(--accent-soft); }
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr; gap: 28px; } .stat dt { font-size: 2.2rem; } }

/* ---------- Prestations : deux cartes (côte à côte, défilantes sur mobile) ---------- */
.presta { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.presta .sec-head { margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.presta .sec-head p { margin-inline: auto; }
@media (max-width: 700px) { .presta .sec-head p { font-size: 1.05rem; } }
/* une seule bande : les deux cartes se touchent, seuls les coins extérieurs sont arrondis */
.cards { display: grid; grid-template-columns: 1fr; gap: 3px;
  /* pas de coins arrondis : seuls les quatre coins de la bande se fondent dans le noir */
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent 0, #000 64px), radial-gradient(circle at 100% 0, transparent 0, #000 64px), radial-gradient(circle at 0 100%, transparent 0, #000 64px), radial-gradient(circle at 100% 100%, transparent 0, #000 64px);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle at 0 0, transparent 0, #000 64px), radial-gradient(circle at 100% 0, transparent 0, #000 64px), radial-gradient(circle at 0 100%, transparent 0, #000 64px), radial-gradient(circle at 100% 100%, transparent 0, #000 64px);
  mask-composite: intersect; }
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: 0; min-height: 540px;
  display: flex; align-items: flex-end; background: var(--bg-2); }
.card-media { position: absolute; inset: 0; z-index: -2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.88); }
/* voile sombre en bas de la photo, sous le texte */
.card::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(3, 6, 14, 0.95) 0%, rgba(3, 6, 14, 0.6) 26%, rgba(3, 6, 14, 0) 48%); }
.card h3 { font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 0.95; margin-bottom: 12px; }
/* panneau de texte : halo d'ombre + deux angles de cadre arrondis */
.act-side { position: relative; width: 100%; max-width: 480px; margin: 24px; padding: 24px 24px 12px;
  background: radial-gradient(ellipse 85% 75% at 50% 55%, rgba(3, 6, 14, 0.7) 0%, rgba(3, 6, 14, 0.4) 55%, rgba(3, 6, 14, 0) 85%); }
.act-side p, .act-side dt, .act-side dd { text-shadow: 0 1px 12px rgba(3, 6, 14, 0.9); }
/* détails ouverts : halo plus dense pour que le texte reste lisible sur la photo */
.act-side { transition: background 0.35s var(--ease); }
.act-side.open { background: radial-gradient(ellipse 95% 85% at 50% 55%, rgba(3, 6, 14, 0.9) 0%, rgba(3, 6, 14, 0.75) 60%, rgba(3, 6, 14, 0.2) 100%); }
.act-side::before, .act-side::after { content: ""; position: absolute; width: 36px; height: 36px; pointer-events: none;
  border: 0 solid rgba(200, 212, 255, 0.75); transition: width 0.5s var(--ease), height 0.5s var(--ease); }
.act-side::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 14px; }
.act-side::after { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 14px; }
.card:hover .act-side::before, .card:hover .act-side::after, .card:focus-within .act-side::before, .card:focus-within .act-side::after { width: 56px; height: 56px; }
.act-kind { color: var(--accent-soft); font-size: 0.95rem; margin-bottom: 8px; }
.act-side > p:not(.act-kind) { margin-bottom: 0; font-size: 1rem; line-height: 1.5; max-width: 46ch; }
.act-facts { margin: 16px 0 20px; display: grid; gap: 8px; font-size: 0.95rem; }
.act-facts div { margin: 0; }
.act-facts dt { color: var(--muted); font-size: 0.82rem; }
.act-facts dd { margin: 0; }
/* suite du texte (Close-up) : même style que la description */
.act-more-text p { margin: 0; font-size: 1rem; line-height: 1.5; max-width: 46ch; }
/* boutons des cartes : même style que « Discuter avec Heka » (voile teinté + angles de cadre) */
.act-side .btn { min-height: 44px; padding: 0 16px; font-size: 0.92rem; gap: 8px; margin-top: 8px; }
.act-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.act-link:hover svg { transform: translateX(4px); }
/* les détails s'ouvrent à la demande, pour laisser voir la photo */
.act-facts { display: none; }
.act-side.open .act-facts { display: grid; animation: rise 0.35s var(--ease) both; }
/* les deux boutons sur une même ligne */
.act-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.act-actions .btn { margin-top: 0; }
/* vidéo : bouton avec pastille « lecture » ; détails : simple lien texte, plus discret */
.act-video { padding-left: 6px !important; gap: 10px !important; }
.act-video .play { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #0b1020; display: grid; place-items: center; flex: none; transition: transform 0.25s var(--ease); }
.act-video .play svg { width: 13px; height: 13px; margin-left: 2px; }
.act-video:hover .play { transform: scale(1.08); }
.act-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-button); font-size: 0.9rem; font-weight: 500; color: var(--accent-soft); transition: color 0.2s; }
.act-more:hover { color: #fff; }
a.act-more { text-decoration: none; }
a.act-more:hover svg { transform: translateX(4px); }
.act-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.act-side.open .act-more svg { transform: rotate(180deg); }
/* un seul grand bouton de devis, sous les deux cartes */
.presta-cta { display: flex; justify-content: center; margin-top: 32px; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 1.05rem; gap: 10px; }
.presta-cta .btn { min-width: min(520px, 100%); }
#connexion { justify-content: flex-end; }

.act-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.act-side.open .act-more svg { transform: rotate(180deg); }
.cards-dots { display: none; }

/* Ordinateur : la photo occupe le côté opposé au texte et se fond dans le noir vers lui */
@media (min-width: 861px) {
  .card { align-items: center; background: #03060e; }
  .card::before { display: none; }
  .card-media { left: 36%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); }
  #connexion .card-media { left: 0; right: 36%; -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); }
  .card-media img { filter: none; }
  .act-side { margin: 40px 56px; max-width: 520px; background: none; }
  .act-side.open { background: none; }
  /* même agencement dans les deux blocs : devis + vidéo sur une ligne, détails en dessous */
  .act-actions .act-more { flex-basis: 100%; justify-content: flex-start; }
  #connexion .act-side { transform: translateY(32px); }
}
@media (max-width: 860px) { .act-quote { display: none !important; } }
/* grand bouton devis sous les blocs : mobile seulement (sur ordinateur, chaque bloc a le sien) */
@media (min-width: 861px) { .presta-cta { display: none; } }
@media (max-width: 860px) { .presta-cta .btn { min-width: 0; padding: 0 28px; } }

@media (max-width: 860px) {
  /* carrousel : on fait glisser d'une carte à l'autre */
  .cards { -webkit-mask-image: radial-gradient(circle at 0 0, transparent 0, #000 44px), radial-gradient(circle at 100% 0, transparent 0, #000 44px), radial-gradient(circle at 0 100%, transparent 0, #000 44px), radial-gradient(circle at 100% 100%, transparent 0, #000 44px); mask-image: radial-gradient(circle at 0 0, transparent 0, #000 44px), radial-gradient(circle at 100% 0, transparent 0, #000 44px), radial-gradient(circle at 0 100%, transparent 0, #000 44px), radial-gradient(circle at 100% 100%, transparent 0, #000 44px);
    display: flex; gap: 3px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--margin)); padding: 0 var(--margin) 4px; scroll-padding-inline: var(--margin); scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 86%; scroll-snap-align: start; min-height: 520px; }
  .act-side { max-width: none; }
  #connexion { justify-content: flex-start; }
  /* Connexion (mobile) : la photo occupe le haut de la carte pour laisser voir la scène */
  #connexion .card-media { bottom: auto; height: 66%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .card h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .act-side { margin: 12px; padding: 20px 16px 8px; }
  .act-side::before, .act-side::after { width: 28px; height: 28px; }
  .act-kind { font-size: 0.85rem; margin-bottom: 6px; }
  .act-side > p:not(.act-kind) { font-size: 0.95rem; line-height: 1.45; }
  .act-link { font-size: 0.95rem; }
  /* points de navigation sous le carrousel */
  .cards-dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
  .dot { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg-5); transition: background 0.25s, transform 0.25s var(--ease); }
  .dot[aria-current="true"]::before { background: var(--accent-soft); transform: scale(1.25); }
}

/* ---------- Heka ---------- */
#heka { padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 7rem); }
.heka-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 1080px; }
.heka-text h2 { font-size: clamp(2rem, 1rem + 2.8vw, 3.6rem); }
.heka-orb { aspect-ratio: 1; max-width: 420px; width: 100%; margin-inline: auto; }
.heka-orb img { width: 100%; height: auto; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.15); } }
.heka-text h2 { margin-bottom: 1.5rem; }
.heka-text > p { font-size: var(--step-lead); line-height: 1.35; }
.heka-points { padding: 0 0 0 1.2em; margin: 1.5rem 0 2rem; display: grid; gap: 0.5rem; }
.heka-points li::marker { color: var(--accent); }
@media (max-width: 860px) { .heka-grid { grid-template-columns: 1fr; } .heka-orb { max-width: 260px; } }

/* ---------- À propos : la photo fait le bloc, ancrée à droite, fondue vers le texte ---------- */
.about { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: var(--section) 0; }
.about-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 72%; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect; }
.about-photo img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 62% 40%; transform-origin: 50% 15%; will-change: transform; }
.about-text { max-width: 540px; }
.about-text h2 { margin-bottom: 1.75rem; }
.about-text p strong { font-weight: 600; color: var(--accent-soft); }
.about-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.read-more { display: none; }
@media (max-width: 860px) {
  .about { align-items: flex-end; padding-top: 0; }
  /* fondu progressif en haut et en bas (plusieurs paliers = pas d'effet d'escalier) */
  .about-photo { width: 100%; bottom: auto; height: 70svh;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 4%, rgba(0, 0, 0, 0.8) 10%, #000 16%, #000 40%, rgba(0, 0, 0, 0.82) 52%, rgba(0, 0, 0, 0.5) 66%, rgba(0, 0, 0, 0.2) 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 4%, rgba(0, 0, 0, 0.8) 10%, #000 16%, #000 40%, rgba(0, 0, 0, 0.82) 52%, rgba(0, 0, 0, 0.5) 66%, rgba(0, 0, 0, 0.2) 82%, transparent 100%); }
  .about-photo img { top: -8%; height: 116%; object-position: 63% 30%; transform-origin: 50% 15%; }
  .about-text { padding-top: 52svh; }
  .about-links { justify-content: center; gap: 8px; flex-wrap: nowrap; }
  .about-links .btn { padding: 0 14px; font-size: 0.9rem; }
  /* mobile : le texte s'ouvre avec « Lire la suite » */
  .about-more { display: none; }
  .about-text.open .about-more { display: block; animation: rise 0.35s var(--ease) both; }
  .read-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; margin-top: 4px;
    background: none; border: 0; color: var(--accent-soft); font-size: 0.95rem; font-weight: 500; cursor: pointer; }
  .read-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
  .about-text.open .read-more svg { transform: rotate(180deg); }
  /* le texte qui chevauche la photo garde une ombre douce pour rester lisible */
  .about-text h2, .about-text p { text-shadow: 0 2px 18px rgba(3, 6, 14, 0.95), 0 0 4px rgba(3, 6, 14, 0.6); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { position: relative; padding: clamp(1.75rem, 4vw, 2.75rem);
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(13, 29, 66, 0.55) 0%, rgba(3, 6, 14, 0.35) 60%, rgba(3, 6, 14, 0) 100%); }
/* grand Heka au-dessus du formulaire */
.heka-quote { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.heka-quote-orb { width: clamp(170px, 17vw, 230px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform 0.3s var(--ease); }
.heka-quote-orb img { width: 100%; height: 100%; animation: breathe 6s ease-in-out infinite; }
.heka-quote-orb:hover { transform: scale(1.05); }
.heka-quote-orb:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 6px; }
main .heka-quote p { margin: 0; font-family: var(--font-text); font-weight: 500; font-size: 1.1rem; color: var(--violet-soft); }
/* formulaire aux couleurs de Heka */
.form--heka { --accent: #7b3fe4; --accent-hover: #8b52f0; --accent-soft: var(--violet-soft); --ring: rgba(157, 92, 255, 0.3);
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(42, 22, 80, 0.5) 0%, rgba(8, 5, 15, 0.35) 60%, rgba(8, 5, 15, 0) 100%); }
.form--heka::before, .form--heka::after { border-color: var(--violet-soft) !important; }
.form--heka .field input, .form--heka .field select, .form--heka .field textarea { border-color: rgba(200, 166, 255, 0.2); }
.form--heka .btn-primary { --btn-edge: var(--violet-soft); background: rgba(123, 63, 228, 0.18); color: var(--violet-soft); }
.form--heka .btn-primary:hover { background: rgba(123, 63, 228, 0.32); color: #fff; }
/* champ que Heka vient de remplir */
@keyframes hekaFill { 0% { box-shadow: 0 0 0 0 rgba(157, 92, 255, 0.7); } 100% { box-shadow: 0 0 0 12px rgba(157, 92, 255, 0); } }
.field.heka-filled input, .field.heka-filled select, .field.heka-filled textarea { border-color: var(--violet-soft); animation: hekaFill 1s var(--ease); }
.form::before, .form::after { content: ""; position: absolute; width: 44px; height: 44px; pointer-events: none;
  border: 0 solid rgba(200, 212, 255, 0.75); transition: width 0.5s var(--ease), height 0.5s var(--ease); }
.form::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 14px; }
.form::after { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 14px; }
.form:focus-within::before, .form:focus-within::after { width: 72px; height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--accent-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.8rem 1rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(200, 212, 255, 0.16); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-soft); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 3px var(--ring); }
.field select option { background: var(--bg-2); color: var(--ink); }
.field .err { color: #ff9db0; font-size: var(--step-small); min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: #ff6b8a; }
.form .btn { width: 100%; margin-top: 0.5rem; }
.form-status { margin: 1rem 0 0; color: var(--accent-soft); min-height: 1.4em; }
.info { margin: 0; display: grid; gap: 2rem; }
.info div { margin: 0; }
.info dt { color: var(--muted); font-size: 1rem; margin-bottom: 0.3rem; }
.info dd { margin: 0; font-size: var(--step-lead); line-height: 1.3; }
.info dd a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.info dd a:hover { color: var(--accent-soft); }
.info dd.big a { font-variant-numeric: tabular-nums; font-family: var(--font-title); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; }
.socials { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }

/* ---------- FAQ : titre à gauche, questions à droite ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { position: static; } }
.faq-list { display: grid; gap: 0.5rem; }
.faq-list details { border-radius: 14px; background: rgba(7, 13, 28, 0.78); transition: background 0.2s; }
.faq-list details[open] { background: var(--bg-3); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; font-weight: 500; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-title); font-size: 2rem; color: var(--accent-soft); transition: transform 0.3s var(--ease); line-height: 1; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.5rem 1.4rem; margin: 0; max-width: 62ch; }

/* ---------- Pied de page : le nom revient en pleine largeur ---------- */
/* pied de page centré : logo, liens, coordonnées, mentions (comme clementdinatale.fr) */
.foot { border-top: 1px solid rgba(169, 192, 255, 0.14); background: linear-gradient(180deg, rgba(7, 13, 28, 0) 0, rgba(7, 13, 28, 0.7) 100%); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.foot-logo img { width: clamp(120px, 12vw, 160px); height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.6rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-button); font-size: 15px; color: #c3cbe0; text-decoration: none; transition: color 0.2s; }
.foot-nav a:hover { color: var(--accent-soft); }
.foot-nap { font-style: normal; font-size: 0.95rem; line-height: 1.75; color: var(--muted); }
.foot-nap strong { color: var(--ink); font-weight: 700; }
.foot-nap a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; } /* zone tactile ≥ 44 px */
.foot-nap a:hover { color: var(--accent-soft); }
.foot-copy { margin: 0.5rem 0 0; max-width: 60ch; font-size: var(--step-small); color: var(--muted); }

/* ---------- Apparitions : titre, puis texte, puis image ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================
   Assistant IA « Heka »
   ========================================================== */
.heka-launcher {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 60;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 1.2rem 0.4rem 0.4rem; min-height: 60px; border-radius: 999px; cursor: pointer; border: 0;
  background: var(--bg-4); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.2s;
}
.heka-launcher:hover { transform: translateY(-3px); background: var(--bg-5); }
.heka-launcher img { width: 50px; height: 50px; animation: breathe 4s ease-in-out infinite; }
.heka-launcher .txt { text-align: left; font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.heka-launcher small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.heka-launcher.hidden, .heka-launcher.away { opacity: 0; pointer-events: none; transform: scale(0.9); }
@media (max-width: 520px) { .heka-launcher .txt { display: none; } .heka-launcher { padding: 0.35rem; } }

.heka-panel {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 70;
  width: min(400px, calc(100vw - 2rem)); height: min(620px, calc(100svh - 2rem));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--bg-2); box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.85);
  transform-origin: bottom right; transform: scale(0.94) translateY(10px); opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.heka-panel.open { transform: none; opacity: 1; pointer-events: auto; }
@media (max-width: 520px) { .heka-panel { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; } }
.heka-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--field); }
.heka-head img { width: 44px; height: 44px; animation: breathe 4s ease-in-out infinite; }
.heka-head .who { flex: 1; line-height: 1.15; }
.heka-head strong { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.06em; }
.heka-head small { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--accent-soft); }
.heka-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a3f7bf; }
.heka-close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: background 0.2s; }
.heka-close:hover { background: rgba(255, 255, 255, 0.08); }
.heka-close svg { width: 20px; height: 20px; }
.heka-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 0.7rem 0.95rem; border-radius: 18px; font-size: 0.97rem; line-height: 1.45; animation: rise 0.35s var(--ease) both; white-space: pre-line; }
.msg a { color: var(--accent-soft); }
.msg.bot { align-self: flex-start; background: var(--bg-4); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.reveal-card { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; text-align: center; padding: 1.1rem 1rem; background: var(--field); color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 0.9rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.heka-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; padding: 0 1rem 0.75rem; }
.chip { min-height: 38px; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.88rem; cursor: pointer; background: var(--bg-3); border: 0; color: var(--ink); transition: background 0.2s; }
.chip:hover { background: var(--bg-4); }
.chip:active { transform: scale(0.97); }
.heka-form { display: flex; gap: 0.5rem; padding: 0.75rem; background: var(--bg-3); }
.heka-form input { flex: 1; min-height: 48px; padding: 0.7rem 1rem; border-radius: 999px; background: var(--bg); border: 1px solid transparent; color: var(--ink); font: inherit; font-size: 1rem; }
.heka-form input:focus { outline: none; border-color: var(--accent); }
.heka-form button { width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--accent); color: #fff; transition: background 0.2s; }
.heka-form button:hover { background: var(--accent-hover); }
.heka-form button svg { width: 20px; height: 20px; }

/* ---------- Boutons plus compacts sur mobile ---------- */
@media (max-width: 700px) {
  .btn { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
  .btn::before, .btn::after { width: 12px; height: 12px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* titre de l'accueil : tirets entre les mots sur ordinateur seulement */
@media (max-width: 860px) { h1 .sep { display: none; } }

/* bloc formulaire : titre et phrase centrés au-dessus d'Heka */
#contact .sec-head { margin-inline: auto; text-align: center; }
#contact .sec-head p { margin-inline: auto; }

/* ---------- Intro de la hero (three.js, assets/js/hero-intro.js) ---------- */
/* pendant l'allumage : seule l'animation, pas de texte ni de défilement ; puis tout apparaît en cascade */
.hero-intro-play { overflow: hidden; }
.hero-intro :is(.bar, .hero-band > *, .heka-launcher, #neurons) { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.hero-intro .hero-band > :nth-child(2) { transition-delay: 0.15s; }
.hero-intro .hero-band > :nth-child(3) { transition-delay: 0.3s; }
.hero-intro :is(.bar, .heka-launcher) { transition-delay: 0.45s; }
.hero-intro-play :is(.bar, .hero-band > *, .heka-launcher, #neurons) { opacity: 0; visibility: hidden; transition: none; }
.hero-intro-play .hero-band > * { transform: translateY(14px); }
.hero-intro .hero-photo .ph-lit { visibility: hidden; }
.hero-gl { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.5s ease; }
.hero-gl.is-done { opacity: 0; }
/* le bouton Heka dort tant que la particule ne l'a pas touché */
.btn-heka { transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.6s ease, filter 0.6s ease; }
.hero-intro .hero .btn-heka:not(.heka-awake) { opacity: 0.45; filter: saturate(0.3) brightness(0.75); }
.btn-heka.heka-awake { animation: heka-awake 1.1s ease-out; }
.btn-heka.heka-awake img { animation: heka-awake-orb 0.9s ease-out, breathe 4s ease-in-out 0.9s infinite; }
@keyframes heka-awake {
  0% { box-shadow: 0 0 0 0 rgba(157, 92, 255, 0); }
  25% { box-shadow: 0 0 46px 8px rgba(157, 92, 255, 0.55); background: rgba(123, 63, 228, 0.34); }
  100% { box-shadow: 0 0 0 0 rgba(157, 92, 255, 0); }
}
@keyframes heka-awake-orb { 0% { transform: scale(1); } 30% { transform: scale(1.35); filter: brightness(1.8); } 100% { transform: scale(1); } }

/* ---------- Fenêtre vidéo (YouTube intégré, sans quitter le site) ---------- */
.video-modal { width: min(92vw, 1100px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.video-modal::backdrop { background: rgba(3, 6, 14, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video-modal[open] { animation: video-in 0.35s var(--ease); }
@keyframes video-in { from { opacity: 0; transform: scale(0.96); } }
.video-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 0.2s; }
.video-close:hover { background: rgba(255, 255, 255, 0.18); }
.video-close svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .video-modal[open] { animation: none; } }

/* ---------- Pages prestations (magie-mentalisme-digital, show-ia-ecran-geant) ---------- */
.page-hero { padding: calc(72px + clamp(2.5rem, 7vw, 6rem)) 0 clamp(2rem, 5vw, 4rem); }
.page-hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 1rem + 3.4vw, 4rem); }
.kicker { margin: 0 0 1rem; font-family: var(--font-text); font-weight: 500; font-size: 1rem; letter-spacing: 0.02em; color: var(--accent-soft); }
.page-hero .lead { margin: 1.5rem 0 2rem; max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
/* l'affiche garde ses proportions et flotte un peu, comme posée devant l'écran */
.poster-hero { grid-template-columns: 1.15fr 0.85fr; }
.page-hero-media.poster img { aspect-ratio: auto; max-height: min(78vh, 760px); width: auto; margin-inline: auto; border-radius: 10px; box-shadow: 0 30px 90px rgba(58, 109, 240, 0.25), 0 10px 30px rgba(0, 0, 0, 0.6); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.prose > p { max-width: 62ch; }
.prose h2 { margin-bottom: 1.5rem; }
.prose h3 { font-size: clamp(1.1rem, 0.85rem + 0.9vw, 1.5rem); line-height: 1.1; margin-bottom: 1.25rem; }
.note strong { color: var(--accent-soft); font-weight: 700; }
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.media-split.rev .media { order: 2; }
.media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }

/* puces en losange, comme les motifs du logo */
.ticks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-left: 1.7em; font-weight: 500; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0.2em; top: 0.5em; width: 7px; height: 7px; border: 1.5px solid var(--accent-soft); transform: rotate(45deg); }

/* panneau avec angles de cadre, même langage que les blocs de l'accueil */
.frame { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); background: rgba(255, 255, 255, 0.025); }
.frame::before, .frame::after { content: ""; position: absolute; width: 36px; height: 36px; pointer-events: none; border: 0 solid rgba(200, 212, 255, 0.75); transition: width 0.5s var(--ease), height 0.5s var(--ease); }
.frame::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 14px; }
.frame::after { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 14px; }
.frame:hover::before, .frame:hover::after { width: 56px; height: 56px; }
.frame h2 { font-size: clamp(1.4rem, 0.9rem + 1.8vw, 2.2rem); margin-bottom: 0.5rem; }
.duo-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.duo-intro { margin: 1rem 0 1.5rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.duo strong { display: block; margin-bottom: 0.6rem; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); line-height: 1; color: #fff; }
.duo span { color: var(--muted); line-height: 1.45; }

.page-cta { padding: var(--section) 0; text-align: center; }
.page-cta p { max-width: 56ch; margin: 1.25rem auto 2rem; font-size: var(--step-lead); line-height: 1.35; }
.page-cta .page-actions { justify-content: center; }


@media (max-width: 860px) {
  .page-hero-in, .poster-hero, .split, .media-split, .duo-split { grid-template-columns: 1fr; }
  .media-split.rev .media { order: 0; }
  .media img { aspect-ratio: 4 / 3; }
  .page-hero-media.poster img { max-height: 70vh; }
  .page-hero .lead { margin: 1.25rem 0 1.5rem; }
}
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }
.nw { white-space: nowrap; }
/* pages prestations : titres-questions plus sobres et sections plus rapprochées que sur l'accueil */
.page .sec { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.split > h2, .prose h2 { font-size: clamp(1.5rem, 0.9rem + 2vw, 2.6rem); line-height: 1.02; }
.split { grid-template-columns: 1fr 1fr; }
.split > h2 { font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.1rem); }
.duo strong { font-size: clamp(1.3rem, 0.9rem + 1vw, 1.8rem); white-space: nowrap; }

/* ---------- Menu : « Prestations » déroule les deux pages ---------- */
.nav-drop { position: relative; }
.nav-drop > a svg { width: 14px; height: 14px; margin-left: 4px; transition: transform 0.3s var(--ease); }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 240px; padding: 0.5rem; display: grid;
  background: rgba(3, 6, 14, 0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(169, 192, 255, 0.14); border-radius: 12px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-drop:hover > a svg, .nav-drop:focus-within > a svg { transform: rotate(180deg); }
.nav .nav-sub a:not(.btn) { border-radius: 8px; white-space: nowrap; }
.nav .nav-sub a:not(.btn):hover { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 900px) {
  .nav-drop > a svg { display: none; }
  /* menu mobile : les deux pages sont listées sous « Prestations », en plus petit */
  .nav-sub { position: static; min-width: 0; padding: 0 0 0.5rem 1rem; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; visibility: visible; transform: none; }
  .nav .nav-sub a:not(.btn) { padding: 0.6rem 0; font-size: 1rem; font-weight: 500; text-transform: none; color: var(--accent-soft); }
}

/* ---------- Blocs « scène » des pages : photo d'un côté, fondue dans le noir vers le texte ---------- */
.scene { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(520px, 52vw, 720px); }
.scene-media { position: absolute; top: 0; bottom: 0; left: 36%; right: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); }
.scene-media img { width: 100%; height: 100%; object-fit: cover; }
.scene.rev { justify-content: flex-end; }
.scene.rev .scene-media { left: 0; right: 36%; -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%); }
.scene-text { max-width: 520px; margin: 40px 56px; background: none; }
.scene-text p { text-shadow: 0 1px 12px rgba(3, 6, 14, 0.9); }
@media (max-width: 860px) {
  .scene { display: block; min-height: 0; }
  .scene-media, .scene.rev .scene-media { position: relative; left: auto; right: auto; height: 62vw; max-height: 420px; margin-bottom: -3rem;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .scene-text { margin: 0; }
}
/* bords extérieurs de la photo fondus aussi (haut, bas, côté), comme les blocs de l'accueil */
@media (min-width: 861px) {
  .scene-media { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; }
  .scene.rev .scene-media { -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.35) 14%, rgba(0,0,0,0.8) 32%, #000 48%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
}
.scene-text h2 { font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.1rem); }
/* blocs « scène » moins hauts ; texte long (Juliette et Heka) plus large pour tenir sur moins de lignes */
.scene { min-height: clamp(420px, 40vw, 580px); }
@media (min-width: 861px) { .scene-text { margin: 24px 48px; } .scene-text.wide { max-width: 640px; } .scene-text p { margin-bottom: 0.8em; } }

/* ---------- Pages prestations : titre seul centré (Close-up) ---------- */
.page-hero-in.solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.solo .page-hero-text { max-width: 760px; }
.solo .lead { margin-inline: auto; }
.solo .page-actions { justify-content: center; }

/* ---------- Mobile : blocs longs repliés derrière « Lire la suite » ---------- */
.fold .read-more { display: none; }
@media (max-width: 860px) {
  .fold .more-text { display: none; }
  .fold.open .more-text { display: block; animation: rise 0.35s var(--ease) both; }
  .fold .read-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; margin-top: 4px;
    background: none; border: 0; color: var(--accent-soft); font-size: 0.95rem; font-weight: 500; cursor: pointer; }
  .fold .read-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
  .fold.open .read-more svg { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) { .fold.open .more-text { animation: none; } }
.heka-close { flex: none; min-width: 44px; min-height: 44px; } /* ne se tasse plus dans l'en-tête d'Heka */

/* ---------- Ordinateur : blocs « scène » plus compacts ---------- */
@media (min-width: 861px) {
  .page .sec { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
  .scene { min-height: clamp(380px, 34vw, 500px); }
  .scene-media { left: 42%; }
  .scene.rev .scene-media { left: 0; right: 42%; }
  .scene-text, .scene-text.wide { max-width: 640px; margin: 16px 40px; padding: clamp(1.25rem, 2.2vw, 2rem); }
  .scene-text h2 { margin-bottom: 1rem; }
  .scene-text p { font-size: 1rem; line-height: 1.55; margin-bottom: 0.65em; }
  .scene-text .ticks { grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; margin: 1rem 0; }
}
/* mobile : photos des blocs fondues en haut ET en bas, plus de coupure nette */
@media (max-width: 860px) {
  .scene-media, .scene.rev .scene-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 55%, transparent 100%); }
}
/* bouton devis en fin de bloc */
.scene-cta { margin-top: 1.25rem; }
.section-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
/* titre Close-up : une seule ligne sur ordinateur, un mot par ligne sans tirets sur mobile (comme la hero de l'accueil) */
@media (min-width: 861px) { .solo h1 { white-space: nowrap; font-size: clamp(1.6rem, 3.1vw, 3.4rem); } .solo .page-hero-text { max-width: none; } }
/* Show IA (mobile) : en-tête centré */
@media (max-width: 860px) {
  .poster-hero .page-hero-text { text-align: center; }
  .poster-hero .lead { margin-inline: auto; }
  .poster-hero .page-actions { justify-content: center; }
}
/* accueil, mobile : haut des photos des deux prestations fondu dans le noir */
@media (max-width: 860px) {
  #close-up .card-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%); mask-image: linear-gradient(180deg, transparent 0, #000 18%); }
  #connexion .card-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%); }
}

.socials svg { width: 18px; height: 18px; flex: none; }

/* Champ piège anti-robots du formulaire : invisible pour les visiteurs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
