/* ==========================================================================
   Trait d'Union pour le Handicap — feuille de style unique
   --------------------------------------------------------------------------
   Organisation (chaque bloc ≈ un futur composant Blade/Vue) :
     1. Variables & base          7. Cartes actualités
     2. Utilitaires & mise en page 8. Page d'accueil
     3. Boutons, cartes, formulaires 9. L'association
     4. Header / navigation       10. Centres
     5. Footer                    11. Services
     6. Composants partagés       12. Vie au centre & article
        (page-header, stats,      13. Nous soutenir
         bandeau CTA, copie)      14. Partenaires & contact
   Propriétés « logiques » (inline/block) partout : la mise en page
   s'inversera automatiquement en arabe (dir="rtl").
   ========================================================================== */

/* 1. Variables & base ===================================================== */
:root {
  --navy: #2a2f7a;
  --navy-deep: #1c2058;
  --orange: #ee7b30;          /* décoratif uniquement */
  --orange-strong: #c4520f;   /* texte et boutons (contraste AA) */
  --green: #8db43e;           /* décoratif uniquement */
  --green-strong: #5e7f1f;
  --sky: #4aa8d8;
  --sky-soft: #e4f3fb;

  --bg: #fffaf4;
  --surface: #ffffff;
  --blush: #fbe9e2;
  --sand: #fff1e3;
  --line: #eadfd5;

  --text: #1f2340;
  --muted: #555a78;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(42 47 122 / 0.06), 0 8px 24px rgb(42 47 122 / 0.08);
  --container: 1180px;

  --font-body: 'Nunito', system-ui, sans-serif;
  --font-head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* « Réduire les animations » (réglage du système) : on retire le MOUVEMENT
   (animations, zooms, rotations…) mais on garde les transitions douces de couleur,
   d'ombre et d'opacité, pour que les survols restent fluides. Voir aussi section 21. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-strong); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

