/* =========================================================
   CyNoLux — Design System
   Cyber · Novation · Luxury
   Glassmorphism, lumineux, navy + or
   ========================================================= */

/* ---------- Fonts ---------- */
/* Polices auto-hébergées : voir assets/css/fonts.css, chargé avant celui-ci. */

/* ---------- Tokens ---------- */
:root{
  /* Brand */
  --navy-900:#071938;
  --navy-800:#0A2258;
  --navy-700:#0B2A6B;
  --navy-600:#123B8F;
  --navy-500:#1E4DB7;
  --navy-400:#3E6BDB;
  --gold-700:#B8790A;
  --gold-600:#E5A20D;
  --gold-500:#FDB913;
  --gold-400:#FFCB47;
  --gold-300:#FFDA6B;
  --gold-200:#FFE9A8;

  /* Surface */
  --bg:#F5F8FE;
  --bg-soft:#EBF1FC;
  --bg-deep:#E3EAFB;
  --ink:#0E1830;
  --ink-muted:#4D5877;
  --ink-faint:#7A85A3;
  --white:#FFFFFF;

  /* Glass */
  --glass-fill: rgba(255,255,255,.58);
  --glass-fill-strong: rgba(255,255,255,.78);
  --glass-border: rgba(255,255,255,.75);
  --glass-shadow: 0 20px 60px -20px rgba(11,42,107,.28);
  --glass-shadow-sm: 0 10px 30px -12px rgba(11,42,107,.22);
  --glass-fill-dark: rgba(11,25,56,.55);
  --glass-border-dark: rgba(255,255,255,.14);

  /* Type */
  --f-display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --f-body: "Plus Jakarta Sans", sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  /* Radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
}

@media (prefers-color-scheme: dark){
  :root{ color-scheme: light; }
}

/* ---------- Native cross-page transition (progressive enhancement) ---------- */
@view-transition{ navigation:auto; }

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; background:var(--bg); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
body{
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,textarea,select{ font-family:inherit; font-size:inherit; color:inherit; }
:focus-visible{ outline:2.5px solid var(--gold-500); outline-offset:3px; border-radius:4px; }

h1,h2,h3,h4{ font-family:var(--f-display); font-weight:700; color:var(--navy-800); line-height:1.12; letter-spacing:-.01em; }
h1{ font-size:clamp(2.6rem,5.2vw,4.6rem); }
h2{ font-size:clamp(2rem,3.6vw,3rem); }
h3{ font-size:clamp(1.3rem,2vw,1.7rem); }
p{ color:var(--ink-muted); }

.container{ width:100%; max-width:1240px; margin-inline:auto; padding-inline:24px; }
.container--narrow{ max-width:860px; }

section{ position:relative; padding:120px 0; }
@media (max-width:900px){ section{ padding:80px 0; } }

/* ---------- Ambient background blobs ---------- */
.blob-field{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.blob{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.55; }
.blob--navy{ background:radial-gradient(circle at 30% 30%, var(--navy-500), transparent 70%); }
.blob--gold{ background:radial-gradient(circle at 30% 30%, var(--gold-400), transparent 70%); }

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow{
  font-family:var(--f-mono); font-size:.78rem; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; color:var(--navy-600);
  display:inline-flex; align-items:center; gap:10px; margin-bottom:18px;
}
.eyebrow::before{ content:""; width:22px; height:1.5px; background:var(--gold-500); display:inline-block; }
.eyebrow--light{ color:var(--gold-300); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--f-body); font-weight:700; font-size:.96rem;
  padding:15px 30px; border-radius:var(--r-pill);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color:var(--navy-900);
  box-shadow:0 14px 30px -10px rgba(253,185,19,.55);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 20px 38px -10px rgba(253,185,19,.65); }
.btn-ghost{
  background:var(--glass-fill); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--glass-border); color:var(--navy-700);
}
.btn-ghost:hover{ transform:translateY(-3px); background:var(--glass-fill-strong); }
.btn-dark{
  background:var(--navy-800); color:var(--white);
  box-shadow:0 14px 30px -12px rgba(7,25,56,.5);
}
.btn-dark:hover{ transform:translateY(-3px); background:var(--navy-700); }
.btn-sm{ padding:11px 22px; font-size:.86rem; }
.btn i{ font-size:1.05em; }

/* ---------- Glass surfaces ---------- */
.glass{
  background:var(--glass-fill);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:var(--r-lg);
  box-shadow:var(--glass-shadow-sm);
}
.glass-dark{
  background:var(--glass-fill-dark);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid var(--glass-border-dark);
  border-radius:var(--r-lg);
  color:var(--white);
}
.detail-card{ padding:48px 44px; }
@media (max-width:640px){ .detail-card{ padding:30px 22px; } }
.detail-back{ display:inline-flex; align-items:center; gap:8px; font-size:.86rem; font-weight:600; color:var(--ink-muted); margin-bottom:22px; }
.detail-back:hover{ color:var(--navy-800); }
[data-theme="dark"] .detail-back:hover{ color:var(--gold-400); }

/* ---------- Header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  transition:padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header .header-inner{
  max-width:1440px; margin-inline:auto;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:var(--glass-fill);
  backdrop-filter:blur(20px) saturate(160%); -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:var(--r-pill);
  padding:10px 14px 10px 22px;
  box-shadow:var(--glass-shadow-sm);
  transition:box-shadow .3s var(--ease);
}
/* La marge latérale est portée par le header, pas par la pilule : celle-ci
   peut ainsi occuper toute la largeur disponible sans coller aux bords. */
.site-header{ padding-inline:24px; }
@media (max-width:520px){ .site-header{ padding-inline:14px; } }
.site-header.is-scrolled .header-inner{ box-shadow:var(--glass-shadow); }
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:38px; width:auto; }
.brand-word{ font-family:var(--f-display); font-weight:700; font-size:1.18rem; color:var(--navy-800); letter-spacing:-.01em; }
.brand-word span{ color:var(--gold-600); }

