/* ==========================================================================
   Attraction Tech — feuille de style unique
   Identité : bleu profond (logo), bleu électrique, violet. Aucun jaune/doré.
   Thèmes : clair et sombre via  <html data-theme="light|dark">  (voir js/site.js)
   Aucune bibliothèque : ni Bootstrap, ni jQuery, ni police d'icônes.
   ========================================================================== */

/* ---------- 1. Design tokens ------------------------------------------------ */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8ff;
  --bg-alt: #eceffd;
  --surface: #ffffff;
  --surface-2: #f1f4ff;
  --text: #0a0f33;
  --muted: #4a5380;
  --line: rgba(28, 40, 120, .13);
  --line-strong: rgba(28, 40, 120, .26);

  --brand: #1b0186;          /* bleu profond du logo */
  --blue: #2563ff;           /* bleu électrique */
  --violet: #8b3cf5;
  --accent: #3d2fd8;         /* texte, liens, icônes (contraste 7,9:1 sur blanc) */
  --on-accent: #ffffff;

  --grad: linear-gradient(115deg, #1b0186 0%, #2563ff 55%, #8b3cf5 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 255, .12), rgba(139, 60, 245, .14));
  --grad-panel: linear-gradient(125deg, #12005f 0%, #1b0186 28%, #2549e8 72%, #7b3cf0 100%);

  --shadow-1: 0 1px 2px rgba(20, 30, 100, .06), 0 12px 32px -16px rgba(37, 60, 200, .25);
  --shadow-2: 0 2px 6px rgba(20, 30, 100, .06), 0 32px 64px -28px rgba(40, 50, 200, .38);
  --header-bg: rgba(246, 248, 255, .82);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .95);
  --spot: rgba(37, 99, 255, .10);
  --focus: #3d2fd8;

  --hero-bg:
    radial-gradient(52% 58% at 82% 30%, rgba(139, 60, 245, .20), transparent 70%),
    radial-gradient(46% 54% at 62% 78%, rgba(37, 99, 255, .18), transparent 70%),
    var(--bg);

  /* composition du héros */
  --art-1: #1b0186; --art-2: #2563ff; --art-3: #8b3cf5;
  --art-l1: #2563ff; --art-l2: #8b3cf5;
  --art-shadow: rgba(40, 50, 200, .38);
  --glow-1: rgba(37, 99, 255, .20);
  --grid-dot: rgba(28, 40, 120, .22);
  --ring: rgba(37, 99, 255, .45);
  --spark: #2563ff;

  /* Grands blocs de mise en avant (offre, appels à l'action) */
  --panel-bg: linear-gradient(135deg, #ffffff 0%, #eef2ff 52%, #f1e9ff 100%);
  --panel-border: var(--line-strong);
  --panel-glow-a: rgba(37, 99, 255, .13); --panel-glow-b: rgba(139, 60, 245, .16);
  --panel-head: var(--text); --panel-text: var(--muted); --panel-check: var(--accent);
  --panel-line: var(--line-strong); --panel-media-bg: var(--surface-2);
  /* Pied de page */
  --footer-bg: #ffffff; --footer-text: var(--muted); --footer-head: var(--text); --footer-hover: var(--accent);
  --footer-line: var(--line); --footer-icon: var(--accent); --footer-social-line: var(--line-strong); --footer-social: var(--text);

  --ok-bg: #e7f6ee; --ok-line: #12803f; --ok-text: #0b4a25;
  --err-bg: #fdecec; --err-line: #c62828; --err-text: #7a1414;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050819;
  --bg-alt: #080d29;
  --surface: #0b1131;
  --surface-2: #10173f;
  --text: #eef2ff;
  --muted: #a9b3dc;
  --line: rgba(150, 170, 255, .16);
  --line-strong: rgba(150, 170, 255, .32);

  --accent: #8fb0ff;
  --on-accent: #050819;

  --grad: linear-gradient(115deg, #2b3fe0 0%, #2f6bff 50%, #8b3cf5 100%);
  --grad-soft: linear-gradient(135deg, rgba(47, 107, 255, .20), rgba(139, 60, 245, .22));

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 16px 36px -18px rgba(0, 0, 0, .7);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 36px 70px -30px rgba(0, 0, 0, .8);
  --header-bg: rgba(5, 8, 25, .78);
  --glass: rgba(16, 23, 63, .62);
  --glass-line: rgba(150, 170, 255, .28);
  --spot: rgba(111, 143, 255, .13);
  --focus: #8fb0ff;

  --hero-bg:
    radial-gradient(55% 60% at 80% 32%, rgba(124, 70, 255, .36), transparent 70%),
    radial-gradient(48% 56% at 58% 80%, rgba(37, 99, 255, .30), transparent 70%),
    var(--bg);

  --art-1: #2a3df0; --art-2: #3d7bff; --art-3: #9a5cff;
  --art-l1: #6ea0ff; --art-l2: #b48cff;
  --art-shadow: rgba(80, 110, 255, .45);
  --glow-1: rgba(70, 100, 255, .30);
  --grid-dot: rgba(150, 170, 255, .30);
  --ring: rgba(143, 176, 255, .45);
  --spark: #ffffff;

  --panel-bg: linear-gradient(125deg, #12005f 0%, #1b0186 28%, #2549e8 72%, #7b3cf0 100%);
  --panel-border: transparent;
  --panel-glow-a: rgba(255, 255, 255, .20); --panel-glow-b: rgba(139, 60, 245, .45);
  --panel-head: #ffffff; --panel-text: rgba(255, 255, 255, .86); --panel-check: #a9c4ff;
  --panel-line: rgba(255, 255, 255, .22); --panel-media-bg: rgba(255, 255, 255, .08);
  --footer-bg: #04061a; --footer-text: #b3bde8; --footer-head: #ffffff; --footer-hover: #ffffff;
  --footer-line: rgba(150, 170, 255, .16); --footer-icon: #7f9bff; --footer-social-line: rgba(150, 170, 255, .3); --footer-social: #ffffff;

  --ok-bg: #0c2a1a; --ok-line: #34c47a; --ok-text: #b9f0d2;
  --err-bg: #34101a; --err-line: #ff6b81; --err-text: #ffd0d6;
}

:root {
  --display: Sora, Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1200px;
  --header-h: 72px;
  --logo-h: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 992px) { :root { --header-h: 84px; --logo-h: 60px; } }
@media (max-width: 479.98px) { :root { --header-h: 66px; --logo-h: 46px; } }

/* ---------- 2. Fondations ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.62;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: .2em; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--text); text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 1.05rem + 2.2vw, 2.9rem); line-height: 1.1; letter-spacing: -.028em; }
h3 { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); line-height: 1.25; }
p { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { flex: none; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- 3. Boutons -------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 12px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-position .5s var(--ease), box-shadow .3s var(--ease), border-color .25s, background-color .25s, color .25s, transform .25s var(--ease);
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn--lg { min-height: 52px; padding: 13px 26px; font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); }
.btn--block { width: 100%; }

.btn--primary { background: var(--grad); background-size: 180% 100%; background-position: 0 0; color: #fff; box-shadow: 0 10px 28px -10px rgba(37, 99, 255, .7); }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(110, 70, 255, .75); color: #fff; }
.btn--ghost { border-color: var(--line-strong); background: var(--glass); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); background: var(--surface); color: var(--text); }
.btn--outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--accent); background: var(--grad-soft); color: var(--text); }
.btn--panel { background: var(--grad); background-size: 180% 100%; background-position: 0 0; color: #fff; box-shadow: 0 10px 28px -10px rgba(37, 99, 255, .7); }
.btn--panel:hover { background-position: 100% 0; color: #fff; box-shadow: 0 14px 34px -10px rgba(110, 70, 255, .75); }
:root[data-theme="dark"] .btn--panel { background: #fff; color: #1b0186; box-shadow: 0 12px 30px -12px rgba(0, 0, 40, .55); }
:root[data-theme="dark"] .btn--panel:hover { color: #12005f; box-shadow: 0 16px 38px -12px rgba(0, 0, 40, .7); transform: translateY(-1px); }

/* ---------- 4. En-tête -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; border-radius: 8px; }
.brand svg { height: var(--logo-h); width: auto; aspect-ratio: 1334 / 941; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--glass); color: var(--text); cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .3s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); background: var(--surface); }
.theme-toggle > span { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
.theme-toggle:hover > span { transform: rotate(14deg); }
:root[data-theme="dark"] .theme-toggle:hover .theme-toggle__moon { transform: rotate(90deg) scale(.5); }
.theme-toggle__moon, .theme-toggle__sun { will-change: transform; }

.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav-link { display: block; color: var(--text); text-decoration: none; }
.nav-link.is-active { color: var(--accent); }
.nav-cta { width: 100%; margin-top: 18px; }

@media (max-width: 991.98px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; padding: 6px var(--gutter) 24px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; animation: nav-in .3s var(--ease); }
  .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font: 600 1.125rem/1.2 var(--display); }
  /* sans JavaScript : le menu reste visible sous le logo */
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .wrap { height: auto; flex-wrap: wrap; padding-block: 8px; }
  .no-js .site-nav { position: static; width: 100%; max-height: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 16px; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 992px) {
  .nav-toggle, .nav-cta { display: none; }
  .header-cta { display: inline-flex; }
  .site-nav { margin-left: auto; }
  .site-nav ul { display: flex; gap: 8px; }
  .nav-link { position: relative; padding: 10px 14px; font: 500 .96rem/1.2 var(--sans); border-radius: 10px; transition: color .2s, background-color .2s; }
  .nav-link:hover { color: var(--accent); background: var(--grad-soft); }
  .nav-link.is-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad);
  }
}

/* ---------- 5. Logo : il se dessine puis se remplit (une fois par visite) -------
   Même tracé et même ordre que l'animation d'origine. Plus rapide sur mobile.
   Thème sombre : même forme, couleurs adaptées (dégradé bleu → violet, texte clair). */
.logo-draw { --k: 1; }
@media (max-width: 767.98px) { .logo-draw { --k: .4; } }
.lg {
  stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  fill-opacity: 0;
  animation:
    lg-draw   calc(var(--t) * var(--k)) cubic-bezier(.65, 0, .35, 1) calc(var(--d) * var(--k)) forwards,
    lg-fill   calc(.5s * var(--k)) ease-out calc((var(--d) + var(--t) * .8) * var(--k)) forwards,
    lg-unline calc(.3s * var(--k)) ease-out calc((var(--d) + var(--t) * .8 + .3s) * var(--k)) forwards;
}
.lg-block, .lg-core { stroke-width: 14; }
.lg-text { stroke-width: 8; }
@keyframes lg-draw   { to { stroke-dashoffset: 0; } }
@keyframes lg-fill   { to { fill-opacity: 1; } }
@keyframes lg-unline { to { stroke-opacity: 0; } }
.logo-still .lg { animation: none; stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
:root[data-theme="dark"] .logo-draw .lg-block,
:root[data-theme="dark"] .logo-draw .lg-core { fill: url(#lg-g); stroke: #7f9bff; }
:root[data-theme="dark"] .logo-draw .lg-text { fill: #e9eeff; stroke: #e9eeff; }

/* ---------- 6. Pastille « en ligne » -------------------------------------------- */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(37, 99, 255, .55); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 255, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(37, 99, 255, 0); } }

/* ---------- 7. Héros ------------------------------------------------------------- */
.hero { position: relative; overflow: clip; background: var(--hero-bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-block: clamp(36px, 7vw, 80px) clamp(44px, 8vw, 96px); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { display: block; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--glass);
  font: 500 clamp(.8125rem, .78rem + .2vw, .9rem)/1.2 var(--sans); letter-spacing: 0; color: var(--muted);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-title {
  display: block; margin-top: 22px;
  font: 700 clamp(1.85rem, 1.1rem + 3.7vw, 4.1rem)/1.06 var(--display); letter-spacing: -.035em; color: var(--text);
}
.hero .lead { margin-top: 18px; max-width: 54ch; font-size: clamp(1rem, .94rem + .35vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: clamp(32px, 5vw, 52px); padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: .875rem; color: var(--muted); }
.hero-facts dd { font: 600 clamp(1.25rem, 1rem + 1vw, 1.6rem)/1.2 var(--display); letter-spacing: -.02em; color: var(--text); }
@media (max-width: 479.98px) { .hero-facts { gap: 20px; } .hero-facts dt { font-size: .8125rem; } .hero-facts dd { font-size: 1.3rem; } }
@media (max-width: 575.98px) { .hero-actions .btn { flex: 1 1 100%; } }

.hero-visual { position: relative; width: 100%; max-width: 640px; margin-inline: auto; aspect-ratio: 1 / .92; --px: 0; --py: 0; }
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; min-height: min(780px, calc(100vh - var(--header-h))); }
}
@media (max-width: 991.98px) { .hero-visual { max-width: 520px; } }
@media (max-width: 599.98px) { .hero-visual { aspect-ratio: 1 / .8; } }

/* Composition : la géométrie du logo, déployée en plans superposés */
.hero-art { position: absolute; inset: 0; }
.art-defs { position: absolute; }
.art-defs .s1 { stop-color: var(--art-1); } .art-defs .s2 { stop-color: var(--art-2); } .art-defs .s3 { stop-color: var(--art-3); }
.art-defs .l1 { stop-color: var(--art-l1); } .art-defs .l2 { stop-color: var(--art-l2); }
.art-glow { position: absolute; inset: -12%; background: radial-gradient(closest-side at 50% 52%, var(--glow-1), transparent 72%); }
.art-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.7px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 100%);
}
.art-layer {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--px) * var(--depth) * 20px), calc(var(--py) * var(--depth) * 16px), 0);
  transition: transform .35s ease-out;
}
.art-svg { width: 100%; height: 100%; overflow: visible; }
.facet { stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linejoin: round; }
.art-layer--mid .art-svg { filter: drop-shadow(0 30px 34px var(--art-shadow)); }
.echo path { fill: none; stroke: url(#art-line); stroke-width: 2.4; stroke-linejoin: round; }
.echo.e1 { opacity: .6; } .echo.e2 { opacity: .34; } .echo.e3 { opacity: .16; }
.ring { fill: none; stroke: var(--ring); stroke-width: 1.6; }
.ring-1 { stroke-dasharray: 2 11; stroke-linecap: round; transform-origin: 690px 400px; animation: spin 90s linear infinite; }
.ring-2 { opacity: .4; }
.core-base { fill: none; stroke: url(#art-line); stroke-width: 2.4; stroke-linejoin: round; opacity: .8; }
.core-spark { fill: none; stroke: var(--spark); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 7 93; animation: spark 7s linear infinite; filter: drop-shadow(0 0 5px var(--spark)); }
.node { fill: #fff; stroke: var(--art-l1); stroke-width: 5; }
.art-float-a { animation: float-a 9s ease-in-out infinite; }
.art-float-b { animation: float-b 11s ease-in-out infinite; }
@keyframes spark { to { stroke-dashoffset: -100; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

.glass-panel {
  position: absolute; left: -2%; bottom: 2%; z-index: 3; width: min(264px, 56%); padding: 14px 20px 6px;
  border: 1px solid var(--glass-line); border-radius: 20px; background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-2);
  transform: translate3d(calc(var(--px) * 30px), calc(var(--py) * 24px), 0); transition: transform .35s ease-out;
}
.glass-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font: 600 .9rem/1.3 var(--sans); color: var(--text); }
.glass-panel li + li { border-top: 1px solid var(--line); }
.glass-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0;
  font: 500 .95rem/1.3 var(--sans); color: var(--text); text-decoration: none; transition: color .2s;
}
.glass-panel a .icon { color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.glass-panel a:hover { color: var(--accent); }
.glass-panel a:hover .icon { color: var(--accent); transform: translate(2px, -2px); }
@media (max-width: 599.98px) { .glass-panel { display: none; } }

/* ---------- 8. Sections -------------------------------------------------------------- */
.section { padding-block: clamp(48px, 9vw, 120px); }
.section--tight { padding-block: clamp(28px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 60px); }
.section-head p { margin-top: 14px; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--muted); }
.section-more { margin-top: clamp(32px, 4vw, 48px); }

.split { display: grid; gap: 40px; }
.split-intro { display: grid; gap: 18px; align-content: start; }
.split-intro p { color: var(--muted); }
@media (min-width: 992px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .split--form { grid-template-columns: 5fr 7fr; }
  .split-intro h2 { font-size: clamp(1.9rem, 1.1rem + 1.7vw, 2.6rem); }
  .split-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

.icon-tile {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--accent);
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.icon-tile--sm { width: 46px; height: 46px; border-radius: 14px; }

/* Effet de lumière au survol (suit le curseur) + liseré dégradé : n'apparaît qu'à l'interaction */
.spot { position: relative; isolation: isolate; }
.spot > * { position: relative; z-index: 1; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 62%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:focus-visible::before, .spot:hover::after, .spot:focus-visible::after { opacity: 1; }

/* Services : mosaïque */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.bento-item {
  display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: clamp(20px, 5vw, 28px); overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1);
  color: var(--text); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.bento-item h3 { margin-top: 12px; font-size: clamp(1.125rem, 1.02rem + .5vw, 1.35rem); }
.bento-item p { max-width: 42ch; color: var(--muted); font-size: clamp(.9375rem, .9rem + .15vw, 1rem); }
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.bento-item:hover .icon-tile { background: var(--grad); border-color: transparent; color: #fff; transform: rotate(-4deg) scale(1.04); }
.bento-go { position: absolute; top: 24px; right: 24px; color: var(--muted); transition: transform .35s var(--ease), color .25s; }
.bento-item:hover .bento-go { color: var(--accent); transform: translate(3px, -3px); }
.bento-art { position: static; align-self: flex-end; width: min(62%, 260px); margin-top: auto; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.bento-art .fill { fill: var(--grad-soft); }
.bento-art .solid { fill: var(--surface); stroke: none; }
@media (min-width: 600px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-marketing-digital { grid-column: 1 / -1; } }
@media (min-width: 992px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .bento-item { grid-column: span 2; min-height: 250px; }
  .bento-sites-internet, .bento-applications { grid-column: span 3; min-height: 320px; padding: 34px; }
  .bento-sites-internet h3, .bento-applications h3 { max-width: 52%; }
  .bento-sites-internet p, .bento-applications p { max-width: min(30ch, 50%); }
  .bento-art { position: absolute; right: 24px; bottom: 24px; width: 42%; max-width: 250px; margin: 0; }
  .bento-marketing-digital { grid-column: span 6; flex-direction: row; align-items: center; gap: 28px; min-height: 0; padding: 26px 34px; }
  .bento-marketing-digital h3 { margin-top: 0; }
  .bento-marketing-digital .icon-tile { flex: none; }
  .bento-marketing-digital p { margin-left: auto; max-width: 46ch; padding-right: 44px; }
}

/* Réalisations */
.showcase { display: grid; gap: 20px; grid-template-columns: 1fr; }
.work {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1);
  color: var(--text); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.work-media { position: relative; flex: 1 1 auto; min-height: 190px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-panel); }
.work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 10, 50, .28)); pointer-events: none; }
.work:hover .work-media img { transform: scale(1.05); }
.work-body { padding: 22px 26px 26px; }
.work-body p { margin-top: 6px; color: var(--muted); font-size: clamp(.9375rem, .9rem + .15vw, 1rem); }
.work-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 600 .9rem/1.3 var(--sans); color: var(--accent); }
.work-link .icon { transition: transform .3s var(--ease); }
.work:hover .work-link .icon { transform: translate(3px, -3px); }
@media (min-width: 700px) { .showcase { grid-template-columns: repeat(2, 1fr); } .work--lead { grid-column: 1 / -1; } }
@media (min-width: 992px) {
  .showcase { grid-template-columns: repeat(6, 1fr); }
  .work { grid-column: span 2; }
  .work--lead { grid-column: span 4; }
  .work--lead h3 { font-size: 1.6rem; }
  .work--lead .work-media { aspect-ratio: 2 / 1; }
}

/* Avantages : liste sans cartes */
.perks { display: grid; gap: 32px 40px; }
.perk { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.perk .icon-tile { margin-bottom: 18px; }
.perk h3 { margin-bottom: 8px; }
.perk p { color: var(--muted); }
@media (min-width: 700px) { .perks { grid-template-columns: repeat(2, 1fr); } }

/* Offre */
.offer-card {
  position: relative; isolation: isolate; display: grid; gap: 36px; align-items: center; overflow: hidden;
  padding: clamp(22px, 5vw, 64px); border: 1px solid var(--panel-border); border-radius: 32px; color: var(--panel-text); background: var(--panel-bg);
  box-shadow: 0 40px 80px -40px rgba(37, 60, 220, .55);
}
.offer-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(48% 70% at 88% 18%, var(--panel-glow-a), transparent 70%), radial-gradient(40% 60% at 6% 100%, var(--panel-glow-b), transparent 70%);
}
.offer-card h2 { color: var(--panel-head); }
.price { margin: 14px 0 12px; }
.price-num { font: 700 clamp(2.9rem, 2rem + 5vw, 5.6rem)/1 var(--display); letter-spacing: -.045em; color: var(--panel-head); }
:root:not([data-theme="dark"]) .price-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.offer-lead { max-width: 48ch; color: var(--panel-text); }
.checks { display: grid; gap: 12px; margin-block: 24px 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { margin-top: 2px; color: var(--accent); }
.offer-card .checks li { color: var(--panel-head); }
.offer-card .checks .icon { color: var(--panel-check); }
.offer-actions { margin-top: 32px; }
.offer-media { overflow: hidden; border: 1px solid var(--panel-line); border-radius: 22px; background: var(--panel-media-bg); aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0, 0, 30, .45); }
.offer-media img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 992px) { .offer-card { grid-template-columns: 6fr 5fr; gap: 64px; } }

/* À propos : deux images superposées */
.about { display: grid; gap: 48px; align-items: center; }
.about-media { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / .92; margin-inline: auto; }
.photo { position: absolute; overflow: hidden; border-radius: 24px; background: var(--grad-panel); box-shadow: var(--shadow-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--a { inset: 0 24% 24% 0; }
.photo--b { inset: 32% 0 0 30%; border: 6px solid var(--bg); border-radius: 28px; }
.section--alt .photo--b { border-color: var(--bg-alt); }
.about-copy { display: grid; gap: 18px; align-content: start; }
.about-copy p { color: var(--muted); }
.about-copy h2 + p { margin-top: -2px; }
@media (min-width: 992px) { .about { grid-template-columns: 1fr 1fr; gap: 88px; } }

/* Contact */
.contact-list { display: grid; gap: 20px; margin-top: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { margin-top: 4px; color: var(--accent); }
.contact-list span { display: block; font-size: .875rem; color: var(--muted); }
.contact-list a { color: var(--text); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

.form-card { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-2); }
.form-grid { display: grid; gap: 18px; margin-bottom: 24px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .9; }
.field input:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent); background: var(--surface); }
.form-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.notice { margin-bottom: 22px; padding: 14px 16px; border-left: 4px solid; border-radius: 10px; font-size: .9375rem; }
.notice--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.notice--error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.map-title { margin-bottom: 24px; }
.map { position: relative; min-height: 320px; height: clamp(320px, 44vw, 440px); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-1); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--accent); background: var(--hero-bg); }
.map-address { color: var(--text); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.no-js .map-load { display: none; }

/* ---------- 9. Pages intérieures ------------------------------------------------------ */
.page-head { position: relative; overflow: clip; background: var(--hero-bg); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 7vw, 88px) clamp(44px, 7vw, 80px); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { max-width: 18ch; font: 700 clamp(1.8rem, 1.15rem + 3.3vw, 4rem)/1.07 var(--display); letter-spacing: -.035em; }
.page-head .lead { margin-top: 16px; max-width: 58ch; font-size: clamp(1rem, .94rem + .35vw, 1.2rem); color: var(--muted); }
.page-head .hero-visual { display: none; }
.page-head .hero-art { opacity: .95; }
@media (min-width: 992px) {
  .page-head .hero-visual { display: block; position: absolute; right: max(2%, calc((100vw - var(--max)) / 2 - 40px)); top: 50%; width: min(460px, 38vw); max-width: none; margin: 0; translate: 0 -50%; z-index: 1; }
}
.crumbs { margin-bottom: 18px; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* Services : lignes détaillées */
.svc-row { display: grid; gap: 32px; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--grad-panel); box-shadow: var(--shadow-2); }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27, 1, 134, .14), rgba(139, 60, 245, .08)); pointer-events: none; }
.svc-row__body .icon-tile { margin-bottom: 20px; }
.svc-row__lead { margin-top: 12px; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--muted); }
.svc-row .checks { margin-bottom: 30px; }
@media (min-width: 992px) {
  .svc-row { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .svc-row:nth-child(even) .svc-row__media { order: 2; }
}

.steps { display: grid; gap: 28px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 26px 26px 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px;
  background: var(--grad); color: #fff; font: 700 1.15rem/1 var(--display);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 48px; left: calc(100% - 4px); width: 32px; height: 2px; background: var(--grad); opacity: .8; }
}

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 clamp(1rem, .95rem + .25vw, 1.1rem)/1.35 var(--display); letter-spacing: -.01em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 10px; font: 400 1.4rem/1 var(--sans); color: var(--accent); transition: transform .35s var(--ease), background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--grad-soft); }
.faq details p { padding-bottom: 24px; color: var(--muted); }