/* 2. Utilitaires & mise en page ========================================== */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--sand); }
.section--blush { background: var(--blush); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-strong); margin-block-end: 12px;
}
.eyebrow::before { content: ''; width: 22px; height: 4px; border-radius: 4px; background: var(--green); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

.section-head { max-width: 720px; margin-block-end: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.center-cta { text-align: center; margin: 32px 0 0; }

.grid { display: grid; gap: 24px; }
.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(32px, 5vw, 72px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.split--top { align-items: start; }
@media (min-width: 900px) { .swap { order: 2; } }

.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--blush); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1 { aspect-ratio: 1; }

.icon-badge {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 16px; background: var(--sky-soft); color: var(--navy);
}
.icon-badge--orange { background: #fde5d4; color: var(--orange-strong); }
.icon-badge--green { background: #eaf3d6; color: var(--green-strong); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-block-start: 3px; border-radius: 50%;
  background: var(--green) 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 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--orange-strong); text-decoration: none; }
.tag { background: var(--sky-soft); color: var(--navy); padding: 2px 10px; border-radius: 999px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-block-start: 1.6em; }
.prose-lg { font-size: 1.15rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Boutons, cartes, formulaires ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange-strong); color: #fff; box-shadow: 0 6px 16px rgb(196 82 15 / 0.28); }
.btn--primary:hover { background: #a9450b; color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sand); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 24px; }

/* Carte entièrement cliquable (lien étendu sur le titre) */
.card-link { position: relative; transition: transform 0.2s ease; }
.card-link:hover { transform: translateY(-3px); }
.card-link h3 a, .card-link h2 a { text-decoration: none; color: inherit; }
.card-link h3 a::after, .card-link h2 a::after { content: ''; position: absolute; inset: 0; }
.card-link a:focus-visible { outline: none; }
.card-link:has(a:focus-visible) { outline: 3px solid var(--sky); outline-offset: 3px; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--navy); }
.field label small { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: #fff; width: 100%;
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sky); outline: none; box-shadow: 0 0 0 4px var(--sky-soft);
}
.form-note { padding: 14px 16px; border-radius: 12px; background: var(--sky-soft); color: var(--navy); font-weight: 600; margin: 0; }
.form-note[hidden] { display: none; }

/* 4. Header / navigation ================================================== */
.demo-banner {
  background: var(--navy); color: #fff; text-align: center;
  font-size: 0.9rem; font-weight: 600; padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 250 244 / 0.94); backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { text-decoration: none; }

/* Logo officiel (assets/img/logo-atu.jpg — à remplacer par une version HD/SVG) */
.brand { display: inline-flex; }
.logo-img { display: block; height: 62px; width: auto; border-radius: 6px; }
.logo-img--footer { height: 96px; border-radius: 10px; box-shadow: 0 0 0 4px #fff; }

.main-nav { display: flex; align-items: center; gap: 14px; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul a {
  display: block; padding: 8px 10px; border-radius: 999px; white-space: nowrap;
  text-decoration: none; font-weight: 700; font-size: 0.97rem; color: var(--text);
}
.main-nav > ul a:hover { background: var(--sand); color: var(--navy); }
.main-nav > ul a[aria-current='page'] { background: var(--navy); color: #fff; }
.nav-donate { min-height: 44px; padding: 10px 20px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; place-items: center; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy);
}
.menu-toggle .icon-close { display: none; }

@media (max-width: 1200px) {
  .menu-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; padding: 16px;
    background: var(--bg); border-block-end: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul a { padding: 14px 16px; border-radius: 12px; font-size: 1.1rem; }
  .site-header.is-open .main-nav { display: flex; }
  .site-header.is-open .icon-open { display: none; }
  .site-header.is-open .icon-close { display: block; }
}

/* 5. Footer =============================================================== */
.site-footer { background: var(--navy-deep); color: #d9dcf5; padding-block: 64px 24px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-block-end: 16px; }
.site-footer p { font-size: 0.95rem; }
.footer-about p { margin-block-start: 16px; max-width: 40ch; }
.footer-name { color: #fff; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffc89f; text-decoration: underline; }
.site-footer .btn--primary:hover { color: #fff; text-decoration: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.footer-contact svg { flex: none; margin-block-start: 3px; color: var(--green); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-block-start: 48px; padding-block-start: 20px;
  border-block-start: 1px solid rgb(255 255 255 / 0.15); font-size: 0.85rem;
}
.footer-legal p { margin: 0; }
.footer-legal .credit { opacity: 0.85; }
.footer-legal .credit a { font-weight: 800; }

/* 6. Composants partagés ================================================== */
/* En-tête de page */
/* Hauteur identique sur toutes les pages (375px = page contact).
   Le contenu est centré verticalement ; titre ≤ 2 lignes, introduction ≤ 2 lignes. */
.page-header {
  --page-header-h: 375px;
  display: flex; align-items: center; min-height: var(--page-header-h);
  position: relative; overflow: hidden; padding-block: 26px;
  background:
    radial-gradient(circle at 92% 20%, rgb(74 168 216 / 0.18) 0 120px, transparent 121px),
    radial-gradient(circle at 80% 110%, rgb(141 180 62 / 0.22) 0 160px, transparent 161px),
    var(--sand);
}
.page-header h1 { max-width: 860px; font-size: clamp(2rem, 4vw, 2.75rem); margin-block-end: 0.35em; }
.page-header .eyebrow { margin-block-end: 8px; }
.page-header .lead { margin: 0; max-width: 820px; font-size: 1.15rem; }
.page-header .btn-row, .page-header .chips { margin-block-start: 22px; }

/* Fil d'Ariane */
.breadcrumb { margin-block-end: 14px; font-size: 0.9rem; font-weight: 700; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-inline: 8px; color: var(--orange); font-weight: 800; }
/* En RTL, « › » est automatiquement inversé par le navigateur (caractère « miroir ») */
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-strong); text-decoration: underline; }
.breadcrumb [aria-current] span { display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Photo en tête de contenu (pages service / événement) */
.content-cover { margin-block-end: 28px; }

/* Chiffres clés */
.stats {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.stats li { padding: 28px 20px; text-align: center; display: grid; gap: 4px; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats strong { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stats li:nth-child(1) strong { color: var(--orange-strong); }
.stats li:nth-child(2) strong { color: var(--navy); }
.stats li:nth-child(3) strong { color: var(--green-strong); }
.stats li:nth-child(4) strong { color: #1f7fb0; }
.stats span { color: var(--muted); font-weight: 700; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n + 3) { border-block-start: 1px solid var(--line); }
}

/* Bandeau d'appel au don */
.cta-band { padding-block: 32px calc(32px + var(--wave-h, 40px)); } /* espace pour la vague du footer */
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); color: #e6e8fb;
  background:
    radial-gradient(circle at 100% 0%, rgb(238 123 48 / 0.55) 0 140px, transparent 141px),
    radial-gradient(circle at 0% 120%, rgb(141 180 62 / 0.45) 0 120px, transparent 121px),
    var(--navy);
}
.cta-inner h2 { color: #fff; max-width: 20ch; }
.cta-inner p { max-width: 56ch; margin: 0; }

/* Champ copiable (RIB, SWIFT) */
.copy-field { display: grid; gap: 6px; }
.copy-label { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 2px dashed var(--line); border-radius: 14px; padding-block: 10px; padding-inline: 16px 10px;
}
.copy-value { font-weight: 800; color: var(--navy); font-size: 1.1rem; overflow-wrap: anywhere; user-select: all; }
.copy-value.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.02em; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 0; border-radius: 999px; background: var(--navy); color: #fff;
  font: 700 0.9rem var(--font-body); cursor: pointer;
}
.copy-btn:hover { background: var(--navy-deep); }
.copy-btn.is-done { background: var(--green-strong); }

/* 7. Cartes actualités ==================================================== */
.news-card { display: flex; flex-direction: column; }
.news-card .media { border-radius: 0; }
.news-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 0.875rem; color: var(--muted); font-weight: 700; margin-block-end: 10px;
}
.news-card .card-body p:last-child { margin: 0; color: var(--muted); }

/* 8. Page d'accueil ======================================================= */
.hero { padding-block: clamp(40px, 6vw, 80px) 120px; background: var(--sand); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--orange-strong); display: block; }
.hero .lead { margin-block: 20px 28px; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; inset: -24px -24px auto auto; width: 140px; height: 140px;
  border-radius: 50%; background: var(--green); opacity: 0.35;
}
.hero-img { position: relative; aspect-ratio: 10 / 7; border-radius: 40px; border-end-start-radius: 120px; box-shadow: var(--shadow); }
/* Diaporama du hero */
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide {
  position: absolute; inset: 0; margin: 0; z-index: 0;
  opacity: 0; transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slider .slide.is-prev { opacity: 1; z-index: 1; transition: none; }   /* reste visible sous la nouvelle */
.hero-slider .slide.is-active { opacity: 1; z-index: 2; }
.hero-slider .slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 3.6s ease-out;
}
.hero-slider .slide.is-active img, .hero-slider .slide.is-prev img { transform: scale(1); }
/* Le fondu reste actif même si le système demande de réduire les animations (pas de zoom dans ce cas) */
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide { transition: opacity 1.1s ease !important; }
  .hero-slider .slide img { transform: none !important; }
}
.slider-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.9); color: var(--navy); cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transition: opacity 0.2s ease, background-color 0.2s ease;
}
.slider-prev { inset-inline-start: 14px; }
.slider-next { inset-inline-end: 14px; }
[dir='rtl'] .slider-arrow svg { transform: scaleX(-1); }
.hero-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: #fff; }
@media (hover: none) { .slider-arrow { opacity: 1; width: 38px; height: 38px; } }
.slider-controls {
  position: absolute; z-index: 2; inset-inline-end: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 999px; background: rgb(28 32 88 / 0.55); backdrop-filter: blur(6px);
}
.slider-dots { display: flex; }
/* Zone tactile de 24px, point visuel de 10px */
.slider-dots button {
  display: grid; place-items: center; width: 24px; height: 26px; padding: 0; border: 0;
  background: none; cursor: pointer; transition: width 0.25s ease;
}
.slider-dots button::before {
  content: ''; width: 10px; height: 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.55); transition: width 0.25s ease, background-color 0.25s ease;
}
.slider-dots button[aria-current='true'] { width: 34px; }
.slider-dots button[aria-current='true']::before { width: 24px; background: #fff; }
.slider-pause {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
}
.slider-pause .i-play { display: none; }
.hero-slider.is-paused .slider-pause .i-pause { display: none; }
.hero-slider.is-paused .slider-pause .i-play { display: block; }

.float-card {
  position: absolute; inset-inline-start: -16px; bottom: -28px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.float-card p { margin: 0; font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 560px) { .float-card { inset-inline-start: 8px; } }
.stats-wrap { margin-block-start: -64px; position: relative; }

/* Cartes « Nos services » : au survol, la couleur de l'icône remplit la carte depuis le bas */
.service-card {
  --fill: var(--navy);
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  text-decoration: none; color: inherit;
  background-image: linear-gradient(var(--fill), var(--fill));
  background-repeat: no-repeat; background-position: bottom; background-size: 100% 0%;
  transition: background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card:has(.icon-badge--orange) { --fill: var(--orange-strong); }
.service-card:has(.icon-badge--green) { --fill: var(--green-strong); }
.service-card h3 { margin: 0; transition: color 0.3s ease; }
.service-card p { margin: 0; color: var(--muted); flex: 1; transition: color 0.3s ease; }
.service-card .icon-badge, .service-card .more { transition: color 0.3s ease, background-color 0.3s ease; }
.service-card:hover, .service-card:focus-visible { background-size: 100% 100%; color: #fff; }
.service-card:hover h3, .service-card:focus-visible h3,
.service-card:hover .more, .service-card:focus-visible .more { color: #fff; }
.service-card:hover p, .service-card:focus-visible p { color: rgb(255 255 255 / 0.88); }
.service-card:hover .icon-badge, .service-card:focus-visible .icon-badge { background: rgb(255 255 255 / 0.18); color: #fff; }

.impact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.impact-list li { display: flex; gap: 18px; align-items: center; padding: 18px 22px; }
.impact-list strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--orange-strong); min-width: 5.5em; line-height: 1.1; }

.portrait { aspect-ratio: 1; max-width: 460px; border-radius: 50%; }
.quote-block { margin: 0; }
.quote-block .q-icon { color: var(--orange); }
.quote-block blockquote { margin: 12px 0 20px; font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.quote-block figcaption { color: var(--muted); }
.quote-block figcaption strong { color: var(--text); }

.mosaic { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--radius); }
.mosaic .m0 { grid-column: span 2; grid-row: span 2; }
/* (bureau : 5 photos = 1 grande + 4 petites, sans case vide) */
.mosaic figcaption {
  position: absolute; inset-inline: 12px; bottom: 12px; width: fit-content;
  background: rgb(255 255 255 / 0.92); color: var(--navy); font-weight: 800;
  padding: 6px 12px; border-radius: 999px; font-size: 0.9rem;
}
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}

.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-block-end: 40px; }
.head-row .section-head { margin: 0; }

.partner-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.partner-list li {
  display: grid; place-items: center; text-align: center; min-height: 120px; padding: 16px 20px;
  background: #fff; border-radius: var(--radius); font-weight: 700; color: var(--navy); font-size: 0.95rem;
  border: 1px solid var(--line);
}
.partner-list img { max-height: 88px; max-width: 100%; width: auto; object-fit: contain; }

/* 9. L'association ======================================================== */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; position: relative; }
.timeline::before {
  content: ''; position: absolute; inset-block: 8px; inset-inline-start: 43px; width: 4px;
  background: linear-gradient(var(--orange), var(--green), var(--sky)); border-radius: 4px;
}
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; position: relative; }
.timeline .year {
  display: grid; place-items: center; width: 90px; height: 48px; border-radius: 999px; position: relative;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
}
.timeline h3 { margin-block-end: 4px; }
.timeline p { margin: 0; color: var(--muted); }