.nav-menu{ display:flex; align-items:center; gap:2px; flex:0 1 auto; min-width:0; }
.nav-menu a{
  font-family:var(--f-body); font-weight:600; font-size:.92rem; color:var(--ink-muted);
  padding:10px 15px; border-radius:var(--r-pill); transition:color .25s, background .25s;
  position:relative; white-space:nowrap;
}
.nav-menu a:hover, .nav-menu a.active{ color:var(--navy-800); background:rgba(11,42,107,.06); }
.nav-menu a.active{ color:var(--navy-800); }
.nav-menu a.active::after{
  content:""; position:absolute; left:16px; right:16px; bottom:5px; height:2px;
  background:var(--gold-500); border-radius:2px;
}
.nav-menu a.nav-flagship{ color:var(--navy-800); background:rgba(229,162,13,.12); font-weight:700; }
.nav-menu a.nav-flagship:hover{ background:rgba(229,162,13,.22); }
.nav-flagship-badge{
  font-family:var(--f-mono); font-size:.6rem; font-weight:700; color:var(--gold-700);
  background:rgba(229,162,13,.18); padding:2px 7px; border-radius:var(--r-pill);
  margin-left:6px; letter-spacing:.03em; vertical-align:2px;
}
.header-cta{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.mobile-nav-toggle{ display:none; font-size:1.4rem; color:var(--navy-800); padding:8px; }

/* Mobile full-screen menu — kept OUTSIDE the glass header on purpose:
   a backdrop-filter ancestor becomes a containing block for fixed
   descendants, which would trap an inset:0 overlay inside the pill. */
.mobile-nav{ display:none; }

@media (max-width:980px){
  .nav-menu{ display:none; }
  .header-cta .btn-ghost, .header-cta .btn-primary{ display:none; }
  .mobile-nav-toggle{ display:inline-flex; z-index:101; }
  .brand-word{ font-size:1.05rem; }
  .mobile-nav-toggle .bi-x{ display:none; }
  .mobile-nav-toggle.is-open .bi-list{ display:none; }
  .mobile-nav-toggle.is-open .bi-x{ display:inline-flex; }

  .mobile-nav{
    position:fixed; inset:0; z-index:99; display:flex; flex-direction:column;
    justify-content:flex-start; align-items:center; gap:6px;
    padding:110px 20px 50px; overflow-y:auto; -webkit-overflow-scrolling:touch;
    background:rgba(245,248,254,.98); backdrop-filter:blur(24px);
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .35s var(--ease), transform .35s var(--ease);
  }
  .mobile-nav.is-open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .mobile-nav a{ font-family:var(--f-body); font-weight:700; font-size:1.25rem; color:var(--ink-muted); padding:12px 26px; border-radius:var(--r-pill); }
  .mobile-nav a:hover, .mobile-nav a.active{ color:var(--navy-800); background:rgba(11,42,107,.06); }
  .mobile-nav a.nav-flagship{ color:var(--gold-700); }
  .mobile-nav .btn-primary{ margin-top:14px; flex-shrink:0; }
}

/* ---------- Hero ---------- */
.hero{ padding-top:190px; padding-bottom:100px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; position:relative; z-index:1; }
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } .hero{ padding-top:160px; } }
.hero h1{ margin-bottom:22px; }
.hero h1 em{ font-style:normal; color:var(--navy-500);
  background:linear-gradient(90deg, var(--navy-700), var(--navy-400) 60%, var(--gold-500));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.hero p.lead{ font-size:1.15rem; max-width:520px; margin-bottom:36px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:52px; }
.hero-stats{ display:flex; gap:14px; flex-wrap:wrap; }
.stat-chip{ display:flex; flex-direction:column; gap:2px; padding:14px 22px; }
.stat-chip strong{ font-family:var(--f-display); font-size:1.5rem; color:var(--navy-800); }
.stat-chip span{ font-size:.78rem; color:var(--ink-faint); font-weight:600; }

/* Signature visual: interlocking rings echoing the C/N mark */
.hero-visual{ position:relative; height:480px; display:flex; align-items:center; justify-content:center; }
.orbit-ring{ position:absolute; border-radius:50%; border:1.5px solid rgba(11,42,107,.15); }
.orbit-ring--1{ width:420px; height:420px; animation:spin 40s linear infinite; }
.orbit-ring--2{ width:320px; height:320px; border-color:rgba(253,185,19,.35); animation:spin 30s linear infinite reverse; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.pillar-card{
  position:absolute; width:172px; padding:22px 20px; text-align:left;
  animation:float 7s ease-in-out infinite;
}
.pillar-card i{ font-size:1.5rem; color:var(--gold-600); margin-bottom:10px; display:block; }
.pillar-card h4{ font-size:1rem; margin-bottom:4px; }
.pillar-card p{ font-size:.78rem; margin:0; }
.pillar-card--cyber{ top:6%; left:2%; animation-delay:0s; }
.pillar-card--novation{ bottom:14%; left:20%; animation-delay:1.2s; }
.pillar-card--luxury{ top:20%; right:0; animation-delay:2.4s; }
@keyframes float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }
.hero-mark{ width:190px; height:190px; opacity:.95; filter:drop-shadow(0 20px 40px rgba(11,42,107,.25)); }
@media (max-width:980px){
  .hero-visual{ height:360px; margin-top:20px; }
  .pillar-card{ width:132px; padding:16px 14px; }
  .orbit-ring--1{ width:300px; height:300px; }
  .orbit-ring--2{ width:220px; height:220px; }
  .hero-mark{ width:130px; height:130px; }
}
@media (max-width:560px){
  .pillar-card--cyber{ left:-4%; }
  .pillar-card--luxury{ right:-8%; }
}

/* ---------- Section headers ---------- */
.section-head{ max-width:680px; margin-bottom:64px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head p{ font-size:1.05rem; margin-top:16px; }

/* ---------- Cards grid ---------- */
.grid{ display:grid; gap:28px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:980px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr; } }

.card{
  padding:36px 30px; position:relative; overflow:hidden;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.card:hover{ transform:translateY(-8px); box-shadow:var(--glass-shadow); background:var(--glass-fill-strong); }
.card-icon{
  width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:transparent; border:1.5px solid var(--gold-500); color:var(--navy-700);
  font-size:1.5rem; margin-bottom:20px; flex-shrink:0;
  transition:transform .35s var(--ease), color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.card:hover .card-icon,
.contact-info-card:hover .card-icon,
.svc-assist-card:hover .card-icon,
.glass.text-center:hover .card-icon{
  transform:scale(1.12) rotate(-6deg);
  color:var(--gold-600); border-color:var(--gold-600); background:rgba(253,185,19,.1);
}
.card h3{ margin-bottom:10px; }
.card p{ font-size:.95rem; margin-bottom:0; }
.card .card-link{
  display:inline-flex; align-items:center; gap:6px; margin-top:18px;
  font-weight:700; font-size:.85rem; color:var(--navy-700); transition:gap .25s;
}
.card .card-link:hover{ gap:10px; color:var(--gold-700); }

/* number tag for ordered lists */
.tag-index{ font-family:var(--f-mono); font-size:.75rem; color:var(--gold-600); font-weight:600; }

/* ---------- Reveal on scroll ---------- */
[data-reveal]{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal="left"]{ transform:translateX(-36px); }
[data-reveal="right"]{ transform:translateX(36px); }
[data-reveal="scale"]{ transform:translateY(10px) scale(.92); }
[data-reveal].is-visible{ opacity:1; transform:none; }
[data-reveal-delay="1"]{ transition-delay:.08s; }
[data-reveal-delay="2"]{ transition-delay:.16s; }
[data-reveal-delay="3"]{ transition-delay:.24s; }
[data-reveal-delay="4"]{ transition-delay:.32s; }
[data-reveal-delay="5"]{ transition-delay:.4s; }

/* ---------- Divider strip ---------- */
.marquee{
  overflow:hidden; border-top:1px solid rgba(11,42,107,.12); border-bottom:1px solid rgba(11,42,107,.12);
  padding:22px 0; background:var(--bg-soft);
}
.marquee-track{ display:flex; gap:52px; width:max-content; animation:scroll-x 26s linear infinite; }
@keyframes scroll-x{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.marquee-item{ font-family:var(--f-mono); font-size:.85rem; color:var(--navy-600); font-weight:600; display:flex; align-items:center; gap:14px; white-space:nowrap; }
.marquee-item i{ color:var(--gold-500); }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius:var(--r-xl); padding:80px 60px; text-align:center; position:relative; overflow:hidden;
  background:var(--navy-800);
  color:var(--white);
}
.cta-band::before{ content:none; }
.cta-band > *{ position:relative; z-index:1; }
.cta-band h2{ color:var(--white); margin-bottom:16px; }
.cta-band p{ color:rgba(255,255,255,.78); max-width:560px; margin-inline:auto; margin-bottom:36px; font-size:1.05rem; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-900); color:rgba(255,255,255,.75); padding-top:90px; position:relative; overflow:hidden; }
.site-footer::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 90% 0%, rgba(253,185,19,.10), transparent 40%);
  pointer-events:none;
}
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; position:relative; z-index:1; padding-bottom:60px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand .brand-word{ color:var(--white); }
.footer-brand p{ margin-top:16px; max-width:300px; font-size:.92rem; color:rgba(255,255,255,.6); }
.footer-tagline{ font-family:var(--f-mono); font-size:.78rem; letter-spacing:.12em; color:var(--gold-400); margin-top:14px; text-transform:uppercase; }
.footer-col h5{ font-family:var(--f-display); font-size:.95rem; color:var(--white); margin-bottom:20px; letter-spacing:.02em; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col a, .footer-col span{ font-size:.9rem; color:rgba(255,255,255,.62); transition:color .25s; }
.footer-col a:hover{ color:var(--gold-400); }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); transition:background .25s, transform .25s;
}
.footer-social a:hover{ background:var(--gold-500); color:var(--navy-900); transform:translateY(-3px); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); padding:24px 0; position:relative; z-index:1;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:.82rem; color:rgba(255,255,255,.5);
}
.footer-bottom a{ color:rgba(255,255,255,.5); }
.footer-bottom a:hover{ color:var(--gold-400); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  padding-top:104px; padding-bottom:30px; text-align:center; position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center;
  min-height:620px; /* aligné sur la hauteur réelle du hero-slider (accueil) */
}
@media (max-width:900px){ .page-hero{ min-height:640px; } }
.page-hero .eyebrow{ justify-content:center; }
.breadcrumb{ font-family:var(--f-mono); font-size:.8rem; color:var(--ink-faint); margin-top:18px; display:flex; gap:8px; justify-content:center; }
.breadcrumb a{ color:var(--navy-600); font-weight:600; }

/* ---------- Tabs (services) ---------- */
.tab-nav{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:56px; }
.tab-btn{
  padding:12px 22px; border-radius:var(--r-pill); font-weight:700; font-size:.88rem;
  background:var(--glass-fill); border:1px solid var(--glass-border); color:var(--ink-muted);
  transition:all .3s var(--ease); display:flex; align-items:center; gap:8px;
}
.tab-btn i{ font-size:1.05rem; }
.tab-btn:hover{ color:var(--navy-800); }
.tab-btn.active{ background:linear-gradient(135deg, var(--navy-700), var(--navy-500)); color:var(--white); border-color:transparent; box-shadow:0 12px 26px -10px rgba(11,42,107,.5); }

