/* ==========================================================================
   MPS CORP — Système de design
   1. Variables   2. Base   3. Composants   4. En-tête / pied de page
   5. Pages vitrines   6. Catalogue & formation   7. Comptes & commande
   8. Espace apprenant   9. Quiz & certificat   10. Administration   11. Responsive
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  --brand-950: #0b1038;
  --brand-900: #111851;
  --brand-800: #1b2566;
  --brand-700: #23307a;   /* bleu du logo */
  --brand-600: #3142a3;
  --brand-500: #4a5ed0;
  --brand-100: #e6e9fb;
  --brand-50: #f3f5fe;
  --gold-600: #d68a00;
  --gold-500: #f2a516;
  --gold-100: #fff2d4;
  --green-600: #11845a;
  --green-100: #e2f6ec;
  --red-600: #bf3247;
  --red-100: #fdeaed;

  --ink: #10153a;
  --text: #2e3453;
  --muted: #646b8a;
  --line: #e4e7f1;
  --line-strong: #cdd2e4;
  --surface: #f6f7fc;
  --paper: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 81, .05), 0 1px 4px rgba(17, 24, 81, .06);
  --shadow: 0 14px 34px -14px rgba(17, 24, 81, .22);
  --shadow-lg: 0 34px 70px -24px rgba(17, 24, 81, .35);
  --font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small { font-size: .82rem; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
::selection { color: var(--brand-900); background: var(--gold-100); }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.narrow-container { width: min(860px, calc(100% - 48px)); }
.section { padding: 96px 0; }
.section-soft { background: var(--surface); }
.section-dark { color: #d9def5; background: radial-gradient(1200px 500px at 85% -10%, rgba(74, 94, 208, .35), transparent 60%), var(--brand-900); }
.section-dark h2, .section-dark h3 { color: #fff; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.7; }
.section-dark .lead { color: #c3cae8; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 16px; color: #fff; background: var(--brand-800); border-radius: 10px; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

/* 3. Composants ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 12px;
  font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary, .btn-gold { color: var(--brand-950); background: var(--gold-500); box-shadow: 0 8px 20px -10px rgba(214, 138, 0, .9); }
.btn-primary:hover, .btn-gold:hover { background: #f7b53a; box-shadow: 0 12px 26px -10px rgba(214, 138, 0, .95); }
.btn-navy { color: #fff; background: var(--brand-700); box-shadow: 0 8px 20px -12px rgba(17, 24, 81, .9); }
.btn-navy:hover { background: var(--brand-600); }
.btn-outline { color: var(--brand-800); background: var(--paper); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-600); }
.btn-ghost-light { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn-whatsapp { color: #fff; background: #17a35e; }
.btn-whatsapp:hover { background: #12894e; }
.btn-sm { min-height: 40px; padding: 8px 15px; font-size: .86rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.full-width { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--brand-600); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold-500); border-radius: 3px; }
.section-dark .eyebrow, .page-hero .eyebrow { color: #aab6f5; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; color: var(--brand-700); background: var(--paper); border: 1px solid var(--brand-100); border-radius: 999px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.pill .icon { color: var(--gold-600); }
.text-link { color: var(--brand-600); font-weight: 700; font-size: .92rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button { padding: 0; color: var(--muted); background: none; border: 0; font-size: .86rem; text-decoration: underline; }
.stars { color: var(--gold-500); letter-spacing: .08em; white-space: nowrap; }
.avatar { display: inline-grid; flex: none; width: 40px; height: 40px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); border-radius: 50%; font-size: .82rem; font-weight: 800; letter-spacing: .02em; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 44px; }
.section-head > div { max-width: 680px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-head.is-centered { justify-content: center; text-align: center; }
.section-head.is-centered .eyebrow { justify-content: center; }

.check-list { display: grid; gap: 12px; margin: 26px 0 30px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311845a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; border-radius: 50%; }
.section-dark .check-list li::before { background-color: rgba(242, 165, 22, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a516' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.progress-track { height: 8px; overflow: hidden; background: var(--brand-100); border-radius: 999px; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); border-radius: inherit; transition: width .4s var(--ease); }
.progress-track-blue { background: var(--brand-100); }

.alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.alert .icon { margin-top: 2px; }
.alert-error { color: #87202f; background: var(--red-100); border-color: #f5c6ce; }
.alert-success { color: #0c5f40; background: var(--green-100); border-color: #b5e6cd; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status-badge.is-active { color: var(--green-600); background: var(--green-100); }
.status-badge.is-pending { color: #9a6200; background: var(--gold-100); }
.status-badge.is-suspended { color: var(--red-600); background: var(--red-100); }
.learning-status { display: inline-flex; width: max-content; padding: 5px 11px; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.empty-state { max-width: 640px; margin: 10px auto; padding: 48px 32px; text-align: center; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state h2 { font-size: 1.5rem; }
.empty-state p { color: var(--muted); }
.empty-icon { display: inline-grid; width: 56px; height: 56px; margin-bottom: 14px; place-items: center; color: var(--brand-600); background: var(--brand-50); border-radius: 16px; }
.empty-icon .icon { width: 26px; height: 26px; }

/* Formulaires */
.form-card, .portal-form-card, .checkout-card, .admin-card, .dashboard-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-card { padding: 34px; }
.form-grid, .portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-card label, .portal-form-card label, .portal-form-grid label, .review-form > label, .question-editor label, .inline-create label {
  display: grid; gap: 7px; color: var(--ink); font-size: .85rem; font-weight: 700;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="file"], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; outline: 0;
  font-size: .95rem; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
input[type="file"] { padding: 9px; font-size: .86rem; }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select { appearance: none; padding-right: 38px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646b8a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
input:hover, select:hover, textarea:hover { border-color: #b7bed6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(74, 94, 208, .14); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand-600); }
.checkbox-label { display: flex !important; align-items: center; gap: 10px !important; font-weight: 600 !important; }
.checkbox-label input { width: auto; }

/* Cartes formation */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.course-card:hover { transform: translateY(-4px); border-color: var(--brand-100); box-shadow: var(--shadow); }
.course-card-media { position: relative; }
.cover-badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; color: var(--brand-800); background: rgba(255, 255, 255, .94); border-radius: 999px; font-size: .74rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.course-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-800); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .course-cover img { transform: scale(1.04); }
.course-cover.is-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-700), var(--brand-950)); }
.course-cover.is-placeholder::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 16px 16px; }
.course-cover.is-placeholder::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -12%; bottom: -30%; border: 18px solid rgba(242, 165, 22, .55); border-radius: 50%; }
.course-cover.is-hue-2 { background: linear-gradient(135deg, #2b4aa8, #12204f); }
.course-cover.is-hue-3 { background: linear-gradient(135deg, #3a3290, #150f45); }
.course-cover.is-hue-4 { background: linear-gradient(135deg, #1f5e8f, #0d2442); }
.course-cover.is-placeholder > span:not(.cover-logo) { position: relative; z-index: 1; display: grid; width: 74px; height: 74px; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; backdrop-filter: blur(4px); }
/* Couverture avec logo du logiciel : halo à la couleur du logiciel sur fond marine. */
.course-cover.has-logo { background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--logo-from) 55%, transparent) 0, transparent 58%), linear-gradient(135deg, color-mix(in srgb, var(--logo-to) 45%, var(--brand-950)), var(--brand-950)); }
.course-cover.has-logo::after { border-color: color-mix(in srgb, var(--logo-from) 55%, transparent); }
.cover-logo { position: relative; z-index: 1; display: block; width: 84px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); transition: transform .4s var(--ease); }
.course-card:hover .cover-logo { transform: translateY(-3px) scale(1.04); }
.cover-logo .software-logo, .cover-logo-badge .software-logo, .hero-logo .software-logo { display: block; width: 100%; height: auto; }
.cover-logo-badge { position: absolute; right: 12px; bottom: 12px; width: 44px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.course-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.course-category { color: var(--brand-600); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.course-card h3 { margin: 0; font-size: 1.14rem; line-height: 1.3; }
.course-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-instructor { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.course-rating { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.course-rating b { color: #8a5600; }
.course-rating small { color: var(--muted); }
.course-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.course-facts span { display: inline-flex; align-items: center; gap: 5px; }
.course-facts .icon { color: var(--brand-500); }
.course-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.price { color: var(--ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.course-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-600); font-size: .88rem; font-weight: 700; }
.course-link .icon { transition: transform .2s; }
.course-card:hover .course-link .icon { transform: translateX(3px); }

/* Pastilles de filtre */
.chip-group, .filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .filter-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; font-weight: 700; transition: .15s; }
.chip:hover, .filter-button:hover { border-color: var(--brand-500); color: var(--brand-600); }
.chip.is-active, .filter-button.active { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }
.filter-button span { padding: 1px 7px; color: var(--muted); background: var(--surface); border-radius: 999px; font-size: .74rem; }
.filter-button.active span { color: var(--brand-800); background: rgba(255, 255, 255, .85); }

.cta-panel { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 52px 56px; overflow: hidden; color: #cdd3ef; background: radial-gradient(600px 300px at 100% 0, rgba(242, 165, 22, .22), transparent 60%), linear-gradient(120deg, var(--brand-800), var(--brand-950)); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.cta-panel h2 { margin-bottom: 8px; color: #fff; }
.cta-panel p { margin: 0; max-width: 620px; }
.section-cta { padding: 0 0 96px; }

/* 4. En-tête et pied de page -------------------------------------------- */
.site-header { position: sticky; z-index: 60; top: 0; background: rgba(255, 255, 255, .88); border-bottom: 1px solid transparent; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled, .site-header.is-app { border-bottom-color: var(--line); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(17, 24, 81, .5); }
.nav-wrap { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 158px; height: auto; }
.main-nav { display: flex; flex: 1; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 9px 13px; color: var(--text); border-radius: 10px; font-size: .92rem; font-weight: 600; white-space: nowrap; transition: .15s; }
.nav-links a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { padding: 9px 12px; color: var(--brand-800); font-size: .92rem; font-weight: 700; border-radius: 10px; }
.nav-login:hover { background: var(--brand-50); }
.nav-account { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; transition: .15s; }
.nav-account:hover { border-color: var(--brand-100); background: var(--brand-50); }
.nav-account .avatar { width: 34px; height: 34px; font-size: .74rem; }
.nav-account-text { display: grid; line-height: 1.2; }
.nav-account-text strong { color: var(--ink); font-size: .84rem; }
.nav-account-text small { max-width: 140px; overflow: hidden; color: var(--muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.logout-form button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; color: var(--muted); background: none; border: 0; border-radius: 10px; font-size: .86rem; font-weight: 600; }
.logout-form button:hover { color: var(--red-600); background: var(--red-100); }
.nav-logout button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; place-items: center; color: var(--brand-800); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close, .site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.site-footer { color: #aab2d6; background: var(--brand-950); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding: 72px 0 52px; }
.brand-footer img { width: 190px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 340px; margin: 20px 0; font-size: .92rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; transition: .15s; }
.footer-social a:hover { color: var(--brand-950); background: var(--gold-500); }
.site-footer h2 { margin: 6px 0 18px; color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-top > div:not(.footer-brand) > a, .footer-top > div > span { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: .92rem; overflow-wrap: anywhere; }
.footer-top a:hover { color: #fff; }
.footer-more { color: var(--gold-500) !important; font-weight: 700; }
.footer-contact { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .92rem; overflow-wrap: anywhere; }
.footer-contact .icon { flex: none; color: var(--gold-500); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0 28px; color: #7f88b4; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.floating-whatsapp { position: fixed; z-index: 55; right: 22px; bottom: 22px; display: grid; width: 56px; height: 56px; place-items: center; color: #fff; background: #17a35e; border-radius: 50%; box-shadow: 0 14px 30px -8px rgba(23, 163, 94, .7); transition: transform .2s var(--ease); }
.floating-whatsapp:hover { transform: scale(1.06); }
.floating-whatsapp .icon { width: 27px; height: 27px; }

/* 5. Pages vitrines ------------------------------------------------------- */
.home-hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: radial-gradient(900px 500px at 90% 10%, rgba(74, 94, 208, .12), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(242, 165, 22, .1), transparent 60%), linear-gradient(180deg, var(--brand-50), var(--paper)); }
.home-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.home-hero h1 { margin: 22px 0 20px; font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
.home-hero h1 em { color: var(--brand-600); font-style: normal; white-space: nowrap; background: linear-gradient(transparent 68%, rgba(242, 165, 22, .32) 68%, rgba(242, 165, 22, .32) 92%, transparent 92%); }
.home-hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 580px; padding: 8px 8px 8px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.hero-search > .icon { width: 20px; height: 20px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; box-shadow: none !important; background: transparent; }
.hero-search .btn { min-height: 46px; }
.hero-search.is-compact { margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.hero-tags a { padding: 5px 12px; color: var(--brand-700); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; transition: .15s; }
.hero-tags a:hover { border-color: var(--brand-500); }
.home-hero-visual { position: relative; padding: 24px 24px 40px 40px; }
.home-hero-visual::before { content: ""; position: absolute; top: 0; right: 0; width: 82%; height: 88%; background: linear-gradient(135deg, var(--brand-700), var(--brand-950)); border-radius: var(--radius-xl); transform: rotate(3deg); }
.hero-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 4.2; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; color: var(--ink); font-size: .9rem; line-height: 1.3; }
.float-card small { display: block; color: var(--muted); font-size: .76rem; }
.float-card-top { top: 46px; left: 0; }
.float-card-bottom { right: -6px; bottom: 6px; display: block; width: 270px; animation-delay: -3s; }
.float-card-bottom .progress-track { margin-top: 12px; }
.float-row { display: flex; align-items: center; gap: 12px; }
.float-icon { display: grid; flex: none; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--brand-600); border-radius: 12px; }
.float-icon.is-gold { color: var(--brand-950); background: var(--gold-500); }
@keyframes float { 50% { transform: translateY(-8px); } }

.trust-band { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.trust-label { color: var(--muted); font-size: .84rem; font-weight: 600; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.trust-list li { color: #8b91ad; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { display: grid; width: 50px; height: 50px; margin-bottom: 18px; place-items: center; color: var(--brand-600); background: var(--brand-50); border-radius: 14px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature:nth-child(3n + 2) .feature-icon { color: var(--gold-600); background: var(--gold-100); }
.feature:nth-child(3n) .feature-icon { color: var(--green-600); background: var(--green-100); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat-strip div { padding: 26px 28px; }
.stat-strip div + div { border-left: 1px solid var(--line); }
.stat-strip strong { display: block; color: var(--brand-700); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-strip span { color: var(--muted); font-size: .88rem; font-weight: 600; }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }
.steps li { position: relative; text-align: center; }
.step-number { position: relative; display: grid; width: 56px; height: 56px; margin: 0 auto 18px; place-items: center; color: #fff; background: var(--brand-700); border: 6px solid var(--paper); border-radius: 50%; font-size: 1.1rem; font-weight: 800; box-shadow: 0 0 0 1px var(--line); }
.steps li:last-child .step-number { color: var(--brand-950); background: var(--gold-500); }
.steps h3 { margin-bottom: 6px; }
.steps p { max-width: 240px; margin: 0 auto; color: var(--muted); font-size: .92rem; }
.section-soft .step-number { border-color: var(--surface); }
.steps-cta { margin-top: 44px; text-align: center; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.split-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testimonial { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.testimonial blockquote { flex: 1; margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption strong, .testimonial figcaption small { display: block; }
.testimonial figcaption small { color: var(--muted); }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic-item { overflow: hidden; border-radius: var(--radius); }
.mosaic-item.is-large { grid-row: span 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mosaic-item:hover img { transform: scale(1.05); }

.page-hero { position: relative; overflow: hidden; padding: 84px 0 80px; color: #c9d0ee; background: radial-gradient(800px 400px at 95% 0%, rgba(242, 165, 22, .18), transparent 60%), radial-gradient(800px 500px at 0% 120%, rgba(74, 94, 208, .45), transparent 60%), var(--brand-900); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 860px; color: #fff; }
.page-hero p { max-width: 680px; margin: 0; font-size: 1.1rem; }
.page-hero .actions { margin-top: 30px; }
.page-hero.compact { padding: 64px 0 60px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; color: #c3cbf0; font-size: .9rem; font-weight: 700; }
.back-link:hover { color: #fff; }

.player-mock { overflow: hidden; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.player-mock-screen { display: grid; aspect-ratio: 16 / 9; place-items: center; background: linear-gradient(135deg, #1d2a73, #0b1038); }
.player-mock-screen span { display: grid; width: 64px; height: 64px; place-items: center; color: var(--brand-950); background: var(--gold-500); border-radius: 50%; box-shadow: 0 0 0 10px rgba(242, 165, 22, .2); }
.player-mock-screen .icon { width: 26px; height: 26px; margin-left: 3px; }
.player-mock-body { padding: 20px 22px 22px; }
.player-mock-body strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: .9rem; }
.player-mock-body ul { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.player-mock-body li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--muted); border-radius: 9px; font-size: .86rem; font-weight: 600; }
.player-mock-body li.is-done .icon { color: var(--green-600); }
.player-mock-body li.is-current { color: var(--brand-700); background: var(--brand-50); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; flex: none; width: 28px; height: 28px; place-items: center; color: var(--brand-600); background: var(--brand-50); border-radius: 8px; font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.gallery-group { margin-bottom: 64px; }
.gallery-group[hidden] { display: none; }
.filter-bar { margin-bottom: 44px; }
.gallery-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.gallery-group-head h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.gallery-group-head p { margin: 0; color: var(--muted); }
.gallery-count { flex: none; color: var(--muted); font-size: .85rem; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-item { position: relative; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); border: 0; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(11, 16, 56, .55)); opacity: 0; transition: opacity .25s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.lightbox { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 60px 80px; background: rgba(6, 9, 32, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox p { position: absolute; left: 24px; right: 24px; bottom: 18px; margin: 0; color: #d4d9f2; font-size: .9rem; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.is-prev { left: 18px; }
.lightbox-nav.is-next { right: 18px; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.contact-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card div { flex: 1; min-width: 0; }
.contact-card small { display: block; color: var(--muted); }
.contact-card strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.contact-icon { display: grid; flex: none; width: 46px; height: 46px; place-items: center; color: var(--brand-600); background: var(--brand-50); border-radius: 13px; }
.contact-icon.is-green { color: #fff; background: #17a35e; }
.contact-arrow { color: var(--muted); }
.contact-note { display: flex; gap: 14px; padding: 18px 20px; color: var(--muted); background: var(--surface); border-radius: var(--radius); font-size: .9rem; }
.contact-note .icon { margin-top: 3px; color: var(--brand-600); }
.contact-note strong, .contact-note span { display: block; }
.contact-note strong { color: var(--ink); }
.contact-form h2 { font-size: 1.6rem; }
.contact-form .btn { margin-top: 22px; }

/* 6. Catalogue et page formation ---------------------------------------- */
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; }
.catalog-count { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }

.course-hero h1 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.course-title-row { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.hero-logo { flex: none; width: 72px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
.course-hero .back-link { display: flex; width: max-content; }
.course-hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.course-hero-facts > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; color: #e2e6f8; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-size: .86rem; font-weight: 600; }
.course-hero-facts b { color: var(--gold-500); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.detail-main { min-width: 0; }
.detail-main > h2 { margin: 48px 0 18px; font-size: 1.6rem; }
.detail-main > h2:first-child { margin-top: 0; }
.detail-main .lead { color: var(--text); font-size: 1.04rem; }
.course-detail-layout .detail-aside { position: sticky; top: calc(var(--header-h) + 20px); margin-top: -180px; }
.detail-aside { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.course-buy { padding-bottom: 24px; }
.course-buy > *:not(.preview-player):not(.course-cover) { margin-left: 24px; margin-right: 24px; }
.course-buy > .btn { width: calc(100% - 48px); }
.preview-player { aspect-ratio: 16 / 9; background: var(--brand-950); }
.preview-player iframe { width: 100%; height: 100%; border: 0; }
.preview-caption { display: block; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.course-cover-aside { margin-bottom: 4px; }
.detail-label { display: block; margin-top: 20px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-price { display: block; margin: 4px 0 18px; color: var(--ink); font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.aside-login { display: block; margin-top: 12px; color: var(--brand-600); font-size: .9rem; font-weight: 700; text-align: center; }
.includes-list { display: grid; gap: 10px; margin-top: 22px; margin-bottom: 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; font-size: .9rem; }
.includes-list li { position: relative; padding-left: 28px; }
.includes-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311845a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.3 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.aside-whatsapp { display: block; color: var(--green-600); font-size: .88rem; font-weight: 700; text-align: center; }

.learn-box { margin-bottom: 8px; padding: 28px 30px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-lg); }
.learn-box h2 { margin: 0 0 18px; font-size: 1.45rem; }
.learn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.learn-list li { position: relative; padding-left: 30px; font-size: .95rem; }
.learn-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233142a3' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.curriculum-summary { margin-top: -6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.curriculum { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.curriculum-section + .curriculum-section { border-top: 1px solid var(--line); }
.curriculum-section summary { display: flex; align-items: center; gap: 14px; padding: 17px 20px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; transition: background .15s; }
.curriculum-section summary:hover { background: var(--surface); }
.curriculum-section summary::-webkit-details-marker { display: none; }
.curriculum-section summary::before { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600); transform: rotate(-45deg); transition: transform .2s; }
.curriculum-section[open] summary::before { transform: rotate(45deg); }
.curriculum-section summary span { flex: 1; }
.curriculum-section summary small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.curriculum-section ul { margin: 0; padding: 0 20px 12px 44px; list-style: none; }
.curriculum-section li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .93rem; }
.curriculum-section li + li { border-top: 1px dashed var(--line); }
.curriculum-title { flex: 1; }
.curriculum-section li small { color: var(--muted); }
.curriculum-empty { margin: 0; padding: 0 20px 16px 44px; color: var(--muted); font-size: .9rem; }
.curriculum-icon { display: inline-grid; flex: none; width: 26px; height: 26px; place-items: center; color: var(--brand-600); background: var(--brand-50); border-radius: 8px; font-size: .6rem; }
.curriculum-icon.is-quiz { color: #9a6200; background: var(--gold-100); font-size: .8rem; font-weight: 800; }
.preview-link { padding: 3px 10px; color: var(--brand-600); background: var(--brand-50); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.instructor-card { display: flex; gap: 22px; padding: 26px; background: var(--surface); border-radius: var(--radius-lg); }
.instructor-card img, .instructor-initials { flex: none; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.instructor-initials { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); font-size: 1.8rem; font-weight: 800; }
.instructor-initials.small { width: 42px; height: 42px; font-size: 1rem; }
.instructor-card h3 { margin-bottom: 2px; }
.instructor-headline { color: var(--brand-600); font-weight: 700; }
.rating-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.rating-summary > strong { color: var(--ink); font-size: 3.2rem; font-weight: 800; line-height: 1; }
.rating-summary .stars { display: block; font-size: 1.3rem; }
.rating-summary small { color: var(--muted); }
.review-list { display: grid; gap: 14px; }
.review { padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
.review header strong { color: var(--ink); }
.review header small { color: var(--muted); }
.review p { margin: 0; }
.review-form { display: grid; gap: 16px; margin-top: 26px; padding: 26px; background: var(--surface); border-radius: var(--radius-lg); }
.review-form h3 { margin: 0; }
.review-form .btn { justify-self: start; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.star-input legend { width: 100%; margin-bottom: 6px; color: var(--ink); font-size: .85rem; font-weight: 700; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { color: #d3d7e6; font-size: 2rem; line-height: 1; cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold-500); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand-500); border-radius: 4px; }

/* 7. Comptes, connexion et commande ------------------------------------- */
.portal-body { background: var(--surface); }
.portal-main { min-height: calc(100vh - var(--header-h) - 74px); padding: 48px 0 80px; }
.portal-login-page { display: grid; align-items: center; padding: 56px 0; background: radial-gradient(800px 400px at 100% 0, rgba(74, 94, 208, .1), transparent 60%), var(--surface); }
.portal-login-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; max-width: 1080px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.portal-intro { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: 48px; color: #cfd5f1; background: linear-gradient(180deg, rgba(11, 16, 56, .35), rgba(11, 16, 56, .92) 60%), url("../images/hero-formation.jpg") center / cover; }
.portal-intro .eyebrow { color: #c3cbf5; }
.portal-intro h1 { margin-bottom: 14px; color: #fff; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.portal-intro p { color: #cfd5f1; }
.portal-intro .btn { align-self: flex-start; margin-top: 8px; }
.intro-points { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .94rem; }
.intro-points li { position: relative; padding-left: 30px; }
.intro-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1038' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-radius: 50%; }
.portal-form-card { display: grid; align-content: start; gap: 16px; padding: 40px; }
.portal-login-wrap .portal-form-card { align-content: center; border: 0; border-radius: 0; box-shadow: none; }
.portal-form-card h1, .portal-form-card h2 { margin: 2px 0 4px; font-size: 1.85rem; }
.portal-form-card > p { margin: 0; color: var(--muted); }
.portal-form-card > small { color: var(--muted); text-align: center; }
.portal-form-card .btn { width: 100%; }
.installation-card { padding: 40px; }
.verify-form { max-width: 560px; margin: 0 auto; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.checkout-main { display: grid; gap: 18px; }
.checkout-main > .text-link { justify-self: start; }
.checkout-title { margin: 6px 0 4px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.checkout-card { display: grid; gap: 12px; padding: 30px; }
.checkout-card h2 { margin: 0; font-size: 1.4rem; }
.checkout-card p { margin: 0; color: var(--muted); }
.checkout-card > .btn, .checkout-card form > .btn { justify-self: start; }
.checkout-success { background: linear-gradient(180deg, var(--green-100), var(--paper)); border-color: #b5e6cd; }
.checkout-waiting { background: linear-gradient(180deg, var(--gold-100), var(--paper)); border-color: #f2d898; }
.checkout-steps { display: grid; gap: 10px; margin: 4px 0 10px; padding: 0; list-style: none; counter-reset: c; font-size: .93rem; }
.checkout-steps li { position: relative; padding-left: 38px; counter-increment: c; }
.checkout-steps li::before { content: counter(c); position: absolute; left: 0; top: -1px; display: grid; width: 26px; height: 26px; place-items: center; color: var(--brand-700); background: var(--brand-50); border-radius: 8px; font-size: .8rem; font-weight: 800; }
.checkout-cancel { justify-self: start; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.checkout-summary h2 { margin: 6px 0 18px; font-size: 1.3rem; }
.checkout-summary .detail-label { margin-top: 0; }
.checkout-summary dl { display: grid; gap: 12px; margin: 0; }
.checkout-summary dl div { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .9rem; }
.checkout-summary dt { color: var(--muted); }
.checkout-summary dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; }
.checkout-total strong { color: var(--ink); font-size: 1.9rem; letter-spacing: -.03em; }
.checkout-summary > p { margin: 0; font-size: .86rem; }

/* 8. Espace apprenant et lecteur ---------------------------------------- */
.learner-head, .admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.learner-head h1, .admin-heading h1 { margin: 6px 0 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.learner-head .eyebrow, .admin-heading .eyebrow { margin-bottom: 0; }
.admin-heading p { margin: 6px 0 0; color: var(--muted); }
.learner-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.learner-stats div { position: relative; padding: 22px 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.learner-stats div::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; background: var(--brand-50); border-radius: 50%; }
.learner-stats div:nth-child(3)::after { background: var(--gold-100); }
.learner-stats strong { position: relative; z-index: 1; display: block; color: var(--ink); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.learner-stats span { position: relative; z-index: 1; color: var(--muted); font-size: .88rem; font-weight: 600; }
.dashboard-block { margin-bottom: 26px; padding: 26px 28px; }
.dashboard-block h2 { margin-bottom: 16px; font-size: 1.25rem; }
.order-list { display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--surface); border-radius: 12px; transition: background .15s; }
.order-row:hover { background: var(--brand-50); }
.order-row strong, .order-row small { display: block; }
.order-row strong { color: var(--ink); }
.order-row small { color: var(--muted); }
.my-courses { display: grid; gap: 18px; margin-bottom: 28px; }
.my-course { display: grid; grid-template-columns: 260px 1fr; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.my-course:hover { box-shadow: var(--shadow); }
.my-course-cover { height: 100%; min-height: 170px; aspect-ratio: auto; }
.my-course-body { padding: 24px 28px; }
.my-course-body h3 { margin: 0 0 4px; font-size: 1.25rem; }
.my-course-body h3 a:hover { color: var(--brand-600); }
.progress-summary { display: flex; justify-content: space-between; gap: 16px; margin: 14px 0 8px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.progress-summary strong { color: var(--ink); }
.my-course-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.my-course-actions small { color: var(--muted); }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dashboard-columns .dashboard-block { margin-bottom: 0; }
.question-mini-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.question-mini-list a { display: block; padding: 13px 15px; background: var(--surface); border-radius: 12px; transition: background .15s; }
.question-mini-list a:hover { background: var(--brand-50); }
.question-mini-list strong, .question-mini-list small { display: block; }
.question-mini-list strong { color: var(--ink); font-size: .9rem; }
.question-mini-list small { margin-top: 3px; color: var(--muted); }
.password-box summary { color: var(--brand-600); font-weight: 700; cursor: pointer; }
.password-box form { margin-top: 16px; }

.player-course-title { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem) !important; }
.player-progress { width: min(300px, 100%); }
.player-progress > span { display: block; margin-bottom: 8px; color: var(--ink); font-size: .86rem; font-weight: 700; text-align: right; }
.certificate-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding: 18px 22px; color: #cfd5f1; background: radial-gradient(400px 200px at 100% 0, rgba(242, 165, 22, .3), transparent 60%), linear-gradient(120deg, var(--brand-800), var(--brand-950)); border-radius: var(--radius-lg); }
.certificate-banner strong { display: block; color: #fff; }
.certificate-banner span { display: block; font-size: .9rem; }
.learning-dashboard { display: grid; grid-template-columns: 330px 1fr; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.learning-sidebar { padding: 26px 18px; color: #fff; background: var(--brand-900); }
.learning-course-label { padding: 0 8px; color: #8e99d6; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.outline-section + .outline-section { margin-top: 20px; }
.outline-section h2 { margin: 16px 8px 8px; color: #c3cbf5 !important; font-size: .76rem !important; letter-spacing: .06em; text-transform: uppercase; }
.lesson-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lesson-list li { border-radius: 12px; transition: background .15s; }
.lesson-list li:hover { background: rgba(255, 255, 255, .06); }
.lesson-list li.is-current { background: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 0 var(--gold-500); }
.lesson-list a { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; padding: 10px; }
.lesson-list a > span { display: grid; width: 34px; height: 34px; place-items: center; color: #c3cbf5; background: rgba(255, 255, 255, .08); border-radius: 10px; font-size: .74rem; font-weight: 800; }
.lesson-list li.is-current > a > span { color: var(--brand-950); background: var(--gold-500); }
.lesson-list li.is-complete > a > span { color: #fff; background: var(--green-600); }
.lesson-list li.is-quiz > a > span { color: var(--gold-500); background: rgba(242, 165, 22, .14); }
.lesson-list li.is-quiz.is-complete > a > span { color: #fff; background: var(--green-600); }
.lesson-list strong { display: block; color: #fff; font-size: .86rem; font-weight: 600; line-height: 1.35; }
.lesson-list small { display: block; margin-top: 2px; color: #8e99d6; font-size: .74rem; }
.learning-player { min-width: 0; padding: 28px; }
.youtube-player-shell { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; background: var(--brand-950); border-radius: var(--radius); }
.youtube-player-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 24px 0 12px; }
.lesson-meta .eyebrow { margin-bottom: 6px; }
.lesson-meta h2 { margin: 0; font-size: 1.5rem; }
.lesson-progress { flex: none; color: var(--muted); font-size: .86rem; font-weight: 700; }
.lesson-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; }
.lesson-section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.lesson-section h3 { margin-bottom: 14px; }
.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.resource-list a { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: .15s; }
.resource-list a:hover { border-color: var(--brand-500); box-shadow: var(--shadow-sm); }
.resource-list strong { color: var(--ink); font-size: .9rem; }
.resource-ext { grid-row: 1 / 3; display: grid; height: 44px; place-items: center; color: var(--brand-700); background: var(--brand-50); border-radius: 10px; font-size: .68rem; font-weight: 800; }
.resource-list small { color: var(--muted); font-size: .78rem; }
.question-form { display: grid; gap: 10px; }
.question-form > .btn { justify-self: start; }
.question-thread-list { display: grid; gap: 14px; margin-top: 22px; }
.question-thread { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.question-thread > header, .question-reply > header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.question-thread header strong, .question-reply header strong { color: var(--ink); font-size: .92rem; }
.question-thread header small, .question-reply header small { color: var(--muted); }
.question-thread > p { margin: 8px 0 0; }
.question-reply { margin-top: 12px; padding: 13px 15px; background: var(--surface); border-radius: 12px; }
.question-reply.is-staff { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand-600); }
.question-reply p { margin: 6px 0 0; font-size: .94rem; }
.reply-form { display: flex; gap: 8px; margin-top: 12px; }

/* 9. Quiz et certificat --------------------------------------------------- */
.quiz-page .text-link { display: inline-block; margin-bottom: 16px; }
.quiz-eyebrow { display: flex; margin-bottom: 8px; }
.quiz-title { margin-bottom: 8px; font-size: clamp(1.9rem, 3.6vw, 2.6rem) !important; }
.quiz-form { display: grid; gap: 16px; margin-top: 26px; }
.quiz-form > .btn { justify-self: start; }
.quiz-question { margin: 0; padding: 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quiz-question legend { display: flex; gap: 12px; padding: 0; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.quiz-question legend span { display: grid; flex: none; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--brand-700); border-radius: 9px; font-size: .82rem; }
.quiz-choice { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: .15s; }
.quiz-choice:hover { border-color: var(--brand-500); background: var(--brand-50); }
.quiz-choice:has(input:checked) { background: var(--brand-50); border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(74, 94, 208, .12); }
.quiz-result { display: flex; align-items: center; gap: 24px; margin: 24px 0; padding: 26px 28px; border-radius: var(--radius-lg); }
.quiz-result > strong { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.quiz-result h2 { margin-bottom: 4px; color: inherit; font-size: 1.4rem; }
.quiz-result p { margin: 0; }
.quiz-result.is-passed { color: #0c5f40; background: var(--green-100); border: 1px solid #b5e6cd; }
.quiz-result.is-failed { color: #87202f; background: var(--red-100); border: 1px solid #f5c6ce; }
.quiz-review { display: grid; gap: 18px; margin: 0 0 28px; padding-left: 22px; }
.quiz-prompt { margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.quiz-review ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.quiz-review ul li { padding: 10px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.quiz-review ul li.is-correct { color: #0c5f40; background: var(--green-100); border-color: #9fdcbc; font-weight: 700; }
.quiz-review ul li.is-correct::before { content: "✓ "; }
.quiz-review ul li.is-wrong { color: #87202f; background: var(--red-100); border-color: #f5c6ce; }
.quiz-review ul li.is-wrong::before { content: "✗ "; }
.quiz-explanation { margin: 8px 0 0; padding: 10px 13px; color: var(--text); background: var(--surface); border-radius: 10px; font-size: .9rem; }

.certificate-body { min-height: 100vh; margin: 0; padding: 24px 16px 48px; background: #e8ebf5; }
.certificate-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1060px; margin: 0 auto 10px; }
.certificate-valid { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: var(--green-600); background: var(--green-100); border-radius: 999px; font-size: .86rem; font-weight: 700; }
.certificate-specimen-label { padding: 6px 12px; color: #9a6200; background: var(--gold-100); border-radius: 999px; font-size: .86rem; font-weight: 700; }
.certificate-sheet.is-specimen { position: relative; overflow: hidden; }
.certificate-sheet.is-specimen::after { content: "SPÉCIMEN"; position: absolute; top: 50%; left: 50%; color: rgba(191, 50, 71, .1); font-size: clamp(4rem, 13vw, 9rem); font-weight: 800; letter-spacing: .1em; transform: translate(-50%, -50%) rotate(-18deg); pointer-events: none; }
.certificate-hint { max-width: 1060px; margin: 0 auto 16px; color: var(--muted); font-size: .84rem; }
.certificate-sheet { max-width: 1060px; margin: 0 auto; padding: 22px; aspect-ratio: 297 / 210; background: #fff; box-shadow: var(--shadow-lg); }
.certificate-frame { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 34px 48px; text-align: center; border: 3px solid var(--brand-800); outline: 1px solid var(--gold-500); outline-offset: -12px; background: radial-gradient(500px 260px at 50% 0, rgba(242, 165, 22, .08), transparent 70%); }
.certificate-head { display: grid; justify-items: center; gap: 10px; margin-bottom: 16px; }
.certificate-head img { width: 200px; }
.certificate-head span { color: var(--gold-600); font-size: 1rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.certificate-intro { margin: 6px 0; color: var(--muted); font-size: 1.05rem; }
.certificate-name { margin: 6px 0 10px; color: var(--brand-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.4rem) !important; font-weight: 700; letter-spacing: 0 !important; }
.certificate-course { margin: 8px 0; color: var(--brand-600); font-size: clamp(1.3rem, 3vw, 2rem); }
.certificate-detail { color: var(--muted); }
.certificate-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin-top: auto; padding-top: 22px; }
.certificate-foot div { display: grid; gap: 2px; font-size: .9rem; }
.certificate-foot span { color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.certificate-foot strong { color: var(--ink); }
.certificate-sign { padding-top: 10px; border-top: 1px solid var(--brand-800); }
.certificate-verify { margin: 18px 0 0; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
@page { size: A4 landscape; margin: 0; }
@media print {
  .certificate-body { padding: 0; background: #fff; }
  .certificate-toolbar, .certificate-hint { display: none; }
  .certificate-sheet { width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; padding: 10mm; box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 10. Administration ------------------------------------------------------ */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 28px; padding: 6px; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.admin-tabs a { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); border-radius: 11px; font-size: .88rem; font-weight: 700; transition: .15s; }
.admin-tabs a:hover { color: var(--brand-700); background: var(--brand-50); }
.admin-tabs a[aria-current="page"] { color: #fff; background: var(--brand-700); }
.tab-badge { display: inline-grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; color: var(--brand-950); background: var(--gold-500); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.kpi span { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kpi strong { display: block; margin: 8px 0 4px; color: var(--ink); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi small { color: var(--muted); }
.kpi small a { color: var(--brand-600); font-weight: 700; }
.kpi.is-alert { background: linear-gradient(180deg, var(--gold-100), var(--paper)); border-color: #f2d898; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.admin-card { padding: 28px; }
.admin-card h2 { margin: 0 0 16px; font-size: 1.3rem; letter-spacing: -.02em; }
.admin-page .admin-card + .admin-card { margin-top: 24px; }
.admin-page .admin-grid > .admin-card { margin-top: 0; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-section-head h2 { margin: 0; }
.admin-section-head .text-link { white-space: nowrap; }
.admin-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.admin-list a { display: block; padding: 12px 14px; background: var(--surface); border-radius: 12px; transition: background .15s; }
.admin-list a:hover { background: var(--brand-50); }
.admin-list strong, .admin-list small { display: block; }
.admin-list strong { color: var(--ink); font-size: .92rem; }
.admin-list small { margin-top: 2px; color: var(--muted); }
.admin-list-row { display: flex; align-items: center; gap: 10px; }
.admin-list-row > a { flex: 1; }
.table-scroll { overflow-x: auto; margin: 0 -4px; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-table tbody tr:hover { background: var(--surface); }
.admin-table td > strong { display: block; color: var(--ink); }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table-action { display: inline-flex; align-items: center; padding: 7px 11px; color: var(--brand-800); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: .78rem; font-weight: 700; cursor: pointer; list-style: none; transition: .15s; }
.table-action:hover { border-color: var(--brand-500); color: var(--brand-600); }
.table-action.is-primary { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }
.table-action.is-primary:hover { background: var(--brand-600); color: #fff; }
.table-action.is-danger { color: var(--red-600); background: var(--red-100); border-color: #f5c6ce; }
summary.table-action::-webkit-details-marker { display: none; }
.inline-details { display: inline-block; }
.inline-details[open] form { display: grid; gap: 8px; min-width: 240px; margin-top: 8px; padding: 12px; background: var(--surface); border-radius: 12px; }
.admin-search { display: flex; gap: 8px; width: min(380px, 100%); }
.enrollment-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 4px 6px 4px 11px; color: var(--brand-700); background: var(--brand-50); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.enrollment-chip.is-revoked { color: var(--muted); background: var(--surface); text-decoration: line-through; }
.enrollment-chip form { display: contents; }
.enrollment-chip button { display: grid; width: 20px; height: 20px; padding: 0; place-items: center; color: var(--red-600); background: var(--paper); border: 0; border-radius: 50%; line-height: 1; }
.admin-collapsible summary { cursor: pointer; list-style: none; }
.admin-collapsible summary::-webkit-details-marker { display: none; }
.admin-collapsible summary h2 { display: inline; margin: 0; }
.admin-collapsible summary::before { content: "+"; display: inline-grid; width: 28px; height: 28px; margin-right: 10px; place-items: center; color: var(--brand-600); background: var(--brand-50); border-radius: 8px; font-weight: 800; vertical-align: 3px; }
.admin-collapsible[open] summary { margin-bottom: 20px; }
.admin-collapsible[open] summary::before { content: "–"; }
.admin-page > .container > .admin-collapsible { margin-bottom: 24px; }
.inline-create { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-create label { flex: 1 1 220px; }
.inline-create label.narrow, .question-editor label.narrow { flex: 0 0 100px; }
.editor-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.editor-jump a { padding: 7px 14px; color: var(--brand-700); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 700; }
.editor-jump a:hover { border-color: var(--brand-500); }
.cover-field { display: grid; grid-template-columns: 220px 1fr; gap: 10px 18px; align-items: center; }
.cover-preview { grid-row: span 2; border-radius: 12px; }
.logo-field { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: end; }
.logo-field-preview { display: grid; width: 64px; height: 64px; place-items: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 15px; }
.logo-field-preview .software-logo { display: block; width: 64px; height: 64px; }
.editor-section { margin-top: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.editor-section h3 { margin-bottom: 10px; font-size: 1rem; }
.editor-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.editor-section-head .inline-create { flex: 1; }
.editor-lessons { display: grid; gap: 8px; margin: 14px 0 10px; padding: 0; list-style: none; }
.editor-lessons > li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.editor-lessons summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 11px 14px; cursor: pointer; list-style: none; }
.editor-lessons summary::-webkit-details-marker { display: none; }
.editor-lesson-title { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.editor-lesson-meta { color: var(--muted); font-size: .8rem; }
.editor-lessons details[open] > summary { border-bottom: 1px solid var(--line); }
.editor-lessons .lesson-form, .editor-lessons .editor-delete { padding: 16px; }
.editor-lessons .editor-delete { padding-top: 0; }
.editor-quiz-row a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--ink); font-weight: 700; }
.editor-quiz-row small { color: var(--muted); font-weight: 500; }
.editor-add summary { display: inline-flex; color: var(--brand-600); font-weight: 700; cursor: pointer; list-style: none; }
.editor-add summary::-webkit-details-marker { display: none; }
.editor-add[open] summary { margin-bottom: 12px; }
.editor-add .lesson-form { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.editor-new-section { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.question-editor { display: grid; gap: 14px; padding: 16px 0; }
.question-editor fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.question-editor legend { margin-bottom: 6px; color: var(--ink); font-size: .85rem; font-weight: 700; }
.question-editor > .btn { justify-self: start; }
.choice-row { display: flex; align-items: center; gap: 10px; }
.choice-row input[type="radio"] { width: 20px; height: 20px; accent-color: var(--green-600); }
.editor-question { border-bottom: 1px solid var(--line); }
.editor-question summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.editor-question summary::-webkit-details-marker { display: none; }
.question-number { display: grid; flex: none; width: 28px; height: 28px; place-items: center; color: #fff; background: var(--brand-700); border-radius: 8px; font-size: .8rem; }
.editor-new-question { margin-top: 24px; padding: 22px; background: var(--surface); border-radius: var(--radius); }
.editor-new-question h3 { margin: 0; }
.instructor-row { border-bottom: 1px solid var(--line); }
.instructor-row summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.instructor-row summary::-webkit-details-marker { display: none; }
.instructor-row summary img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.instructor-row summary strong, .instructor-row summary small { display: block; }
.instructor-row summary strong { color: var(--ink); }
.instructor-row summary small { color: var(--muted); }
.instructor-row form { padding-bottom: 14px; }
.question-admin > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.question-admin > header strong { color: var(--ink); }
.question-admin > header small { display: block; color: var(--muted); }
.question-admin .question-form { margin-top: 16px; }
.question-admin-actions { margin-top: 12px; }
.admin-page .filter-bar { margin-bottom: 20px; }
.credentials-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; padding: 26px 28px; background: linear-gradient(180deg, var(--gold-100), var(--paper)); border: 1px solid #f2d898; border-radius: var(--radius-lg); }
.credentials-card h2 { margin: 10px 0 0; font-size: 1.3rem; }
.credentials-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.credentials-card dl div { padding: 12px 14px; background: var(--paper); border: 1px solid #f2d898; border-radius: 12px; }
.credentials-card dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.credentials-card dd { margin: 4px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 800; font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.credentials-card > p { grid-column: 1 / -1; margin: 0; color: #7a5200; font-size: .86rem; }

.portal-footer { color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); font-size: .86rem; }
.portal-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 74px; }
.portal-footer .container > div { display: flex; flex-wrap: wrap; gap: 20px; }
.portal-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-weight: 700; }

/* 11. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .course-detail-layout .detail-aside { margin-top: 0; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1140px) {
  .menu-toggle { display: grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; display: grid; max-height: calc(100vh - var(--header-h)); gap: 18px; padding: 18px 24px 28px; overflow-y: auto; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .site-header.is-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-links { display: grid; gap: 2px; margin: 0; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-actions { flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-actions .btn { flex: 1; }
  .nav-logout button span { position: static; width: auto; height: auto; clip: auto; }
}

@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .brand img { width: 136px; }
  .home-hero-grid, .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .home-hero-visual { max-width: 560px; margin: 0 auto; }
  .course-grid, .feature-grid, .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(3) { border-left: 0; }
  .stat-strip div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-media img { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; order: -1; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .course-detail-layout .detail-aside { position: static; order: -1; }
  .portal-login-wrap { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .portal-intro { min-height: 280px; padding: 32px; }
  .learning-dashboard { grid-template-columns: minmax(0, 1fr); }
  .learning-sidebar { order: 2; }
  .admin-grid, .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .my-course { grid-template-columns: 200px 1fr; }
}

@media (max-width: 720px) {
  .container, .narrow-container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .section-cta { padding-bottom: 64px; }
  .section-head { display: block; margin-bottom: 32px; }
  .section-head .btn { margin-top: 18px; }
  .home-hero { padding: 40px 0 64px; }
  .home-hero-visual { padding: 12px 8px 30px 16px; }
  .float-card-top { top: 20px; left: -4px; }
  .float-card-bottom { width: 230px; right: -4px; }
  .trust-list { gap: 10px 24px; }
  .trust-list li { font-size: .92rem; }
  .course-grid, .feature-grid, .testimonial-grid, .form-grid, .portal-form-grid, .learn-list, .resource-list { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 200px 140px 140px; }
  .mosaic-item.is-large { grid-column: span 2; grid-row: auto; }
  .mosaic-item:nth-child(n + 4) { display: none; }
  .cta-panel { grid-template-columns: minmax(0, 1fr); padding: 34px 26px; border-radius: var(--radius-lg); }
  .page-hero { padding: 56px 0; }
  .page-hero.compact { padding: 48px 0 44px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-group-head { display: block; }
  .lightbox { padding: 60px 12px; }
  .lightbox-nav { top: auto; bottom: 50px; transform: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 52px 0 36px; }
  .form-card, .portal-form-card, .installation-card { padding: 26px 20px; }
  .instructor-card { flex-direction: column; }
  .course-title-row { gap: 14px; }
  .hero-logo { width: 54px; }
  .learner-head, .admin-heading { display: grid; align-items: start; }
  .learner-stats { gap: 10px; }
  .learner-stats div { padding: 16px; }
  .learner-stats strong { font-size: 1.6rem; }
  .my-course { grid-template-columns: minmax(0, 1fr); }
  .my-course-cover { min-height: 0; aspect-ratio: 16 / 7; }
  .player-progress > span { text-align: left; }
  .learning-player { padding: 16px; }
  .lesson-meta { display: block; }
  .lesson-progress { display: block; margin-top: 8px; }
  .certificate-banner { flex-direction: column; align-items: flex-start; }
  .reply-form { flex-direction: column; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-field { grid-template-columns: minmax(0, 1fr); }
  .cover-preview { grid-row: auto; }
  .credentials-card, .credentials-card dl { grid-template-columns: minmax(0, 1fr); }
  .credentials-card > p { grid-column: auto; }
  .admin-card, .dashboard-block, .checkout-card { padding: 22px 18px; }
  .certificate-sheet { aspect-ratio: auto; padding: 10px; }
  .certificate-frame { padding: 24px 14px; outline-offset: -7px; }
  .certificate-foot { grid-template-columns: minmax(0, 1fr); }
  .floating-whatsapp { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* 12. Animation d'ouverture ------------------------------------------------ */
.site-intro { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; background: radial-gradient(600px 400px at 50% 40%, var(--brand-800), var(--brand-950)); animation: intro-out .5s var(--ease) 1.25s forwards; }
.site-intro-inner { display: grid; justify-items: center; gap: 6px; color: #fff; text-align: center; }
.site-intro-emblem { width: 96px; height: 96px; margin-bottom: 10px; padding: 12px; background: #fff; border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); animation: intro-emblem .9s var(--ease) both; }
.site-intro strong { font-size: 1.6rem; letter-spacing: .08em; animation: intro-fade .6s var(--ease) .25s both; }
.site-intro span { color: #aab6f5; font-size: .82rem; letter-spacing: .06em; animation: intro-fade .6s var(--ease) .4s both; }
.site-intro-bar { position: relative; width: 120px; height: 3px; margin-top: 18px; overflow: hidden; background: rgba(255, 255, 255, .15); border-radius: 3px; }
.site-intro-bar::after { content: ""; position: absolute; inset: 0; background: var(--gold-500); transform-origin: left; animation: intro-bar 1.1s var(--ease) .1s both; }
.intro-seen .site-intro { display: none; }
@keyframes intro-emblem { from { opacity: 0; transform: scale(.6) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes intro-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes intro-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* 13. Logos officiels, services, page « À propos » ------------------------ */
.software-logo.is-official { display: flex; align-items: center; justify-content: center; gap: 8%; width: 100%; aspect-ratio: 1; padding: 17%; background: #fff; border-radius: 24%; box-shadow: 0 10px 24px -10px rgba(11, 16, 56, .45); }
.software-logo.is-official img { display: block; width: 100%; height: 100%; object-fit: contain; }
.software-logo.is-official.logo-count-2, .software-logo.is-official.logo-count-3 { aspect-ratio: auto; padding: 14px 16px; border-radius: 18px; }
.software-logo.is-official.logo-count-2 img, .software-logo.is-official.logo-count-3 img { width: 44px; height: 44px; }
.cover-logo:has(.logo-count-2) { width: 140px; }
.cover-logo:has(.logo-count-3) { width: 196px; }
.hero-logo:has(.logo-count-2), .hero-logo:has(.logo-count-3) { width: auto; }
.hero-logo .logo-count-2 img, .hero-logo .logo-count-3 img { width: 36px; height: 36px; }
.cover-logo-badge .software-logo.is-official { padding: 8px; border-radius: 12px; }
.cover-logo-badge .logo-count-2 img, .cover-logo-badge .logo-count-3 img { width: 22px; height: 22px; }
.cover-logo-badge:has(.logo-count-2), .cover-logo-badge:has(.logo-count-3) { width: auto; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .25s var(--ease), box-shadow .25s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card h3 { margin: 4px 0 6px; }
.service-card p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.service-card:nth-child(3) { color: #e9ecff; background: linear-gradient(150deg, var(--brand-700), var(--brand-950)); border-color: transparent; }
.service-card:nth-child(3) h3 { color: #fff; }
.service-card:nth-child(3) p { color: #c3cbf0; }
.service-card:nth-child(3) .feature-icon { color: var(--brand-950); background: var(--gold-500); }
.service-card:nth-child(3) .course-link { color: var(--gold-500); }
.services-section .section-head { margin-bottom: 36px; }

.about-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-intro .lead { color: var(--text); }
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 24px 22px; background: var(--surface); border-radius: var(--radius-lg); }
.pillar h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .9rem; }

.ceo-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.ceo-photo { position: sticky; top: calc(var(--header-h) + 28px); margin: 0; }
.ceo-photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 2px solid rgba(242, 165, 22, .55); border-radius: var(--radius-xl); }
.ceo-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
/* Légende sous la photo (et non par-dessus) : la photo reste entière, pieds compris. */
.ceo-photo figcaption { position: relative; display: grid; gap: 2px; margin-top: 30px; padding-left: 16px; border-left: 3px solid var(--gold-500); }
.ceo-photo figcaption strong { color: #fff; }
.ceo-photo figcaption span { color: var(--gold-500); font-size: .85rem; font-weight: 700; }
.ceo-content h2 { margin-bottom: 4px; }
.ceo-title { margin-bottom: 22px; color: var(--gold-500); font-weight: 700; }
.ceo-content > p { color: #c9d0ee; }
.skill-groups { display: grid; gap: 18px; margin: 28px 0 30px; }
.skill-group h3 { margin-bottom: 10px; color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skill-chips li { padding: 7px 13px; color: #e2e6f8; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-size: .86rem; font-weight: 600; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.portfolio-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.portfolio-card:hover { box-shadow: var(--shadow); }
.portfolio-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portfolio-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 26px 28px; }
.portfolio-head { display: flex; align-items: center; gap: 16px; }
.portfolio-head h3 { margin: 2px 0 0; font-size: 1.3rem; }
.portfolio-logo { flex: none; width: 56px; }
.portfolio-logo .software-logo { display: block; width: 100%; height: auto; }
.portfolio-body > p { margin: 0; color: var(--muted); }
.compact-list { gap: 8px; margin: 4px 0 6px; font-size: .92rem; }
.portfolio-body .course-link { margin-top: auto; }

/* 14. Administration : galerie, « À propos », zone de suppression -------- */
.album-card .admin-section-head small { display: block; margin-top: 2px; }
.album-settings { margin-bottom: 16px; }
.album-settings > summary { display: inline-flex; color: var(--brand-600); font-weight: 700; cursor: pointer; list-style: none; }
.album-settings > summary::-webkit-details-marker { display: none; }
.album-settings[open] > summary { margin-bottom: 14px; }
.upload-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; padding: 16px; background: var(--brand-50); border: 1.5px dashed var(--brand-100); border-radius: var(--radius); }
.upload-zone label { display: flex; flex: 1 1 320px; align-items: center; gap: 14px; color: var(--ink); }
.upload-zone label > .icon { width: 30px; height: 30px; color: var(--brand-600); }
.upload-zone label > span { display: grid; flex: none; }
.upload-zone small { color: var(--muted); }
.upload-zone input[type="file"] { flex: 1; min-width: 0; background: var(--paper); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px; cursor: pointer; }
.photo-tile input { position: absolute; opacity: 0; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s, filter .2s; }
.photo-check { position: absolute; top: 8px; right: 8px; display: grid; width: 26px; height: 26px; place-items: center; color: transparent; background: rgba(255, 255, 255, .85); border: 2px solid #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile:has(input:checked) img { filter: brightness(.55); }
.photo-tile:has(input:checked) .photo-check { color: #fff; background: var(--red-600); border-color: var(--red-600); }
.photo-tile:has(input:focus-visible) { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.profile-photo-field { display: flex; align-items: center; gap: 18px; }
.profile-photo-field img { width: 96px; height: 120px; object-fit: cover; border-radius: 14px; }
.profile-photo-field label { flex: 1; }
.portfolio-admin-logo { display: block; flex: none; width: 42px; }
.portfolio-admin-logo .software-logo { display: block; width: 100%; height: auto; }
.danger-zone { border-color: #f5c6ce; }
.danger-zone h2 { color: var(--red-600); }
.danger-button { color: #fff; background: var(--red-600); }
.danger-button:hover { background: #a32a3c; }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .about-intro, .ceo-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ceo-photo { position: relative; top: 0; max-width: 460px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .service-grid, .pillar-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 22px 20px; }
  .ceo-photo::before { inset: 14px -10px -10px 14px; }
  .portfolio-body { padding: 22px 20px; }
  .cover-logo:has(.logo-count-3) { width: 170px; }
  .profile-photo-field { align-items: flex-start; flex-direction: column; }
}

/* 16. Portfolio du fondateur : fond blanc, accents indigo et or ---------------------------- */
.page-portfolio { --pf-line: var(--line); --pf-text: var(--text); --pf-glass: var(--paper); background: var(--paper); }
.app-logo-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 22%; }

@keyframes pf-pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pf-blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.08); } }
@keyframes pf-marquee { to { transform: translateX(-50%); } }
@keyframes pf-shine { to { background-position: 200% center; } }

/* Barre de progression de lecture */
.pf-progress { position: fixed; z-index: 70; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand-500), var(--gold-500)); transform: scaleX(var(--pf-progress, 0)); transform-origin: 0 50%; pointer-events: none; }

/* En-tête du portfolio : fond blanc, halos animés */
.pf-hero { position: relative; overflow: hidden; padding-top: 56px; color: var(--text); background: var(--paper); }
.pf-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(35, 48, 122, .13) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 72% 42%, #000, transparent 68%); -webkit-mask-image: radial-gradient(circle at 72% 42%, #000, transparent 68%); pointer-events: none; }
.pf-hero::after { content: ""; position: absolute; top: -160px; right: -120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(74, 94, 208, .2), transparent 65%); border-radius: 50%; animation: pf-blob 14s ease-in-out infinite; pointer-events: none; }
.pf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 40px; }
.pf-hero-copy { padding-bottom: 72px; }
.pf-hero-copy > * { animation: pf-rise .8s var(--ease) both; }
.pf-hero-copy > :nth-child(2) { animation-delay: .08s; }
.pf-hero-copy > :nth-child(3) { animation-delay: .16s; }
.pf-hero-copy > :nth-child(4) { animation-delay: .24s; }
.pf-hero-copy > :nth-child(5) { animation-delay: .32s; }
.pf-hero-copy > :nth-child(6) { animation-delay: .4s; }
.pf-hero-copy > :nth-child(7) { animation-delay: .48s; }
.pf-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; color: var(--brand-800); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; font-size: .82rem; font-weight: 700; }
.pf-dot { width: 8px; height: 8px; background: #22c07a; border-radius: 50%; box-shadow: 0 0 0 0 rgba(34, 192, 122, .6); animation: pf-pulse 2s infinite; }
.pf-hero h1 { margin: 22px 0 18px; color: var(--ink); font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.pf-hero h1 span { display: block; background: linear-gradient(92deg, var(--gold-600), var(--gold-500) 30%, #ffc94d 50%, var(--gold-500) 70%, var(--gold-600)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pf-shine 6s linear infinite; }
.pf-tagline { max-width: 540px; margin-bottom: 24px; color: var(--text); font-size: 1.12rem; line-height: 1.7; }
.pf-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.pf-roles li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 600; transition: transform .25s var(--ease), border-color .25s; }
.pf-roles li:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.pf-roles .icon { color: var(--gold-600); }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.pf-stats div { display: grid; gap: 2px; }
.pf-stats dt { color: var(--brand-700); font-size: clamp(1.35rem, 2.6vw, 2.1rem); white-space: nowrap; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-stats dd { margin: 0; color: var(--muted); font-size: .84rem; }

.pf-portrait { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 600px; animation: pf-rise 1s .2s var(--ease) both; }
.pf-halo { position: absolute; left: 50%; bottom: 40px; width: min(470px, 92%); aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle at 50% 42%, rgba(242, 165, 22, .55), rgba(242, 165, 22, .2) 40%, rgba(74, 94, 208, .14) 62%, transparent 72%); border-radius: 50%; }
.pf-halo::before, .pf-halo::after { content: ""; position: absolute; inset: -34px; border: 1px solid rgba(35, 48, 122, .12); border-radius: 50%; }
.pf-halo::after { inset: -78px; border-style: dashed; border-color: rgba(214, 138, 0, .35); animation: pf-spin 60s linear infinite; }
.pf-photo { position: relative; z-index: 1; display: block; width: min(360px, 78%); height: 560px; margin-bottom: 64px; object-fit: cover; object-position: top; border: 6px solid #fff; border-radius: 30px; box-shadow: var(--shadow-lg); }
.pf-portrait.is-cutout .pf-photo { width: auto; max-width: 100%; height: auto; max-height: 640px; margin-bottom: 0; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 26px 30px rgba(17, 24, 81, .28)); }
.pf-badge { position: absolute; z-index: 2; display: grid; width: 62px; height: 62px; padding: 13px; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); translate: calc(var(--pf-mx, 0) * 18px) calc(var(--pf-my, 0) * 18px); transition: translate .4s var(--ease); animation: float 6s ease-in-out infinite; }
.pf-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-badge.is-1 { top: 14%; left: 6%; }
.pf-badge.is-2 { top: 34%; right: 2%; animation-delay: -2s; translate: calc(var(--pf-mx, 0) * -14px) calc(var(--pf-my, 0) * -14px); }
.pf-badge.is-3 { bottom: 30%; left: 0; animation-delay: -4s; }
.pf-card { position: absolute; z-index: 2; right: 4%; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--ink); background: rgba(255, 255, 255, .88); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.pf-card .icon { width: 22px; height: 22px; color: var(--gold-600); }
.pf-card strong, .pf-card small { display: block; }
.pf-card small { color: var(--muted); }

/* Bandeau défilant des outils maîtrisés */
.pf-marquee { position: relative; overflow: hidden; padding: 22px 0; background: var(--brand-950); }
.pf-marquee::before, .pf-marquee::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 90px; pointer-events: none; }
.pf-marquee::before { left: 0; background: linear-gradient(90deg, var(--brand-950), transparent); }
.pf-marquee::after { right: 0; background: linear-gradient(-90deg, var(--brand-950), transparent); }
.pf-marquee-track { display: flex; width: max-content; animation: pf-marquee 34s linear infinite; }
.pf-marquee:hover .pf-marquee-track { animation-play-state: paused; }
.pf-marquee-item { display: inline-flex; align-items: center; gap: 12px; margin-right: 46px; color: #e7eafb; font-weight: 700; white-space: nowrap; }
.pf-marquee-item img { width: 30px; height: 30px; padding: 4px; object-fit: contain; background: #fff; border-radius: 8px; }
.pf-marquee-item.is-dot { color: var(--gold-500); }

/* Sections */
.pf-section { position: relative; padding: 100px 0; color: var(--text); background: var(--paper); }
.pf-section:nth-of-type(even) { background: var(--surface); }
.pf-section h2, .pf-contact h2 { margin-bottom: 18px; color: var(--ink); font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.pf-label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--gold-600); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pf-label::after { content: ""; width: 40px; height: 2px; background: linear-gradient(90deg, var(--gold-500), transparent); border-radius: 2px; }
.pf-intro { max-width: 600px; margin-bottom: 44px; color: var(--muted); font-size: 1.05rem; }

.pf-about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.pf-bio p { font-size: 1.02rem; line-height: 1.8; }
.pf-bio .pf-lead { padding-left: 22px; color: var(--ink); border-left: 3px solid var(--gold-500); font-size: 1.26rem; font-weight: 600; line-height: 1.6; }
.pf-about .pf-link { margin-top: 18px; }

.pf-skill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.pf-mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin: 34px 0 64px; }
.pf-skill-card { position: relative; overflow: hidden; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.pf-skill-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand-500), var(--gold-500)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.pf-skill-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.pf-skill-card:hover::before { transform: scaleX(1); }
.pf-skill-icon { display: grid; width: 50px; height: 50px; margin-bottom: 18px; place-items: center; color: var(--brand-950); background: linear-gradient(135deg, #ffd27a, var(--gold-500)); border-radius: 14px; box-shadow: 0 10px 20px -10px rgba(214, 138, 0, .8); transition: transform .4s var(--ease); }
.pf-skill-card:hover .pf-skill-icon { transform: rotate(-8deg) scale(1.08); }
.pf-skill-icon .icon { width: 24px; height: 24px; }
.pf-skill-card h3 { margin-bottom: 16px; color: var(--ink); font-size: 1.2rem; }
.pf-skill-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-skill-card li { padding: 6px 12px; color: var(--brand-800); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; font-size: .84rem; font-weight: 500; }
.pf-mission { padding: 30px 30px 30px 32px; }
.pf-mission h3 { margin-bottom: 10px; }
.pf-mission p { margin: 0; color: var(--text); line-height: 1.7; }
.pf-subtitle { margin-bottom: 10px; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

.pf-showcase-list { display: grid; gap: 28px; }
.pf-showcase { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.pf-showcase:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pf-showcase.is-reversed .pf-showcase-visual { order: 2; }
.pf-showcase-visual { position: relative; min-height: 340px; overflow: hidden; background: var(--brand-50); }
.pf-showcase-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pf-showcase:hover .pf-showcase-visual img { transform: scale(1.05); }
.pf-showcase-visual.is-generated { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(74, 94, 208, .55), transparent 65%), linear-gradient(135deg, #141c5e, #070b26); }
.pf-showcase-logo { position: relative; z-index: 1; width: 128px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease); }
.pf-showcase:hover .pf-showcase-logo { transform: scale(1.08) rotate(-3deg); }
.pf-showcase-logo .software-logo { display: block; width: 100%; height: auto; }
.pf-showcase-number { position: absolute; right: 24px; bottom: 6px; color: transparent; font-size: 7rem; font-weight: 800; line-height: 1; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); }
.pf-showcase-body { display: flex; flex-direction: column; gap: 16px; padding: 38px 40px; }
.pf-showcase-head { display: flex; align-items: center; gap: 16px; }
.pf-app-logo { flex: none; width: 56px; }
.pf-app-logo .software-logo { display: block; width: 100%; height: auto; }
.pf-category { color: var(--gold-600); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pf-showcase h3 { margin: 2px 0 0; color: var(--ink); font-size: 1.6rem; }
.pf-showcase-body > p { margin: 0; line-height: 1.75; }
.pf-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 4px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.pf-features li { display: flex; gap: 8px; color: var(--text); }
.pf-features .icon { margin-top: 3px; color: #22a06b; }
.pf-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--brand-600); font-weight: 700; }
.pf-link .icon { transition: transform .25s var(--ease); }
.pf-link:hover { color: var(--gold-600); }
.pf-link:hover .icon:last-child { transform: translate(2px, -2px); }

.pf-section.pf-services { background: var(--surface); }
.pf-services h2 { margin-bottom: 34px; color: var(--ink); }

.pf-contact { padding: 0 0 100px; background: var(--surface); }
.pf-contact-inner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; padding: 56px; color: #c5cbec; background: radial-gradient(500px 300px at 100% 0, rgba(242, 165, 22, .3), transparent 60%), linear-gradient(120deg, #141c5e, #070b26); border-radius: 32px; box-shadow: var(--shadow-lg); }
.pf-contact-inner::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border: 40px solid rgba(242, 165, 22, .12); border-radius: 50%; animation: pf-blob 12s ease-in-out infinite; pointer-events: none; }
.pf-contact-inner > * { position: relative; z-index: 1; }
.pf-contact h2 { max-width: 760px; color: #fff; }
.pf-contact .pf-label { color: var(--gold-500); }
.pf-contact-inner .actions { flex-wrap: wrap; }
.pf-contact p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .pf-hero::after, .pf-hero h1 span, .pf-marquee-track, .pf-contact-inner::after, .pf-halo::after, .pf-badge, .pf-hero-copy > *, .pf-portrait { animation: none !important; }
}

/* Les tuiles de logos officiels restent des carrés en flex, quel que soit leur conteneur. */
span.software-logo.is-official { display: flex; height: auto; }

/* Page « À propos » : aperçu du fondateur renvoyant au portfolio */
.founder-teaser { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 40px; padding: 36px; color: #c9cfee; background: radial-gradient(500px 300px at 100% 0, rgba(242, 165, 22, .22), transparent 60%), linear-gradient(120deg, #141c5e, #070b26); border-radius: 30px; box-shadow: var(--shadow-lg); }
.founder-teaser img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 22px; }
.founder-teaser h2 { margin-bottom: 4px; color: #fff; }
.founder-teaser .ceo-title { margin-bottom: 14px; }
.founder-teaser p { max-width: 640px; }
.app-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.app-strip a { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: .2s; }
.app-strip a:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.app-strip span { display: block; width: 44px; }
.app-strip span .software-logo { display: block; width: 100%; height: auto; }
.app-strip strong, .app-strip small { display: block; }
.app-strip strong { color: var(--ink); }
.app-strip small { color: var(--muted); }

@media (max-width: 1020px) {
  .pf-hero-grid, .pf-about-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pf-hero-copy { padding-bottom: 0; }
  .pf-portrait { min-height: 520px; }
  .pf-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-showcase, .pf-showcase.is-reversed { grid-template-columns: minmax(0, 1fr); }
  .pf-showcase.is-reversed .pf-showcase-visual { order: 0; }
  .pf-showcase-visual { min-height: 0; aspect-ratio: 16 / 9; }
  .pf-contact-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
  .founder-teaser { grid-template-columns: 160px 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .pf-hero { padding-top: 40px; }
  .pf-hero h1 { font-size: 2.6rem; }
  .pf-tagline { font-size: 1rem; }
  .pf-hero .actions .btn { width: 100%; }
  .pf-stats { gap: 8px 12px; }
  .pf-stats dt { font-size: 1.25rem; }
  .pf-stats dd { font-size: .74rem; line-height: 1.35; }
  .pf-portrait { min-height: 440px; }
  .pf-photo { height: 420px; margin-bottom: 48px; }
  .pf-portrait.is-cutout .pf-photo { max-height: 470px; }
  .pf-halo::after { inset: -40px; }
  .pf-badge { width: 48px; height: 48px; }
  .pf-card { right: 50%; bottom: 14px; transform: translateX(50%); white-space: nowrap; }
  .pf-section { padding: 64px 0; }
  .pf-bio .pf-lead { padding-left: 16px; font-size: 1.08rem; }
  .pf-marquee { padding: 16px 0; }
  .pf-marquee-item { margin-right: 32px; font-size: .9rem; }
  .pf-hero::after { width: 380px; height: 380px; top: -120px; right: -160px; }
  .pf-skill-grid, .pf-features { grid-template-columns: minmax(0, 1fr); }
  .pf-skill-card { padding: 22px; }
  .pf-showcase-body { padding: 24px 22px; }
  .pf-showcase h3 { font-size: 1.35rem; }
  .pf-showcase-number { font-size: 5rem; }
  .pf-contact { padding-bottom: 64px; }
  .pf-contact-inner { padding: 32px 22px; border-radius: 24px; }
  .pf-contact .actions .btn { width: 100%; }
  .founder-teaser { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .founder-teaser img { max-width: 220px; }
  .app-strip a { flex: 1 1 100%; }
}

/* 17. Navigation : fil d'Ariane, orientation, page Services ---------------- */
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: .86rem; }
.breadcrumbs li { display: inline-flex; align-items: center; color: #aab4e6; }
.breadcrumbs li + li::before { content: "›"; margin: 0 10px; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: #d6dcf7; font-weight: 600; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { max-width: 60vw; overflow: hidden; color: #8e98cf; text-overflow: ellipsis; white-space: nowrap; }
.pf-hero .breadcrumbs li, .pf-hero .breadcrumbs [aria-current="page"] { color: var(--muted); }
.pf-hero .breadcrumbs li + li::before { color: var(--line-strong); }
.pf-hero .breadcrumbs a { color: var(--brand-700); }
.pf-hero .breadcrumbs a:hover { color: var(--gold-600); }
.hero-help { display: flex; align-items: center; gap: 8px; margin-top: 16px !important; color: #c3cbf0; font-size: .92rem !important; }
.hero-help .icon { color: var(--gold-500); }
.hero-help a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.path-section { padding-top: 84px; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.path-card:hover { transform: translateY(-4px); border-color: var(--brand-100); box-shadow: var(--shadow); }
.path-icon { display: grid; width: 56px; height: 56px; margin-bottom: 14px; place-items: center; color: var(--brand-600); background: var(--brand-50); border-radius: 16px; }
.path-icon .icon { width: 26px; height: 26px; }
.path-for { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.path-card h3 { margin: 2px 0 4px; font-size: 1.35rem; }
.path-card p { flex: 1; margin: 0 0 18px; color: var(--muted); }
.path-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-600); font-weight: 700; }
.path-cta .icon { transition: transform .2s; }
.path-card:hover .path-cta .icon { transform: translateX(4px); }
.path-card.is-featured { color: #c9cfee; background: radial-gradient(400px 240px at 100% 0, rgba(242, 165, 22, .25), transparent 60%), linear-gradient(150deg, var(--brand-700), var(--brand-950)); border-color: transparent; }
.path-card.is-featured h3 { color: #fff; }
.path-card.is-featured p, .path-card.is-featured .path-for { color: #b8c1ea; }
.path-card.is-featured .path-icon { color: var(--brand-950); background: var(--gold-500); }
.path-card.is-featured .path-cta { color: var(--gold-500); }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.section-soft + .section-cta, .section-cta.is-after-soft { padding-top: 0; background: linear-gradient(var(--surface) 50%, var(--paper) 50%); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.anchor-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .9rem; font-weight: 600; transition: .2s; }
.anchor-nav a:hover { color: var(--brand-950); background: var(--gold-500); border-color: var(--gold-500); }
.anchor-nav .icon { color: var(--gold-500); }
.anchor-nav a:hover .icon { color: var(--brand-950); }
.service-block { scroll-margin-top: calc(var(--header-h) + 10px); }
.service-number { display: block; margin-bottom: 8px; color: var(--gold-600); font-size: .9rem; font-weight: 800; letter-spacing: .14em; }
.section-dark .service-number { color: var(--gold-500); }
.split.is-reversed { grid-template-columns: 1.1fr .9fr; }
.service-visual { position: relative; }
.service-visual .player-mock { max-width: 480px; margin: 0 auto; }
.service-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.photo-stack { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 4 / 3; }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.photo-stack img:first-child { grid-row: span 2; }
.photo-stack img:only-child { grid-column: span 2; }
.app-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.app-wall-item { display: grid; justify-items: start; gap: 4px; padding: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; }
.app-wall-item > span { display: block; width: 52px; margin-bottom: 10px; }
.app-wall-item > span .software-logo { display: block; width: 100%; height: auto; }
.app-wall-item strong { color: #fff; }
.app-wall-item small { color: #98a2d3; }
.process-list { display: grid; gap: 12px; margin: 24px 0 30px; padding: 0; list-style: none; counter-reset: process; }
.process-list li { position: relative; padding-left: 46px; counter-increment: process; }
.process-list li::before { content: counter(process); position: absolute; left: 0; top: -2px; display: grid; width: 30px; height: 30px; place-items: center; color: var(--brand-950); background: var(--gold-500); border-radius: 9px; font-size: .85rem; font-weight: 800; }
.process-list strong { color: #fff; }
.service-compact { display: flex; gap: 24px; align-items: flex-start; padding: 36px; background: var(--surface); border-radius: var(--radius-xl); }
.service-compact .feature-icon { flex: none; }
.service-compact h2 { font-size: 1.7rem; }
.service-compact p { color: var(--muted); }

.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: .2s; }
.link-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-card .feature-icon { flex: none; margin: 0; }
.link-card > span:nth-child(2) { flex: 1; }
.link-card strong, .link-card small { display: block; }
.link-card strong { color: var(--ink); }
.link-card small { color: var(--muted); }
.link-card-arrow { color: var(--brand-600); }

@media (max-width: 1020px) {
  .path-grid, .link-cards { grid-template-columns: minmax(0, 1fr); }
  .split.is-reversed > div:first-child { order: 2; }
}

@media (max-width: 720px) {
  /* Sur téléphone, les choix d'orientation passent avant la photo décorative. */
  .home-hero-visual { display: none; }
  .home-hero { padding-bottom: 40px; }
  .path-section { padding-top: 40px; }
  .path-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 20px; border-radius: var(--radius-lg); }
  .path-icon { grid-row: span 4; width: 48px; height: 48px; margin: 0; border-radius: 14px; }
  .path-card h3 { font-size: 1.1rem; }
  .path-card p { margin-bottom: 10px; font-size: .9rem; }
  .hero-help { display: block; line-height: 1.6; }
  .hero-help .icon { display: inline-block; margin-right: 6px; vertical-align: -3px; }
  .course-cover.course-cover-aside { display: none; }
  .portal-login-wrap .portal-form-card { order: -1; padding: 26px 22px; }
  .portal-intro { min-height: 0; padding: 26px 22px; }
  .portal-intro h1 { font-size: 1.35rem; }
  .anchor-nav { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .anchor-nav::-webkit-scrollbar { display: none; }
  .anchor-nav a { flex: none; }
  .app-wall-item { padding: 16px; }
  .service-compact { flex-direction: column; padding: 24px 20px; }
  .steps-cta .text-link { width: 100%; text-align: center; }
}

/* 18. Expérience mobile façon application ---------------------------------- */
/* Apparition au défilement (ajoutée par app.js, jamais sans JavaScript). */
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--reveal-delay, 0ms), transform .7s var(--ease) var(--reveal-delay, 0ms); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

.tab-bar, .nav-quick, .nav-chevron, .footer-toggle { display: none; }

@media (max-width: 1140px) {
  /* Menu plein écran, liens larges et faciles à toucher. */
  .main-nav { inset: var(--header-h) 0 0; height: calc(100dvh - var(--header-h)); max-height: none; display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 10px 22px calc(26px + env(safe-area-inset-bottom)); }
  .nav-links { display: block; }
  .nav-links a { display: flex; align-items: center; justify-content: space-between; padding: 17px 4px; color: var(--ink); background: none !important; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; font-weight: 700; }
  .nav-links a[aria-current="page"] { color: var(--brand-600); }
  .nav-chevron { display: block; width: 20px; height: 20px; color: var(--muted); }
  .nav-actions { margin-top: auto; padding-top: 0; border-top: 0; }
  .nav-actions .nav-login { flex: 1; padding: 13px; text-align: center; border: 1px solid var(--line-strong); border-radius: 12px; }
  .nav-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nav-quick a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: var(--brand-800); background: var(--surface); border-radius: 12px; font-weight: 700; }
  .nav-quick a:first-child { color: #fff; background: #17a35e; }
}

@media (max-width: 760px) {
  /* Barre d'onglets en bas, à portée du pouce. */
  .tab-bar { position: fixed; z-index: 58; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(17, 24, 81, .08); border-radius: 22px; box-shadow: 0 16px 36px -14px rgba(17, 24, 81, .45); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
  .tab-bar a { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 6px; color: var(--muted); border-radius: 16px; font-size: .66rem; font-weight: 700; letter-spacing: .01em; transition: color .2s, background .2s; }
  .tab-bar .icon { width: 22px; height: 22px; }
  .tab-bar a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
  .tab-bar a:active { transform: scale(.94); }
  .menu-open .tab-bar { display: none; }
  .has-tab-bar .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .has-tab-bar .floating-whatsapp { right: 14px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .brand img { width: 116px; }
  .menu-toggle { width: 42px; height: 42px; }
  .container, .narrow-container { width: calc(100% - 36px); }
  .section { padding: 48px 0; }
  .section-cta { padding-bottom: 48px; }
  h2, .section-head h2 { font-size: 1.5rem; }
  .section-head { margin-bottom: 22px; }
  .eyebrow { margin-bottom: 10px; font-size: .72rem; }

  /* Accueil : en-tête resserré. */
  .home-hero { padding: 28px 0 34px; }
  .home-hero h1 { margin: 14px 0 12px; font-size: 2.15rem; line-height: 1.08; }
  .home-hero .lead { margin-bottom: 18px; font-size: .98rem; }
  .pill { padding: 6px 12px 6px 9px; font-size: .74rem; }
  /* Recherche sur une seule ligne : champ + bouton compact. */
  .hero-search { flex-wrap: nowrap; gap: 6px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow-sm); }
  .hero-search > .icon { display: block; width: 18px; height: 18px; }
  .hero-search input { min-height: 44px; padding: 0 4px; font-size: .92rem; }
  .hero-search .btn { width: auto; min-height: 44px; padding: 0 14px; font-size: .86rem; }
  .page-hero, .page-hero.compact { padding: 34px 0 36px; }
  .page-hero h1, .course-hero h1 { font-size: 1.85rem; }
  .breadcrumbs { margin-bottom: 12px; }
  .breadcrumbs ol { font-size: .8rem; }

  /* Pied de page en accordéon. */
  .footer-top { gap: 0; padding: 40px 0 10px; }
  .footer-brand { margin-bottom: 18px; }
  .footer-top > div.footer-col { display: block; }
  .footer-col h2 { display: none; }
  .footer-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 0; color: #fff; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .footer-toggle .icon { transition: transform .25s var(--ease); }
  .footer-col > a { display: none !important; }
  .footer-col.is-open > a { display: flex !important; padding: 6px 0; }
  .footer-col.is-open { padding-bottom: 12px; }
  .footer-col.is-open .footer-toggle .icon { transform: rotate(180deg); }
  .footer-bottom { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .76rem; }
}

@media (max-width: 560px) {
  /* Accueil : formations en carrousel à balayer, la carte suivante dépasse pour inviter au geste. */
  .page-home .course-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; margin: 0 -18px; padding: 4px 18px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; }
  .page-home .course-grid::-webkit-scrollbar { display: none; }
  .page-home .course-card { display: flex; flex-direction: column; scroll-snap-align: start; }
  .page-home .course-card-media { display: block; }
  .page-home .course-card .course-cover { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .page-home .course-card .course-cover::after { display: block; }
  .page-home .course-card .cover-logo { width: 62px; }
  .page-home .course-card .cover-logo:has(.logo-count-3) { width: 140px; }
  .page-home .course-card .logo-count-3 img { width: 30px; height: 30px; }
  .page-home .course-card .course-facts span:nth-child(n + 3) { display: inline-flex; }
  .page-home .section-head .btn { width: 100%; }
  .home-hero .pill { display: none; }
  .home-hero h1 { margin-top: 0; }
}

/* 15. Téléphone : mises en page compactes, pensées pour le pouce ------------ */
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .section-cta { padding-bottom: 52px; }
  h2 { font-size: 1.6rem; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: .98rem; }
  .lead { font-size: 1rem; }
  .home-hero h1 { margin: 16px 0 14px; font-size: 2.35rem; }
  .home-hero .lead { margin-bottom: 22px; }
  .page-hero h1 { font-size: 2.1rem; }
  .page-hero p { font-size: 1rem; }
  .btn-lg { min-height: 52px; padding: 13px 22px; }
  .cta-panel .actions, .cta-panel .actions .btn { width: 100%; }

  /* Services, avantages, piliers : icône à gauche, texte à droite. */
  .service-card, .feature, .pillar { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .service-card .feature-icon, .feature .feature-icon, .pillar .feature-icon { grid-row: span 3; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .service-card .feature-icon .icon, .feature .feature-icon .icon, .pillar .feature-icon .icon { width: 21px; height: 21px; }
  .service-card h3, .feature h3, .pillar h3 { margin: 2px 0 4px; font-size: 1rem; }
  .service-card p, .feature p, .pillar p { margin: 0 0 8px; font-size: .88rem; }
  .feature p, .pillar p { margin: 0; }
  .feature-grid, .service-grid, .pillar-grid { gap: 12px; }

  /* Étapes : numéro à gauche, comme une liste. */
  .steps { gap: 18px; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; text-align: left; }
  .step-number { grid-row: span 2; width: 48px; height: 48px; margin: 0; border-width: 4px; font-size: 1rem; }
  .steps h3 { margin: 4px 0 2px; font-size: 1rem; }
  .steps p { max-width: none; margin: 0; font-size: .9rem; }
  .steps-cta .btn { width: 100%; }
  .stat-strip div { padding: 18px; }
  .stat-strip strong { font-size: 1.6rem; }
}

@media (max-width: 560px) {
  /* Cartes de formation en liste compacte : vignette à gauche, informations à droite. */
  .course-grid { gap: 12px; }
  .course-card { display: grid; grid-template-columns: 108px 1fr; border-radius: 18px; }
  .course-card:hover { transform: none; }
  .course-card-media { display: flex; }
  .course-card .course-cover { width: 100%; height: 100%; min-height: 128px; aspect-ratio: auto; }
  .course-card .course-cover::after { display: none; }
  .course-card .cover-logo { width: 54px; }
  .course-card .cover-logo:has(.logo-count-2) { width: 82px; }
  .course-card .cover-logo:has(.logo-count-3) { width: 92px; }
  .course-card .logo-count-2 img, .course-card .logo-count-3 img { width: 20px; height: 20px; }
  .course-card .software-logo.logo-count-2, .course-card .software-logo.logo-count-3 { gap: 5px; padding: 8px; border-radius: 12px; }
  .course-card .course-cover.is-placeholder > span:not(.cover-logo) { width: 52px; height: 52px; font-size: 1.1rem; border-radius: 14px; }
  .course-card .cover-badge { display: none; }
  .course-card-body { gap: 4px; padding: 14px 14px 12px; }
  .course-card h3 { font-size: 1rem; }
  .course-card p { font-size: .82rem; -webkit-line-clamp: 2; }
  .course-category { font-size: .66rem; }
  .course-facts { gap: 4px 10px; font-size: .74rem; }
  .course-facts span:nth-child(n + 3) { display: none; }
  .course-card-foot { padding-top: 10px; }
  .price { font-size: 1.05rem; }
  .course-link { font-size: .82rem; }

  .chip-group { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .chip-group::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .filter-bar { flex-wrap: nowrap; margin: 0 -16px 28px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-button { flex: none; }
  .hero-tags { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .hero-tags::-webkit-scrollbar { display: none; }
  .hero-tags a, .hero-tags span { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .site-intro { display: none; }
}
/* Vignette d'application avec un lien (champ « Lien » de l'administration) : cliquable, même apparence. */
.app-wall-link { text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.app-wall-link:hover, .app-wall-link:focus-visible { transform: translateY(-3px); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .09); }
