/* ============================================================
   IIQARION — Site marketing · Design system 2026
   Charte : marine #001848 (dominante) + orange #F0582F (accent / glow, dosé).
   Aurora gradients · glassmorphism · bento · reveal on scroll.
   Baseline : « Ensemble, au quotidien. »
   ============================================================ */

:root {
    --marine: #001848;
    --marine-900: #00102f;
    --marine-800: #041d51;
    --marine-700: #0a2a63;
    --marine-500: #26468a;
    --orange: #F0582F;
    --orange-400: #ff7a52;
    --orange-600: #d8481f;

    --ink: #0f1b33;
    --muted: #5a6a86;
    --muted-2: #8290a8;
    --line: #e7ecf5;
    --line-2: #eef2f9;

    --bg: #ffffff;
    --bg-alt: #f6f8fc;

    --radius-xl: 28px;
    --radius: 18px;
    --radius-sm: 12px;

    --shadow-sm: 0 2px 10px rgba(11, 32, 74, .05);
    --shadow: 0 18px 44px -18px rgba(11, 32, 74, .22);
    --shadow-lg: 0 40px 90px -30px rgba(3, 16, 47, .45);
    --glow-orange: 0 20px 60px -18px rgba(240, 88, 47, .55);

    --grad-accent: linear-gradient(100deg, var(--orange) 0%, var(--orange-400) 100%);
    --grad-marine: linear-gradient(160deg, var(--marine-800) 0%, var(--marine-900) 100%);
    --maxw: 1180px;
    --ease: cubic-bezier(.16, .84, .44, 1);
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.62;
    letter-spacing: -.005em;
}

h1, h2, h3, h4 { color: var(--marine); line-height: 1.08; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: var(--marine-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; }

.site { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
.site-main { flex: 1; }

.grad-text { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* La navigation enrichie Blazor déplace le focus sur le <h1> (tabindex=-1)
   après chaque navigation, ce qui faisait apparaître un anneau/cadre autour
   du titre. Ces éléments ne sont pas atteignables au clavier : on masque
   l'anneau sans nuire à l'accessibilité clavier des vrais éléments focusables. */
[tabindex="-1"]:focus { outline: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; font-weight: 600; font-size: .96rem;
    padding: .78rem 1.5rem; border-radius: 999px;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: var(--glow-orange); }
.btn-accent:hover { color: #fff; box-shadow: 0 26px 70px -16px rgba(240, 88, 47, .7); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline { background: #fff; color: var(--marine); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--marine); color: var(--marine); }

/* ---------- Navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(231, 236, 245, .8);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.6rem; display: flex; align-items: center; gap: 1.5rem; }
.nav-brand img { height: 42px; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links > a { color: var(--marine); font-weight: 500; font-size: .94rem; position: relative; white-space: nowrap; }
.nav-links { gap: 1.15rem; }
.nav-links > a:not(.nav-cta):not(.nav-login)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--grad-accent); border-radius: 2px; transition: width .25s var(--ease); }
.nav-links > a:not(.nav-cta):not(.nav-login):hover::after { width: 100%; }
.nav-cta { color: #fff !important; }
/* Bouton « Se connecter » au Portail IIQARION : style secondaire (contour),
   pour rester en retrait du CTA démo (accent plein). */
.nav-login { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; color: var(--marine); padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s; }
.nav-login:hover { border-color: var(--marine); box-shadow: var(--shadow-sm); color: var(--marine); }
.nav-login-ico { flex: 0 0 auto; opacity: .85; }
.nav-toggle, .nav-burger { display: none; }

.lang { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 999px; }
.lang-opt { color: var(--muted-2); font-weight: 600; }
.lang-opt.on { color: var(--marine); }
.lang-sep { color: var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-marine); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; }
.hero::before { width: 620px; height: 620px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(240,88,47,.55), transparent 65%); animation: float1 16s ease-in-out infinite; }
.hero::after { width: 560px; height: 560px; bottom: -260px; left: -140px; background: radial-gradient(circle, rgba(64,110,220,.5), transparent 65%); animation: float2 20s ease-in-out infinite; }
.hero-grid-overlay { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%); }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -30px); } }