.service-panel{ display:none; }
.service-panel.active{ display:block; animation:fadein .5s var(--ease); }
@keyframes fadein{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }

.service-detail{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:start; padding:48px; }
@media (max-width:900px){ .service-detail{ grid-template-columns:1fr; padding:32px 24px; gap:32px; } }
.service-detail .card-icon{ width:70px; height:70px; border-radius:20px; font-size:1.9rem; }
.feature-list li{ display:flex; gap:14px; padding:16px 0; border-bottom:1px dashed rgba(11,42,107,.14); }
.feature-list li:last-child{ border-bottom:none; }
.feature-list i{ color:var(--gold-600); font-size:1.2rem; flex-shrink:0; margin-top:2px; }
.feature-list h4{ font-size:1rem; margin-bottom:4px; color:var(--navy-800); }
.feature-list p{ font-size:.9rem; margin:0; }
.tool-chip-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.tool-chip{
  font-family:var(--f-mono); font-size:.78rem; font-weight:600; padding:8px 16px;
  border-radius:var(--r-pill); background:var(--bg-soft); color:var(--navy-700); border:1px solid rgba(11,42,107,.1);
  transition:transform .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.tool-chip:hover{
  transform:translateY(-3px);
  color:var(--gold-700); border-color:var(--gold-500); background:var(--white);
}

/* ---------- Pricing / Packs ---------- */
.pricing-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; align-items:stretch; }
@media (max-width:1100px){ .pricing-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .pricing-grid{ grid-template-columns:1fr; } }
.pricing-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .pricing-grid.cols-3{ grid-template-columns:1fr; } }
.pricing-grid.cols-2{ grid-template-columns:repeat(2,1fr); max-width:760px; margin:0 auto; }
@media (max-width:720px){ .pricing-grid.cols-2{ grid-template-columns:1fr; } }
.pack-legend{ text-align:center; max-width:700px; margin:32px auto 0; font-size:.84rem; color:var(--ink-faint); line-height:1.7; }
.pack-legend b{ color:var(--navy-700); }
[data-theme="dark"] .pack-legend b{ color:var(--gold-400); }
.price-card{ padding:36px 28px; display:flex; flex-direction:column; position:relative; }
.price-card.featured{
  background:linear-gradient(160deg, var(--navy-800), var(--navy-600));
  color:var(--white); transform:scale(1.04); box-shadow:var(--glass-shadow); border:none;
}
.price-card.featured h3, .price-card.featured .price-obj{ color:var(--white); }
.price-card.featured .price-value{ color:var(--gold-300); }
.price-card.featured p{ color:rgba(255,255,255,.7); }
.price-card.featured .pack-list li{ border-color:rgba(255,255,255,.14); }
.price-card.featured .pack-list i{ color:var(--gold-400); }
.badge-pop{
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:var(--gold-500); color:var(--navy-900); font-family:var(--f-mono); font-weight:700;
  font-size:.72rem; padding:6px 16px; border-radius:var(--r-pill); text-transform:uppercase; letter-spacing:.06em;
  box-shadow:0 8px 18px -6px rgba(253,185,19,.6);
}
.price-obj{ font-size:.85rem; color:var(--ink-faint); margin-bottom:20px; min-height:38px; }
.price-value{ font-family:var(--f-display); font-size:1.5rem; font-weight:700; color:var(--navy-800); margin-bottom:4px; line-height:1.25; }
.price-cadence{ font-size:.82rem; color:var(--ink-faint); margin-bottom:24px; }
.pack-list{ flex:1; margin-bottom:28px; }
.pack-list li{ display:flex; gap:10px; padding:10px 0; border-bottom:1px solid rgba(11,42,107,.08); font-size:.88rem; }
.pack-list li:last-child{ border:none; }
.pack-list i{ color:var(--gold-600); margin-top:3px; flex-shrink:0; }
.pack-bonus{ font-size:.82rem; color:var(--navy-600); font-weight:600; margin-bottom:18px; display:flex; gap:8px; align-items:flex-start; }
.price-card.featured .pack-bonus{ color:var(--gold-300); }

/* ---------- Timeline / process ---------- */
/* Parcours client — voir « PARCOURS CLIENT » en fin de fichier */

