/* ============================================================================
   Association Al-Mustaqbal — Design system
   Palette chaleureuse (éducation / entraide / Sahel). Mobile-first.
   ========================================================================== */
:root {
  /* Couleurs de marque — identité du logo (bleu roi + or) */
  --brand: #1f2b7a;        /* bleu roi profond : logo de l'association */
  --brand-600: #18225f;
  --brand-700: #121a49;
  --brand-050: #eceffa;
  --brand-100: #d6ddf2;
  --accent: #f4b400;       /* or : ruban et calligraphie du logo */
  --accent-600: #cf9600;
  --accent-050: #fff6df;

  /* Neutres frais (accord bleu nuit) */
  --ink: #171e39;
  --body: #464d63;
  --muted: #7d8397;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #eef1f9;
  --border: #e3e6f1;

  --danger: #c0392b;
  --success: #1f8a5b;
  --info: #2b6ea3;

  /* Rayons / ombres */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23,30,57,.07), 0 1px 3px rgba(23,30,57,.06);
  --shadow: 0 6px 20px rgba(23,30,57,.09);
  --shadow-lg: 0 18px 45px rgba(23,30,57,.16);
  --ring: 0 0 0 4px rgba(31,43,122,.22);

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', var(--font-sans);

  --container: 1200px;
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* neutralise le tiroir de menu hors-écran (pas de scroll horizontal) */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Layout ------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tint { background: var(--surface-2); }
.section--brand { background: linear-gradient(160deg, var(--brand-700), var(--brand)); color: #eef1fb; }
.section--brand h2, .section--brand h3 { color: #fff; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .09em; color: var(--brand-600);
  background: var(--brand-050); padding: .35rem .8rem; border-radius: var(--pill); margin-bottom: 1rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--body); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: var(--pill); border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-sm); text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #3a2a06; }
.btn--accent:hover { background: var(--accent-600); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand-700); border-color: var(--border); box-shadow: none; }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-050); color: var(--brand-700); }
.btn--ghost-light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }

/* Cards -------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-600); font-size: 1.6rem; margin-bottom: 1.1rem;
}
.card--accent .card__icon { background: var(--accent-050); color: var(--accent-600); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Chips / badges ----------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: var(--pill); background: var(--brand-050); color: var(--brand-700);
}
.chip--accent { background: var(--accent-050); color: var(--accent-600); }

/* Navbar ------------------------------------------------------------------- */
/* Pas de backdrop-filter ici : un filtre sur le header ferait de lui le bloc
   conteneur des enfants position:fixed (le tiroir mobile) → il s'effondrerait à
   la hauteur du header. Le flou est réservé au desktop (voir plus bas). */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,248,252,.94); border-bottom: 1px solid var(--border); }
.site-header .container { max-width: 1360px; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem 0; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); flex-shrink: 0; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.brand__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__name { font-size: 1rem; line-height: 1.15; white-space: nowrap; }
.brand__name small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .72rem; color: var(--muted); }
/* Desktop : liens + actions alignés sur UNE seule ligne */
.nav-wrap { display: flex; align-items: center; gap: .7rem; }
.nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.nav a { color: var(--body); font-weight: 500; font-size: .88rem; padding: .45rem .52rem; border-radius: 9px; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--brand-700); background: var(--brand-050); }
.nav-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.nav-actions .btn { white-space: nowrap; padding: .48rem .8rem; font-size: .84rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--border); border-radius: 10px; width: 44px; height: 44px; font-size: 1.4rem; color: var(--ink); cursor: pointer; flex-shrink: 0; }

@media (min-width: 1201px) {
  .site-header { background: rgba(247,248,252,.82); backdrop-filter: blur(10px); }
}

/* Bouton de fermeture : masqué par défaut, affiché seulement dans le tiroir mobile. */
.nav-close {
  position: absolute; top: .9rem; right: 1rem; width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-size: 1.5rem;
  line-height: 1; display: none; place-items: center; cursor: pointer;
}
.nav-close:hover { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-100); }
[dir="rtl"] .nav-close { right: auto; left: 1rem; }

