/* ============================================================
   Centre Pratik Privé — feuille de style
   Palette : marine / bleu royal / rouge / or
   ============================================================ */
:root {
  --navy: #0a1f44;
  --navy-2: #12306b;
  --navy-deep: #06142e;
  --royal: #1d4ed8;
  --red: #e31c23;
  --red-dark: #c4161c;
  --orange: #f15a24;
  --gold: #f5a623;
  --gold-soft: #fff3dc;
  --ink: #1b2437;
  --muted: #5b6579;
  --line: #e3e8f1;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 68, .06);
  --shadow: 0 12px 34px rgba(10, 31, 68, .10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, .18);
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3 { font-family: var(--font-head); color: var(--navy); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--royal); }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.text-muted { color: var(--muted) !important; }
.text-gold { color: var(--gold) !important; }

/* ---------- Boutons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: 12px; padding: .72rem 1.4rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-cpp-red { background: linear-gradient(135deg, var(--red), var(--orange)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(227, 28, 35, .28); position: relative; overflow: hidden; }
.btn-cpp-red::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn-cpp-red:hover::after { transform: translateX(120%); }
.btn-cpp-red:hover, .btn-cpp-red:focus { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-cpp-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-cpp-navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-cpp-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-cpp-gold:hover { background: #b38f1d; border-color: #b38f1d; color: var(--navy-deep); }
.btn-outline-light-cpp { border: 2px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-outline-light-cpp:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Navbar ---------- */
.scroll-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), var(--orange), var(--gold)); z-index: 2; }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .94); transition: box-shadow .25s, background .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 28px rgba(10, 31, 68, .10); }
.site-header .navbar { padding: .45rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--red), var(--gold)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem; }
.brand-logo { height: 54px; width: auto; max-width: 280px; object-fit: contain; }
.brand-logo-footer { height: 80px; max-width: 300px; background: #fff; border-radius: 14px; padding: .35rem .55rem; }
.brand-logo-admin { height: 48px; max-width: 160px; background: #fff; border-radius: 8px; padding: .2rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--navy); padding: .1rem .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(241, 90, 36, .25); }
.navbar .nav-link { font-weight: 600; color: var(--navy); font-size: .92rem; padding: .6rem .75rem !important; position: relative; transition: color .2s; }
.navbar .nav-link .chev { font-size: .7rem; margin-left: .15rem; transition: transform .25s; }
.navbar .nav-link::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: .18rem; height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.22,1,.36,1); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--red); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }

.has-mega { position: relative; }
.mega-panel { display: none; }
@media (min-width: 1200px) {
  .has-mega { position: static; }
  .mega-panel {
    display: block; position: absolute; left: 0; right: 0; top: calc(100% - 6px); padding: 1rem 0 1.4rem; z-index: 1040;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), visibility .28s;
  }
  .has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  }
  .has-mega:hover .nav-link .chev, .has-mega:focus-within .nav-link .chev { transform: rotate(180deg); }
  .mega-inner {
    width: min(1120px, calc(100% - 2rem)); margin: 0 auto; background: #fff;
    border-radius: 22px; padding: 1.1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem;
    box-shadow: 0 24px 60px rgba(10, 31, 68, .16); border: 1px solid var(--line);
    background-image: radial-gradient(circle at 0 0, rgba(227,28,35,.08), transparent 40%), radial-gradient(circle at 100% 100%, rgba(245,166,35,.12), transparent 40%);
  }
  .mega-card {
    display: flex; gap: .7rem; align-items: flex-start; text-decoration: none; color: var(--navy);
    padding: .75rem .7rem; border-radius: 14px; border: 1px solid transparent; transition: .22s;
  }
  .mega-card:hover { background: #fff; border-color: rgba(241,90,36,.35); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
  .mega-ico {
    width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; font-size: 1.1rem;
    background: linear-gradient(135deg, var(--red), var(--gold));
  }
  .mega-txt { display: flex; flex-direction: column; min-width: 0; }
  .mega-txt strong { font-size: .86rem; font-family: var(--font-head); line-height: 1.25; }
  .mega-txt small { color: var(--muted); font-size: .74rem; }
}
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: 1rem 0 1.25rem; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link { padding: .7rem .25rem !important; border-bottom: 1px solid var(--line); }
  .mega-panel { display: block; padding: .4rem 0 .8rem .4rem; }
  .mega-inner { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
  .mega-card { display: flex; gap: .5rem; align-items: center; text-decoration: none; color: var(--navy); padding: .45rem; border-radius: 10px; background: var(--bg-soft); }
  .mega-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--red), var(--gold)); font-size: .9rem; flex: none; }
  .mega-txt { display: flex; flex-direction: column; }
  .mega-txt strong { font-size: .8rem; }
  .mega-txt small { display: none; }
  .brand-logo { height: 46px; max-width: 200px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: radial-gradient(1200px 500px at 90% -10%, rgba(29, 78, 216, .55), transparent 60%), linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--navy-2)); padding: 1rem 0 3.2rem; }
