/* 5edma.info — design system
   Tokens · composants · mode sombre · View Transitions · scroll-driven animations · container queries */

/* ===== Tokens ===== */
:root {
  color-scheme: light;
  --ink: #0a1a33; --ink-2: #33415c; --muted: #6b7a90; --line: #e6eaf0; --bg: #f6f7fb; --surface: #fff; --surface-2: #f6f8fc;
  --brand: #1257d6; --brand-2: #0b3fa8; --brand-soft: #eaf1ff; --accent: #ffb020;
  --ok: #0f9d6b; --ok-soft: #e3f7ef; --off: #8a94a6; --off-soft: #eef0f4;
  --warn-bg: #fff8e8; --warn-line: #ffe4a8; --warn-ink: #7a4b00;
  --jobs: #1257d6; --immigration: #0e7490; --scholarships: #7c3aed; --volunteering: #0f9d6b; --tips: #e07a00; --news: #475569;
  --header-bg: rgba(255,255,255,.82);
  --r: 16px; --r-lg: 20px;
  --sh-1: 0 1px 2px rgba(10,26,51,.05), 0 2px 8px rgba(10,26,51,.04);
  --sh-2: 0 12px 32px rgba(10,26,51,.10);
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'Inter', system-ui, sans-serif;
}
[lang="fr"] { --font: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e8eefb; --ink-2: #b9c5da; --muted: #8b9ab3; --line: #1f2c44; --bg: #0b1322; --surface: #111c30; --surface-2: #15223a;
    --brand: #5b95ff; --brand-2: #8db5ff; --brand-soft: #16264a;
    --ok: #34d399; --ok-soft: #0f2e25; --off: #8b9ab3; --off-soft: #1a2538;
    --warn-bg: #2a2110; --warn-line: #4a3a14; --warn-ink: #ffd27a;
    --header-bg: rgba(11,19,34,.8);
    --sh-1: 0 1px 2px rgba(0,0,0,.3); --sh-2: 0 12px 32px rgba(0,0,0,.45);
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; top: 8px; inset-inline-start: 8px; background: var(--surface); padding: 8px; z-index: 99; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

/* Transitions animées entre les pages (navigateurs récents, sans JavaScript) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* ===== En-tête ===== */
.header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); view-transition-name: header; }
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 800 22px/1 var(--font-num); direction: ltr; flex: none; }
.brand img { height: 36px; width: auto; }
@media (prefers-color-scheme: dark) { .header .brand img { filter: brightness(0) invert(1); } }
.brand b { color: var(--brand); font-weight: 800; }
.brand--light { color: #fff; }
.brand--light b { color: #7fb0ff; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 99px; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.header__tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.lang { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 700 14px var(--font); white-space: nowrap; }
.lang:hover { color: #fff; background: var(--brand); }
.lang span { font-weight: 500; opacity: .8; }
.burger { display: none; width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.burger span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Barre de progression de lecture (CSS pur, scroll-driven) */
.page-article .header::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--brand), #6aa2ff, var(--accent)); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .page-article .header::after { transform-origin: right; }
@supports (animation-timeline: scroll()) {
  .page-article .header::after { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ===== Accueil : hero ===== */
.hero { position: relative; color: #fff; padding: 64px 0 124px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(64,140,255,.45), transparent 60%),
  radial-gradient(700px 380px at 0% 110%, rgba(255,176,32,.18), transparent 60%),
  linear-gradient(160deg, #0a1a33 0%, #0d2b5c 55%, #0b3fa8 100%); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero__in { max-width: 880px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #d8e5ff; }
.hero h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.15; margin: 18px 0 14px; font-weight: 700; background: linear-gradient(180deg, #fff 40%, #c9dbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: #c8d6f0; font-size: clamp(16px, 2vw, 19px); margin: 0 auto 28px; max-width: 680px; }
.hsearch { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 6px; padding-inline-start: 18px; max-width: 640px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); color: #6b7a90; transition: box-shadow .2s; }
.hsearch:focus-within { box-shadow: 0 0 0 4px rgba(91,149,255,.45), 0 20px 50px rgba(0,0,0,.25); }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 10px 4px; color: #0a1a33; background: transparent; }
.hsearch button { border: 0; border-radius: 99px; background: #1257d6; color: #fff; font: 700 15px var(--font); padding: 12px 26px; cursor: pointer; transition: background .15s; }
.hsearch button:hover { background: #0b3fa8; }
.popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; color: #b7c7e4; align-items: center; }
.popular a { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 4px 12px; border-radius: 99px; transition: background .15s; }
.popular a:hover { background: rgba(255,255,255,.22); color: #fff; }
.stats { list-style: none; display: flex; justify-content: center; gap: 12px; padding: 0; margin: 34px 0 0; flex-wrap: wrap; }
.stats li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 22px; min-width: 150px; backdrop-filter: blur(6px); }
.stats b { display: block; font: 800 26px/1.2 var(--font-num); color: #fff; }
.stats span { font-size: 13px; color: #b7c7e4; }

/* ===== Sections ===== */
.lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: -78px; position: relative; z-index: 2; }
.lead__side { display: grid; gap: 14px; }
.sec { margin-block: 56px; }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.sec__head h2 { margin: 0; font-size: clamp(21px, 2.4vw, 26px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec__head h2 small { font: 600 13px var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; }
.more { font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .15s var(--ease); }
[dir="rtl"] .more::after { content: "←"; }
.more:hover::after { transform: translateX(3px); }
[dir="rtl"] .more:hover::after { transform: translateX(-3px); }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--brand)); }
.dot--jobs { --c: var(--jobs); } .dot--immigration { --c: var(--immigration); } .dot--scholarships { --c: var(--scholarships); } .dot--volunteering { --c: var(--volunteering); } .dot--tips { --c: var(--tips); } .dot--news { --c: var(--news); }
.pulse { width: 10px; height: 10px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,157,107,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(15,157,107,0); } 100% { box-shadow: 0 0 0 0 rgba(15,157,107,0); } }

/* Offres ouvertes */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .15s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); color: var(--ink); }
.row__flag { font-size: 22px; min-width: 34px; }
.row__t { font-weight: 600; line-height: 1.5; }
.row__d { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* Pays */
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.country { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.country:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; color: var(--ink); }
.country__f { font-size: 30px; line-height: 1.2; }
.country__n { font-weight: 700; }
.country small { color: var(--muted); }

/* ===== Cartes (container queries : la carte s'adapte à la place disponible) ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid--list, .grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { container-type: inline-size; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.card__img { position: relative; display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__img .status { position: absolute; top: 10px; inset-inline-start: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flags { font-size: 16px; letter-spacing: 2px; }
.card h3 { font-size: 16.5px; line-height: 1.55; margin: 0; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--brand); }
.card p { color: var(--ink-2); margin: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; padding-top: 10px; border-top: 1px dashed var(--line); }
.m-ag { font: 700 11px var(--font-num); letter-spacing: .06em; color: var(--ink-2); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; align-self: center; }
.chip { position: relative; z-index: 1; }
@container (min-width: 520px) {
  .card__body { padding: 20px 22px 22px; gap: 10px; }
  .card h3 { font-size: clamp(20px, 4.5cqi, 27px); -webkit-line-clamp: 4; }
}
.card--big { box-shadow: var(--sh-2); border: 0; }
.card--h { flex-direction: row; box-shadow: var(--sh-1); }
.card--h .card__img { width: 38%; flex: none; aspect-ratio: auto; }
.card--h .card__img .status { display: none; }
.card--h .card__body { padding: 12px 14px; }
.card--h h3 { font-size: 15px; -webkit-line-clamp: 2; }
.card--h .card__meta { border: 0; padding: 0; }
.chip { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 12%, var(--surface)); }
.chip:hover { color: var(--c); background: color-mix(in srgb, var(--c, var(--brand)) 20%, var(--surface)); }
.chip--jobs { --c: var(--jobs); } .chip--immigration { --c: var(--immigration); } .chip--scholarships { --c: var(--scholarships); } .chip--volunteering { --c: var(--volunteering); } .chip--tips { --c: var(--tips); } .chip--news { --c: var(--news); }
@media (prefers-color-scheme: dark) { .chip { --jobs: #7aa8ff; --immigration: #5fc6dc; --scholarships: #b79bff; --volunteering: #4fd1a5; --tips: #ffb05c; --news: #a8b4c8; } }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.status--open { color: var(--ok); background: var(--ok-soft); }
.status--closed { color: var(--off); background: var(--off-soft); }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; color: #fff; background:
  radial-gradient(circle at 15% 20%, rgba(255,255,255,.22), transparent 40%), radial-gradient(circle at 90% 90%, rgba(0,0,0,.25), transparent 50%),
  linear-gradient(135deg, var(--c, #1257d6), #0a1a33); }
.ph b { font-size: 46px; line-height: 1.1; letter-spacing: 6px; text-align: center; padding: 0 10px; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.ph small { font-weight: 700; font-size: 13px; opacity: .9; }
.ph--jobs { --c: #1257d6; } .ph--immigration { --c: #0e7490; } .ph--scholarships { --c: #7c3aed; } .ph--volunteering { --c: #0f9d6b; } .ph--tips { --c: #e07a00; } .ph--news { --c: #475569; }

/* Confiance */
.trust { margin: 64px 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.trust h2 { margin: 0 0 22px; font-size: 24px; text-align: center; }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.trust__i { text-align: center; padding: 8px 16px; }
.trust__i span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); font-size: 26px; }
.trust__i h3 { margin: 12px 0 4px; font-size: 17px; }
.trust__i p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== En-tête de page ===== */
.phead { background: linear-gradient(160deg, #0a1a33, #0d2b5c); color: #fff; padding: 26px 0 30px; margin-bottom: 30px; }
.phead h1 { margin: 6px 0 6px; font-size: clamp(28px, 4vw, 40px); }
.phead p { margin: 0; color: #b7c7e4; }
.phead .crumbs, .phead .crumbs a { color: #9fb3d6; }
.phead .hsearch { margin: 16px 0 0; }
.tabs { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x mandatory; }
.tabs a { scroll-snap-align: start; white-space: nowrap; color: #d8e5ff; padding: 7px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: 14px; }
.tabs a:hover { background: rgba(255,255,255,.1); color: #fff; }
.tabs a[aria-current] { background: #fff; color: #0a1a33; border-color: #fff; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 36px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 15px var(--font); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

/* ===== Article ===== */
.ahead { background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 70%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 26px 0 34px; }
.ahead__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.ahead__tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.ahead h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; margin: 14px 0; font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 14px; }
.ahead__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--sh-2); background: var(--surface-2); }
.ahead__img img { width: 100%; height: 100%; object-fit: cover; }
.ahead__img .ph b { font-size: 64px; }
.art-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 30px; }
.art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 40px 36px; }
.art--page { margin: 0 0 30px; }
.note { background: var(--brand-soft); color: var(--brand-2); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 14px; }
.tip { display: flex; gap: 8px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 20px; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin-bottom: 24px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-inline-start: 22px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--brand); }
.toc .toc--h3 { margin-inline-start: 16px; list-style: circle; font-size: .95em; }
.content { font-size: 18px; line-height: 1.95; color: var(--ink); overflow-wrap: anywhere; }
.content h2 { font-size: 25px; margin: 38px 0 14px; padding-top: 6px; position: relative; padding-inline-start: 16px; }
.content h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 6px; width: 5px; border-radius: 4px; background: linear-gradient(var(--brand), #6aa2ff); }
.content h3 { font-size: 20px; margin: 28px 0 10px; }
.content h4 { font-size: 18px; margin: 22px 0 8px; }
.content p { margin: 0 0 18px; }
.content ul, .content ol { padding-inline-start: 24px; margin: 0 0 18px; }
.content li { margin-bottom: 8px; }
.content li::marker { color: var(--brand); }
.content blockquote { margin: 20px 0; padding: 14px 20px; background: var(--surface-2); border-inline-start: 4px solid var(--accent); border-radius: 10px; }
.content img { border-radius: 12px; margin: 14px auto; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.content a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.content a[target="_blank"] { font-weight: 600; }
/* Les liens « s'inscrire » seuls dans leur paragraphe deviennent des boutons (via :has) */
.content p:has(> a:only-child[target="_blank"]) { margin: 4px 0 26px; }
.content p > a:only-child[target="_blank"] { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--brand); color: #fff; padding: 10px 22px; border-radius: 99px; font-size: 16px; box-shadow: 0 6px 16px rgba(18,87,214,.25); transition: transform .15s var(--ease), background .15s; }
.content p > a:only-child[target="_blank"]::after { content: "↗"; }
.content p > a:only-child[target="_blank"]:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .content p > a:only-child[target="_blank"] { color: #0b1322; } }
.video { margin: 20px 0; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.75; }
.content td, .content th { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: start; }
.content tr:last-child td { border-bottom: 0; }
.content tr td:first-child:not([colspan]) { background: var(--surface-2); font-weight: 700; width: 30%; color: var(--ink); white-space: nowrap; }
.content td[colspan] { background: var(--surface-2); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; }
.share span { font-weight: 700; margin-inline-end: 6px; }
.sh { border: 0; border-radius: 99px; padding: 8px 18px; color: #fff; font: 600 14px var(--font); cursor: pointer; transition: filter .15s, transform .15s var(--ease); }
.sh:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.sh--wa { background: #25d366; } .sh--fb { background: #1877f2; } .sh--tg { background: #229ed9; } .sh--copy { background: #33415c; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pn a { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.5; transition: border-color .15s; }
.pn a:hover { border-color: var(--brand); color: var(--brand); }
.pn small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.pn span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn__next { text-align: end; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.facts::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), #6aa2ff); }
.facts:has(.status--open)::before { background: linear-gradient(90deg, var(--ok), #6ee7b7); }
.facts__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.facts h2 { font-size: 17px; margin: 0; }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.facts dl div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: end; }
.left { display: inline-block; font-style: normal; font-size: 12px; color: var(--ok); background: var(--ok-soft); padding: 1px 8px; border-radius: 99px; margin-inline-start: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; background: var(--brand); color: #fff; font: 700 15px var(--font); padding: 12px 24px; cursor: pointer; transition: background .15s, transform .15s var(--ease); }
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0b1322; } }
.btn--apply { width: 100%; margin-top: 14px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.box h4 { margin: 0 0 8px; font-size: 16px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.5; font-weight: 600; }
.mini:last-child { border: 0; }
.mini:hover { color: var(--brand); }
.mini img, .mini__ph { width: 76px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
.mini__ph { display: grid; place-items: center; background: var(--surface-2); font-size: 22px; }
.mini span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Emplacements publicitaires (mêmes positions qu'Advanced Ads) ===== */
.ad { margin: 26px 0; text-align: center; min-height: 100px; clear: both; }
.ad__label { display: block; font: 600 10px var(--font-num); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; opacity: .8; }
.ads-demo .ad ins { display: none !important; }
.ads-demo .ad::after { content: attr(data-demo); display: grid; place-items: center; min-height: 120px; border: 1.5px dashed var(--line); border-radius: 14px; background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 10px, var(--surface-2) 10px, var(--surface-2) 20px); color: var(--muted); font: 600 13px var(--font-num); direction: ltr; padding: 8px; }

/* Formulaire */
.cform { display: grid; gap: 14px; max-width: 540px; }
.cform label { display: grid; gap: 6px; font-weight: 600; }
.cform input, .cform textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.cform .btn { justify-self: start; }

/* ===== Pied de page ===== */
.footer { background: #0a1a33; color: #a9b8d1; margin-top: 72px; padding-top: 48px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .footer { background: #070d18; border-top: 1px solid var(--line); } }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer__about p { max-width: 420px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer a { display: block; color: #a9b8d1; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer a.brand { display: flex; width: fit-content; margin-bottom: 8px; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer .muted { color: #7d8eab; font-size: 14px; }
.footer__bottom { border-top: 1px solid #1c2e4f; margin-top: 32px; padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: #7d8eab; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .art-wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .facts { order: -1; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--surface); flex-direction: column; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
  .header__in { position: relative; gap: 12px; }
  .lead { grid-template-columns: 1fr; }
  .ahead__in { grid-template-columns: 1fr; gap: 22px; }
  .ahead__img { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header__in { height: 64px; }
  .brand img { height: 30px; }
  .lang span { display: none; }
  .hero { padding: 40px 0 96px; }
  .hsearch button { padding: 12px 18px; }
  .stats li { min-width: 0; flex: 1; padding: 10px 12px; }
  .stats b { font-size: 21px; }
  .grid, .grid--list, .grid--3 { grid-template-columns: 1fr; }
  .countries { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: auto 1fr; }
  .row__d { grid-column: 2; }
  .row .status { display: none; }
  .card--h .card__img { width: 34%; }
  .art { padding: 22px 18px 26px; border-radius: 16px; }
  .content { font-size: 17px; }
  .content tr td:first-child:not([colspan]) { white-space: normal; width: 38%; }
  .pn { grid-template-columns: 1fr; }
  .trust { padding: 26px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .header, .footer, .ad, .share, .pn, .side, .sec { display: none !important; }
  .art { border: 0; padding: 0; }
}
