/* ==========================================================================
   HAMPA Solidarité — feuille de style principale
   Propriétés logiques (inline/block) utilisées partout : compatible RTL.
   ========================================================================== */

:root {
  --blue: #1E4E79;
  --blue-2: #2F7FBF;
  --blue-deep: #13385A;
  --blue-ink: #0D263D;
  --blue-link: #1D5C93;
  --sky: #EAF3FB;
  --sky-2: #F5F9FD;
  --sand: #FAF7F2;
  --accent: #F2B544;
  --ink: #18242F;
  --muted: #4C5A68;
  --line: #DCE5EE;
  --white: #fff;
  --success: #1F7A4D;
  --danger: #B3261E;

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 38, 61, .06), 0 2px 8px rgba(13, 38, 61, .05);
  --shadow: 0 10px 30px -12px rgba(13, 38, 61, .22);
  --shadow-lg: 0 30px 60px -24px rgba(13, 38, 61, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[dir="rtl"] {
  --font-head: "Vazirmatn", "Noto Naskh Arabic", Tahoma, "Segoe UI", sans-serif;
  --font-body: "Vazirmatn", "Noto Naskh Arabic", Tahoma, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--blue-ink); margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: var(--blue-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
ul, ol { padding-inline-start: 1.2em; }
main { overflow-x: clip; }
main:focus { outline: none; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-2); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 200; background: var(--blue); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* Repère de contenu à compléter */
.todo { display: inline; background: #FFF4D6; color: #6B4A00; border: 1px dashed #D9A520; border-radius: 6px; padding: 0 .35em; font-size: .92em; font-style: normal; }
.site-footer .todo { background: rgba(242, 181, 68, .14); color: #FFE2A6; border-color: rgba(242, 181, 68, .55); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.6em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd); border-radius: var(--pill);
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon-arrow { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(4px); }
.btn-primary:hover { --btn-bg: var(--blue-deep); --btn-bd: var(--blue-deep); }
.btn-secondary { --btn-bg: var(--sky); --btn-fg: var(--blue); --btn-bd: var(--sky); }
.btn-secondary:hover { --btn-bg: #DCEBF8; --btn-bd: #DCEBF8; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--blue); --btn-bd: currentColor; }
.btn-outline:hover { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--blue); --btn-bd: #fff; }
.btn-light:hover { --btn-bg: var(--sky); --btn-bd: var(--sky); --btn-fg: var(--blue-deep); }
.btn-outline-light { --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.btn-outline-light:hover { --btn-bg: #fff; --btn-fg: var(--blue); --btn-bd: #fff; }
.btn-sm { white-space: nowrap; min-height: 42px; padding: .55em 1.15em; font-size: .9rem; }
.btn[aria-disabled="true"], .btn:disabled { --btn-bg: #E7ECF1; --btn-fg: #5A6875; --btn-bd: #E7ECF1; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow:hover .icon-arrow { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon-arrow { transform: scaleX(-1) translateX(4px); }
.link-arrow .icon-arrow { transition: transform .25s var(--ease); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13, 38, 61, .45); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-header .container { max-width: calc(1400px + 2 * var(--gutter)); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); flex: none; }
.brand-mark svg { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-text strong { font-size: 1.28rem; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.brand-text span { font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); margin-top: 5px; }
.brand-logo { height: 48px; width: auto; }
/* Logo officiel : affiché sans retouche ; pastille blanche sur fond sombre pour garantir sa lisibilité */
.brand-emblem { display: grid; place-items: center; width: 58px; height: 58px; flex: none; padding: 3px; border-radius: 50%; background: transparent; transition: background-color .3s, box-shadow .3s; }
.brand-emblem img { width: 100%; height: 100%; object-fit: contain; }
.brand-light .brand-emblem { width: 84px; height: 84px; padding: 6px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .brand-emblem { background: #fff; box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); }
@media (max-width: 520px) { .site-header .brand-emblem { width: 50px; height: 50px; } .brand-text strong { font-size: 1.12rem; } }
.brand-light, .brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text span { color: #9CC8EE; }

.main-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: block; padding: 10px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-list a::after { content: ""; position: absolute; inset-inline: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue-2); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-list a:hover { color: var(--blue); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--blue); }
.nav-ctas { display: flex; gap: 10px; }
.nav-ctas .btn[aria-current="page"] { box-shadow: 0 0 0 3px rgba(47, 127, 191, .3); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px;
  font: 700 .85rem var(--font-head); color: var(--blue); background: transparent;
  border: 1.5px solid var(--line); border-radius: var(--pill); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { border-color: var(--blue-2); background: var(--sky-2); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 120;
  animation: pop .22s var(--ease);
}
.lang-option {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px;
  font: 600 1rem var(--font-body); color: var(--ink); text-align: start; text-decoration: none;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.lang-option small { font-size: .74rem; font-weight: 600; color: var(--muted); }
.lang-option:hover { background: var(--sky-2); color: var(--blue); }
.lang-option.is-current { background: var(--sky); color: var(--blue); cursor: default; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sky); color: var(--blue); cursor: pointer; place-items: center; }
.burger, .burger span, .burger::before, .burger::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger { position: relative; background: transparent; }
.burger span { position: absolute; top: 0; }
.burger::before, .burger::after { content: ""; position: absolute; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* En-tête transparent sur la section héro de l'accueil */
.has-hero .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-list a,
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .brand,
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .brand-text strong { color: #fff; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .brand-text span { color: #A9D1F2; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-list a::after { background: #fff; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-ctas .btn-outline { --btn-fg: #fff; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-ctas .btn-outline:hover { --btn-bg: #fff; --btn-fg: var(--blue); --btn-bd: #fff; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-ctas .btn-primary { --btn-bg: #fff; --btn-fg: var(--blue); --btn-bd: #fff; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .lang-toggle { color: #fff; border-color: rgba(255,255,255,.45); }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .lang-toggle:hover { background: rgba(255,255,255,.12); }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255,255,255,.16); color: #fff; }
.has-hero main { margin-top: calc(-1 * var(--header-h)); }
.has-hero.nav-open .site-header:not(.is-scrolled) { background: #fff; }

@media (max-width: 1439px) {
  .nav-toggle { display: grid; }
  .header-tools { margin-inline-start: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 24px; margin: 0;
    padding: 24px var(--gutter) 40px; background: #fff; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open .site-header { background: #fff; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--blue-2); }
  .nav-ctas { flex-direction: column; }
  .nav-ctas .btn { min-height: 54px; font-size: 1rem; }
  .nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-sky { background: var(--sky-2); }
.section-sand { background: var(--sand); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font: 700 .8rem/1.2 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); line-height: 1.75; }
.text-muted { color: var(--muted); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
}

/* ---------- Héro (accueil) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 48px) 96px;
  background: var(--blue-ink);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
.hero-media.is-missing img { display: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 600px at 85% 20%, rgba(47, 127, 191, .55), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(47, 127, 191, .35), transparent 60%),
    linear-gradient(100deg, rgba(13, 38, 61, .94) 0%, rgba(19, 56, 90, .82) 45%, rgba(30, 78, 121, .45) 100%);
}
[dir="rtl"] .hero-overlay { transform: scaleX(-1); }
.hero-media.is-missing .hero-overlay {
  background:
    radial-gradient(900px 600px at 80% 15%, rgba(47, 127, 191, .75), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(47, 127, 191, .45), transparent 60%),
    linear-gradient(135deg, #0D263D 0%, #13385A 50%, #1E4E79 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}
.hero-photo-note {
  position: absolute; inset-inline-end: 16px; bottom: 16px; display: none; align-items: center; gap: 8px;
  padding: 6px 12px; font: 600 .75rem var(--font-body); color: rgba(255,255,255,.85);
  background: rgba(13, 38, 61, .6); border: 1px dashed rgba(255,255,255,.4); border-radius: var(--pill);
}
.hero-media.is-missing .hero-photo-note { display: inline-flex; }
@keyframes heroZoom { to { transform: scale(1); } }

.hero-inner { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.25fr .9fr; } }
.hero .eyebrow { color: #A9D1F2; }
.hero-title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.06; margin-bottom: 24px; letter-spacing: -.025em; }
.hero-title .hl { position: relative; white-space: nowrap; color: #fff; }
.hero-title .hl::after {
  content: ""; position: absolute; inset-inline: -2px; bottom: .04em; height: .2em; z-index: -1; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-2), #7FB8E6); transform-origin: left; animation: underline 1.1s .7s var(--ease) both;
}
[dir="rtl"] .hero-title .hl::after { transform-origin: right; }
@keyframes underline { from { transform: scaleX(0); } }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.7; color: rgba(255,255,255,.88); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 40px 0 0; }
.hero-tags li { padding: 6px 14px; font: 600 .82rem var(--font-head); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.25); border-radius: var(--pill); background: rgba(255,255,255,.06); }

/* Composition visuelle du héro */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin-inline: auto; }
.hero-visual-inner { position: absolute; inset: 0; transition: transform .5s ease-out; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); animation: spin 60s linear infinite; }
.orbit-2 { inset: 13%; border-style: solid; border-color: rgba(255,255,255,.12); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-portrait { position: absolute; inset: 20%; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 0 0 10px rgba(255,255,255,.08); }
.hero-portrait .photo { height: 100%; border-radius: 50%; aspect-ratio: auto; }
.hero-portrait .photo.is-missing { background: radial-gradient(circle at 30% 25%, #3B8DD0, #1E4E79 70%); }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  font: 700 .9rem var(--font-head); color: var(--blue-ink); background: #fff; border-radius: var(--pill);
  box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; white-space: nowrap;
}
[dir="rtl"] .hero-chip { padding: 10px 10px 10px 16px; }
.hero-chip .chip-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--blue); }
.hero-chip .icon { width: 20px; height: 20px; }
.chip-1 { top: 6%; inset-inline-start: 2%; }
.chip-2 { top: 30%; inset-inline-end: -4%; animation-delay: -1.5s; }
.chip-3 { bottom: 20%; inset-inline-start: -6%; animation-delay: -3s; }
.chip-4 { bottom: 2%; inset-inline-end: 10%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 999px) { .hero-visual { max-width: 380px; } }
@media (max-width: 520px) { .hero-chip { font-size: .78rem; padding: 7px 12px 7px 7px; } .hero-chip .chip-ic { width: 28px; height: 28px; } .chip-2 { inset-inline-end: 0; } .chip-3 { inset-inline-start: 0; } }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 16px;
}
.hero-scroll::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 700px), (max-width: 999px) { .hero-scroll { display: none; } }

/* ---------- Bandeau de page interne ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding-block: clamp(64px, 9vw, 120px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(47, 127, 191, .65), transparent 60%),
    linear-gradient(135deg, #0D263D 0%, #13385A 55%, #1E4E79 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -120px; bottom: -220px; width: 520px; height: 520px; z-index: -1;
  border-radius: 50%; border: 70px solid rgba(255,255,255,.05);
}
.page-hero h1 { color: #fff; max-width: 900px; margin-bottom: 18px; }
.page-hero .lead { color: rgba(255,255,255,.86); max-width: 720px; margin: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Photos & emplacements ---------- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--sky) 0%, #D4E6F6 100%); box-shadow: var(--shadow); }
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo.ratio-wide { aspect-ratio: 16 / 10; }
.photo.ratio-square { aspect-ratio: 1; }
.photo-ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--blue); }
.photo-ph .icon { width: 44px; height: 44px; stroke-width: 1.4; opacity: .7; }
.photo-ph span { display: flex; flex-direction: column; gap: 6px; font: 700 .85rem var(--font-head); letter-spacing: .04em; }
.photo-ph code { font: 500 .72rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: 0; opacity: .75; direction: ltr; word-break: break-all; }
.photo.is-missing img { display: none; }
.photo.is-missing .photo-ph { display: flex; }
.photo.is-missing::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30, 78, 121, .12) 1px, transparent 1.4px); background-size: 18px 18px;
}
.hero-portrait .photo-ph { color: #fff; }
.photo-wrap { position: relative; }
.photo-badge {
  position: absolute; inset-inline-end: -14px; bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 14px; max-width: 270px;
  padding: 16px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.photo-badge .badge-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: #fff; flex: none; }
.photo-badge strong { display: block; font: 800 .98rem/1.25 var(--font-head); color: var(--blue-ink); }
.photo-badge span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 600px) { .photo-badge { inset-inline-end: 12px; bottom: 12px; } }
.photo-deco { position: absolute; inset-inline-start: -22px; top: -22px; width: 140px; height: 140px; z-index: -1; border-radius: var(--radius-lg); background-image: radial-gradient(var(--blue-2) 1.4px, transparent 1.6px); background-size: 16px 16px; opacity: .35; }

/* ---------- Listes ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li > .icon { margin-top: 3px; width: 24px; height: 24px; padding: 4px; color: #fff; background: var(--blue-2); border-radius: 50%; stroke-width: 2.6; }

/* ---------- Cartes ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 34px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 6px 0 4px; }
.card p { margin: 0; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 14px; }
.card-ic {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: var(--blue);
  background: linear-gradient(135deg, var(--sky) 0%, #D7E9F8 100%); transition: background .35s, color .35s, transform .35s var(--ease);
}
.card-ic .icon { width: 28px; height: 28px; }
.card:hover .card-ic { background: var(--blue); color: #fff; transform: rotate(-6deg); }
.card-flat:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card-flat:hover .card-ic { transform: none; }

.value-card { text-align: center; align-items: center; padding-block: 40px; overflow: hidden; }
.value-card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform: scaleX(0); transition: transform .4s var(--ease); }
.value-card:hover::before { transform: scaleX(1); }
.value-card .card-ic { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 8px; }
.value-card .card-ic .icon { width: 34px; height: 34px; }
.value-card .value-num { position: absolute; top: 14px; inset-inline-end: 20px; font: 800 3.2rem/1 var(--font-head); color: var(--sky); }

.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 12px; font: 700 .74rem/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; border-radius: var(--pill); background: #FFF4D6; color: #6B4A00; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-blue { background: var(--sky); color: var(--blue); }
.project-card .meta { display: grid; gap: 6px; margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .92rem; }
.project-card .meta div { display: flex; gap: 8px; }
.project-card .meta dt { font-weight: 600; color: var(--ink); }
.project-card .meta dd { margin: 0; color: var(--muted); }

/* ---------- Onglets « domaines d'intervention » ---------- */
.tabs { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 960px) { .tabs { grid-template-columns: 360px 1fr; align-items: start; } }
.tab-list { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 959px) {
  .tab-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
}
.tab {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: start; flex: none; scroll-snap-align: start;
  font: 700 1rem var(--font-head); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
@media (max-width: 959px) { .tab { width: auto; padding: 12px 16px; font-size: .92rem; } }
.tab .tab-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--blue); flex: none; transition: background-color .25s, color .25s; }
.tab:hover { border-color: var(--blue-2); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow); }
.tab[aria-selected="true"] .tab-ic { background: rgba(255,255,255,.15); color: #fff; }
.tab-panel { position: relative; padding: clamp(28px, 4vw, 48px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.tab-panel::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--sky) 0%, transparent 70%); z-index: 0; }
.tab-panel > * { position: relative; z-index: 1; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.tab-panel .panel-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--blue); color: #fff; margin-bottom: 20px; }
.tab-panel .panel-ic .icon { width: 30px; height: 30px; }
.tab-panel h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

/* ---------- Bloc sombre (bénévolat) ---------- */
.band-dark { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0D263D 0%, #1E4E79 100%); }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background: radial-gradient(700px 400px at 100% 0%, var(--blue-2), transparent 60%), radial-gradient(500px 300px at 0% 100%, var(--blue-2), transparent 60%); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead, .band-dark p { color: rgba(255,255,255,.85); }
.band-dark .eyebrow { color: #A9D1F2; }
.band-dark .photo { box-shadow: 0 30px 70px -25px rgba(0,0,0,.6); }
.band-dark .photo.is-missing { background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); }
.band-dark .photo.is-missing::before { background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px); }
.band-dark .photo-ph { color: #fff; }

.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background-color .3s, transform .3s var(--ease); }
.steps li:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
[dir="rtl"] .steps li:hover { transform: translateX(-4px); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; font: 800 1.05rem var(--font-head); color: var(--blue-ink); background: #fff; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 2px; }
.steps span { color: rgba(255,255,255,.8); font-size: .96rem; }
.steps-light li { background: #fff; border-color: var(--line); }
.steps-light li:hover { background: #fff; box-shadow: var(--shadow); }
.steps-light li::before { background: var(--blue); color: #fff; }
.steps-light span { color: var(--muted); }

/* ---------- Bloc d'appel à l'action ---------- */
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 28px; align-items: center;
  padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-2) 100%); box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .cta-box { grid-template-columns: 1.4fr auto; } }
.cta-box::before { content: ""; position: absolute; inset-inline-end: -80px; top: -120px; width: 380px; height: 380px; z-index: -1; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); }
.cta-box::after { content: ""; position: absolute; inset-inline-start: 30%; bottom: -160px; width: 300px; height: 300px; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-box h2 { color: #fff; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.1rem; }

/* ---------- Encadrés d'information ---------- */
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius); background: var(--sky); color: var(--blue-ink); border-inline-start: 4px solid var(--blue-2); }
.notice > .icon { width: 26px; height: 26px; color: var(--blue-2); margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: .5em; }
.notice strong { font-family: var(--font-head); }
.notice-warn { background: #FFF8E6; border-color: var(--accent); }
.notice-warn > .icon { color: #9A6A00; }
.notice-legal { background: var(--sand); border-color: var(--blue); }

/* ---------- Mission alternée ---------- */
.mission-row { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.mission-row:last-child { border-bottom: 0; }
@media (min-width: 900px) { .mission-row { grid-template-columns: 120px 1fr 1fr; } }
.mission-num { font: 800 clamp(3rem, 6vw, 5rem)/1 var(--font-head); color: transparent; -webkit-text-stroke: 2px var(--blue-2); opacity: .55; }
.mission-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; align-items: center; gap: 14px; }
.mission-row h2 .icon { width: 34px; height: 34px; color: var(--blue-2); }
.mission-row ul { margin: 0; }

/* ---------- Principes ---------- */
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.principle { background: #fff; padding: 30px; }
.principle .icon { width: 30px; height: 30px; color: var(--blue-2); margin-bottom: 14px; }
.principle h3 { font-size: 1.1rem; }
.principle p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font: 700 1.04rem var(--font-head); color: var(--blue-ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--blue-2); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- Formulaires ---------- */
.form-card { padding: clamp(24px, 4vw, 48px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font: 700 .92rem var(--font-head); color: var(--blue-ink); }
.field .req { color: var(--danger); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--sky-2); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9CBDD; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 127, 191, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF6F5; }
.field-error { font-size: .85rem; color: var(--danger); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: .93rem; font-weight: 600; color: var(--ink); background: var(--sky-2); border: 1.5px solid var(--line); border-radius: var(--pill); cursor: pointer; transition: all .2s; }
.choice span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #9DB3C8; background: #fff; transition: all .2s; }
.choice input:checked + span { color: var(--blue); background: var(--sky); border-color: var(--blue-2); }
.choice input:checked + span::before { background: var(--blue-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--blue-2); }
.choice input:focus-visible + span { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.form-rgpd { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.cf-turnstile { min-height: 65px; }
.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-footer .small { font-size: .85rem; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; }
.form-status { margin-top: 18px; }
.form-status:empty { display: none; }
.form-status .notice { animation: panelIn .4s var(--ease); }
.form-status .notice-ok { background: #E9F6EF; border-color: var(--success); }
.form-status .notice-ok > .icon { color: var(--success); }
.form-status .notice-err { background: #FDEEEC; border-color: var(--danger); }
.form-status .notice-err > .icon { color: var(--danger); }
.form-config { margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list .c-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--sky); color: var(--blue); }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--blue-ink); }
.contact-list span { color: var(--muted); font-size: .96rem; overflow-wrap: anywhere; }

/* ---------- Soutenir ---------- */
.support-card .card-ic { margin-bottom: 4px; }
.support-card .btn { margin-top: auto; align-self: flex-start; }
.support-card .card-actions { margin-top: auto; padding-top: 18px; }
.support-card.featured { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); border-color: transparent; color: #fff; }
.support-card.featured h3 { color: #fff; }
.support-card.featured p { color: rgba(255,255,255,.85); }
.support-card.featured .card-ic { background: rgba(255,255,255,.14); color: #fff; }
.support-card.featured .badge { background: rgba(255,255,255,.16); color: #fff; }

.donate-card { display: flex; flex-direction: column; gap: 16px; }
.donate-card h3 { margin: 0; }
.donate-options { display: grid; gap: 12px; }
.donate-options div { padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--sky-2); }
.donate-options strong { display: block; font-family: var(--font-head); color: var(--blue-ink); }
.donate-options span { font-size: .93rem; color: var(--muted); }
.donate-btn { width: 100%; }
.membership-cat { display: grid; gap: 4px; }

/* ---------- Actualités ---------- */
.empty-state { text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); background: #fff; border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state .empty-ic { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--sky); color: var(--blue); }
.empty-state .empty-ic .icon { width: 38px; height: 38px; }
.empty-state p { max-width: 560px; margin-inline: auto; color: var(--muted); }
.empty-state .btn-row, .error-page .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Pages légales ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose dl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 10px 24px; margin: 0 0 1.4em; padding: 22px 24px; background: var(--sky-2); border-radius: var(--radius); }
.prose dt { font-weight: 700; color: var(--blue-ink); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 8px; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; background: var(--sky-2); border-radius: var(--radius); font-size: .93rem; }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 12px; }
.toc ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.legal-layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px 1fr; align-items: start; } }
@media (max-width: 999px) { .toc { position: static; } }
.updated { font-size: .9rem; color: var(--muted); margin-bottom: 2em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-ink); color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-top { display: grid; gap: 40px; padding-block: clamp(56px, 7vw, 88px) 48px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.footer-brand p { margin: 20px 0 0; max-width: 420px; line-height: 1.7; }
.footer-distinct { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-size: .86rem; background: rgba(255,255,255,.05); border-radius: var(--radius-sm); }
.footer-distinct .icon { margin-top: 2px; color: #7FB8E6; }
.footer-col h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; color: #7FB8E6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }

/* ---------- Boîte de dialogue langue ---------- */
.lang-dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--ink); }
.lang-dialog::backdrop { background: rgba(13, 38, 61, .55); backdrop-filter: blur(4px); }
.lang-dialog[open] { animation: pop .3s var(--ease); }
.lang-dialog-body { padding: 36px 32px 32px; text-align: center; }
.lang-dialog-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sky); color: var(--blue); margin-bottom: 16px; }
.lang-dialog-icon .icon { width: 30px; height: 30px; }
.lang-dialog h2 { font-size: 1.35rem; }
.lang-dialog-notice { font-size: 1.12rem; line-height: 1.9; color: var(--blue-ink); padding: 14px 16px; background: var(--sky-2); border-radius: var(--radius); }
.lang-dialog-notice[dir="rtl"] { font-family: "Vazirmatn", "Noto Naskh Arabic", Tahoma, sans-serif; }
.lang-dialog-fr { color: var(--muted); font-size: .95rem; }

/* ---------- Page 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.error-code { font: 800 clamp(6rem, 18vw, 11rem)/1 var(--font-head); background: linear-gradient(135deg, var(--blue), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

/* ---------- Animations au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-left { transform: translateX(-36px); }
.js .reveal-right { transform: translateX(36px); }
[dir="rtl"].js .reveal-left, .js [dir="rtl"] .reveal-left { transform: translateX(36px); }
.js .reveal-zoom { transform: scale(.94); }
.js .reveal-left.is-visible, .js .reveal-right.is-visible, .js .reveal-zoom.is-visible { transform: none; }
.d1 { --d: .1s; } .d2 { --d: .2s; } .d3 { --d: .3s; } .d4 { --d: .4s; } .d5 { --d: .5s; }

.hero-anim > * { animation: heroIn 1s var(--ease) both; }
.hero-anim > :nth-child(2) { animation-delay: .12s; }
.hero-anim > :nth-child(3) { animation-delay: .24s; }
.hero-anim > :nth-child(4) { animation-delay: .36s; }
.hero-anim > :nth-child(5) { animation-delay: .48s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }
.hero-visual { animation: heroIn 1.2s .3s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-visual, .btn, .lang-dialog { display: none !important; }
  .page-hero, .hero { background: none !important; color: #000; padding: 20px 0; min-height: 0; }
  .page-hero h1, .hero-title { color: #000; }
}