.hero .container > .row { margin-left: 0; margin-right: 0; }
.hero .container > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
@media (min-width: 992px) {
  .hero { padding: 1.1rem 0 3.4rem; }
}
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.hero-orbs, .page-hero .hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orbs::before, .hero-orbs::after { content: ''; position: absolute; border-radius: 50%; filter: blur(40px); animation: orb 14s ease-in-out infinite; }
.hero-orbs::before { width: 340px; height: 340px; background: rgba(245, 166, 35, .35); top: -80px; right: 8%; }
.hero-orbs::after { width: 280px; height: 280px; background: rgba(227, 28, 35, .28); bottom: 10%; left: -40px; animation-delay: -5s; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%); pointer-events: none; }
@keyframes orb { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, 20px) scale(1.15); } }
.hero-rotate { font-family: var(--font-head); font-size: 1.05rem; color: rgba(255,255,255,.9); margin: 0 0 1rem; }
.hero-rotate span { display: inline-block; color: var(--gold); min-width: 11ch; font-weight: 800; transition: opacity .35s, transform .35s; }
.hero-rotate span.out { opacity: 0; transform: translateY(-10px); }
.hero-frame { display: inline-block; border-radius: 28px; padding: .4rem; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.02)); }
.logo-stage { position: relative; display: inline-grid; place-items: center; width: min(100%, 320px); aspect-ratio: 1; }
@media (min-width: 992px) {
  .logo-stage { width: min(100%, 440px); }
}
.logo-plate { position: relative; z-index: 2; background: #fff; border-radius: 36px; padding: 1.5rem 1.7rem; box-shadow: 0 28px 55px rgba(0,0,0,.32); width: 72%; animation: floaty 7s ease-in-out infinite; }
.logo-plate img { width: 100%; height: auto; display: block; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.orbit-svg .track {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  animation: dashMove 2.4s linear infinite;
}
.orbit-svg .t1 { stroke: rgba(227, 28, 35, .85); stroke-dasharray: 14 10; }
.orbit-svg .t2 { stroke: rgba(241, 90, 36, .8); stroke-dasharray: 12 12; animation-duration: 3.2s; animation-direction: reverse; }
.orbit-svg .t3 { stroke: rgba(245, 166, 35, .9); stroke-dasharray: 10 11; animation-duration: 2.8s; }
@keyframes dashMove {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -240; }
}
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-top: 0; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 500; margin-bottom: 1.2rem; }
.hero .eyebrow i { color: var(--gold); }
.hero .lead-main { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; color: var(--gold); margin: 1.2rem 0 .8rem; }
.hero p.desc { color: rgba(255, 255, 255, .82); max-width: 560px; font-size: 1.05rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 560px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 56px; }

.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-2)); color: #fff; padding: 3.6rem 0 3.2rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(201, 162, 39, .14); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); position: relative; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 720px; margin: .8rem 0 0; position: relative; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); margin-bottom: .8rem; position: relative; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: var(--gold); }
.page-hero.gold-accent { border-bottom: 5px solid var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .kicker { display: inline-block; color: var(--red); font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: .8rem; }
.section-navy .section-head p { color: rgba(255, 255, 255, .75); }
.section-navy .section-head .kicker { color: var(--gold); }
.gold-rule { width: 64px; height: 4px; background: var(--gold); border-radius: 4px; margin: 1rem auto 0; }
.left .gold-rule { margin-left: 0; }

/* ---------- Cartes ---------- */
.card-cpp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.card-cpp:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card { padding: 1.7rem; }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--red), var(--gold)); margin-bottom: 1.1rem; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.trust-strip { margin-top: -2.2rem; margin-bottom: 1.25rem; padding-bottom: 2.2rem; position: relative; z-index: 3; }
.trust-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1rem; text-align: center; height: 100%; border-bottom: 4px solid var(--gold); }
.trust-item i { font-size: 1.8rem; color: var(--royal); }
.trust-item span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); margin-top: .4rem; line-height: 1.3; }

