/* ==========================================================================
   Institut Vitalis de Santé — feuille de style du site public (v2)
   Esprit « grande école moderne » : blanc, photos généreuses, coins arrondis,
   typographie affirmée, bleu-turquoise du logo. Mobile d'abord, RTL natif.
   ========================================================================== */

/* ---------- 1. Jetons ---------- */
:root {
  --navy: #12284a;
  --navy-2: #1d3a6e;
  --navy-3: #2a4d8a;
  --brand: #058aae;
  --brand-600: #04708e;
  --brand-700: #035a72;
  --brand-50: #e7f5f9;
  --brand-100: #cdebf3;
  --teal: #4fbfc4;
  --accent: #ffc940;
  --accent-50: #fff6db;
  --ink: #0d1a2d;
  --text: #2a3950;
  --muted: #5d6c82;
  --soft: #f2f6f9;
  --soft-2: #e9eff5;
  --line: #dfe6ee;
  --white: #fff;
  --ok: #138a52;
  --ok-50: #e6f6ee;
  --err: #c0362c;
  --err-50: #fdecea;

  --f: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 26, 45, .06), 0 2px 6px rgba(13, 26, 45, .04);
  --shadow: 0 10px 30px -12px rgba(13, 26, 45, .22);
  --shadow-lg: 0 30px 60px -25px rgba(13, 26, 45, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 76px;
}
html[dir="rtl"] { --f: "IBM Plex Sans Arabic", "Noto Kufi Arabic", Tahoma, system-ui, sans-serif; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; font-family: var(--f); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[dir="rtl"] body { line-height: 1.85; font-size: 1.03rem; }
img, svg, iframe, video { display: block; max-width: 100%; }
img { 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; font-weight: 800; color: var(--ink); line-height: 1.12; letter-spacing: -.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-weight: 700; line-height: 1.45; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: var(--pill); }
.skip:focus { top: 1rem; }
bdi { unicode-bidi: isolate; }

/* ---------- 3. Mise en page ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; }
.wrap-text { max-width: 760px; }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.bg-soft { background: var(--soft); }
.bg-brand { background: var(--brand-50); }
.bg-navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.rounded-section { border-radius: var(--r-xl); margin-inline: clamp(.5rem, 2vw, 1.5rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-6-4 { grid-template-columns: 1.4fr 1fr; }
  .split.top { align-items: start; }
}
.center { text-align: center; }
.rel { position: relative; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.muted { color: var(--muted); }

/* ---------- 4. Typographie ---------- */
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.kicker::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: .9rem; }
.bg-navy .kicker, .kicker.light { color: var(--teal); }
.h-display { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; }
.h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
html[dir="rtl"] .h-display { font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 1.4; }
html[dir="rtl"] .h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.4; }
.hl { color: var(--brand); }
.hl-u { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); padding-inline: .08em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); line-height: 1.7; max-width: 44rem; }
.bg-navy .lead, .lead.light { color: rgba(255, 255, 255, .8); }
.center .lead { margin-inline: auto; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.head > div { max-width: 46rem; }
.head .h2 { margin-top: .6rem; }
.head .lead { margin-top: .8rem; }
.head.center { justify-content: center; text-align: center; }
.head.center > div { margin-inline: auto; }
.prose { color: var(--text); font-size: 1.06rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose ul { display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-inline-start: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: .2rem; top: .7em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }
.prose ol { list-style: decimal; padding-inline-start: 1.4rem; display: grid; gap: .5rem; }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 0; padding: 1.2rem 1.4rem; background: var(--brand-50); border-inline-start: 4px solid var(--brand); border-radius: var(--r); font-weight: 600; color: var(--navy); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: start; }
.prose th { background: var(--soft); }

/* ---------- 5. Boutons, liens, étiquettes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.45rem; border-radius: var(--pill); border: 2px solid transparent; font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 22px -10px rgba(5, 138, 174, .7); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ffd56b; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-50); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #178346; }
.btn-lg { min-height: 3.5rem; padding-inline: 1.9rem; font-size: 1.05rem; }
.btn-sm { min-height: 2.4rem; padding: .45rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btns { justify-content: center; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.more { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--navy); }
.more .ar-c { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand-50); color: var(--brand); transition: background .2s, color .2s, transform .25s var(--ease); }
.more .ar-c svg { width: 1rem; height: 1rem; }
html[dir="rtl"] .more .ar-c svg { transform: scaleX(-1); }
.more:hover .ar-c, a:hover > .more .ar-c, .card-link:hover .more .ar-c { background: var(--brand); color: #fff; transform: translateX(3px); }
html[dir="rtl"] .more:hover .ar-c, html[dir="rtl"] .card-link:hover .more .ar-c { transform: translateX(-3px); }
.bg-navy .more { color: #fff; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s; }
.link-u:hover { background-size: 100% 1.5px; }
html[dir="rtl"] .link-u { background-position: 100% 100%; }

.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .75rem; border-radius: var(--pill); font-size: .8rem; font-weight: 700; background: var(--soft); color: var(--navy); line-height: 1.4; }
.tag svg { width: .95rem; height: .95rem; }
.tag-brand { background: var(--brand-50); color: var(--brand-700); }
.tag-accent { background: var(--accent); color: var(--ink); }
.tag-white { background: rgba(255, 255, 255, .95); color: var(--navy); }
.tag-glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------- 6. Bandeau utilitaire + en-tête ---------- */
.util { background: var(--navy); color: rgba(255, 255, 255, .82); font-size: .85rem; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.6rem; }
.util-l { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.util-l .pulse { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 201, 64, .6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 201, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 201, 64, 0); } }
.util-l a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.util-l a:hover { color: #fff; }
.util-r { display: none; align-items: center; gap: 1.4rem; }
.util-r a { display: inline-flex; align-items: center; gap: .4rem; }
.util-r a:hover { color: #fff; }
.util-r svg { width: 1rem; height: 1rem; }
.util .lang { font-weight: 700; color: #fff; padding: .15rem .7rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--pill); }
.util .lang:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .util-r { display: flex; } }

.hd { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hd.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13, 26, 45, .5); }
.hd > .wrap { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }
.hd .logo img { height: 50px; width: auto; }
.nav { display: none; align-items: center; gap: .15rem; margin-inline-start: auto; }
.nav > a, .nav .dd > button { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .85rem; border-radius: var(--pill); font-weight: 700; font-size: .97rem; color: var(--navy); background: none; border: 0; transition: background .2s, color .2s; }
.nav > a:hover, .nav .dd > button:hover, .nav .dd.open > button, .nav > a[aria-current="page"] { background: var(--soft); color: var(--brand-600); }
.nav .dd > button svg { width: 1rem; height: 1rem; transition: transform .2s; }
.nav .dd.open > button svg { transform: rotate(180deg); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + .7rem); inset-inline-start: 50%; transform: translate(-50%, 8px); width: max-content; max-width: min(92vw, 980px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.25rem; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
html[dir="rtl"] .dd-panel { transform: translate(50%, 8px); }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
html[dir="rtl"] .dd.open .dd-panel { transform: translate(50%, 0); }
.mega { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; width: min(92vw, 900px); }
.mega-list { display: grid; gap: .2rem; }
.mega-list a { display: flex; gap: .9rem; align-items: center; padding: .65rem .75rem; border-radius: var(--r); transition: background .15s; }
.mega-list a:hover { background: var(--soft); }
.mega-list img { width: 3.4rem; height: 3.4rem; border-radius: 12px; object-fit: cover; }
.mega-list strong { display: block; color: var(--ink); font-size: .98rem; }
.mega-list small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.mega-side { background: var(--brand-50); border-radius: var(--r); padding: 1.25rem; display: flex; flex-direction: column; gap: .8rem; }
.mega-side h3 { font-size: 1.1rem; }
.mega-side p { font-size: .9rem; color: var(--muted); }
.mega-side .villes { display: grid; gap: .5rem; margin-top: auto; }
.mega-side .villes a { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: .7rem .9rem; border-radius: 12px; font-weight: 700; color: var(--navy); }
.mega-side .villes a small { color: var(--brand); font-weight: 700; font-size: .78rem; }
.mega-side .villes a:hover { box-shadow: var(--shadow-sm); }
.dd-simple { display: grid; gap: .15rem; min-width: 16rem; }
.dd-simple a { display: block; padding: .65rem .85rem; border-radius: 12px; font-weight: 600; color: var(--navy); }
.dd-simple a small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.dd-simple a:hover { background: var(--soft); color: var(--brand-600); }

.hd-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--soft); color: var(--navy); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand-600); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.hd-actions .btn { min-height: 2.9rem; }
.hd-actions .btn-student { display: none; }
.hd-actions .btn-cta { display: none; }
@media (min-width: 640px) { .hd-actions .btn-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav { display: flex; }
  .hd-actions { margin-inline-start: .75rem; }
  .hd-actions .btn-student { display: inline-flex; }
  .burger { display: none !important; }
}