@media (max-width: 1200px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-close { display: grid; }
  .nav-wrap {
    position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(340px, 88vw); background: var(--surface);
    transform: translateX(100%); transition: transform var(--transition); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; padding: 4.5rem 1.3rem 2rem; gap: 1.2rem; overflow-y: auto;
  }
  .nav-wrap.is-open { transform: translateX(0); }
  .nav { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav a { padding: .8rem .9rem; font-size: 1.05rem; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(12,17,40,.5); opacity: 0; visibility: hidden; transition: opacity var(--transition); }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, var(--brand-050), transparent 60%), var(--bg); }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
@media (min-width: 940px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { color: var(--ink); }
.hero h1 .hl { color: var(--brand); }
.hero__lead { font-size: 1.2rem; color: var(--body); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.hero__meta b { color: var(--ink); }
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px;
  background: linear-gradient(150deg, var(--brand-700), var(--brand)); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; color: #eef1fb; text-align: center; padding: 2rem;
}
.hero-visual .bi { font-size: 5rem; opacity: .9; }
.hero-logo { width: min(80%, 320px); height: auto; border-radius: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.34); }
.hero-badge {
  position: absolute; background: var(--surface); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .9rem 1.1rem; display: flex; gap: .7rem; align-items: center; font-weight: 600; font-size: .92rem;
}
.hero-badge .bi { font-size: 1.4rem; color: var(--brand); }
.hero-badge--tl { top: 1.2rem; left: 1.2rem; }
.hero-badge--br { bottom: 1.2rem; right: 1.2rem; }

/* Stats -------------------------------------------------------------------- */
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brand); line-height: 1; }
.section--brand .stat__num { color: var(--accent); }
.stat__label { color: var(--muted); font-weight: 500; margin-top: .35rem; }
.section--brand .stat__label { color: #ced5f0; }

/* Objectives / lists ------------------------------------------------------- */
.obj-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 780px) { .obj-list { grid-template-columns: 1fr 1fr; } }
.obj-list li { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; }
.obj-list .bi { color: var(--brand); font-size: 1.2rem; margin-top: .15rem; flex-shrink: 0; }

/* Team --------------------------------------------------------------------- */
.member { text-align: center; }
.member__avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-050), var(--brand-100)); color: var(--brand-700); font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; overflow: hidden; }
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.member__role { color: var(--brand-600); font-weight: 600; font-size: .92rem; }

/* CTA band ----------------------------------------------------------------- */
.cta-band { border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--brand-700), var(--brand)); color: #eef1fb; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ced5f0; max-width: 55ch; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* Forms -------------------------------------------------------------------- */
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field .req { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
.textarea { min-height: 140px; resize: vertical; }
.field-hint { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.checkbox input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--brand); }