/* ---------- Team : portraits plein cadre, texte révélé au survol ---------- */
.team-grid{ gap:26px; }
.team-portrait{
  position:relative; overflow:hidden; border-radius:var(--r-lg);
  aspect-ratio:3/4; isolation:isolate; cursor:pointer;
  box-shadow:var(--glass-shadow-sm); outline:none;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.team-portrait:hover, .team-portrait:focus-visible{ transform:translateY(-6px); box-shadow:var(--glass-shadow); }
.team-portrait img{
  position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover;
  filter:grayscale(.15) saturate(1.05); transition:transform 1s var(--ease), filter .6s var(--ease);
}
.team-portrait:hover img, .team-portrait:focus-visible img{ transform:scale(1.08); filter:grayscale(0) saturate(1.1); }
.team-portrait-fallback{
  position:absolute; inset:0; z-index:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--f-display); font-weight:700; font-size:3rem; color:rgba(255,255,255,.85);
  background:linear-gradient(150deg, var(--navy-600), var(--navy-900));
}
.team-portrait img[src] + .team-portrait-fallback{ display:none; }
.team-portrait::after{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(0deg, rgba(7,25,56,.94) 0%, rgba(7,25,56,.5) 34%, rgba(7,25,56,0) 62%);
  transition:background .5s var(--ease);
}
.team-portrait:hover::after, .team-portrait:focus-visible::after{
  background:linear-gradient(0deg, rgba(7,25,56,.96) 0%, rgba(7,25,56,.82) 48%, rgba(7,25,56,.15) 100%);
}
.team-portrait-info{
  position:absolute; inset:0; z-index:2; padding:22px 22px 24px;
  display:flex; flex-direction:column; justify-content:flex-end; color:#fff;
}
.team-portrait-role{
  font-family:var(--f-mono); font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-400);
}
.team-portrait-info h3{ color:#fff; font-size:1.2rem; line-height:1.2; margin:5px 0 0; }
.team-portrait-info h3::after{
  content:""; display:block; width:26px; height:2px; margin-top:10px; background:var(--gold-500); border-radius:2px;
  transition:width .5s var(--ease);
}
.team-portrait:hover h3::after, .team-portrait:focus-visible h3::after{ width:54px; }
.team-portrait-more{
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .55s var(--ease), opacity .45s var(--ease), margin .55s var(--ease);
}
.team-portrait:hover .team-portrait-more, .team-portrait:focus-visible .team-portrait-more{
  max-height:220px; opacity:1; margin-top:12px;
}
.team-portrait-more p{ font-size:.85rem; line-height:1.5; color:rgba(255,255,255,.85); margin:0 0 12px; }
.team-portrait-tags{ display:flex; flex-wrap:wrap; gap:7px; }
.team-portrait-tags span{
  font-family:var(--f-mono); font-size:.68rem; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
  color:#fff; padding:4px 10px; border-radius:var(--r-pill); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.team-portrait.img-missing{ background:linear-gradient(150deg,var(--navy-600),var(--navy-900)); }

/* Sans survol possible (tactile) : le texte complet reste affiché */
@media (hover:none){
  .team-portrait-more{ max-height:none; opacity:1; margin-top:12px; overflow:visible; }
  .team-portrait::after{ background:linear-gradient(0deg, rgba(7,25,56,.96) 0%, rgba(7,25,56,.78) 55%, rgba(7,25,56,.15) 100%); }
  .team-portrait-info h3::after{ width:54px; }
}
@media (prefers-reduced-motion: reduce){
  .team-portrait, .team-portrait img, .team-portrait::after, .team-portrait-more, .team-portrait-info h3::after{ transition:none !important; }
}

/* ---------- Notre histoire : portrait + badge d'expérience ---------- */
.history-portrait{
  position:relative; border-radius:var(--r-lg); overflow:hidden;
  aspect-ratio:4/3; box-shadow:var(--glass-shadow);
}
.history-portrait img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.history-portrait.img-missing{ background:linear-gradient(150deg, var(--navy-600), var(--navy-900)); }
.history-badge{
  position:absolute; left:-26px; bottom:-26px; z-index:2;
  width:148px; height:148px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:linear-gradient(155deg, var(--navy-500), var(--navy-900));
  border:6px solid var(--bg);
  box-shadow:0 0 0 2px var(--gold-500), var(--glass-shadow);
  animation:history-badge-float 4.5s ease-in-out infinite;
}
.history-badge-num{ font-family:var(--f-display); font-size:2.6rem; font-weight:800; line-height:1; color:var(--gold-400); }
.history-badge-label{ font-family:var(--f-mono); font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; color:#fff; text-align:center; line-height:1.35; margin-top:4px; }
@keyframes history-badge-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
@media (max-width:640px){
  .history-badge{ width:118px; height:118px; left:-14px; bottom:-14px; }
  .history-badge-num{ font-size:2rem; }
}
@media (prefers-reduced-motion: reduce){
  .history-badge{ animation:none; }
}

/* ---------- Values / why-us ---------- */
.value-row{ display:flex; gap:24px; align-items:flex-start; padding:26px 0; border-bottom:1px solid rgba(11,42,107,.1); }
.value-row:last-child{ border-bottom:none; }
.value-icon{ width:52px; height:52px; border-radius:14px; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; color:var(--navy-700); font-size:1.3rem; flex-shrink:0; }

/* ---------- Portfolio ---------- */
.portfolio-filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:44px; }
.filter-btn{ padding:10px 20px; border-radius:var(--r-pill); font-size:.85rem; font-weight:700; background:var(--glass-fill); border:1px solid var(--glass-border); color:var(--ink-muted); transition:.3s; }
.filter-btn.active,.filter-btn:hover{ background:var(--navy-700); color:#fff; border-color:transparent; }
.project-card{ overflow:hidden; padding:0; display:flex; flex-direction:column; }
.project-thumb{
  height:170px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
  background:linear-gradient(135deg, var(--navy-700), var(--navy-500));
}
.project-thumb::after{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 80% 0%, rgba(253,185,19,.35), transparent 55%); }
.project-thumb span{ font-family:var(--f-display); font-weight:700; font-size:1.9rem; color:rgba(255,255,255,.92); letter-spacing:-.02em; position:relative; z-index:1; }
.project-body{ padding:26px 26px 30px; }
.project-cat{ font-family:var(--f-mono); font-size:.72rem; color:var(--gold-700); text-transform:uppercase; letter-spacing:.08em; font-weight:700; }
.project-body h3{ margin:10px 0 8px; }
.project-body p{ font-size:.9rem; }
.project-client{ margin-top:16px; font-size:.82rem; color:var(--ink-faint); display:flex; align-items:center; gap:8px; }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid rgba(11,42,107,.12); padding:6px 0; }
.faq-q{ display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px 4px; font-weight:700; color:var(--navy-800); font-size:1.02rem; }
.faq-q i{ transition:transform .35s var(--ease); color:var(--gold-600); flex-shrink:0; }
.faq-item.open .faq-q i{ transform:rotate(135deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-a p{ padding:0 4px 22px; font-size:.94rem; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:36px; align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-card{ padding:28px; display:flex; gap:18px; align-items:flex-start; margin-bottom:20px; }
.contact-info-card .card-icon{ margin-bottom:0; }
.contact-info-card h4{ margin-bottom:6px; }
.contact-info-card p{ font-size:.92rem; margin-bottom:2px; }
.form-card{ padding:44px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.field label{ display:block; font-size:.82rem; font-weight:700; color:var(--navy-700); margin-bottom:8px; }
.field input, .field textarea{
  width:100%; padding:14px 18px; border-radius:14px; border:1.5px solid rgba(11,42,107,.14);
  background:rgba(255,255,255,.7); transition:border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus{ border-color:var(--gold-500); background:#fff; outline:none; }
.field textarea{ resize:vertical; min-height:140px; }
.field{ margin-bottom:20px; }
.map-wrap{ border-radius:var(--r-lg); overflow:hidden; margin-top:24px; height:260px; border:1px solid var(--glass-border); }
.map-wrap iframe{ width:100%; height:100%; border:0; filter:grayscale(15%) saturate(120%); }

/* ---------- Misc utility ---------- */
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.text-center{ text-align:center; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
@media (max-width:900px){ .two-col{ grid-template-columns:1fr; gap:32px; } }
.stat-block{ display:flex; gap:34px; flex-wrap:wrap; margin-top:36px; }
.stat-block div strong{ font-family:var(--f-display); font-size:2.1rem; color:var(--navy-800); display:block; }
.stat-block div span{ font-size:.85rem; color:var(--ink-faint); font-weight:600; }
.badge-soft{
  display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:var(--r-pill);
  background:var(--bg-soft); color:var(--navy-700); font-weight:700; font-size:.8rem; margin-bottom:20px;
}
.avatar-mark{ width:64px; height:64px; border-radius:18px; }
.link-inline{ color:var(--navy-700); font-weight:700; border-bottom:1.5px solid var(--gold-500); }

/* back to top */
.back-to-top{
  position:fixed; bottom:26px; right:26px; z-index:90; width:48px; height:48px; border-radius:50%;
  background:var(--navy-800); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.1rem;
  opacity:0; pointer-events:none; transform:translateY(10px); transition:.3s;
  box-shadow:0 14px 26px -10px rgba(11,42,107,.5);
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }

/* =========================================================
   CyNoLux — Tech layer v2
   Terminal, bento grid, partners, counters, micro-interactions
   ========================================================= */

/* ---------- Page transition veil (smooth fade + logo pulse between pages) ---------- */
#page-veil{
  position:fixed; inset:0; z-index:9999; background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  opacity:1; pointer-events:none; transition:opacity .38s var(--ease);
}
#page-veil.is-hidden{ opacity:0; }
.page-veil-mark{
  width:104px; height:104px; object-fit:contain;
  filter:drop-shadow(0 10px 24px rgba(11,42,107,.28));
  animation:page-veil-pulse 1.15s var(--ease) infinite;
}
#page-veil.is-hidden .page-veil-mark{ animation-play-state:paused; }
@keyframes page-veil-pulse{
  0%,100%{ transform:scale(1); opacity:.8; }
  50%{ transform:scale(1.12); opacity:1; }
}
@media (prefers-reduced-motion: reduce){
  #page-veil{ transition:none; }
}

/* ---------- Top loading bar (page-load tech cue) ---------- */
.top-loader{ position:fixed; top:0; left:0; right:0; height:3px; z-index:200; background:transparent; pointer-events:none; }
.top-loader span{
  display:block; height:100%; width:0%;
  background:linear-gradient(90deg, var(--gold-500), var(--navy-400), var(--gold-500));
  background-size:200% 100%;
  animation:loader-fill 1.1s var(--ease) forwards, loader-shimmer 1.6s linear infinite .3s;
  box-shadow:0 0 12px rgba(253,185,19,.7);
}
@keyframes loader-fill{ 0%{ width:0%; } 60%{ width:78%; } 100%{ width:100%; opacity:0; } }
@keyframes loader-shimmer{ 0%{ background-position:0% 0; } 100%{ background-position:200% 0; } }

/* ---------- Cursor ambient glow (desktop only, decorative) ---------- */
.cursor-glow{
  position:fixed; top:0; left:0; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(253,185,19,.10), rgba(30,77,183,.07) 45%, transparent 70%);
  transform:translate(-50%,-50%); pointer-events:none; z-index:1;
  opacity:0; transition:opacity .4s ease; will-change:transform;
}
.cursor-glow.is-active{ opacity:1; }
@media (max-width:980px), (hover:none){ .cursor-glow{ display:none; } }

/* ---------- Status pill (header) ---------- */
.status-pill{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:.74rem; font-weight:600;
  color:var(--navy-700); background:var(--bg-soft); border:1px solid rgba(11,42,107,.1);
  padding:8px 14px 8px 10px; border-radius:var(--r-pill); white-space:nowrap;
}
.status-dot{ width:7px; height:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 0 rgba(34,197,94,.6); animation:pulse-dot 2s infinite; flex-shrink:0; }
@keyframes pulse-dot{ 0%{ box-shadow:0 0 0 0 rgba(34,197,94,.55); } 70%{ box-shadow:0 0 0 7px rgba(34,197,94,0); } 100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); } }
@media (max-width:1320px){ .status-pill{ display:none; } }
.status-pill.is-samasuite{ color:var(--gold-700); border-color:rgba(229,162,13,.3); background:rgba(229,162,13,.09); transition:background .25s; }
.status-pill.is-samasuite:hover{ background:rgba(229,162,13,.18); }
.status-dot.gold{ background:var(--gold-500); box-shadow:0 0 0 0 rgba(229,162,13,.6); animation:pulse-dot-gold 2s infinite; }
@keyframes pulse-dot-gold{ 0%{ box-shadow:0 0 0 0 rgba(229,162,13,.55); } 70%{ box-shadow:0 0 0 7px rgba(229,162,13,0); } 100%{ box-shadow:0 0 0 0 rgba(229,162,13,0); } }

/* Paliers de la barre : on allège progressivement au lieu de tout basculer
   d'un coup en menu mobile. */
@media (max-width:1140px){
  .nav-menu a{ padding-left:12px; padding-right:12px; font-size:.88rem; }
}
@media (max-width:1040px){
  .nav-menu a{ padding-left:9px; padding-right:9px; font-size:.84rem; }
  .site-header .header-inner{ gap:12px; padding-left:16px; }
  .brand img{ height:32px; }
  .brand-word{ font-size:1.04rem; }
}

/* ---------- Technical grid background ---------- */
.tech-grid{ position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(11,42,107,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,42,107,.055) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 85%);
  mask-image:radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 85%);
}

/* ---------- Section eyebrow with live dot ---------- */
.eyebrow .live-dot{ width:6px; height:6px; border-radius:50%; background:var(--gold-500); display:inline-block; animation:pulse-dot-gold 2.2s infinite; }
@keyframes pulse-dot-gold{ 0%{ box-shadow:0 0 0 0 rgba(253,185,19,.55);} 70%{ box-shadow:0 0 0 6px rgba(253,185,19,0);} 100%{ box-shadow:0 0 0 0 rgba(253,185,19,0);} }

/* ---------- Terminal window (hero signature element) ---------- */
.terminal{
  background:linear-gradient(165deg, rgba(11,25,56,.96), rgba(10,34,88,.96));
  border-radius:var(--r-lg); border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 70px -20px rgba(7,25,56,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow:hidden; width:100%; max-width:460px;
}
.terminal-bar{
  display:flex; align-items:center; gap:8px; padding:14px 18px;
  background:rgba(255,255,255,.04); border-bottom:1px solid rgba(255,255,255,.07);
}
.terminal-dot{ width:11px; height:11px; border-radius:50%; }
.terminal-dot.red{ background:#FF5F57; } .terminal-dot.yellow{ background:#FEBC2E; } .terminal-dot.green{ background:#28C840; }
.terminal-title{ margin-left:8px; font-family:var(--f-mono); font-size:.72rem; color:rgba(255,255,255,.45); }
.terminal-body{ padding:18px 20px 20px; font-family:var(--f-mono); font-size:.81rem; line-height:1.62; min-height:172px; }
.term-line{ color:rgba(255,255,255,.82); white-space:pre-wrap; word-break:break-word; }
.term-line .prompt{ color:var(--gold-400); }
.term-line .ok{ color:#4ADE80; }
.term-line .path{ color:#7FB4FF; }
.term-line .dim{ color:rgba(255,255,255,.4); }
.term-cursor{ display:inline-block; width:7px; height:15px; background:var(--gold-400); vertical-align:-2px; animation:blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.terminal-foot{ display:flex; justify-content:space-between; padding:12px 22px; border-top:1px solid rgba(255,255,255,.07); }
.terminal-foot span{ font-family:var(--f-mono); font-size:.68rem; color:rgba(255,255,255,.4); display:flex; align-items:center; gap:6px; }
.terminal-foot .ok-chip{ color:#4ADE80; }

/* ---------- Hero 2: pillar capability band ---------- */
.pillar-band{ position:relative; padding:0 0 0; margin-top:-1px; }
.pillar-band-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  border-radius:var(--r-xl); overflow:hidden; border:1px solid var(--glass-border);
  background:var(--glass-fill); backdrop-filter:blur(22px) saturate(160%); -webkit-backdrop-filter:blur(22px) saturate(160%);
  box-shadow:var(--glass-shadow);
}
.pillar-col{ padding:44px 36px; position:relative; }
.pillar-col + .pillar-col{ border-left:1px solid rgba(11,42,107,.1); }
.pillar-col .pillar-num{ font-family:var(--f-mono); font-size:.72rem; color:var(--gold-600); font-weight:700; letter-spacing:.1em; }
.pillar-col h3{ margin:14px 0 10px; display:flex; align-items:center; gap:12px; }
.pillar-col h3 i{ font-size:1.3rem; color:var(--navy-600); }
.pillar-col p{ font-size:.92rem; margin-bottom:0; }
.pillar-col .pillar-metric{ margin-top:18px; font-family:var(--f-mono); font-size:.78rem; color:var(--navy-700); font-weight:700; display:flex; align-items:center; gap:8px; }
.pillar-col .pillar-bar{ height:3px; border-radius:2px; background:rgba(11,42,107,.1); margin-top:8px; overflow:hidden; }
.pillar-col .pillar-bar span{ display:block; height:100%; background:linear-gradient(90deg, var(--navy-600), var(--gold-500)); width:0%; transition:width 1.4s var(--ease) .2s; border-radius:2px; }
.pillar-col.is-visible .pillar-bar span{ width:var(--fill,90%); }
@media (max-width:900px){
  .pillar-band-grid{ grid-template-columns:1fr; }
  .pillar-col + .pillar-col{ border-left:none; border-top:1px solid rgba(11,42,107,.1); }
}

/* ---------- Counters ---------- */
.counter{ font-variant-numeric:tabular-nums; }

/* ---------- Stack marquee (tech logos / tools) ---------- */
.stack-marquee-wrap{ padding:26px 0; background:var(--navy-900); position:relative; overflow:hidden; }
.stack-marquee-wrap::before, .stack-marquee-wrap::after{
  content:""; position:absolute; top:0; bottom:0; width:90px; z-index:2; pointer-events:none;
}
.stack-marquee-wrap::before{ left:0; background:linear-gradient(90deg, var(--navy-900), transparent); }
.stack-marquee-wrap::after{ right:0; background:linear-gradient(270deg, var(--navy-900), transparent); }
.stack-track{ display:flex; gap:56px; width:max-content; animation:scroll-x 34s linear infinite; }
.stack-item{ display:flex; align-items:center; gap:10px; font-family:var(--f-mono); font-size:.86rem; color:rgba(255,255,255,.55); white-space:nowrap; transition:color .25s; }
.stack-item i{ font-size:1.1rem; color:var(--gold-400); }
.stack-item:hover{ color:#fff; }

/* ---------- Partners strip ---------- */
.partners-strip{ padding:70px 0; }
/* Partenaires — voir « PARTENAIRES » en fin de fichier */
/* Partenaires — voir « PARTENAIRES » en fin de fichier */

/* ---------- Bento services grid ---------- */
.bento-grid{
  display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:minmax(220px,auto); gap:22px;
}
.bento-grid .card{ display:flex; flex-direction:column; height:100%; }
.bento-1{ grid-column:span 2; grid-row:span 2; }
.bento-2{ grid-column:span 2; grid-row:span 2; }
.bento-3, .bento-4, .bento-5, .bento-6{ grid-column:span 2; }
@media (max-width:1100px){
  .bento-grid{ grid-template-columns:repeat(2,1fr); }
  .bento-1,.bento-2,.bento-3,.bento-4,.bento-5,.bento-6{ grid-column:span 2; grid-row:auto; }
}
@media (max-width:640px){
  .bento-grid{ grid-template-columns:1fr; }
  .bento-1,.bento-2,.bento-3,.bento-4,.bento-5,.bento-6{ grid-column:span 1; }
}
.bento-grid .card-icon-lg{
  width:64px; height:64px; border-radius:18px; display:flex; align-items:center; justify-content:center;
  background:transparent; border:1.5px solid var(--gold-500); color:var(--navy-700);
  font-size:1.7rem; margin-bottom:22px;
}
.svc-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; padding-top:20px; }
.svc-tag{
  font-family:var(--f-mono); font-size:.7rem; font-weight:600; padding:5px 11px; border-radius:var(--r-pill);
  background:rgba(11,42,107,.06); color:var(--navy-700); border:1px solid rgba(11,42,107,.08);
}
.bento-1 .svc-tag, .bento-2 .svc-tag{ background:rgba(255,255,255,.5); }
.svc-meta{ display:flex; align-items:center; gap:8px; margin-top:16px; font-family:var(--f-mono); font-size:.76rem; color:var(--gold-700); font-weight:700; }
.svc-list{ margin-top:16px; display:flex; flex-direction:column; gap:9px; }
.svc-list li{ display:flex; align-items:center; gap:9px; font-size:.85rem; color:var(--ink-muted); }
.svc-list i{ color:var(--gold-600); font-size:.85rem; }

/* ---------- Button shine sweep ---------- */
.btn-primary, .btn-dark, .btn-ghost{ position:relative; overflow:hidden; isolation:isolate; }
.btn-primary::before, .btn-dark::before, .btn-ghost::before{
  content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg); transition:left .65s var(--ease); z-index:1; pointer-events:none;
}
.btn-primary:hover::before, .btn-dark:hover::before, .btn-ghost:hover::before{ left:120%; }

/* ---------- Tilt-ready cards ---------- */
.tilt-card{ transform-style:preserve-3d; will-change:transform; }
@media (hover:none){ .tilt-card{ transform:none !important; } }


/* ---------- Section divider (circuit-style) ---------- */
.circuit-divider{ display:flex; align-items:center; gap:14px; max-width:1240px; margin:0 auto; padding:0 24px; }
.circuit-divider .line{ flex:1; height:1px; background:linear-gradient(90deg, transparent, rgba(11,42,107,.18), transparent); }
.circuit-divider i{ color:var(--gold-500); font-size:.9rem; }

@media (prefers-reduced-motion: reduce){
  .term-cursor, .status-dot, .eyebrow .live-dot, .top-loader span, .stack-track{ animation:none !important; }
}

/* =========================================================
   SECTEURS D'INTERVENTION — mosaïque illustrée
   ========================================================= */

/* ---------- Accueil : mosaïque asymétrique ---------- */
.sector-mosaic{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:200px;
  gap:18px;
}
.sector-tile{
  position:relative; overflow:hidden; border-radius:var(--r-lg);
  display:block; isolation:isolate;
  box-shadow:var(--glass-shadow-sm);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector-tile:hover{ transform:translateY(-6px); box-shadow:var(--glass-shadow); }

.sector-tile img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:0;
  transition:transform 1s var(--ease), filter .6s var(--ease);
}
.sector-tile:hover img{ transform:scale(1.07); }

/* Voile navy dégradé : le texte reste lisible sur n'importe quelle photo */
.sector-tile::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(165deg,
    rgba(7,25,56,.18) 0%,
    rgba(7,25,56,.52) 48%,
    rgba(7,25,56,.88) 100%);
  transition:background .5s var(--ease);
}
.sector-tile:hover::after{
  background:linear-gradient(165deg,
    rgba(11,42,107,.28) 0%,
    rgba(7,25,56,.62) 46%,
    rgba(7,25,56,.94) 100%);
}
/* Repli si l'image est absente */
.sector-tile.img-missing{ background:linear-gradient(150deg,var(--navy-700),var(--navy-900)); }

.sector-tile-body{
  position:relative; z-index:2; height:100%;
  padding:22px; display:flex; flex-direction:column; justify-content:flex-end;
  color:#fff;
}
.sector-tile-num{
  position:absolute; top:20px; left:22px;
  font-family:var(--f-mono); font-size:.7rem; font-weight:700; letter-spacing:.12em;
  color:var(--gold-400); opacity:.9;
}
.sector-tile-icon{
  position:absolute; top:16px; right:18px;
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center; font-size:1.05rem;
  color:var(--gold-400);
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  transition:background .4s var(--ease), color .4s var(--ease);
}
.sector-tile:hover .sector-tile-icon{ background:var(--gold-500); color:var(--navy-900); }

.sector-tile h3{
  color:#fff; font-size:1.12rem; line-height:1.2; margin-bottom:0;
  letter-spacing:-.01em;
}
.sector-tile p{
  color:rgba(255,255,255,.78); font-size:.85rem; line-height:1.5;
  margin:0; max-height:0; opacity:0; overflow:hidden;
  transition:max-height .55s var(--ease), opacity .45s var(--ease), margin .55s var(--ease);
}
.sector-tile:hover p, .sector-tile:focus-visible p{
  max-height:5.2em; opacity:1; margin-top:8px;
}
/* Filet or qui se déploie au survol */
.sector-tile h3::after{
  content:""; display:block; width:26px; height:2px; margin-top:10px;
  background:var(--gold-500); border-radius:2px;
  transition:width .5s var(--ease);
}
.sector-tile:hover h3::after{ width:54px; }

.sector-tile.is-wide{ grid-column:span 2; }
.sector-tile.is-tall{ grid-row:span 2; }
.sector-tile.is-wide h3, .sector-tile.is-tall h3{ font-size:1.32rem; }
.sector-tile.is-tall p, .sector-tile.is-wide p{ max-height:none; opacity:1; margin-top:8px; }

/* ---------- À propos : rangée compacte, tous les secteurs ---------- */
.sector-strip{
  display:grid; grid-template-columns:repeat(6,1fr); gap:14px;
}
.sector-cell{
  position:relative; overflow:hidden; border-radius:var(--r-md);
  aspect-ratio:1/1.15; display:block; isolation:isolate;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector-cell:hover{ transform:translateY(-5px); box-shadow:var(--glass-shadow-sm); }
.sector-cell img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
  filter:saturate(.75); transition:transform .9s var(--ease), filter .5s var(--ease);
}
.sector-cell:hover img{ transform:scale(1.08); filter:saturate(1.05); }
.sector-cell::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(7,25,56,.2) 0%, rgba(7,25,56,.86) 100%);
}
.sector-cell.img-missing{ background:linear-gradient(150deg,var(--navy-600),var(--navy-900)); }
.sector-cell-body{
  position:relative; z-index:2; height:100%; padding:14px;
  display:flex; flex-direction:column; justify-content:flex-end; gap:6px; color:#fff;
}
.sector-cell-body i{ font-size:1.15rem; color:var(--gold-400); }
.sector-cell-body span{
  font-family:var(--f-display); font-weight:700; font-size:.86rem; line-height:1.25;
}

/* ---------- Pastilles « et bien d'autres » ---------- */
.sector-chips{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; max-width:900px; margin:0 auto; }
.sector-chip{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--glass-fill); border:1px solid var(--glass-border);
  border-radius:var(--r-pill); padding:9px 18px;
  font-size:.85rem; font-weight:600; color:var(--navy-700);
  transition:transform .3s var(--ease), background .3s var(--ease);
}
.sector-chip i{ color:var(--gold-500); font-size:.7rem; }
.sector-chip:hover{ transform:translateY(-3px); background:var(--glass-fill-strong); }

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .sector-mosaic{ grid-template-columns:repeat(3,1fr); grid-auto-rows:190px; }
  .sector-strip{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:760px){
  .sector-mosaic{ grid-template-columns:repeat(2,1fr); grid-auto-rows:165px; gap:12px; }
  .sector-tile.is-wide{ grid-column:span 2; }
  .sector-tile.is-tall{ grid-row:span 1; }
  .sector-tile-body{ padding:16px; }
  .sector-tile h3, .sector-tile.is-wide h3, .sector-tile.is-tall h3{ font-size:1rem; }
  /* Sur mobile il n'y a pas de survol : le texte reste masqué, seul le titre compte */
  .sector-tile p, .sector-tile.is-wide p, .sector-tile.is-tall p{ display:none; }
  .sector-strip{ grid-template-columns:repeat(3,1fr); gap:10px; }
  .sector-cell-body{ padding:11px; }
  .sector-cell-body span{ font-size:.78rem; }
}

/* ---------- Thème sombre ---------- */
[data-theme="dark"] .sector-chip{ color:#E6ECFA; }

@media (prefers-reduced-motion: reduce){
  .sector-tile, .sector-tile img, .sector-cell, .sector-cell img,
  .sector-tile p, .sector-tile h3::after{ transition:none !important; }
  .sector-tile p{ max-height:5.2em; opacity:1; margin-top:8px; }
}

/* =========================================================
   PARCOURS CLIENT — « Comment nous travaillons avec vous »
   ========================================================= */
.process-rail{ position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }

/* Le fil qui relie les quatre étapes */
.process-track{
  position:absolute; top:31px; left:8%; right:8%; height:2px; z-index:0;
  background:linear-gradient(90deg,
    rgba(11,42,107,.10) 0%, rgba(11,42,107,.16) 50%, rgba(11,42,107,.10) 100%);
  border-radius:2px; overflow:hidden;
}
.process-track-fill{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg, var(--navy-500), var(--gold-500));
  border-radius:2px;
  animation:process-draw 2.2s var(--ease-out) .35s forwards;
}
@keyframes process-draw{ to{ width:100%; } }

.process-step{ position:relative; z-index:1; display:flex; flex-direction:column; }

.ps-marker{
  position:relative; width:64px; height:64px; margin-bottom:22px;
  border-radius:20px; display:grid; place-items:center;
  background:var(--glass-fill-strong);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow-sm);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transition:transform .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}
.ps-marker i{ font-size:1.4rem; color:var(--navy-600); transition:color .45s var(--ease); }
.ps-num{
  position:absolute; top:-9px; right:-9px;
  min-width:28px; height:28px; padding:0 7px;
  border-radius:var(--r-pill); display:grid; place-items:center;
  background:var(--gold-500); color:var(--navy-900);
  font-family:var(--f-mono); font-size:.7rem; font-weight:700;
  box-shadow:0 4px 14px -4px rgba(253,185,19,.7);
}
.process-step:hover .ps-marker{
  transform:translateY(-5px) scale(1.04);
  background:linear-gradient(140deg, var(--navy-700), var(--navy-500));
  box-shadow:0 18px 34px -14px rgba(11,42,107,.5);
}
.process-step:hover .ps-marker i{ color:var(--gold-400); }

.ps-when{
  font-family:var(--f-mono); font-size:.68rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--gold-700);
  margin-bottom:8px;
}
.ps-body h3{ font-size:1.08rem; margin-bottom:9px; line-height:1.25; }
.ps-body > p{ font-size:.9rem; margin-bottom:16px; }