.formation-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); position: relative; }
.formation-card[data-category="Santé"] .thumb,
.formation-visual.sante {
  background: linear-gradient(135deg, #0a1f44, #e31c23);
}
.formation-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.formation-card:hover .thumb img { transform: scale(1.06); }
.formation-card .thumb-ico, .formation-visual .thumb-ico {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 4.4rem; color: #fff; pointer-events: none; z-index: 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.formation-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.formation-card .badge-cat { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .95); color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; }
.formation-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; height: calc(100% - 0px); }
.formation-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.formation-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.formation-card .meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; font-size: .8rem; color: var(--navy); }
.formation-card .meta span { background: var(--bg-soft); border-radius: 8px; padding: .2rem .6rem; }
.formation-card .meta i { color: var(--red); margin-right: .25rem; }
.card-link { font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--red); display: inline-flex; align-items: center; gap: .4rem; }
.card-link:hover { color: var(--red-dark); gap: .65rem; }

/* filtres */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; }
.filter-pills a, .filter-btn { text-decoration: none; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .88rem; font-weight: 500; transition: .2s; cursor: pointer; font-family: var(--font-body); }
.filter-pills a:hover, .filter-btn:hover { border-color: var(--navy); }
.filter-pills a.active, .filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.formation-col.is-hidden { display: none !important; }