/* Recherche plein écran */
.search { position: fixed; inset: 0; z-index: 120; display: grid; align-items: start; padding-top: min(14vh, 8rem); background: rgba(13, 26, 45, .55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.search.open { opacity: 1; visibility: visible; }
.search-box { width: min(92vw, 760px); margin-inline: auto; background: #fff; border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow-lg); transform: translateY(-10px); transition: transform .25s var(--ease); }
.search.open .search-box { transform: none; }
.search-box form { display: flex; gap: .6rem; }
.search-box input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: var(--pill); padding: .9rem 1.3rem; font-size: 1.1rem; }
.search-box input:focus { outline: none; border-color: var(--brand); }
.search-sugg { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; color: var(--muted); }
.search-sugg a { padding: .35rem .85rem; border-radius: var(--pill); background: var(--soft); color: var(--navy); font-weight: 600; }
.search-sugg a:hover { background: var(--brand-50); color: var(--brand-600); }

/* Tiroir mobile */
.burger { display: inline-grid; }
.drawer { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(13, 26, 45, .5); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(92vw, 420px); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; }
html[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-top img { height: 40px; width: auto; }
.drawer nav { padding: .75rem 1.25rem; display: grid; }
.drawer nav > a, .drawer summary { display: flex; align-items: center; justify-content: space-between; padding: .95rem .2rem; font-weight: 700; font-size: 1.08rem; color: var(--navy); border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer .sub { display: grid; padding: .4rem 0 .8rem; }
.drawer .sub a { padding: .55rem .8rem; border-radius: 10px; color: var(--text); font-weight: 600; }
.drawer .sub a:hover { background: var(--soft); }
.drawer-foot { margin-top: auto; padding: 1.25rem; display: grid; gap: .6rem; background: var(--soft); }

/* ---------- 7. Héro d'accueil ---------- */
.hero { position: relative; padding: clamp(.5rem, 1.5vw, 1rem) clamp(.5rem, 1.5vw, 1rem) 0; }
.hero-in { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: clamp(560px, 82vh, 760px); display: flex; align-items: flex-end; isolation: isolate; background: var(--navy); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: center 30%; }
.hero-in::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(13, 26, 45, .15) 0%, rgba(13, 26, 45, .35) 40%, rgba(13, 26, 45, .9) 100%); }
html[dir="ltr"] .hero-in::after { background: linear-gradient(180deg, rgba(13, 26, 45, .1) 0%, rgba(13, 26, 45, .35) 40%, rgba(13, 26, 45, .9) 100%), linear-gradient(90deg, rgba(13, 26, 45, .55), transparent 70%); }
html[dir="rtl"] .hero-in::after { background: linear-gradient(180deg, rgba(13, 26, 45, .1) 0%, rgba(13, 26, 45, .35) 40%, rgba(13, 26, 45, .9) 100%), linear-gradient(-90deg, rgba(13, 26, 45, .55), transparent 70%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding: clamp(1.5rem, 5vw, 4rem); color: #fff; }
.hero-content .h-display { color: #fff; max-width: 15ch; }
html[dir="rtl"] .hero-content .h-display { max-width: 18ch; }
.hero-content .lead { color: rgba(255, 255, 255, .88); margin-top: 1.1rem; }
.hero-search { display: flex; align-items: center; gap: .4rem; margin-top: 1.75rem; max-width: 640px; background: #fff; border-radius: var(--pill); padding: .4rem; box-shadow: var(--shadow-lg); }
.hero-search svg.s { width: 1.35rem; height: 1.35rem; color: var(--muted); margin-inline-start: .9rem; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: .8rem .5rem; font-size: 1.05rem; color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: #8391a5; }
.hero-search .btn { min-height: 3.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-badge { position: absolute; z-index: 1; top: clamp(1rem, 3vw, 2rem); inset-inline-end: clamp(1rem, 3vw, 2rem); display: none; align-items: center; gap: .8rem; background: rgba(255, 255, 255, .95); color: var(--navy); border-radius: var(--pill); padding: .5rem 1.1rem .5rem .5rem; box-shadow: var(--shadow); font-weight: 700; font-size: .92rem; }
html[dir="rtl"] .hero-badge { padding: .5rem .5rem .5rem 1.1rem; }
.hero-badge b { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 1.15rem; }
@media (min-width: 720px) { .hero-badge { display: flex; } }
@media (max-width: 560px) {
  .hero-search .btn span { display: none; }
  .hero-search .btn { width: 3.1rem; padding: 0; }
}

/* « Je suis… » */
.audience { position: relative; z-index: 2; margin-top: -2.25rem; }
.audience-in { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.audience-in > span { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-inline-end: .4rem; }
.audience-in a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: var(--pill); background: var(--soft); color: var(--navy); font-weight: 700; font-size: .93rem; transition: background .2s, color .2s; }
.audience-in a svg { width: 1.1rem; height: 1.1rem; color: var(--brand); }
.audience-in a:hover { background: var(--brand); color: #fff; }
.audience-in a:hover svg { color: #fff; }

/* ---------- 8. Héro des pages intérieures ---------- */
.phero { background: var(--soft); padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.phero::before { content: ""; position: absolute; width: 38rem; height: 38rem; border-radius: 50%; background: radial-gradient(circle, rgba(79, 191, 196, .22), transparent 65%); inset-inline-end: -12rem; top: -14rem; pointer-events: none; }
.phero .wrap { position: relative; }
.phero-grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 960px) { .phero-grid.with-img { grid-template-columns: 1.15fr .85fr; } }
.phero .h1 { margin-top: .8rem; }
.phero .lead { margin-top: 1rem; }
.phero .tags { margin-top: 1.25rem; }
.phero .btns { margin-top: 1.6rem; }
.phero-img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--soft-2); }
.phero-img img { width: 100%; height: 100%; object-fit: cover; }
.phero-dark { background: var(--navy); color: rgba(255, 255, 255, .85); }
.phero-dark .h1 { color: #fff; }
.phero-dark .lead { color: rgba(255, 255, 255, .8); }
.phero-dark .crumbs, .phero-dark .crumbs a { color: rgba(255, 255, 255, .7); }
.phero-dark::before { background: radial-gradient(circle, rgba(5, 138, 174, .45), transparent 65%); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .88rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.crumbs li + li::before { content: "›"; opacity: .6; }
html[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a:hover { color: var(--brand-600); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.phero-dark .crumbs [aria-current] { color: #fff; }

/* Chiffres clés sous un héro */
.keyfacts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: calc(-1 * clamp(1.5rem, 4vw, 2.5rem)); position: relative; z-index: 2; }
.keyfacts > div { background: #fff; border-radius: var(--r-lg); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; gap: .9rem; align-items: center; }
.keyfacts .ic { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.keyfacts .ic svg { width: 1.35rem; height: 1.35rem; }
.keyfacts small { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
html[dir="rtl"] .keyfacts small { letter-spacing: 0; text-transform: none; }
.keyfacts b { color: var(--ink); font-size: 1.02rem; }

/* ---------- 9. Cartes ---------- */
.grid-3 { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-2 { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card-link { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.card-link:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card-link .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft-2); }
.card-link .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-link:hover .media img { transform: scale(1.05); }
.card-link .media .tags { position: absolute; top: .9rem; inset-inline-start: .9rem; }
.card-link .body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-link h3 { font-size: 1.2rem; line-height: 1.3; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link p { color: var(--muted); font-size: .96rem; }
.card-link .meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.card-link .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card-link .meta svg { width: 1rem; height: 1rem; color: var(--brand); }
.card-link .more { margin-top: auto; padding-top: .6rem; }
.card-link.hide { display: none; }

.card-cta { background: var(--navy); color: rgba(255, 255, 255, .85); border-radius: var(--r-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .8rem; position: relative; overflow: hidden; }
.card-cta::before { content: ""; position: absolute; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle, rgba(79, 191, 196, .35), transparent 65%); inset-inline-end: -6rem; bottom: -7rem; }
.card-cta > * { position: relative; }
.card-cta h3 { color: #fff; font-size: 1.4rem; }
.card-cta .btns { margin-top: auto; padding-top: .5rem; }

/* Filtres en pastilles */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a, .chips button { padding: .55rem 1.1rem; border-radius: var(--pill); border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem; color: var(--navy); transition: all .2s; }
.chips a:hover, .chips button:hover { border-color: var(--brand); color: var(--brand-600); }
.chips [aria-pressed="true"], .chips [aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Événements */
.event { display: flex; gap: 1rem; align-items: stretch; padding: 1rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); position: relative; transition: box-shadow .2s, transform .2s var(--ease); }
.event:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event .date { flex-shrink: 0; width: 4.6rem; border-radius: var(--r); background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; padding: .6rem .3rem; }
.event .date b { font-size: 1.85rem; font-weight: 800; }
.event .date small { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.event h3 { font-size: 1.05rem; line-height: 1.35; }
.event h3 a::after { content: ""; position: absolute; inset: 0; }
.event .meta { color: var(--muted); font-size: .86rem; margin-top: .35rem; display: grid; gap: .15rem; }

/* Campus */
.campus-card { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; }
.campus-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.campus-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 26, 45, .05) 15%, rgba(13, 26, 45, .6) 50%, rgba(13, 26, 45, .95)); }
.campus-card:hover > img { transform: scale(1.04); }
.campus-card .in { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: .7rem; }
.campus-card h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.campus-card p { color: rgba(255, 255, 255, .85); }
.campus-card .more { color: #fff; }
.campus-card .more .ar-c { background: #fff; color: var(--navy); }

/* Promo (inscriptions ouvertes) */
.promo { display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--accent-50); border: 1px solid #f6e3a8; }
@media (min-width: 860px) { .promo { grid-template-columns: .9fr 1.1fr; } }
.promo .media { min-height: 240px; position: relative; }
.promo .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo .body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.promo .h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* Chiffres */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.figure { padding: 1.2rem 1.3rem; border-radius: var(--r-lg); background: var(--soft); }
.figure b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.03em; }
.figure span { display: block; margin-top: .45rem; color: var(--navy); font-weight: 600; font-size: .93rem; line-height: 1.4; }

/* Média arrondi (photo / vidéo) */
.media-round { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--soft-2); box-shadow: var(--shadow); }
.media-round img, .media-round iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media-round .caption { position: absolute; inset-inline: 1rem; bottom: 1rem; background: rgba(255, 255, 255, .95); border-radius: var(--r); padding: .8rem 1rem; font-weight: 700; color: var(--navy); font-size: .95rem; display: flex; gap: .7rem; align-items: center; }
.media-round .caption svg { width: 1.4rem; height: 1.4rem; color: var(--brand); }
.yt { cursor: pointer; border: 0; padding: 0; width: 100%; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 5rem; height: 5rem; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow-lg); transition: transform .2s; }
.yt:hover .play { transform: scale(1.08); }
.yt .play svg { width: 2rem; height: 2rem; margin-inline-start: .25rem; }

/* Atouts */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { padding: 1.5rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.feature .ic { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--brand-50); color: var(--brand); margin-bottom: 1rem; }
.feature .ic svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; margin-top: .45rem; }
.bg-navy .feature { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.bg-navy .feature p { color: rgba(255, 255, 255, .72); }
.bg-navy .feature .ic { background: rgba(79, 191, 196, .18); color: var(--teal); }

/* Étapes */
.steps { display: grid; gap: .9rem; counter-reset: s; margin-top: 1.5rem; }
.steps li { counter-increment: s; display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--soft); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; flex-shrink: 0; }
.steps b { display: block; color: var(--ink); }
.steps p { color: var(--muted); font-size: .95rem; }

/* Bandeau contact */
.contact-band { border-radius: var(--r-xl); background: var(--brand); color: #fff; padding: clamp(1.75rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.contact-band::before { content: ""; position: absolute; width: 30rem; height: 30rem; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); inset-inline-end: -10rem; top: -12rem; }
.contact-band > * { position: relative; }
.contact-band h2 { color: #fff; }
.contact-band p { color: rgba(255, 255, 255, .88); }
@media (min-width: 900px) { .contact-band { grid-template-columns: 1.2fr 1fr; } .contact-band .btns { justify-content: flex-end; } }

/* ---------- 10. Formulaires ---------- */
.field-l { display: grid; gap: .4rem; }
.field-l > span:first-child { font-size: .9rem; font-weight: 700; color: var(--ink); }
.req { color: var(--err); font-weight: 700; }
.field, select.field, textarea.field { width: 100%; min-height: 3.1rem; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6c82' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 1.1rem; background-position: right .9rem center; padding-inline-end: 2.6rem; }
html[dir="rtl"] select.field { background-position: left .9rem center; }
textarea.field { min-height: 6rem; resize: vertical; }
.field:hover { border-color: #c5d1de; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(5, 138, 174, .14); }
.field.invalide, .field[aria-invalid="true"] { border-color: var(--err); }
.errorlist { color: var(--err); font-size: .88rem; font-weight: 600; }
.form-alert { padding: .85rem 1rem; border-radius: var(--r); background: var(--err-50); color: var(--err); font-weight: 600; margin-bottom: 1rem; }
.form-ok { padding: .85rem 1rem; border-radius: var(--r); background: var(--ok-50); color: var(--ok); font-weight: 600; }
.help { color: var(--muted); font-size: .86rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--text); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--brand); flex-shrink: 0; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fgrid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fgrid-2 { grid-template-columns: 1fr 1fr; } }
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card .h3 { margin-top: .5rem; }

.file-drop { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; padding: 1.6rem 1rem; border: 2px dashed var(--line); border-radius: var(--r); cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.drag { border-color: var(--brand); background: var(--brand-50); }
.file-drop svg { width: 2rem; height: 2rem; color: var(--brand); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .fname { font-weight: 700; color: var(--navy); }

/* Assistant de candidature */
.steps-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.75rem; counter-reset: sb; }
.steps-bar li { counter-increment: sb; display: grid; gap: .45rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.steps-bar li::before { content: ""; height: 6px; border-radius: 6px; background: var(--soft-2); transition: background .3s; }
.steps-bar li.on, .steps-bar li.done { color: var(--brand-600); }
.steps-bar li.on::before, .steps-bar li.done::before { background: var(--brand); }
.steps-bar span::before { content: counter(sb) ". "; }
.wiz .step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wiz .step + .step { margin-top: 2rem; }
.wiz .step legend { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 1.25rem; padding: 0; }
.wiz .step legend b { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 1rem; }
.wiz-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 2rem; }
.js .wiz.actif .step { display: none; }
.js .wiz.actif .step.on { display: block; animation: fade .35s var(--ease); }
.js .wiz.actif .step + .step { margin-top: 0; }
.js .wiz.actif .wiz-submit { display: none; }
.js .wiz.actif.fin .wiz-submit { display: inline-flex; }
.js .wiz.actif.fin .wiz-next { display: none; }
.js .wiz:not(.actif) .wiz-nav { display: none; }
.js .wiz:not(.actif) .steps-bar { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tiles { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.tiles-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tile { position: relative; display: flex; gap: .8rem; align-items: center; padding: .95rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.tile:hover { border-color: #b9c7d6; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile .tk { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid #b9c7d6; flex-shrink: 0; display: grid; place-items: center; transition: all .2s; }
.tile .tk::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s; }
.tile input:checked ~ .tk { border-color: var(--brand); background: var(--brand); }
.tile input:checked ~ .tk::after { transform: scale(1); }
.tile:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(5, 138, 174, .12); }
.tile input:focus-visible ~ .tk { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile strong { display: block; color: var(--ink); line-height: 1.3; }
.tile small { display: block; color: var(--muted); font-size: .84rem; }

/* ---------- 11. Pages filière ---------- */
.layout-aside { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 1024px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .aside-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.block + .block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.block .h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: .6rem; margin-bottom: 1.2rem; }
.modules { display: grid; gap: .6rem; counter-reset: m; }
@media (min-width: 700px) { .modules { grid-template-columns: 1fr 1fr; } }
.modules li { counter-increment: m; display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: var(--r); background: var(--soft); font-weight: 600; color: var(--navy); }
.modules li::before { content: counter(m, decimal-leading-zero); font-weight: 800; color: var(--brand); font-size: .95rem; min-width: 1.6rem; }
.checks { display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: ""; flex-shrink: 0; width: 1.4rem; height: 1.4rem; margin-top: .15rem; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23058aae' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / .85rem no-repeat; }
.villes-pick { display: grid; gap: .8rem; }
@media (min-width: 640px) { .villes-pick { grid-template-columns: 1fr 1fr; } }
.villes-pick a { display: grid; gap: .3rem; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.villes-pick a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.villes-pick small { color: var(--brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.villes-pick strong { color: var(--ink); }

.aside-box { border-radius: var(--r-xl); background: var(--navy); color: rgba(255, 255, 255, .85); padding: 1.75rem; position: relative; overflow: hidden; }
.aside-box::before { content: ""; position: absolute; width: 16rem; height: 16rem; border-radius: 50%; background: radial-gradient(circle, rgba(79, 191, 196, .35), transparent 65%); inset-inline-end: -6rem; top: -6rem; }
.aside-box > * { position: relative; }
.aside-box h2 { color: #fff; font-size: 1.35rem; }
.aside-box p { margin-top: .6rem; font-size: .95rem; }
.aside-box .btns { margin-top: 1.25rem; display: grid; gap: .6rem; }
.aside-list { margin-top: 1.25rem; border-radius: var(--r-lg); border: 1px solid var(--line); padding: .5rem; }
.aside-list > p { padding: .7rem .8rem .3rem; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .aside-list > p { letter-spacing: 0; }
.aside-list a { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border-radius: 12px; font-weight: 600; color: var(--navy); }
.aside-list a:hover { background: var(--soft); color: var(--brand-600); }
.aside-list img { width: 2.8rem; height: 2.8rem; border-radius: 10px; object-fit: cover; }
.info-list { display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list svg { width: 1.3rem; height: 1.3rem; color: var(--brand); margin-top: .2rem; }
.info-list b { display: block; color: var(--ink); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-xl); background: var(--soft-2); }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { border-radius: var(--r); background: var(--soft); transition: background .2s; }
.faq details[open] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fff; flex-shrink: 0; }
.faq details[open] summary i { background: var(--brand-50); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 0; margin: auto; width: .8rem; height: 2px; background: var(--brand); transition: transform .2s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 1.2rem 1.15rem; color: var(--muted); }

/* ---------- 12. Magazine ---------- */
.une { display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .85); position: relative; }
@media (min-width: 900px) { .une { grid-template-columns: 1.15fr 1fr; } }
.une .media { position: relative; min-height: 280px; }
.une .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.une .body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.une h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.une h2 a::after { content: ""; position: absolute; inset: 0; }
.une .meta { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.article-head { max-width: 860px; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-size: .92rem; margin-top: 1.25rem; align-items: center; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta svg { width: 1rem; height: 1rem; color: var(--brand); }
.article-cover { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8; margin-top: calc(-1 * clamp(1.5rem, 4vw, 2.75rem)); position: relative; z-index: 2; box-shadow: var(--shadow); background: var(--soft-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.article-layout .prose { max-width: 740px; }
.chapo { font-size: 1.2rem; font-weight: 600; color: var(--navy); line-height: 1.65; }
.toc { border-radius: var(--r-lg); background: var(--soft); padding: 1.25rem; }
.toc p { font-weight: 800; color: var(--ink); margin-bottom: .6rem; }
.toc ol { display: grid; gap: .4rem; list-style: decimal; padding-inline-start: 1.2rem; font-size: .93rem; }
.toc a:hover { color: var(--brand-600); text-decoration: underline; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share span { font-weight: 700; color: var(--ink); margin-inline-end: .3rem; }
.event-box { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--accent-50); border: 1px solid #f6e3a8; margin-bottom: 1.5rem; }
.event-box .date { flex-shrink: 0; width: 4.2rem; padding: .5rem 0; border-radius: var(--r); background: var(--navy); color: #fff; text-align: center; line-height: 1.1; }
.event-box .date b { display: block; font-size: 1.6rem; }
.event-box .date small { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.pager { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 2.5rem; color: var(--muted); font-weight: 600; }
.empty { padding: 2.5rem; border-radius: var(--r-lg); background: var(--soft); text-align: center; color: var(--muted); }

/* Emplacements publicitaires */
.ad-slot { margin-block: 2rem; padding-top: .3rem; text-align: center; min-height: 120px; }
.ad-slot::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa7b8; margin-bottom: .35rem; }
.ad-wrap { padding-block: 1rem; }

.grid-3 + .grid-3, .ad-slot + .grid-3 { margin-top: clamp(1rem, 2.5vw, 1.75rem); }

/* ---------- 13. Pied de page ---------- */
.site-foot { background: var(--navy); color: rgba(255, 255, 255, .72); margin-top: clamp(3rem, 7vw, 5rem); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.foot-top { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem; }
@media (min-width: 700px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand .logo { display: inline-block; background: #fff; padding: .7rem 1rem; border-radius: var(--r); }
.foot-brand .logo img { height: 52px; width: auto; }
.foot-brand p { margin-top: 1.2rem; max-width: 26rem; font-size: .95rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--brand); }
.socials svg { width: 1.2rem; height: 1.2rem; }
.site-foot h2 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-foot ul { display: grid; gap: .55rem; font-size: .94rem; }
.site-foot a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem 1.5rem; font-size: .86rem; }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; }
.foot-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot-legal button { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal button:hover { color: #fff; }
@media (max-width: 1179px) { body:not(.no-mbar) .site-foot { padding-bottom: 4.5rem; } }

/* Barre d'action mobile */
.mbar { position: fixed; inset-inline: .6rem; bottom: .6rem; z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; padding: .35rem; background: rgba(255, 255, 255, .97); border-radius: var(--pill); box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: translateY(150%); transition: transform .35s var(--ease); }
.mbar.show { transform: none; }
.mbar a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem .4rem; border-radius: var(--pill); font-weight: 700; font-size: .88rem; color: var(--navy); }
.mbar a svg { width: 1.15rem; height: 1.15rem; color: var(--brand); }
.mbar a.cta { background: var(--brand); color: #fff; }
.mbar a.cta svg { color: #fff; }
@media (min-width: 1180px) { .mbar { display: none; } }
.no-mbar .mbar { display: none; }

/* Bannière cookies */
.cookie { position: fixed; z-index: 150; inset-inline: clamp(.6rem, 2vw, 1.5rem); bottom: clamp(.6rem, 2vw, 1.5rem); max-width: 560px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.35rem; display: none; }
.cookie.open { display: block; animation: fade .3s var(--ease); }
.cookie h2 { font-size: 1.1rem; }
.cookie p { font-size: .9rem; color: var(--muted); margin-top: .45rem; }
.cookie p a { color: var(--brand-600); text-decoration: underline; }
.cookie .opts { display: none; gap: .6rem; margin-top: 1rem; }
.cookie.details .opts { display: grid; }
.cookie .opt { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .85rem; border-radius: var(--r); background: var(--soft); font-size: .88rem; }
.cookie .opt input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--brand); flex-shrink: 0; }
.cookie .opt b { display: block; color: var(--ink); font-size: .93rem; }
.cookie .btns { margin-top: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cookie .btns .btn { min-height: 2.75rem; font-size: .92rem; padding-inline: .8rem; }
.cookie .btns .link { grid-column: 1 / -1; background: none; border: 0; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; padding: .3rem; }
.cookie .save { display: none; }
.cookie.details .save { display: inline-flex; grid-column: 1 / -1; }
@media (max-width: 1179px) { .cookie { bottom: 5rem; } }

/* ---------- 14. Recherche, 404, pages ---------- */
.results { display: grid; gap: .8rem; }
.result { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.result:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.result img { width: 4.5rem; height: 4.5rem; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.result small { color: var(--brand); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.result strong { display: block; color: var(--ink); font-size: 1.05rem; }
.result p { color: var(--muted); font-size: .92rem; }
.legal .prose h2 { font-size: 1.35rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.sitemap-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sitemap-cols h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.sitemap-cols ul { display: grid; gap: .45rem; }
.sitemap-cols a { color: var(--brand-700); }
.sitemap-cols a:hover { text-decoration: underline; }

.ok-anim { width: 5.5rem; height: 5.5rem; margin: 0 auto 1.5rem; }
.ok-anim circle { fill: none; stroke: var(--teal); stroke-width: 3; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw 1s var(--ease) forwards; }
.ok-anim path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref-box { display: inline-block; margin-top: .6rem; padding: .7rem 1.4rem; border-radius: var(--r); background: rgba(255, 255, 255, .1); color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: .06em; }
.copy { margin-top: .8rem; background: none; border: 0; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. Espace e-learning ---------- */
.el-top { background: var(--navy); color: rgba(255, 255, 255, .85); padding-block: 2rem 4.5rem; }
.el-top h1 { color: #fff; }
.el-top .crumbs, .el-top .crumbs a { color: rgba(255, 255, 255, .7); }
.el-top .crumbs [aria-current] { color: #fff; }
.el-user { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.el-user .avatar { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 800; font-size: 1.25rem; flex-shrink: 0; }
.el-user .who { display: flex; gap: 1rem; align-items: center; }
.el-user .who small { display: block; color: rgba(255, 255, 255, .7); }
.el-body { margin-top: -3rem; }
.el-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 2rem; }
.el-stat { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.15rem 1.3rem; }
.el-stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.el-stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.course { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); }
.course:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course .cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-2), var(--brand)); position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.course .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course .cover .code { position: relative; font-size: 2rem; font-weight: 800; letter-spacing: .04em; opacity: .9; }
.course .cover .tags { position: absolute; top: .8rem; inset-inline-start: .8rem; }
.course .body { padding: 1.2rem 1.3rem 1.35rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.course h2 { font-size: 1.15rem; line-height: 1.35; }
.course .desc { color: var(--muted); font-size: .92rem; }
.course .btns { margin-top: auto; }
.progress { height: 8px; border-radius: 8px; background: var(--soft-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 8px; transition: width .4s var(--ease); }
.progress-l { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .7rem; border-radius: var(--pill); font-size: .78rem; font-weight: 800; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-ko { background: var(--err-50); color: var(--err); }
.badge-wip { background: var(--accent-50); color: #8a6200; }

.login-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding-block: clamp(2rem, 6vw, 4rem); background: var(--soft); }
.login-card { width: min(94vw, 980px); display: grid; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
@media (min-width: 860px) { .login-card { grid-template-columns: 1fr 1fr; } }
.login-side { background: var(--navy); color: rgba(255, 255, 255, .85); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; }
.login-side::before { content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(circle, rgba(79, 191, 196, .35), transparent 65%); inset-inline-end: -8rem; bottom: -8rem; }
.login-side > * { position: relative; }
.login-side h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.login-side .checks li::before { background-color: rgba(255, 255, 255, .12); }
.login-form { padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: 1rem; align-content: center; }
.pw { position: relative; }
.pw button { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: .4rem; font-size: .82rem; font-weight: 700; }

/* Lecteur de diapositives */
.viewer { background: var(--ink); color: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.viewer:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.viewer:fullscreen .stage { flex: 1; aspect-ratio: auto; }
.viewer-bar { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.viewer-bar .t { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.viewer-bar .count { font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); font-size: .9rem; white-space: nowrap; }
.viewer .icon-btn { background: rgba(255, 255, 255, .08); color: #fff; width: 2.5rem; height: 2.5rem; }
.viewer .icon-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #0a1322; }
.slide { position: absolute; inset: 0; display: none; }
.slide.on { display: flex; animation: fade .3s var(--ease); }
.no-js .slide { position: relative; display: flex; aspect-ratio: 16 / 9; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.slide.text { flex-direction: column; justify-content: center; padding: clamp(1.25rem, 5vw, 4rem); background: linear-gradient(135deg, var(--navy), var(--navy-2)); overflow-y: auto; }
.slide.text h2 { color: #fff; font-size: clamp(1.3rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.slide.text p, .slide.text li { font-size: clamp(.95rem, 1.7vw, 1.3rem); color: rgba(255, 255, 255, .88); line-height: 1.6; }
.slide.text ul { display: grid; gap: .5rem; margin-top: .5rem; }
.slide.text li { position: relative; padding-inline-start: 1.5rem; }
.slide.text li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal); }
.slide.mixed { flex-direction: column; background: #fff; }
.slide.mixed img { flex: 1; min-height: 0; }
.slide.mixed .cap { background: var(--navy); padding: .9rem 1.2rem; font-size: .95rem; color: rgba(255, 255, 255, .9); max-height: 35%; overflow-y: auto; }
.slide.mixed .cap h2 { color: #fff; font-size: 1.05rem; margin-bottom: .3rem; }
.nav-zone { position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; background: none; border: 0; }
.nav-zone.prev { inset-inline-start: 0; }
.nav-zone.next { inset-inline-end: 0; }
.viewer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .9rem 1rem; }
.viewer-foot .progress { flex: 1; min-width: 120px; background: rgba(255, 255, 255, .12); }
.viewer-foot .progress i { background: var(--teal); }
.viewer-foot .btn-light { color: var(--navy); }
.thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 1rem 1rem; scrollbar-width: thin; }
.thumbs button { flex-shrink: 0; width: 6.5rem; aspect-ratio: 16 / 9; border-radius: 8px; border: 2px solid transparent; background: #1d2a40; color: rgba(255, 255, 255, .8); padding: 0; overflow: hidden; position: relative; font-size: .75rem; font-weight: 700; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button span { position: absolute; bottom: 2px; inset-inline-start: 4px; background: rgba(0, 0, 0, .6); border-radius: 4px; padding: 0 .3rem; }
.thumbs button.on { border-color: var(--teal); }
.thumbs button em { position: absolute; inset: .3rem .4rem 1.2rem; font-style: normal; font-size: .62rem; line-height: 1.25; text-align: start; overflow: hidden; color: rgba(255, 255, 255, .75); }
.thumbs button.vu::after { content: "✓"; position: absolute; top: 2px; inset-inline-end: 4px; background: var(--ok); color: #fff; border-radius: 50%; width: 1rem; height: 1rem; font-size: .65rem; display: grid; place-items: center; }
.finish { display: none; margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-radius: var(--r-lg); background: var(--ok-50); border: 1px solid #bfe6d1; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.finish.show { display: flex; }
.finish b { color: var(--ok); }

/* QCM */
.quiz-head { position: sticky; top: calc(var(--header-h) + .5rem); z-index: 20; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: .9rem 1.2rem; margin-bottom: 1.5rem; }
.timer { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); padding: .4rem .9rem; border-radius: var(--pill); background: var(--soft); }
.timer.low { background: var(--err-50); color: var(--err); animation: pulse-r 1s infinite; }
@keyframes pulse-r { 50% { opacity: .65; } }
.timer svg { width: 1.1rem; height: 1.1rem; }
.qcard { border-radius: var(--r-lg); border: 1.5px solid var(--line); padding: clamp(1.1rem, 3vw, 1.6rem); background: #fff; }
.qcard + .qcard { margin-top: 1rem; }
fieldset.qcard { margin: 0; min-width: 0; }
fieldset.qcard legend { float: inline-start; width: 100%; }
fieldset.qcard legend + * { clear: both; }
.qcard.answered { border-color: var(--brand-100); }
.qcard legend { display: flex; gap: .8rem; font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.5; padding: 0; margin-bottom: 1rem; }
.qcard legend .n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: .9rem; flex-shrink: 0; }
.qcard .hint { font-size: .82rem; color: var(--muted); font-weight: 600; margin: -.5rem 0 .8rem; padding-inline-start: 2.8rem; }
.opts { display: grid; gap: .5rem; }
.opt { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #b9c7d6; }
.opt input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.opts .opt.good { border-color: var(--ok); background: var(--ok-50); }
.opts .opt.bad { border-color: var(--err); background: var(--err-50); }
.opt .mark { margin-inline-start: auto; font-weight: 800; font-size: .85rem; }
.opt.good .mark { color: var(--ok); }
.opt.bad .mark { color: var(--err); }
.explic { margin-top: .8rem; padding: .8rem 1rem; border-radius: var(--r); background: var(--soft); font-size: .93rem; color: var(--text); }
.score { display: grid; place-items: center; text-align: center; gap: .5rem; }
.ring { --p: 0; width: 11rem; height: 11rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.ring > div { width: 8.6rem; height: 8.6rem; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: #fff; }
.ring b { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.ring small { color: rgba(255, 255, 255, .7); font-weight: 600; }

/* Attestation imprimable */
.certif { max-width: 900px; margin-inline: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(2rem, 6vw, 4rem); text-align: center; position: relative; border: 10px solid var(--brand-50); }
.certif::before { content: ""; position: absolute; inset: 14px; border: 1.5px solid var(--brand-100); border-radius: 10px; pointer-events: none; }
.certif img.logo { height: 70px; width: auto; margin: 0 auto 1.5rem; }
.certif h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); }
.certif .nom { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--brand); margin-block: 1rem; }
.certif .sign { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; font-size: .9rem; color: var(--muted); text-align: start; }
@media print {
  .util, .hd, .site-foot, .mbar, .cookie, .no-print, .el-top .crumbs { display: none !important; }
  body { background: #fff; }
  .certif { box-shadow: none; border-width: 6px; margin: 0; }
  .el-top { background: #fff; padding: 0; }
}

/* ---------- 16. Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.on { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.img-secours { object-fit: contain !important; background: var(--soft); }

/* ---------- 17. Ajustements mobile ---------- */
@media (max-width: 719px) {
  .stage { aspect-ratio: auto; }
  .slide { position: relative; inset: auto; }
  .slide img { height: auto; max-height: 70vh; }
  .slide.text { min-height: 62vw; padding: 1.4rem 1.2rem; }
  .slide.mixed .cap { max-height: none; }
  .nav-zone { display: none; }
  .viewer { border-radius: var(--r-lg); }
  .quiz-head { top: calc(var(--header-h) + .25rem); padding: .7rem .9rem; }
  .quiz-head .btn { display: none; }
}
@media (max-width: 719px) {
  .hero-in { min-height: 0; }
  .hero-content { padding: 7rem 1.15rem 1.5rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .audience { margin-top: .9rem; }
  .audience-in { flex-wrap: nowrap; overflow-x: auto; padding: .8rem; box-shadow: var(--shadow-sm); scrollbar-width: none; }
  .audience-in::-webkit-scrollbar { display: none; }
  .audience-in a { flex-shrink: 0; }
  .audience-in > span { flex-shrink: 0; }
  .rounded-section { margin-inline: 0; border-radius: var(--r-lg); }
  .head .more { margin-top: -.25rem; }
  .figures { gap: .7rem; }
  .figure { padding: 1rem; }
}
.une .more { color: #fff; }
.une .more .ar-c { background: rgba(255, 255, 255, .15); color: #fff; }
.legal .wrap-text { max-width: var(--container); }
.legal .wrap-text > * { max-width: 780px; }