.cta-card {
  position: relative; isolation: isolate; display: grid; gap: 24px; align-items: center; overflow: hidden;
  padding: clamp(22px, 5vw, 56px); border: 1px solid var(--panel-border); border-radius: 32px; color: var(--panel-text); background: var(--panel-bg); box-shadow: 0 40px 80px -40px rgba(37, 60, 220, .55);
}
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(46% 90% at 92% 10%, var(--panel-glow-a), transparent 70%), radial-gradient(40% 70% at 0% 100%, var(--panel-glow-b), transparent 70%); }
.cta-card h2 { color: var(--panel-head); font-size: clamp(1.45rem, 1rem + 2vw, 2.5rem); }
.cta-card p { margin-top: 10px; color: var(--panel-text); }
@media (min-width: 768px) { .cta-card { grid-template-columns: 1fr auto; gap: 48px; } }

/* À propos */
.vision { margin-top: 12px; padding: 6px 0 6px 24px; border-left: 3px solid; border-image: var(--grad) 1; }
.vision p { font: 500 clamp(1.05rem, .98rem + .5vw, 1.3rem)/1.45 var(--display); letter-spacing: -.015em; color: var(--text); }
.vision footer { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.facts { display: grid; gap: 20px; }
.fact { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1); }
.fact .icon-tile { margin-bottom: 20px; }
.fact h3 { margin-bottom: 10px; }
.fact p { color: var(--muted); }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.origin { display: grid; gap: 40px; align-items: start; }
.origin p { margin-top: 16px; color: var(--muted); }
.origin .btn { margin-top: 12px; }
.origin-facts { padding: 8px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1); }
.origin-facts > div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.origin-facts > div:last-child { border-bottom: 0; }
.origin-facts dt { color: var(--muted); }
.origin-facts dd { font-weight: 600; text-align: right; }
@media (min-width: 992px) { .origin { grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; } }
.founder blockquote { max-width: 820px; padding-left: clamp(18px, 3vw, 34px); border-left: 3px solid; border-image: var(--grad) 1; }
.founder blockquote p { font: 500 clamp(1.15rem, .95rem + 1.5vw, 2.1rem)/1.38 var(--display); letter-spacing: -.02em; color: var(--text); }
.founder footer { margin-top: 18px; color: var(--muted); }