.ps-out{
  margin-top:auto; display:flex; gap:8px; align-items:flex-start;
  font-size:.8rem; line-height:1.45; color:var(--navy-600); font-weight:600;
  padding-top:14px; border-top:1px dashed rgba(11,42,107,.16);
}
.ps-out i{ color:var(--gold-600); font-size:.85rem; flex-shrink:0; margin-top:.15em; }

.process-note{
  display:flex; align-items:center; gap:16px; justify-content:center;
  margin-top:46px; padding:20px 30px;
  background:var(--glass-fill); border:1px solid var(--glass-border);
  border-radius:var(--r-pill); max-width:720px; margin-inline:auto;
  box-shadow:var(--glass-shadow-sm);
}
.process-note i{ font-size:1.3rem; color:var(--gold-600); flex-shrink:0; }
.process-note p{ margin:0; font-size:.9rem; font-weight:600; color:var(--navy-700); }

@media (max-width:960px){
  .process-rail{ grid-template-columns:repeat(2,1fr); gap:34px 26px; }
  .process-track{ display:none; }
}
@media (max-width:600px){
  .process-rail{ grid-template-columns:1fr; gap:26px; }
  .process-step{ display:grid; grid-template-columns:64px 1fr; gap:18px; align-items:start; }
  .ps-marker{ margin-bottom:0; }
  .process-note{ border-radius:var(--r-lg); text-align:left; padding:18px 22px; }
}

