/* =========================================================
   IA Dental Lab — feuille de styles principale
   ========================================================= */

:root {
  --brand: #7FA3C9;          /* bleu du logo */
  --brand-300: #B5CDE6;
  --brand-500: #5C88B8;
  --brand-600: #3F6E9F;
  --brand-700: #2A5583;
  --navy: #0A1C35;
  --navy-2: #0F2849;
  --navy-3: #16365F;
  --cyan: #45D3E6;           /* accent "innovation" */
  --cyan-soft: rgba(69, 211, 230, .14);
  --ink: #0E1B2C;
  --text: #33445A;
  --muted: #66768B;
  --line: #E2E9F2;
  --bg: #FFFFFF;
  --bg-soft: #F3F7FB;
  --bg-tint: #EAF1F9;
  --success: #1FA67A;
  --danger: #D9485F;

  --grad-brand: linear-gradient(120deg, var(--brand-600) 0%, var(--brand) 55%, var(--cyan) 120%);
  --grad-navy: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(10, 28, 53, .06);
  --shadow: 0 14px 40px -12px rgba(10, 28, 53, .18);
  --shadow-lg: 0 30px 70px -20px rgba(10, 28, 53, .35);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typo helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--cyan); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark { color: rgba(255, 255, 255, .78); }
.hero .text-grad, .page-hero .text-grad, .section.dark .text-grad, .kit-banner .text-grad, .on-dark .text-grad { background-image: linear-gradient(110deg, #A9CAEC 0%, var(--cyan) 100%); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong { color: #fff; }
.on-dark .lead { color: rgba(255, 255, 255, .72); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  transform: translate(var(--bx), var(--by));
  white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn .ic { transition: transform .35s var(--ease-out); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn-primary { background: var(--grad-brand); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 30px -10px rgba(63, 110, 159, .7); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(63, 110, 159, .9); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.btn-sm { padding: .7em 1.2em; font-size: .85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--brand-600); }
.link-arrow .ic { transition: transform .3s var(--ease-out); }
.link-arrow:hover .ic { transform: translateX(5px); }
.on-dark .link-arrow { color: var(--cyan); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--navy); transition: opacity .7s var(--ease), visibility .7s;
}
.preloader svg { width: 92px; height: 100px; }
.preloader path { stroke: var(--brand); stroke-width: 2.6; fill: none; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.4s var(--ease) forwards; }
.preloader text { fill: #fff; opacity: 0; animation: fadeIn .6s .9s forwards; font-family: var(--font-head); font-weight: 300; }
.preloader.done { opacity: 0; visibility: hidden; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.topbar a, .topbar .hours { display: inline-flex; align-items: center; gap: .45em; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar .ic { width: 15px; height: 15px; color: var(--cyan); }
.socials { display: flex; gap: 12px; }
.socials a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); transition: background .25s, border-color .25s, transform .25s; }
.socials a:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-2px); }
.socials .ic { width: 14px; height: 14px; color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: height .35s var(--ease), box-shadow .35s, border-color .35s;
}
.header.scrolled { --header-h: 68px; border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(10,28,53,.25); }
.header .container { max-width: 1400px; padding-inline: clamp(16px, 2.4vw, 32px); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--brand); flex: none; }
.logo svg.mark { width: 40px; height: 44px; transition: transform .5s var(--ease-out); }
.logo:hover svg.mark { transform: rotate(-6deg) scale(1.05); }
.logo .word { font-family: var(--font-body); font-weight: 300; font-size: 1.45rem; letter-spacing: -.01em; color: var(--brand-500); line-height: 1; position: relative; padding-bottom: 6px; }
.logo .word::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--brand-300), transparent); }
.logo.light { color: var(--brand-300); }
.logo.light .word { color: #fff; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 11px; border-radius: 10px;
  font-family: var(--font-head); font-size: .88rem; font-weight: 500; color: var(--ink); transition: color .2s, background .2s; white-space: nowrap;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li.open > button { color: var(--brand-600); background: var(--bg-soft); }
.nav > li.active > a, .nav > li.active > button { color: var(--brand-600); }
.nav > li.active > a::after, .nav > li.active > button::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.nav .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav > li.open .chev, .nav > li:hover .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -10px; min-width: 290px; padding: 10px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top left;
  transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility .3s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav > li:hover .dropdown, .nav > li.open .dropdown, .nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: background .2s; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown .d-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand-600); flex: none; transition: background .25s, color .25s; }