/* 404 */
.notfound h1 { max-width: 20ch; font: 700 clamp(1.7rem, 1.1rem + 3vw, 3.6rem)/1.08 var(--display); letter-spacing: -.035em; }
.notfound .lead { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- 10. Pied de page (toujours sombre) ---------------------------------------- */
.site-footer { position: relative; margin-top: 0; padding-top: clamp(44px, 7vw, 88px); background: var(--footer-bg); color: var(--footer-text); font-size: .9688rem; border-top: 1px solid var(--footer-line); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #2563ff 30%, #8b3cf5 70%, transparent); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 52px; }
.footer-logo { width: 150px; height: auto; }
.footer-logo--for-dark { display: none; }
:root[data-theme="dark"] .footer-logo--for-light { display: none; }
:root[data-theme="dark"] .footer-logo--for-dark { display: block; }
.footer-slogan { margin-top: 14px; font: 600 clamp(.975rem, .93rem + .2vw, 1.05rem)/1.4 var(--display); color: var(--footer-head); }
.footer-about { margin-top: 12px; max-width: 42ch; }
.footer-col h2 { margin-bottom: 16px; font: 600 1rem/1.3 var(--sans); letter-spacing: 0; color: var(--footer-head); }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--footer-text); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--footer-hover); text-decoration: underline; }
.footer-col address p { display: flex; gap: 12px; align-items: flex-start; padding: 5px 0; }
.footer-col address .icon { margin-top: 3px; color: var(--footer-icon); }
.footer-col address a { padding: 0; word-break: break-word; }
.footer-legal { padding-block: 22px; border-top: 1px solid var(--footer-line); font-size: .875rem; max-width: none; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--footer-social-line); border-radius: 12px; color: var(--footer-social); text-decoration: none; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.social a:hover { background: var(--grad); border-color: transparent; transform: translateY(-2px); color: #fff; }
.social--dark a { border-color: var(--line-strong); color: var(--text); }
.social--dark a:hover { color: #fff; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 5fr 4fr 3fr 4fr; gap: 56px; } .footer-brand { grid-column: auto; } }

/* ---------- 11. Mouvement ----------------------------------------------------------------
   Apparitions au défilement : seulement si JavaScript les a activées (classe .reveal-ready). */
.reveal-ready [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

:root.theme-anim, :root.theme-anim *, :root.theme-anim *::before, :root.theme-anim *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, fill .35s ease, stroke .35s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .lg { animation: none; stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
  .art-float-a, .art-float-b, .ring-1, .core-spark, .dot { animation: none; }
  .art-layer, .glass-panel { transform: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .map, .skip-link, .hero-visual { display: none !important; }
}