.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.6rem 6.5rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; }
/* Blazor <FocusOnNavigate Selector="h1"> place le focus sur le titre après chaque
   navigation (annonce au lecteur d'écran) : Chromium dessine alors un anneau de
   focus autour de l'accroche. On masque cet anneau purement visuel — sans retirer
   le focus, donc l'accessibilité clavier/lecteur d'écran reste préservée. */
h1[tabindex="-1"]:focus { outline: none; }
.hero .lead { color: #c3cfe6; font-size: 1.18rem; max-width: 34rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 700; margin-bottom: 1.1rem; }
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: .4rem .8rem; border-radius: 999px; backdrop-filter: blur(6px); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-accent); box-shadow: 0 0 12px 2px rgba(240,88,47,.8); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-trust { display: flex; gap: 1.4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-trust span { color: #9fb0cd; font-size: .85rem; display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust span::before { content: "✓"; color: var(--orange-400); font-weight: 800; }

/* ---------- Hero : maquette portail (glass) ---------- */
.portal { position: relative; }
.portal-glass {
    position: relative; border-radius: var(--radius-xl); padding: 1rem;
    background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
    transform: perspective(1400px) rotateY(-11deg) rotateX(4deg);
    transition: transform .5s var(--ease);
}
.portal:hover .portal-glass { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
.portal-bar { display: flex; align-items: center; gap: .4rem; padding: .2rem .3rem .8rem; }
.portal-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.portal-chip { margin-left: auto; font-size: .68rem; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .22rem .6rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; }
.portal-chip::before { content: "🏢"; font-size: .7rem; }
.portal-screen { background: linear-gradient(165deg, #fff, #eef2fb); border-radius: 18px; padding: 1.1rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.portal-appbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.portal-logo { height: 16px; }
.portal-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-accent); }
.portal-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.ptile { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: .7rem; box-shadow: var(--shadow-sm); }
.ptile .ic { font-size: 1.1rem; }
.ptile .lb { font-size: .62rem; color: var(--muted); font-weight: 600; margin-top: .35rem; display: block; }
.ptile .bar { height: 4px; border-radius: 4px; margin-top: .5rem; background: linear-gradient(90deg, var(--marine-500), rgba(38,70,138,.18)); }
.ptile.accent .bar { background: var(--grad-accent); }
.portal-kpi { display: flex; gap: .5rem; margin-top: .6rem; }
.kpi { flex: 1; background: var(--marine); color: #fff; border-radius: 12px; padding: .55rem .7rem; }
.kpi b { font-size: .95rem; display: block; }
.kpi small { font-size: .58rem; color: #9fb0cd; }
.portal-float { position: absolute; right: -18px; bottom: 26px; background: #fff; border-radius: 14px; padding: .6rem .8rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .5rem; animation: bob 4s ease-in-out infinite; }
.portal-float .pf-ic { width: 26px; height: 26px; border-radius: 8px; background: #e6f4ec; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.portal-float small { font-size: .58rem; color: var(--muted); display: block; }
.portal-float b { font-size: .74rem; color: var(--marine); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.6rem; }
.section-alt { max-width: none; background: radial-gradient(120% 80% at 50% 0%, #eef2fb 0%, var(--bg-alt) 45%); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head .eyebrow { color: var(--orange-600); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-foot { text-align: center; margin-top: 3rem; }

.page-hero { position: relative; background: var(--grad-marine); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; top: -240px; right: -100px; border-radius: 50%; filter: blur(70px); opacity: .5; background: radial-gradient(circle, rgba(240,88,47,.5), transparent 65%); z-index: -1; }
.page-hero-inner { max-width: 52rem; margin: 0 auto; padding: 5rem 1.6rem 4.4rem; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: .4rem .8rem; border-radius: 999px; }
.page-hero .lead { color: #c3cfe6; font-size: 1.18rem; max-width: 44rem; margin: 0 auto; }

/* ---------- Grilles (bento) ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(4, 1fr); }
/* premier bénéfice en vedette sur toute la hauteur (effet bento) */
.grid-5 > .feature:first-child { grid-row: span 2; }

/* ---------- Cartes bénéfices ---------- */
.feature {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    overflow: hidden;
}
.feature::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d8e1f0; }
.feature:hover::after { transform: scaleX(1); }
.feature-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.5rem; margin-bottom: 1rem; background: linear-gradient(150deg, #eaf0fb, #f6f8fc); border: 1px solid var(--line-2); }
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.grid-5 > .feature:first-child { background: var(--grad-marine); border: none; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.grid-5 > .feature:first-child h3 { color: #fff; font-size: 1.5rem; }
.grid-5 > .feature:first-child p { color: #c3cfe6; font-size: 1rem; }
.grid-5 > .feature:first-child .feature-ico { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.grid-5 > .feature:first-child::after { display: none; }

/* ---------- Cartes modules ---------- */
.mod-card {
    position: relative; display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
    box-shadow: var(--shadow-sm); color: var(--ink); overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.mod-card::before { content: ""; position: absolute; width: 160px; height: 160px; top: -80px; right: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(240,88,47,.1), transparent 70%); opacity: 0; transition: opacity .35s var(--ease); }
.mod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d8e1f0; color: var(--ink); }
.mod-card:hover::before { opacity: 1; }
/* Rangée du haut : wordmark à gauche, badge d'état à droite, alignés en haut. */
.mod-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.mod-card-wm { height: 42px; width: auto; max-width: 62%; object-fit: contain; object-position: left top; display: block; flex: 0 0 auto; }
/* Wordmark mono-ligne (portail) : réduit pour aligner la taille du mot
   « IIQARION » sur celle des wordmarks empilés (où IIQARION n'occupe
   que la moitié haute). Léger décalage vertical pour rester aligné au badge. */
.mod-card-wm-sm { height: 20px; margin-top: 6px; }
.mod-card-title { margin: 0; font-size: 1.15rem; }
.mod-card-top .badge { flex: 0 0 auto; margin-top: 2px; }
.mod-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; font-size: 1.4rem; background: linear-gradient(150deg, #eaf0fb, #f6f8fc); border: 1px solid var(--line-2); }
.mod-ico-logo { background: #fff; padding: 7px; }
.mod-ico-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.mod-card h3 { margin-bottom: .4rem; }
.mod-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.mod-link { color: var(--orange); font-weight: 600; font-size: .9rem; margin-top: .8rem; transition: gap .2s; }
.mod-card:hover .mod-link { color: var(--orange-600); }

.badge { font-size: .68rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.badge-ok { background: #e6f4ec; color: #1c7a46; }
.badge-soon { background: #fdeee9; color: var(--orange-600); }

/* ---------- Détail module ---------- */
.mod-detail-head { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.2rem; }
.mod-ico-lg { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.mod-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mod-detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.mod-detail-card-accent { position: relative; overflow: hidden; }
.mod-detail-card-accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-accent); }
.mod-detail-card p { color: var(--muted); margin: 0; }
.mod-note { text-align: center; color: var(--muted-2); font-size: .88rem; margin-top: 1.6rem; }

.mod-wordmark { height: 62px; width: auto; background: #fff; padding: .7rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-sm); }

/* Vitrine module : texte + aperçu */
.mod-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mod-desc { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.6rem; }
.mod-feat-title { color: var(--marine); margin-bottom: 1rem; }
.mod-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.mod-feats li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.mod-feats li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(150deg, #e6f4ec, #f6f8fc); color: #1c7a46; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mod-preview { position: relative; }
.mod-preview-label { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--muted-2); margin-bottom: .9rem; }

/* ---------- Aperçu produit (mock CSS) ---------- */
.shot { border-radius: var(--radius-xl); padding: 1rem; background: linear-gradient(160deg, #16306b, #0a1c47); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: .4rem; padding: .2rem .35rem .8rem; }
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.shot-name { margin-left: auto; font-size: .68rem; color: #cdd7ea; font-weight: 600; }
.shot-body { background: linear-gradient(170deg, #fff, #eef2fb); border-radius: 16px; padding: 1.1rem; min-height: 220px; }

.shot-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.stile { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: .9rem; box-shadow: var(--shadow-sm); }
.stile span { font-size: 1.3rem; }
.stile i { display: block; height: 5px; border-radius: 5px; margin-top: .7rem; background: linear-gradient(90deg, var(--marine-500), rgba(38,70,138,.15)); }
.stile.accent i { background: var(--grad-accent); }

.shot-rows { display: flex; flex-direction: column; gap: .5rem; }
.srow { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .7rem; font-size: .78rem; }
.srow b { color: var(--marine); font-weight: 700; }
.srow span { color: var(--muted); }
.srow em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--ink); }
.pill { margin-left: 0; font-size: .62rem; font-weight: 700; padding: .18rem .5rem; border-radius: 999px; }
.pill.ok { background: #e6f4ec; color: #1c7a46; }
.pill.wait { background: #fdeee9; color: var(--orange-600); }
.shot-foot { display: flex; gap: .6rem; margin-top: .7rem; }
.skpi { flex: 1; background: var(--marine); color: #fff; border-radius: 10px; padding: .5rem .7rem; }
.skpi.accent { background: var(--grad-accent); }
.skpi small { font-size: .58rem; color: #c3cfe6; display: block; }
.skpi.accent small { color: rgba(255,255,255,.85); }
.skpi b { font-size: .9rem; }

.shot-pay { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; }
.shot-pay > div { flex: 1; }
.shot-pay small { font-size: .6rem; color: var(--muted); display: block; }
.shot-pay b { font-size: 1.3rem; color: var(--marine); }
.shot-btn { background: var(--grad-accent); color: #fff; font-size: .74rem; font-weight: 700; padding: .6rem 1.1rem; border-radius: 10px; box-shadow: var(--glow-orange); }

.shot-files { display: flex; flex-direction: column; gap: .45rem; }
.sfile { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem .7rem; font-size: .76rem; }
.sfile .fi { font-size: 1rem; }
.sfile b { color: var(--marine); font-weight: 600; }
.sfile small { margin-left: auto; color: var(--muted-2); font-size: .66rem; }

.shot-id { display: flex; flex-direction: column; gap: .55rem; }
.sid-select { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .8rem; }
.sid-select small { font-size: .6rem; color: var(--muted); display: block; }
.sid-select b { color: var(--marine); font-size: .85rem; }
.sid-perm { display: flex; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem .8rem; font-size: .76rem; color: var(--ink); }
.sid-perm span { font-weight: 500; }
.sw { margin-left: auto; width: 30px; height: 17px; border-radius: 999px; background: #d4dcea; position: relative; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .2s; }
.sw.on { background: #1c7a46; }
.sw.on::after { left: 15px; }

/* ---------- Encart conformité (facture électronique) ---------- */
.confo-callout { position: relative; overflow: hidden; isolation: isolate; background: var(--grad-marine); color: #fff; border-radius: var(--radius-xl); padding: 2.4rem; box-shadow: var(--shadow); }
.confo-callout::before { content: ""; position: absolute; width: 340px; height: 340px; top: -160px; right: -120px; border-radius: 50%; filter: blur(60px); opacity: .5; background: radial-gradient(circle, rgba(240,88,47,.5), transparent 65%); z-index: -1; }
.confo-callout h3 { color: #fff; font-size: 1.35rem; margin-bottom: .6rem; }
.confo-callout p { color: #c3cfe6; margin: 0; max-width: 60rem; }
.confo-badge { display: inline-flex; align-items: center; gap: .45rem; background: var(--grad-accent); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem; box-shadow: var(--glow-orange); }
.confo-badge::before { content: "⚡"; }

/* Bannière conformité (accueil) */
.confo-strip { max-width: none; background: radial-gradient(120% 80% at 50% 0%, #eef2fb 0%, var(--bg-alt) 45%); }
.confo-strip-inner { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.6rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.confo-strip .confo-badge { box-shadow: none; }
.confo-strip h2 { font-size: 1.9rem; }
.confo-strip p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.4rem; }
.confo-visual { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.confo-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem; font-weight: 700; color: var(--marine); box-shadow: var(--shadow-sm); font-size: .9rem; }
.confo-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: .15rem; }

/* ---------- Liste de valeur (Solution) ---------- */
.value-list { max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.value-row { position: relative; display: flex; gap: 1.6rem; align-items: flex-start; padding: 1.7rem 1.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.value-row:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.value-num { font-size: 1.4rem; font-weight: 800; min-width: 3rem; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value-body h3 { margin-bottom: .35rem; }
.value-body p { color: var(--muted); margin: 0; }

/* ---------- Étapes (Comment ça marche) ---------- */
.steps { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; }
.step { display: flex; gap: 1.6rem; padding: 0 0 2.4rem; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: linear-gradient(var(--marine-500), transparent); }
.step-num { flex: 0 0 48px; height: 48px; width: 48px; border-radius: 15px; background: var(--grad-marine); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; z-index: 1; box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.12); }
.step-body h3 { margin-bottom: .35rem; }
.step-body p { color: var(--muted); margin: 0; }

/* ---------- Personas (Pour qui) ---------- */
.persona { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 2.4rem; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.persona:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.persona::before { content: ""; position: absolute; width: 200px; height: 200px; top: -90px; right: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(38,70,138,.08), transparent 70%); }
.persona-ico { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; font-size: 1.9rem; margin-bottom: 1.1rem; background: linear-gradient(150deg, #eaf0fb, #f6f8fc); border: 1px solid var(--line-2); }
.persona p { color: var(--muted); margin: 0; }

/* ---------- Bloc CTA ---------- */
.cta-bloc { position: relative; background: var(--grad-marine); color: #fff; overflow: hidden; isolation: isolate; }
.cta-bloc::before { content: ""; position: absolute; width: 640px; height: 640px; top: -50%; left: 50%; transform: translateX(-50%); border-radius: 50%; filter: blur(80px); opacity: .5; background: radial-gradient(circle, rgba(240,88,47,.4), transparent 65%); z-index: -1; }
.cta-bloc-inner { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.6rem; text-align: center; }
.cta-bloc h2 { color: #fff; }
.cta-bloc p { color: #c3cfe6; max-width: 40rem; margin: 0 auto 1.8rem; font-size: 1.12rem; }

/* ---------- Formulaire ---------- */
.contact-wrap { max-width: 40rem; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 2.4rem; box-shadow: var(--shadow); }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { font-weight: 600; font-size: .88rem; color: var(--marine); }
.field { padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fbfcfe; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.field:focus { outline: none; border-color: var(--marine-500); background: #fff; box-shadow: 0 0 0 4px rgba(38,70,138,.12); }
.field-err { border-color: var(--orange); }
.err { color: var(--orange-600); font-size: .82rem; }

.merci { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 3.4rem 2rem; box-shadow: var(--shadow); }
.merci-ico { width: 64px; height: 64px; margin: 0 auto 1.3rem; border-radius: 50%; background: #e6f4ec; color: #1c7a46; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.merci p { color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.footer { background: var(--marine-900); color: #c3cfe6; margin-top: auto; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.6rem 1.6rem 2.4rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.4rem; }
.footer-logo { height: 26px; filter: brightness(0) invert(1); opacity: .95; }
.footer-baseline { margin-top: .9rem; font-style: italic; color: #8ea0bf; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col a { display: block; color: #b6c3da; font-size: .92rem; margin-bottom: .6rem; }
.footer-col a:hover { color: #fff; }
.footer-cta { align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom span { display: block; max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1.6rem; font-size: .84rem; color: #8ea0bf; }

/* ---------- Erreur Blazor ---------- */
#blazor-error-ui { position: fixed; bottom: 0; left: 0; right: 0; display: none; padding: .8rem 1.2rem; background: #fff3cd; box-shadow: 0 -2px 10px rgba(0,0,0,.1); z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ---------- Barre de progression de lecture ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad-accent); box-shadow: 0 0 10px rgba(240,88,47,.6); transition: width .1s linear; }

/* ---------- Navbar condensée au défilement ---------- */
.nav { transition: padding .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.nav.scrolled { background: rgba(255,255,255,.9); box-shadow: 0 6px 24px -12px rgba(11,32,74,.28); }
.nav.scrolled .nav-inner { padding-top: .35rem; padding-bottom: .35rem; }
.nav.scrolled .nav-brand img { height: 34px; transition: height .25s var(--ease); }
.nav-brand img { transition: height .25s var(--ease); }

/* ---------- Reflet animé sur le CTA principal ---------- */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn-accent:hover::after { left: 130%; }

/* ---------- Texture grain (subtile) sur les fonds sombres ---------- */
.hero, .page-hero, .cta-bloc, .compare-avec, .confo-callout { background-image: var(--noise), var(--grad-marine); }
.stats-band { background-image: var(--noise), linear-gradient(120deg, var(--marine-800), var(--marine-900)); }

/* ---------- Bandeau de preuves (stats) ---------- */
.stats-band { background: linear-gradient(120deg, var(--marine-800), var(--marine-900)); color: #fff; overflow: hidden; }
.stats-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.2rem 1.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -.8rem; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.12); }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(180deg, #fff, #ffd9cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: .6rem; color: #aebbd4; font-size: .92rem; max-width: 15rem; margin-left: auto; margin-right: auto; }

/* ---------- Comparaison Avec / Sans ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 62rem; margin: 0 auto; }
.compare-col { border-radius: var(--radius-xl); padding: 2rem; }
.compare-sans { background: var(--bg-alt); border: 1px solid var(--line); }
.compare-sans h3 { color: var(--muted); }
.compare-avec { background: var(--grad-marine); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; isolation: isolate; }
.compare-avec::before { content: ""; position: absolute; width: 300px; height: 300px; top: -140px; right: -100px; border-radius: 50%; filter: blur(60px); opacity: .45; background: radial-gradient(circle, rgba(240,88,47,.5), transparent 65%); z-index: -1; }
.compare-avec h3 { color: #fff; }
.compare-col h3 { margin-bottom: 1.2rem; font-size: 1.15rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.compare-col li { position: relative; padding-left: 2rem; font-weight: 500; }
.compare-sans li { color: var(--muted); }
.compare-sans li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #eef0f4; color: #9aa6ba; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.compare-avec li { color: #eaf0fb; }
.compare-avec li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-accent); color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px -3px rgba(240,88,47,.6); }

/* ---------- FAQ (accordéon natif) ---------- */
.faq { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 600; color: var(--marine); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: 0 0 20px; height: 20px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--orange); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-plus::before { width: 12px; height: 2px; }
.faq-plus::after { width: 2px; height: 12px; }
.faq-item[open] .faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Réassurance (sous les CTA) ---------- */
.reassure { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 1.4rem; }
.reassure span { font-size: .85rem; color: #c3cfe6; display: inline-flex; align-items: center; gap: .4rem; }
.reassure span::before { content: "✓"; color: var(--orange-400); font-weight: 800; }
.reassure-dark span { color: var(--muted); }
.reassure-dark span::before { color: #1c7a46; }

/* ---------- CTA flottant ---------- */
.cta-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 55; display: none; align-items: center; gap: .5rem; background: var(--grad-accent); color: #fff; padding: .85rem 1.2rem; border-radius: 999px; font-weight: 700; box-shadow: var(--glow-orange); }
.cta-float:hover { color: #fff; }
.cta-float-ic { font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; padding-top: 4rem; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .portal-glass { transform: none; max-width: 30rem; margin: 0 auto; }
    .portal:hover .portal-glass { transform: none; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 > .feature:first-child { grid-row: auto; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .mod-showcase { grid-template-columns: 1fr; gap: 2rem; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; }
    .stat:nth-child(2)::after { display: none; }
    .compare { grid-template-columns: 1fr; }
    .confo-strip-inner { grid-template-columns: 1fr; gap: 1.6rem; }
    .cta-float { display: inline-flex; }
    .footer-inner { grid-template-columns: 1fr 1fr; }

    .nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; }
    .nav-burger span { width: 24px; height: 2px; background: var(--marine); border-radius: 2px; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.6rem 1rem; }
    .nav-links > a { padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-cta { margin-top: .6rem; }
    .nav-login { justify-content: center; margin-top: .8rem; border-bottom: 1px solid var(--line); }
    .lang { align-self: flex-start; margin-top: .6rem; }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-5, .mod-detail-grid, .form-grid, .footer-inner { grid-template-columns: 1fr; }
    .hero-inner, .section { padding-left: 1.15rem; padding-right: 1.15rem; }
    .section { padding-top: 4rem; padding-bottom: 4rem; }
    .portal-float { display: none; }
}