.dropdown a:hover .d-ic { background: var(--grad-brand); color: #fff; }
.dropdown b { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.dropdown span { font-size: .8rem; color: var(--muted); line-height: 1.4; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.btn-client { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: .7em 1.15em; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); transition: border-color .25s, color .25s, background .25s; }
.btn-client:hover { border-color: var(--brand); color: var(--brand-600); background: var(--bg-soft); }
.btn-client .ic { color: var(--brand-600); }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10,28,53,.45); opacity: 0; transition: opacity .4s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; padding: calc(var(--header-h) + 16px) 24px 32px;
  transform: translateX(100%); transition: transform .5s var(--ease-out); overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
}
body.menu-open .drawer { pointer-events: auto; }
body.menu-open .drawer-bg { opacity: 1; }
body.menu-open .drawer-panel { transform: none; }
.drawer-panel > a:not(.btn), .drawer-panel summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer-panel summary::-webkit-details-marker { display: none; }
.drawer-panel details[open] summary .chev { transform: rotate(180deg); }
.drawer-panel details a { display: block; padding: 10px 14px; color: var(--muted); font-size: .95rem; }
.drawer-panel details a:hover { color: var(--brand-600); }
.drawer-panel .btn { margin-top: 12px; }
.drawer-panel .drawer-contact { margin-top: auto; padding-top: 24px; font-size: .9rem; color: var(--muted); display: grid; gap: 8px; }
.drawer-panel > * { opacity: 0; transform: translateX(20px); transition: opacity .4s, transform .5s var(--ease-out); }
body.menu-open .drawer-panel > * { opacity: 1; transform: none; }
body.menu-open .drawer-panel > *:nth-child(2) { transition-delay: .05s; }
body.menu-open .drawer-panel > *:nth-child(3) { transition-delay: .1s; }
body.menu-open .drawer-panel > *:nth-child(4) { transition-delay: .15s; }
body.menu-open .drawer-panel > *:nth-child(5) { transition-delay: .2s; }
body.menu-open .drawer-panel > *:nth-child(6) { transition-delay: .25s; }
body.menu-open .drawer-panel > *:nth-child(n+7) { transition-delay: .3s; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(70px, 9vw, 130px); position: relative; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.section.dark { background: var(--grad-navy); color: rgba(255,255,255,.78); overflow: hidden; }
.section.tight { padding-block: clamp(50px, 6vw, 80px); }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark .lead { color: rgba(255,255,255,.7); }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h) - 40px); min-height: calc(100svh - var(--header-h) - 40px);
  display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; padding-block: 90px 110px;
}
.hero-media { position: absolute; inset: -6%; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; opacity: .55; }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-2%, -2%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10,28,53,.97) 0%, rgba(10,28,53,.85) 40%, rgba(10,28,53,.35) 75%, rgba(10,28,53,.55) 100%); }
.blob { position: absolute; z-index: 1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 520px; height: 520px; background: #2A5583; top: -160px; left: -120px; animation: float1 16s ease-in-out infinite; }
.blob.b2 { width: 380px; height: 380px; background: var(--cyan); opacity: .22; bottom: -120px; right: 18%; animation: float2 19s ease-in-out infinite; }
.blob.b3 { width: 300px; height: 300px; background: var(--brand); opacity: .3; top: 20%; right: -80px; animation: float1 21s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px, -30px) scale(.9); } }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; font-weight: 600; margin-bottom: .4em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.hero.in h1 .w > span { transform: none; }
.hero .lead { color: rgba(255,255,255,.75); margin-bottom: 2em; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: rgba(255,255,255,.85); margin-bottom: 26px; backdrop-filter: blur(8px); }
.hero-badge b { background: var(--grad-brand); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; font-family: var(--font-head); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--cyan); }