.vision-box {
  padding: clamp(28px, 5vw, 48px); text-align: center; margin-block-end: 64px;
  background: linear-gradient(135deg, #fff, var(--sky-soft));
}
.vision-text {
  font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--navy); line-height: 1.35; max-width: 46ch; margin: 0 auto;
}
.mission-values { gap: 48px; }
.values { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.values li { background: var(--blush); color: var(--navy); font-weight: 700; padding: 10px 16px; border-radius: 999px; }

.president { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
@media (max-width: 720px) { .president { grid-template-columns: 1fr; } }
.avatar { width: 220px; aspect-ratio: 1; border-radius: 50%; border: 6px solid #fff; }
.avatar--initials {
  display: grid; place-items: center; box-shadow: var(--shadow);
  background: radial-gradient(circle at 30% 25%, var(--orange) 0 30%, transparent 31%), var(--navy);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 4.5rem;
}
.president blockquote { margin: 0 0 16px; font-size: 1.15rem; color: var(--navy); }

.poles { margin-block-start: 32px; }
.poles h3 { margin-block: 14px 6px; }
.poles p { margin: 0; color: var(--muted); }

.badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.badges li { display: flex; gap: 14px; align-items: center; padding: 20px 22px; font-size: 1.05rem; }
.badges svg { color: var(--orange-strong); flex: none; }

/* 10. Centres ============================================================= */
.place { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--orange-strong); }
.partner-note { padding: 12px 16px; background: var(--sky-soft); border-radius: 12px; color: var(--navy); font-weight: 600; }
.info-card { display: flex; gap: 24px; padding: clamp(24px, 4vw, 40px); align-items: flex-start; }
.info-card p:last-child { margin: 0; }
@media (max-width: 560px) { .info-card { flex-direction: column; } }

/* 11. Services ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.chips a {
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--navy);
}
.chips { gap: 8px; }
/* Sur mobile, les catégories sont masquées : la page se lit simplement de haut en bas. */
@media (max-width: 720px) { .chips { display: none; } }
.chips a:hover { border-color: var(--navy); }

.svc-card { display: grid; grid-template-columns: 40% 1fr; }
.svc-card .media { border-radius: 0; min-height: 220px; }
.svc-card h3 { margin-block: 14px 6px; }
.svc-card p { color: var(--muted); }
@media (max-width: 560px) {
  .svc-card { grid-template-columns: 1fr; }
  .svc-card .media { aspect-ratio: 3 / 2; min-height: 0; }
}

.svc-content { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
@media (max-width: 860px) { .svc-content { grid-template-columns: 1fr; } }
.svc-side h2 { font-size: 1.3rem; }
.svc-side hr { border: 0; border-top: 1px solid var(--line); margin-block: 20px; }
.others {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.others a {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: #fff;
  border-radius: var(--radius); text-decoration: none; font-weight: 800; box-shadow: var(--shadow);
}
.others svg { color: var(--orange-strong); }

/* 12. Vie au centre & article ============================================= */
.act-card .media { border-radius: 0; }
.act-card h2 { font-size: 1.35rem; }
.act-card p { margin: 0; color: var(--muted); }
.gallery {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.gallery li { aspect-ratio: 1; border-radius: var(--radius); }

.article { max-width: 820px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; margin-block-end: 24px; }
.back-link svg { transform: scaleX(-1); }
.article-cover { aspect-ratio: 3 / 2; margin-block: 8px 32px; }

/* 13. Nous soutenir ======================================================= */
.impact-card strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--orange-strong); margin-block: 14px 4px; }
.impact-card p { margin: 0; color: var(--muted); }

.donate-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.steps span {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800;
}
.bank-card { display: grid; gap: 18px; }
.bank-head { display: flex; gap: 14px; align-items: center; }
.bank-head div { display: grid; }
.bank-head span { color: var(--muted); font-weight: 600; }
.notify { margin-block-start: 32px; }

.figures { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 24px; }
.figures div { background: var(--blush); border-radius: var(--radius); padding: 16px 20px; display: grid; }
.figures strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.figures span { color: var(--muted); font-weight: 700; }

.way-card { display: flex; flex-direction: column; }
.way-card h3 { margin-block: 14px 6px; }
.way-card p { color: var(--muted); flex: 1; }

.mini-quote {
  margin: 24px 0 0; padding: 20px 24px; background: var(--blush);
  border-radius: var(--radius); border-inline-start: 5px solid var(--orange);
}
.mini-quote blockquote { margin: 0 0 8px; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.mini-quote figcaption { color: var(--muted); font-size: 0.95rem; }

/* 13b. Événements ========================================================= */
.event-list { display: grid; gap: 20px; }
.event-row { display: grid; grid-template-columns: auto 1fr 260px; gap: 24px; align-items: center; padding: 20px; }
.event-row h2, .event-row h3 { font-size: 1.35rem; margin-block-end: 10px; }
.event-row .event-body > p:last-child { margin: 0; color: var(--muted); }
.event-row .news-meta { margin-block-end: 6px; }
.event-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); }
@media (max-width: 860px) {
  .event-row { grid-template-columns: auto 1fr; }
  .event-thumb { display: none; }
}
@media (max-width: 520px) {
  .event-row { grid-template-columns: 1fr; }
}

.date-badge {
  display: grid; justify-items: center; align-content: center; width: 96px; padding: 14px 8px;
  border-radius: var(--radius); background: var(--navy); color: #fff; text-align: center; line-height: 1;
  border-block-start: 6px solid var(--orange);
}
.db-day { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; }
.db-mon { text-transform: uppercase; font-weight: 800; letter-spacing: 0.06em; margin-block-start: 4px; }
.db-year { font-size: 0.85rem; opacity: 0.8; margin-block-start: 4px; }

.event-meta { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.event-meta li { display: flex; align-items: center; gap: 6px; }
.event-meta svg { color: var(--orange-strong); flex: none; }
.event-meta span { display: inline-block; }
.event-meta span::first-letter { text-transform: uppercase; }

.event-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.event-info li { display: flex; gap: 12px; align-items: flex-start; }
.event-info svg { color: var(--orange-strong); flex: none; margin-block-start: 3px; }
.event-info div::first-letter { text-transform: uppercase; }

.host-box .btn { margin-block-start: 8px; }

/* 14. Partenaires & contact =============================================== */
.partner-grid { list-style: none; padding: 0; margin: 24px 0 0; }
.partner-grid li { display: flex; align-items: center; gap: 16px; padding: 20px; }
.partner-grid .partner-logo { flex: none; width: 110px; height: 72px; object-fit: contain; }
.partner-initial {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: var(--sky-soft); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
}
.partner-name { font-weight: 700; color: var(--navy); flex: 1; }
.partner-grid a { color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { position: sticky; top: 100px; }
@media (max-width: 900px) { .contact-info { position: static; } }
.contact-info h2, .contact-forms h2 { font-size: 1.5rem; }
.contact-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info a { overflow-wrap: anywhere; }
.contact-forms { display: grid; gap: 32px; }
.contact-forms .card-body { padding: clamp(24px, 4vw, 40px); }
[id] { scroll-margin-top: 100px; }

/* 15. Zones tactiles & ajustements mobile ================================= */
/* Liens plus faciles à toucher (la marge négative garde la mise en page) */
.breadcrumb a { display: inline-block; padding-block: 6px; margin-block: -6px; }
.site-footer nav a, .footer-contact a, .footer-legal a, .contact-info a { display: inline-block; padding-block: 4px; margin-block: -4px; }
.partner-grid a { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.partner-grid a:hover { background: var(--sky-soft); }

@media (max-width: 860px) {
  /* Pages événement : les infos pratiques passent avant le texte */
  .svc-content:has(.event-info) .svc-side { order: -1; }
}

@media (max-width: 560px) {
  /* Diaporama : la carte « 268 bénéficiaires » passe sous la photo pour libérer les contrôles */
  .float-card { position: relative; inset: auto; margin: -22px 12px 0; }

  /* Boutons principaux en pleine largeur */
  .hero .btn-row .btn, .page-header .btn-row .btn, .cta-inner .btn-row .btn { flex: 1 1 100%; }

  /* Accueil — cartes de dons : montant au-dessus du texte */
  .impact-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .impact-list strong { min-width: 0; }

  /* Nous soutenir — cartes d'impact compactes : icône + montant sur une ligne */
  .impact-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .impact-card strong { margin: 0; }
  .impact-card p { grid-column: 1 / -1; margin-block-start: 10px; }

  /* Mosaïque : légendes plus petites, sans débordement */
  .mosaic figcaption { font-size: 0.82rem; inset-inline: 8px; bottom: 8px; padding: 4px 10px; max-width: calc(100% - 16px); }

  /* Partenaires : 2 logos par ligne */
  .partner-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partner-list li { min-height: 96px; padding: 12px; }
  .partner-list img { max-height: 64px; }

  /* Pied de page : liens de navigation sur 2 colonnes */
  .site-footer nav ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

/* 16. Sélecteur de langue ================================================= */
.lang-menu { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font: 800 0.95rem var(--font-body); color: var(--navy);
  transition: border-color 0.2s ease;
}
.lang-toggle:hover, .lang-toggle[aria-expanded='true'] { border-color: var(--navy); }
.lang-chevron { transition: transform 0.25s ease; }
.lang-toggle[aria-expanded='true'] .lang-chevron { transform: rotate(180deg); }

/* Drapeau */
.flag {
  display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
}
.flag svg { display: block; width: 100%; height: 100%; }

/* Liste déroulante */
@keyframes lang-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-list {
  position: absolute; z-index: 70; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgb(28 32 88 / 0.16);
  animation: lang-open 0.18s ease-out;
}
.lang-list[hidden] { display: none; }
.lang-list a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 700; color: var(--text);
}
.lang-list a:hover { background: var(--sand); color: var(--navy); }
.lang-list a[aria-current] { background: var(--sky-soft); color: var(--navy); }
.lang-list a[aria-current]::after {
  content: ''; margin-inline-start: auto; width: 16px; height: 16px;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Chaque nom de langue dans sa propre police */
.lang-list a[lang='ar'] { font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif; font-size: 1.05rem; }
.lang-list a[lang='fr'] { font-family: 'Nunito', system-ui, sans-serif; }

/* Dans le menu mobile : la liste s'ouvre sous le bouton, dans le flux */
@media (max-width: 1200px) {
  .lang-menu { align-self: flex-start; }
  .lang-list { position: static; margin-block-start: 8px; box-shadow: none; }
}

/* 17. Arabe (RTL) ========================================================= */
html[lang='ar'] {
  --font-body: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-head: 'Baloo Bhaijaan 2', 'Tajawal', system-ui, sans-serif;
}
html[lang='ar'] body { font-size: 1.1rem; line-height: 1.8; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3 { line-height: 1.35; }
/* L'espacement des lettres casse la liaison des caractères arabes */
html[lang='ar'] * { letter-spacing: 0 !important; }
/* Numéros, e-mails, RIB : toujours lus de gauche à droite */
[dir='rtl'] .copy-value, [dir='rtl'] a[href^='tel:'], [dir='rtl'] a[href^='mailto:'] { direction: ltr; unicode-bidi: isolate; }
/* Flèches orientées dans le sens de lecture */
[dir='rtl'] .more svg { transform: scaleX(-1); }
[dir='rtl'] .back-link svg { transform: none; }

/* 18. Effets ============================================================== */
/* Header : ombre au défilement */
.site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(42 47 122 / 0.1); background: rgb(255 250 244 / 0.98); }

/* Apparition au défilement (classe .js-reveal ajoutée par le JS, jamais si « réduire les animations ») */
.js-reveal .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Entrée en cascade de l'en-tête de page et du hero */
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js-reveal .page-header .container > *,
.js-reveal .hero-grid > div:first-child > *,
.js-reveal .hero-visual { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js-reveal .page-header .container > :nth-child(2), .js-reveal .hero-grid > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
.js-reveal .page-header .container > :nth-child(3), .js-reveal .hero-grid > div:first-child > :nth-child(3) { animation-delay: 0.16s; }
.js-reveal .page-header .container > :nth-child(4), .js-reveal .hero-grid > div:first-child > :nth-child(4) { animation-delay: 0.24s; }
.js-reveal .page-header .container > :nth-child(5), .js-reveal .hero-grid > div:first-child > :nth-child(5) { animation-delay: 0.32s; }
.js-reveal .page-header .container > :nth-child(6) { animation-delay: 0.4s; }
.js-reveal .hero-visual { animation-delay: 0.2s; animation-duration: 1s; }

/* Cercle décoratif du hero qui flotte */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-visual::before { animation: float 7s ease-in-out infinite; }

/* Zoom doux des photos au survol */
.news-card .media img, .act-card .media img, .event-thumb img,
.mosaic img, .gallery img, .portrait img {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.news-card:hover .media img, .act-card:hover .media img,
.event-row:hover .event-thumb img, .mosaic figure:hover img, .gallery li:hover img { transform: scale(1.06); }
.act-card, .gallery li, .mosaic figure { overflow: hidden; }
.act-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.act-card:hover, .event-row:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(42 47 122 / 0.06), 0 16px 36px rgb(42 47 122 / 0.12); }
.event-row { transition: transform 0.25s ease, box-shadow 0.25s ease; }

/* Flèche « En savoir plus » qui avance */
.more svg { transition: transform 0.25s ease; }
.more:hover svg, .card-link:hover .more svg { transform: translateX(5px); }
[dir='rtl'] .more:hover svg, [dir='rtl'] .card-link:hover .more svg { transform: scaleX(-1) translateX(5px); }
/* (les cartes « Nos services » ont leur propre effet de couleur, sans mouvement) */
.service-card .more svg, .service-card .more:hover svg { transition: none; transform: none; }
[dir='rtl'] .service-card .more svg, [dir='rtl'] .service-card .more:hover svg { transform: scaleX(-1); }

/* Cœur des boutons de don qui bat au survol */
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.25); } 50% { transform: scale(0.95); } 75% { transform: scale(1.15); } }
.btn--primary:hover svg, .btn--light:hover svg { animation: heartbeat 0.9s ease-in-out; }

/* Logos partenaires : en couleur, légère montée au survol */
.partner-list li { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.partner-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Bouton « retour en haut » */
.to-top {
  position: fixed; z-index: 60; inset-inline-end: 20px; bottom: 20px;
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--navy); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgb(28 32 88 / 0.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-strong); }

/* Cartes de la page Services : même effet de remplissage que « Nos services » de l'accueil.
   Chaque service garde la même couleur que sur l'accueil. */
.svc-card {
  --fill: var(--navy);
  background-image: linear-gradient(var(--fill), var(--fill));
  background-repeat: no-repeat; background-position: bottom; background-size: 100% 0%;
  transition: background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc-card:has(a[href$='orthophonie.html']),
.svc-card:has(a[href$='education-specialisee.html']),
.svc-card:has(a[href$='accompagnement-familles.html']) { --fill: var(--orange-strong); }
.svc-card:has(a[href$='psychomotricite.html']),
.svc-card:has(a[href$='soutien-scolarisation.html']) { --fill: var(--green-strong); }
.svc-card h3, .svc-card p, .svc-card .more, .svc-card .icon-badge { transition: color 0.3s ease, background-color 0.3s ease; }
.svc-card:hover, .svc-card:has(a:focus-visible) { background-size: 100% 100%; }
.svc-card.card-link:hover { transform: none; }
.svc-card:hover h3, .svc-card:has(a:focus-visible) h3,
.svc-card:hover .more, .svc-card:has(a:focus-visible) .more { color: #fff; }
.svc-card:hover p, .svc-card:has(a:focus-visible) p { color: rgb(255 255 255 / 0.88); }
.svc-card:hover .icon-badge, .svc-card:has(a:focus-visible) .icon-badge { background: rgb(255 255 255 / 0.18); color: #fff; }
.svc-card .more svg, .svc-card:hover .more svg { transition: none; transform: none; }
[dir='rtl'] .svc-card .more svg, [dir='rtl'] .svc-card:hover .more svg { transform: scaleX(-1); }

/* 19. Habillage chaleureux (inspiré de thèmes « enfance ») ================= */
:root {
  /* Vague (masque SVG) : la zone sous la courbe est remplie */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V24C120 8 240 0 360 8s240 32 360 32 240-24 360-32 240 0 360 16v24Z'/%3E%3C/svg%3E");
  --wave-h: 40px;
  /* Teintes pastel des cartes */
  --tint-sky: #eaf4fb;
  --tint-orange: #fdeee4;
  --tint-green: #eef5e2;
}
@media (max-width: 720px) { :root { --wave-h: 22px; } }

/* 19a. Bords ondulés des bandes colorées (vagues à l'extérieur de la section) */
.section--tint, .section--blush { position: relative; }
.section--tint { --band: var(--sand); }
.section--blush { --band: var(--blush); }
.section--tint::before, .section--blush::before,
.section--tint::after, .section--blush::after {
  content: ''; position: absolute; inset-inline: 0; height: var(--wave-h); pointer-events: none;
  background: var(--band);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}
.section--tint::before, .section--blush::before { top: calc(var(--wave-h) * -1 + 1px); }
.section--tint::after, .section--blush::after { bottom: calc(var(--wave-h) * -1 + 1px); transform: scaleY(-1); }

/* Bas ondulé de l'en-tête de page et du hero (vague « découpée » dans la couleur de fond) */
.page-header::after, .hero::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 24px; pointer-events: none;
  background: var(--bg);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}
.hero { position: relative; }
.hero::after { height: var(--wave-h); }

/* Haut ondulé du footer */
.site-footer { position: relative; }
.site-footer::before {
  content: ''; position: absolute; inset-inline: 0; top: calc(var(--wave-h) * -1 + 1px); height: var(--wave-h);
  background: var(--navy-deep); pointer-events: none;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}

/* 19b. Décorations discrètes */
/* En-tête de page : étoile, ligne ondulée et points aux couleurs du logo */
.page-header .container { position: relative; z-index: 1; }
.page-header::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  inset-inline-end: 8%; top: 18%; width: 260px; height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 200'%3E%3Cpath d='M200 22l6 13 14 2-10 10 2 14-12-7-12 7 2-14-10-10 14-2z' fill='%23ee7b30'/%3E%3Cpath d='M30 160c15-20 30 20 45 0s30 20 45 0 30 20 45 0' fill='none' stroke='%238db43e' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='118' cy='62' r='7' fill='%234aa8d8'/%3E%3Ccircle cx='140' cy='46' r='4' fill='%234aa8d8'/%3E%3Ccircle cx='150' cy='72' r='5' fill='%234aa8d8'/%3E%3Ccircle cx='54' cy='64' r='16' fill='none' stroke='%232a2f7a' stroke-opacity='.18' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 900px) { .page-header::before { display: none; } }

/* Sections beiges : motif très léger de petits dessins */
.section--tint {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%232a2f7a' stroke-opacity='.07' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 20l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z'/%3E%3Ccircle cx='120' cy='40' r='9'/%3E%3Cpath d='M20 120c8-10 16 10 24 0s16 10 24 0'/%3E%3Cpath d='M110 110l16 16M126 110l-16 16'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Bandeau d'appel au don : bordure pointillée « cousue » */
.cta-inner { position: relative; }
.cta-inner::after {
  content: ''; position: absolute; inset: 12px; border: 2px dashed rgb(255 255 255 / 0.28);
  border-radius: calc(var(--radius-lg) - 8px); pointer-events: none;
}

/* 19c. Photos à côté du texte : forme organique + ombre colorée décalée */
.split > .media {
  border-radius: 140px 44px 140px 44px;
  box-shadow: 18px 18px 0 0 rgb(141 180 62 / 0.35);
}
.split > .media.swap { box-shadow: -18px 18px 0 0 rgb(238 123 48 / 0.3); }
[dir='rtl'] .split > .media { box-shadow: -18px 18px 0 0 rgb(141 180 62 / 0.35); }
[dir='rtl'] .split > .media.swap { box-shadow: 18px 18px 0 0 rgb(238 123 48 / 0.3); }
.split > .media.portrait { border-radius: 50%; box-shadow: 16px 16px 0 0 rgb(238 123 48 / 0.3); }
[dir='rtl'] .split > .media.portrait { box-shadow: -16px 16px 0 0 rgb(238 123 48 / 0.3); }
@media (max-width: 720px) {
  .split > .media { border-radius: 80px 28px 80px 28px; box-shadow: 10px 10px 0 0 rgb(141 180 62 / 0.35); }
  .split > .media.portrait { border-radius: 50%; }
}

/* 19d. Cartes teintées en alternance (bleu, orange, vert) */
.news-card, .act-card, .way-card { --tint: var(--tint-sky); --tint-accent: var(--navy); }
.grid > .news-card:nth-child(3n+2), .grid > .act-card:nth-child(3n+2), .grid > .way-card:nth-child(3n) { --tint: var(--tint-orange); --tint-accent: var(--orange-strong); }
.grid > .news-card:nth-child(3n), .grid > .act-card:nth-child(3n), .grid > .way-card:nth-child(3n+2) { --tint: var(--tint-green); --tint-accent: var(--green-strong); }
.news-card .card-body, .act-card .card-body { background: var(--tint); }
.way-card { background: var(--tint); }
.news-card .tag { background: #fff; color: var(--tint-accent); }
.act-card h2 { color: var(--tint-accent); }
/* La zone teintée des cartes d'actualités occupe toute la hauteur de la carte */
.news-card .card-body { flex: 1; }

/* 20. Barre de contact, bande de chiffres, icônes des activités ============ */
/* 20a. Barre supérieure de contact */
.demo-banner { background: var(--orange-strong); }
.topbar { background: var(--navy-deep); color: #d9dcf5; font-size: 0.88rem; }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px; min-height: 40px; padding-block: 6px;
}
.topbar-list { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffc89f; }
.topbar svg { flex: none; color: var(--green); }
.topbar-place { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
@media (max-width: 720px) {
  .topbar-mail, .topbar-place { display: none; }
  .topbar-inner { justify-content: center; }
}

/* 20b. Chiffres clés : bande orange à bords ondulés */
.stats {
  --wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath transform='matrix(1 0 0 -1 0 48)' d='M0 48V24C120 8 240 0 360 8s240 32 360 32 240-24 360-32 240 0 360 16v24Z'/%3E%3C/svg%3E");
  padding-block: 22px;
  border-radius: 24px;
  box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 20l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z'/%3E%3Ccircle cx='120' cy='40' r='9'/%3E%3Cpath d='M20 120c8-10 16 10 24 0s16 10 24 0'/%3E%3Cpath d='M110 110l16 16M126 110l-16 16'/%3E%3C/svg%3E") 0 0 / 160px 160px,
    linear-gradient(135deg, #d4621c, var(--orange-strong));
  -webkit-mask:
    var(--wave) top / 100% 20px no-repeat,
    linear-gradient(#000 0 0) center / 100% calc(100% - 38px) no-repeat,
    var(--wave-down) bottom / 100% 20px no-repeat;
          mask:
    var(--wave) top / 100% 20px no-repeat,
    linear-gradient(#000 0 0) center / 100% calc(100% - 38px) no-repeat,
    var(--wave-down) bottom / 100% 20px no-repeat;
}
.stats li:nth-child(n) strong { color: #fff; }
.stats span { color: rgb(255 255 255 / 0.9); }
.stats li + li { border-inline-start: 2px dashed rgb(255 255 255 / 0.35); }
@media (max-width: 720px) {
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n + 3) { border-block-start: 2px dashed rgb(255 255 255 / 0.35); }
}

/* 20c. Cartes d'activités : icône ronde à cheval sur la photo et le texte */
.act-card .card-body { position: relative; padding-block-start: 46px; }
.act-icon {
  position: absolute; top: -30px; inset-inline-start: 22px;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--tint-accent); color: #fff;
  box-shadow: 0 0 0 5px #fff, 0 8px 18px rgb(28 32 88 / 0.18);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.act-card:hover .act-icon { transform: rotate(-10deg) scale(1.06); }
/* La zone teintée des cartes d'activités occupe toute la hauteur de la carte */
.act-card { display: flex; flex-direction: column; }
.act-card .card-body { flex: 1; }

/* 21. Transitions harmonisées (survols plus fluides) ======================== */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* départ rapide, arrivée douce */
  --t-fast: 0.25s;
  --t-med: 0.45s;
}
/* Liens et petits éléments : changement de couleur en douceur */
a, .lang-toggle, .copy-btn, .chips a, .menu-toggle {
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease,
              border-color var(--t-fast) ease, box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
/* (flèches du diaporama et bouton « retour en haut » gardent leur propre fondu d'apparition) */
.main-nav > ul a { transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }

/* Boutons : couleur, ombre et légère élévation, tout en même temps */
.btn {
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out),
              background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }
.btn--primary:hover { box-shadow: 0 12px 24px rgb(196 82 15 / 0.32); }
.btn--navy:hover, .btn--ghost:hover { box-shadow: 0 10px 22px rgb(28 32 88 / 0.22); }

/* Cartes : élévation + ombre qui grandit, même courbe pour tout */
.card-link, .act-card, .event-row, .partner-list li, .others a {
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out),
              background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.card-link:hover, .act-card:hover, .event-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(42 47 122 / 0.06), 0 18px 40px rgb(42 47 122 / 0.14);
}
.others a:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(42 47 122 / 0.06), 0 14px 30px rgb(42 47 122 / 0.12); }

/* Zoom des photos : plus lent que la carte, même courbe */
.news-card .media img, .act-card .media img, .event-thumb img, .mosaic img, .gallery img, .portrait img {
  transition: transform 0.8s var(--ease-out);
}

/* Cartes « Nos services » / page Services : remplissage + texte synchronisés */
.service-card, .svc-card { transition: background-size 0.55s var(--ease-out), color 0.35s ease; }
.service-card h3, .service-card p, .service-card .more, .service-card .icon-badge,
.svc-card h3, .svc-card p, .svc-card .more, .svc-card .icon-badge {
  transition: color 0.35s ease 0.05s, background-color 0.35s ease 0.05s;
}
.svc-card.card-link:hover { transform: none; }

/* Avec « réduire les animations » : pas de déplacement ni de zoom, couleurs toujours douces */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .card-link:hover, .act-card:hover, .event-row:hover, .others a:hover,
  .partner-list li:hover, .act-card:hover .act-icon { transform: none; }
  .news-card:hover .media img, .act-card:hover .media img, .event-row:hover .event-thumb img,
  .mosaic figure:hover img, .gallery li:hover img { transform: none; }
  .more:hover svg, .card-link:hover .more svg { transform: none; }
  [dir='rtl'] .more svg, [dir='rtl'] .more:hover svg, [dir='rtl'] .card-link:hover .more svg { transform: scaleX(-1); }
}

/* 22. Cartes « Nos services » (accueil) : photo à bord ondulé + icône + flèche ===== */
.service-card {
  padding: 0; gap: 0; text-align: center; overflow: hidden;
  background-image: none;               /* le remplissage de couleur passe sur .service-body */
}
.service-card:hover, .service-card:focus-visible { color: inherit; }

/* Photo avec vague en bas */
.service-photo { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.service-card:hover .service-photo img { transform: scale(1.06); }
.service-photo::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 34px;
  background-color: var(--surface);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
  transition: background-color 0.25s ease;
}
.service-card:hover .service-photo::after, .service-card:focus-visible .service-photo::after {
  background-color: var(--fill); transition-delay: 0.4s;   /* la vague prend la couleur quand le remplissage l'atteint */
}

/* Corps de la carte : remplissage de couleur depuis le bas au survol */
.service-body {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 22px 24px;
  background-color: var(--surface);
  background-image: linear-gradient(var(--fill), var(--fill));
  background-repeat: no-repeat; background-position: bottom; background-size: 100% 0%;
  transition: background-size 0.55s var(--ease-out);
}
.service-card:hover .service-body, .service-card:focus-visible .service-body { background-size: 100% 100%; }

/* Grande icône ronde posée sur la vague */
.service-card .icon-badge {
  position: relative; z-index: 1; width: 72px; height: 72px; margin-block-start: -44px; border-radius: 50%;
  background: var(--fill); color: #fff; box-shadow: 0 8px 18px rgb(28 32 88 / 0.18);
}
.service-card:hover .icon-badge, .service-card:focus-visible .icon-badge { background: #fff; color: var(--fill); }

.service-card h3 { margin: 6px 0 0; font-size: 1.2rem; }
.service-cat { font-weight: 800; font-size: 0.9rem; color: var(--fill); transition: color 0.35s ease 0.05s; }
.service-card:hover .service-cat, .service-card:focus-visible .service-cat { color: rgb(255 255 255 / 0.92); }
.service-card p { margin: 0 0 8px; font-size: 0.95rem; }

/* Flèche ronde */
.service-go {
  display: grid; place-items: center; width: 40px; height: 40px; margin-block-start: auto; border-radius: 50%;
  background: var(--fill); color: #fff;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.45s var(--ease-out);
}
.service-card:hover .service-go, .service-card:focus-visible .service-go { background: #fff; color: var(--fill); transform: translateX(4px); }
[dir='rtl'] .service-go svg { transform: scaleX(-1); }
[dir='rtl'] .service-card:hover .service-go, [dir='rtl'] .service-card:focus-visible .service-go { transform: translateX(-4px); }

@media (prefers-reduced-motion: reduce) {
  .service-card:hover .service-photo img { transform: none; }
  .service-card:hover .service-go, [dir='rtl'] .service-card:hover .service-go { transform: none; }
}
@media (max-width: 560px) { .service-photo { aspect-ratio: 16 / 9; } }