/* =========================================================
   TÉMOIGNAGES — habillage de la scène
   ========================================================= */
.testi-stage{
  position:relative; padding:34px 30px 30px;
  border-radius:var(--r-lg);
  background:
    radial-gradient(720px 260px at 15% 0%, rgba(30,77,183,.10), transparent 62%),
    radial-gradient(620px 300px at 88% 100%, rgba(253,185,19,.13), transparent 60%);
}
.testi-stage::before{
  content:"\201C"; position:absolute; top:-26px; left:14px;
  font-family:var(--f-display); font-size:11rem; line-height:1;
  color:rgba(11,42,107,.05); pointer-events:none; user-select:none;
}
.tc-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.tc-stars{ display:flex; gap:4px; flex-shrink:0; padding-top:6px; }
.tc-stars i{ color:var(--gold-500); font-size:.82rem; }

.tc-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.tc-tags span{
  font-family:var(--f-mono); font-size:.7rem; font-weight:600;
  color:var(--navy-700); background:rgba(11,42,107,.06);
  border:1px solid rgba(11,42,107,.09);
  border-radius:var(--r-pill); padding:5px 12px;
}
.testi-card .testi-meta{ padding-top:22px; border-top:1px solid rgba(11,42,107,.1); }
.testi-name{ font-weight:700; color:var(--navy-800); font-size:.95rem; }
.testi-role{ font-size:.82rem; color:var(--ink-faint); margin-top:2px; }