.hero-visual { position: relative; aspect-ratio: 4/4.4; }
.hero-card-main { position: absolute; inset: 6% 4% 10% 10%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.15); }
.hero-card-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,28,53,.6)); }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 18px 4px rgba(69,211,230,.5); animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0% { top: 6%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 94%; opacity: 0; } }
.glass {
  position: absolute; z-index: 3; padding: 16px 18px; border-radius: 18px; color: #fff;
  background: rgba(10,28,53,.72); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); text-shadow: 0 1px 2px rgba(0,0,0,.35); display: flex; align-items: center; gap: 12px; font-size: .82rem; line-height: 1.3;
}
.glass b { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.glass .g-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); flex: none; }
.glass.g1 { left: -2%; top: 16%; animation: bob 6s ease-in-out infinite; }
.glass.g2 { right: -3%; top: 46%; animation: bob 7s ease-in-out infinite .8s; }
.glass.g3 { left: 6%; bottom: 2%; animation: bob 6.5s ease-in-out infinite 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(70px, 10vw, 130px) clamp(60px, 8vw, 100px); }
.page-hero .ph-media { position: absolute; inset: 0; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transform: scale(1.08); transition: transform 2.2s var(--ease-out); }
.page-hero.in .ph-media img { transform: scale(1); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10,28,53,.96) 0%, rgba(10,28,53,.8) 50%, rgba(10,28,53,.35) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,.75); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: var(--cyan); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar {
  position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s; overflow: hidden; display: flex; flex-direction: column;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar .num { position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; color: var(--bg-tint); line-height: 1; transition: color .4s; }
.pillar:hover .num { color: var(--cyan-soft); }
.icon-box { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand-600); margin-bottom: 24px; transition: background .4s, color .4s, transform .5s var(--ease-out); position: relative; z-index: 1; }
.icon-box .ic { width: 26px; height: 26px; }
.pillar:hover .icon-box, .tile:hover .icon-box { background: var(--grad-brand); color: #fff; transform: rotate(-8deg) scale(1.06); }
.pillar h3 { position: relative; z-index: 1; }
.pillar p { font-size: .95rem; color: var(--muted); flex: 1; }
.pillar .tag { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px; background: var(--cyan-soft); color: #0f8a9b; font-size: .75rem; font-weight: 600; font-family: var(--font-head); align-self: flex-start; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.reverse > .split-media { order: 2; }
.split-media { position: relative; }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.4; }
.media-frame.wide { aspect-ratio: 4/3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.media-frame.in img, .no-js .media-frame img { transform: scale(1); }
.media-frame[data-reveal="mask"] { clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1.3s var(--ease-out); }
.media-frame[data-reveal="mask"].in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.media-accent { position: absolute; width: 46%; aspect-ratio: 1; right: -8%; bottom: -10%; border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.media-accent img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; left: -24px; top: 28px; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; z-index: 2; animation: bob 6s ease-in-out infinite; }
.media-badge b { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); line-height: 1; display: block; }
.media-badge span { font-size: .8rem; color: var(--muted); }
.media-badge .icon-box { margin: 0; width: 46px; height: 46px; }
.dots-deco { position: absolute; width: 140px; height: 140px; left: -40px; bottom: -40px; z-index: -1; background-image: radial-gradient(var(--brand-300) 1.6px, transparent 1.6px); background-size: 14px 14px; opacity: .7; }

.check-list { display: grid; gap: 14px; margin: 26px 0 32px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .ck { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--cyan-soft); color: #0f8a9b; flex: none; margin-top: 1px; }
.check-list .ck .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.on-dark .check-list .ck, .section.dark .check-list .ck { background: rgba(69,211,230,.15); color: var(--cyan); }

/* ---------- Kit banner ---------- */
.kit-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px);
  background: var(--grad-navy); color: rgba(255,255,255,.8); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.kit-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.kit-banner .kit-glow { position: absolute; width: 420px; height: 420px; right: -100px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(69,211,230,.35), transparent 65%); animation: float2 14s ease-in-out infinite; }