/* À propos */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.pillar { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.pillar b { display: block; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .06em; color: #fff; }
.pillar .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-family: var(--font-head); font-weight: 800; margin-bottom: .7rem; }
.about-visual { background: linear-gradient(135deg, var(--navy), var(--royal)); border-radius: 28px; padding: 2.4rem; color: #fff; box-shadow: var(--shadow-lg); position: relative; }
.about-visual::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(201, 162, 39, .6); border-radius: 18px; pointer-events: none; }

/* Notes d'information */
.info-note { background: var(--gold-soft); border-left: 5px solid var(--gold); border-radius: 12px; padding: 1.1rem 1.3rem; color: #4b3d0c; font-size: .95rem; }
.info-note i { color: var(--gold); margin-right: .4rem; }

/* Engins */
.machine-card .thumb { aspect-ratio: 16 / 10; background: var(--navy); }
.machine-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.machine-card .body { padding: 1.2rem 1.4rem; }
.machine-card h3 { font-size: 1.1rem; margin: 0; }

/* Langues / soutien / robotique */
.lang-card { padding: 2rem 1.6rem; text-align: center; }
.lang-card .code { width: 84px; height: 84px; border-radius: 24px; background: linear-gradient(135deg, var(--navy), var(--royal)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; display: grid; place-items: center; margin: 0 auto 1rem; box-shadow: inset 0 -5px 0 var(--gold); }
.robot-hero { background: radial-gradient(800px 400px at 80% 0, rgba(29, 78, 216, .6), transparent 60%), #040d22; color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.robot-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(29, 78, 216, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 78, 216, .18) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); }
.robot-hero .container { position: relative; }
.robot-hero h1 { color: #fff; }
.robot-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(96, 140, 255, .4); border-radius: var(--radius); padding: 1.6rem; color: #fff; height: 100%; transition: .25s; backdrop-filter: blur(4px); }
.robot-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 0 30px rgba(29, 78, 216, .45); }
.robot-card i { font-size: 2rem; color: #7fa4ff; }
.robot-card h3 { color: #fff; font-size: 1.1rem; margin: .8rem 0 .4rem; }
.robot-card p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .93rem; }
.section-dark { background: #040d22; }

/* Masters / licences premium */
.premium-card { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%); color: #fff; border-radius: var(--radius); padding: 1.8rem; height: 100%; position: relative; overflow: hidden; border: 1px solid rgba(201, 162, 39, .55); transition: transform .25s, box-shadow .25s; }
.premium-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(10, 31, 68, .3); }
.premium-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(201, 162, 39, .18); }
.premium-card h3 { color: #fff; font-size: 1.15rem; position: relative; }
.premium-card p { color: rgba(255, 255, 255, .75); font-size: .93rem; position: relative; }
.premium-card .lvl { display: inline-block; color: var(--gold); font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; position: relative; }
.premium-card .icon { font-size: 1.8rem; color: var(--gold); position: relative; }

/* VAE */
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; position: relative; }
.process li { position: relative; padding: 0 0 1.8rem 4rem; }
.process li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; box-shadow: 0 0 0 5px var(--gold-soft); }
.process li::after { content: ''; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.process li:last-child::after { display: none; }
.process li:last-child { padding-bottom: 0; }
.process b { font-family: var(--font-head); color: var(--navy); }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; margin: .25rem; box-shadow: var(--shadow-sm); }
.chip i { color: var(--royal); }
.level-list { list-style: none; padding: 0; margin: 0; }
.level-list li { padding: .75rem 1rem .75rem 2.6rem; position: relative; border-bottom: 1px solid var(--line); }
.level-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: .6rem; color: var(--gold); }

/* ---------- Vérification ---------- */
.verify-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-2)); color: #fff; padding: 4rem 0 7rem; text-align: center; }
.verify-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.verify-hero p { color: rgba(255, 255, 255, .82); max-width: 640px; margin: .9rem auto 0; }
.verify-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); padding: 2.4rem; margin-top: -4.8rem; position: relative; z-index: 3; border-top: 5px solid var(--gold); }
.verify-card .form-control { font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; font-size: 1.15rem; padding: 1rem 1.2rem; border-radius: 14px; border: 2px solid var(--line); text-transform: uppercase; }
.verify-card .form-control::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #9aa4b8; font-family: var(--font-body); }
.verify-card .form-control:focus { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(29, 78, 216, .14); }
.or-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin: 1.6rem 0; font-size: .9rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.scanner-box { display: none; margin-top: 1.2rem; }
.scanner-box.open { display: block; }
.scanner-view { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; }
.scanner-view .frame { position: absolute; inset: 14%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scanner-view .frame::after { content: ''; position: absolute; left: 6%; right: 6%; height: 2px; background: var(--red); top: 10%; animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.scanner-msg { text-align: center; color: var(--muted); font-size: .92rem; margin: .9rem 0 0; }
@media (max-width: 575.98px) { .verify-card { padding: 1.5rem 1.1rem; border-radius: 20px; } .scanner-view { max-width: 100%; } }

.result-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; margin-top: 2rem; border: 1px solid var(--line); }
.result-head { padding: 1.6rem 2rem; display: flex; align-items: center; gap: 1.1rem; color: #fff; }
.result-head .ico { width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 2rem; flex: none; }
.result-head h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.result-head p { margin: .2rem 0 0; opacity: .92; }
.result-ok .result-head { background: linear-gradient(135deg, #0b7a3b, #12a150); }
.result-bad .result-head { background: linear-gradient(135deg, #8f1d28, var(--red)); }
.result-warn .result-head { background: linear-gradient(135deg, #8a6d12, #c9a227); }
.result-body { padding: 2rem; }
.result-org { font-family: var(--font-head); font-weight: 800; letter-spacing: .08em; text-align: center; color: var(--navy); font-size: 1.1rem; margin-bottom: 1.4rem; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2rem; }
.result-grid .item small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--muted); font-weight: 600; }
.result-grid .item div { font-family: var(--font-head); font-weight: 600; color: var(--navy); word-break: break-word; }
.result-grid .full { grid-column: 1 / -1; }
.badge-status { display: inline-block; padding: .3rem .9rem; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .06em; }
.badge-valid { background: #dcf5e6; color: #0b7a3b; }
.badge-revoked { background: #fde2e5; color: #a3202d; }
.badge-expired { background: #fbf0cc; color: #7b5e07; }
.result-foot { border-top: 1px dashed var(--line); padding: 1.2rem 2rem; background: var(--bg-soft); display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.result-foot .seal { color: var(--navy); font-size: .9rem; font-weight: 500; }
.result-foot .seal i { color: #12a150; }
@media (max-width: 575.98px) { .result-grid { grid-template-columns: 1fr; } .result-head, .result-body, .result-foot { padding-left: 1.2rem; padding-right: 1.2rem; } }

/* ---------- Contact ---------- */
.form-card { background: #fff; border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .95rem; border: 1.5px solid var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.contact-info li { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-info .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-soft); color: var(--royal); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.contact-info li > div { flex: 1; min-width: 0; }
.map-card { position: relative; margin-top: .75rem; border-radius: 16px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 10px 26px rgba(15, 30, 70, .12); border: 1px solid rgba(15, 30, 70, .08); transition: transform .25s ease, box-shadow .25s ease; }
.map-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 30, 70, .18); }
.map-card iframe { display: block; width: 100%; height: 200px; border: 0; }
.map-card-link { position: absolute; right: .6rem; top: .6rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; background: var(--navy, #0b1f4d); color: #fff !important; font-size: .78rem; font-weight: 600; text-decoration: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.map-card-link:hover { background: var(--red, #e63022); }
.social-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 1.15rem; transition: .2s; }
.social-btn:hover { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; transform: translateY(-2px); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: rgba(255, 255, 255, .78); padding: 4.5rem 0 1.5rem; border-top: 5px solid var(--gold); }
.site-footer .brand-text strong, .brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255, 255, 255, .6); }
.footer-title { color: #fff; font-size: 1rem; font-family: var(--font-head); margin-bottom: 1.1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .9rem; }
.footer-contact i { color: var(--gold); margin-top: .2rem; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; transition: .2s; text-decoration: none; }
.social a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.footer-contact strong { color: #fff; display: inline-block; margin-bottom: .15rem; }
.footer-contact a { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.4rem; text-align: center; font-size: .88rem; }
.footer-bottom .slogan { color: var(--gold); font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; margin: 0 0 .3rem; }
.footer-bottom .copy { margin: 0; }

.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; gap: 1px; background: #fff; box-shadow: 0 -6px 24px rgba(10, 31, 68, .18); padding-bottom: env(safe-area-inset-bottom); }
.mobile-cta a { flex: 1; text-align: center; padding: .9rem .5rem; font-family: var(--font-head); font-weight: 600; text-decoration: none; color: #fff; }
.mobile-cta .mc-call { background: var(--navy); }
.mobile-cta .mc-wa { background: #1faa55; }
@media (max-width: 1199.98px) { body { padding-bottom: 54px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-art img, .scanner-view .frame::after { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Page d'erreur ---------- */
.error-page { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); min-height: 100vh; }
.error-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.error-card { background: #fff; border-radius: 26px; padding: 3rem 2.4rem; max-width: 520px; text-align: center; box-shadow: var(--shadow-lg); border-top: 6px solid var(--gold); }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: 5rem; line-height: 1; color: var(--red); display: block; }
.error-card h1 { font-size: 1.6rem; margin: .5rem 0; }
.error-card p { color: var(--muted); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: #eef1f7; font-family: var(--font-body); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: #fff; flex: none; padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand { margin: 0 .4rem 1.6rem; }
.admin-sidebar .brand-text strong { color: #fff; }
.admin-sidebar .brand-text small { color: rgba(255, 255, 255, .6); }
.admin-sidebar .nav-link { color: rgba(255, 255, 255, .78); border-radius: 12px; padding: .7rem .9rem; display: flex; align-items: center; gap: .75rem; font-size: .93rem; margin-bottom: .2rem; }
.admin-sidebar .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-sidebar .nav-link.active { background: rgba(201, 162, 39, .18); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.admin-sidebar .nav-link .badge { margin-left: auto; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: #fff; padding: .8rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-content { padding: 1.8rem 1.5rem 3rem; }
.admin-content h1 { font-size: 1.5rem; }
.stat-card { background: #fff; border-radius: 16px; padding: 1.3rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); height: 100%; }
.stat-card .ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; flex: none; }
.stat-card .num { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--navy); line-height: 1; }
.stat-card small { color: var(--muted); }
.kpi {
  --kpi: #0a1f44;
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.15rem 1.2rem 1rem;
  box-shadow: 0 8px 24px rgba(10, 31, 68, .06); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kpi); }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(10, 31, 68, .12); border-color: transparent; }
.kpi-navy { --kpi: #0a1f44; }
.kpi-green { --kpi: #128a4a; }
.kpi-red { --kpi: #d62839; }
.kpi-blue { --kpi: #1d4ed8; }
.kpi-gold { --kpi: #c9a227; }
.kpi-navy .kpi-ico { background: #eef2fb; }
.kpi-green .kpi-ico { background: #e7f7ee; }
.kpi-red .kpi-ico { background: #fdecee; }
.kpi-blue .kpi-ico { background: #eaf0ff; }
.kpi-gold .kpi-ico { background: #fbf4de; }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: .55rem; }
.kpi-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.3; padding-top: .15rem; }
.kpi-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--kpi) 12%, #fff); color: var(--kpi); font-size: 1.15rem;
}
.kpi-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.15rem); color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.kpi-foot { margin-top: auto; padding-top: .7rem; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.kpi-foot i { font-size: .7rem; opacity: .7; transition: transform .2s; }
.kpi:hover .kpi-foot { color: var(--kpi); }
.kpi:hover .kpi-foot i { transform: translateX(3px); opacity: 1; }
.kpi-alert { box-shadow: 0 8px 24px rgba(201, 162, 39, .18); }
.kpi-alert .kpi-ico { background: #c9a227; color: #fff; }
.panel { background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.admin-modal .modal-dialog { max-height: calc(100vh - 2rem); margin: 1rem auto; }
.admin-modal .modal-content { background: #fff; color: var(--ink); border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 2rem); overflow: hidden; }
.admin-modal .modal-content > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow: hidden; }
.admin-modal .modal-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.admin-modal .modal-header, .admin-modal .modal-footer { border-color: var(--line); }
.admin-modal .modal-title { font-size: 1.15rem; }
.panel-head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.panel-body { padding: 1.3rem; }
.admin-table { margin: 0; font-size: .9rem; }
.admin-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8f9fc; white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.code-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(900px 400px at 80% 0, rgba(29, 78, 216, .5), transparent 60%), linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.login-card { background: #fff; border-radius: 24px; padding: 2.4rem; width: 100%; max-width: 430px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--gold); }
@media (max-width: 991.98px) {
  .admin-shell { display: block; }
  .admin-sidebar { width: 100%; height: auto; position: static; padding: 1rem; }
  .admin-sidebar .nav { flex-direction: row !important; flex-wrap: wrap; gap: .25rem; }
  .admin-sidebar .nav-link { padding: .5rem .75rem; }
}

/* ============================================================
   DIPLÔME IMPRIMABLE (A4 paysage)
   ============================================================ */
.print-toolbar { max-width: 297mm; margin: 1rem auto; display: flex; gap: .6rem; justify-content: flex-end; padding: 0 1rem; }
.diploma-sheet { width: 297mm; height: 210mm; margin: 0 auto 2rem; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.diploma-svg { display: block; width: 100%; height: 100%; }
.diploma-svg text { fill: #000; font-size: 12px; }
.diploma-svg .f-body { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.diploma-svg .f-bold { font-family: 'Cormorant Garamond', serif; font-weight: 700; }
.diploma-svg .f-regular { font-family: 'Cormorant Garamond', serif; font-weight: 400; }
.diploma-svg .f-sans { font-family: 'Open Sans', sans-serif; font-weight: 400; }
.diploma-svg .f-sans-semi { font-family: 'Open Sans', sans-serif; font-weight: 600; }
.diploma-svg .f-sign { font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; fill: #004aad; fill-opacity: .87; }
.diploma-svg .s8 { font-size: 8px; } .diploma-svg .s9 { font-size: 9px; } .diploma-svg .s10 { font-size: 10px; }
.diploma-svg .s14 { font-size: 14px; } .diploma-svg .s25 { font-size: 25px; }
.diploma-svg .revoked { font-size: 90px; fill: #c00; fill-opacity: .25; letter-spacing: 8px; }
.diploma-page { width: 297mm; height: 210mm; margin: 0 auto 2rem; background: #fff; position: relative; box-shadow: var(--shadow-lg); padding: 10mm; box-sizing: border-box; overflow: hidden; }
.diploma-frame { position: absolute; inset: 8mm; border: 3mm solid var(--navy); outline: 0.6mm solid var(--gold); outline-offset: -5.2mm; }
.diploma-inner { position: absolute; inset: 15mm 20mm; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--navy); }
.diploma-inner .logo-row { display: flex; align-items: center; gap: 4mm; }
.diploma-inner .logo-mark { width: 18mm; height: 18mm; border-radius: 4mm; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 5.2mm; box-shadow: inset 0 -1.2mm 0 var(--gold); }
.diploma-inner .logo-img { height: 18mm; width: auto; }
.diploma-inner .org { font-family: var(--font-head); font-weight: 800; letter-spacing: .22em; font-size: 6.2mm; color: var(--navy); }
.diploma-inner .org-sub { font-size: 3.2mm; color: var(--muted); letter-spacing: .08em; }
.diploma-title { font-family: var(--font-head); font-weight: 800; font-size: 15mm; letter-spacing: .18em; color: var(--navy); margin: 5mm 0 0; line-height: 1; }
.gold-line { width: 60mm; height: 1mm; background: var(--gold); margin: 3.5mm auto; }
.diploma-given { font-style: italic; color: var(--muted); font-size: 4.2mm; }
.diploma-name { font-family: var(--font-head); font-weight: 700; font-size: 11mm; color: var(--navy); margin: 2mm 0; line-height: 1.15; }
.diploma-for { font-size: 4.2mm; color: var(--muted); }
.diploma-formation { font-family: var(--font-head); font-weight: 600; font-size: 7mm; color: var(--red-dark); margin: 1.5mm 0; }
.diploma-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; width: 100%; margin-top: auto; text-align: left; font-size: 3.4mm; }
.diploma-meta small { display: block; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 2.6mm; }
.diploma-meta b { font-family: var(--font-head); font-size: 3.8mm; }
.diploma-bottom { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-top: 4mm; gap: 8mm; }
.diploma-bottom .qr { flex: none; text-align: center; font-size: 2.6mm; color: var(--muted); }
.diploma-bottom .qr svg { width: 27mm; height: 27mm; border: 0.4mm solid var(--line); }
.diploma-bottom .verify-text { flex: 1; font-size: 3.2mm; color: var(--muted); text-align: left; }
.diploma-bottom .sign { flex: none; text-align: center; font-size: 3mm; color: var(--muted); }
.diploma-bottom .sign .line { width: 50mm; border-top: 0.3mm solid var(--navy); margin-bottom: 1mm; }
.seal-gold { position: absolute; right: 24mm; top: 20mm; width: 22mm; height: 22mm; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3dd8a, var(--gold)); box-shadow: 0 0 0 1mm #fff, 0 0 0 1.6mm var(--gold); display: grid; place-items: center; color: var(--navy-deep); font-family: var(--font-head); font-weight: 800; font-size: 4mm; }
.diploma-revoked-banner { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.diploma-revoked-banner span { transform: rotate(-24deg); border: 2mm solid rgba(214, 40, 57, .55); color: rgba(214, 40, 57, .55); font-family: var(--font-head); font-weight: 800; font-size: 26mm; padding: 0 8mm; letter-spacing: .1em; }

/* ---------- Interactive v2 ---------- */
.ticker { overflow: hidden; background: var(--navy); border-bottom: 3px solid var(--gold); white-space: nowrap; }
.ticker-in-hero { position: relative; z-index: 2; margin-top: 2.8rem; margin-bottom: 1.6rem; background: transparent; border-bottom: 1px solid rgba(255,255,255,.12); }
.ticker-track { display: inline-flex; gap: 2.4rem; padding: .7rem 0; animation: marquee 42s linear infinite; }
.ticker-track a { color: rgba(255,255,255,.82); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .88rem; letter-spacing: .04em; }
.ticker-track a::before { content: '✦'; color: var(--gold); margin-right: .7rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stat-bubble { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1rem; box-shadow: var(--shadow-sm); height: 100%; }
.stat-bubble strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); line-height: 1.1; }
.stat-bubble span { color: var(--muted); font-size: .9rem; }

.spotlight-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; height: 100%; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; color: inherit; position: relative; overflow: hidden; }
.spotlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.spotlight-card h3 { font-size: 1.2rem; margin: .2rem 0 .5rem; }
.spotlight-card p { color: var(--muted); margin: 0 0 1rem; }
.spotlight-card .sc-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--red), #f25c6a); margin-bottom: 1rem; }
.spotlight-card .sc-icon.de { background: linear-gradient(135deg, #000, #dd0000 55%, #ffce00); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.spotlight-card.featured { border: 1px solid rgba(201, 162, 39, .55); background: linear-gradient(180deg, #fff, var(--gold-soft)); }

.deutsch-banner { background: linear-gradient(135deg, #111, #1a1a1a 40%, #7a0000); color: #fff; border-radius: 24px; padding: 1.8rem 2rem; position: relative; overflow: hidden; border-bottom: 6px solid #ffce00; }
.deutsch-banner .kicker { color: #ffce00; }
.deutsch-banner h2 { color: #fff; }
.deutsch-banner p { color: rgba(255,255,255,.82); }
.lang-featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.lang-featured .code { background: linear-gradient(135deg, #111, #dd0000); }

.cta-glow { position: relative; overflow: hidden; }
.cta-glow::after { content: ''; position: absolute; width: 420px; height: 420px; right: -80px; top: -160px; background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%); pointer-events: none; }

.tilt-card { transform-style: preserve-3d; will-change: transform; }
.magnetic { display: inline-flex; align-items: center; justify-content: center; }

.page-hero { isolation: isolate; }
.page-hero .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .hero-orbs::before, .hero-orbs::after, .orbit-svg .track, .logo-plate, .hero-art img { animation: none; }
  .tilt-card, .magnetic { transform: none !important; }
}

/* ---------- Horaires de travail (page contact) ---------- */
.hours-card { position: relative; overflow: hidden; padding: 1.4rem; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(241, 90, 36, .28), transparent 55%), linear-gradient(160deg, var(--navy), #061430);
  box-shadow: 0 22px 50px rgba(10, 31, 68, .28); }
.hours-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%;
  border: 2px dashed rgba(245, 166, 35, .25); animation: hoursSpin 30s linear infinite; pointer-events: none; }
@keyframes hoursSpin { to { transform: rotate(360deg); } }
.hours-head { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hours-clock { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--orange)); box-shadow: 0 0 0 6px rgba(245, 166, 35, .18); }
.hours-head h3 { color: #fff; font-size: 1.2rem; margin: 0; letter-spacing: .02em; text-transform: uppercase; }
.hours-ar { display: block; color: var(--gold); font-size: .95rem; font-weight: 600; }
.hours-status { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.hours-status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.hours-status.is-open { color: #4ade80; }
.hours-status.is-open i { animation: hoursPulse 1.6s ease-out infinite; }
.hours-status.is-closed { color: #fca5a5; }
@keyframes hoursPulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.hours-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.hours-days li { text-align: center; padding: .45rem 0; border-radius: 10px; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .8); }
.hours-days li.we { background: rgba(245, 166, 35, .14); color: var(--gold); }
.hours-days li.today { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; box-shadow: 0 8px 18px rgba(227, 28, 35, .4); transform: translateY(-2px); }
.hours-block { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: .9rem 1rem .8rem; margin-bottom: .7rem;
  transition: transform .3s, border-color .3s; }
.hours-block:hover { transform: translateX(4px); border-color: rgba(245, 166, 35, .45); }
.hours-block-title { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.hours-block-title span[lang="ar"] { text-transform: none; letter-spacing: 0; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.hours-slot { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; }
.hours-slot + .hours-slot { border-top: 1px dashed rgba(255, 255, 255, .12); }
.slot-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; }
.slot-ico.sun { background: rgba(245, 166, 35, .18); color: var(--gold); }
.slot-ico.sun i { display: inline-block; animation: hoursSpin 12s linear infinite; }
.slot-ico.moon { background: rgba(227, 28, 35, .18); color: #ff6b6f; }
.slot-ico.day { background: rgba(241, 90, 36, .2); color: var(--orange); }
.slot-name { font-weight: 600; color: #fff; line-height: 1.15; }
.slot-name small { display: block; font-weight: 500; color: rgba(255, 255, 255, .6); font-size: .8rem; }
.slot-time { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; white-space: nowrap; }
.slot-time i { color: var(--gold); font-size: .8rem; margin: 0 .2rem; }
.hours-timeline { position: relative; height: 7px; margin-top: .55rem; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hours-timeline span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--orange), var(--red));
  background-size: 200% 100%; animation: hoursFlow 4s linear infinite; }
@keyframes hoursFlow { to { background-position: -200% 0; } }
.hours-scale { position: relative; height: 1.1rem; margin: .1rem 1rem .6rem; font-size: .68rem; color: rgba(255, 255, 255, .5); }
.hours-scale span { position: absolute; transform: translateX(-50%); }
.hours-foot { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .72); }
.hours-foot i { color: var(--gold); margin-right: .3rem; }
@media (max-width: 575.98px) {
  .hours-status { margin-left: 0; }
  .slot-time { font-size: .92rem; }
}

/* ---------- Partenaires (carrousel de logos) ---------- */
.partners-marquee { position: relative; overflow: hidden; padding: .5rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; width: max-content; animation: partnersScroll 30s linear infinite !important; }
.partners-list { display: flex; align-items: center; gap: 4rem; margin: 0; padding: 0 2rem; list-style: none; }
.partner-logo { flex: 0 0 auto; height: 110px; display: flex; align-items: center; }
.partner-logo img { height: 100%; width: auto; max-width: 260px; object-fit: contain; }
.partner-logo.is-badge img { border-radius: 50%; }
@keyframes partnersScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 575.98px) {
  .partner-logo { height: 76px; }
  .partners-list { gap: 2.5rem; padding: 0 1.25rem; }
}

@page { size: A4 landscape; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .site-header, .site-footer, .mobile-cta, .print-toolbar, .no-print, .admin-sidebar, .admin-topbar, .skip-link, .btn { display: none !important; }
  body { padding: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .diploma-page, .diploma-sheet { margin: 0; box-shadow: none; }
  .result-card { box-shadow: none; border: 1px solid #999; margin-top: 0; }
  .verify-hero, .verify-card .form-control, .scanner-box { display: none !important; }
  .admin-main, .admin-content { padding: 0 !important; }
}

/* ---------- Langues ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: .65rem; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 1.7rem; padding: 0 .4rem; border-radius: 999px; color: var(--navy); font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.lang-switch a.is-active { background: var(--navy); color: #fff; }
.admin-topbar .lang-switch, .login-card .lang-switch { margin-inline-start: 0; }
.navbar-nav .lang-item { display: flex; align-items: center; }

html[dir="rtl"] { --font-head: 'Cairo', 'Poppins', system-ui, sans-serif; --font-body: 'Cairo', 'Inter', system-ui, sans-serif; }
html[dir="rtl"] .admin-sidebar .nav-link.active { box-shadow: inset -3px 0 0 var(--gold); }
html[dir="rtl"] .hours-status, html[dir="rtl"] .slot-time, html[dir="rtl"] .admin-sidebar .nav-link .badge { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .formation-card .badge-cat { left: auto; right: 12px; }
html[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: .25rem !important; }
html[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
html[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: .25rem !important; }
html[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }
html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end { text-align: left !important; }
@media (min-width: 992px) { html[dir="rtl"] .text-lg-end { text-align: left !important; } }
@media (min-width: 1200px) { html[dir="rtl"] .ms-xl-2 { margin-left: 0 !important; margin-right: .5rem !important; } }
html[dir="rtl"] .bi-arrow-right, html[dir="rtl"] .bi-chevron-right, html[dir="rtl"] .bi-box-arrow-up-right { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .gold-rule { margin-left: auto; margin-right: 0; }
