/* =========================================================
   Cabinet Smart Otobos Consulting — design system
   ========================================================= */
:root {
    --brand: #00A65D;
    --brand-600: #059669;
    --brand-700: #047857;
    --brand-50: #ecfdf5;
    --brand-100: #d1fae5;
    --accent: #f97316;
    --accent-600: #ea580c;
    --accent-50: #fff7ed;
    --sky: #0ea5e9;
    --ink: #0f172a;
    --ink-2: #1e293b;
    --text: #475569;
    --muted: #94a3b8;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --white: #fff;
    --radius: 12px;
    --radius-lg: 19px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
    --shadow: 0 20px 50px -25px rgba(15, 23, 42, .35);
    --shadow-brand: 0 20px 40px -12px rgba(16, 185, 129, .5);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 9px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; }
.section { padding: 64px 0; }
.section-lg { padding: 96px 0; }
.bg-soft { background: var(--soft); }
.bg-dark { background: var(--ink); color: #cbd5e1; }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.muted { color: var(--muted); }
.relative { position: relative; }

/* ---------- Section heading ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--brand-100); color: var(--brand-700);
    font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow.orange { background: #ffedd5; color: var(--accent-600); }
.eyebrow.ghost { background: transparent; color: var(--muted); padding: 0; letter-spacing: .3em; }
.heading { margin-bottom: 48px; }
.heading h2 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 900; margin-top: 14px; }
.heading p { font-size: clamp(15px, 1.6vw, 19px); max-width: 640px; margin: 0 auto; }
.text-center .heading p, .heading.text-center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 12px 26px; border-radius: 7px; border: 0;
    font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn i { font-size: 20px; transition: transform .25s var(--ease); }
.btn:hover i.bx-right-arrow-alt { transform: translateX(4px); }
.btn-brand { background: linear-gradient(135deg, #10b981, var(--brand-600)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-brand:hover { box-shadow: 0 25px 50px -10px rgba(16, 185, 129, .6); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 18px 36px -14px rgba(249, 115, 22, .6); }
.btn-accent:hover { background: var(--accent-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Top bar & Navbar ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.socials { display: flex; gap: 8px; }
.socials a {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--brand); transform: translateY(-2px); }

.navbar {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.navbar.scrolled { box-shadow: 0 8px 30px -12px rgba(15, 23, 42, .18); border-color: var(--line); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.brand img { width: 48px; height: 48px; border-radius: 7px; }
.navbar .brand img { width: 52px; height: 52px; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    position: relative; padding: 10px 14px; border-radius: 6px;
    font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-links a.active { color: var(--brand-600); }
.nav-links a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand);
}
.nav-links .pill {
    font-size: 10px; font-weight: 800; background: var(--accent); color: #fff;
    padding: 2px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 2px;
}
.nav-cta { margin-left: 10px; }
.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; border-radius: 7px; background: var(--soft);
    color: var(--ink); font-size: 26px; place-items: center;
}

@media (max-width: 991px) {
    .topbar .hide-sm { display: none; }
    .nav-toggle { display: grid; }
    /* Le flou de la barre enfermerait le menu (position: fixed) dans ses 72 px : on le retire sur mobile */
    .navbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
    .nav-links {
        position: fixed; top: var(--menu-top, var(--nav-h)); left: 0; right: 0; bottom: 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 20px;
        background: #fff; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 16px 8px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-links a.active::after { display: none; }
    .nav-cta { margin: 16px 0 0; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: calc(92vh - var(--nav-h)); display: flex; align-items: center;
    background: var(--ink); color: #fff;
}
.hero-sm { min-height: 340px; }
.hero-media, .hero-media img, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-media.slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; animation: heroFade 21s infinite; }
.hero-media.slideshow .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* La 1re diapo est visible dès le chargement, sans attendre l'animation */
.hero-media.slideshow .slide-1 { opacity: 1; animation-name: heroFadeFirst; }
.hero-media.slideshow .slide-2 { animation-delay: 7s; }
.hero-media.slideshow .slide-3 { animation-delay: 14s; }
@keyframes heroFade {
    0% { opacity: 0; transform: scale(1.06); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    40% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}
@keyframes heroFadeFirst {
    0% { opacity: 1; transform: scale(1.06); }
    33% { opacity: 1; }
    40% { opacity: 0; transform: scale(1); }
    95% { opacity: 0; }
    100% { opacity: 1; transform: scale(1.06); }
}
.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .35) 0%, rgba(2, 6, 23, .55) 55%, rgba(2, 6, 23, .85) 100%),
        linear-gradient(90deg, rgba(0, 80, 45, .35), rgba(2, 6, 23, 0) 70%);
}
.hero-blob { position: absolute; z-index: -1; border-radius: 999px; filter: blur(100px); animation: blob 9s ease-in-out infinite; }
.hero-blob.one { top: 15%; left: 15%; width: 380px; height: 380px; background: rgba(16, 185, 129, .3); }
.hero-blob.two { bottom: 10%; right: 15%; width: 320px; height: 320px; background: rgba(249, 115, 22, .2); animation-delay: -4s; }
@keyframes blob { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.25); opacity: 1; } }

