/* ==========================================================================
   SunRay — feuille de style
   Couleurs et typographie reprises du flyer de l’association.
   ========================================================================== */

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin-var.woff2") format("woff2-variations"),
       url("../fonts/lexend-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Arabe : Readex Pro, la version arabe de Lexend (chargée seulement s’il y a du texte arabe) */
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-arabic-var.woff2") format("woff2-variations"),
       url("../fonts/readex-pro-arabic-var.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --navy: #0A3A82;        /* bleu nuit du logo */
  --navy-deep: #072B63;
  --blue: #1F63B3;        /* bleu des pastilles */
  --pink: #D81F66;        /* rose des boutons */
  --pink-dark: #B8114F;
  --sun: #F7B02D;         /* soleil du logo */
  --sky: #E6F2FD;         /* fond bleu clair */
  --sky-line: #CFE3F8;
  --blush: #FDE8F1;       /* fond rose clair */
  --text: #0A3A82;
  --text-soft: #3D5A8A;
  --field-line: #5F88C2;

  --gutter: 20px;
  --maxw: 1180px;
  --header-h: 74px;
  --section-y: 64px;

  --sun-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-158 -162 316 134'%3E%3Cg fill='%23F7B02D'%3E%3Cpath d='M-94.74 -32 A100 100 0 0 1 94.74 -32 Z'/%3E%3Cpath d='M110.27 -29.52 L155.26 -39.93 L149.08 -58.95 L106.57 -40.93 Z M88.73 -71.82 L125.59 -99.63 L112.21 -114.49 L80.70 -80.74 Z M51.85 -101.70 L74.21 -142.10 L55.94 -150.23 L40.89 -106.58 Z M6.00 -114.00 L10.00 -160.00 L-10.00 -160.00 L-6.00 -114.00 Z M-40.89 -106.58 L-55.94 -150.23 L-74.21 -142.10 L-51.85 -101.70 Z M-80.70 -80.74 L-112.21 -114.49 L-125.59 -99.63 L-88.73 -71.82 Z M-106.57 -40.93 L-149.08 -58.95 L-155.26 -39.93 L-110.27 -29.52 Z'/%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 720px)  { :root { --gutter: 32px; --header-h: 86px; --section-y: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 98px; --section-y: 112px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Lexend", "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--pink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.partners :focus-visible,
.promise :focus-visible,
.site-footer :focus-visible { outline-color: var(--sun); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.55; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: .75em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: .5em 1.1em; font-size: 1rem; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--sky); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row-center { justify-content: center; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Choix de la langue ---------- */
.lang-bar { background: var(--navy-deep); color: #fff; font-size: .9375rem; }
.lang-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 46px;
}
.lang-bar .icon { width: 18px; height: 18px; color: var(--sun); }
.lang-switch ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.lang-switch a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lang-switch a[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;   /* opaque, so the logo's white background blends in */
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--sky-line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { display: block; width: auto; height: 62px; }
@media (min-width: 720px)  { .brand img { height: 72px; } }
@media (min-width: 1024px) { .brand img { height: 84px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 2px solid var(--sky-line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: inline; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 28px;
  background: #fff;
  border-top: 1px solid var(--sky-line);
  box-shadow: 0 24px 32px -24px rgba(10, 58, 130, .35);
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--sky);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--pink); }
.site-nav .btn { width: 100%; margin-top: 20px; }

/* Sans JavaScript : le menu reste visible sous le logo */
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
.no-js .site-nav { display: block; position: static; width: 100%; padding: 0; border: 0; box-shadow: none; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav,
  .no-js .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .no-js .header-inner { flex-wrap: nowrap; height: var(--header-h); padding-top: 0; padding-bottom: 0; }
  .site-nav ul { display: flex; gap: 26px; }
  .site-nav a:not(.btn) { padding: 8px 0; border: 0; font-size: 1rem; }
  .site-nav .btn { width: auto; margin: 0; }
}

/* ---------- Accueil ---------- */
.hero { padding: 28px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 40px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; }
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h1-main { display: block; color: var(--navy); }
.h1-sub {
  display: block;
  margin-top: .14em;
  color: var(--pink);
  font-size: .68em;
  letter-spacing: -0.02em;
}

.hero-tagline {
  display: inline-block;
  margin: 0 0 18px;
  padding: .45em 1.05em;
  border-radius: 999px;
  background: var(--blush);
  color: var(--pink-dark);
  font-size: clamp(1rem, .92rem + .45vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
}
.hero-lead { margin: 0; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 34em; }
.hero-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-weight: 600;
}
.hero-place .icon { color: var(--pink); }

/* Le soleil levant : la photo dans une arche, entourée des rayons du logo */
.sunrise {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 14.8% 14.8% 0;
}
.sunrise-rays {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: visible;
}
.ray { fill: var(--sun); }
.sunrise-photo {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 32px 32px;
  background: var(--sky);
  box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--sun);
}
@media (min-width: 720px) {
  .sunrise-photo { box-shadow: 0 0 0 8px #fff, 0 0 0 15px var(--sun); }
}
.sunrise-photo img { display: block; width: 100%; height: auto; }

.sunrise-bubble {
  position: absolute;
  left: 0;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 136px;
  height: 136px;
  margin: 0;
  padding: 18px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 5px #fff;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  --tilt: -8deg;
  transform: rotate(var(--tilt));
}
.sunrise-bubble::after {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--sun);
}
@media (min-width: 720px) {
  .sunrise-bubble { width: 168px; height: 168px; padding: 22px; font-size: .9375rem; }
}
@media (min-width: 1024px) {
  .sunrise-bubble { left: -14px; width: 180px; height: 180px; font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .sunrise-photo { animation: sunrise-rise 1s cubic-bezier(.2, .75, .25, 1) both; }
  .ray { animation: sunrise-ray .7s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
  .sunrise-bubble { animation: sunrise-pop .5s 1.1s cubic-bezier(.3, 1.4, .5, 1) both; }
}
@keyframes sunrise-rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes sunrise-ray  { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes sunrise-pop  { from { opacity: 0; transform: rotate(var(--tilt, -8deg)) scale(.7); } to { opacity: 1; transform: rotate(var(--tilt, -8deg)) scale(1); } }

/* ---------- Six verbes ---------- */
.verbs { padding: 22px 0; background: var(--sky); }
.verbs-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-size: clamp(1.0625rem, .8rem + 1.3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.verbs-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.verbs-list li { display: flex; align-items: center; }
.verbs-list li + li::before,
.verbs-list + .verbs-list::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: .48em;
  margin: 0 .42em;
  background: var(--sun-mark) center / contain no-repeat;
}
.verbs-list + .verbs-list::before { display: none; }
@media (min-width: 1200px) {
  .verbs-lines { flex-direction: row; justify-content: center; gap: 0; }
  .verbs-list + .verbs-list::before { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 46rem; margin-bottom: 40px; }

/* Pour qui */
.who-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .who-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}
.who-intro { margin-bottom: 14px; font-weight: 700; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: .5em 1.05em;
  border-radius: 999px;
  background: var(--blush);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}

/* Nos actions */
.actions { padding-top: 0; }
.action-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px)  { .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.action {
  padding: 12px 12px 28px;
  border-radius: 26px;
  background: var(--sky);
}
.action.tone-pink { background: var(--blush); }
.action-media { position: relative; margin-bottom: 44px; }
.action-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
.action-badge {
  position: absolute;
  left: 16px;
  bottom: -30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--sky);
  color: #fff;
}
.tone-pink .action-badge { background: var(--pink); box-shadow: 0 0 0 5px var(--blush); }
.action-badge .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.action h3 { margin: 0 0 10px; padding: 0 12px; }
.action p { margin: 0; padding: 0 12px; font-size: 1rem; line-height: 1.55; }

.actions-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 36px 0 0;
  text-align: center;
}
@media (min-width: 1200px) { .actions-more { flex-direction: row; justify-content: center; gap: 14px; } }
.actions-more::before {
  content: "";
  flex: none;
  width: 2.2em;
  height: 1em;
  background: var(--sun-mark) center / contain no-repeat;
}

/* Comment ça se passe */
.steps-section { background: var(--sky); }
.steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { position: relative; padding-left: 76px; min-height: 56px; }
.step-num {
  position: absolute;
  left: 0;
  top: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 58px;
  bottom: -30px;
  border-left: 2px dashed var(--field-line);
}
.steps h3 { margin: 0 0 8px; }
.steps p { margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .steps li { padding-left: 0; padding-top: 80px; }
  .step-num { top: 0; }
  .steps li:not(:last-child)::after {
    left: 72px;
    right: -28px;
    top: 27px;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--field-line);
  }
}
.steps-section .btn-row { margin-top: 48px; }

/* Promesse */
.promise { padding: 64px 0; background: var(--pink); color: #fff; text-align: center; }
.promise-heart { display: block; width: 44px; height: 44px; margin: 0 auto 16px; fill: #fff; }
.promise-text span { display: block; }
.promise-text {
  max-width: 21em;
  margin: 0 auto 16px;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.promise-sub { max-width: 38em; margin: 0 auto; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); }

/* L'association */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
}
.values { display: grid; gap: 32px; margin: 0; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 40px; } }
.value dt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.value-sun { width: 56px; height: 24px; fill: var(--sun); }
.value dd { margin: 8px 0 0; }

/* Partenaires */
.partners { background: var(--navy); color: #fff; }
.partners h2 { color: #fff; }
.partners p { max-width: 46em; }
.partners .lead { margin-bottom: 1em; }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
}
.contact-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact-list a,
.contact-list li > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--sky);
  color: var(--navy);
  text-decoration: none;
}
.contact-list a:hover { background: var(--sky-line); color: var(--navy); }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}
.contact-list li:first-child .contact-icon { background: var(--pink); }
.contact-label { display: block; color: var(--text-soft); font-size: .875rem; font-weight: 500; }
.contact-value {
  display: block;
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-form { padding: 28px 22px; border-radius: 28px; background: var(--sky); }
@media (min-width: 720px) { .contact-form { padding: 36px; } }
.contact-form h3 { margin: 0 0 20px; font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.optional { color: var(--text-soft); font-size: .9375rem; font-weight: 400; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--field-line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1.0625rem;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 46px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A3A82' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31, 99, 179, .3); outline-offset: 0; }
.contact-form .btn { width: 100%; margin-top: 4px; }
@media (min-width: 720px) { .contact-form .btn { width: auto; } }
.form-note { margin: 14px 0 0; color: var(--text-soft); font-size: .9375rem; }

/* ---------- Pied de page ---------- */
.site-footer { padding-top: 56px; background: var(--navy-deep); color: #fff; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}
.footer-logo { display: inline-block; padding: 8px 10px; border-radius: 22px; background: #fff; }
.footer-logo img { display: block; width: auto; height: 112px; }
.footer-brand p { margin: 12px 0 0; color: rgba(255, 255, 255, .85); font-weight: 600; }
.footer-contact,
.footer-nav ul { display: grid; align-content: start; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-contact li,
.footer-contact a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; color: #fff; }
.footer-contact .icon { color: var(--sun); }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-values {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.footer-values:first-child { margin-top: 0; padding-top: 0; background: none; }
.footer-values ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.footer-values li { display: flex; align-items: center; }
.footer-values li + li::before,
.footer-values ul + ul::before {
  content: "";
  flex: none;
  width: 2em;
  height: .9em;
  margin: 0 .9em 0 .7em;
  background: var(--sun-mark) center / contain no-repeat;
}
.footer-values ul + ul::before { display: none; }
@media (min-width: 720px) {
  .footer-values { flex-direction: row; justify-content: center; gap: 0; }
  .footer-values ul + ul::before { display: block; }
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 28px;
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: rgba(255, 255, 255, .82);
  font-size: .9375rem;
}
.footer-legal p { margin: 0; }
.footer-legal a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a[aria-current="page"] { font-weight: 700; text-decoration: none; }

/* ---------- Barre d'appel (mobile) ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--sky-line);
  box-shadow: 0 -10px 24px -14px rgba(10, 58, 130, .35);
  transition: transform .25s ease;
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.callbar-call { background: var(--pink); }
.callbar-mail { background: var(--navy); }
.callbar a:hover { color: #fff; }
.js .callbar { transform: translateY(110%); }
.js.show-callbar .callbar { transform: none; }
.nav-open .callbar,
.nav-open.show-callbar .callbar { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }
@media (max-width: 719px) {
  .site-footer { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .page-legal .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (min-width: 720px) { .callbar { display: none; } }

/* ---------- Mentions légales ---------- */
.legal { padding-top: 48px; padding-bottom: var(--section-y); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: 1.2em; }
.legal .todo { background: var(--blush); color: var(--pink-dark); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ---------- Arabe : lecture de droite à gauche ---------- */
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .nav-toggle { padding: 8px 12px 8px 16px; }
[dir="rtl"] .sunrise-bubble { --tilt: 8deg; left: auto; right: 0; }
@media (min-width: 1024px) { [dir="rtl"] .sunrise-bubble { left: auto; right: -14px; } }
[dir="rtl"] .action-badge { left: auto; right: 16px; }
[dir="rtl"] .steps li { padding-left: 0; padding-right: 76px; }
[dir="rtl"] .step-num { left: auto; right: 0; }
[dir="rtl"] .steps li:not(:last-child)::after { left: auto; right: 27px; border-left: 0; border-right: 2px dashed var(--field-line); }
@media (min-width: 900px) {
  [dir="rtl"] .steps li { padding-right: 0; }
  [dir="rtl"] .steps li:not(:last-child)::after { right: 72px; left: -28px; border-right: 0; }
}
[dir="rtl"] .field select { padding-right: 14px; padding-left: 46px; background-position: left 14px center; }
[dir="rtl"] .field input[type="tel"] { text-align: right; }
[dir="rtl"] .footer-values li + li::before,
[dir="rtl"] .footer-values ul + ul::before { margin: 0 .7em 0 .9em; }

/* L’écriture arabe est liée : jamais d’espacement entre les lettres */
html[lang="ar"] *,
html[lang="ar"] *::before,
html[lang="ar"] *::after { letter-spacing: normal !important; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .verbs-lines,
html[lang="ar"] .promise-text,
html[lang="ar"] .value dt,
html[lang="ar"] .contact-value,
html[lang="ar"] .step-num { font-weight: 700; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { line-height: 1.4; }
html[lang="ar"] .hero h1 { font-size: clamp(2rem, 1.25rem + 3.4vw, 3.5rem); line-height: 1.35; }
html[lang="ar"] .h1-sub { margin-top: .2em; font-size: .8em; }
html[lang="ar"] .lead,
html[lang="ar"] .hero-lead { line-height: 1.75; }
html[lang="ar"] .verbs-lines { line-height: 1.7; }
html[lang="ar"] .promise-text { line-height: 1.45; }
html[lang="ar"] .value dt { line-height: 1.4; }
html[lang="ar"] .sunrise-bubble { line-height: 1.5; }
html[lang="ar"] .footer-values { font-size: 1rem; text-transform: none; }

/* ---------- Événements ---------- */
.events-home { padding-top: 0; }
.events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: none;
}
.events-head h2 { margin-bottom: 0; }
.events-all { font-weight: 700; }
.event-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px)  { .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: var(--blush);
  color: var(--navy);
  text-decoration: none;
}
.event-card:hover { color: var(--navy); }
.event-card:hover .event-card-title { color: var(--pink); }
.event-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.event-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 26px; }
.event-card-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.event-summary { font-size: 1rem; line-height: 1.55; }
.event-date { margin: 0 0 6px; color: var(--pink-dark); font-weight: 700; }
.event-card .event-date { margin: 0; }
.event-place { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--text-soft); font-weight: 600; }
.event-card .event-place { margin: 0; }
.event-place .icon { color: var(--pink); }

.events-page { padding-top: 48px; padding-bottom: var(--section-y); }
.events-page h1 { margin-bottom: 12px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.events-page > h2 { margin: 56px 0 24px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.event-detail {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 28px;
  background: var(--sky);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 900px) {
  .event-detail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; padding: 32px; align-items: start; }
  .event-detail > .event-detail-text:only-child { grid-column: 1 / -1; }
}
.event-detail.is-past { background: #F1F5FA; }
.event-detail-img { display: block; width: 100%; height: auto; border-radius: 18px; }
.event-detail h3 { margin: 0 0 10px; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.event-text > :first-child { margin-top: 0; }
.event-text img { max-width: 100%; height: auto; border-radius: 12px; }
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.event-gallery a { display: block; overflow: hidden; border-radius: 12px; }
.event-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.events-empty { padding: 24px; border-radius: 20px; background: var(--blush); }
.event-card-noimg { display: flex; align-items: center; justify-content: center; background: #FFF3D6; }
.event-card-noimg svg { width: 38%; height: auto; aspect-ratio: 316 / 134; fill: var(--sun); }
@media (min-width: 1080px) {
  .site-nav a:not(.btn) { white-space: nowrap; }
}
@media (min-width: 1080px) and (max-width: 1279px) {
  .site-nav, .site-nav ul { gap: 20px; }
}