@media (max-width:640px){
  .testi-stage{ padding:20px 4px 22px; }
  .testi-stage::before{ font-size:7rem; top:-14px; left:4px; }
  .tc-stars{ padding-top:2px; }
}

/* ---------- Thème sombre ---------- */
[data-theme="dark"] .ps-marker{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.13); }
[data-theme="dark"] .ps-marker i{ color:#BCD0F5; }
[data-theme="dark"] .ps-out{ border-top-color:rgba(255,255,255,.13); color:#BCD0F5; }
[data-theme="dark"] .process-note p{ color:#E6ECFA; }
[data-theme="dark"] .process-track{ background:rgba(255,255,255,.10); }
[data-theme="dark"] .testi-stage::before{ color:rgba(255,255,255,.05); }
[data-theme="dark"] .tc-tags span{ color:#CFDCF7; background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.12); }
[data-theme="dark"] .testi-card .testi-meta{ border-top-color:rgba(255,255,255,.12); }
[data-theme="dark"] .testi-name{ color:#EAF1FF; }

@media (prefers-reduced-motion: reduce){
  .process-track-fill{ animation:none; width:100%; }
  .ps-marker{ transition:none !important; }
}

/* =========================================================
   PARTENAIRES — mur de logos
   ========================================================= */
.partners-block{ margin-top:70px; }

.partners-head{ display:flex; align-items:center; gap:24px; margin-bottom:32px; }
.partners-line{
  flex:1; height:1px;
  background:linear-gradient(90deg, transparent, rgba(11,42,107,.20), transparent);
}
.partners-title{ flex-shrink:0; text-align:center; }
.partners-label{
  margin:0; font-family:var(--f-mono); font-size:.74rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--navy-700);
}
.partners-sub{
  margin:6px 0 0; font-size:.82rem; color:var(--ink-faint);
}

/* Bandeau défilant : les logos glissent en boucle continue */
.partners-marquee{
  position:relative; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners-track{
  display:flex; gap:18px; width:max-content;
  animation:scroll-x 42s linear infinite;
}
.partners-marquee:hover .partners-track{ animation-play-state:paused; }

.partner-card{
  position:relative; isolation:isolate; flex:0 0 auto; width:240px;
  background:var(--glass-fill-strong);
  border:1px solid rgba(11,42,107,.10); border-radius:var(--r-lg);
  min-height:200px; padding:30px 24px 24px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  text-align:center; overflow:hidden;
  box-shadow:var(--glass-shadow-sm);
  transition:background .45s var(--ease);
}

/* Lueur dorée qui monte du bas au survol */
.partner-card::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(320px 150px at 50% 118%, rgba(253,185,19,.30), transparent 70%),
    linear-gradient(155deg, var(--navy-700), var(--navy-900));
  opacity:0; transform:translateY(16%);
  transition:opacity .45s var(--ease), transform .55s var(--ease);
}
.partner-card:hover::before{ opacity:1; transform:translateY(0); }

/* Liseré doré sur l'arête basse */
.partner-card::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
  transform:scaleX(0); transform-origin:center;
  transition:transform .5s var(--ease);
}
.partner-card:hover::after{ transform:scaleX(1); }

.pc-logo{ display:flex; align-items:center; justify-content:center; min-height:76px; }
.partner-logo{
  max-height:76px; width:auto; max-width:100%; object-fit:contain;
  filter:grayscale(1); opacity:.75;
  transition:filter .4s var(--ease), opacity .4s var(--ease);
}
.partner-card:hover .partner-logo{ filter:brightness(0) invert(1); opacity:1; }

/* Le nom ne s'affiche qu'au survol quand un logo est présent — espace réservé, pas de saut de mise en page */
.partner-logo + .partner-wordmark{ opacity:0; }
.partner-card:hover .partner-logo + .partner-wordmark{ opacity:1; }

.partner-wordmark{
  font-family:var(--f-display); font-weight:700;
  font-size:1.05rem; line-height:1.22; letter-spacing:-.005em;
  color:var(--navy-700); opacity:.78;
  transition:color .4s var(--ease), opacity .4s var(--ease);
}
.partner-card:hover .partner-wordmark{ color:#fff; opacity:1; }

/* Étiquette secteur : apparaît au survol */
.pc-meta{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--f-mono); font-size:.66rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-faint);
  opacity:0; transform:translateY(7px);
  transition:opacity .4s var(--ease), transform .45s var(--ease), color .4s var(--ease);
}
.pc-meta i{ font-size:.82rem; color:var(--gold-600); transition:color .4s var(--ease); }
.partner-card:hover .pc-meta{ opacity:1; transform:translateY(0); color:rgba(255,255,255,.72); }
.partner-card:hover .pc-meta i{ color:var(--gold-400); }

.partners-foot{
  display:flex; align-items:center; justify-content:center; gap:9px;
  margin:26px 0 0; font-size:.85rem; color:var(--ink-faint);
}
.partners-foot i{ color:var(--gold-600); font-size:.95rem; }

@media (max-width:860px){
  .partner-card{ width:200px; min-height:180px; padding:26px 18px 20px; }
  .pc-logo{ min-height:64px; }
  .partner-logo{ max-height:64px; }
  .partner-wordmark{ font-size:.94rem; }
  /* Pas de survol au doigt : le nom et le secteur restent visibles */
  .pc-meta{ opacity:1; transform:none; }
  .partner-logo + .partner-wordmark{ opacity:1; }
}
@media (max-width:440px){
  .partners-head{ flex-direction:column; gap:14px; }
  .partners-line{ width:70px; flex:none; }
  .partners-label{ font-size:.68rem; letter-spacing:.15em; }
  .partner-card{ width:172px; min-height:164px; gap:10px; }
  .pc-logo{ min-height:56px; }
  .partner-logo{ max-height:56px; }
}

/* ---------- Thème sombre ---------- */
[data-theme="dark"] .partner-card{ background:rgba(255,255,255,.045); border-color:rgba(255,255,255,.10); }
[data-theme="dark"] .partner-wordmark{ color:#C3D3F2; }
[data-theme="dark"] .partners-label{ color:#E6ECFA; }
[data-theme="dark"] .partners-line{ background:linear-gradient(90deg,transparent,rgba(255,255,255,.20),transparent); }

@media (prefers-reduced-motion: reduce){
  .partners-track{ animation:none !important; }
  .partners-marquee{ overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
  .partner-card.is-clone{ display:none; }
  .partner-card, .partner-card::before, .partner-card::after,
  .partner-logo, .partner-wordmark, .pc-meta{ transition:none !important; }
  .pc-meta{ opacity:1; transform:none; }
}

/* =========================================================
   MEGA-MENU « SERVICES »
   ========================================================= */

/* ---------- Desktop ---------- */
.nav-drop{ position:relative; }
.nav-drop-trigger{ display:inline-flex; align-items:center; gap:6px; }
.nav-chevron{ font-size:.68rem; transition:transform .3s var(--ease); }
.nav-drop:hover .nav-chevron,
.nav-drop:focus-within .nav-chevron{ transform:rotate(180deg); }

.mega{
  position:absolute; top:100%; left:50%;
  width:min(600px, calc(100vw - 40px));
  padding-top:16px;                 /* zone tampon : le survol ne se rompt pas */
  transform:translateX(-50%) translateY(10px);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  z-index:120;
}
.nav-drop:hover .mega,
.nav-drop:focus-within .mega,
.nav-drop.is-open .mega{
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

.mega-inner{
  display:grid; grid-template-columns:1fr 224px;
  background:var(--glass-fill-strong);
  backdrop-filter:blur(26px) saturate(170%); -webkit-backdrop-filter:blur(26px) saturate(170%);
  border:1px solid var(--glass-border);
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:0 34px 80px -26px rgba(11,42,107,.42), 0 0 0 1px rgba(255,255,255,.4) inset;
}

.mega-list{ padding:12px; display:flex; flex-direction:column; gap:1px; }

.mega-item{
  display:grid; grid-template-columns:34px 1fr 16px; align-items:center; gap:12px;
  padding:9px 12px !important; border-radius:13px;
  background:transparent !important;
  transition:background .28s var(--ease);
}
.mega-item:hover, .mega-item:focus-visible{ background:rgba(11,42,107,.06) !important; }
.mega-item::after{ display:none !important; }   /* neutralise le trait actif du nav */

.mega-icon{
  width:34px; height:34px; border-radius:11px; display:grid; place-items:center;
  background:linear-gradient(140deg, rgba(11,42,107,.09), rgba(253,185,19,.13));
  border:1px solid rgba(11,42,107,.08);
  transition:background .3s var(--ease), transform .3s var(--ease);
}
.mega-icon i{ font-size:.94rem; color:var(--navy-600); transition:color .3s var(--ease); }
.mega-item:hover .mega-icon{
  background:linear-gradient(140deg, var(--navy-700), var(--navy-500));
  transform:scale(1.05);
}
.mega-item:hover .mega-icon i{ color:var(--gold-400); }

/* Juste le nom du service : la description vit dans l'aperçu de droite */
.mega-text{
  font-family:var(--f-display); font-weight:700; font-size:.88rem;
  color:var(--navy-800); line-height:1.3; min-width:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mega-arrow{
  font-size:.85rem; color:var(--gold-600);
  opacity:0; transform:translateX(-6px);
  transition:opacity .28s var(--ease), transform .28s var(--ease);
}
.mega-item:hover .mega-arrow{ opacity:1; transform:translateX(0); }

.mega-all{
  margin-top:7px; padding:10px 12px !important; border-radius:12px;
  display:flex !important; align-items:center; justify-content:center; gap:8px;
  font-family:var(--f-mono) !important; font-size:.7rem !important; font-weight:700 !important;
  letter-spacing:.04em; text-transform:uppercase;
  color:var(--navy-700) !important;
  background:rgba(11,42,107,.05) !important;
  border:1px dashed rgba(11,42,107,.16);
  transition:background .3s var(--ease), color .3s var(--ease), gap .3s var(--ease);
}
.mega-all:hover{ background:var(--navy-700) !important; color:#fff !important; gap:13px; border-color:transparent; }
.mega-all::after{ display:none !important; }

/* Aperçu illustré */
.mega-preview{ position:relative; overflow:hidden; isolation:isolate; }
.mega-preview img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
  transition:opacity .35s var(--ease), transform 1.1s var(--ease);
}
.mega-preview img.is-swapping{ opacity:0; transform:scale(1.04); }
.mega-preview-scrim{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(175deg, rgba(7,25,56,.16) 0%, rgba(7,25,56,.62) 46%, rgba(7,25,56,.93) 100%);
}
.mega-preview-text{
  position:relative; z-index:2; height:100%;
  display:flex; flex-direction:column; justify-content:flex-end; gap:5px;
  padding:16px 15px; color:#fff;
}
.mega-preview-text strong{
  font-family:var(--f-display); font-size:.86rem; line-height:1.25;
}
.mega-preview-text strong::after{
  content:""; display:block; width:22px; height:2px; margin-top:7px;
  background:var(--gold-500); border-radius:2px;
}
.mega-preview-text p{
  margin:0; font-size:.73rem; line-height:1.45; color:rgba(255,255,255,.78);
}

@media (max-width:1180px){
  .mega{ width:min(540px, calc(100vw - 36px)); }
  .mega-inner{ grid-template-columns:1fr 196px; }
}
@media (max-width:1060px){
  .mega{ width:min(360px, calc(100vw - 32px)); }
  .mega-inner{ grid-template-columns:1fr; }
  .mega-preview{ display:none; }
}

/* ---------- Mobile : accordéon ---------- */
.mnav-group{ display:none; }

@media (max-width:980px){
  .mnav-group{ display:block; width:100%; max-width:420px; }

  .mnav-toggle{
    width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
    font-family:var(--f-body); font-weight:700; font-size:1.25rem; color:var(--ink-muted);
    padding:12px 26px; border-radius:var(--r-pill);
    transition:color .25s, background .25s;
  }
  .mnav-toggle.active{ color:var(--navy-800); background:rgba(11,42,107,.06); }
  .mnav-toggle i{ font-size:.8rem; transition:transform .35s var(--ease); }
  .mnav-toggle.is-open i{ transform:rotate(180deg); }
  .mnav-toggle.is-open{ color:var(--navy-800); }

  .mnav-sub{
    display:flex; flex-direction:column; gap:2px; width:100%;
    max-height:0; overflow:hidden;
    transition:max-height .4s var(--ease), padding .4s var(--ease);
  }
  .mnav-group.is-open .mnav-sub{ max-height:560px; padding:6px 0 12px; }

  .mnav-sublink{
    display:flex !important; align-items:center; gap:11px;
    font-size:.98rem !important; font-weight:600 !important;
    padding:11px 22px !important; color:var(--ink-muted);
    border-radius:14px !important;
  }
  .mnav-sublink i{ font-size:1rem; color:var(--gold-600); flex-shrink:0; }
  .mnav-sublink:hover{ background:rgba(11,42,107,.06); color:var(--navy-800); }
}

/* ---------- Thème sombre ---------- */
[data-theme="dark"] .mega-inner{ background:rgba(11,25,56,.9); border-color:rgba(255,255,255,.12); }
[data-theme="dark"] .mega-item:hover{ background:rgba(255,255,255,.06) !important; }
[data-theme="dark"] .mega-text{ color:#EAF1FF; }
[data-theme="dark"] .mega-icon{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.12); }
[data-theme="dark"] .mega-icon i{ color:#BCD0F5; }
[data-theme="dark"] .mega-all{ background:rgba(255,255,255,.06) !important; color:#DCE7FF !important; border-color:rgba(255,255,255,.16); }
[data-theme="dark"] .mnav-toggle.active, [data-theme="dark"] .mnav-toggle.is-open{ color:#EAF1FF; }

@media (prefers-reduced-motion: reduce){
  .mega, .mega-icon, .mega-arrow, .nav-chevron, .mnav-sub, .mega-preview img{ transition:none !important; }
}