.hero-content { width: 100%; padding: 64px 0; text-align: center; }
.hero-content > .container > * { animation: rise .9s var(--ease) both; }
.hero-content > .container > *:nth-child(2) { animation-delay: .1s; }
.hero-content > .container > *:nth-child(3) { animation-delay: .2s; }
.hero-content > .container > *:nth-child(4) { animation-delay: .3s; }
.hero-content > .container > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero h1 {
    color: #fff; font-weight: 900; font-size: clamp(32px, 6vw, 66px); max-width: 900px; margin: 18px auto;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}
.hero h1 .hl { color: #34d399; display: block; }
.hero .lead { font-size: clamp(16px, 2vw, 21px); color: rgba(255, 255, 255, .9); max-width: 680px; margin: 0 auto 30px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 13px; font-weight: 700; color: #fff;
}
.dot-live { width: 8px; height: 8px; border-radius: 99px; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.countdown { display: inline-flex; gap: 8px; margin-bottom: 6px; }
.countdown div {
    min-width: 62px; padding: 8px 10px; border-radius: 7px; text-align: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.countdown b { display: block; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }

.page-hero { padding: 80px 0 72px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); }
.breadcrumb { font-size: 14px; color: rgba(255, 255, 255, .7); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- Cards ---------- */
.card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; }
.icon-box {
    width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--brand-50); color: var(--brand-600); font-size: 28px;
    transition: transform .35s var(--ease), background .35s, color .35s;
}
.card:hover .icon-box { transform: rotate(-6deg) scale(1.06); background: var(--brand); color: #fff; }
.icon-box.orange { background: var(--accent-50); color: var(--accent-600); }
.icon-box.sky { background: #e0f2fe; color: #0284c7; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.split-media .floating {
    position: absolute; right: -14px; bottom: -22px; background: #fff; border-radius: 12px; padding: 16px 20px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: float 5s ease-in-out infinite;
}
.split-media .floating b { display: block; font-size: 22px; color: var(--ink); line-height: 1; }
.split-media .floating small { font-size: 12px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 640px) { .split-media .floating { right: 10px; bottom: -18px; } }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--ink-2); font-weight: 500; }
.check-list i { color: var(--brand); font-size: 22px; flex-shrink: 0; }

/* ---------- À propos (accueil) ---------- */
.split-about { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
.split-about .split-media { max-width: 460px; width: 100%; justify-self: center; }
.split-about .split-media img { max-height: 360px; }
.split-about .floating { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; background: var(--brand); color: #fff; animation: none; }
.split-about .floating b { color: #fff; font-size: 26px; }
.split-about .floating small { color: rgba(255, 255, 255, .85); line-height: 1.35; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 16px; }
.about-text p { font-size: 16px; }
.about-text p strong { color: var(--ink); }
.about-points { margin: 20px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.about-points li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 15px; }
.about-points i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--brand-50); color: var(--brand-600); font-size: 18px; flex-shrink: 0; }
@media (max-width: 991px) { .split-about { grid-template-columns: 1fr; gap: 40px; } .split-about .split-media { max-width: 440px; } }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #10b981); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px); background-size: 22px 22px; }
.stats-band .grid { position: relative; text-align: center; }
.stat b { display: block; font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

/* ---------- Marquee (galleries, logos, testimonials) ---------- */
.marquee { 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); }
.marquee-track { display: flex; width: max-content; gap: 20px; animation: marquee var(--dur, 60s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
.marquee + .marquee { margin-top: 20px; }

.shot {
    position: relative; width: 380px; aspect-ratio: 16/10; flex-shrink: 0; overflow: hidden;
    border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--soft);
    padding: 0; cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.07); }
@media (max-width: 640px) { .shot { width: 250px; } }

.logo-strip .marquee-track { gap: 48px; }
.logo-strip span { font-weight: 900; font-size: 22px; letter-spacing: .08em; color: #64748b; white-space: nowrap; }

/* ---------- Testimonials ---------- */
.quote-card {
    width: 420px; flex-shrink: 0; padding: 32px; border-radius: 19px;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
    transition: background .3s;
}
.quote-card:hover { background: rgba(255, 255, 255, .06); }
.quote-card .stars { color: #fb923c; display: flex; gap: 2px; margin-bottom: 16px; }
.quote-card p { font-style: italic; color: #cbd5e1; font-size: 16px; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.person img, .person .avatar {
    width: 46px; height: 46px; border-radius: 99px; background: #1e293b; border: 2px solid rgba(16, 185, 129, .3);
    display: grid; place-items: center; font-weight: 800; color: #34d399; flex-shrink: 0;
}
.person h4 { font-size: 15px; margin: 0; color: #fff; }
.person small { color: #64748b; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 11px; }
@media (max-width: 640px) { .quote-card { width: 280px; padding: 22px; } .quote-card p { font-size: 14px; } }

.light .quote-card { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.light .quote-card p { color: var(--text); }
.light .person h4 { color: var(--ink); }

/* video testimonials */
.video-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 960px; margin: 0 auto; align-items: start; }
.video-row > :nth-child(1) { margin-top: 48px; }
.video-row > :nth-child(3) { margin-top: 96px; }
.video-card {
    position: relative; aspect-ratio: 9/16; border-radius: 19px; overflow: hidden; background: var(--ink);
    box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; width: 100%;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.video-card:hover video { transform: scale(1.05); }
.video-card .vc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; text-align: left; background: linear-gradient(transparent, rgba(2, 6, 23, .9)); }
.video-card .vc-info b { display: block; color: #fff; font-size: 16px; }
.video-card small { color: #94a3b8; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.video-card .play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 66px; height: 66px; border-radius: 99px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-size: 34px; transition: transform .3s var(--ease), opacity .3s;
}
.video-card.playing .play { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
@media (max-width: 768px) {
    .video-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin: 0 -20px; scrollbar-width: none; }
    .video-row::-webkit-scrollbar { display: none; }
    .video-row > * { width: 240px; flex-shrink: 0; scroll-snap-align: center; margin-top: 0 !important; }
}

/* ---------- Training card ---------- */
.training {
    display: grid; grid-template-columns: 320px 1fr; gap: 0; overflow: hidden; padding: 0;
}
.training .t-media { position: relative; min-height: 240px; }
.training .t-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.training .t-body { padding: 30px; }
.training .tag { position: absolute; top: 16px; left: 16px; }
@media (max-width: 768px) { .training { grid-template-columns: 1fr; } .training .t-media { aspect-ratio: 16/9; min-height: 0; } }
.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    background: var(--brand); color: #fff;
}
.tag.orange { background: var(--accent); }
.tag.soft { background: var(--brand-50); color: var(--brand-700); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 20px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row i { color: var(--brand); font-size: 18px; }

/* ---------- Tabs (pill filters) ---------- */
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tabs button {
    flex-shrink: 0; scroll-snap-align: start; border: 0; padding: 11px 20px; border-radius: 7px;
    background: var(--soft); color: var(--text); font-weight: 800; font-size: 14px;
    transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.tabs button:hover { background: #f1f5f9; }
.tabs button.active { background: var(--brand-600); color: #fff; transform: scale(1.04); box-shadow: 0 10px 20px -10px rgba(5, 150, 105, .7); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn .4s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* ---------- Blog ---------- */
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post .p-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post .p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .p-media img { transform: scale(1.06); }
.post .p-media .tag { position: absolute; top: 14px; left: 14px; }
.post .p-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post time { font-size: 13px; color: var(--brand-600); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post h3 { font-size: 19px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .more { margin-top: auto; font-weight: 700; color: var(--brand-600); display: inline-flex; align-items: center; gap: 4px; }
.post:hover .more i { transform: translateX(4px); }
.post .more i { transition: transform .25s var(--ease); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
@media (max-width: 991px) { .article-layout { grid-template-columns: 1fr; } }
.prose { color: #334155; font-size: 17px; line-height: 1.8; }
.prose h2 { font-size: 26px; margin-top: 36px; }
.prose img { width: 100%; border-radius: 12px; margin: 24px 0; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.prose strong { color: var(--ink); }
.aside-sticky { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 18px; align-content: start; }
.mini-post { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid var(--line); transition: background .25s, border-color .25s; }
.mini-post:hover { background: var(--soft); border-color: var(--brand-100); }
.mini-post img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.mini-post h4 { font-size: 14px; line-height: 1.35; margin: 0 0 4px; }
.mini-post small { font-size: 12px; color: var(--muted); }

/* ---------- Galerie ---------- */
.masonry { columns: 4 260px; column-gap: 16px; }
.masonry .shot { width: 100%; aspect-ratio: auto; margin: 0 0 16px; break-inside: avoid; display: block; }
.masonry .shot img { height: auto; }
.masonry .shot .cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 13px; font-weight: 600; text-align: left;
    background: linear-gradient(transparent, rgba(2, 6, 23, .8)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.masonry .shot:hover .cap { opacity: 1; transform: none; }
.shot.hidden { display: none; }

.lightbox {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
    background: rgba(2, 6, 23, .92); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; max-width: min(1200px, 100%); border-radius: 9px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.96); transition: transform .35s var(--ease); }
.lightbox.open img { transform: none; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; display: grid; place-items: center; transition: background .25s; }
.lb-btn:hover { background: var(--brand); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: 14px; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partners img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 14px; filter: grayscale(.4); transition: filter .3s, transform .3s var(--ease); }
.partners img:hover { filter: none; transform: translateY(-4px); }
@media (max-width: 768px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: 23px; padding: 64px 40px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--ink), #0b3b2e); }
.cta-banner::before { content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px; background: rgba(16, 185, 129, .35); filter: blur(120px); border-radius: 99px; }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; font-size: clamp(26px, 4vw, 42px); }
.cta-banner p { color: #cbd5e1; max-width: 620px; margin: 0 auto 26px; }
@media (max-width: 640px) { .cta-banner { padding: 44px 22px; border-radius: 17px; } }

/* ---------- Contact ---------- */

/* ---------- Footer ---------- */
.footer { background: #020617; color: #94a3b8; padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #34d399; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp + sticky mobile CTA ---------- */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 99px;
    display: grid; place-items: center; background: #25d366; color: #fff; font-size: 32px;
    box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.mobile-cta { display: none; }
@media (max-width: 768px) {
    .mobile-cta {
        display: flex; gap: 10px; align-items: center; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
        padding: 10px 10px 10px 18px; border-radius: 12px; background: rgba(15, 23, 42, .94);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; box-shadow: var(--shadow);
        transform: translateY(150%); transition: transform .4s var(--ease);
    }
    .mobile-cta.show { transform: none; }
    .mobile-cta .txt { flex: 1; font-size: 13px; line-height: 1.3; }
    .mobile-cta .txt b { display: block; font-size: 15px; }
    .mobile-cta .btn { min-height: 44px; padding: 10px 16px; }
    .has-mobile-cta .wa-float { bottom: 86px; }
}

/* ---------- Scroll reveal (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-media.slideshow .slide:not(.slide-1) { display: none; }
    .hero-media.slideshow .slide-1 { opacity: 1; }
}

/* ---------- Section head (titre à gauche / texte à droite) ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 36px; }
@media (max-width: 768px) { .section-head { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field input, .field textarea {
    width: 100%; font: inherit; font-weight: 400; color: var(--ink); padding: 13px 14px; border-radius: 7px;
    border: 1px solid var(--line); background: var(--soft); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }

/* ---------- Bandeau d'annonce défilant ---------- */
.announce { display: block; overflow: hidden; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; line-height: 32px; height: 32px; white-space: nowrap; }
.announce:hover { background: var(--brand-600); color: #fff; }
.announce-track { display: inline-flex; width: max-content; animation: announce 40s linear infinite; }
.announce:hover .announce-track { animation-play-state: paused; }
.announce span { display: inline-flex; align-items: center; gap: 8px; padding: 0 36px; }
.announce b { color: #fef08a; font-weight: 800; }
@keyframes announce { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- À propos : image plus compacte ---------- */

/* =========================================================
   Page certification MO-220
   ========================================================= */
/* Utiliser vs maîtriser */
.compare { max-width: 980px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1.4fr; }
.compare-head span { padding: 16px 22px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.compare-head span + span { color: var(--brand-700); background: var(--brand-50); }
.compare-row span { padding: 16px 22px; display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); }
.compare-row .from { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, .5); }
.compare-row .from i { color: #f87171; font-size: 20px; text-decoration: none; }
.compare-row .to { color: var(--ink-2); font-weight: 600; background: rgba(236, 253, 245, .45); }
.compare-row .to i { color: var(--brand); font-size: 20px; }
@media (max-width: 640px) {
    .compare-head { display: none; }
    .compare-row { grid-template-columns: 1fr; }
    .compare-row .from { padding-bottom: 4px; }
    .compare-row .to { border-top: 0; padding-top: 4px; }
}

/* Carte d'identité + certificats */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
@media (max-width: 991px) { .cert-grid { grid-template-columns: 1fr; } }
.id-card-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.id-card-head img { width: 64px; height: auto; border-radius: 7px; }
.id-card-head b { display: block; font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1; margin-top: 4px; }
.id-card dl { margin: 0; }
.id-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.id-card dl div:last-child { border-bottom: 0; }
.id-card dt { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); padding-top: 2px; }
.id-card dd { margin: 0; color: var(--ink-2); font-weight: 500; }
.id-card:hover { transform: none; }
.cert-visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #062e22; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cert-visual > img { width: 100%; max-height: 240px; object-fit: cover; cursor: zoom-in; }
.cert-visual figcaption { padding: 16px 18px 18px; }
.cert-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cert-badges div { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 12px; color: #94a3b8; font-size: 12px; }
.cert-badges img { width: 52px; height: auto; border-radius: 6px; flex-shrink: 0; }
.cert-badges b { display: block; color: #fff; font-size: 14px; line-height: 1.3; }
@media (max-width: 560px) { .cert-badges { grid-template-columns: 1fr; } .id-card dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Prérequis */
.prereq { max-width: 1000px; margin: 40px auto 0; }
.prereq-title { margin: 0 0 14px; text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-600); }
.prereq-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.prereq-list div { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.prereq-list div + div { border-left: 1px solid var(--line); }
.prereq-list i { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); font-size: 20px; }
.prereq-list b { color: var(--ink); font-size: 15px; }
.prereq-list span { font-size: 13px; color: var(--text); line-height: 1.45; }
@media (max-width: 860px) { .prereq-list { grid-template-columns: 1fr 1fr; } .prereq-list div + div { border-left: 0; } .prereq-list div:nth-child(even) { border-left: 1px solid var(--line); } .prereq-list div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .prereq-list { grid-template-columns: 1fr; } .prereq-list div:nth-child(even) { border-left: 0; } .prereq-list div + div { border-top: 1px solid var(--line); } }

/* Certidy */
.certidy-intro { display: grid; grid-template-columns: 170px 1fr; gap: 36px; align-items: center; max-width: 980px; margin: 0 auto; }
.certidy-intro img { width: 170px; height: auto; filter: drop-shadow(0 20px 40px rgba(16, 185, 129, .35)); animation: float 6s ease-in-out infinite; }
.certidy-intro p { color: #cbd5e1; font-size: 18px; margin: 0; }
@media (max-width: 640px) { .certidy-intro { grid-template-columns: 1fr; text-align: center; } .certidy-intro img { width: 130px; margin: 0 auto; } }
.dark-card { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.dark-card:hover { border-color: rgba(16, 185, 129, .4); background: rgba(255, 255, 255, .05); }
.dark-card p { color: #94a3b8; }
.dark-card .icon-box { background: rgba(16, 185, 129, .15); color: #34d399; }
.steps-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; padding: 26px; border-radius: 16px; background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(16, 185, 129, .04)); border: 1px solid rgba(16, 185, 129, .25); }
.steps-4 div { position: relative; padding: 16px; border-radius: 10px; background: rgba(2, 6, 23, .35); }
.steps-4 span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6ee7b7; }
.steps-4 b { display: block; color: #fff; font-size: 17px; margin: 4px 0 6px; }
.steps-4 p { margin: 0; color: #94a3b8; font-size: 14px; }
@media (max-width: 900px) { .steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps-4 { grid-template-columns: 1fr; } }
.flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flags span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e2e8f0; font-weight: 600; font-size: 14px; }
.flags i { font-style: normal; font-size: 20px; }
.certified { width: 220px; flex-shrink: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); cursor: zoom-in; transition: transform .4s var(--ease); }
.certified:hover { transform: translateY(-6px) rotate(-1deg); }
.certified img { width: 100%; height: auto; }
@media (max-width: 640px) { .certified { width: 170px; } }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: 19px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 18px; margin: 4px 0 10px; }
.price-card .amount { font-size: 48px; font-weight: 900; color: var(--ink); line-height: 1; }
.price-card .fcfa { font-weight: 700; color: var(--muted); }
.price-card .deal { display: flex; gap: 8px; align-items: center; margin: 14px 0; padding: 10px 12px; border-radius: 7px; background: var(--accent-50); color: var(--accent-600); font-weight: 700; font-size: 14px; }
.price-card .check-list { margin-bottom: 14px; }
.price-card .check-list li { font-size: 14px; margin-bottom: 6px; }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--ink); border-color: var(--ink); color: #cbd5e1; box-shadow: 0 40px 70px -30px rgba(15, 23, 42, .6); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-card.featured h3, .price-card.featured .amount { color: #fff; }
.price-card.featured .check-list li { color: #e2e8f0; }
.price-card.featured .deal { background: rgba(249, 115, 22, .15); color: #fdba74; }
@media (max-width: 991px) { .prices { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .price-card.featured { transform: none; } .price-card.featured:hover { transform: translateY(-6px); } }

/* ---------- MO-220 : sections allégées ---------- */
.domain-mini { padding: 24px; }
.domain-mini .domain-n { display: block; margin-bottom: 10px; font-size: 32px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #10b981, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.domain-mini h3 { font-size: 17px; }
.domain-mini p { font-size: 14px; }

.trainers-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tm { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; padding: 22px; border-radius: 17px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.tm:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tm > img { width: 150px; height: 180px; object-fit: cover; object-position: center 15%; border-radius: 12px; }
.tm h3 { font-size: 20px; margin-bottom: 2px; }
.tm .tc-role { color: var(--brand-700); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.tm p { font-size: 14px; margin-bottom: 10px; }
.tm-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 12px; }
.tm-stats b { color: var(--ink); font-size: 15px; }
.tm-badges { display: flex; gap: 8px; }
.tm-badges img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--soft); padding: 2px; }
@media (max-width: 991px) { .trainers-mini { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tm { grid-template-columns: 1fr; } .tm > img { width: 100%; height: 240px; } }

.method-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.method-strip div { padding: 22px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.method-strip div:first-child { border-left: 0; }
.method-strip i { font-size: 26px; color: var(--brand); margin-bottom: 4px; }
.method-strip b { color: var(--ink); }
.method-strip span { font-size: 14px; }
@media (max-width: 900px) { .method-strip { grid-template-columns: 1fr 1fr; } .method-strip div:nth-child(3) { border-left: 0; } .method-strip div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .method-strip { grid-template-columns: 1fr; } .method-strip div { border-left: 0; border-top: 1px solid var(--line); } .method-strip div:first-child { border-top: 0; } }

.benefits { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.benefits-intro img { width: 84px; height: auto; margin-bottom: 18px; }
.benefits-intro h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 10px; }
.benefits-intro p { margin: 0; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.benefit > i { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #10b981, var(--brand-600)); color: #fff; font-size: 22px; box-shadow: 0 10px 20px -10px rgba(16, 185, 129, .7); }
.benefit b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.benefit p { margin: 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 991px) { .benefits { grid-template-columns: 1fr; gap: 32px; } .benefits-intro { text-align: center; } .benefits-intro img { margin-inline: auto; } }
@media (max-width: 560px) { .benefits-grid { grid-template-columns: 1fr; } }

.price-note { text-align: center; margin: 26px auto 0; max-width: 760px; font-size: 14px; }
.price-link { margin-top: auto; font-weight: 800; color: var(--brand-600); }
.price-card.featured .price-link { color: #34d399; }
.price-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Bloc inscription */

/* FAQ (sans icônes) */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-intro h2 { font-size: clamp(30px, 4.5vw, 46px); margin-top: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-q { border-bottom: 1px solid var(--line); }
.faq-q summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: baseline; padding: 22px 4px; font-weight: 700; font-size: 18px; color: var(--ink); transition: color .2s; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; color: var(--brand-600); text-align: right; transition: transform .3s var(--ease); }
.faq-q[open] summary::after { transform: rotate(45deg); }
.faq-q summary:hover { color: var(--brand-700); }
.faq-n { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq-q p { margin: 0; padding: 0 28px 22px 56px; color: var(--text); animation: panelIn .35s var(--ease); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } .faq-intro { position: static; } .faq-q summary { font-size: 16px; grid-template-columns: 30px 1fr 20px; } .faq-q p { padding: 0 0 18px 42px; } }

/* ---------- Formulaire d'inscription ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 991px) { .signup { grid-template-columns: 1fr; } }
.signup-form { padding: 36px; }
.signup-form:hover { transform: none; }
.signup-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.signup-form legend { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.signup-form legend small { font-weight: 500; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid[hidden] { display: none; }
.signup-nb { margin-top: 16px; }
.field[hidden] { display: none; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .signup-form { padding: 22px; } }
.field select {
    width: 100%; font: inherit; font-weight: 400; color: var(--ink); padding: 13px 14px; border-radius: 7px;
    border: 1px solid var(--line); background: var(--soft); appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.field em, .field-error { font-style: normal; color: #dc2626; font-size: 13px; font-weight: 600; }
.field-error { margin: 6px 0 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #f87171; background: #fef2f2; }
.form-alert { padding: 14px 16px; border-radius: 9px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-weight: 600; margin-bottom: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; gap: 2px; padding: 18px; border-radius: 10px; border: 2px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.choice b { color: var(--ink); font-size: 16px; }
.choice strong { color: var(--brand-700); font-size: 15px; }
.choice small { font-size: 13px; color: var(--muted); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-600); flex-shrink: 0; }
.check.has-error span { color: #b91c1c; }
.signup-aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 18px; }
.signup-aside .card:hover { transform: none; }
.aside-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: 14px; }
.aside-list span { color: #94a3b8; font-weight: 500; }
.aside-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
@media (max-width: 991px) { .signup-aside { position: static; } }

.thanks { text-align: center; padding: 48px 40px; }
@media (max-width: 640px) { .thanks { padding: 36px 20px; } }
.thanks:hover { transform: none; }
.thanks h1 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.thanks-lead { margin: 6px 0 0; font-size: 18px; color: var(--text); }
.thanks-formation { display: grid; gap: 4px; margin: 28px auto 0; max-width: 520px; padding: 16px 20px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.thanks-formation b { color: var(--ink); font-size: 16px; line-height: 1.4; }
.thanks-formation span { font-size: 14px; color: var(--text); }
.thanks-steps { list-style: none; counter-reset: st; max-width: 520px; margin: 28px auto 0; padding: 0; display: grid; gap: 16px; text-align: left; }
.thanks-steps li { counter-increment: st; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; align-items: start; }
.thanks-steps li::before { content: counter(st); grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.thanks-steps b { color: var(--ink); font-size: 15px; line-height: 1.4; }
.thanks-steps span { font-size: 14px; color: var(--text); line-height: 1.5; }
.thanks-actions { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.thanks-icon { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 99px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 44px; box-shadow: var(--shadow-brand); animation: rise .6s var(--ease) both; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.contact-info h2, .contact-form h2 { font-size: 24px; margin-bottom: 6px; }
.contact-info > p, .contact-form > p { font-size: 15px; margin: 0 0 20px; }
.office-list { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.office-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; }
.office-list li + li { border-top: 1px solid var(--line); }
.office-list .flag { font-size: 24px; line-height: 1; }
.office-list b { display: block; font-size: 14px; color: var(--ink); }
.office-list div a { font-size: 14px; color: var(--text); }
.office-list div a:hover { color: var(--brand-600); }
.office-list .wa { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); font-size: 20px; transition: background .2s, color .2s; }
.office-list .wa:hover { background: var(--brand); color: #fff; }
.office-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.office-mail i { color: var(--brand); font-size: 20px; }
.contact-form { display: grid; gap: 14px; }
.contact-form:hover { transform: none; }
.contact-form > p { margin-bottom: 4px; }
.contact-form .btn { justify-self: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Boutons blancs (fonds sombres) ---------- */
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6); }
.btn-white:hover { background: #f1f5f9; }
.btn-white i { color: var(--brand-600); font-size: 18px; }

/* ---------- Formations passées : « Et bien d'autres » ---------- */
.more-card { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; min-height: 100%; padding: 32px 24px; background: linear-gradient(160deg, var(--brand-50), #fff 70%); border: 2px dashed var(--brand-100); box-shadow: none; }
.more-card:hover { border-color: var(--brand); }
.more-card > b { font-size: 52px; font-weight: 900; line-height: 1; color: var(--brand); }
.more-card h3 { font-size: 20px; margin: 4px 0 0; }
.more-card p { font-size: 14px; max-width: 240px; }
.more-card span { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brand-600); font-size: 14px; }
.more-card:hover span i { transform: translateX(4px); }
.more-card span i { transition: transform .25s var(--ease); }

/* ---------- MO-220 : Pourquoi ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1040px; margin: 0 auto; }
.why-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.why-card > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); font-size: 24px; }
.why-card .from { font-size: 14px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, .5); }
.why-card .to { position: relative; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; line-height: 1.4; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- MO-220 : Pour qui ---------- */
.audience-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.audience-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.audience-chips i { color: var(--brand); font-size: 18px; }

/* ---------- MO-220 : calculateur de tarif ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.calc-main { padding: 30px; }
.calc-step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 800; color: var(--ink); font-size: 15px; }
.calc-step > span:first-child { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; background: var(--brand); color: #fff; font-size: 13px; }
.calc-main > * + .calc-step, .calc-qty { margin-top: 26px; }
.calc-qty[hidden] { display: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--soft); font-size: 22px; font-weight: 700; color: var(--ink); cursor: pointer; transition: background .2s; }
.stepper button:hover { background: var(--brand-50); color: var(--brand-600); }
.stepper input { width: 64px; height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-option { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; font-size: 13px; color: var(--text); }
.calc-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.calc-option input { width: 22px; height: 22px; accent-color: var(--brand-600); }
.calc-option img { width: 44px; height: 44px; object-fit: contain; }
.calc-option b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.calc-per[hidden] { display: none; }
.calc-sum { display: flex; flex-direction: column; padding: 30px; background: var(--ink); color: #cbd5e1; }
.calc-sum .label { color: #6ee7b7; margin: 0 0 12px; }
.calc-sum ul { list-style: none; margin: 0; padding: 0; }
.calc-sum li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.calc-sum li b { color: #fff; text-align: right; white-space: nowrap; }
.calc-sum li.discount b, .calc-sum li.discount span { color: #fdba74; }
.calc-sum li.sub { color: #fff; font-weight: 600; border-bottom-color: rgba(255, 255, 255, .25); }
.calc-total { margin: 18px 0 22px; }
.calc-total b { display: block; font-size: 44px; font-weight: 900; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-total span { display: block; margin-top: 6px; font-weight: 700; color: #94a3b8; font-variant-numeric: tabular-nums; }
.calc-sum .btn { margin-top: auto; }
.calc-foot { margin: 12px 0 0; font-size: 12px; color: #94a3b8; text-align: center; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-main, .calc-sum { padding: 22px; } .calc-total b { font-size: 38px; } }

/* ---------- Inscription : total ---------- */
.signup-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.signup-total span { font-weight: 700; color: var(--ink-2); }
.signup-total b { font-size: 20px; color: var(--ink); }
.signup-total small { display: block; width: 100%; font-size: 13px; color: var(--text); }

/* ---------- MO-220 : réservation (compact) ---------- */
.enroll-lite { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; padding: 28px 32px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--ink), #0b3b2e); color: #cbd5e1; }
.enroll-lite h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin: 0 0 4px; }
.enroll-lite p { margin: 0; font-size: 14px; color: #94a3b8; }
.enroll-lite .countdown { margin: 0; }
.enroll-lite-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 991px) { .enroll-lite { grid-template-columns: 1fr; text-align: center; gap: 18px; padding: 26px 20px; } .enroll-lite .countdown { justify-content: center; } .enroll-lite-actions { justify-content: center; } }
.tab-panel > .training + .training { margin-top: 24px; }

/* ---------- Fiche formation (générique) ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.fiche-body .prose p { font-size: 16px; }
.fiche-media { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 28px; aspect-ratio: 16/9; object-fit: cover; }
.fiche-aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.fiche-aside .aside-list { margin-bottom: 20px; }
.fiche-price { padding: 14px 0; border-top: 1px solid var(--line); }
.fiche-price span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fiche-price b { display: block; font-size: 20px; color: var(--ink); }
.fiche-price small { color: var(--text); font-size: 13px; }
@media (max-width: 991px) { .fiche { grid-template-columns: 1fr; } .fiche-aside { position: static; } }
.fiche-aside .aside-list li { color: var(--ink); border-top-color: var(--line); }
.fiche-aside .aside-list span { color: var(--muted); }
.signup-lines { list-style: none; width: 100%; margin: 4px 0 0; padding: 0; font-size: 13px; }
.signup-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--text); }
.signup-lines li.disc { color: var(--accent-600); font-weight: 600; }
.signup-lines li.sub { color: var(--ink); font-weight: 600; border-top: 1px dashed var(--line, #e5e7eb); margin-top: 2px; padding-top: 5px; }
.signup-total small:empty { display: none; }
.calc-options { display: grid; gap: 10px; }
.calc-opt-ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 30px; color: var(--brand); }
.req { color: #dc2626; font-weight: 800; }
.req-note { margin: 0 0 4px; font-size: 13px; color: var(--muted); }

/* ---------- Page 404 ---------- */
.error-page { padding: 72px 0 96px; background: radial-gradient(ellipse at top, var(--brand-50), transparent 60%); }
.error-box { max-width: 680px; margin: 0 auto; text-align: center; }
.error-code { margin: 0; font-size: clamp(96px, 20vw, 168px); font-weight: 900; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, #10b981, var(--brand-700, #047857)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-box h1 { margin: 8px 0 12px; font-size: clamp(26px, 4vw, 38px); }
.error-box .lead { margin: 0 auto 28px; max-width: 520px; }