/* Alerts ------------------------------------------------------------------- */
.alert { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; border: 1px solid; display: flex; gap: .7rem; align-items: flex-start; }
.alert .bi { font-size: 1.2rem; margin-top: .1rem; }
.alert--success { background: #eaf7f0; border-color: #bfe6d3; color: #1a6b48; }
.alert--error { background: #fdeceb; border-color: #f4c4bf; color: #a5322a; }
.alert--info { background: #eaf2f9; border-color: #c3dbef; color: #1f5a8a; }

/* Prose (contenu long) ----------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2, .prose h3 { margin-top: 1.8rem; }
.prose img { border-radius: var(--radius); margin: 1.2rem 0; }

/* Breadcrumb / page header ------------------------------------------------- */
.page-hero { background: linear-gradient(160deg, var(--brand-700), var(--brand)); color: #eef1fb; padding: clamp(2.4rem, 6vw, 4rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #d0d7f1; max-width: 60ch; margin: 0; }
.breadcrumb { display: flex; gap: .5rem; font-size: .88rem; color: #b9c1e6; margin-bottom: 1rem; }
.breadcrumb a { color: #eef1fb; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #0e1533; color: #aeb6d0; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer a { color: #aeb6d0; }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; }
.footer-social a:hover { background: var(--accent); color: #1a1400; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; font-size: .85rem; color: #828aa8; }
.footer-bottom a { color: #828aa8; }

/* Reveal on scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Utilities ---------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.flex { display: flex; } .items-center { align-items: center; } .gap { gap: 1rem; }
.wrap { flex-wrap: wrap; }

/* Composants de pages ------------------------------------------------------ */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list b { color: var(--ink); text-align: right; }

.check-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--body); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.steps { padding-left: 1.2rem; display: grid; gap: .4rem; color: var(--body); }
.contact-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-list .bi { color: var(--brand); font-size: 1.15rem; margin-top: .15rem; }

.empty { text-align: center; max-width: 620px; margin: 1rem auto; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty > .bi:first-child { font-size: 3rem; color: var(--brand); opacity: .5; display: block; margin-bottom: .6rem; }
.empty h3 { margin-bottom: .3rem; }
.empty p { color: var(--muted); margin-bottom: 0; }

.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pill-link { padding: .45rem 1rem; border-radius: var(--pill); background: var(--surface); border: 1.5px solid var(--border); color: var(--body); font-weight: 600; font-size: .9rem; }
.pill-link:hover { border-color: var(--brand); color: var(--brand-700); }
.pill-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.meta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; color: var(--muted); font-size: .88rem; }
.meta-row .bi { color: var(--brand); }

.status-badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .25rem .7rem; border-radius: var(--pill); text-transform: uppercase; letter-spacing: .03em; }
.status-ongoing { background: #e6f4ec; color: #1a7a4c; }
.status-completed { background: var(--brand-050); color: var(--brand-700); }
.status-planned { background: var(--accent-050); color: var(--accent-600); }
.status-suspended { background: #f3eae9; color: #9a4a3f; }

.detail-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .detail-layout { grid-template-columns: 1fr 320px; align-items: start; } .detail-side { position: sticky; top: 90px; } }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; padding: 1.2rem .7rem .5rem; font-size: .82rem; }

.album-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.album-card__cover { display: grid; place-items: center; aspect-ratio: 16/10; background: linear-gradient(150deg, var(--brand-050), var(--brand-100)); color: var(--brand); font-size: 2.5rem; overflow: hidden; }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card__body { display: block; padding: 1.1rem 1.3rem; }
.album-card__body b { color: var(--ink); display: block; }
.album-card__body .muted { font-size: .88rem; }

.share { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-600); font-size: 1.1rem; }
.share-btn:hover { background: var(--brand); color: #fff; }

.doc-list { display: grid; gap: .8rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: border-color var(--transition), box-shadow var(--transition); }
.doc-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.doc-item__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-600); font-size: 1.4rem; flex-shrink: 0; }
.doc-item__body { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.doc-item__body b { color: var(--ink); }
.doc-item__dl { color: var(--brand); font-size: 1.3rem; }

/* Formulaires (mise en page) */
.form-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .form-layout { grid-template-columns: 340px 1fr; } .form-aside .card { position: sticky; top: 90px; } }
.form-card { padding: 1.8rem; }
.form-grid { display: grid; gap: 0 1.2rem; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Sélecteur de langue ------------------------------------------------------ */
.lang-switch { display: inline-flex; gap: .1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: .18rem; flex-shrink: 0; }
.lang-switch a { padding: .28rem .46rem; border-radius: var(--pill); font-size: .74rem; font-weight: 700; color: var(--muted); line-height: 1; }
.lang-switch a.is-active { background: var(--brand); color: #fff; }
.lang-switch a:hover:not(.is-active) { color: var(--brand-700); background: var(--brand-050); }

/* Arabe + RTL -------------------------------------------------------------- */
[dir="rtl"] { --font-sans: 'Cairo', 'Inter', system-ui, sans-serif; --font-display: 'Cairo', 'Poppins', sans-serif; }
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .section-head--left { text-align: right; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 1.6rem; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .hero-badge--tl { left: auto; right: 1.2rem; }
[dir="rtl"] .hero-badge--br { right: auto; left: 1.2rem; }
[dir="rtl"] .skip-link { left: auto; right: -999px; border-radius: 0 0 0 8px; }
[dir="rtl"] .skip-link:focus { right: 0; }
[dir="rtl"] .steps { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .nav-actions { flex-direction: row; }
@media (max-width: 1200px) {
  [dir="rtl"] .nav-wrap { inset: 0 auto 0 0; transform: translateX(-100%); }
  [dir="rtl"] .nav-wrap.is-open { transform: translateX(0); }
  [dir="rtl"] .nav-actions { flex-direction: column; }
}