.kit-banner .kit-teeth { position: absolute; right: 22%; bottom: -30px; width: 160px; opacity: .08; color: #fff; }
.kit-banner > * { position: relative; z-index: 1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--navy-2); padding: 38px 28px; text-align: center; position: relative; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 600; line-height: 1; margin-bottom: 10px; background: linear-gradient(120deg, #fff, var(--brand-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .92rem; color: rgba(255,255,255,.65); }
.stats.light { background: var(--line); }
.stats.light .stat { background: #fff; }
.stats.light .stat b { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; }
.stats.light .stat span { color: var(--muted); }

/* ---------- Product cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.p-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--navy); color: #fff; isolation: isolate; box-shadow: var(--shadow-sm); transition: box-shadow .5s, transform .5s var(--ease-out); }
.p-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; z-index: -2; }
.p-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,28,53,0) 35%, rgba(10,28,53,.92) 100%); transition: opacity .5s; }
.p-card:hover img { transform: scale(1.08); }
.p-card:hover { box-shadow: var(--shadow-lg); }
.p-card .p-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.p-card h3 { color: #fff; margin-bottom: 8px; }
.p-card p { font-size: .88rem; color: rgba(255,255,255,.75); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s, margin .5s; }
.p-card:hover p, .p-card:focus-visible p { max-height: 120px; opacity: 1; margin-bottom: 14px; }
.p-card .go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--cyan); }
.p-card .go .ic { transition: transform .3s var(--ease-out); }
.p-card:hover .go .ic { transform: translateX(5px); }
.p-card .p-index { position: absolute; top: 20px; left: 22px; font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; color: rgba(255,255,255,.75); }

/* product detail cards (light) */
.d-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease-out), box-shadow .5s; }
.d-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.d-card .d-media { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.d-card .d-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.d-card:hover .d-media img { transform: scale(1.07); }
.d-card .d-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.d-card .d-body p { font-size: .94rem; color: var(--muted); flex: 1; }
.d-card .d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--brand-700); font-size: .76rem; font-weight: 600; font-family: var(--font-head); }
.chip.cyan { background: var(--cyan-soft); color: #0f8a9b; }
.d-card.no-media .d-body { padding-top: 30px; }
.d-card.no-media .icon-box { margin-bottom: 18px; }

/* ---------- Catalogue CTA ---------- */
.catalogue { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.book { position: relative; width: min(340px, 80%); margin-inline: auto; aspect-ratio: 3/4; perspective: 1400px; }
.book-cover {
  position: absolute; inset: 0; border-radius: 6px 16px 16px 6px; overflow: hidden; background: var(--grad-navy); color: #fff; padding: 30px 26px;
  display: flex; flex-direction: column; justify-content: space-between; transform: rotateY(-18deg) rotateX(4deg); transform-style: preserve-3d;
  box-shadow: 30px 30px 60px -20px rgba(10,28,53,.55), inset 6px 0 0 rgba(255,255,255,.08); transition: transform .9s var(--ease-out);
}
.book:hover .book-cover { transform: rotateY(-6deg) rotateX(2deg) translateY(-6px); }
.book-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent); }
.book-cover img { position: absolute; inset: 40% 0 0 0; width: 100%; height: 60%; object-fit: cover; opacity: .55; mask-image: linear-gradient(180deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); }
.book-cover .bk-title { position: relative; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.book-cover .bk-year { position: relative; font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em; color: var(--cyan); }
.book-pages { position: absolute; inset: 3% -3% 3% 4%; background: repeating-linear-gradient(90deg, #fff 0 2px, #e6ecf3 2px 3px); border-radius: 4px 12px 12px 4px; transform: rotateY(-18deg) translateZ(-14px); z-index: -1; }

/* ---------- News ---------- */
.n-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s; text-align: left; height: 100%; }
.n-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.n-card .n-media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.n-card .n-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.n-card:hover .n-media img { transform: scale(1.06); }
.n-card .n-cat { position: absolute; left: 16px; top: 16px; }
.n-card .n-cat .chip { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.n-card .n-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.n-card time { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.n-card h3 { font-size: 1.1rem; margin: 0; transition: color .3s; }
.n-card:hover h3 { color: var(--brand-600); }
.n-card p { font-size: .9rem; color: var(--muted); margin: 0; flex: 1; }

/* ---------- Trust + marquee ---------- */
.trust { padding-block: 46px; border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.trust-line { text-align: center; font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--ink); margin-bottom: 28px; }
.trust-line b { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 60px; padding-right: 60px; flex: none; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #9AABC0; letter-spacing: .02em; white-space: nowrap; display: flex; align-items: center; gap: 12px; transition: color .3s; }
.marquee-item:hover { color: var(--brand-600); }
.marquee-item .ic { color: var(--brand-300); }
@keyframes marquee { to { transform: translateX(-100%); } }
.section.dark .marquee-item { color: rgba(255,255,255,.45); }

/* ---------- Tiles (pré-footer) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease-out), box-shadow .4s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .icon-box { margin: 0; width: 50px; height: 50px; }
.tile b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.tile span { font-size: .87rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Timeline (process) ---------- */
.timeline { position: relative; display: grid; gap: 26px; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-fill { position: absolute; left: 31px; top: 10px; width: 2px; height: calc(100% - 20px); background: var(--grad-brand); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 28px; align-items: start; }
.step-dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-family: var(--font-head); font-weight: 700; color: var(--brand-600); position: relative; z-index: 1; transition: background .5s, color .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease-out); }
.step.active .step-dot { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 0 0 8px rgba(127,163,201,.18); transform: scale(1.05); }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: 1fr 180px; gap: 26px; align-items: center; transition: box-shadow .5s, border-color .5s; }
.step.active .step-card { box-shadow: var(--shadow); border-color: transparent; }
.step-card .chip { margin-bottom: 10px; }
.step-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-card .step-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.step-card .step-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Device mockup (espace client) ---------- */
.device { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.laptop { position: relative; border-radius: 18px 18px 6px 6px; background: #111c2c; padding: 14px 14px 18px; box-shadow: var(--shadow-lg); }
.laptop::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -16px; height: 16px; background: linear-gradient(180deg, #c9d3df, #8e9bab); border-radius: 0 0 18px 18px; }
.screen { border-radius: 8px; overflow: hidden; background: #F5F8FC; aspect-ratio: 16/10; display: grid; grid-template-columns: 26% 1fr; font-size: 9px; color: var(--muted); }
.scr-side { background: var(--navy); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.scr-side i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); }
.scr-side i.on { background: var(--brand); }
.scr-side .scr-logo { height: 14px; width: 70%; background: rgba(255,255,255,.4); margin-bottom: 8px; }
.scr-main { padding: 12px; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; }
.scr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scr-kpis div { background: #fff; border-radius: 6px; padding: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.scr-kpis b { display: block; font-size: 13px; color: var(--ink); font-family: var(--font-head); }
.scr-row { display: grid; grid-template-columns: 1fr 70px 46px; gap: 8px; align-items: center; background: #fff; border-radius: 6px; padding: 7px 8px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.scr-row i { height: 6px; border-radius: 3px; background: var(--line); display: block; }
.scr-row em { font-style: normal; font-size: 8px; padding: 2px 6px; border-radius: 6px; text-align: center; background: var(--cyan-soft); color: #0f8a9b; }
.scr-row em.wip { background: #FFF2DA; color: #A86A00; }
.scr-list { display: grid; gap: 6px; align-content: start; }
.scr-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.scr-bar span { display: block; height: 100%; width: 0; background: var(--grad-brand); transition: width 2s var(--ease-out); }
.in .scr-bar span { width: var(--w); }
.phone { position: absolute; right: -4%; bottom: -12%; width: 26%; aspect-ratio: 9/19; border-radius: 22px; background: #111c2c; padding: 6px; box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.phone .ph-screen { width: 100%; height: 100%; border-radius: 17px; background: linear-gradient(180deg, var(--navy) 0 30%, #F5F8FC 30%); padding: 14px 8px; display: grid; gap: 6px; align-content: start; }
.phone .ph-screen i { display: block; height: 18px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.phone .ph-screen i:first-child { height: 8px; width: 60%; background: rgba(255,255,255,.5); margin-bottom: 18px; box-shadow: none; }

/* ---------- Schedule (logistique) ---------- */
.schedule { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.sch-col { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.sch-col h3 { margin: 0; padding: 20px 24px; background: var(--grad-navy); color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.sch-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); font-size: .92rem; }
.sch-row:first-of-type { border-top: 0; }
.sch-row .from b, .sch-row .to b { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.sch-row small { color: var(--muted); }
.sch-row .arrow { color: var(--brand); display: grid; place-items: center; }
.sch-row .to { text-align: right; }
.sch-row:hover { background: var(--bg-soft); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier { border-radius: var(--radius); padding: 30px 28px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.tier .plus { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; line-height: 1; margin-bottom: 4px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier ul { display: grid; gap: 10px; margin-top: 16px; }
.tier li { display: flex; gap: 10px; font-size: .92rem; }
.tier li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex: none; }

.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.zone { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .4s, transform .4s var(--ease-out); }
.zone:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.zone .icon-box { background: rgba(69,211,230,.12); color: var(--cyan); }
.zone h3 { font-size: 1.1rem; }
.zone p { font-size: .9rem; margin: 0; }

/* ---------- Tabs ---------- */
.tabs { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.tab-list { display: flex; gap: 6px; padding: 10px; background: var(--bg-soft); overflow-x: auto; scrollbar-width: none; position: relative; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn { position: relative; z-index: 1; padding: 11px 20px; border-radius: 12px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; transition: color .3s; }
.tab-btn[aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; z-index: 0; top: 10px; bottom: 10px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); transition: left .45s var(--ease-out), width .45s var(--ease-out); }
.tab-panel { padding: clamp(26px, 4vw, 44px); display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.steps-ol { counter-reset: s; display: grid; gap: 14px; }
.steps-ol li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps-ol li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-tint); color: var(--brand-700); font-family: var(--font-head); font-weight: 700; font-size: .85rem; }

/* ---------- Tech columns ---------- */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.tech-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.tech-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,28,53,.1) 0%, rgba(10,28,53,.95) 70%); }
.tech-card:hover img { transform: scale(1.08); }
.tech-card .t-body { padding: 26px; }
.tech-card h3 { color: #fff; }
.tech-card p { font-size: .88rem; color: rgba(255,255,255,.75); margin: 0; }
.tech-card .t-num { position: absolute; top: 20px; left: 24px; font-family: var(--font-head); font-size: .78rem; letter-spacing: .14em; color: var(--cyan); }

/* ---------- Resources ---------- */
.res-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.res-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.res-card .res-top { display: flex; justify-content: space-between; align-items: center; }
.res-card .pdf { font-family: var(--font-head); font-size: .7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: #FDECEF; color: var(--danger); letter-spacing: .06em; }
.res-card h3 { font-size: 1.02rem; margin: 0; }
.res-card p { font-size: .87rem; color: var(--muted); margin: 0; flex: 1; }
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,28,53,.2), rgba(10,28,53,.9)); }
.video-card .play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); }
.video-card .play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: pulse 2.4s infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.video-card .v-body { padding: 22px; }
.video-card h3 { color: #fff; font-size: 1.05rem; margin: 6px 0 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(10,28,53,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.modal-box { position: relative; width: min(760px, 100%); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .4s, transform .5s var(--ease-out); }
.modal.open { pointer-events: auto; }
.modal.open .modal-bg { opacity: 1; }
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-media { aspect-ratio: 16/7; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(24px, 4vw, 44px); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .3s; z-index: 2; }
.modal-close:hover { transform: rotate(90deg); }
body.modal-lock { overflow: hidden; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 30px; align-items: start; }
.form-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 48px); position: relative; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--ink); }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .25s, background .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2366768B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(127,163,201,.2); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { font-size: .78rem; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--brand-600); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -5000px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: none; padding: 14px 18px; border-radius: 12px; font-size: .9rem; margin-top: 18px; }
.form-status.error { display: block; background: #FDECEF; color: #9C2235; }
.form-success { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; text-align: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.form-success.show { opacity: 1; visibility: visible; }
.form-success svg { width: 90px; height: 90px; margin: 0 auto 20px; }
.form-success circle { stroke: var(--success); stroke-width: 3; fill: none; stroke-dasharray: 280; stroke-dashoffset: 280; }
.form-success path { stroke: var(--success); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.form-success.show circle { animation: dash .8s .1s var(--ease) forwards; }
.form-success.show path { animation: dash .5s .8s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.info-card { background: var(--grad-navy); color: rgba(255,255,255,.78); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); position: relative; overflow: hidden; }
.info-card h3 { color: #fff; }
.info-list { display: grid; gap: 22px; margin: 26px 0; position: relative; z-index: 1; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon-box { margin: 0; width: 48px; height: 48px; background: rgba(255,255,255,.08); color: var(--cyan); }
.info-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.info-list a, .info-list span { color: #fff; font-weight: 500; word-break: break-word; }
.info-list a:hover { color: var(--cyan); }
.info-card .blob { filter: blur(60px); }

/* ---------- Legal ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.todo { background: #FFF6DD; color: #7A5600; padding: 1px 6px; border-radius: 5px; font-size: .92em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad-brand); color: #fff; padding: clamp(40px, 6vw, 70px); display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); right: -100px; top: -140px; }
.cta-band .btn-dark { background: #fff; color: var(--navy); }
.cta-band .btn-dark:hover { background: var(--navy); color: #fff; }
.cta-band > * { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding-top: clamp(60px, 8vw, 90px); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; font-size: .92rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--cyan); }
.footer .f-about p { font-size: .92rem; margin: 20px 0; max-width: 34ch; }
.footer .f-contact li { display: flex; gap: 10px; align-items: center; }
.footer .f-contact .ic { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .82rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-watermark { position: absolute; right: -60px; bottom: -80px; width: 340px; color: rgba(255,255,255,.035); pointer-events: none; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s var(--ease-out), background .3s; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-600); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(50px); }
.js [data-reveal="down"] { transform: translateY(-40px); }
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="zoom"] { transform: scale(.88); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="mask"] { opacity: 1; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* tilt */
[data-tilt] { transform-style: preserve-3d; transition: transform .5s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav, .header-cta .btn-client, .header-cta .btn-test { display: none; }
  .burger { display: block; }
  .pillars, .cards-4, .tech, .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .container, .split, .catalogue, .contact-grid, .kit-banner, .tab-panel.active { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .split.reverse > .split-media { order: 0; }
  .cards-3, .tiers, .schedule { grid-template-columns: 1fr 1fr; }
  .step-card { grid-template-columns: 1fr; }
  .step-card .step-img { display: none; }
  .media-badge { left: 10px; }
  .topbar-left .hours { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .pillars, .cards-4, .cards-3, .cards-2, .tech, .tiles, .tiers, .schedule, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 14px; }
  .topbar .socials { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-left { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .topbar-left .mail-l { display: none; }
  .logo .word { font-size: 1.2rem; }
  .logo svg.mark { width: 34px; height: 38px; }
  .header-cta .btn-primary { display: none; }
  .glass.g1 { left: 0; } .glass.g2 { right: 0; }
  .glass { padding: 10px 12px; font-size: .74rem; }
  .glass b { font-size: 1.05rem; }
  .glass .g-ic { width: 34px; height: 34px; }
  .p-card { aspect-ratio: 4/4.2; }
  .p-card p { max-height: 120px; opacity: 1; margin-bottom: 12px; }
  .tech-card { min-height: 360px; }
  .media-accent { display: none; }
  .timeline::before, .timeline-fill { left: 21px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step-dot { width: 44px; height: 44px; font-size: .85rem; }
  .step-card { padding: 20px; }
  .sch-row { padding: 12px 16px; grid-template-columns: 1fr 26px 1fr; font-size: .85rem; }
  .phone { display: none; }
  .scroll-hint { display: none; }
  .btn { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 900px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .4s, border-color .4s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-tint); color: var(--brand-600); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease-out), background .3s, color .3s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--grad-brand); color: #fff; }
.faq .faq-a { padding: 0 26px 24px; color: var(--muted); }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- Process strip ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: pr; }
.process::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--line), var(--brand-300), var(--line)); }
.process-step { text-align: center; position: relative; padding: 0 6px; }
.process-step .icon-box { margin: 0 auto 18px; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-sm); }
.process-step:hover .icon-box { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-4px); }
.process-step h3 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Divers ---------- */
button.n-card { width: 100%; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.article h3 { margin-top: 1.4em; font-size: 1.1rem; }
.article ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; color: var(--text); }
.article .chip { margin-bottom: 12px; }
.commit { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; transition: transform .4s var(--ease-out), box-shadow .4s; }
.commit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.commit .icon-box { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.commit:hover .icon-box { background: var(--grad-brand); color: #fff; }
.q-card { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .4s, transform .4s var(--ease-out); }
.q-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.q-card .icon-box { background: rgba(69,211,230,.12); color: var(--cyan); }
.q-card h3 { font-size: 1.1rem; }
.q-card p { font-size: .92rem; margin: 0; }
.note { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; }
.note .ic { color: var(--brand-600); margin-top: 3px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .process::before { display: none; }
}
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }
.section.dark strong, .kit-banner strong, .cta-band strong, .info-card strong, .zone strong { color: #fff; }

/* ---------- Header transparent (accueil) ---------- */
.header-transparent { position: fixed; left: 0; right: 0; top: 0; transition: height .35s var(--ease), box-shadow .35s, border-color .35s, background .45s var(--ease); }
.header-transparent:not(.scrolled) {
  background: linear-gradient(180deg, rgba(10,28,53,.55), rgba(10,28,53,0));
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-color: transparent;
}
.header-transparent:not(.scrolled) .logo { color: var(--brand-300); }
.header-transparent:not(.scrolled) .logo .word { color: #fff; }
.header-transparent:not(.scrolled) .nav > li > a,
.header-transparent:not(.scrolled) .nav > li > button { color: rgba(255,255,255,.9); }
.header-transparent:not(.scrolled) .nav > li > a:hover,
.header-transparent:not(.scrolled) .nav > li > button:hover,
.header-transparent:not(.scrolled) .nav > li.open > button { color: #fff; background: rgba(255,255,255,.1); }
.header-transparent:not(.scrolled) .btn-client { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.header-transparent:not(.scrolled) .btn-client .ic { color: var(--cyan); }
.header-transparent:not(.scrolled) .btn-client:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.header-transparent:not(.scrolled) .burger { background: rgba(255,255,255,.12); }
.header-transparent:not(.scrolled) .burger span { background: #fff; }
.header-transparent .logo .word, .header-transparent .nav > li > a, .header-transparent .nav > li > button, .header-transparent .btn-client { transition: color .35s, background .35s, border-color .35s; }
/* menu mobile ouvert : header opaque */
body.menu-open .header-transparent { background: #fff; }
body.menu-open .header-transparent .logo .word { color: var(--brand-500); }
body.menu-open .header-transparent .logo { color: var(--brand); }
body.menu-open .header-transparent .burger { background: var(--bg-soft); }
body.menu-open .header-transparent .burger span { background: var(--ink); }
/* le hero passe sous le header */
.header-transparent ~ main .hero { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 70px); }

/* ---------- Anti-débordement horizontal (mobile) ---------- */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main, .footer { overflow-x: clip; }
.media-badge.br { left: auto; right: -20px; top: auto; bottom: 30px; }
@media (max-width: 900px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(40px); }
  .media-badge, .media-badge.br { left: 12px; right: auto; top: auto; bottom: 12px; }
  .dots-deco { display: none; }
}

/* ---------- Logo original ---------- */
.logo { gap: 0; }
.logo-img { height: 50px; width: auto; display: block; transition: opacity .35s, transform .5s var(--ease-out); }
.logo:hover .logo-img { transform: scale(1.03); }
.header.scrolled .logo-img { height: 44px; }
.logo .logo-white { display: none; }
.header-transparent:not(.scrolled) .logo .logo-color { display: none; }
.header-transparent:not(.scrolled) .logo .logo-white { display: block; }
body.menu-open .header-transparent .logo .logo-color { display: block; }
body.menu-open .header-transparent .logo .logo-white { display: none; }
.footer .logo-img { height: 54px; }
.footer-watermark { width: 260px; opacity: .05; color: inherit; }
.kit-banner .kit-teeth { width: 130px; opacity: .1; }
/* préchargement : le logo se révèle en balayage */
.pre-logo { width: min(320px, 70vw); position: relative; }
.pre-logo img { width: 100%; height: auto; clip-path: inset(0 100% 0 0); animation: logoWipe 1.1s .1s var(--ease-out) forwards; }
.pre-logo::after { content: ""; position: absolute; top: -10%; bottom: -10%; width: 2px; left: 0; background: var(--cyan); box-shadow: 0 0 16px 3px rgba(69,211,230,.6); opacity: 0; animation: logoScan 1.1s .1s var(--ease-out) forwards; }
@keyframes logoWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes logoScan { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 640px) {
  .logo-img { height: 40px; }
  .header.scrolled .logo-img { height: 38px; }
}
