/* =====================================================================
   Du peps : une note écrite à la main dans l'accueil, des boutons qui
   répondent avec un petit rebond, des photos qui penchent au survol,
   un « أهلا » sur le logo et des confettis quand on rejoint l'équipe.
   Tout reste court et se coupe avec « mouvement réduit ».
   ===================================================================== */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* ------------------------------------------------------------------ accueil : « إيجا معانا! » */
.hero .hero-actions { position: relative; }
.hero-note { position: absolute; top: 50%; inset-inline-end: calc(100% + 14px); margin: 0; pointer-events: none;
  display: flex; align-items: flex-start; gap: 0; translate: 0 -70%; width: max-content; }
.hero-note > * { flex: none; }
.hero-note span { display: block; font-family: "Aref Ruqaa", var(--font-ar-display), serif !important; font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1; color: #f2a93b; rotate: -8deg; white-space: nowrap;
  text-shadow: 0 2px 16px rgba(5, 20, 40, .55); opacity: 0; translate: 0 8px; }
.hero-note svg { width: 92px; height: 54px; margin-top: 18px; overflow: visible; }
.hero-note path { fill: none; stroke: #f2a93b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 160; stroke-dashoffset: 160; }
html[dir="ltr"] .hero-note { flex-direction: row-reverse; }
html[dir="ltr"] .hero-note svg { scale: -1 1; }
.hero.on .hero-note span { animation: noteIn .55s var(--spring) .3s forwards; }
.hero.on .hero-note path:first-child { animation: noteDraw .45s ease-out .55s forwards; }
.hero.on .hero-note path:last-child { animation: noteDraw .2s ease-out .95s forwards; }
@keyframes noteIn { to { opacity: 1; translate: 0 0; } }
@keyframes noteDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 1100px) {
  .hero-note { position: static; translate: none; justify-content: center; width: 100%; order: -1; margin-bottom: 4px; }
  .hero-note svg { display: none; }
}

/* ------------------------------------------------------------------ boutons : un rebond qui répond */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cta-main, .btn-primary, .dock-join, button[type="submit"] {
    transition: scale .45s var(--spring), translate .45s var(--spring), box-shadow .3s, background-color .3s !important; }
  .cta-main:hover, .btn-primary:hover, button[type="submit"]:hover { scale: 1.06; }
  .cta-main:active, .btn-primary:active, button[type="submit"]:active { scale: .95; transition-duration: .12s !important; }
  .cta-glass:hover, .cta:not(.cta-main):hover { scale: 1.04; transition: scale .45s var(--spring), background-color .3s, border-color .3s; }

  /* photos : elles penchent un peu, chacune de son côté */
  .albums .album, .news-grid .post, .ev-grid .ev:not(.ev-onerun) { transition-property: translate, rotate, scale, box-shadow, filter !important;
    transition-timing-function: var(--spring) !important; transition-duration: .55s !important; }
  .albums .album:nth-child(odd):hover, .news-grid .post:nth-child(odd):hover,
  .ev-grid .ev:nth-child(odd):not(.ev-onerun):hover { rotate: -1.4deg; }
  .albums .album:nth-child(even):hover, .news-grid .post:nth-child(even):hover,
  .ev-grid .ev:nth-child(even):hover { rotate: 1.4deg; }

  /* les lignes en derja : un petit coup de stylo au survol */
  main .derja { transition: rotate .5s var(--spring), scale .5s var(--spring); }
  main section:hover > .wrap .derja, main section .derja:hover { rotate: -4deg; scale: 1.05; }
}

/* ------------------------------------------------------------------ logo : « أهلا وسهلا! » */
header.top .brand { position: relative; }
.brand-hello { position: absolute; top: calc(100% + 8px); inset-inline-start: 4px; z-index: 5; pointer-events: none;
  padding: 6px 14px 8px; border-radius: 16px 16px 16px 4px; background: #f2a93b; color: #0d3b66; white-space: nowrap;
  font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  box-shadow: 0 10px 24px -12px rgba(5, 20, 40, .55); opacity: 0; scale: .6; rotate: -6deg; transform-origin: top left;
  transition: opacity .2s, scale .45s var(--spring), rotate .45s var(--spring); }
html[dir="rtl"] .brand-hello { border-radius: 16px 16px 4px 16px; transform-origin: top right; }
header.top .brand:hover .brand-hello, header.top .brand:focus-visible .brand-hello, .brand-hello.show { opacity: 1; scale: 1; rotate: -3deg; }

/* ------------------------------------------------------------------ confettis */
canvas.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

@media (prefers-reduced-motion: reduce) {
  .hero-note span { opacity: 1; translate: none; animation: none !important; }
  .hero-note path { stroke-dashoffset: 0; animation: none !important; }
}

/* =====================================================================
   Deuxième passe : titres vivants, ombres teintées de bleu, photos qui
   se dévoilent, survols qui répondent.
   ===================================================================== */
/* titres : chaque mot monte et se pose, l'un après l'autre */
main section h2.split .tw { display: inline-block; opacity: 0; translate: 0 .6em; rotate: 5deg; filter: blur(5px);
  transition: opacity .6s ease, translate .9s var(--spring), rotate .9s var(--spring), filter .6s ease;
  transition-delay: calc(var(--i) * 80ms); }
html[dir="rtl"] main section h2.split .tw { rotate: -5deg; }
main section h2.split.in .tw { opacity: 1; translate: 0 0; rotate: 0deg; filter: none; }

/* ombres : en couches, teintées du bleu des barques plutôt que du gris */
:root {
  --sh-rest: 0 1px 2px rgba(13, 59, 102, .06), 0 10px 22px -14px rgba(13, 59, 102, .22), 0 26px 50px -34px rgba(0, 151, 215, .32);
  --sh-lift: 0 2px 4px rgba(13, 59, 102, .07), 0 22px 40px -18px rgba(13, 59, 102, .3), 0 46px 80px -40px rgba(0, 151, 215, .5);
}
main .news-grid .post, main .faq details, main .pillars .area, main .reach-item, main .partner, main .contact form {
  box-shadow: var(--sh-rest) !important; transition: box-shadow .5s ease, translate .55s var(--spring), rotate .55s var(--spring), scale .55s var(--spring) !important; }
@media (hover: hover) {
  main .news-grid .post:hover, main .faq details:hover, main .pillars .area:hover, main .reach-item:hover, main .partner:hover {
    box-shadow: var(--sh-lift) !important; translate: 0 -6px; }
  main .faq details:hover { translate: 0 -3px; }
}
main .faq details[open] { box-shadow: var(--sh-lift) !important; }

/* photos : elles se dévoilent en arrivant à l'écran */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main .news-grid .post img, main .albums .album-cover img:first-child, main .albums .album:not(.album-slides) .album-cover img {
      animation: photoIn linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}
@keyframes photoIn { from { clip-path: inset(14% 10% 14% 10% round 22px); transform: scale(1.18); filter: saturate(.4) brightness(1.1); }
  to { clip-path: inset(0 round 0); transform: none; filter: none; } }

/* liens et bouton secondaire : la couleur glisse à l'intérieur */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero .cta-glass { background-image: linear-gradient(#f2a93b, #f2a93b) !important; background-size: 0% 100% !important; background-repeat: no-repeat !important;
    background-position: 100% 0 !important; transition: background-size .45s cubic-bezier(.7,0,.2,1), color .3s, scale .45s var(--spring), border-color .3s !important; }
  html[dir="ltr"] .hero .cta-glass { background-position: 0 0 !important; }
  .hero .cta-glass:hover { background-size: 100% 100% !important; color: #0d3b66 !important; border-color: #f2a93b !important; }
  main section p a:not(.btn):not(.cta) { transition: color .3s; }
  main section p a:not(.btn):not(.cta):hover { color: #f2a93b; }
}

/* =====================================================================
   Couleurs : la page blanche porte des panneaux de couleur, tous pris au
   port de Kélibia (nuit, bleu JCI, turquoise de Mansoura, or des barques).
   Les gris pâles disparaissent ; chaque panneau a sa teinte et son accent.
   ===================================================================== */
main > section.team, main > section.faq, main > section.history, main > section.join {
  border-radius: clamp(28px, 4vw, 56px) !important; margin: 0 clamp(8px, 1.4vw, 22px) clamp(28px, 3.4vw, 52px) !important;
  overflow: clip; isolation: isolate; }

main > section.team    { --tone: #c46a0a; --derja: #c46a0a; background: #fff1d9 !important; }
main > section.faq     { --tone: #0e8a84; --derja: #0e8a84; background: #dff4f1 !important; }
main > section.history { --tone: #f2a93b; }
main > section.news    { --tone: #0097d7; }
main > section.trainings { --tone: #0097d7; }
main > section.contact { --tone: #0d3b66; background: #fff !important; }
main > section.team .rip-deco, main > section.faq .rip-deco { display: none !important; }

/* chaque panneau garde son accent : ombres, liens, puces */
main > section.team, main > section.faq { --sh-rest: 0 1px 2px rgba(13,59,102,.06), 0 12px 26px -16px color-mix(in srgb, var(--tone) 45%, transparent), 0 30px 56px -36px color-mix(in srgb, var(--tone) 55%, transparent);
  --sh-lift: 0 2px 4px rgba(13,59,102,.07), 0 24px 44px -18px color-mix(in srgb, var(--tone) 55%, transparent), 0 50px 84px -40px color-mix(in srgb, var(--tone) 70%, transparent); }
main > section.faq details { background: #fff !important; border-color: transparent !important; }
main > section.faq details summary::marker { color: var(--tone); }
main > section.faq details[open] summary { color: var(--tone) !important; }
main > section.team a:not(.btn):not(.cta), main > section.faq a:not(.btn):not(.cta) { color: var(--tone); }

/* =====================================================================
   Ruban de photos : un bandeau penché qui fait défiler nos moments,
   ponctué de mots écrits à la main. Pause au survol.
   ===================================================================== */
.ribbon { position: relative; overflow: hidden; padding: clamp(26px, 3vw, 44px) 0; margin: 0 0 clamp(24px, 3vw, 48px); }
.rb-band { width: 112vw; margin-inline-start: -6vw; rotate: -2.2deg; background: #0d3b66; padding: clamp(14px, 1.6vw, 22px) 0;
  box-shadow: 0 24px 50px -30px rgba(13, 59, 102, .65); }
html[dir="ltr"] .rb-band { rotate: 2.2deg; }
.rb-track { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 26px); width: max-content; margin: 0; padding: 0 0 0 clamp(16px, 1.8vw, 26px);
  list-style: none; direction: ltr; animation: rbMove 70s linear infinite; will-change: transform; }
.ribbon:hover .rb-track, .ribbon:focus-within .rb-track { animation-play-state: paused; }
@keyframes rbMove { to { transform: translate3d(-50%, 0, 0); } }
.rb-photo img { display: block; height: clamp(110px, 12vw, 168px); width: auto; border-radius: 14px; border: 3px solid #fff;
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .55); rotate: -2.5deg; transition: rotate .5s var(--spring), scale .5s var(--spring); }
.rb-photo:nth-child(3n + 1) img { rotate: 2deg; }
.rb-photo:nth-child(3n + 2) img { rotate: -1deg; }
.rb-photo:hover img { rotate: 0deg; scale: 1.1; }


@media (prefers-reduced-motion: reduce) {
  .rb-track { animation: none; }
  .rb-band { overflow-x: auto; scrollbar-width: none; }
}

/* =====================================================================
   Les panneaux de couleur s'ouvrent en arrivant : ils grandissent un peu
   et leurs coins se détendent.
   ===================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > section.projects, main > section.team, main > section.faq, main > section.history, main > section.join {
      animation: panelOpen linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes panelOpen { from { scale: .93; border-radius: 90px; } to { scale: 1; } }

/* =====================================================================
   Finitions : une seule échelle de titres, plus de halos ni d'anneaux
   décoratifs, un focus et une sélection aux couleurs de la ville.
   ===================================================================== */
/* plus de halos flous ni d'anneaux : les couleurs franches suffisent */
main > section.projects::before, main > section.trainings::before { content: none !important; background: none !important; }
main .rip-deco, footer.footer .rip-deco { display: none !important; }

/* titres de section : même taille partout, sauf l'encart partenaire */
main > section > .wrap h2, main > section .section-head h2, main > section .projects-head h2, main > section .yr-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem) !important; line-height: 1.12 !important; letter-spacing: -.01em; }
html[lang="ar"] main > section h2 { letter-spacing: 0; }
main > section .partner h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important; }

/* sous-titres : une seule voix */
main > section .section-head > p:not(.derja), main > section .projects-head > p:not(.derja), main > section .yr-head > p:not(.derja) {
  max-width: 42rem; font-size: clamp(1.02rem, 1.2vw, 1.14rem) !important; line-height: 1.75 !important; }

/* sélection de texte et focus clavier : l'or des barques */
::selection { background: #f2a93b; color: #0d3b66; }
:focus-visible { outline: 3px solid #f2a93b !important; outline-offset: 3px; border-radius: 6px; }

/* =====================================================================
   Pied de page refait (.fx) : un dernier appel en grand, puis trois
   colonnes nettes avec icônes, et le grand nom rempli de Kélibia.
   ===================================================================== */
footer.footer.fx { padding-top: clamp(56px, 6vw, 88px) !important; color: rgba(255,255,255,.78) !important; }































/* le grand nom : la signature au-dessus des lettres, plus sur elles */







footer.footer.fx { padding-top: clamp(44px, 4.6vw, 68px) !important; }





/* ----- pied de page compact : tout tient en trois lignes fines au-dessus du grand nom ----- */
footer.footer.fx { padding-top: clamp(28px, 3vw, 40px) !important; }


















/* =====================================================================
   Pied de page (.fy) : le nom de la ville en contour doré, le fort posé
   dessus comme un objet ; une ligne d'infos, une ligne fine. Rien d'autre.
   ===================================================================== */
footer.footer.fy { background: #0b2a4a !important; padding: clamp(36px, 4.5vw, 64px) 0 22px !important; overflow: hidden; color: rgba(255,255,255,.75) !important; }
.fy-mark { position: relative; text-align: center; margin: 0 0 clamp(14px, 2vw, 26px); direction: ltr; }
footer.footer.fy .fy-word { margin: 0 !important; font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; font-weight: 800 !important;
  font-size: clamp(84px, 22vw, 340px) !important; line-height: .9 !important; letter-spacing: -.05em !important; white-space: nowrap;
  color: transparent !important; -webkit-text-stroke: 1.3px rgba(242, 169, 59, .8); user-select: none; max-width: none !important; }

@keyframes fortFloat { 50% { transform: translateY(-10px) rotate(-1deg); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    footer.footer.fy .fy-word { animation: fyWord linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}
@keyframes fyWord { from { -webkit-text-stroke-color: rgba(242,169,59,.1); transform: translateY(18%); } to { -webkit-text-stroke-color: rgba(242,169,59,.8); transform: none; } }




















/* le nom complet, superposé : « JCI » en or plein posé sur « Kélibia » en contour ; le fort flotte devant */
footer.footer.fy .fy-word { display: grid; justify-items: center; line-height: .8 !important; }


footer.fy .fy-mark { padding-top: 4px; }


/* ----- le grand nom, version sobre : un trait fin ; sous un cercle de lumière (la souris, ou une lente dérive)
         les lettres laissent voir Kélibia — remparts, maisons blanches, la mer ----- */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
footer.fy .fy-mark { position: relative; padding: 0; margin: 0 0 clamp(14px, 2vw, 24px); --r: clamp(120px, 15vw, 230px); cursor: default; }
footer.footer.fy .fy-word { display: block; margin: 0 !important; font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; font-weight: 800 !important;
  font-size: clamp(60px, 14.6vw, 230px) !important; line-height: .92 !important; letter-spacing: -.045em !important; white-space: nowrap; text-align: center;
  user-select: none; max-width: none !important; }
footer.footer.fy .fy-line { color: transparent !important; -webkit-text-stroke: 1px rgba(255, 255, 255, .26); animation: none; }
footer.footer.fy .fy-photo { position: absolute; inset: 0; color: transparent !important; -webkit-text-stroke: 0;
  background: url("../img/photos/kelibia-remparts-mer.jpg") 50% 62% / cover no-repeat; -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 35%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 35%, transparent 100%);
  animation: fyDrift 16s ease-in-out infinite alternate; }
footer.fy .fy-mark.live .fy-photo { animation: none; }
@keyframes fyDrift { 0% { --mx: 12%; --my: 40%; } 35% { --mx: 46%; --my: 70%; } 70% { --mx: 70%; --my: 35%; } 100% { --mx: 90%; --my: 60%; } }
@media (prefers-reduced-motion: reduce) { footer.footer.fy .fy-photo { animation: none; --mx: 50%; --my: 50%; --r: 60vw; } }

/* =====================================================================
   Photos « premium » : un seul étalonnage pour toutes les photos de la page
   (contraste un peu plus riche, couleurs tenues, une pointe de chaleur),
   pour que des photos venues de partout racontent la même histoire.
   Au survol, la photo reprend ses couleurs franches.
   ===================================================================== */
:root { --grade: contrast(1.08) saturate(.9) sepia(.07) brightness(1.02); }
main .albums .album-cover img, main .news-grid .post img, main .ev-grid .ev > img, main .rb-photo img,
main .trs-frame img, main .about img, main .team img, main .network img {
  filter: var(--grade); transition: filter .6s ease, scale 1.1s var(--ease, ease), rotate .5s var(--spring) !important; }
@media (hover: hover) {
  main .albums .album:hover .album-cover img, main .news-grid .post:hover img,
  main .ev-grid .ev:hover > img, main .rb-photo:hover img, main .trs-frame:hover img { filter: none; }
}
@keyframes photoIn { from { clip-path: inset(14% 10% 14% 10% round 22px); transform: scale(1.18); filter: saturate(.4) brightness(1.1); }
  to { clip-path: inset(0 round 0); transform: none; filter: var(--grade); } }

/* =====================================================================
   Titres en deux lignes décalées, comme une mise en page de magazine :
   la seconde ligne part plus loin que la première.
   ===================================================================== */
main section h2.split .tl { display: block; }
main section h2.split .tl + .tl { padding-inline-start: clamp(.9em, 6vw, 2.2em); }

/* =====================================================================
   « أوشي » : le « n'est-ce pas ? » de Kélibia. Un panneau or des barques,
   le mot écrit en grand à la main, une phrase à confirmer, un gros bouton.
   ===================================================================== */

.ou-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 72px); align-items: center; }
.ou-word { margin: 0; font-family: "Aref Ruqaa", var(--font-ar-display), serif !important; font-weight: 700; line-height: .9;
  font-size: clamp(5rem, 13vw, 12rem); color: #0d3b66; rotate: -6deg; text-align: center; user-select: none;
  text-shadow: 6px 8px 0 rgba(255, 255, 255, .35); }
.ou-word.ou-pop { animation: ouPop .7s var(--spring); }
@keyframes ouPop { 0% { scale: 1; rotate: -6deg; } 35% { scale: 1.18; rotate: 4deg; } 100% { scale: 1; rotate: -6deg; } }
.ou-count { margin: 0 0 10px; font-weight: 800; font-size: .9rem; color: rgba(13, 59, 102, .6); letter-spacing: .04em; }


.ou-say.ou-in { animation: ouIn .55s var(--spring) both; }
.ou-say.ou-out { animation: ouOut .3s ease-in both; }
@keyframes ouIn { from { opacity: 0; translate: 0 26px; rotate: 1.5deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes ouOut { to { opacity: 0; translate: 0 -22px; } }

.ou-yes { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 58px; padding: 0 34px; border-radius: 999px;
  background: #0d3b66; color: #fff; font-weight: 800; font-size: 1.15rem; box-shadow: 0 16px 30px -16px rgba(13, 59, 102, .7);
  transition: scale .45s var(--spring), rotate .45s var(--spring), box-shadow .3s; }
html[lang="ar"] .ou-yes { font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-size: 1.5rem; padding-bottom: 6px; }
.ou-yes:hover { scale: 1.07; rotate: -2deg; }
.ou-yes:active { scale: .94; }
.ou-yes:focus-visible, .ou-skip:focus-visible { outline: 3px solid #0d3b66 !important; outline-offset: 4px; }
.ou-skip { all: unset; cursor: pointer; font-weight: 700; color: #0d3b66; border-bottom: 2px solid rgba(13, 59, 102, .35); padding-bottom: 2px; transition: border-color .3s; }
.ou-skip:hover { border-color: #0d3b66; }
.ouchi.ou-last .ou-yes { background: #fff; color: #0d3b66; }

@media (max-width: 860px) {
  .ou-inner { grid-template-columns: 1fr; text-align: start; }
  .ou-word { font-size: 5.5rem; text-align: start; }
}
@media (prefers-reduced-motion: reduce) { .ou-say.ou-in, .ou-say.ou-out, .ou-word.ou-pop { animation: none; } }
html[dir="rtl"] .ou-count { text-align: right; }

/* ----- « أوشي » plus créatif : la couleur du panneau change à chaque phrase, un polaroid tombe derrière le mot,
         chaque « أوشي! » colle un autocollant ----- */

.ou-inner { position: relative; }

.ou-snap { position: absolute; margin: 0; width: clamp(150px, 15vw, 220px); aspect-ratio: 4 / 5; padding: 10px 10px 34px; background: #fff; border-radius: 6px;
  box-shadow: 0 22px 40px -18px rgba(13, 59, 102, .55); rotate: var(--tilt, -6deg); inset-inline-start: 4%; top: 2%; z-index: 0; }
.ou-snap img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; filter: var(--grade); }
.ou-snap.ou-drop { animation: ouDrop .75s var(--spring) both; }
@keyframes ouDrop { from { opacity: 0; translate: 0 -60px; rotate: calc(var(--tilt, -6deg) * -2); scale: .85; } to { opacity: 1; translate: 0 0; rotate: var(--tilt, -6deg); scale: 1; } }
.ou-word { position: relative; z-index: 1; }
.ou-mark { display: inline-block; transition: color .3s; }
.ou-word.ou-pop .ou-mark { color: #fff; }
.ou-stickers { position: absolute; inset-inline: 0; bottom: calc(-1 * clamp(70px, 7vw, 104px)); height: clamp(70px, 7vw, 100px); margin: 0; padding: 0; list-style: none; pointer-events: none; }
.ou-stickers li { position: absolute; inset-inline-start: var(--x); bottom: 10px; padding: 8px 18px 10px; border-radius: 999px; background: var(--c); color: var(--fg);
  font-weight: 800; font-size: clamp(.95rem, 1.2vw, 1.1rem); white-space: nowrap; rotate: var(--r);
  box-shadow: 0 10px 20px -10px rgba(13, 59, 102, .55); animation: ouStick .6s var(--spring) both; }
html[lang="ar"] .ou-stickers li { font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.ou-stickers li:nth-child(2n) { bottom: 34px; }
.ou-stickers li:nth-child(3n) { bottom: 0; }
@keyframes ouStick { from { opacity: 0; scale: 1.8; translate: 0 -40px; } 70% { opacity: 1; } to { opacity: 1; scale: 1; translate: 0 0; } }
@media (max-width: 860px) {
  
  .ou-snap { width: 120px; inset-inline-start: auto; inset-inline-end: 4%; top: 6%; }
  .ou-stickers li { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .ou-snap.ou-drop, .ou-stickers li { animation: none; }  }

.ou-snap { width: clamp(130px, 12vw, 180px); inset-inline-start: 0; top: auto; bottom: -4%; }
.ou-word { justify-self: end; margin-inline-end: 2%; }
@media (max-width: 860px) {  .ou-word { justify-self: start; } .ou-snap { inset-inline-start: auto; inset-inline-end: 2%; bottom: auto; top: 4%; } }
footer.footer.fy .fy-photo { background-image: url("../img/photos/kelibia/paddle-sm.jpg") !important; background-position: 50% 50% !important; }
.rb-band { direction: ltr; }

/* ----- ruban : contenu dans un panneau arrondi comme les autres sections, boucle sans saut ----- */
main > .ribbon { margin: 0 clamp(8px, 1.4vw, 22px) clamp(28px, 3.4vw, 52px) !important; padding: 0 !important; border-radius: clamp(28px, 4vw, 56px);
  background: #0d3b66; overflow: hidden; isolation: isolate; box-shadow: 0 24px 50px -34px rgba(13, 59, 102, .6); }
main > .ribbon .rb-band, html[dir="ltr"] main > .ribbon .rb-band { width: auto; margin: 0; rotate: none; background: none; box-shadow: none; padding: clamp(22px, 2.6vw, 34px) 0; direction: ltr; }
main > .ribbon .rb-track { gap: 0 !important; padding: 0 !important; }
main > .ribbon .rb-track > li { margin-right: clamp(16px, 1.8vw, 26px); flex: none; }

/* ----- ruban : des polaroids avec une légende en derja écrite à la main ; un titre clair ----- */
main > .ribbon { padding-top: clamp(26px, 3vw, 40px) !important; }
.rb-head { display: flex; align-items: baseline; gap: 6px 22px; flex-wrap: wrap; padding: 0 clamp(22px, 4vw, 64px); }
html[dir="ltr"] .rb-head { flex-direction: row; }
.rb-title { margin: 0; font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; color: #f2a93b; rotate: -3deg; }

main > .ribbon .rb-band { padding-top: clamp(14px, 1.8vw, 22px) !important; }
main > .ribbon .rb-photo { display: flex; flex-direction: column; background: #fff; padding: 8px 8px 0; border-radius: 8px;
  box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .6); rotate: -2.5deg; transition: rotate .5s var(--spring), scale .5s var(--spring); }
main > .ribbon .rb-photo:nth-child(3n + 1) { rotate: 2deg; }
main > .ribbon .rb-photo:nth-child(3n + 2) { rotate: -1deg; }
main > .ribbon .rb-photo:hover { rotate: 0deg; scale: 1.07; z-index: 2; }
main > .ribbon .rb-photo img { border: 0; border-radius: 4px; rotate: none !important; scale: none !important; height: clamp(120px, 12vw, 170px); }


main > .ribbon .rb-photo { width: min-content; } 

/* =====================================================================
   Ruban v3 : deux bandes qui se croisent, coupées proprement dans la page.
   Derrière : l'or des barques, de grands mots (coufique + écrit à la main).
   Devant : une bande de verre dépoli, translucide, avec les polaroids.
   ===================================================================== */
main > .ribbon { margin: 0 0 clamp(20px, 3vw, 44px) !important; padding: clamp(26px, 3vw, 40px) 0 clamp(10px, 2vw, 24px) !important;
  background: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: hidden; isolation: isolate; }
main > .ribbon .rb-head { padding: 0 max(16px, calc((100vw - 1180px) / 2)); }
main > .ribbon .rb-title { color: #f2a93b; text-shadow: 0 2px 0 #0d3b66; }

.rb-cross { position: relative; height: clamp(310px, 31vw, 420px); }
main > .ribbon .rb-cross .rb-band { position: absolute; left: -6%; width: 112%; top: 50%; margin: 0; direction: ltr; overflow: visible; }
main > .ribbon .rb-cross .rb-gold { z-index: 1; rotate: 4deg; translate: 0 -112%; background: #f2a93b !important; padding: 14px 0 !important;
  box-shadow: 0 20px 36px -22px rgba(170, 95, 5, .75), inset 0 1px 0 rgba(255,255,255,.4); }
main > .ribbon .rb-cross .rb-glass { z-index: 2; rotate: -3deg; translate: 0 -38%; padding: 16px 0 !important;
  background: rgba(13, 59, 102, .52) !important; -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  border-block: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 34px 60px -30px rgba(13, 59, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .12) !important; }
.rb-gold .rb-track { animation-duration: 55s; animation-direction: reverse; align-items: center; }
.rb-w { margin-right: clamp(26px, 3vw, 48px); white-space: nowrap; line-height: 1.1; }
.rb-w-k { font-family: var(--font-ar-display); font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.5rem); color: #0d3b66; }
.rb-w-h { font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); color: #fff;
  text-shadow: 0 3px 0 rgba(13, 59, 102, .35); rotate: -4deg; padding-bottom: 6px; }
main > .ribbon .rb-glass .rb-photo { background: rgba(255, 255, 255, .92); box-shadow: 0 18px 30px -14px rgba(5, 20, 40, .7); }
.ribbon:hover .rb-track { animation-play-state: paused; }
@media (max-width: 860px) {
  .rb-cross { height: 290px; }
  main > .ribbon .rb-photo img { height: 110px !important; }
  
}
/* les deux bandes se rejoignent à un bout : on lit tous les mots, et le verre passe sur l'or */
.rb-cross { height: clamp(340px, 33vw, 450px); }
main > .ribbon .rb-cross .rb-gold { rotate: -3deg; translate: 0 -150%; }
main > .ribbon .rb-cross .rb-glass { rotate: 2.5deg; translate: 0 -30%;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%), rgba(13, 59, 102, .58) !important; }
@media (max-width: 860px) { main > .ribbon .rb-cross .rb-gold { translate: 0 -175%; } }
main > .ribbon .rb-cross .rb-glass { translate: 0 -42%;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 36%), rgba(13, 59, 102, .74) !important; }
.rb-cross { height: clamp(360px, 35vw, 480px); }
@media (max-width: 860px) { main > .ribbon .rb-cross .rb-gold { translate: 0 -250%; } .rb-cross { height: 330px; } }

/* =====================================================================
   Ruban v4 : les polaroids sont accrochés à un fil par des pinces à linge,
   ils se balancent doucement ; pas de légende ; quelques griffonnages
   (étoiles dorées, un cœur rouge dessiné à la main).
   ===================================================================== */
main > .ribbon .rb-cross .rb-glass { padding: 34px 0 22px !important; }
main > .ribbon .rb-cross .rb-glass::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; z-index: 1;
  background: rgba(255, 255, 255, .75); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
main > .ribbon .rb-glass .rb-track { align-items: flex-start; position: relative; z-index: 2; }
main > .ribbon .rb-glass .rb-photo { position: relative; width: auto; padding: 8px 8px 30px; border-radius: 3px; background: #fbfbf8;
  box-shadow: 0 16px 26px -14px rgba(5, 20, 40, .75); transform-origin: 50% -6px; rotate: none;
  animation: rbSway 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -1s); }
main > .ribbon .rb-glass .rb-photo:nth-child(4n + 1) { --d: .4; --a: 3deg; }
main > .ribbon .rb-glass .rb-photo:nth-child(4n + 2) { --d: 1.7; --a: -2.5deg; }
main > .ribbon .rb-glass .rb-photo:nth-child(4n + 3) { --d: 2.9; --a: 2deg; }
main > .ribbon .rb-glass .rb-photo:nth-child(4n) { --d: 3.6; --a: -3.5deg; }
@keyframes rbSway { from { rotate: var(--a, 2deg); } to { rotate: calc(var(--a, 2deg) * -.6); } }
main > .ribbon .rb-glass .rb-photo:hover { animation-play-state: paused; scale: 1.08; z-index: 3; }
main > .ribbon .rb-glass .rb-photo img { width: clamp(110px, 10.5vw, 150px); height: clamp(110px, 10.5vw, 150px) !important; object-fit: cover; border-radius: 1px; }
/* la pince à linge, en bois */
.rb-pin { position: absolute; top: -16px; left: 50%; width: 11px; height: 30px; translate: -50% 0; border-radius: 2px; z-index: 3;
  background: linear-gradient(90deg, #b98a5e 0 46%, #8f6440 46% 54%, #c99b6c 54%); box-shadow: 0 3px 5px -2px rgba(0,0,0,.45); }
.rb-photo:nth-child(odd) .rb-pin { rotate: -4deg; }
/* griffonnages */
.rb-doodle { position: absolute; pointer-events: none; }
.rb-stars { inset: 0; }
.rb-stars i { position: absolute; width: 18px; height: 18px; background: #f2b631; filter: drop-shadow(0 1px 1px rgba(120, 80, 0, .45));
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.rb-stars i:nth-child(1) { top: -7px; right: 14px; rotate: 12deg; }
.rb-stars i:nth-child(2) { top: 42%; left: -8px; width: 14px; height: 14px; rotate: -18deg; }
.rb-stars i:nth-child(3) { bottom: 6px; right: 26%; width: 15px; height: 15px; rotate: 8deg; }
.rb-heart { right: 8px; bottom: 5px; width: 22px; height: 20px; }
.rb-heart svg { width: 100%; height: 100%; overflow: visible; }
.rb-heart path { fill: none; stroke: #c8372d; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { main > .ribbon .rb-glass .rb-photo { animation: none; rotate: var(--a, 2deg); } }
@media (max-width: 860px) { main > .ribbon .rb-glass .rb-photo img { width: 100px; height: 100px !important; } }

/* le petit logo JCI posé comme un autocollant sur certains polaroids */
.rb-logo { top: -8px; right: -9px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 8px -3px rgba(5, 20, 40, .5); rotate: 14deg; }
.rb-logo img { width: 20px; height: 20px; object-fit: contain; border: 0 !important; }
.rb-photo:nth-child(even) .rb-logo { right: auto; left: -9px; top: auto; bottom: 20px; rotate: -12deg; }
html:not([lang="ar"]) main > .ribbon .rb-title { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.02em; rotate: -2deg; }
main > .ribbon .rb-glass .rb-photo .rb-logo img { width: 20px !important; height: 20px !important; object-fit: contain; border-radius: 0; filter: none; }

/* ----- ruban, finitions : une vraie corde (torsadée, couleur chanvre), un verre plus profond,
         des polaroids qui se soulèvent quand on les touche ----- */
main > .ribbon .rb-cross .rb-glass {
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 30%), linear-gradient(90deg, rgba(10,46,80,.86), rgba(13,59,102,.8) 50%, rgba(10,46,80,.86)) !important; }
main > .ribbon .rb-cross .rb-glass::before { height: 4px; top: 29px;
  background: repeating-linear-gradient(115deg, #e6cfa3 0 5px, #b8925f 5px 7px, #d9bd8c 7px 11px) !important;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .35) !important; border-radius: 2px; }
main > .ribbon .rb-glass .rb-photo { transition: scale .45s var(--spring), box-shadow .35s, translate .45s var(--spring); }
main > .ribbon .rb-glass .rb-photo:hover { translate: 0 10px; scale: 1.12; box-shadow: 0 28px 40px -16px rgba(0, 0, 0, .7); }
.rb-pin { box-shadow: 0 3px 6px -2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(90,60,30,.35); }
main > .ribbon .rb-title { font-size: clamp(2.4rem, 4.8vw, 4rem); }
@media (max-width: 860px) { main > .ribbon .rb-head { margin-bottom: 64px; } main > .ribbon .rb-title { font-size: 2.2rem; } }

/* l'autocollant : le logo complet « JCI Kélibia », comme dans l'en-tête */
main > .ribbon .rb-glass .rb-photo .rb-logo { width: auto; height: auto; display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 5px 9px 4px; border-radius: 8px; background: #fff; top: -10px; right: -14px; rotate: 10deg; }
main > .ribbon .rb-glass .rb-photo .rb-logo img { width: 46px !important; height: 18px !important; object-fit: contain; }
main > .ribbon .rb-glass .rb-photo .rb-logo b { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 9px; line-height: 1.1; color: #0097d7; letter-spacing: .01em; }
main > .ribbon .rb-glass .rb-photo:nth-child(even) .rb-logo { right: auto; left: -14px; top: auto; bottom: 22px; rotate: -9deg; }

/* =====================================================================
   « مجالات الفرص » : plus d'anneaux décoratifs ; chaque domaine montre
   une vraie photo, teintée dans sa couleur, qui se fond vers le bas.
   ===================================================================== */
.areas .area > svg:first-child { display: none !important; }
.areas .area { position: relative; isolation: isolate; overflow: hidden; }
.areas .area::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--area-photo) center 30% / cover no-repeat; mix-blend-mode: luminosity; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 78%); mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 78%);
  transition: opacity .6s ease, scale 1.2s var(--ease, ease); }
.areas .area:hover::before, .areas .area.on::before { opacity: .62; scale: 1.05; }
.areas .area-ind { --area-photo: url("../img/photos/fb/tr-ie-1.jpg"); }
.areas .area-com { --area-photo: url("../img/photos/kelibia/port-mobylette.jpg"); }
.areas .area-int { --area-photo: url("../img/photos/jci/toyp-tunis-1.jpg"); }
.areas .area-biz { --area-photo: url("../img/photos/fb/rise-6.jpg"); }
.areas .area-ind::before { mix-blend-mode: multiply; opacity: .42; }
.areas .area > * { position: relative; z-index: 1; }
/* (l'ancien ::before est réservé par une autre règle) : la photo passe en image de fond du domaine, fondue dans sa couleur */
.areas .area { background-image: linear-gradient(180deg, color-mix(in srgb, var(--area-c) 35%, transparent) 0, var(--area-c) 72%), var(--area-photo) !important;
  background-size: 100% 100%, cover !important; background-position: 0 0, center 30% !important; background-repeat: no-repeat !important;
  background-blend-mode: normal, luminosity !important; transition: background-size .8s var(--ease, ease); }
.areas .area-ind { --area-c: #edc213; }
.areas .area-com { --area-c: #1f4a8a; }
.areas .area-int { --area-c: #0a7cb5; }
.areas .area-biz { --area-c: #1a7f7e; }
.areas .area-ind { background-blend-mode: normal, multiply !important; }
.why ul.px-panels > li.area.area { background-color: var(--pc) !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--pc) 30%, transparent) 0, var(--pc) 74%), var(--area-photo) !important;
  background-size: 100% 100%, cover !important; background-position: 0 0, center 30% !important; background-repeat: no-repeat !important;
  background-blend-mode: normal, luminosity !important; }
.why ul.px-panels > li.area.area-ind { background-blend-mode: normal, multiply !important; }
.why ul.px-panels > li.area.area { background-image: linear-gradient(180deg, color-mix(in srgb, var(--pc) 20%, transparent) 0, color-mix(in srgb, var(--pc) 70%, transparent) 38%, var(--pc) 60%), var(--area-photo) !important; }
.areas .area-biz { --area-photo: url("../img/photos/fb/rise-5.jpg"); }
/* photos choisies pour ce qu'elles racontent */
.areas .area-ind { --area-photo: url("../img/photos/fb/leaders-formateur.jpg"); }   /* une formatrice, micro en main : on apprend */
.areas .area-com { --area-photo: url("../img/photos/fb/layalina-cover.jpg"); }      /* les artisans de Kélibia et leur public */
.areas .area-int { --area-photo: url("../img/photos/jci/tw-scene-1.jpg"); }          /* jumelage, le drapeau JCI Abidjan */
.areas .area-biz { --area-photo: url("../img/photos/fb/rise-1.jpg"); }               /* Entrep'RISE, un fondateur sur scène */
.why ul.px-panels > li.area.area { background-position: 0 0, center 35% !important; }

/* =====================================================================
   Ruban : fluidité. Plus de flou d'arrière-plan recalculé à chaque image
   (le verre est simulé par la transparence et le reflet) ; chaque bande
   est sa propre couche ; ombres plus légères ; vitesse réglée en px/s.
   ===================================================================== */
main > .ribbon .rb-cross .rb-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 30%), linear-gradient(90deg, rgba(10,46,80,.9), rgba(13,59,102,.84) 50%, rgba(10,46,80,.9)) !important; }
main > .ribbon .rb-band { contain: layout paint; }
main > .ribbon .rb-track { will-change: transform; backface-visibility: hidden; animation-timing-function: linear !important; }
main > .ribbon .rb-glass .rb-photo { box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .55); will-change: rotate; }

/* le logo « JCI Kélibia » imprimé dans la marge blanche du polaroid, comme une signature */
main > .ribbon .rb-glass .rb-photo .rb-logo, main > .ribbon .rb-glass .rb-photo:nth-child(even) .rb-logo {
  top: auto !important; bottom: 4px !important; left: 50% !important; right: auto !important; translate: -50% 0; rotate: none !important;
  padding: 0 !important; background: none !important; box-shadow: none !important; flex-direction: row !important; align-items: center; gap: 5px !important; }
main > .ribbon .rb-glass .rb-photo .rb-logo img { width: 34px !important; height: 14px !important; }
main > .ribbon .rb-glass .rb-photo .rb-logo b { font-size: 10px !important; color: #0d3b66 !important; }

/* logo « JCI Kélibia » corrigé partout : « Kélibia » sous « JCI », calé sur le bord gauche du J, en gras, bleu JCI */
.brand { direction: ltr; }
main > .ribbon .rb-glass .rb-photo .rb-logo, main > .ribbon .rb-glass .rb-photo:nth-child(even) .rb-logo {
  flex-direction: column !important; align-items: flex-start !important; gap: 1px !important; bottom: 3px !important; direction: ltr; }
main > .ribbon .rb-glass .rb-photo .rb-logo img { width: 40px !important; height: 16px !important; object-fit: contain; object-position: left center; }
main > .ribbon .rb-glass .rb-photo .rb-logo b { font-size: 8px !important; line-height: 1 !important; color: #0c95d3 !important; font-weight: 800; padding-left: 1px; }
main > .ribbon .rb-glass .rb-photo { padding-bottom: 32px; }
/* تنمية الأعمال : notre candidat CYE, Youssef Ben Ahmed (Study Space), présélectionné pour la compétition nationale */
.areas .area-biz { --area-photo: url("../img/photos/fb/cye-youssef-ben-ahmed.jpg"); }
.why ul.px-panels > li.area.area-biz { background-position: 0 0, center 62% !important; background-blend-mode: normal, normal !important; }
.areas .area-biz { --area-photo: url("../img/photos/fb/cye-youssef-portrait.jpg"); }
.why ul.px-panels > li.area.area-biz { background-position: 0 0, center 22% !important; background-blend-mode: normal, luminosity !important; }
/* تنمية الأعمال : le vrai moment CYE — « JCI Kelibia / SignFinity » à l'écran, notre candidat Houssem Ben Ahmed au TOP 20 national */
.areas .area-biz { --area-photo: url("../img/photos/fb/cye-top20-signfinity.jpg?v=7"); }
.why ul.px-panels > li.area.area-biz { background-position: 0 0, center 20% !important; background-blend-mode: normal, luminosity !important; }
.why ul.px-panels > li.area.area-biz { background-position: 0 0, center 4% !important; }

/* =====================================================================
   « رسالتنا / رؤيتنا » : deux grandes cartes-photos, la phrase en grand,
   l'étiquette écrite à la main. Plus de logo à confettis au milieu.
   ===================================================================== */
section.about .mv { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: clamp(16px, 2vw, 28px) !important;
  margin-top: clamp(40px, 5vw, 72px) !important; margin-bottom: clamp(40px, 5vw, 72px) !important; align-items: stretch !important; }
section.about .mv .mv-logo { display: none !important; }
section.about .mv .mv-item { position: relative; isolation: isolate; overflow: hidden; display: flex !important; flex-direction: column; justify-content: flex-end;
  min-height: clamp(300px, 30vw, 420px); padding: clamp(24px, 3vw, 40px) !important; border-radius: clamp(22px, 2.6vw, 34px) !important;
  background: #0d3b66 var(--mv-photo) center 35% / cover no-repeat !important; text-align: start !important; border: 0 !important;
  box-shadow: 0 30px 60px -36px rgba(13, 59, 102, .7) !important; transition: translate .55s var(--spring), box-shadow .5s !important; }
section.about .mv .mv-item::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 30, 55, .05) 20%, rgba(8, 30, 55, .55) 55%, rgba(8, 30, 55, .92) 100%); }
section.about .mv .mv-item:first-child { --mv-photo: url("../img/photos/fb/leaders-certificats.jpg"); }
section.about .mv .mv-item:last-child { --mv-photo: url("../img/photos/jci/toyp-ceremonie-1.jpg"); }
section.about .mv .mv-item h3 { margin: 0 0 8px !important; font-family: "Aref Ruqaa", var(--font-ar-display), serif !important; font-weight: 700 !important;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important; color: #f2a93b !important; rotate: -3deg; width: fit-content; letter-spacing: 0 !important; }
section.about .mv .mv-item h3::before, section.about .mv .mv-item h3::after { content: none !important; }
section.about .mv .mv-item .mv-text { margin: 0 !important; color: #fff !important; font-size: clamp(1.35rem, 2.1vw, 1.95rem) !important; line-height: 1.35 !important;
  font-weight: 700 !important; max-width: 24ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
html[lang="ar"] section.about .mv .mv-item .mv-text { font-family: var(--font-ar-display) !important; font-weight: 600 !important; }
@media (hover: hover) { section.about .mv .mv-item:hover { translate: 0 -6px; box-shadow: 0 40px 70px -36px rgba(13, 59, 102, .8) !important; } }
@media (max-width: 860px) { section.about .mv { grid-template-columns: 1fr !important; } section.about .mv .mv-item { min-height: 280px; } }
section.about .mv .mv-item { background: linear-gradient(180deg, rgba(8,30,55,.08) 15%, rgba(8,30,55,.6) 52%, rgba(8,30,55,.94) 100%), var(--mv-photo) center 35% / cover no-repeat, #0d3b66 !important; }

/* ----- « رسالتنا / رؤيتنا » façon carnet : cartes posées de travers, scotchées, un trait doré dessiné à la main
         sous la phrase, et une ligne en derja ----- */
section.about .mv { padding-top: 18px; }
section.about .mv .mv-item { overflow: visible !important; rotate: -1.6deg; }
section.about .mv .mv-item:last-child { rotate: 1.4deg; }
section.about .mv .mv-item { border-radius: 10px !important; outline: 8px solid #fff; outline-offset: -1px; }
@media (hover: hover) { section.about .mv .mv-item:hover { rotate: 0deg; translate: 0 -8px; } }
.mv-tape { position: absolute; top: -14px; inset-inline-start: 12%; width: 96px; height: 26px; rotate: -8deg; z-index: 3;
  background: rgba(242, 169, 59, .78); box-shadow: 0 2px 4px rgba(0,0,0,.18);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0); mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0); }
.mv-tape-2 { inset-inline-start: auto; inset-inline-end: 10%; rotate: 7deg; background: rgba(143, 220, 207, .8); }
.mv-scribble { display: block; width: min(70%, 320px); height: 16px; margin: 6px 0 2px; overflow: visible; }
.mv-scribble path { fill: none; stroke: #f2a93b; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mv-scribble path { animation: mvDraw linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}
@keyframes mvDraw { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
section.about .mv .mv-item .mv-derja { margin: 4px 0 0 !important; font-family: "Aref Ruqaa", var(--font-ar-display), serif !important; font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem) !important; color: #ffd98a !important; rotate: -2deg; width: fit-content; }
@media (max-width: 860px) { section.about .mv { gap: 34px !important; } }

/* ----- « رسالتنا / رؤيتنا » en polaroid : la photo en haut dans son cadre, le texte en dessous sur le papier blanc ----- */
section.about .mv .mv-item { --ph: clamp(190px, 17vw, 250px);
  background: var(--mv-photo) var(--mv-pos, center 50%) / calc(100% - 28px) var(--ph) no-repeat, #fffdf8 !important;
  background-origin: border-box !important; background-position: 14px 14px !important;
  justify-content: flex-start !important; min-height: 0 !important;
  padding: calc(var(--ph) + 34px) clamp(22px, 2.6vw, 34px) clamp(22px, 2.4vw, 30px) !important;
  border-radius: 6px !important; outline: 0 !important; box-shadow: 0 26px 44px -26px rgba(13, 59, 102, .45), 0 2px 6px rgba(13, 59, 102, .08) !important; }
section.about .mv .mv-item:first-child { --mv-pos: 14px 14px; }
section.about .mv .mv-item h3 { color: #e0901a !important; margin-bottom: 4px !important; }
section.about .mv .mv-item .mv-text { color: #0d3b66 !important; text-shadow: none !important; font-size: clamp(1.25rem, 1.9vw, 1.7rem) !important; max-width: 30ch; }
section.about .mv .mv-item .mv-derja { color: #0097d7 !important; }
.mv-tape { top: -12px; }
section.about .mv .mv-item { background: #fffdf8 !important; }
section.about .mv .mv-item .mv-photo { position: absolute; top: 14px; left: 14px; right: 14px; height: var(--ph); border-radius: 3px;
  background: var(--mv-photo) var(--mv-pos, center 50%) / cover no-repeat; filter: var(--grade); }
section.about .mv .mv-item:first-child { --mv-pos: center 40%; }
section.about .mv .mv-item:last-child { --mv-pos: center 78%; }
@media (hover: hover) { section.about .mv .mv-item:hover .mv-photo { filter: none; } }
section.about .mv .mv-item:last-child { --mv-pos: center 64%; }

/* =====================================================================
   Mission & vision de la JCI : un seul panneau nuit, élégant.
   D'un côté la scène internationale, fondue dans le bleu ; de l'autre,
   les deux phrases en grand, chacune annoncée à la main en or.
   ===================================================================== */
section.about .mv { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important; grid-template-areas: "m photo" "v photo" "src photo" !important;
  gap: 0 !important; padding: 0 !important; border-radius: clamp(26px, 3.4vw, 46px); overflow: hidden; background: #0b2a4a;
  box-shadow: 0 40px 80px -46px rgba(11, 42, 74, .8); }
section.about .mv .mv-hero { grid-area: photo; display: block; min-height: 100%; position: relative;
  background: linear-gradient(90deg, #0b2a4a 0, rgba(11,42,74,.35) 38%, rgba(11,42,74,0) 70%), url("../img/photos/jci/toyp-ceremonie-1.jpg") center 80% / cover no-repeat; }
html[dir="ltr"] section.about .mv .mv-hero { background: linear-gradient(270deg, #0b2a4a 0, rgba(11,42,74,.35) 38%, rgba(11,42,74,0) 70%), url("../img/photos/jci/toyp-ceremonie-1.jpg") center 80% / cover no-repeat; }
section.about .mv .mv-item, section.about .mv .mv-item:last-child { grid-area: m; rotate: none !important; translate: none !important; background: none !important; box-shadow: none !important;
  border-radius: 0 !important; min-height: 0 !important; overflow: visible !important; justify-content: flex-start !important;
  padding: clamp(36px, 4.4vw, 64px) clamp(28px, 4vw, 60px) clamp(18px, 2vw, 26px) !important; }
section.about .mv .mv-item:last-child { grid-area: v; padding-top: clamp(18px, 2vw, 26px) !important; padding-bottom: clamp(16px, 2vw, 22px) !important; }
section.about .mv .mv-item:last-child::before { content: ""; display: block; width: 64px; height: 2px; background: #f2a93b; margin-bottom: clamp(18px, 2vw, 26px); opacity: .9; }
section.about .mv .mv-photo, section.about .mv .mv-tape, section.about .mv .mv-scribble { display: none !important; }
section.about .mv .mv-item h3 { color: #f2a93b !important; rotate: -2deg; font-size: clamp(1.5rem, 2.2vw, 2rem) !important; margin-bottom: 10px !important; }
section.about .mv .mv-item .mv-text { color: #fff !important; font-size: clamp(1.45rem, 2.4vw, 2.2rem) !important; line-height: 1.35 !important; max-width: 26ch; }
section.about .mv .mv-item .mv-derja { color: rgba(255, 217, 138, .85) !important; font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important; margin-top: 10px !important; }
section.about .mv .mv-src { grid-area: src; margin: 0 !important; padding: 6px clamp(28px, 4vw, 60px) clamp(30px, 3.6vw, 48px) !important;
  font-size: .85rem !important; color: rgba(255, 255, 255, .55) !important; }
@media (hover: hover) { section.about .mv .mv-item:hover { translate: none !important; } }
@media (max-width: 860px) {
  section.about .mv { grid-template-columns: 1fr !important; grid-template-areas: "photo" "m" "v" "src" !important; }
  section.about .mv .mv-hero, html[dir="ltr"] section.about .mv .mv-hero { min-height: 220px;
    background: linear-gradient(0deg, #0b2a4a 0, rgba(11,42,74,0) 60%), url("../img/photos/jci/toyp-ceremonie-1.jpg") center 80% / cover no-repeat; }
}
section.about .mv { background: #0b2a4a !important; }
section.about .mv > .mv-item ~ .mv-item { grid-area: v !important; padding-top: clamp(18px, 2vw, 26px) !important; padding-bottom: clamp(16px, 2vw, 22px) !important; }
section.about .mv > .mv-item ~ .mv-item::before { content: ""; display: block; width: 64px; height: 2px; background: #f2a93b; margin-bottom: clamp(18px, 2vw, 26px); }
section.about .mv > .mv-item:first-of-type::before, section.about .mv > .mv-item::after { content: none !important; }
section.about .mv > .mv-item:not(.mv-item ~ .mv-item) { grid-area: m !important; }
section.about .mv .mv-hero { align-self: stretch; }

/* les vecteurs de la JCI : le bouclier en grand filigrane, et le dégradé bleu → turquoise du bouclier pour le trait */
section.about .mv { position: relative; border-radius: clamp(26px, 3.4vw, 46px) !important; overflow: hidden !important; }
section.about .mv .mv-mark { position: absolute; z-index: 0; bottom: clamp(-90px, -6vw, -50px); inset-inline-start: clamp(-70px, -4vw, -30px);
  width: clamp(240px, 26vw, 380px); height: auto; opacity: .1; rotate: -10deg; pointer-events: none; filter: saturate(1.2); }
section.about .mv > *:not(.mv-mark):not(.mv-hero) { position: relative; z-index: 1; }
section.about .mv > .mv-item ~ .mv-item::before { width: 96px !important; height: 3px !important; border-radius: 3px;
  background: linear-gradient(90deg, #0c95d3, #57bcbb) !important; }
html[dir="rtl"] section.about .mv > .mv-item ~ .mv-item::before { background: linear-gradient(270deg, #0c95d3, #57bcbb) !important; }
section.about .mv .mv-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, #0c95d3, #57bcbb); }
@media (max-width: 860px) { section.about .mv .mv-mark { width: 220px; bottom: -40px; } }

/* =====================================================================
   Le bouclier JCI en 4 éléments = les 4 domaines d'opportunité.
   Survoler ou ouvrir un domaine allume son élément du bouclier, dans sa couleur ;
   les autres s'effacent, et l'élément « fait des ronds dans l'eau » (ripple effect).
   ===================================================================== */
section.why .section-head { position: relative; padding-inline-end: clamp(0px, 18vw, 250px); }
.shield4 { position: absolute; top: 0; inset-inline-end: 0; width: clamp(150px, 15vw, 220px); margin: 0; text-align: center; }
.shield4 svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(13, 59, 102, .22)); }
.s4 { transform-box: fill-box; transform-origin: 50% 50%; transition: fill .45s ease, opacity .45s ease, scale .5s var(--spring); }
.s4-biz { fill: #57bcbb; } .s4-int { fill: #0c95d3; } .s4-com { fill: #130d34; } .s4-ind { fill: #130d34; }
.shield4[data-on] .s4 { opacity: .16; }
.shield4[data-on="ind"] .s4-ind { opacity: 1; fill: #edc213; scale: 1.12; }
.shield4[data-on="com"] .s4-com { opacity: 1; fill: #1f4a8a; scale: 1.04; }
.shield4[data-on="int"] .s4-int { opacity: 1; fill: #0a7cb5; scale: 1.04; }
.shield4[data-on="biz"] .s4-biz { opacity: 1; fill: #1a7f7e; scale: 1.04; }
.shield4 .s4.ripple { animation: s4Ripple .7s var(--spring); }
@keyframes s4Ripple { 0% { scale: .9; } 60% { scale: 1.16; } 100% { } }
.shield4 figcaption { margin-top: 10px; font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-weight: 700; font-size: clamp(.95rem, 1.1vw, 1.1rem);
  line-height: 1.35; color: #0d3b66; rotate: -2deg; }
html:not([lang="ar"]) .shield4 figcaption { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: .82rem; font-weight: 600; rotate: none; color: #5b6b7a; }
@media (max-width: 860px) {
  section.why .section-head { padding-inline-end: 0; }
  .shield4 { position: static; width: 130px; margin: 18px auto 0; }
}
@media (prefers-reduced-motion: reduce) { .shield4 .s4.ripple { animation: none; } }

/* =====================================================================
   Le récit du bouclier, en 4 chapitres reliés par un fil :
   1 l'héritage (les arcs), 2 les ondes (l'intérieur qui rayonne),
   3 les lettres (le logo entier), 4 les quatre éléments (bouclier vivant).
   ===================================================================== */
section.why .section-head { padding-inline-end: 0 !important; }










/* 1 l'héritage : les arcs extérieurs seuls */
.st-legacy .s4-com, .st-legacy .s4-ind { opacity: .14; }
/* 2 les ondes : l'intérieur s'allume puis rayonne, en boucle douce */
.st-ripple .s4-int, .st-ripple .s4-biz { opacity: .14; }
.st-ripple .s4-com { fill: #3fa9e0; animation: stWave 2.8s ease-in-out infinite; }
.st-ripple .s4-ind { fill: #9bd3ef; animation: stWave 2.8s ease-in-out infinite .35s; }
@keyframes stWave { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.12; opacity: .75; } }
/* 3 les lettres : le logo entier, dans ses couleurs */
/* 4 les quatre éléments : chacun dans la couleur de son domaine */
.st-four .st-fig { width: 112px; height: 112px; margin-top: -10px; box-shadow: 0 18px 34px -16px rgba(13, 59, 102, .55), 0 0 0 4px rgba(242, 169, 59, .35); }
.st-four .st-fig svg { width: 70px; }
.st-four .s4-ind { fill: #edc213; } .st-four .s4-com { fill: #1f4a8a; } .st-four .s4-int { fill: #0a7cb5; } .st-four .s4-biz { fill: #1a7f7e; }

@media (prefers-reduced-motion: reduce) { .st-ripple .s4 { animation: none !important; } }

/* =====================================================================
   Le bouclier JCI en 3D : quatre calques espacés en profondeur.
   ===================================================================== */
.story3d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center;
  margin: clamp(26px, 3vw, 44px) 0 clamp(34px, 3.6vw, 56px); }
.s3-stage { position: relative; height: clamp(300px, 30vw, 420px); display: grid; place-items: center; perspective: 1000px;
  border-radius: clamp(24px, 3vw, 40px); background: linear-gradient(160deg, #f4f9fd 0, #e6f2fa 100%); box-shadow: inset 0 0 0 1px rgba(12, 149, 211, .12); overflow: hidden; }
.s3-rot { position: relative; width: clamp(180px, 18vw, 260px); aspect-ratio: 270 / 279; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -22deg)); transition: transform .7s var(--ease, ease); animation: s3Sway 7s ease-in-out infinite alternate; }
.s3-rot.live { animation-play-state: paused; transition-duration: .25s; }
@keyframes s3Sway { from { rotate: y -12deg; } to { rotate: y 14deg; } }
.s3-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-style: preserve-3d;
  transform: translateZ(var(--z, 0px)); opacity: var(--o, 1); transition: transform .9s var(--spring), opacity .6s ease;
  filter: drop-shadow(0 14px 14px rgba(13, 59, 102, .22)); }
.s3-layer .s4 { transition: fill .6s ease, scale .6s var(--spring); }
.s3-biz .s4 { fill: #57bcbb; } .s3-int .s4 { fill: #0c95d3; } .s3-com .s4 { fill: #130d34; } .s3-ind .s4 { fill: #130d34; }
/* 1 héritage : les arcs avancent, l'intérieur recule et s'efface */
.story3d[data-state="legacy"] .s3-int, .story3d[data-state="legacy"] .s3-biz { --z: 70px; }
.story3d[data-state="legacy"] .s3-com, .story3d[data-state="legacy"] .s3-ind { --z: -40px; --o: .15; }
/* 2 ondes : l'intérieur monte et pulse vers l'avant */
.story3d[data-state="ripple"] .s3-int, .story3d[data-state="ripple"] .s3-biz { --z: -30px; --o: .25; }
.story3d[data-state="ripple"] .s3-com { --z: 50px; } .story3d[data-state="ripple"] .s3-ind { --z: 110px; }
.story3d[data-state="ripple"] .s3-com .s4 { fill: #3fa9e0; animation: s3Wave 2.4s ease-in-out infinite; }
.story3d[data-state="ripple"] .s3-ind .s4 { fill: #9bd3ef; animation: s3Wave 2.4s ease-in-out infinite .3s; }
@keyframes s3Wave { 50% { scale: 1.14; } }
/* 3 lettres : tout se rassemble, à plat, dans les couleurs du logo */
.story3d[data-state="acro"] .s3-layer { --z: 0px; }
.story3d[data-state="acro"] .s3-rot { --rx: 0deg; --ry: 0deg; }
/* 4 quatre éléments : le bouclier éclate en 4 calques, chacun dans la couleur de son domaine */
.story3d[data-state="four"] .s3-biz { --z: -50px; } .story3d[data-state="four"] .s3-int { --z: 0px; }
.story3d[data-state="four"] .s3-com { --z: 60px; } .story3d[data-state="four"] .s3-ind { --z: 130px; }
.story3d[data-state="four"] .s3-ind .s4 { fill: #edc213; } .story3d[data-state="four"] .s3-com .s4 { fill: #1f4a8a; }
.story3d[data-state="four"] .s3-int .s4 { fill: #0a7cb5; } .story3d[data-state="four"] .s3-biz .s4 { fill: #1a7f7e; }
/* une carte survolée : son calque vient tout devant, les autres s'effacent */
.story3d .shield4[data-on] .s3-layer { --o: .22; }
.story3d .shield4[data-on="ind"] .s3-ind, .story3d .shield4[data-on="com"] .s3-com, .story3d .shield4[data-on="int"] .s3-int, .story3d .shield4[data-on="biz"] .s3-biz { --o: 1; --z: 150px; }
.story3d .shield4[data-on] .s4 { opacity: 1 !important; }
/* les chapitres */
.s3-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s3-steps button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: 16px; transition: background-color .35s, box-shadow .35s, translate .45s var(--spring); }
.s3-steps button i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal;
  font: 800 .9rem/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #0d3b66; background: #e6f2fa; transition: background-color .35s, color .35s; }
.s3-steps b { display: block; font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-weight: 700; font-size: clamp(1.25rem, 1.7vw, 1.55rem); color: #0d3b66; line-height: 1.2; }
html:not([lang="ar"]) .s3-steps b { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 1.05rem; }
.s3-steps small { display: block; margin-top: 3px; font-size: .93rem; line-height: 1.55; color: #4a5b6b; }
.s3-steps button:hover { background: rgba(12, 149, 211, .06); }
.s3-steps button.on { background: #fff; box-shadow: 0 16px 30px -18px rgba(13, 59, 102, .45), inset 3px 0 0 #0c95d3; translate: 0 -2px; }
html[dir="rtl"] .s3-steps button.on { box-shadow: 0 16px 30px -18px rgba(13, 59, 102, .45), inset -3px 0 0 #0c95d3; }
.s3-steps button.on i { background: linear-gradient(135deg, #0c95d3, #57bcbb); color: #fff; }
.s3-steps button:focus-visible { outline: 3px solid #f2a93b; outline-offset: 2px; }
@media (max-width: 860px) {
  .story3d { grid-template-columns: 1fr; }
  .s3-stage { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .s3-rot { animation: none; } .s3-layer .s4 { animation: none !important; } }
.story3d .s3-stage.shield4 { position: relative !important; top: auto !important; inset-inline-end: auto !important; width: auto !important; margin: 0 !important; text-align: initial; }

/* ----- ce que chaque chapitre ajoute autour du bouclier 3D ----- */
.s3-x { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; opacity: 0; transition: opacity .6s ease; }
/* 1 · 1915, très loin derrière */
.s3-year { display: grid; place-items: center; transform: translateZ(-160px); }
.s3-year span { font: 800 clamp(5rem, 9vw, 8rem)/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(12, 149, 211, .45); }
.story3d[data-state="legacy"] .s3-year { opacity: 1; }
/* 2 · des ondes en forme de bouclier qui s'éloignent */
.s3-waves svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.s3-waves .s4 { fill: none; stroke: #0c95d3; stroke-width: 3; }
.story3d[data-state="ripple"] .s3-waves { opacity: 1; }
.story3d[data-state="ripple"] .s3-waves svg { animation: s3Ring 2.7s ease-out infinite; }
.story3d[data-state="ripple"] .s3-waves svg:nth-child(2) { animation-delay: .9s; }
.story3d[data-state="ripple"] .s3-waves svg:nth-child(3) { animation-delay: 1.8s; }
@keyframes s3Ring { 0% { opacity: .6; transform: translateZ(-20px) scale(1); } 100% { opacity: 0; transform: translateZ(-60px) scale(1.9); } }
/* 3 · J, C, I arrivent du fond et se posent autour du bouclier */
.s3-letters b { position: absolute; font: 800 clamp(2.4rem, 3.6vw, 3.4rem)/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #130d34;
  transition: transform .9s var(--spring), opacity .5s; opacity: 0; }
.s3-letters b:nth-child(1) { left: -38%; top: 34%; transform: translateZ(-300px) rotateY(60deg); }
.s3-letters b:nth-child(2) { left: 42%; top: -32%; transform: translateZ(-300px) rotateX(60deg); color: #0c95d3; transition-delay: .12s; }
.s3-letters b:nth-child(3) { right: -30%; top: 34%; transform: translateZ(-300px) rotateY(-60deg); color: #57bcbb; transition-delay: .24s; }
.story3d[data-state="acro"] .s3-letters { opacity: 1; }
.story3d[data-state="acro"] .s3-letters b { opacity: 1; transform: translateZ(40px); }
/* 4 · une étiquette à côté de chaque calque, à sa profondeur */
.s3-tags span { position: absolute; white-space: nowrap; padding: 5px 12px; border-radius: 999px; font: 700 .78rem/1.2 "Plus Jakarta Sans", var(--font-ar), sans-serif;
  color: #fff; box-shadow: 0 8px 16px -8px rgba(13, 59, 102, .55); }
html[lang="ar"] .s3-tags span { font-family: var(--font-ar); font-size: .85rem; }
.s3-tags .t-ind { background: #edc213; color: #0d3b66; left: 30%; top: 56%; transform: translateZ(150px); }
.s3-tags .t-com { background: #1f4a8a; right: -34%; top: 14%; transform: translateZ(70px); }
.s3-tags .t-int { background: #0a7cb5; left: -40%; top: 26%; transform: translateZ(10px); }
.s3-tags .t-biz { background: #1a7f7e; right: -30%; bottom: 6%; transform: translateZ(-40px); }
.story3d[data-state="four"] .s3-tags { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .story3d .s3-waves svg { animation: none !important; } }
.s3-letters b:nth-child(2) { top: -18%; } .s3-letters b:nth-child(1) { left: -30%; } .s3-letters b:nth-child(3) { right: -24%; }

/* =====================================================================
   Le récit épinglé : la scène reste à l'écran pendant qu'on descend.
   Départ : le logo complet « JCI Kélibia » ; il se décompose, puis le
   bouclier raconte ses 4 chapitres.
   ===================================================================== */
.story3d.s3-pinned { height: 330vh; align-items: start; }
.story3d.s3-pinned > .s3-stage, .story3d.s3-pinned > .s3-steps { position: sticky; top: calc(50vh - min(210px, 15vw + 60px)); }
.s3-rot { direction: ltr; transform: scale(var(--sc, 1)) translateX(var(--tx, 0%)) rotateX(var(--rx, 10deg)) rotateY(var(--ry, -22deg)); }
/* le mot JCI et « Kélibia », à gauche du bouclier, exactement comme dans le logo */
.s3-word { inset: 0 auto 0 auto; right: 100%; left: auto; width: calc(380 / 270 * 100%); margin-right: calc(46 / 270 * 100%);
  transition: opacity .7s ease, transform 1.1s var(--spring); transform: translateZ(-260px) translateX(-30%) rotateY(55deg); }
.s3-word .s3-wordsvg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #130d34; overflow: visible; }
.s3-word .s3-kel { position: absolute; left: 0; top: 100%; margin-top: 4%; font: 800 clamp(1.4rem, 2.6vw, 2.4rem)/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #0c95d3; }
/* 0 · le logo entier, à plat, centré */
.story3d[data-state="logo"] .s3-rot { --sc: .6; --tx: 79%; --rx: 0deg; --ry: 0deg; animation: none; }
.story3d[data-state="logo"] .s3-word { opacity: 1; transform: none; }
.story3d[data-state="logo"] .s3-layer { --z: 0px; --o: 1; }
.story3d[data-state="logo"] .s3-steps button { opacity: .55; }
.s3-steps button { transition: background-color .35s, box-shadow .35s, translate .45s var(--spring), opacity .4s; }
/* une petite indication pour inviter à descendre */
.s3-stage::after { content: "↓"; position: absolute; bottom: 14px; left: 50%; translate: -50% 0; font: 700 1.1rem/1 system-ui; color: #0c95d3;
  opacity: 0; transition: opacity .4s; animation: s3Down 1.6s ease-in-out infinite; }
.story3d[data-state="logo"] .s3-stage::after { opacity: .8; }
@keyframes s3Down { 50% { translate: -50% 6px; } }
@media (max-width: 860px) {
  .story3d.s3-pinned { height: 300vh; }
  .story3d.s3-pinned > .s3-stage { top: 76px; z-index: 2; }
  .story3d.s3-pinned > .s3-steps { top: calc(76px + 290px); }
  .story3d.s3-pinned .s3-steps small { display: none; }
}
.story3d.s3-pinned > .s3-stage.shield4, .story3d.s3-pinned > .s3-steps { position: sticky !important; top: max(96px, calc(50vh - 210px)) !important; } @media (max-width: 860px) { .story3d.s3-pinned > .s3-stage.shield4 { top: 76px !important; } .story3d.s3-pinned > .s3-steps { top: 372px !important; } }

/* =====================================================================
   Récit du bouclier, version cinéma : un grand écran bleu nuit épinglé,
   le bouclier en grand (couleurs du logo blanc), une seule légende à la
   fois, en grand, comme des sous-titres ; des repères numérotés.
   ===================================================================== */
.story3d.s3-pinned { display: block; height: 360vh; }
.story3d .s3-stage.shield4 { position: sticky !important; top: 88px !important; height: min(calc(100vh - 110px), 760px); width: 100% !important;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "cap shield"; align-items: center;
  gap: clamp(16px, 3vw, 48px); padding: clamp(24px, 3vw, 48px) clamp(24px, 4vw, 64px); border-radius: clamp(26px, 3.4vw, 46px);
  background: linear-gradient(160deg, #0d3b66 0%, #0b2a4a 55%, #091f38 100%) !important; box-shadow: 0 40px 80px -46px rgba(9, 31, 56, .85) !important; overflow: hidden; }
html[dir="ltr"] .story3d .s3-stage.shield4 { grid-template-areas: "shield cap"; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.story3d .s3-rot { grid-area: shield; place-self: center; width: clamp(200px, 24vw, 340px); }
/* couleurs du logo blanc, sur la nuit */
.story3d .s3-com .s4, .story3d .s3-ind .s4 { fill: #fff; }
.story3d .s3-int .s4 { fill: #0c95d3; } .story3d .s3-biz .s4 { fill: #57bcbb; }
.story3d .s3-layer { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)); }
.story3d[data-state="ripple"] .s3-com .s4 { fill: #7fd0f2; } .story3d[data-state="ripple"] .s3-ind .s4 { fill: #d3f0fc; }
.story3d[data-state="four"] .s3-com .s4 { fill: #5b8fe0; } .story3d[data-state="four"] .s3-int .s4 { fill: #0c95d3; } .story3d[data-state="four"] .s3-biz .s4 { fill: #57bcbb; }
.story3d .s3-word .s3-wordsvg { fill: #fff; } .story3d .s3-word .s3-kel { color: #4fc0f0; }
.story3d .s3-year span { -webkit-text-stroke: 2px rgba(255, 255, 255, .2); font-size: clamp(6rem, 12vw, 11rem); }
.story3d .s3-waves .s4 { stroke: #57bcbb; }
.story3d .s3-letters b:nth-child(1) { color: #fff; }
.story3d .s3-stage::after { color: #4fc0f0; }
/* la légende : une seule à la fois, en grand */
.story3d .s3-steps { grid-area: cap; position: static !important; display: flex !important; flex-wrap: wrap; align-content: center; gap: 10px; align-self: center; }
.story3d .s3-steps li { order: 2; }
.story3d .s3-steps li.s3-intro:not(:has(.on)) { display: none; }
.story3d .s3-steps li:has(.on) { order: 1; flex-basis: 100%; margin-bottom: clamp(14px, 2vw, 26px); }
.story3d .s3-steps button { all: unset; box-sizing: border-box; cursor: pointer; display: block; translate: none !important; box-shadow: none !important; background: none !important; padding: 0 !important; opacity: 1 !important; }
.story3d .s3-steps button i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 800 .85rem/1 "Plus Jakarta Sans", system-ui, sans-serif; font-style: normal;
  color: rgba(255, 255, 255, .75); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background-color .3s, color .3s, box-shadow .3s; }
.story3d .s3-steps button:not(.on):hover i { background: rgba(255, 255, 255, .12); color: #fff; }
.story3d .s3-steps button span { display: none; }
.story3d .s3-steps button.on i { width: auto; height: auto; padding: 6px 12px; border-radius: 999px; background: linear-gradient(90deg, #0c95d3, #57bcbb); color: #fff; box-shadow: none; margin-bottom: 16px; }
.story3d .s3-steps button.on span { display: block; animation: capIn .7s var(--spring) both; }
@keyframes capIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.story3d .s3-steps button.on b { color: #f2a93b; font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.1; rotate: -2deg; width: fit-content; }
html:not([lang="ar"]) .story3d .s3-steps button.on b { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.02em; rotate: none; }
.story3d .s3-steps button.on small { display: block; margin-top: 12px; max-width: 30ch; color: rgba(255, 255, 255, .88); font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.65; }
.story3d .s3-steps button:focus-visible i { outline: 3px solid #f2a93b; outline-offset: 3px; }
@media (max-width: 860px) {
  .story3d.s3-pinned { height: 320vh; }
  .story3d .s3-stage.shield4, html[dir="ltr"] .story3d .s3-stage.shield4 { top: 72px !important; height: calc(100vh - 90px); grid-template-columns: 1fr; grid-template-areas: "shield" "cap";
    grid-template-rows: 46% 1fr; padding: 22px; }
  .story3d .s3-rot { width: min(46vw, 200px); }
  .story3d .s3-steps button.on b { font-size: 2rem; }
  .story3d .s3-steps button.on small { font-size: 1rem; }
}
.story3d[data-state="logo"] .s3-rot { --sc: .46; --tx: 79%; }
.story3d .s3-steps button.on i { display: inline-grid; width: fit-content; }
.story3d .s3-steps button.on i::after { content: " / 4"; opacity: .8; margin-inline-start: 2px; }
.story3d .s3-steps .s3-intro button.on i { display: none; }
html[dir="rtl"] .story3d .s3-steps button.on i { direction: ltr; }
.story3d .s3-steps button.on i { display: inline-flex !important; align-items: center; gap: 2px; white-space: nowrap; padding: 6px 14px !important; }

/* =====================================================================
   Récit du bouclier, sans cadre : il se joue directement sur le fond de
   la section, comme la suite naturelle du titre et l'entrée vers les cartes.
   ===================================================================== */
.story3d .s3-stage.shield4 { background: none !important; box-shadow: none !important; border-radius: 0; padding-inline: 0 !important; overflow: visible; }
/* retour aux couleurs officielles du logo, sur fond clair */
.story3d .s3-com .s4, .story3d .s3-ind .s4 { fill: #130d34; }
.story3d .s3-int .s4 { fill: #0c95d3; } .story3d .s3-biz .s4 { fill: #57bcbb; }
.story3d .s3-layer { filter: drop-shadow(0 20px 22px rgba(13, 59, 102, .18)); }
.story3d[data-state="ripple"] .s3-com .s4 { fill: #3fa9e0; } .story3d[data-state="ripple"] .s3-ind .s4 { fill: #9bd3ef; }
.story3d[data-state="four"] .s3-ind .s4 { fill: #edc213; } .story3d[data-state="four"] .s3-com .s4 { fill: #1f4a8a; }
.story3d[data-state="four"] .s3-int .s4 { fill: #0a7cb5; } .story3d[data-state="four"] .s3-biz .s4 { fill: #1a7f7e; }
.story3d .s3-word .s3-wordsvg { fill: #130d34; } .story3d .s3-word .s3-kel { color: #0c95d3; }
.story3d .s3-year span { -webkit-text-stroke: 2px rgba(12, 149, 211, .28); }
.story3d .s3-waves .s4 { stroke: #0c95d3; }
.story3d .s3-letters b:nth-child(1) { color: #130d34; }
.story3d .s3-stage::after { color: #0c95d3; }
/* la légende, en grand, aux couleurs de la page */
.story3d .s3-steps button.on b { color: #0d3b66; }
.story3d .s3-steps button.on small { color: #4a5b6b; }
.story3d .s3-steps button i { color: #0d3b66; box-shadow: inset 0 0 0 1.5px rgba(13, 59, 102, .28); }
.story3d .s3-steps button:not(.on):hover i { background: rgba(12, 149, 211, .1); color: #0d3b66; }
.story3d .s3-steps button.on i { color: #fff; }
.story3d .s3-steps .s3-intro button.on i { display: none !important; } .story3d[data-state="logo"] .s3-rot { --sc: .4; }

/* ----- récit du bouclier : un disque clair sous le bouclier, la légende à part, une barre de progression en 4 segments ----- */
.story3d .s3-stage.shield4 { grid-template-areas: "cap shield" "bar shield" !important; grid-template-rows: 1fr auto; }
html[dir="ltr"] .story3d .s3-stage.shield4 { grid-template-areas: "shield cap" "shield bar" !important; }
.s3-plate { grid-area: shield; place-self: center; width: clamp(300px, 34vw, 500px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, #e3f2fb 0, #eef7fd 62%, rgba(238, 247, 253, 0) 100%); pointer-events: none; }
.story3d .s3-rot { grid-row: 1 / span 2; }
.s3-cap { grid-area: cap; align-self: end; padding-bottom: clamp(14px, 2vw, 24px); }
.s3-cap i { display: inline-block; direction: ltr; padding: 6px 14px; border-radius: 999px; background: linear-gradient(90deg, #0c95d3, #57bcbb); color: #fff;
  font: 800 .8rem/1 "Plus Jakarta Sans", system-ui, sans-serif; font-style: normal; margin-bottom: 16px; }
.s3-cap b { display: block; font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-weight: 700; font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.1; color: #0d3b66; }
html:not([lang="ar"]) .s3-cap b { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.02em; }
.s3-cap small { display: block; margin-top: 12px; max-width: 32ch; font-size: clamp(1.08rem, 1.45vw, 1.35rem); line-height: 1.65; color: #3b4d5f; }
.s3-cap.in > * { animation: capIn .7s var(--spring) both; }
.s3-cap.in > *:nth-child(2) { animation-delay: .06s; } .s3-cap.in > *:nth-child(3) { animation-delay: .12s; }
/* la barre : 4 segments, toujours dans le même ordre */
.story3d .s3-steps { grid-area: bar; align-self: start; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 340px; margin: 0; }
.story3d .s3-steps li { order: 0 !important; flex-basis: auto !important; margin: 0 !important; }
.story3d .s3-steps li.s3-intro { display: none !important; }
.story3d .s3-steps button { display: block; width: 100%; padding: 14px 0 !important; }
.story3d .s3-steps button span, .story3d .s3-steps button.on span { display: none !important; }
.story3d .s3-steps button i, .story3d .s3-steps button.on i { display: block !important; width: 100% !important; height: 5px !important; padding: 0 !important; margin: 0 !important;
  border-radius: 5px; font-size: 0 !important; color: transparent !important; background: rgba(13, 59, 102, .14) !important; box-shadow: none !important; transition: background .4s; }
.story3d .s3-steps button i::after, .story3d .s3-steps button.on i::after { content: none !important; }
.story3d .s3-steps button.on i { background: linear-gradient(90deg, #0c95d3, #57bcbb) !important; }
.story3d .s3-steps li:has(~ li button.on) button i { background: #0c95d3 !important; opacity: .55; }
.story3d .s3-steps button:hover i { background: rgba(12, 149, 211, .45) !important; }
@media (max-width: 860px) {
  .story3d .s3-stage.shield4, html[dir="ltr"] .story3d .s3-stage.shield4 { grid-template-areas: "shield" "cap" "bar" !important; grid-template-rows: 42% auto auto; }
  .story3d .s3-rot { grid-row: auto; }
  .s3-plate { width: 280px; }
  .s3-cap b { font-size: 2rem; } .s3-cap small { font-size: 1rem; }
}
.story3d.s3-pinned > .s3-stage.shield4 { top: 90px !important; height: min(calc(100vh - 110px), 740px); } .story3d .s3-steps { width: 100%; justify-self: start; } @media (max-width: 860px) { .story3d.s3-pinned > .s3-stage.shield4 { top: 72px !important; height: calc(100vh - 90px); } }

/* =====================================================================
   « سنتنا، شهرًا بشهر » en road trip : une route qui serpente, une épingle
   de carte à chaque mois, une petite voiture qui avance avec l'année,
   et les photos en polaroids scotchés.
   ===================================================================== */

/* la voiture avance jusqu'au mois atteint */


/* épingles de carte */







/* polaroids scotchés */






 

/* récit du bouclier, resserré : pas d'intro, la légende au centre à côté du bouclier, moins de vide */
.story3d.s3-pinned { height: 260vh !important; }
.story3d.s3-pinned > .s3-stage.shield4 { height: min(calc(100vh - 120px), 600px) !important; top: max(96px, calc(50vh - 300px)) !important; }
.story3d .s3-stage.shield4 { grid-template-rows: auto auto !important; align-content: center; }
.s3-cap { align-self: end !important; padding-bottom: 18px !important; }
.story3d .s3-steps { align-self: start !important; }
.s3-stage::after { display: none; }
.s3-cap small { color: #34475a !important; }
.story3d { margin-top: clamp(10px, 2vw, 24px) !important; }
@media (max-width: 860px) { .story3d.s3-pinned { height: 240vh !important; } .story3d.s3-pinned > .s3-stage.shield4 { top: 72px !important; height: calc(100vh - 90px) !important; } }

/* =====================================================================
   Bloc du bouclier JCI, façon charte officielle : le grand bouclier d'un
   côté, les 4 sens de l'autre (icône, titre, une ligne), séparés par un
   filet. Survoler un sens anime le grand bouclier.
   ===================================================================== */
.story3d.s3-sheet { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  height: auto !important; margin: clamp(30px, 3.4vw, 52px) 0 clamp(40px, 4.4vw, 64px) !important; }
.story3d.s3-sheet > .s3-stage.shield4 { position: relative !important; top: auto !important; height: clamp(320px, 31vw, 440px) !important; width: 100% !important;
  display: grid !important; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; grid-template-areas: none !important;
  place-items: center; padding: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
.story3d.s3-sheet .s3-plate, .story3d.s3-sheet .s3-rot { grid-area: 1 / 1 !important; }
.story3d.s3-sheet .s3-rot { width: clamp(210px, 21vw, 300px); }
.story3d.s3-sheet .s3-plate { width: clamp(300px, 30vw, 440px); }
/* la liste des sens, avec le filet vertical de la charte */
.story3d.s3-sheet > .s3-steps { position: static !important; display: flex !important; flex-direction: column; gap: 6px; width: 100%; max-width: none !important;
  margin: 0 !important; padding: 6px 0 !important; padding-inline-start: clamp(20px, 3vw, 44px) !important; border-inline-start: 1.5px solid rgba(12, 149, 211, .35); }
.story3d.s3-sheet .s3-steps li { order: 0 !important; flex-basis: auto !important; margin: 0 !important; }
.story3d.s3-sheet .s3-steps li.s3-intro { display: none !important; }
.story3d.s3-sheet .s3-steps button { display: flex !important; align-items: center; gap: clamp(14px, 1.6vw, 22px); width: 100%; padding: 12px 14px !important; border-radius: 18px;
  background: none !important; box-shadow: none !important; translate: none; transition: background-color .3s, box-shadow .3s, translate .45s var(--spring) !important; }
.story3d.s3-sheet .s3-steps button:hover, .story3d.s3-sheet .s3-steps button:focus-visible, .story3d.s3-sheet .s3-steps button.on:not([data-state="acro"]) {
  background: #fff !important; box-shadow: 0 18px 34px -20px rgba(13, 59, 102, .45) !important; translate: 0 -2px; }
.story3d.s3-sheet .s3-steps button i { flex: none; display: grid !important; place-items: center; width: 70px !important; height: 70px !important; padding: 0 !important; margin: 0 !important;
  border-radius: 50% !important; font-size: inherit !important; color: inherit !important; background: #fff !important; box-shadow: 0 10px 22px -14px rgba(13, 59, 102, .45) !important; }
.story3d.s3-sheet .s3-steps button i::after { content: none !important; }
.story3d.s3-sheet .s3-steps button i svg { width: 44px; height: auto; overflow: visible; }
.story3d.s3-sheet .s3-steps button span { display: block !important; }
.story3d.s3-sheet .s3-steps b { display: block; font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-weight: 700; font-size: clamp(1.35rem, 1.8vw, 1.7rem); color: #0d3b66; line-height: 1.2; }
html:not([lang="ar"]) .story3d.s3-sheet .s3-steps b { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 1.1rem; }
.story3d.s3-sheet .s3-steps small { display: block; margin-top: 3px; font-size: .95rem; line-height: 1.55; color: #3b4d5f; max-width: 40ch; }
@media (max-width: 860px) {
  .story3d.s3-sheet { grid-template-columns: 1fr; }
  .story3d.s3-sheet > .s3-stage.shield4 { height: 280px !important; }
  .story3d.s3-sheet > .s3-steps { border-inline-start: 0; padding-inline-start: 0 !important; }
}
.story3d.s3-sheet > .s3-steps, .story3d.s3-sheet > .s3-stage.shield4 { grid-area: auto !important; grid-row: 1 !important; }
.story3d.s3-sheet .s3-steps button.on b { font-size: clamp(1.35rem, 1.8vw, 1.7rem) !important; color: #0d3b66 !important; rotate: none !important; }
.story3d.s3-sheet .s3-steps button.on small { font-size: .95rem !important; color: #3b4d5f !important; margin-top: 3px !important; }
.story3d.s3-sheet .s3-steps button.on span { animation: none !important; }
.story3d.s3-sheet .s3-steps button.on i, .story3d.s3-sheet .s3-steps button i { background: #fff !important; width: 70px !important; height: 70px !important; border-radius: 50% !important; }
.story3d.s3-sheet .s3-steps button.on i { box-shadow: 0 0 0 3px #0c95d3, 0 10px 22px -14px rgba(13, 59, 102, .45) !important; }

/* =====================================================================
   Le bouclier au centre, ses 4 sens autour (2 de chaque côté), en miroir ;
   l'icône de chaque sens est tournée vers le bouclier, reliée par un filet.
   ===================================================================== */
.story3d.s3-sheet { grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto; grid-template-areas: "a mid b" "c mid d" !important; column-gap: clamp(10px, 2vw, 30px) !important; row-gap: clamp(26px, 4vw, 60px) !important; }
.story3d.s3-sheet > .s3-stage.shield4 { grid-area: mid !important; grid-row: 1 / span 2 !important; height: clamp(360px, 34vw, 480px) !important; }
.story3d.s3-sheet > .s3-steps { display: contents !important; }
.story3d.s3-sheet .s3-steps li:nth-child(2) { grid-area: a; } .story3d.s3-sheet .s3-steps li:nth-child(3) { grid-area: c; }
.story3d.s3-sheet .s3-steps li:nth-child(4) { grid-area: b; } .story3d.s3-sheet .s3-steps li:nth-child(5) { grid-area: d; }
.story3d.s3-sheet .s3-steps li { align-self: center; }
/* côté « a / c » (premier côté) : l'icône regarde vers le centre */
.story3d.s3-sheet .s3-steps li:nth-child(2) button, .story3d.s3-sheet .s3-steps li:nth-child(3) button { flex-direction: row-reverse; text-align: end; }
.story3d.s3-sheet .s3-steps li:nth-child(4) button, .story3d.s3-sheet .s3-steps li:nth-child(5) button { flex-direction: row; text-align: start; }
.story3d.s3-sheet .s3-steps li:nth-child(2) small, .story3d.s3-sheet .s3-steps li:nth-child(3) small { margin-inline-start: auto; }
.story3d.s3-sheet .s3-steps button { position: relative; overflow: visible; }
/* le filet qui relie chaque sens au bouclier */
.story3d.s3-sheet .s3-steps button::after { content: ""; position: absolute; top: 50%; width: clamp(18px, 3vw, 46px); height: 1.5px;
  background: linear-gradient(90deg, rgba(12,149,211,.55), rgba(87,188,187,.55)); }
.story3d.s3-sheet .s3-steps li:nth-child(2) button::after, .story3d.s3-sheet .s3-steps li:nth-child(3) button::after { inset-inline-end: calc(-1 * clamp(18px, 3vw, 46px)); }
.story3d.s3-sheet .s3-steps li:nth-child(4) button::after, .story3d.s3-sheet .s3-steps li:nth-child(5) button::after { inset-inline-start: calc(-1 * clamp(18px, 3vw, 46px)); }
.story3d.s3-sheet .s3-steps li:nth-child(2) button::after, .story3d.s3-sheet .s3-steps li:nth-child(3) button::after { inset-inline-start: auto; }
.story3d.s3-sheet .s3-steps button.on::after { background: linear-gradient(90deg, #0c95d3, #57bcbb); height: 2.5px; }
.story3d.s3-sheet .s3-steps small { max-width: 30ch !important; }
@media (max-width: 960px) {
  .story3d.s3-sheet { grid-template-columns: 1fr !important; grid-template-areas: "mid" "a" "c" "b" "d" !important; grid-template-rows: none; row-gap: 8px !important; }
  .story3d.s3-sheet > .s3-stage.shield4 { grid-row: auto !important; height: 300px !important; }
  .story3d.s3-sheet .s3-steps li button, .story3d.s3-sheet .s3-steps li:nth-child(n) button { flex-direction: row !important; text-align: start !important; }
  .story3d.s3-sheet .s3-steps button::after { display: none; }
}

/* =====================================================================
   « أبعد من قليبية » : les anneaux deviennent 4 capsules de photos,
   penchées et de plus en plus grandes (Kélibia → Zone A → Tunisie → monde) ;
   la carte « monde » montre une vraie scène internationale.
   ===================================================================== */












/* la carte « monde » : une vraie scène internationale au lieu des cercles */




/* ----- bloc du bouclier, resserré : tout gravite près du centre, quel que soit l'écran ----- */
.story3d.s3-sheet { max-width: 1060px; margin: clamp(8px, 1.4vw, 20px) auto clamp(36px, 4vw, 56px) !important;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 340px) minmax(0, 1fr) !important; column-gap: clamp(28px, 3vw, 44px) !important; row-gap: clamp(18px, 2.4vw, 34px) !important; }
.story3d.s3-sheet > .s3-stage.shield4 { height: clamp(330px, 30vw, 400px) !important; }
.story3d.s3-sheet .s3-rot { width: clamp(190px, 17vw, 240px) !important; }
.story3d.s3-sheet .s3-plate { width: clamp(280px, 26vw, 360px) !important; }
.story3d.s3-sheet .s3-steps li:nth-child(2), .story3d.s3-sheet .s3-steps li:nth-child(4) { align-self: end; }
.story3d.s3-sheet .s3-steps li:nth-child(3), .story3d.s3-sheet .s3-steps li:nth-child(5) { align-self: start; }
.story3d.s3-sheet .s3-steps li:nth-child(2), .story3d.s3-sheet .s3-steps li:nth-child(3) { justify-self: end; }
.story3d.s3-sheet .s3-steps li:nth-child(4), .story3d.s3-sheet .s3-steps li:nth-child(5) { justify-self: start; }
.story3d.s3-sheet .s3-steps button { width: auto !important; max-width: 400px; }
/* le filet rejoint le bouclier */
.story3d.s3-sheet .s3-steps button::after { width: clamp(30px, 3.4vw, 50px) !important; }
.story3d.s3-sheet .s3-steps li:nth-child(2) button::after, .story3d.s3-sheet .s3-steps li:nth-child(3) button::after { inset-inline-end: calc(-1 * clamp(30px, 3.4vw, 50px)) !important; }
.story3d.s3-sheet .s3-steps li:nth-child(4) button::after, .story3d.s3-sheet .s3-steps li:nth-child(5) button::after { inset-inline-start: calc(-1 * clamp(30px, 3.4vw, 50px)) !important; }
.story3d.s3-sheet .s3-steps button::after { border-radius: 2px; }
section.why .section-head { margin-bottom: 0 !important; }

/* ----- les 4 sens en petites cartes colorées, chacune dans la couleur de « son » morceau du bouclier ----- */
.story3d.s3-sheet .s3-steps li:nth-child(2) { --c: #0c95d3; --t: #e4f2fb; }   /* الدرع : bleu */
.story3d.s3-sheet .s3-steps li:nth-child(3) { --c: #1fa59f; --t: #e1f4f1; }   /* التموّجات : turquoise */
.story3d.s3-sheet .s3-steps li:nth-child(4) { --c: #3c3a8f; --t: #ecebf7; }   /* الحروف : marine-lavande */
.story3d.s3-sheet .s3-steps li:nth-child(5) { --c: #d39a06; --t: #fff3d4; }   /* أربعة عناصر : or */
.story3d.s3-sheet .s3-steps button { background: var(--t) !important; border-radius: 22px !important; padding: 14px 18px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 14px 30px -22px color-mix(in srgb, var(--c) 70%, transparent) !important;
  transition: background-color .35s, box-shadow .35s, translate .5s var(--spring), scale .5s var(--spring) !important; }
.story3d.s3-sheet .s3-steps li:nth-child(2) button { rotate: -1.2deg; } .story3d.s3-sheet .s3-steps li:nth-child(3) button { rotate: 1deg; }
.story3d.s3-sheet .s3-steps li:nth-child(4) button { rotate: 1.2deg; } .story3d.s3-sheet .s3-steps li:nth-child(5) button { rotate: -1deg; }
.story3d.s3-sheet .s3-steps button i { box-shadow: 0 0 0 3px var(--c), 0 10px 20px -12px color-mix(in srgb, var(--c) 80%, transparent) !important; }
.story3d.s3-sheet .s3-steps b { color: color-mix(in srgb, var(--c) 70%, #0d3b66) !important; }
.story3d.s3-sheet .s3-steps button:hover, .story3d.s3-sheet .s3-steps button:focus-visible, .story3d.s3-sheet .s3-steps button.on:not([data-state="acro"]) {
  background: #fff !important; rotate: 0deg; scale: 1.04; box-shadow: 0 0 0 2px var(--c), 0 22px 40px -22px color-mix(in srgb, var(--c) 80%, transparent) !important; }
/* filets en pointillés, avec un point qui s'allume côté bouclier */
.story3d.s3-sheet .s3-steps button::after { height: 0 !important; background: none !important; border-top: 2px dotted var(--c); opacity: .7; }
.story3d.s3-sheet .s3-steps button::before { content: ""; position: absolute; top: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); transition: scale .4s var(--spring); }
.story3d.s3-sheet .s3-steps li:nth-child(2) button::before, .story3d.s3-sheet .s3-steps li:nth-child(3) button::before { inset-inline-end: calc(-1 * clamp(30px, 3.4vw, 50px) - 6px); }
.story3d.s3-sheet .s3-steps li:nth-child(4) button::before, .story3d.s3-sheet .s3-steps li:nth-child(5) button::before { inset-inline-start: calc(-1 * clamp(30px, 3.4vw, 50px) - 6px); }
.story3d.s3-sheet .s3-steps button:hover::before, .story3d.s3-sheet .s3-steps button.on::before { scale: 1.5; }
.story3d.s3-sheet .s3-steps button:hover::after, .story3d.s3-sheet .s3-steps button.on::after { opacity: 1; }
@media (max-width: 960px) { .story3d.s3-sheet .s3-steps button::before { display: none; } .story3d.s3-sheet .s3-steps li button { rotate: none !important; } }
.rb-cross { height: clamp(320px, 27vw, 390px) !important; } main > .ribbon { margin-bottom: 0 !important; padding-bottom: 0 !important; } main > section.why { padding-top: clamp(36px, 3.4vw, 56px) !important; }

/* ----- entrée du bloc du bouclier : les calques arrivent du fond, puis chaque sens glisse hors du bouclier ----- */
.story3d.s3-pre .s3-layer { opacity: 0; transform: translateZ(-260px) scale(.7); }
.story3d.s3-pre.s3-in .s3-layer { opacity: var(--o, 1); transform: translateZ(var(--z, 0px)); transition: transform 1.1s var(--spring), opacity .6s ease; }
.story3d.s3-pre.s3-in .s3-biz { transition-delay: .05s; } .story3d.s3-pre.s3-in .s3-int { transition-delay: .18s; }
.story3d.s3-pre.s3-in .s3-com { transition-delay: .31s; } .story3d.s3-pre.s3-in .s3-ind { transition-delay: .44s; }
.story3d.s3-pre .s3-plate { opacity: 0; scale: .6; transition: opacity .8s ease, scale 1s var(--spring); }
.story3d.s3-pre.s3-in .s3-plate { opacity: 1; scale: 1; }
/* les cartes partent du bouclier et glissent jusqu'à leur place */
.story3d.s3-pre .s3-steps li { opacity: 0; transition: opacity .6s ease, translate .9s var(--spring); }
.story3d.s3-pre .s3-steps li:nth-child(2), .story3d.s3-pre .s3-steps li:nth-child(3) { translate: -60px 0; }
.story3d.s3-pre .s3-steps li:nth-child(4), .story3d.s3-pre .s3-steps li:nth-child(5) { translate: 60px 0; }
html[dir="ltr"] .story3d.s3-pre .s3-steps li:nth-child(2), html[dir="ltr"] .story3d.s3-pre .s3-steps li:nth-child(3) { translate: 60px 0; }
html[dir="ltr"] .story3d.s3-pre .s3-steps li:nth-child(4), html[dir="ltr"] .story3d.s3-pre .s3-steps li:nth-child(5) { translate: -60px 0; }
.story3d.s3-pre.s3-in .s3-steps li { opacity: 1; translate: 0 0; }
.story3d.s3-pre.s3-in .s3-steps li:nth-child(2) { transition-delay: .7s; } .story3d.s3-pre.s3-in .s3-steps li:nth-child(4) { transition-delay: .85s; }
.story3d.s3-pre.s3-in .s3-steps li:nth-child(3) { transition-delay: 1s; } .story3d.s3-pre.s3-in .s3-steps li:nth-child(5) { transition-delay: 1.15s; }
/* les pointillés se dessinent depuis le bouclier */
.story3d.s3-pre .s3-steps button::after { clip-path: inset(0 0 0 0); }
@media (max-width: 960px) { .story3d.s3-pre .s3-steps li { translate: 0 24px !important; } .story3d.s3-pre.s3-in .s3-steps li { translate: 0 0 !important; } }

/* =====================================================================
   Le bureau : des cadres en arc, comme les portes et fenêtres de Kélibia.
   La présidente dans une grande arche, doublée d'un fin arc doré décalé ;
   les membres dans de petites arches.
   ===================================================================== */
#team .lead-photo { position: relative; width: clamp(150px, 13vw, 190px) !important; height: clamp(196px, 17vw, 248px) !important;
  border-radius: 999px 999px 16px 16px !important; background-size: 250% !important; background-position: 50% 30% !important;
  border: 6px solid #fff !important; box-shadow: 0 22px 40px -22px rgba(13, 59, 102, .55) !important; overflow: visible !important; margin-bottom: 8px; }
#team .lead-photo::after { content: ""; position: absolute; inset: -14px; translate: 10px 10px; border: 1.5px solid #e0a12c; border-radius: 999px 999px 20px 20px;
  pointer-events: none; z-index: -1; transition: translate .6s var(--spring); }
html[dir="rtl"] #team .lead-photo::after { translate: -10px 10px; }
#team .lead-member:hover .lead-photo::after { translate: 0 0; }
#team .member .avatar { width: 50px !important; height: 62px !important; border-radius: 999px 999px 10px 10px !important;
  box-shadow: 0 8px 16px -10px rgba(13, 59, 102, .5), 0 0 0 2px #fff !important; }

/* Bouclier : plus de traits pointillés ni de points entre les cartes et le bouclier */
.story3d.s3-sheet .s3-steps li button::after, .story3d.s3-sheet .s3-steps li button::before { content: none !important; display: none !important; }

/* Actualités : la photo devient la carte, le texte dans un panneau givré posé dedans (réf. « Designing spaces ») */
#news .news-grid .post.post { display: grid !important; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto auto auto;
  height: clamp(400px, 34vw, 460px); padding: 0 !important; gap: 0 !important; border-radius: 26px !important; overflow: hidden; isolation: isolate;
  background: #0b2a4a !important; box-shadow: 0 26px 44px -30px rgba(11, 42, 74, .75) !important; }
#news .news-grid .post.post > img { grid-area: 1 / 1 / -1 / -1; width: 100% !important; height: 100% !important; aspect-ratio: auto !important;
  object-fit: cover; margin: 0 !important; z-index: -2; transition: scale 1s var(--ease) !important; transform: none !important; }
#news .news-grid .post.post:hover > img { scale: 1.07; }
#news .news-grid .post.post::before { content: "" !important; display: block !important; position: static !important; grid-area: 2 / 1 / -1 / -1;
  margin: 0 10px 10px; border-radius: 19px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -14px rgba(11, 42, 74, .5); z-index: -1; transition: background .4s; }
#news .news-grid .post.post:hover::before { background: #fff; }
#news .news-grid .post.post > time { grid-area: 2 / 1 / 3 / -1; margin: 22px 30px 2px !important; color: #0c95d3 !important; }
#news .news-grid .post.post > h3 { grid-area: 3 / 1 / 4 / -1; margin: 0 30px 4px !important; color: #0b2a4a; }
#news .news-grid .post.post > p { grid-area: 4 / 1 / 5 / -1; margin: 0 30px 0 !important; -webkit-line-clamp: 2 !important; }
#news .news-grid .post.post > .link { grid-area: 5 / 1 / 6 / -1; justify-self: start; margin: 12px 30px 26px !important; padding: 7px 16px !important;
  border-radius: 999px; background: #0b2a4a !important; color: #fff !important; font-weight: 700; font-size: .84rem !important; text-decoration: none !important;
  background-image: none !important; transition: background-color .3s, translate .3s var(--spring); }
#news .news-grid .post.post > .link::after, #news .news-grid .post.post > .link::before { display: none !important; }
#news .news-grid .post.post:hover > .link { background-color: #f2a93b !important; color: #0b2a4a !important; translate: 0 -2px; }
#news .news-grid .post.post .post-lvl { top: 16px !important; inset-inline-start: 16px !important; border-radius: 999px !important; padding: 6px 13px !important;
  background: rgba(255, 255, 255, .88) !important; color: #0b2a4a !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none !important; }

/* « Pourquoi nous rejoindre » : en-tête centré, dans l'axe du bouclier,  */
#why .wrap > .section-head { text-align: center !important; max-width: 820px; margin-inline: auto !important; }
#why .wrap > .section-head h2, #why .wrap > .section-head > p { margin-inline: auto !important; }
#why .wrap > .section-head h2 .tl { display: block; text-align: center; translate: none !important; margin-inline: auto !important; }
#why .wrap > .section-head .derja { display: inline-block; rotate: -3deg; margin-top: 6px !important; }
#why .wrap > .section-head > p[data-i18n="why.sub"] { max-width: 66ch; text-wrap: balance; }

/* =====================================================================
   Bouclier, 2e passe : cartes blanches teintées, ombres colorées en deux couches,
   pastilles d'icône pleines (dégradé de la couleur, bouclier en blanc),
   bouclier qui flotte doucement au-dessus de son ombre.
   ===================================================================== */
.story3d.s3-sheet .s3-steps li:nth-child(2) { --c2: #3fb8ec; } .story3d.s3-sheet .s3-steps li:nth-child(3) { --c2: #4cc9b8; }
.story3d.s3-sheet .s3-steps li:nth-child(4) { --c2: #6d6bd1; } .story3d.s3-sheet .s3-steps li:nth-child(5) { --c2: #f2b632; }
.story3d.s3-sheet .s3-steps li button { padding: 18px 22px !important; border-radius: 26px !important;
  background: linear-gradient(135deg, var(--t) 0%, #fff 58%) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, #fff), inset 0 1px 0 #fff,
    0 2px 4px -2px color-mix(in srgb, var(--c) 25%, transparent),
    0 22px 40px -26px color-mix(in srgb, var(--c) 70%, #0b2a4a) !important; }
html[dir="rtl"] .story3d.s3-sheet .s3-steps li button { background: linear-gradient(225deg, var(--t) 0%, #fff 58%) !important; }
.story3d.s3-sheet .s3-steps li button:hover, .story3d.s3-sheet .s3-steps li button:focus-visible, .story3d.s3-sheet .s3-steps li button.on:not([data-state="acro"]) {
  background: linear-gradient(135deg, var(--t) 0%, #fff 70%) !important; rotate: 0deg; scale: 1; translate: 0 -5px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, #fff), inset 0 1px 0 #fff,
    0 4px 8px -4px color-mix(in srgb, var(--c) 35%, transparent),
    0 34px 52px -26px color-mix(in srgb, var(--c) 85%, #0b2a4a) !important; }
/* pastille d'icône : pleine, dégradé de la couleur, bouclier blanc */
.story3d.s3-sheet .s3-steps li button i, .story3d.s3-sheet .s3-steps li button.on i { width: 64px !important; height: 64px !important;
  background: radial-gradient(120% 120% at 30% 20%, var(--c2) 0%, var(--c) 62%, color-mix(in srgb, var(--c) 75%, #0b2a4a) 100%) !important;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 14%, #fff), inset 0 2px 0 rgba(255, 255, 255, .35),
    0 14px 22px -12px color-mix(in srgb, var(--c) 90%, #0b2a4a) !important; transition: scale .5s var(--spring), rotate .5s var(--spring) !important; }
.story3d.s3-sheet .s3-steps li button:hover i, .story3d.s3-sheet .s3-steps li button:focus-visible i { scale: 1.08; rotate: -6deg; }
.story3d.s3-sheet .s3-steps li button i svg { width: 36px !important; filter: drop-shadow(0 2px 3px rgba(11, 42, 74, .25)); }
.story3d.s3-sheet .s3-steps li button i svg .s4 { fill: #fff !important; }
.story3d.s3-sheet .s3-steps li button i svg.st-four .s4-com { opacity: .82; } .story3d.s3-sheet .s3-steps li button i svg.st-four .s4-int { opacity: .64; }
.story3d.s3-sheet .s3-steps li button i svg.st-four .s4-biz { opacity: .46; }
.story3d.s3-sheet .s3-steps li button i svg.st-legacy .s4-com, .story3d.s3-sheet .s3-steps li button i svg.st-legacy .s4-ind,
.story3d.s3-sheet .s3-steps li button i svg.st-ripple .s4-int, .story3d.s3-sheet .s3-steps li button i svg.st-ripple .s4-biz { opacity: .28 !important; }
.story3d.s3-sheet .s3-steps li b { color: color-mix(in srgb, var(--c) 82%, #0b2a4a) !important; }
.story3d.s3-sheet .s3-steps li small { color: #44566a !important; }
/* le bouclier : halo doux bleu-turquoise, ombre portée au sol, lévitation lente */
.story3d.s3-sheet .s3-plate { background: radial-gradient(closest-side, rgba(12, 149, 211, .16) 0%, rgba(31, 165, 159, .09) 48%, rgba(238, 247, 253, 0) 100%) !important; }
.story3d.s3-sheet .s3-rot { filter: drop-shadow(0 26px 22px rgba(11, 42, 74, .22)) drop-shadow(0 6px 6px rgba(11, 42, 74, .12)); }
.story3d.s3-sheet > .s3-stage.shield4 { position: relative !important; }
.story3d.s3-sheet .s3-floor { grid-area: 1 / 1; align-self: end; justify-self: center; width: clamp(130px, 12vw, 180px); height: 22px; margin-bottom: clamp(10px, 2vw, 30px);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 42, 74, .22), rgba(11, 42, 74, 0)); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .story3d.s3-sheet.s3-in .s3-rot { animation: s3Float 6s ease-in-out 1.6s infinite; }
  .story3d.s3-sheet.s3-in .s3-floor { animation: s3Floor 6s ease-in-out 1.6s infinite; }
}
@keyframes s3Float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes s3Floor { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .82; opacity: .65; } }
@media (max-width: 960px) { .story3d.s3-sheet .s3-steps li button { padding: 14px 16px !important; } }
@media (max-width: 960px) {
  .story3d.s3-sheet { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "mid" "a" "c" "b" "d" !important; row-gap: 14px !important; }
  .story3d.s3-sheet .s3-steps li:nth-child(n) { justify-self: stretch !important; align-self: auto !important; }
  .story3d.s3-sheet .s3-steps li:nth-child(n) button { width: 100% !important; max-width: none !important; }
  .story3d.s3-sheet .s3-steps li small { max-width: none !important; }
}
@media (max-width: 960px) { .story3d.s3-sheet .s3-floor { display: none; } }

/* =====================================================================
   « Un bouclier, quatre domaines » (refonte) : plus de cartes d'explication.
   Le titre d'un côté, le bouclier de l'autre ; chaque élément du bouclier porte
   la couleur de son domaine et ouvre le panneau correspondant juste en dessous.
   ===================================================================== */
#why > .wrap { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(24px, 4vw, 64px); align-items: center; }
#why > .wrap > * { grid-column: 1 / -1; min-width: 0; }
#why > .wrap > .section-head { grid-column: 1; grid-row: 1; text-align: start !important; max-width: 620px; margin: 0 !important; }
#why > .wrap > .section-head h2, #why > .wrap > .section-head > p { margin-inline: 0 !important; }
#why > .wrap > .section-head h2 .tl { text-align: start; margin-inline: 0 !important; }
#why > .wrap > .section-head h2 .tl + .tl { padding-inline-start: .9em; }
#why > .wrap > .section-head .derja { display: inline-block; rotate: -3deg; }
#why > .wrap > .section-head > p[data-i18n="why.sub"] { max-width: 46ch; text-wrap: pretty; }
#why > .wrap > .story3d.s3-sheet { grid-column: 2 !important; grid-row: 1; display: grid !important; grid-template-columns: 1fr !important; grid-template-areas: "mid" !important;
  max-width: none !important; margin: 0 !important; }
#why .story3d.s3-sheet > .s3-steps { display: none !important; }
#why .story3d.s3-sheet > .s3-stage.shield4 { grid-area: mid !important; grid-row: auto !important; height: clamp(300px, 27vw, 380px) !important; }
#why .story3d.s3-sheet .s3-rot { width: clamp(170px, 15vw, 220px) !important; pointer-events: auto; }
#why .story3d.s3-sheet .s3-plate { width: clamp(260px, 24vw, 340px) !important; }
#why .story3d .s3-x { display: none !important; }
/* chaque élément dans la couleur de son domaine, comme les panneaux */
#why .story3d .s3-layer.s3-ind .s4 { fill: #edc213 !important; } #why .story3d .s3-layer.s3-com .s4 { fill: #1f4a8a !important; }
#why .story3d .s3-layer.s3-int .s4 { fill: #0a7cb5 !important; } #why .story3d .s3-layer.s3-biz .s4 { fill: #1a7f7e !important; }
#why .story3d .s3-layer .s4 { opacity: 1 !important; cursor: pointer; transition: filter .3s; }
#why .story3d .s3-layer { transition: transform .7s var(--spring), opacity .4s ease !important; }
#why .story3d .shield4[data-on] .s3-layer { --o: .3; }
#why .story3d .shield4[data-on="ind"] .s3-ind, #why .story3d .shield4[data-on="com"] .s3-com,
#why .story3d .shield4[data-on="int"] .s3-int, #why .story3d .shield4[data-on="biz"] .s3-biz { --o: 1; --z: 70px; }
#why .story3d .s3-layer .s4:hover { filter: brightness(1.12); }
@media (max-width: 860px) {
  #why > .wrap { grid-template-columns: minmax(0, 1fr); }
  #why > .wrap > .section-head, #why > .wrap > .story3d.s3-sheet { grid-column: 1 !important; grid-row: auto; }
  #why .story3d.s3-sheet > .s3-stage.shield4 { height: 240px !important; }
  #why .story3d.s3-sheet .s3-rot { width: 150px !important; } #why .story3d.s3-sheet .s3-plate { width: 230px !important; }
}
#why .story3d .shield4[data-on] .s3-layer { --o: .5; }
#why .story3d.s3-sheet .s3-rot { width: clamp(190px, 17vw, 250px) !important; }
@media (max-width: 860px) { #why .story3d.s3-sheet .s3-rot { width: 160px !important; } }
/* bouclier net et franc : couleurs pleines, pas de halo ; il se rapproche du titre */
#why .story3d .shield4[data-on] .s3-layer { --o: .88; }
#why .story3d .shield4[data-on="ind"] .s3-ind, #why .story3d .shield4[data-on="com"] .s3-com,
#why .story3d .shield4[data-on="int"] .s3-int, #why .story3d .shield4[data-on="biz"] .s3-biz { --o: 1; --z: 60px; }
#why .story3d.s3-sheet .s3-plate { display: none !important; }
#why .story3d.s3-sheet .s3-rot { filter: drop-shadow(0 18px 18px rgba(11, 42, 74, .2)) !important; }
#why > .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important; column-gap: clamp(24px, 3vw, 48px); }
#why > .wrap > .story3d.s3-sheet { justify-self: center; width: clamp(260px, 26vw, 360px); }
#why > .wrap > .section-head { padding-block: clamp(10px, 2vw, 30px); }
@media (max-width: 860px) { #why > .wrap { grid-template-columns: minmax(0, 1fr) !important; } #why > .wrap > .story3d.s3-sheet { justify-self: center; width: 100%; } }
@media (min-width: 861px) { #why > .wrap > .story3d.s3-sheet { justify-self: start; } }
/* titre et bouclier groupés au centre de la page, côte à côte */
@media (min-width: 861px) {
  #why > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: clamp(28px, 4vw, 64px) !important; }
  #why > .wrap > .section-head { justify-self: end; width: fit-content; max-width: 540px; }
}

/* Le bouclier se décortique sous le curseur : les quatre éléments s'écartent, puis se ressoudent */
#why .story3d .shield4[data-on] .s3-layer { --o: 1; }
#why .story3d .s3-layer { translate: 0 0; rotate: 0deg; transition: transform .8s var(--spring), translate .8s var(--spring), rotate .8s var(--spring), opacity .4s ease !important; }
#why .story3d .s3-rot { transition: scale .8s var(--spring), filter .4s; cursor: pointer; }
#why .story3d .s3-stage.s3-open .s3-rot { scale: 1.06; }
#why .story3d .s3-stage.s3-open .s3-biz { --z: 0px; translate: 58px -14px; rotate: 9deg; }
#why .story3d .s3-stage.s3-open .s3-int { --z: 50px; translate: -54px -22px; rotate: -8deg; }
#why .story3d .s3-stage.s3-open .s3-com { --z: 100px; translate: 10px 34px; rotate: 4deg; }
#why .story3d .s3-stage.s3-open .s3-ind { --z: 160px; translate: -6px -52px; rotate: -6deg; scale: 1.12; }
#why .story3d .s3-stage.s3-open .s3-layer { transition-delay: calc(var(--k, 0) * 60ms) !important; }
#why .story3d .s3-int { --k: 1; } #why .story3d .s3-com { --k: 2; } #why .story3d .s3-ind { --k: 3; }
#why .story3d .s3-stage.s3-open .s3-floor { scale: 1.35; opacity: .55; }
#why .story3d .s3-floor { transition: scale .8s var(--spring), opacity .4s; }
@media (prefers-reduced-motion: reduce) { #why .story3d .s3-stage.s3-open .s3-layer { translate: 0 0; rotate: 0deg; } }

/* les légendes du bouclier décortiqué */
#why .story3d .s3-stage { overflow: visible !important; }
#why .story3d .s3-notes { grid-area: 1 / 1; position: relative; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
#why .story3d .s3-note { position: absolute; width: clamp(120px, 11vw, 160px); margin: 0; font-size: .82rem; line-height: 1.45; color: #44566a;
  opacity: 0; translate: 0 8px; transition: opacity .4s ease, translate .6s var(--spring); }
#why .story3d .s3-note b { display: block; font-size: .98rem; font-weight: 800; line-height: 1.3; margin-bottom: 2px; }
#why .story3d .n-ind b { color: #b8900a; } #why .story3d .n-com b { color: #1f4a8a; } #why .story3d .n-int b { color: #0a7cb5; } #why .story3d .n-biz b { color: #1a7f7e; }
#why .story3d .n-ind { top: -4%; left: 50%; margin-left: clamp(40px, 4vw, 64px); text-align: left; }
#why .story3d .n-int { top: 34%; left: -14%; text-align: right; }
#why .story3d .n-biz { top: 26%; right: -14%; text-align: left; }
#why .story3d .n-com { bottom: 2%; left: 50%; margin-left: clamp(20px, 2.4vw, 40px); text-align: left; }
html[dir="rtl"] #why .story3d .s3-note { text-align: right; }
html[dir="rtl"] #why .story3d .n-int { text-align: left; }
#why .story3d .s3-stage.s3-open .s3-note { opacity: 1; translate: 0 0; transition-delay: calc(.25s + var(--k, 0) * 90ms); }
#why .story3d .n-int { --k: 1; } #why .story3d .n-biz { --k: 2; } #why .story3d .n-com { --k: 3; }
@media (max-width: 860px) {
  #why .story3d .s3-note { width: 104px; font-size: .72rem; } #why .story3d .s3-note b { font-size: .84rem; }
  #why .story3d .n-int { left: 0; } #why .story3d .n-biz { right: 0; }
}
/* légendes : une colonne du côté extérieur, chacune à la hauteur de son élément */
#why .story3d .s3-note.s3-note { top: auto; bottom: auto; left: auto; right: auto; margin: 0; width: clamp(130px, 12vw, 170px); text-align: start !important; }
#why .story3d .s3-note.n-ind { top: 6%; } #why .story3d .s3-note.n-int { top: 28%; }
#why .story3d .s3-note.n-biz { top: 50%; } #why .story3d .s3-note.n-com { top: 72%; }
html[dir="rtl"] #why .story3d .s3-note.s3-note { right: calc(100% + 4px); }
html[dir="ltr"] #why .story3d .s3-note.s3-note { left: calc(100% + 4px); }
#why .story3d .s3-note.s3-note { padding-inline-start: 12px; border-inline-start: 3px solid var(--nc); }
#why .story3d .n-ind { --nc: #edc213; } #why .story3d .n-com { --nc: #1f4a8a; } #why .story3d .n-int { --nc: #0a7cb5; } #why .story3d .n-biz { --nc: #1a7f7e; }
@media (max-width: 860px) {
  #why .story3d.s3-sheet > .s3-stage.shield4 { height: auto !important; grid-template-rows: 240px auto; }
  #why .story3d .s3-notes { grid-area: 2 / 1; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 4px; }
  #why .story3d .s3-stage:not(.s3-open) .s3-notes { display: none; }
  #why .story3d .s3-note.s3-note { position: static; width: auto; }
}

#why .story3d .s3-floor { z-index: 1; }
/* légende : noms en manuscrit, comme les titres des panneaux */
html[lang="ar"] #why .story3d .s3-note b { font-family: "Aref Ruqaa", var(--font-ar-display), serif; font-size: 1.12rem; font-weight: 700; }
#why .story3d .s3-note.s3-note { border-inline-start-width: 4px; border-radius: 2px; }


/* légende = charte officielle : mini-icône + nom + sens */
#why .story3d .s3-note.lg { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: start; border: 0 !important; padding: 0 !important;
  width: clamp(200px, 17vw, 240px) !important; }
#why .story3d .s3-note.lg .lg-ic { grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center; }
#why .story3d .s3-note.lg .lg-svg { width: 32px; height: auto; overflow: visible; }
#why .story3d .s3-note.lg b { color: #0b2a4a !important; }
#why .story3d .s3-note.lg.lg-acro b { color: #0b2a4a !important; }
#why .story3d .s3-note.lg span { grid-column: 2; }
#why .story3d .s3-note.lg-legacy { top: 4%; } #why .story3d .s3-note.lg-ripple { top: 27%; }
#why .story3d .s3-note.lg-acro { top: 53%; } #why .story3d .s3-note.lg-four { top: 74%; }
/* mini-icônes dans les couleurs de la charte */
#why .lg-svg .s4 { fill: #0c95d3; }
#why .lg-svg.st-legacy .s4-int, #why .lg-svg.st-legacy .s4-biz { fill: #0c95d3; } #why .lg-svg.st-legacy .s4-com, #why .lg-svg.st-legacy .s4-ind { opacity: 0; }
#why .lg-svg.st-ripple .s4 { fill: #9fd4f0; animation: none !important; scale: 1 !important; opacity: 1 !important; } #why .lg-svg.st-ripple .s4-ind { fill: #0c95d3; }
#why .lg-svg.st-acro .s4-int { fill: #0c95d3; } #why .lg-svg.st-acro .s4-biz { fill: #57bcbb; } #why .lg-svg.st-acro .s4-com { fill: #13123a; } #why .lg-svg.st-acro .s4-ind { opacity: 0; }
#why .lg-svg.st-four .s4-int { fill: #0c95d3; } #why .lg-svg.st-four .s4-biz { fill: #57bcbb; } #why .lg-svg.st-four .s4-com { fill: #f2c418; } #why .lg-svg.st-four .s4-ind { fill: #13123a; }
#why .lg-svg .s4 { opacity: 1; }
@media (max-width: 860px) { #why .story3d .s3-note.lg { width: auto !important; grid-template-columns: 30px 1fr; } #why .story3d .s3-note.lg .lg-ic { width: 30px; height: 30px; } #why .story3d .s3-note.lg .lg-svg { width: 26px; } }

@media (min-width: 861px) {
  #why .story3d .s3-note.lg { grid-template-columns: 48px 1fr; column-gap: 12px; width: clamp(230px, 19vw, 270px) !important; font-size: .9rem; }
  #why .story3d .s3-note.lg .lg-ic { width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px -12px rgba(11, 42, 74, .45); }
  #why .story3d .s3-note.lg .lg-svg { width: 34px; }
  html[lang="ar"] #why .story3d .s3-note.lg b { font-size: 1.25rem; }
  #why .story3d .s3-note.lg-legacy { top: -2%; } #why .story3d .s3-note.lg-ripple { top: 23%; }
  #why .story3d .s3-note.lg-acro { top: 50%; } #why .story3d .s3-note.lg-four { top: 75%; }
}

/* ===== effets du bouclier ===== */
/* au repos, il « respire » : les éléments s'entrouvrent un instant, comme une invitation */
@media (prefers-reduced-motion: no-preference) {
  #why .story3d .s3-stage:not(.s3-open) .s3-biz { animation: s3PeekB 5.5s ease-in-out 2.4s infinite; }
  #why .story3d .s3-stage:not(.s3-open) .s3-int { animation: s3PeekI 5.5s ease-in-out 2.4s infinite; }
  #why .story3d .s3-stage:not(.s3-open) .s3-com { animation: s3PeekC 5.5s ease-in-out 2.4s infinite; }
  #why .story3d .s3-stage:not(.s3-open) .s3-ind { animation: s3PeekN 5.5s ease-in-out 2.4s infinite; }
}
@keyframes s3PeekB { 0%, 30%, 70%, 100% { translate: 0 0; } 45%, 55% { translate: 9px -2px; } }
@keyframes s3PeekI { 0%, 30%, 70%, 100% { translate: 0 0; } 45%, 55% { translate: -9px -3px; } }
@keyframes s3PeekC { 0%, 30%, 70%, 100% { translate: 0 0; } 45%, 55% { translate: 0 5px; } }
@keyframes s3PeekN { 0%, 30%, 70%, 100% { translate: 0 0; } 45%, 55% { translate: 0 -8px; } }
/* légende interactive */
#why .story3d .s3-notes { pointer-events: none; }
#why .story3d .s3-stage.s3-open .s3-note.lg { pointer-events: auto; cursor: default; }
#why .story3d .s3-note.lg { transition: opacity .4s ease, translate .6s var(--spring), scale .4s var(--spring) !important; }
#why .story3d .s3-note.lg .lg-ic { transition: scale .45s var(--spring), rotate .45s var(--spring), box-shadow .3s; }
#why .story3d .s3-note.lg.hot .lg-ic { scale: 1.15; rotate: -8deg; box-shadow: 0 12px 22px -10px rgba(12, 149, 211, .6), 0 0 0 2px #0c95d3; }
#why .story3d .s3-stage[data-lg] .s3-note.lg:not(.hot) { opacity: .45; }
#why .story3d .s3-stage.s3-open .s3-note.lg .lg-ic { animation: lgPop .55s var(--spring) both; animation-delay: calc(.3s + var(--k, 0) * 90ms); }
@keyframes lgPop { from { scale: .3; rotate: 20deg; } }
#why .story3d .s3-note.lg-ripple { --k: 1; } #why .story3d .s3-note.lg-acro { --k: 2; } #why .story3d .s3-note.lg-four { --k: 3; }
/* chaque sens montré dans le grand bouclier */
#why .story3d .s3-layer .s4 { transition: fill .45s ease, opacity .45s ease, filter .3s !important; }
#why .story3d .s3-stage[data-lg="legacy"] .s3-layer.s3-int .s4, #why .story3d .s3-stage[data-lg="legacy"] .s3-layer.s3-biz .s4 { fill: #0c95d3 !important; }
#why .story3d .s3-stage[data-lg="legacy"] .s3-layer.s3-com .s4, #why .story3d .s3-stage[data-lg="legacy"] .s3-layer.s3-ind .s4 { opacity: .1 !important; }
#why .story3d .s3-stage[data-lg="ripple"] .s3-layer .s4 { fill: #9fd4f0 !important; }
#why .story3d .s3-stage[data-lg="ripple"] .s3-layer.s3-ind .s4 { fill: #0c95d3 !important; }
@media (prefers-reduced-motion: no-preference) {
  #why .story3d .s3-stage[data-lg="ripple"] .s3-layer .s4 { animation: lgRipple 1.8s ease-in-out infinite; }
  #why .story3d .s3-stage[data-lg="ripple"] .s3-layer.s3-com .s4 { animation-delay: .15s; }
  #why .story3d .s3-stage[data-lg="ripple"] .s3-layer.s3-int .s4, #why .story3d .s3-stage[data-lg="ripple"] .s3-layer.s3-biz .s4 { animation-delay: .3s; }
}
@keyframes lgRipple { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25) drop-shadow(0 0 8px rgba(12, 149, 211, .5)); } }
#why .story3d .s3-stage[data-lg="acro"] .s3-layer.s3-int .s4 { fill: #0c95d3 !important; }
#why .story3d .s3-stage[data-lg="acro"] .s3-layer.s3-biz .s4 { fill: #57bcbb !important; }
#why .story3d .s3-stage[data-lg="acro"] .s3-layer.s3-com .s4 { fill: #13123a !important; }
#why .story3d .s3-stage[data-lg="acro"] .s3-layer.s3-ind .s4 { opacity: .1 !important; }
#why .story3d .s3-stage[data-lg="four"] .s3-layer .s4 { filter: saturate(1.2) brightness(1.05); }

/* ===== composition alignée : titre | bouclier | légende, dans la largeur de la page ===== */
@media (min-width: 1100px) {
  #why > .wrap { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important; column-gap: clamp(28px, 3vw, 56px) !important; }
  #why > .wrap > .section-head { justify-self: stretch; width: auto; max-width: 520px; }
  #why > .wrap > .story3d.s3-sheet { justify-self: stretch !important; width: 100% !important; }
  #why .story3d.s3-sheet > .s3-stage.shield4 { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(220px, 250px); grid-template-rows: 1fr; column-gap: 12px;
    height: clamp(340px, 28vw, 400px) !important; align-items: center; }
  #why .story3d .s3-stage > .s3-rot { grid-area: 1 / 1 !important; place-self: center; }
  #why .story3d .s3-stage > .s3-floor { grid-area: 1 / 1 !important; }
  #why .story3d .s3-notes { grid-area: 1 / 2 !important; position: static; height: auto; display: flex; flex-direction: column; gap: 18px; }
  #why .story3d .s3-note.s3-note.lg { position: static !important; width: auto !important; inset: auto !important; }
  #why .story3d .s3-stage:not(.s3-open) .s3-note.lg { opacity: .55; translate: 0 0; }
  #why .story3d .s3-stage:not(.s3-open) .s3-note.lg .lg-ic { box-shadow: none; }
}
@media (min-width: 861px) and (max-width: 1099px) {
  #why > .wrap { grid-template-columns: minmax(0, 1fr) !important; }
  #why > .wrap > .section-head, #why > .wrap > .story3d.s3-sheet { grid-column: 1 !important; grid-row: auto; justify-self: center !important; }
  #why > .wrap > .section-head { text-align: center !important; } #why > .wrap > .section-head h2 .tl { text-align: center; }
  #why .story3d.s3-sheet > .s3-stage.shield4 { height: auto !important; grid-template-rows: 320px auto; }
  #why .story3d .s3-notes { grid-area: 2 / 1; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  #why .story3d .s3-note.s3-note.lg { position: static !important; width: auto !important; opacity: 1; translate: 0 0; }
  #why > .wrap > .story3d.s3-sheet { width: min(600px, 100%) !important; }
}
@media (min-width: 1100px) {
  #why .story3d.s3-sheet > .s3-stage.shield4 { grid-template-columns: minmax(0, 1fr) 240px !important; column-gap: 28px !important; }
  #why .story3d .s3-notes { width: 240px; }
  #why .story3d .s3-stage.s3-open .s3-biz { translate: 38px -12px; }
  #why .story3d .s3-stage.s3-open .s3-int { translate: -36px -18px; }
}

/* ===== ruban : ombres propres et défilement fluide ===== */
/* le ruban passe au-dessus de la section suivante : son ombre se fond au lieu d'être coupée net */
main > .ribbon { position: relative; z-index: 2; }
/* bande bleue opaque (plus de mots dorés fantômes au travers), ombre douce en deux couches */
main > .ribbon .rb-glass { background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 32%),
    linear-gradient(90deg, #0b2f52, #0f3d68 50%, #0b2f52) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(255, 255, 255, .08),
    0 2px 6px -2px rgba(11, 42, 74, .35), 0 26px 40px -28px rgba(11, 42, 74, .55) !important; }
/* polaroïds : ombre douce teintée, posée une fois pour toutes (plus de balancement image par image) */
main > .ribbon .rb-glass .rb-photo { animation: none !important; will-change: auto !important;
  box-shadow: 0 1px 2px rgba(11, 42, 74, .22), 0 14px 22px -14px rgba(5, 20, 38, .6) !important; }
main > .ribbon .rb-track { backface-visibility: hidden; transform-style: flat; }
main > .ribbon .rb-photo img { backface-visibility: hidden; }
main > .ribbon { overflow: visible !important; overflow-x: clip !important; overflow-y: visible !important; }

/* légende sans mini-boucliers (redondants avec le grand) : texte seul, filets fins entre les sens */
#why .story3d .s3-note.lg .lg-ic { display: none !important; }
#why .story3d .s3-note.lg { grid-template-columns: 1fr !important; column-gap: 0 !important; padding-block: 2px 14px !important;
  border-bottom: 1px solid rgba(11, 42, 74, .1) !important; transition: opacity .4s ease, translate .6s var(--spring), padding .4s var(--spring) !important; }
#why .story3d .s3-note.lg:last-child { border-bottom: 0 !important; }
#why .story3d .s3-note.lg span { grid-column: 1 !important; }
#why .story3d .s3-note.lg.hot { padding-inline-start: 10px !important; }
#why .story3d .s3-note.lg.hot b { color: #0c95d3 !important; }
#why .story3d .s3-notes { gap: 14px !important; }
/* ===== sens du logo : notes manuscrites, comme griffonnées à côté du bouclier ===== */
#why .story3d .s3-note.lg { --c: #0c95d3; }
#why .story3d .s3-note.lg-ripple { --c: #3fa9e0; } #why .story3d .s3-note.lg-acro { --c: #13123a; } #why .story3d .s3-note.lg-four { --c: #d39a06; }
#why .story3d .s3-note.lg { border-bottom: 0 !important; padding-block: 0 !important; }
#why .story3d .s3-note.lg b { position: relative; display: inline-block !important; width: fit-content; color: var(--c) !important;
  font-family: "Aref Ruqaa", var(--font-ar-display), serif !important; font-weight: 700; font-size: 1.55rem !important; line-height: 1.25; margin-bottom: 6px; }
html:not([lang="ar"]) #why .story3d .s3-note.lg b { font-family: "Caveat", "Segoe Print", cursive !important; font-size: 1.75rem !important; }
/* soulignement tracé à la main, qui se dessine */
#why .story3d .s3-note.lg b::after { content: ""; position: absolute; inset-inline: -4px; bottom: -5px; height: 9px; background: var(--c); opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M3 9C40 4 80 3 120 6S180 10 197 5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M3 9C40 4 80 3 120 6S180 10 197 5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.6, 0, .3, 1); }
html[dir="rtl"] #why .story3d .s3-note.lg b::after { clip-path: inset(0 0 0 100%); }
#why .story3d .s3-stage.s3-open .s3-note.lg b::after, #why .story3d .s3-note.lg.hot b::after { clip-path: inset(0 0 0 0) !important; }
#why .story3d .s3-stage.s3-open .s3-note.lg b::after { transition-delay: calc(.35s + var(--k, 0) * 120ms); }
/* petite flèche griffonnée vers le bouclier */
#why .story3d .s3-note.lg b::before { content: ""; position: absolute; top: 50%; inset-inline-start: -44px; width: 36px; height: 18px; margin-top: -9px; background: var(--c); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M57 22C44 26 26 24 8 10'/%3E%3Cpath d='M9 21L7 9L19 8'/%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 60 30' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M57 22C44 26 26 24 8 10'/%3E%3Cpath d='M9 21L7 9L19 8'/%3E%3C/svg%3E") center / contain no-repeat; transition: translate .5s var(--spring); }
html[dir="rtl"] #why .story3d .s3-note.lg b::before { scale: -1 1; }
#why .story3d .s3-note.lg.hot b::before { translate: -5px 0; }
html[dir="rtl"] #why .story3d .s3-note.lg.hot b::before { translate: 5px 0; }
/* chaque note légèrement penchée, en zigzag, comme écrite à la main */
#why .story3d .s3-note.lg { transform-origin: center; }
#why .story3d .s3-note.lg-legacy { rotate: -2deg; } #why .story3d .s3-note.lg-ripple { rotate: 1.5deg; margin-inline-start: 18px; }
#why .story3d .s3-note.lg-acro { rotate: -1deg; } #why .story3d .s3-note.lg-four { rotate: 2deg; margin-inline-start: 14px; }
#why .story3d .s3-note.lg span { font-size: .92rem; line-height: 1.6; color: #4a5c70; }
#why .story3d .s3-note.lg.hot { padding-inline-start: 0 !important; }
#why .story3d .s3-note.lg.hot b { color: var(--c) !important; }
@media (max-width: 1099px) { #why .story3d .s3-note.lg b::before { display: none; } #why .story3d .s3-note.lg { margin-inline-start: 0 !important; } }
#why .story3d .s3-note.lg b { font-size: 1.85rem !important; }
html:not([lang="ar"]) #why .story3d .s3-note.lg b { font-size: 2rem !important; }
#why .story3d .s3-note.lg b::before { width: 44px; height: 22px; margin-top: -11px; inset-inline-start: -52px; }
@media (max-width: 860px) { #why .story3d .s3-note.lg b { font-size: 1.35rem !important; } html:not([lang="ar"]) #why .story3d .s3-note.lg b { font-size: 1.5rem !important; } }

#why .story3d .s3-layer { pointer-events: none !important; } #why .story3d .s3-layer .s4 { pointer-events: visiblePainted !important; }


/* ===== le bouclier se décompose : ses pièces volent jusqu'à leur sens ===== */
#why .story3d .s3-stage { position: relative; }
/* plus d'éclatement en 3D : le bouclier s'aplatit et reste entier jusqu'au départ des pièces */
#why .story3d .s3-stage.s3-open .s3-layer { translate: 0 0 !important; rotate: 0deg !important; scale: 1 !important; --z: 0px !important; }
#why .story3d .s3-stage.s3-open .s3-rot { transform: none !important; scale: 1 !important; transition: transform .35s ease, scale .35s ease !important; animation: none !important; }
#why .story3d .s3-stage.s3-open .s3-layer { animation: none !important; }
/* une fois les pièces parties, il ne reste qu'un fantôme du bouclier */
#why .story3d .s3-stage.lg-split .s3-layer { opacity: .1 !important; transition: opacity .3s ease !important; }
#why .story3d .lg-fly { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
#why .story3d .lg-piece { position: absolute; overflow: visible; transition: transform .85s cubic-bezier(.34, 1.4, .5, 1), filter .4s ease; will-change: transform; }
#why .story3d .lg-piece.away { filter: drop-shadow(0 14px 14px rgba(11, 42, 74, .28)); }
#why .story3d .lg-piece.landed { filter: drop-shadow(0 4px 5px rgba(11, 42, 74, .25)); }
/* l'emplacement où chaque pièce vient se poser */
#why .story3d .s3-note.lg .lg-ic { display: block !important; width: 60px !important; height: 60px !important; background: none !important; box-shadow: none !important; }
#why .story3d .s3-note.lg .lg-ic svg { display: none !important; }
#why .story3d .s3-note.lg { grid-template-columns: 60px 1fr !important; column-gap: 14px !important; align-items: center !important; }
#why .story3d .s3-note.lg .lg-ic { grid-row: 1 / span 2 !important; grid-column: 1 !important; }
#why .story3d .s3-note.lg b, #why .story3d .s3-note.lg span { grid-column: 2 !important; }
#why .story3d .s3-note.lg b::before { display: none !important; }
@media (min-width: 1100px) { #why .story3d.s3-sheet > .s3-stage.shield4 { grid-template-columns: minmax(0, 1fr) 300px !important; } #why .story3d .s3-notes { width: 300px !important; } }
/* les sens arrivent quand leur pièce se pose */
#why .story3d .s3-stage.s3-open .s3-note.lg { opacity: .25 !important; translate: 0 0 !important; transition: opacity .4s ease !important; transition-delay: 0s !important; }
#why .story3d .s3-stage.s3-open .s3-note.lg.in { opacity: 1 !important; }
#why .story3d .s3-stage.s3-open .s3-note.lg.in b { animation: lgLand .55s cubic-bezier(.34, 1.5, .5, 1) both; }
@keyframes lgLand { from { translate: 0 8px; } }
#why .story3d .s3-stage.s3-open .s3-note.lg b::after { clip-path: inset(0 0 0 100%) !important; transition-delay: .1s !important; }
html[dir="ltr"] #why .story3d .s3-stage.s3-open .s3-note.lg b::after { clip-path: inset(0 100% 0 0) !important; }
#why .story3d .s3-stage.s3-open .s3-note.lg.in b::after { clip-path: inset(0 0 0 0) !important; }
@media (max-width: 1099px) { #why .story3d .s3-note.lg { grid-template-columns: 44px 1fr !important; column-gap: 10px !important; } #why .story3d .s3-note.lg .lg-ic { width: 44px !important; height: 44px !important; } }
#why .story3d .s3-note.lg .lg-ic { animation: none !important; scale: 1 !important; rotate: 0deg !important; transition: none !important; }
@media (max-width: 860px) { #why .story3d .s3-notes { grid-template-columns: 1fr !important; gap: 14px !important; } }

/* pièces posées sur un petit socle blanc ; survol d'un sens = sa pièce retourne à sa place */
#why .story3d .s3-note.lg .lg-ic { border-radius: 50% !important; transition: background-color .4s ease, box-shadow .4s ease, scale .5s cubic-bezier(.34, 1.5, .5, 1) !important; }
#why .story3d .s3-stage.s3-open .s3-note.lg.in .lg-ic { background: #fff !important;
  box-shadow: 0 10px 22px -12px rgba(11, 42, 74, .45), inset 0 0 0 1px rgba(11, 42, 74, .06) !important; }
#why .story3d .s3-stage.s3-open .s3-note.lg.in .lg-ic { animation: lgPad .5s cubic-bezier(.34, 1.6, .5, 1) both !important; }
@keyframes lgPad { from { scale: .6; } }
#why .story3d .lg-piece.home { filter: drop-shadow(0 10px 14px rgba(11, 42, 74, .35)); transition: transform .6s cubic-bezier(.34, 1.3, .5, 1), filter .3s ease; }
#why .story3d .s3-stage.lg-peek .s3-layer { opacity: .18 !important; }
#why .story3d .s3-note.lg.in { cursor: pointer; }
#why .story3d .s3-note.lg.in:hover b { translate: -4px 0; transition: translate .3s ease; }
html[dir="ltr"] #why .story3d .s3-note.lg.in:hover b { translate: 4px 0; }

/* plus de soulignement sous les titres */
#why .story3d .s3-note.lg b::after { content: none !important; display: none !important; }
/* socles teintés de la couleur du sens, un peu plus grands */
#why .story3d .s3-note.lg { grid-template-columns: 68px 1fr !important; }
#why .story3d .s3-note.lg .lg-ic { width: 68px !important; height: 68px !important; }
#why .story3d .s3-stage.s3-open .s3-note.lg.in .lg-ic { background: color-mix(in srgb, var(--c) 12%, #fff) !important;
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--c) 70%, #0b2a4a), inset 0 0 0 1.5px color-mix(in srgb, var(--c) 25%, #fff) !important; }
/* les pièces posées flottent doucement, chacune à son rythme */
@media (prefers-reduced-motion: no-preference) {
  #why .story3d .lg-piece.landed:not(.home) path { animation: lgBob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  #why .story3d .lg-piece.p-com.landed path { animation-delay: -.8s; } #why .story3d .lg-piece.p-biz.landed path { animation-delay: -1.6s; }
  #why .story3d .lg-piece.p-ind.landed path { animation-delay: -2.4s; }
}
@keyframes lgBob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: -6deg; } }
/* titres un peu plus présents */
#why .story3d .s3-note.lg b { font-size: 2rem !important; margin-bottom: 2px !important; }
html:not([lang="ar"]) #why .story3d .s3-note.lg b { font-size: 2.1rem !important; }
@media (max-width: 1099px) { #why .story3d .s3-note.lg { grid-template-columns: 52px 1fr !important; } #why .story3d .s3-note.lg .lg-ic { width: 52px !important; height: 52px !important; }
  #why .story3d .s3-note.lg b { font-size: 1.45rem !important; } }
/* couleur de chaque sens = couleur de sa pièce (titre + socle) */
#why .story3d .s3-note.lg.lg-legacy { --c: #0a7cb5; } #why .story3d .s3-note.lg.lg-ripple { --c: #1f4a8a; }
#why .story3d .s3-note.lg.lg-acro { --c: #1a7f7e; } #why .story3d .s3-note.lg.lg-four { --c: #d39a06; }
#why .story3d .s3-note.lg.lg-acro b, #why .story3d .s3-note.lg b { color: var(--c) !important; }

/* sans bulles : la pièce elle-même est l'icône, plus grande, avec une petite ombre au sol */
#why .story3d .s3-note.lg .lg-ic, #why .story3d .s3-stage.s3-open .s3-note.lg.in .lg-ic { background: none !important; box-shadow: none !important; border-radius: 0 !important; animation: none !important; position: relative; }
#why .story3d .s3-note.lg .lg-ic::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 60%; height: 8px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 42, 74, .22), rgba(11, 42, 74, 0)); opacity: 0; transition: opacity .4s ease .3s; }
#why .story3d .s3-stage.s3-open .s3-note.lg.in .lg-ic::after { opacity: 1; }
#why .story3d .s3-note.lg { grid-template-columns: 76px 1fr !important; column-gap: 18px !important; }
#why .story3d .s3-note.lg .lg-ic { width: 76px !important; height: 76px !important; }
/* un seul axe, plus de zigzag ni d'inclinaison */
#why .story3d .s3-note.lg { margin-inline-start: 0 !important; rotate: 0deg !important; }
#why .story3d .lg-piece.landed { filter: drop-shadow(0 3px 3px rgba(11, 42, 74, .18)); }
@media (max-width: 1099px) { #why .story3d .s3-note.lg { grid-template-columns: 58px 1fr !important; column-gap: 12px !important; } #why .story3d .s3-note.lg .lg-ic { width: 58px !important; height: 58px !important; } }
/* =====================================================================
   Mission / vision dans la continuité de la frise 1915 · 1962 · 1994 :
   fond clair, pas de boîte, deux colonnes ; les mots « رسالتنا / رؤيتنا »
   en grand comme les années, un trait à point au-dessus, comme la frise.
   ===================================================================== */
section.about > .wrap.mv.mv { background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; grid-template-areas: "m v" "src src" !important;
  column-gap: clamp(28px, 5vw, 80px) !important; row-gap: 0 !important; padding: clamp(10px, 1.6vw, 24px) 0 0 !important; margin-top: clamp(30px, 4vw, 60px) !important; }
section.about > .wrap.mv.mv .mv-hero, section.about > .wrap.mv.mv .mv-mark { display: none !important; }
section.about > .wrap.mv.mv > .mv-item { grid-area: m !important; position: relative; padding: 34px 0 0 !important; border-top: 2px solid #dbe5ee; }
section.about > .wrap.mv.mv > .mv-item ~ .mv-item { grid-area: v !important; padding: 34px 0 0 !important; }
/* le point sur le trait, comme sur la frise (bleu pour la mission, or pour la vision) */
section.about > .wrap.mv.mv > .mv-item::before, section.about > .wrap.mv.mv > .mv-item ~ .mv-item::before { content: "" !important; display: block !important; position: absolute; top: -8px;
  inset-inline-start: 0; width: 14px !important; height: 14px !important; margin: 0 !important; border-radius: 50%; background: #0c95d3 !important;
  box-shadow: 0 0 0 5px rgba(12, 149, 211, .18); }
section.about > .wrap.mv.mv > .mv-item ~ .mv-item::before { background: #f2a93b !important; box-shadow: 0 0 0 5px rgba(242, 169, 59, .22); }
section.about > .wrap.mv.mv > .mv-item::after { content: none !important; }
/* le mot en grand, comme les années */
section.about > .wrap.mv.mv .mv-item h3 { font-family: var(--font-ar-display), "Reem Kufi", sans-serif !important; font-weight: 700 !important; rotate: none !important;
  font-size: clamp(3rem, 5.6vw, 5.4rem) !important; line-height: 1 !important; color: #13263a !important; margin: 0 0 18px !important; letter-spacing: -.01em; }
html:not([lang="ar"]) section.about > .wrap.mv.mv .mv-item h3 { font-family: "Plus Jakarta Sans", sans-serif !important; letter-spacing: -.04em; }
section.about > .wrap.mv.mv > .mv-item ~ .mv-item h3 { color: #f2a93b !important; }
section.about > .wrap.mv.mv .mv-item .mv-text { color: #13263a !important; font-family: var(--font-ar-display), "Reem Kufi", sans-serif !important; font-weight: 600 !important;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem) !important; line-height: 1.5 !important; max-width: 30ch; text-shadow: none !important; }
html:not([lang="ar"]) section.about > .wrap.mv.mv .mv-item .mv-text { font-family: "Plus Jakarta Sans", sans-serif !important; }
section.about > .wrap.mv.mv .mv-item .mv-derja { color: #0097d7 !important; font-size: clamp(1.1rem, 1.4vw, 1.3rem) !important; margin-top: 12px !important; rotate: -2deg; }
section.about > .wrap.mv.mv .mv-src { grid-area: src !important; padding: clamp(22px, 2.4vw, 34px) 0 0 !important; color: rgba(19, 38, 58, .55) !important; }
section.about > .wrap.mv.mv .mv-item { opacity: 1 !important; transform: none !important; translate: none !important; }
@media (max-width: 860px) {
  section.about > .wrap.mv.mv { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "m" "v" "src" !important; row-gap: 40px !important; }
}
section.about > .wrap.mv.mv { margin-inline: auto !important; }
/* =====================================================================
   Mission / vision : cartes claires, une icône vivante, une étiquette autocollant
   ===================================================================== */
section.about > .wrap.mv.mv.mv-ico { column-gap: clamp(22px, 3vw, 44px) !important; padding-top: clamp(24px, 3vw, 40px) !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item, section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item {
  border: 0 !important; border-radius: 28px !important; background: #fff !important; padding: clamp(26px, 3vw, 40px) clamp(24px, 3vw, 42px) clamp(28px, 3vw, 40px) !important;
  box-shadow: 0 1px 2px rgba(11, 42, 74, .06), 0 24px 50px -30px rgba(11, 42, 74, .35) !important; overflow: visible !important;
  transition: translate .5s cubic-bezier(.34, 1.4, .5, 1), box-shadow .4s ease !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item::before, section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item::before { content: none !important; display: none !important; }
@media (hover: hover) { section.about > .wrap.mv.mv.mv-ico > .mv-item:hover { translate: 0 -6px !important; box-shadow: 0 1px 2px rgba(11, 42, 74, .06), 0 34px 60px -30px rgba(11, 42, 74, .45) !important; } }
/* l'icône */
section.about > .wrap.mv.mv.mv-ico .mv-ico-art { width: clamp(110px, 10vw, 140px); aspect-ratio: 1; margin-bottom: 14px; }
section.about > .wrap.mv.mv.mv-ico .mv-ico-art svg { width: 100%; height: 100%; overflow: visible; display: block; }
/* la flèche arrive et vibre */
section.about .ico-arrow { transform-box: view-box; transform-origin: 62px 78px; transform: translate(70px, -70px); opacity: 0; }
section.about .mv-item.ico-on .ico-arrow { animation: icoShoot .55s cubic-bezier(.5, 0, .9, .4) .3s forwards, icoWobble .6s ease-out .85s 1; }
@keyframes icoShoot { from { transform: translate(70px, -70px); opacity: 1; } to { transform: translate(0, 0); opacity: 1; } }
@keyframes icoWobble { 0% { transform: rotate(0deg); opacity: 1; } 25% { transform: rotate(-5deg); opacity: 1; } 50% { transform: rotate(4deg); opacity: 1; } 75% { transform: rotate(-2deg); opacity: 1; } 100% { transform: rotate(0deg); opacity: 1; } }
section.about .mv-item.ico-on .ico-target { animation: icoThunk .3s ease .85s 1; }
@keyframes icoThunk { 50% { scale: .94; } }
@media (prefers-reduced-motion: reduce) { section.about .ico-arrow { transform: none; opacity: 1; animation: none !important; } }
/* l'œil */
section.about .ico-iris { transition: transform .25s ease-out; }
section.about .ico-lid { transform-box: view-box; transform-origin: 70px 0; transform: scaleY(0); transition: transform .09s ease-in; }
section.about .ico-eye.blink .ico-lid { transform: scaleY(1.05); }
/* l'étiquette autocollant */
section.about > .wrap.mv.mv.mv-ico .mv-item h3 { display: inline-block !important; width: fit-content; font-family: "Aref Ruqaa", var(--font-ar-display), serif !important;
  font-size: clamp(1.6rem, 2.2vw, 2rem) !important; line-height: 1.2 !important; padding: 6px 20px 10px !important; margin: 0 0 16px !important; border-radius: 12px;
  background: #f2a93b; color: #0b2a4a !important; rotate: -3deg !important; box-shadow: 0 8px 16px -10px rgba(224, 144, 26, .9); letter-spacing: 0; }
html:not([lang="ar"]) section.about > .wrap.mv.mv.mv-ico .mv-item h3 { font-family: "Caveat", cursive !important; font-size: clamp(1.9rem, 2.5vw, 2.3rem) !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item h3 { background: #0c95d3; color: #fff !important; rotate: 2.5deg !important; box-shadow: 0 8px 16px -10px rgba(12, 149, 211, .9); }
section.about > .wrap.mv.mv.mv-ico .mv-item .mv-text { max-width: none !important; font-size: clamp(1.25rem, 1.8vw, 1.6rem) !important; line-height: 1.5 !important; color: #13263a !important; }
section.about > .wrap.mv.mv.mv-ico .mv-item .mv-derja { margin-top: 12px !important; }
@media (max-width: 860px) { section.about > .wrap.mv.mv.mv-ico .mv-ico-art { width: 96px; } }
section.about > .wrap.mv.mv.mv-ico > .mv-item { background: linear-gradient(160deg, #fff4dc 0%, #fffaf0 100%) !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item { background: linear-gradient(160deg, #e2f2fc 0%, #f3f9fd 100%) !important; }

/* ===== mission / vision : couleurs franches, icônes qui débordent, étincelles ===== */
section.about > .wrap.mv.mv.mv-ico { padding-top: clamp(70px, 7vw, 100px) !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item { background: linear-gradient(150deg, #ffbd45 0%, #f29a1f 100%) !important; color: #0b2a4a;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .35) inset, 0 30px 50px -26px rgba(214, 128, 8, .75) !important; padding-top: clamp(96px, 9vw, 120px) !important; rotate: -1.2deg; }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item { background: linear-gradient(150deg, #19aef0 0%, #0a6fb3 100%) !important;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .3) inset, 0 30px 50px -26px rgba(10, 100, 170, .8) !important; rotate: 1.2deg; }
@media (hover: hover) { section.about > .wrap.mv.mv.mv-ico > .mv-item:hover { rotate: 0deg; } }
section.about > .wrap.mv.mv.mv-ico .mv-item .mv-text { color: #0b2a4a !important; font-weight: 700 !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item .mv-text { color: #fff !important; }
section.about > .wrap.mv.mv.mv-ico .mv-item .mv-derja { color: #0b2a4a !important; opacity: .85; }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item .mv-derja { color: #ffe08a !important; opacity: 1; }
/* étiquettes : autocollants blancs */
section.about > .wrap.mv.mv.mv-ico .mv-item h3 { background: #fff !important; color: #e0861a !important; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .35) !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item h3 { color: #0a74b9 !important; }
/* l'icône déborde du haut de la carte, posée sur un disque blanc */
section.about > .wrap.mv.mv.mv-ico .mv-ico-art { position: absolute; top: clamp(-70px, -6vw, -56px); inset-inline-start: clamp(22px, 3vw, 40px); width: clamp(140px, 12vw, 170px);
  margin: 0; padding: 14px; border-radius: 50%; background: #fff; box-shadow: 0 18px 30px -16px rgba(11, 42, 74, .5); }
@media (prefers-reduced-motion: no-preference) {
  section.about > .wrap.mv.mv.mv-ico .mv-ico-art { animation: icoFloat 4.5s ease-in-out infinite; }
  section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item .mv-ico-art { animation-delay: -2.2s; }
}
@keyframes icoFloat { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -10px; rotate: 4deg; } }
/* étincelles */
section.about .mv-spark { position: absolute; display: block; color: #f2a93b; pointer-events: none; }
section.about .mv-item ~ .mv-item .mv-spark { color: #0c95d3; }
section.about .mv-spark svg { width: 100%; height: 100%; display: block; }
section.about .mv-spark.s1 { width: 26px; height: 26px; top: -8px; inset-inline-end: -14px; }
section.about .mv-spark.s2 { width: 16px; height: 16px; bottom: 6px; inset-inline-end: -22px; }
section.about .mv-spark.s3 { width: 12px; height: 12px; top: 30%; inset-inline-start: -20px; }
section.about .mv-spark.sq { width: 52px; height: 18px; bottom: -14px; inset-inline-start: -30px; color: #0b2a4a; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  section.about .mv-spark.s1, section.about .mv-spark.s2, section.about .mv-spark.s3 { animation: sparkle 2.4s ease-in-out infinite; }
  section.about .mv-spark.s2 { animation-delay: -.8s; } section.about .mv-spark.s3 { animation-delay: -1.6s; }
}
@keyframes sparkle { 0%, 100% { scale: .4; opacity: .3; rotate: 0deg; } 50% { scale: 1.1; opacity: 1; rotate: 45deg; } }
/* l'œil bouge plus franchement */
section.about .ico-iris { transition: transform .5s cubic-bezier(.34, 1.4, .5, 1) !important; }
@media (max-width: 860px) {
  section.about > .wrap.mv.mv.mv-ico { row-gap: 90px !important; }
  section.about > .wrap.mv.mv.mv-ico .mv-ico-art { width: 120px; top: -54px; }
  section.about > .wrap.mv.mv.mv-ico > .mv-item, section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item { padding-top: 84px !important; rotate: 0deg; }
}
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item { padding-top: clamp(96px, 9vw, 120px) !important; } @media (max-width: 860px) { section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item { padding-top: 84px !important; } }

/* onde JCI en filigrane blanc dans le coin de chaque carte */
section.about > .wrap.mv.mv.mv-ico > .mv-item { isolation: isolate; }
section.about > .wrap.mv.mv.mv-ico .mv-wm { position: absolute; z-index: -1; bottom: 0; inset-inline-end: 0; width: 62%; aspect-ratio: 1; overflow: hidden;
  border-end-end-radius: 28px; pointer-events: none; }
section.about > .wrap.mv.mv.mv-ico .mv-wm svg { position: absolute; width: 150%; height: 150%; bottom: -55%; inset-inline-end: -55%; overflow: visible; }
html[dir="rtl"] section.about > .wrap.mv.mv.mv-ico .mv-wm svg { inset-inline-end: auto; left: -55%; }
section.about > .wrap.mv.mv.mv-ico .mv-wm path { fill: none; stroke: #fff; stroke-width: 3.2; opacity: .2; }
@media (prefers-reduced-motion: no-preference) { section.about > .wrap.mv.mv.mv-ico .mv-wm svg { animation: mvSpin 70s linear infinite; } }
@keyframes mvSpin { to { rotate: 360deg; } }
/* l'œil s'écarquille au survol */
section.about .ico-eye { transition: scale .4s cubic-bezier(.34, 1.6, .5, 1); }
section.about .mv-item:hover .ico-eye { scale: 1.12; }
section.about .mv-item:hover .ico-iris circle:first-of-type { r: 11; }
section.about .mv-item:hover .ico-target { scale: 1.06; transition: scale .4s cubic-bezier(.34, 1.6, .5, 1); }
/* énoncés plus présents */
section.about > .wrap.mv.mv.mv-ico .mv-item .mv-text { font-size: clamp(1.4rem, 2.1vw, 1.85rem) !important; line-height: 1.45 !important; max-width: 24ch !important; }
section.about > .wrap.mv.mv.mv-ico .mv-item .mv-derja { font-size: clamp(1.15rem, 1.5vw, 1.35rem) !important; margin-top: 16px !important; }

/* ===== mission / vision en verre : reflets, bord lumineux, ombres colorées, survol 3D ===== */
section.about > .wrap.mv.mv.mv-ico { perspective: 1200px; }
section.about > .wrap.mv.mv.mv-ico > .mv-item, section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item {
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--mvl, 0px)) !important; transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .8, .3, 1), box-shadow .45s ease, rotate .45s ease !important; }
/* bord de verre + ombres en couches */
section.about > .wrap.mv.mv.mv-ico > .mv-item {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), inset 0 2px 0 rgba(255, 255, 255, .6),
    0 2px 4px rgba(150, 90, 0, .18), 0 18px 30px -16px rgba(214, 128, 8, .55), 0 44px 70px -40px rgba(214, 128, 8, .7) !important; }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4), inset 0 2px 0 rgba(255, 255, 255, .55),
    0 2px 4px rgba(5, 60, 110, .2), 0 18px 30px -16px rgba(10, 100, 170, .55), 0 44px 70px -40px rgba(10, 100, 170, .75) !important; }
@media (hover: hover) {
  section.about > .wrap.mv.mv.mv-ico > .mv-item:hover { --mvl: -10px; translate: none !important; }
  section.about > .wrap.mv.mv.mv-ico > .mv-item:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), inset 0 2px 0 rgba(255, 255, 255, .7),
    0 4px 8px rgba(150, 90, 0, .2), 0 28px 44px -18px rgba(214, 128, 8, .65), 0 70px 100px -50px rgba(214, 128, 8, .8) !important; }
  section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), inset 0 2px 0 rgba(255, 255, 255, .65),
    0 4px 8px rgba(5, 60, 110, .22), 0 28px 44px -18px rgba(10, 100, 170, .65), 0 70px 100px -50px rgba(10, 100, 170, .85) !important; }
}
/* reflet de verre : bande brillante en haut + tache de lumière qui suit le curseur */
section.about > .wrap.mv.mv.mv-ico .mv-glass { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: radial-gradient(420px circle at var(--gx, 30%) var(--gy, -10%), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, 0) 60%);
  transition: opacity .4s ease; }
section.about > .wrap.mv.mv.mv-ico .mv-wm { z-index: -2; }
/* disque de l'icône en verre dépoli */
section.about > .wrap.mv.mv.mv-ico .mv-ico-art { background: rgba(255, 255, 255, .72) !important; -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: inset 0 2px 0 #fff, 0 18px 34px -16px rgba(11, 42, 74, .55), 0 0 0 8px rgba(255, 255, 255, .18) !important;
  transform: translateZ(40px); transition: box-shadow .4s ease; }
section.about > .wrap.mv.mv.mv-ico .mv-item:hover .mv-ico-art { box-shadow: inset 0 2px 0 #fff, 0 26px 44px -18px rgba(11, 42, 74, .6), 0 0 0 12px rgba(255, 255, 255, .22) !important; }
/* étiquettes en verre */
section.about > .wrap.mv.mv.mv-ico .mv-item h3 { background: rgba(255, 255, 255, .8) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 12px 20px -12px rgba(0, 0, 0, .35) !important; transform: translateZ(24px);
  transition: rotate .4s cubic-bezier(.34, 1.6, .5, 1); }
section.about > .wrap.mv.mv.mv-ico .mv-item:hover h3 { rotate: 0deg !important; }
section.about > .wrap.mv.mv.mv-ico .mv-item .mv-text, section.about > .wrap.mv.mv.mv-ico .mv-item .mv-derja { transform: translateZ(16px); }
section.about > .wrap.mv.mv.mv-ico > .mv-item ~ .mv-item .mv-text { text-shadow: 0 2px 10px rgba(5, 50, 100, .35) !important; }
@media (prefers-reduced-motion: reduce) { section.about > .wrap.mv.mv.mv-ico > .mv-item { transform: none !important; } }
#about > .wrap.mv.mv-ico > .mv-item { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--mvl, 0px)) rotate(var(--rz, -1.2deg)) !important; rotate: none !important; translate: none !important; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { --rz: 1.2deg; }
@media (hover: hover) { #about > .wrap.mv.mv-ico > .mv-item:hover { --rz: 0deg; --mvl: -10px; } }
@media (max-width: 860px) { #about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { --rz: 0deg; } }
@media (prefers-reduced-motion: reduce) { #about > .wrap.mv.mv-ico > .mv-item { transform: none !important; } }
#about > .wrap.mv .mv-src { display: none !important; } #about > .wrap.mv.mv-ico { grid-template-areas: "m v" !important; } @media (max-width: 860px) { #about > .wrap.mv.mv-ico { grid-template-areas: "m" "v" !important; } }
#about > .wrap.mv.mv-ico { margin-bottom: clamp(28px, 3vw, 44px) !important; padding-top: clamp(80px, 7vw, 96px) !important; margin-top: clamp(30px, 3vw, 48px) !important; }

/* ===== entrée de mission / vision : les cartes montent l'une après l'autre, puis les icônes éclosent ===== */
@media (prefers-reduced-motion: no-preference) {
  #about > .wrap.mv.mv-ico > .mv-item:not(.mv-in) { opacity: 0 !important; --mvl: 70px; --rz: -6deg; }
  #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item:not(.mv-in) { --rz: 6deg; }
  #about > .wrap.mv.mv-ico > .mv-item.mv-in { animation: mvRise 1s cubic-bezier(.2, .9, .3, 1.15) both; }
  #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item.mv-in { animation-delay: .18s; }
  #about > .wrap.mv.mv-ico > .mv-item { transition: transform .45s cubic-bezier(.2, .8, .3, 1), box-shadow .45s ease, opacity .6s ease !important; }
  #about > .wrap.mv.mv-ico > .mv-item:not(.mv-in) .mv-ico-art { scale: .2; opacity: 0; }
  #about > .wrap.mv.mv-ico > .mv-item .mv-ico-art { transition: scale .7s cubic-bezier(.34, 1.7, .5, 1) .45s, opacity .3s ease .45s, box-shadow .4s ease; }
  #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item .mv-ico-art { transition-delay: .63s, .63s, 0s; }
  #about > .wrap.mv.mv-ico > .mv-item:not(.mv-in) .mv-spark { opacity: 0 !important; }
  #about > .wrap.mv.mv-ico > .mv-item:not(.mv-in) h3 { opacity: 0; translate: 0 10px; }
  #about > .wrap.mv.mv-ico > .mv-item h3 { transition: opacity .4s ease .7s, translate .5s cubic-bezier(.34, 1.6, .5, 1) .7s, rotate .4s cubic-bezier(.34, 1.6, .5, 1) !important; }
}
@keyframes mvRise { from { opacity: 0; } to { opacity: 1; } }

/* cartes plus compactes, paire centrée ; disques d'icône plus légers */
#about > .wrap.mv.mv-ico { grid-template-columns: minmax(0, 440px) minmax(0, 440px) !important; justify-content: center !important; column-gap: clamp(28px, 3.4vw, 52px) !important; }
#about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { min-height: 0 !important; padding: 84px 32px 30px !important; border-radius: 24px !important; }
#about > .wrap.mv.mv-ico .mv-ico-art { width: 116px !important; top: -50px !important; padding: 10px !important; inset-inline-start: 28px !important; }
#about > .wrap.mv.mv-ico .mv-item h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem) !important; padding: 4px 16px 8px !important; margin-bottom: 12px !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-text { font-size: clamp(1.2rem, 1.55vw, 1.45rem) !important; max-width: none !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-derja { font-size: 1.12rem !important; margin-top: 10px !important; }
#about > .wrap.mv.mv-ico .mv-wm { width: 55%; }
@media (max-width: 860px) {
  #about > .wrap.mv.mv-ico { grid-template-columns: minmax(0, 1fr) !important; row-gap: 74px !important; }
  #about > .wrap.mv.mv-ico .mv-ico-art { width: 100px !important; top: -44px !important; }
  #about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { padding: 72px 24px 26px !important; }
}

/* =====================================================================
   Mission / vision, réf. « Our Vision / Our Mission » : cartes nacrées claires,
   grand titre gras, et l'icône devient un objet 3D qui sort du coin de la carte.
   ===================================================================== */
#about > .wrap.mv.mv-ico { padding-top: clamp(30px, 3vw, 44px) !important; row-gap: 60px !important; }
#about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item {
  background: linear-gradient(155deg, #f7f9fb 0%, #e8edf2 100%) !important; overflow: visible !important;
  min-height: 300px !important; padding: 34px 34px 36px !important; padding-inline-end: 190px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 2px 0 #fff, 0 2px 4px rgba(11, 42, 74, .06), 0 30px 50px -30px rgba(11, 42, 74, .35) !important; }
@media (hover: hover) { #about > .wrap.mv.mv-ico > .mv-item:hover, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item:hover {
  box-shadow: inset 0 0 0 1px #fff, inset 0 2px 0 #fff, 0 4px 8px rgba(11, 42, 74, .08), 0 44px 70px -34px rgba(11, 42, 74, .45) !important; } }
#about > .wrap.mv.mv-ico .mv-wm path { stroke: #0b2a4a !important; opacity: .05 !important; }
#about > .wrap.mv.mv-ico .mv-wm { inset-inline-end: auto; inset-inline-start: 0; border-end-end-radius: 0; border-end-start-radius: 24px; }
/* grand titre gras, plus d'autocollant */
#about > .wrap.mv.mv-ico .mv-item h3, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item h3 { background: none !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 !important; rotate: 0deg !important; transform: none !important;
  font-family: var(--font-ar-display), "Reem Kufi", sans-serif !important; font-weight: 700 !important; font-size: clamp(2.2rem, 3.2vw, 2.9rem) !important; line-height: 1.05 !important;
  color: #0b2a4a !important; margin: 0 0 14px !important; }
html:not([lang="ar"]) #about > .wrap.mv.mv-ico .mv-item h3 { font-family: "Plus Jakarta Sans", sans-serif !important; letter-spacing: -.03em; }
#about > .wrap.mv.mv-ico .mv-item h3::after { content: "" !important; display: block !important; width: 46px; height: 4px; border-radius: 4px; margin-top: 12px;
  background: linear-gradient(90deg, #0c95d3, #5cc0b8); position: static !important; }
#about > .wrap.mv.mv-ico > .mv-item:first-of-type h3::after { background: linear-gradient(90deg, #f2a93b, #f5c518); }
#about > .wrap.mv.mv-ico .mv-item .mv-text, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item .mv-text { color: #44566a !important; text-shadow: none !important; font-weight: 600 !important;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem) !important; line-height: 1.65 !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-derja, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item .mv-derja { color: #0097d7 !important; }
#about > .wrap.mv.mv-ico > .mv-item:first-of-type .mv-derja { color: #e0901a !important; }
/* l'objet 3D qui sort du coin */
#about > .wrap.mv.mv-ico .mv-ico-art { top: auto !important; bottom: -46px; inset-inline-start: auto !important; inset-inline-end: -34px; width: clamp(190px, 16vw, 230px) !important;
  padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  filter: drop-shadow(0 26px 22px rgba(11, 42, 74, .32)) drop-shadow(0 6px 6px rgba(11, 42, 74, .18)); transform: perspective(700px) rotateY(-18deg) rotateX(12deg) !important; }
html[dir="ltr"] #about > .wrap.mv.mv-ico .mv-ico-art { transform: perspective(700px) rotateY(18deg) rotateX(12deg) !important; }
#about > .wrap.mv.mv-ico .mv-ico-art .ico-eye path:first-of-type { fill: #fff; }
#about > .wrap.mv.mv-ico .mv-spark { color: #f2a93b; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item .mv-spark { color: #0c95d3; }
#about > .wrap.mv.mv-ico .mv-spark.sq { display: none; }
#about > .wrap.mv.mv-ico .mv-glass { opacity: .7; }
@media (max-width: 860px) {
  #about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { padding: 28px 24px 120px !important; min-height: 0 !important; }
  #about > .wrap.mv.mv-ico .mv-ico-art { width: 150px !important; bottom: -40px; inset-inline-end: -10px; }
}
@media (min-width: 861px) { #about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { padding-inline-end: 150px !important; } }
/* =====================================================================
   Mission / vision, version épurée (autocritique) : deux cartes blanches nettes,
   alignées sur la largeur de la frise ; petite icône à côté du titre ; un filet
   de couleur en haut ; plus de débordement, d'étincelles, de filigrane ni de reflets.
   ===================================================================== */
#about > .wrap.mv.mv-ico { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; justify-content: stretch !important;
  column-gap: clamp(20px, 2.6vw, 36px) !important; padding: 0 !important; margin-top: clamp(40px, 4vw, 64px) !important; perspective: none; }
#about > .wrap.mv.mv-ico .mv-spark, #about > .wrap.mv.mv-ico .mv-wm, #about > .wrap.mv.mv-ico .mv-glass { display: none !important; }
#about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item {
  display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico ttl" "txt txt" "dj dj"; align-items: center; column-gap: 18px;
  min-height: 0 !important; padding: 34px 36px 32px !important; border-radius: 22px !important; overflow: hidden !important; isolation: auto;
  background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 0 0 1px #e4ebf2, 0 18px 36px -24px rgba(11, 42, 74, .28) !important;
  transform: none !important; animation: none !important; transition: box-shadow .35s ease, translate .35s ease !important; }
#about > .wrap.mv.mv-ico > .mv-item::before, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item::before { content: "" !important; display: block !important; position: absolute;
  inset: 0 0 auto 0; top: 0 !important; left: 0; width: auto !important; height: 4px !important; margin: 0 !important; border-radius: 0; rotate: none; translate: none;
  background: linear-gradient(90deg, #f2a93b, #f5c518) !important; box-shadow: none !important; -webkit-mask: none; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item::before { background: linear-gradient(90deg, #0c95d3, #5cc0b8) !important; }
@media (hover: hover) { #about > .wrap.mv.mv-ico > .mv-item:hover, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item:hover {
  translate: 0 -4px !important; box-shadow: 0 0 0 1px #dbe5ee, 0 26px 44px -26px rgba(11, 42, 74, .36) !important; } }
/* la petite icône, à plat, à côté du titre */
#about > .wrap.mv.mv-ico .mv-ico-art { grid-area: ico; position: static !important; width: 64px !important; height: 64px; margin: 0 !important; padding: 0 !important;
  top: auto !important; bottom: auto !important; inset: auto !important; background: none !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; transform: none !important; animation: none !important;
  scale: 1 !important; opacity: 1 !important; rotate: none !important; translate: none !important; }
#about > .wrap.mv.mv-ico .ico-target { overflow: hidden !important; }
#about > .wrap.mv.mv-ico .mv-item h3, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item h3 { grid-area: ttl; margin: 0 !important; opacity: 1 !important; translate: none !important;
  font-family: var(--font-ar-display), "Reem Kufi", sans-serif !important; font-weight: 700 !important; font-size: clamp(1.9rem, 2.6vw, 2.4rem) !important; line-height: 1.1 !important;
  color: #0b2a4a !important; text-shadow: none !important; background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; rotate: 0deg !important; transform: none !important; }
#about > .wrap.mv.mv-ico .mv-item h3::after { content: none !important; display: none !important; }
html:not([lang="ar"]) #about > .wrap.mv.mv-ico .mv-item h3 { font-family: "Plus Jakarta Sans", sans-serif !important; letter-spacing: -.02em; }
#about > .wrap.mv.mv-ico .mv-item .mv-text, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item .mv-text { grid-area: txt; margin: 22px 0 0 !important; max-width: 34ch !important;
  font-size: clamp(1.2rem, 1.55vw, 1.4rem) !important; line-height: 1.65 !important; color: #13263a !important; font-weight: 600 !important; text-shadow: none !important; transform: none !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-derja { grid-area: dj; margin: 12px 0 0 !important; transform: none !important; }
#about > .wrap.mv.mv-ico > .mv-item:first-of-type .mv-derja { color: #e0901a !important; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item .mv-derja { color: #0097d7 !important; }
@media (max-width: 860px) {
  #about > .wrap.mv.mv-ico { grid-template-columns: minmax(0, 1fr) !important; row-gap: 18px !important; }
  #about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { padding: 28px 22px 26px !important; }
  #about > .wrap.mv.mv-ico .mv-ico-art { width: 54px !important; height: 54px; }
}

/* ===== mission / vision : effet miroir, reflet qui balaie, ombres en couches ===== */
/* reflet « sol miroir » sous chaque carte (Chrome, Edge, Safari ; ignoré ailleurs sans casse) */
#about > .wrap.mv.mv-ico { margin-bottom: clamp(70px, 7vw, 100px) !important; }
/* ombres en couches : contact net + ombre douce + halo de la couleur de la carte */
#about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { transition: box-shadow .45s ease, translate .45s cubic-bezier(.34, 1.4, .5, 1) !important; }
#about > .wrap.mv.mv-ico > .mv-item { box-shadow: 0 0 0 1px #e8e1d2, 0 1px 2px rgba(11, 42, 74, .08), 0 14px 24px -16px rgba(11, 42, 74, .25), 0 30px 60px -40px rgba(242, 169, 59, .45) !important; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { box-shadow: 0 0 0 1px #dbe8f2, 0 1px 2px rgba(11, 42, 74, .08), 0 14px 24px -16px rgba(11, 42, 74, .25), 0 30px 60px -40px rgba(12, 149, 211, .45) !important; }
@media (hover: hover) {
  #about > .wrap.mv.mv-ico > .mv-item:hover { translate: 0 -8px !important;
    box-shadow: 0 0 0 1px #f0c77a, 0 2px 4px rgba(11, 42, 74, .08), 0 24px 36px -20px rgba(11, 42, 74, .32), 0 46px 80px -40px rgba(242, 169, 59, .7) !important; }
  #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item:hover {
    box-shadow: 0 0 0 1px #8fd0ef, 0 2px 4px rgba(11, 42, 74, .08), 0 24px 36px -20px rgba(11, 42, 74, .32), 0 46px 80px -40px rgba(12, 149, 211, .7) !important; }
  #about > .wrap.mv.mv-ico > .mv-item:hover::before { height: 6px !important; }
}
#about > .wrap.mv.mv-ico > .mv-item::before { transition: height .3s ease; }
/* reflet miroir qui traverse la carte au survol */
#about > .wrap.mv.mv-ico .mv-glass { display: block !important; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; overflow: hidden; opacity: 1 !important; background: none !important; }
#about > .wrap.mv.mv-ico .mv-glass::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 38%; left: -60%; rotate: 18deg;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0)); mix-blend-mode: soft-light; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #about > .wrap.mv.mv-ico > .mv-item:hover .mv-glass::after { animation: mvSweep .9s cubic-bezier(.4, 0, .2, 1); }
}
@keyframes mvSweep { from { left: -60%; } to { left: 130%; } }
/* l'icône garde sa propre ombre douce, et monte un peu au survol */
#about > .wrap.mv.mv-ico .mv-ico-art { filter: drop-shadow(0 6px 8px rgba(11, 42, 74, .18)) !important; transition: translate .4s cubic-bezier(.34, 1.6, .5, 1) !important; }
#about > .wrap.mv.mv-ico > .mv-item:hover .mv-ico-art { translate: 0 -4px !important; }
@media (max-width: 860px) {  #about > .wrap.mv.mv-ico { margin-bottom: 40px !important; } }
/* sol brillant : reflet coloré de la carte, sans texte inversé */
#about > .wrap.mv.mv-ico > .mv-item { -webkit-box-reflect: none !important; overflow: visible !important; }
#about > .wrap.mv.mv-ico .mv-glass { overflow: hidden; }
#about > .wrap.mv.mv-ico > .mv-item > .mv-floor { position: absolute; left: 6%; right: 6%; top: calc(100% + 10px); height: 46px; pointer-events: none; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, rgba(242, 169, 59, .22), rgba(242, 169, 59, 0)); filter: blur(4px); transform-origin: top; transition: opacity .4s ease, scale .45s ease; opacity: .9; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item > .mv-floor { background: linear-gradient(180deg, rgba(12, 149, 211, .22), rgba(12, 149, 211, 0)); }
#about > .wrap.mv.mv-ico > .mv-item:hover > .mv-floor { opacity: .55; scale: .94 1.2; }
#about > .wrap.mv.mv-ico > .mv-item::before, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item::before { border-radius: 22px 22px 0 0 !important; }
/* ===== mission / vision : forme et espacements affinés ===== */
/* forme : grands arrondis, un coin plus serré côté intérieur, en miroir entre les deux cartes */
#about > .wrap.mv.mv-ico > .mv-item { border-radius: 30px 30px 30px 10px !important; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { border-radius: 30px 30px 10px 30px !important; }
html[dir="rtl"] #about > .wrap.mv.mv-ico > .mv-item { border-radius: 30px 30px 10px 30px !important; }
html[dir="rtl"] #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { border-radius: 30px 30px 30px 10px !important; }
#about > .wrap.mv.mv-ico > .mv-item::before, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item::before { border-radius: 30px 30px 0 0 !important; height: 5px !important; }
/* rythme : même hauteur, rangées alignées d'une carte à l'autre, Derja en pied */
#about > .wrap.mv.mv-ico { align-items: stretch !important; column-gap: clamp(24px, 2.8vw, 40px) !important; margin-top: clamp(48px, 5vw, 72px) !important; }
#about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item {
  grid-template-rows: auto 1fr auto !important; align-items: start !important; column-gap: 16px !important;
  padding: clamp(34px, 3vw, 44px) clamp(30px, 3.2vw, 48px) clamp(30px, 2.8vw, 40px) !important; }
#about > .wrap.mv.mv-ico .mv-ico-art { align-self: center !important; width: 58px !important; height: 58px; }
#about > .wrap.mv.mv-ico .mv-item h3 { align-self: center !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-text { margin-top: 24px !important; margin-bottom: 0 !important; max-width: 32ch !important; line-height: 1.7 !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-derja { align-self: end !important; margin-top: 22px !important; padding-top: 16px; border-top: 1px dashed #e3e9f0; width: 100%; }
@media (max-width: 860px) {
  #about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item,
  html[dir="rtl"] #about > .wrap.mv.mv-ico > .mv-item, html[dir="rtl"] #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { border-radius: 26px !important; padding: 30px 24px 26px !important; }
  #about > .wrap.mv.mv-ico { row-gap: 22px !important; margin-top: 40px !important; }
  #about > .wrap.mv.mv-ico .mv-item .mv-text { max-width: none !important; margin-top: 18px !important; }
}
/* l'autre carte reste lisible quand on survole une carte */
#about > .wrap.mv.mv-ico.mv-focus .mv-item > *, #about > .wrap.mv.mv-ico .mv-item:not(.mv-hot) > h3, #about > .wrap.mv.mv-ico .mv-item:not(.mv-hot) > .mv-text,
#about > .wrap.mv.mv-ico .mv-item:not(.mv-hot) > .mv-derja, #about > .wrap.mv.mv-ico .mv-item:not(.mv-hot) > .mv-ico-art { opacity: 1 !important; }
/* filet de couleur = vraie bordure haute, qui suit les arrondis */
#about > .wrap.mv.mv-ico > .mv-item::before, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item::before { content: none !important; display: none !important; }
#about > .wrap.mv.mv-ico > .mv-item { border: 0 !important; border-top: 5px solid transparent !important;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #f2a93b, #f5c518) border-box !important; transition: box-shadow .45s ease, translate .45s cubic-bezier(.34, 1.4, .5, 1), border-top-width .3s ease !important; }
#about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #0c95d3, #5cc0b8) border-box !important; }
@media (hover: hover) { #about > .wrap.mv.mv-ico > .mv-item:hover { border-top-width: 7px !important; } }
/* cartes plus compactes */
#about > .wrap.mv.mv-ico { grid-template-columns: minmax(0, 480px) minmax(0, 480px) !important; justify-content: center !important; column-gap: 28px !important; }
#about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { padding: 26px 30px 24px !important; grid-template-rows: auto auto auto !important; column-gap: 12px !important; }
#about > .wrap.mv.mv-ico .mv-ico-art { width: 46px !important; height: 46px; }
#about > .wrap.mv.mv-ico .mv-item h3, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item h3 { font-size: clamp(1.5rem, 2vw, 1.85rem) !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-text, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item .mv-text { margin-top: 14px !important; font-size: clamp(1.05rem, 1.25vw, 1.18rem) !important; line-height: 1.65 !important; max-width: none !important; }
#about > .wrap.mv.mv-ico .mv-item .mv-derja { margin-top: 14px !important; padding-top: 12px !important; font-size: 1.02rem !important; }
@media (max-width: 860px) { #about > .wrap.mv.mv-ico { grid-template-columns: minmax(0, 1fr) !important; } #about > .wrap.mv.mv-ico > .mv-item, #about > .wrap.mv.mv-ico > .mv-item ~ .mv-item { padding: 22px 20px 20px !important; } }
/* =====================================================================
   Mission / vision, réf. Moss : objet central (photo de nos membres), énoncés
   de part et d'autre sans boîte, reliés par un filet fin terminé d'un point.
   ===================================================================== */
#about > .wrap.mv.mv-ico.mv-moss { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px) minmax(0, 1fr) !important; grid-template-areas: "m c v" !important;
  grid-template-rows: auto !important; column-gap: clamp(28px, 4vw, 64px) !important; align-items: center !important; justify-content: stretch !important; padding: 10px 0 !important; }
#about > .wrap.mv.mv-moss > .mv-item, #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item, html[dir="rtl"] #about > .wrap.mv.mv-moss > .mv-item, html[dir="rtl"] #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item {
  display: block !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
  rotate: none !important; translate: none !important; transform: none !important; animation: none !important; overflow: visible !important; }
#about > .wrap.mv.mv-moss > .mv-item { grid-area: m !important; align-self: start !important; margin-top: clamp(20px, 4vw, 60px); }
#about > .wrap.mv.mv-moss > .mv-item ~ .mv-item { grid-area: v !important; align-self: end !important; margin-bottom: clamp(20px, 4vw, 60px); }
#about > .wrap.mv.mv-moss .mv-ico-art, #about > .wrap.mv.mv-moss .mv-floor, #about > .wrap.mv.mv-moss .mv-glass, #about > .wrap.mv.mv-moss .mv-spark, #about > .wrap.mv.mv-moss .mv-wm { display: none !important; }
@media (hover: hover) { #about > .wrap.mv.mv-moss > .mv-item:hover, #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item:hover { translate: none !important; box-shadow: none !important; border: 0 !important; } }
/* titres fins et élégants */
#about > .wrap.mv.mv-moss .mv-item h3, #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item h3 { font-family: var(--font-ar-display), "Reem Kufi", sans-serif !important; font-weight: 500 !important;
  font-size: clamp(2rem, 3vw, 2.7rem) !important; line-height: 1.1 !important; color: #0b2a4a !important; margin: 0 !important; }
html:not([lang="ar"]) #about > .wrap.mv.mv-moss .mv-item h3 { font-family: "Plus Jakarta Sans", sans-serif !important; font-weight: 400 !important; letter-spacing: -.02em; }
/* le filet qui rejoint la photo */
#about > .wrap.mv.mv-moss .mv-link { position: relative; display: block; height: 1px; margin: 16px 0 18px; background: linear-gradient(90deg, rgba(11, 42, 74, .45), rgba(11, 42, 74, .15));
  width: calc(100% + clamp(28px, 4vw, 64px)); }
#about > .wrap.mv.mv-moss > .mv-item .mv-link { margin-inline-end: calc(-1 * clamp(28px, 4vw, 64px)); }
#about > .wrap.mv.mv-moss > .mv-item ~ .mv-item .mv-link { margin-inline-start: calc(-1 * clamp(28px, 4vw, 64px)); }
#about > .wrap.mv.mv-moss .mv-link i { position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #f2a93b; box-shadow: 0 0 0 4px rgba(242, 169, 59, .2); }
#about > .wrap.mv.mv-moss > .mv-item .mv-link i { inset-inline-end: -4px; }
#about > .wrap.mv.mv-moss > .mv-item ~ .mv-item .mv-link i { inset-inline-start: -4px; background: #0c95d3; box-shadow: 0 0 0 4px rgba(12, 149, 211, .2); }
#about > .wrap.mv.mv-moss .mv-item .mv-text, #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item .mv-text { margin: 0 !important; max-width: 30ch !important; color: #3f5164 !important;
  font-weight: 500 !important; font-size: clamp(1.05rem, 1.3vw, 1.2rem) !important; line-height: 1.75 !important; }
#about > .wrap.mv.mv-moss .mv-item .mv-derja { border: 0 !important; padding: 0 !important; margin-top: 12px !important; width: auto; }
/* l'objet central */
#about > .wrap.mv.mv-moss .mv-center { grid-area: c; position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 30px; }
#about > .wrap.mv.mv-moss .mv-center::before { content: ""; position: absolute; inset: 0; translate: 14px 14px; border: 1.5px solid #f2a93b; border-radius: 30px; z-index: -1; transition: translate .6s cubic-bezier(.34, 1.4, .5, 1); }
html[dir="rtl"] #about > .wrap.mv.mv-moss .mv-center::before { translate: -14px 14px; }
#about > .wrap.mv.mv-moss .mv-center img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 78%; border-radius: 30px; display: block;
  box-shadow: 0 2px 4px rgba(11, 42, 74, .12), 0 40px 70px -36px rgba(11, 42, 74, .6); transition: scale .8s cubic-bezier(.2, .8, .3, 1); }
@media (hover: hover) { #about > .wrap.mv.mv-moss:hover .mv-center::before { translate: 0 0; } #about > .wrap.mv.mv-moss .mv-center:hover img { scale: 1.02; } }
@media (max-width: 860px) {
  #about > .wrap.mv.mv-ico.mv-moss { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "c" "m" "v" !important; row-gap: 34px !important; }
  #about > .wrap.mv.mv-moss .mv-center { width: min(300px, 80%); justify-self: center; }
  #about > .wrap.mv.mv-moss > .mv-item, #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item { margin: 0 !important; }
  #about > .wrap.mv.mv-moss .mv-link { width: 60px; margin-inline: 0 !important; }
}

/* centre : onde JCI + logo */
#about > .wrap.mv.mv-moss .mv-center { aspect-ratio: 1 !important; border-radius: 50% !important; display: grid; place-items: center; }
#about > .wrap.mv.mv-moss .mv-center::before { display: none !important; }
#about > .wrap.mv.mv-moss .mvc-spin, #about > .wrap.mv.mv-moss .mvc-logo { grid-area: 1 / 1; }
#about > .wrap.mv.mv-moss .mvc-spin { width: 100%; aspect-ratio: 1; }
#about > .wrap.mv.mv-moss .mvc-rip { width: 100%; height: 100%; overflow: visible; display: block; }
#about > .wrap.mv.mv-moss .mvc-rip path { fill: none; stroke-width: 3.4; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.2s cubic-bezier(.5, 0, .2, 1); transition-delay: calc(var(--i) * 90ms + .1s); }
#about > .wrap.mv.mv-moss .mv-center.mvc-on .mvc-rip path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { #about > .wrap.mv.mv-moss .mv-center.mvc-on .mvc-spin { animation: mvSpin 80s linear infinite; } }
@media (prefers-reduced-motion: reduce) { #about > .wrap.mv.mv-moss .mvc-rip path { transition: none; stroke-dashoffset: 0; } }
@keyframes mvSpin { to { rotate: 360deg; } }
#about > .wrap.mv.mv-moss .mv-center:hover .mvc-spin { animation-duration: 18s; }
/* le logo au centre, sur un disque blanc */
#about > .wrap.mv.mv-moss .mvc-logo { width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 4px rgba(11, 42, 74, .08), 0 18px 34px -16px rgba(11, 42, 74, .4); scale: .6; opacity: 0;
  transition: scale .7s cubic-bezier(.34, 1.6, .5, 1) .9s, opacity .4s ease .9s; }
#about > .wrap.mv.mv-moss .mv-center.mvc-on .mvc-logo { scale: 1; opacity: 1; }
#about > .wrap.mv.mv-moss .mvc-logo img { width: 72%; height: auto; display: block; }
@media (max-width: 860px) { #about > .wrap.mv.mv-moss .mv-center { width: min(260px, 72%) !important; } }

/* survol d'un énoncé : sa partie de l'onde s'allume */
#about > .wrap.mv.mv-moss .mvc-rip path { transition: stroke-dashoffset 1.2s cubic-bezier(.5, 0, .2, 1) calc(var(--i) * 90ms + .1s), opacity .35s ease 0s, stroke-width .35s ease 0s; }
#about > .wrap.mv.mv-moss .mv-center.lit-in .mvc-rip path.out, #about > .wrap.mv.mv-moss .mv-center.lit-out .mvc-rip path.in { opacity: .15; }
#about > .wrap.mv.mv-moss .mv-center.lit-in .mvc-rip path.in, #about > .wrap.mv.mv-moss .mv-center.lit-out .mvc-rip path.out { stroke-width: 4.4; }
#about > .wrap.mv.mv-moss .mv-item { cursor: default; }
#about > .wrap.mv.mv-moss .mv-item h3 { transition: color .3s ease; }
#about > .wrap.mv.mv-moss > .mv-item:hover h3 { color: #c97f12 !important; }
#about > .wrap.mv.mv-moss > .mv-item ~ .mv-item:hover h3 { color: #0a7cb5 !important; }
/* les filets se tracent depuis le texte vers l'onde, puis le point s'allume */
#about > .wrap.mv.mv-moss .mv-link { transform-origin: right center; scale: 0 1; transition: scale 1s cubic-bezier(.6, 0, .2, 1) .5s; }
html[dir="ltr"] #about > .wrap.mv.mv-moss > .mv-item .mv-link { transform-origin: left center; }
#about > .wrap.mv.mv-moss > .mv-item ~ .mv-item .mv-link { transform-origin: left center; }
html[dir="ltr"] #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item .mv-link { transform-origin: right center; }
#about > .wrap.mv.mv-moss.mvl-on .mv-link { scale: 1 1; }
#about > .wrap.mv.mv-moss .mv-link i { scale: 0; transition: scale .5s cubic-bezier(.34, 1.8, .5, 1) 1.4s; }
#about > .wrap.mv.mv-moss.mvl-on .mv-link i { scale: 1; }
#about > .wrap.mv.mv-moss > .mv-item:hover .mv-link i { animation: dotPing 1s ease-out infinite; }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, .45); } 100% { box-shadow: 0 0 0 12px rgba(242, 169, 59, 0); } }
#about > .wrap.mv.mv-moss > .mv-item ~ .mv-item:hover .mv-link i { animation-name: dotPingB; }
@keyframes dotPingB { 0% { box-shadow: 0 0 0 0 rgba(12, 149, 211, .45); } 100% { box-shadow: 0 0 0 12px rgba(12, 149, 211, 0); } }
@media (prefers-reduced-motion: reduce) { #about > .wrap.mv.mv-moss .mv-link, #about > .wrap.mv.mv-moss .mv-link i { scale: 1; transition: none; } }
/* logo central : plus d'air, « Kélibia » dessous ; onde un peu plus petite */
#about > .wrap.mv.mv-ico.mv-moss { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) minmax(0, 1fr) !important; }
#about > .wrap.mv.mv-moss .mvc-logo { width: 42% !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
#about > .wrap.mv.mv-moss .mvc-logo img { width: 58% !important; }
#about > .wrap.mv.mv-moss .mvc-logo b { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(.8rem, 1vw, .98rem); color: #0097d7; letter-spacing: .01em; line-height: 1; }

/* disque central qui se détache : anneau fin aux 4 couleurs, liseré blanc, relief */
#about > .wrap.mv.mv-moss .mvc-logo { width: 44% !important; position: relative;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f8fc 70%, #e9f0f7 100%) !important;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(11, 42, 74, .06), inset 0 -6px 14px rgba(11, 42, 74, .06), 0 22px 40px -16px rgba(11, 42, 74, .45) !important; }
#about > .wrap.mv.mv-moss .mvc-logo::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; padding: 2px; pointer-events: none;
  background: conic-gradient(from -90deg, #0ea5e0 0 25%, #26408b 0 50%, #f5c518 0 75%, #5cc0b8 0 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
#about > .wrap.mv.mv-moss .mvc-logo img { width: 62% !important; }
#about > .wrap.mv.mv-moss .mvc-logo b { font-size: clamp(.85rem, 1.05vw, 1.02rem) !important; }
/* l'onde se détache un peu de la page */
#about > .wrap.mv.mv-moss .mvc-spin { filter: drop-shadow(0 14px 18px rgba(11, 42, 74, .14)); }
/* filets : la barre calculée remplace le trait d'origine */
@media (min-width: 861px) {
  #about > .wrap.mv.mv-moss .mv-link { width: 100% !important; margin-inline: 0 !important; background: none !important; scale: 1 !important; }
  #about > .wrap.mv.mv-moss .mv-link .bar { position: absolute; top: 0; height: 1px; background: linear-gradient(90deg, rgba(11, 42, 74, .4), rgba(11, 42, 74, .12));
    transform-origin: right center; scale: 0 1; transition: scale 1s cubic-bezier(.6, 0, .2, 1) .5s; }
  #about > .wrap.mv.mv-moss .mv-link .bar[data-side="l"] { transform-origin: left center; background: linear-gradient(90deg, rgba(11, 42, 74, .12), rgba(11, 42, 74, .4)); }
  #about > .wrap.mv.mv-moss.mvl-on .mv-link .bar { scale: 1 1; }
  #about > .wrap.mv.mv-moss .mv-link .bar i { inset: auto !important; top: -4px !important; }
  #about > .wrap.mv.mv-moss .mv-link .bar[data-side="r"] i { left: -5px !important; }
  #about > .wrap.mv.mv-moss .mv-link .bar[data-side="l"] i { right: -5px !important; }
}
@media (max-width: 860px) { #about > .wrap.mv.mv-moss .mv-link .bar { position: absolute; inset: 0; background: inherit; } }
#about > .wrap.mv.mv-moss .mvc-logo img { width: 66% !important; }
#about > .wrap.mv.mv-moss .mvc-logo img { box-shadow: none !important; border-radius: 0 !important; filter: none !important; height: auto !important; object-fit: contain !important; width: 70% !important; scale: 1 !important; background: none !important; }

/* ===== mission / vision : espacement, première impression, interactivité ===== */
#about > .wrap.mv.mv-ico.mv-moss { margin-top: clamp(64px, 6vw, 96px) !important; margin-bottom: clamp(70px, 7vw, 110px) !important; }
#about > .wrap.mv.mv-moss > .mv-item { margin-top: 0 !important; align-self: center !important; translate: 0 -38% !important; }
#about > .wrap.mv.mv-moss > .mv-item ~ .mv-item { margin-bottom: 0 !important; align-self: center !important; translate: 0 38% !important; }
@media (max-width: 860px) { #about > .wrap.mv.mv-moss > .mv-item, #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item { translate: none !important; } }
/* les textes arrivent l'un après l'autre, après l'onde et les filets */
@media (prefers-reduced-motion: no-preference) {
  #about > .wrap.mv.mv-moss .mv-item h3, #about > .wrap.mv.mv-moss .mv-item .mv-text, #about > .wrap.mv.mv-moss .mv-item .mv-derja {
    opacity: 0 !important; translate: 0 14px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .9, .3, 1), color .3s ease !important; }
  #about > .wrap.mv.mv-moss.mvl-on .mv-item h3, #about > .wrap.mv.mv-moss.mvl-on .mv-item .mv-text, #about > .wrap.mv.mv-moss.mvl-on .mv-item .mv-derja { opacity: 1 !important; translate: 0 0; }
  #about > .wrap.mv.mv-moss.mvl-on > .mv-item h3 { transition-delay: 1.3s !important; }
  #about > .wrap.mv.mv-moss.mvl-on > .mv-item .mv-text { transition-delay: 1.5s !important; }
  #about > .wrap.mv.mv-moss.mvl-on > .mv-item .mv-derja { transition-delay: 1.7s !important; }
  #about > .wrap.mv.mv-moss.mvl-on > .mv-item ~ .mv-item h3 { transition-delay: 1.7s !important; }
  #about > .wrap.mv.mv-moss.mvl-on > .mv-item ~ .mv-item .mv-text { transition-delay: 1.9s !important; }
  #about > .wrap.mv.mv-moss.mvl-on > .mv-item ~ .mv-item .mv-derja { transition-delay: 2.1s !important; }
}
/* la vague qui part du logo */
#about > .wrap.mv.mv-moss .mv-center { cursor: pointer; perspective: 900px; }
#about > .wrap.mv.mv-moss .mvc-wave { grid-area: 1 / 1; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--wc, #0ea5e0); pointer-events: none;
  animation: mvcWave 1.6s cubic-bezier(.2, .7, .3, 1) forwards; z-index: 0; }
@keyframes mvcWave { from { scale: 1; opacity: .9; } to { scale: 2.4; opacity: 0; border-width: 1px; } }
#about > .wrap.mv.mv-moss .mvc-logo { z-index: 1; }
/* inclinaison 3D vers le curseur, le logo glisse à l'opposé */
#about > .wrap.mv.mv-moss .mvc-spin { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .3, 1), filter .4s ease; }
#about > .wrap.mv.mv-moss .mvc-logo { translate: var(--lx, 0px) var(--ly, 0px); transition: scale .7s cubic-bezier(.34, 1.6, .5, 1) .9s, opacity .4s ease .9s, translate .5s cubic-bezier(.2, .8, .3, 1) 0s, box-shadow .4s ease !important; }
#about > .wrap.mv.mv-moss .mv-center:hover .mvc-logo { box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(11, 42, 74, .06), inset 0 -6px 14px rgba(11, 42, 74, .06), 0 30px 50px -18px rgba(11, 42, 74, .55) !important; }
@media (min-width: 861px) {
  html #about > .wrap.mv.mv-moss > .mv-item, html[dir="rtl"] #about > .wrap.mv.mv-moss > .mv-item { translate: 0 -34% !important; }
  html #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item, html[dir="rtl"] #about > .wrap.mv.mv-moss > .mv-item ~ .mv-item { translate: 0 34% !important; }
}
@media (max-width: 860px) { #about > .wrap.mv.mv-ico.mv-moss { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "c" "m" "v" !important; row-gap: 34px !important; } #about > .wrap.mv.mv-moss .mv-center { width: min(260px, 72%) !important; justify-self: center !important; } }

/* ===== frise 1915 · 1962 · 1994 ===== */
/* « ici » : plus de boîte blanche collée au texte ; mise en avant par l'or et un fin halo derrière l'année */
#about .reach .reach-item.reach-here { box-shadow: none !important; background: none !important; }
#about .reach .reach-here .reach-year { position: relative; isolation: isolate; }
#about .reach .reach-here .reach-year::after { content: ""; position: absolute; z-index: -1; inset: 18% -6% 8%; border-radius: 18px;
  background: linear-gradient(90deg, rgba(242, 169, 59, .16), rgba(245, 197, 24, .06)); }
/* années : chiffres stables pendant le défilement, petite respiration au survol */
#about .reach .reach-year { font-variant-numeric: tabular-nums; transition: translate .45s cubic-bezier(.34, 1.5, .5, 1), color .3s ease; }
#about .reach .reach-year.rc-done { animation: rcPop .5s cubic-bezier(.34, 1.7, .5, 1); }
@keyframes rcPop { 50% { scale: 1.06; } }
@media (hover: hover) {
  #about .reach .reach-item { transition: translate .45s cubic-bezier(.34, 1.4, .5, 1); }
  #about .reach .reach-item:hover { translate: 0 -6px; }
  #about .reach .reach-item:not(.reach-here):hover .reach-year { color: #0a7cb5 !important; }
  #about .reach .reach-item h4 { transition: color .3s ease; }
  #about .reach .reach-item:hover h4 { color: #0a7cb5; }
}
#about .reach .reach-here .reach-year { display: inline-block !important; width: fit-content !important; padding-inline: 10px; } #about .reach .reach-here .reach-year::after { inset: 22% 0 6% !important; border-radius: 14px; }

/* frise : années en dégradé, échelles en pastilles, point « ici » qui pulse */
#about .reach .reach-year { background: linear-gradient(180deg, #13263a 30%, #0a5f94 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
#about .reach .reach-here .reach-year { background: linear-gradient(180deg, #f5b73f 20%, #e0861a 100%); -webkit-background-clip: text; background-clip: text; }
#about .reach .reach-here .reach-year::after { -webkit-background-clip: border-box; }
@media (hover: hover) { #about .reach .reach-item:not(.reach-here):hover .reach-year { background: linear-gradient(180deg, #0c95d3 20%, #0a5f94 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; } }
#about .reach .reach-scale > span:first-child { display: inline-block; padding: 3px 12px 4px; border-radius: 999px; background: #e4f2fb; color: #0a6ea3 !important; font-weight: 700; }
#about .reach .reach-here .reach-scale > span:first-child { background: #fff0d4; color: #b4700a !important; }
@media (prefers-reduced-motion: no-preference) {
  #about .reach .reach-here::before { animation: herePing 2.4s ease-out infinite; }
}
@keyframes herePing { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(242, 169, 59, 0); } }
#about .reach .reach-item:not(.reach-here) .reach-scale { display: inline-block !important; width: fit-content; padding: 3px 12px 4px; border-radius: 999px; background: #e4f2fb; color: #0a6ea3 !important; font-weight: 700; }
#about .reach .reach-pin { display: none !important; }
#about > .wrap.mv.mv-ico.mv-moss { margin-bottom: clamp(16px, 2vw, 32px) !important; }
/* le ruban ne s'arrête plus au survol */ main > .ribbon:hover .rb-track, main > .ribbon:focus-within .rb-track, main > .ribbon .rb-track { animation-play-state: running !important; }



/* « تظاهراتنا الكبرى » (mise en page d'origine) : chaque carte prend la couleur de son événement en bas de la photo */
#projects .ev .ev-body::before { background: linear-gradient(0deg, rgba(5, 18, 38, .55) 0%, rgba(5, 18, 38, .2) 40%, rgba(5, 18, 38, 0) 65%) !important; }
#projects .ev .ev-body::after { content: "" !important; display: block !important; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(0deg, color-mix(in srgb, var(--ec, #0c95d3) 82%, #061830) 0%, color-mix(in srgb, var(--ec, #0c95d3) 45%, transparent) 38%, transparent 66%) !important;
  opacity: .9; transition: opacity .45s ease; }
@media (hover: hover) { #projects .ev:hover .ev-body::after { opacity: 1; } }
#projects .ev .ev-title { font-size: clamp(1.45rem, 2vw, 1.9rem) !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
#projects .ev-onerun .ev-title { font-size: clamp(2.2rem, 3.6vw, 3.2rem) !important; }
#projects .ev .ev-text { color: rgba(255, 255, 255, .9) !important; }
#projects .ev .ev-more { display: inline-flex !important; align-items: center; gap: 6px; padding: 7px 16px !important; border-radius: 999px !important; background: #fff !important;
  color: #0b2a4a !important; font-weight: 700; border: 0 !important; text-decoration: none !important; transition: background-color .3s ease, color .3s ease, translate .35s cubic-bezier(.34, 1.5, .5, 1); }
#projects .ev .ev-more::after, #projects .ev .ev-more::before { display: none !important; }
@media (hover: hover) { #projects .ev:hover .ev-more { background: var(--ec, #0c95d3) !important; color: #fff !important; translate: 0 -2px; } }
#projects .ev { isolation: isolate; } #projects .ev .ev-body::after { background: linear-gradient(0deg, var(--ec, #0c95d3) 0%, color-mix(in srgb, var(--ec, #0c95d3) 70%, transparent) 30%, transparent 62%) !important; opacity: .92 !important; }
#projects .ev .ev-body::after { display: none !important; } #projects .ev .ev-body { background: linear-gradient(180deg, rgba(6, 24, 48, 0) 0%, color-mix(in srgb, var(--ec, #0c95d3) 45%, rgba(6, 24, 48, .35)) 38%, color-mix(in srgb, var(--ec, #0c95d3) 85%, #061830) 100%) !important; transition: filter .4s ease; } @media (hover: hover) { #projects .ev:hover .ev-body { filter: saturate(1.25) brightness(1.06); } }

/* ===== cartes des événements : recadrage, espacements, ombres, expérience ===== */
/* recadrage sur le sujet de chaque photo */
#projects .ev-fete > img:not(.ev-flip) { object-position: 32% 30% !important; }
#projects .ev-tilar > img:not(.ev-flip) { object-position: 54% 50% !important; }
#projects .ev-rise > img:not(.ev-flip) { object-position: 47% 52% !important; scale: 1.45; transform-origin: 47% 30%; }
#projects .ev-onerun > img:not(.ev-flip) { object-position: 40% 38% !important; }
/* espacements : plus d'air entre les cartes et autour du texte */
#projects .ev-grid { gap: clamp(20px, 2vw, 28px) !important; }
#projects .ev .ev-body { padding: 110px clamp(24px, 2.2vw, 32px) clamp(24px, 2.2vw, 30px) !important; gap: 10px; }
#projects .ev .ev-text { margin-top: 2px !important; }
#projects .ev .ev-more { margin-top: 8px !important; }
/* ombres : contact net + ombre douce teintée de la couleur de l'événement */
#projects .ev { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 6px rgba(2, 10, 24, .35), 0 30px 50px -30px color-mix(in srgb, var(--ec, #0c95d3) 75%, #000) !important;
  transition: translate .5s cubic-bezier(.34, 1.4, .5, 1), box-shadow .45s ease !important; }
/* survol : la carte se soulève, la photo avance doucement, l'ombre s'élargit */
@media (hover: hover) {
  #projects .ev:hover { translate: 0 -8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 10px rgba(2, 10, 24, .35), 0 44px 70px -30px color-mix(in srgb, var(--ec, #0c95d3) 85%, #000) !important; }
  #projects .ev > img:not(.ev-flip) { transition: scale .9s cubic-bezier(.2, .8, .3, 1) !important; }
  #projects .ev:hover > img:not(.ev-flip) { scale: 1.06; }
  #projects .ev-rise:hover > img:not(.ev-flip) { scale: 1.52; }
}
#projects .ev-onerun > img:not(.ev-flip) { object-position: 42% 62% !important; }


/* ===== tête de « تظاهراتنا الكبرى » : aurore douce derrière le titre seulement, plus de couture, moins de vide ===== */
/* la section du dessus revient au blanc en bas : plus de ligne gris / blanc */
#why { background: linear-gradient(180deg, #fff 0, #f3f6f9 180px, #f3f6f9 calc(100% - 200px), #fff 100%) !important; }
#projects > .wrap { padding-top: clamp(56px, 5vw, 76px) !important; }
/* « ومن أنشطتنا أيضًا » : même bouton que les cartes d'événements, survol doux */
#projects .albums .album .album-more { display: inline-flex !important; align-items: center; width: fit-content; padding: 6px 15px !important; border-radius: 999px !important;
  background: #fff !important; color: #0b2a4a !important; font-weight: 700; font-size: .85rem; border: 0 !important; text-decoration: none !important; background-image: none !important;
  transition: background-color .3s ease, color .3s ease, translate .35s cubic-bezier(.34, 1.5, .5, 1); }
#projects .albums .album .album-more::before, #projects .albums .album .album-more::after { display: none !important; }
@media (hover: hover) {
  #projects .albums .album:hover .album-more { background: #f2a93b !important; color: #0b2a4a !important; translate: 0 -2px; }
  #projects .albums .album .album-cover img { transition: scale .8s cubic-bezier(.2, .8, .3, 1) !important; }
  #projects .albums .album:hover .album-cover img { scale: 1.05; }
}
/* =====================================================================
   Pied de page « SARA » : pli de soie + fil d'or en transition, le grand nom rempli par la foule de One Run,
   polaroïds scotchés autour. (remplace le cercle de lumière sur les remparts)
   ===================================================================== */
footer.footer.fy.fy-sara { position: relative; overflow: visible !important; margin-top: clamp(70px, 9vw, 150px) !important; }
footer.fy .fy-silk { position: absolute; left: 0; bottom: calc(100% - 2px); width: 100%; height: clamp(70px, 9vw, 150px); display: block; pointer-events: none; z-index: 1; overflow: visible; }
footer.fy .fy-silk .b { fill: #1f4a8a; opacity: .28; }
footer.fy .fy-silk .s { opacity: .95; filter: drop-shadow(0 -6px 14px rgba(11, 42, 74, .25)); }
footer.fy .fy-silk .f { fill: #0b2a4a; }
footer.fy .fy-silk .g { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
/* le grand nom : la foule entière, plus de cercle */
footer.footer.fy.fy-sara .fy-line { -webkit-text-stroke: 0; }
footer.footer.fy.fy-sara .fy-photo { -webkit-mask-image: none !important; mask-image: none !important;
  background-image: url("../img/photos/fb/onerun-9.jpg") !important; background-size: 150% auto !important; background-position: 92% 74% !important;
  animation: fyPan 22s ease-in-out infinite alternate !important; filter: saturate(1.15) contrast(1.05) drop-shadow(0 22px 34px rgba(0, 0, 0, .45)); }
@keyframes fyPan { from { background-position: 70% 66%; } to { background-position: 100% 80%; } }
@media (prefers-reduced-motion: reduce) { footer.footer.fy.fy-sara .fy-photo { animation: none !important; } }
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 36px -14px rgba(0, 0, 0, .7); transition: rotate .5s cubic-bezier(.34, 1.5, .5, 1), scale .5s cubic-bezier(.34, 1.5, .5, 1); }

/* cadrage sur la moitié droite de la foule (maillots orange, sans la chemise blanche) ; le petit polaroïd mord sur les lettres, pas sur les liens */
footer.footer.fy.fy-sara .fy-photo { background-size: 235% auto !important; background-position: 96% 76% !important; }
@keyframes fyPan { from { background-position: 86% 68%; } to { background-position: 100% 82%; } }
@media (max-width: 860px) {
  footer.fy.fy-sara .fy-mark { padding-top: 78px !important; }
}
@media (max-width: 860px) {
  footer.fy.fy-sara .fy-mark { padding-top: 0 !important; margin-top: 74px !important; }
}
/* deux niveaux : « JCI » géant rempli par la foule, « Kélibia » en écriture à la main dorée, posé en travers par-dessus */
footer.footer.fy.fy-sara .fy-mark { margin-top: 0 !important; padding: 0 0 clamp(34px, 4vw, 60px) !important; }
footer.footer.fy.fy-sara .fy-line { display: none !important; }
footer.footer.fy.fy-sara .fy-photo { position: relative !important; inset: auto !important; width: fit-content; margin: 0 auto !important;
  font-size: clamp(150px, 27vw, 420px) !important; line-height: .78 !important; letter-spacing: -.06em !important; padding-inline-end: .06em; }
footer.fy .fy-kel { position: absolute; left: 50%; bottom: clamp(0px, .5vw, 8px); z-index: 3; margin: 0 !important; max-width: none !important; translate: -42% 0; rotate: -7deg;
  font-family: "Caveat", cursive !important; font-weight: 700 !important; font-size: clamp(64px, 10.5vw, 168px) !important; line-height: 1 !important; letter-spacing: 0 !important;
  color: #f6c66a !important; text-shadow: 0 2px 0 #b9761a, 0 14px 30px rgba(4, 18, 36, .75); white-space: nowrap; pointer-events: none; }
footer.fy .fy-kel span { position: relative; z-index: 1; display: inline-block; }
footer.fy .fy-kel svg { position: absolute; left: 4%; width: 92%; bottom: -.08em; height: .2em; overflow: visible; }
footer.fy .fy-kel path { fill: none; stroke: #f2a93b; stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; }
footer.fy .fy-kel path + path { stroke-width: 2.5; opacity: .7; }
footer.fy .fy-mark.in .fy-kel path { animation: fyInk 1.1s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
footer.fy .fy-mark.in .fy-kel path + path { animation-delay: .8s; }
footer.fy .fy-kel span { clip-path: inset(0 100% 0 0); }
footer.fy .fy-mark.in .fy-kel span { animation: fyWrite 1.2s .15s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes fyWrite { to { clip-path: inset(0 -10% 0 0); } }
@keyframes fyInk { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { footer.fy .fy-kel span { clip-path: none; animation: none !important; } footer.fy .fy-kel path { stroke-dashoffset: 0; animation: none !important; } }
/* transition du pied de page : une seule arche nette (fini les bandes de « soie »), fil d'or + éclat qui glisse, ornement au sommet */
footer.footer.fy.fy-sara { --sh: clamp(54px, 6.5vw, 104px); margin-top: var(--sh) !important; }
footer.fy .fy-silk { height: var(--sh); bottom: calc(100% - 1px); filter: drop-shadow(0 -10px 22px rgba(11, 42, 74, .18)); }
footer.fy .fy-silk .f { fill: #0b2a4a; }
footer.fy .fy-silk .g { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; transform: translateY(14%); transform-box: view-box; }
footer.fy .fy-silk .gl { fill: none; stroke: #fff6dc; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; transform: translateY(14%); transform-box: view-box;
  stroke-dasharray: 40 1000; stroke-dashoffset: 40; opacity: .9; filter: drop-shadow(0 0 4px #f6c66a); animation: fyGlint 7s 1s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes fyGlint { 0% { stroke-dashoffset: 40; opacity: 0; } 8% { opacity: .9; } 70% { opacity: .9; } 78%, 100% { stroke-dashoffset: -1000; opacity: 0; } }
/* ornement : losange d'or entre deux points, posé sur le sommet du fil */



@media (prefers-reduced-motion: reduce) { footer.fy .fy-silk .gl { display: none; } }

footer.footer.fy.fy-sara { margin-top: 0 !important; }
/* « JCI » en bichromie bleu JCI (photo de foule passée en bleu nuit → cyan), halo cyan derrière, lente dérive */
footer.footer.fy.fy-sara .fy-mark .fy-photo { background: url("../img/photos/fb/onerun-duo.jpg") 96% 74% / 235% auto no-repeat !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
  animation: fyPan 24s ease-in-out infinite alternate !important;
  filter: drop-shadow(0 0 38px rgba(14, 165, 224, .35)) drop-shadow(0 24px 36px rgba(0, 0, 0, .5)) !important; }
@media (prefers-reduced-motion: reduce) { footer.footer.fy.fy-sara .fy-mark .fy-photo { animation: none !important; } }
/* « JCI » : mur de photos (≈46 moments de l'année, bichromie bleu JCI, quelques tuiles or), qui dérive lentement */
footer.footer.fy.fy-sara .fy-mark .fy-photo { background: url("../img/photos/fb/mosaic-duo-f4.webp") 0% 30% / 175% auto repeat !important;
  -webkit-background-clip: text !important; background-clip: text !important; animation: fyWall 60s linear infinite alternate !important; }
@keyframes fyWall { from { background-position: 0% 25%; } to { background-position: 100% 70%; } }
/* la lumière qui rend les couleurs : jumeau couleur du mur, même cadrage, même dérive, masqué par un cercle */
@property --cx { syntax: "<percentage>"; inherits: true; initial-value: 20%; }
@property --cy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --cr { syntax: "<length>"; inherits: true; initial-value: 0px; }
footer.footer.fy.fy-sara .fy-mark .fy-photo { pointer-events: auto; cursor: crosshair; --cr: 0px; transition: --cr .5s cubic-bezier(.2, .7, .2, 1); }
footer.footer.fy.fy-sara .fy-mark .fy-photo.lit { --cr: clamp(90px, 9vw, 150px); }
footer.fy.fy-sara .fy-photo .fy-col { position: absolute; inset: 0; color: transparent; pointer-events: none;
  background: url("../img/photos/fb/mosaic-color-f4.webp") 0% 25% / 175% auto repeat; -webkit-background-clip: text; background-clip: text;
  animation: fyWall 60s linear infinite alternate;
  -webkit-mask-image: radial-gradient(circle var(--cr) at var(--cx) var(--cy), #000 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--cr) at var(--cx) var(--cy), #000 55%, transparent 100%); }
/* sans souris : la lumière se promène seule sur les trois lettres */
@media (hover: none), (pointer: coarse) {
  footer.footer.fy.fy-sara .fy-mark .fy-photo { --cr: 70px; animation: fyWall 60s linear infinite alternate, fyRoam 14s ease-in-out infinite !important; }
}
@keyframes fyRoam { 0% { --cx: 12%; --cy: 40%; } 30% { --cx: 45%; --cy: 70%; } 60% { --cx: 85%; --cy: 30%; } 100% { --cx: 12%; --cy: 40%; } }
@media (prefers-reduced-motion: reduce) { footer.fy.fy-sara .fy-photo .fy-col { animation: none; } footer.footer.fy.fy-sara .fy-mark .fy-photo { animation: none !important; } }
/* ----- enhance : liseré, feuille d'or, entrée orchestrée ----- */
/* 1. un liseré cyan très fin redonne aux lettres leur silhouette (les joints du mur ont la couleur du fond) */
footer.footer.fy.fy-sara .fy-mark .fy-photo { -webkit-text-stroke: 1.5px rgba(150, 222, 255, .55); }
footer.fy.fy-sara .fy-photo .fy-col { -webkit-text-stroke: 1.5px rgba(255, 230, 170, .7); }
/* 2. « Kélibia » en feuille d'or : dégradé clair → or profond, ombre portée sur le mur */
footer.fy .fy-kel { text-shadow: none !important; filter: drop-shadow(0 2px 0 #9a5f10) drop-shadow(0 16px 26px rgba(3, 14, 30, .8)); }
footer.fy .fy-kel span { color: transparent; background: linear-gradient(170deg, #fff1c4 0%, #f8d27a 32%, #f0a83a 62%, #c97d17 100%);
  -webkit-background-clip: text; background-clip: text; padding: 0 .12em .1em .05em; }
/* 3. entrée : le mur monte dans les lettres (comme une photo qui se développe), puis « Kélibia » s'écrit */
footer.footer.fy.fy-sara .fy-mark:not(.in) .fy-photo { clip-path: inset(100% 0 0 0); }
footer.footer.fy.fy-sara .fy-mark.in .fy-photo { animation: fyWall 60s linear infinite alternate, fyRise 1.1s cubic-bezier(.7, 0, .2, 1) both !important; }
@keyframes fyRise { from { clip-path: inset(100% 0 0 0); translate: 0 30px; } to { clip-path: inset(-50% -30% -50% -30%); translate: 0 0; } }
footer.fy .fy-mark.in .fy-kel span { animation-delay: .85s !important; }
@media (hover: none), (pointer: coarse) {
  footer.footer.fy.fy-sara .fy-mark.in .fy-photo { animation: fyWall 60s linear infinite alternate, fyRoam 14s ease-in-out infinite, fyRise 1.1s cubic-bezier(.7, 0, .2, 1) both !important; }
}
@media (prefers-reduced-motion: reduce) { footer.footer.fy.fy-sara .fy-mark:not(.in) .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo { clip-path: none; animation: none !important; } }
/* mur plus zoomé : tuiles ≈ 2× plus grandes, les visages se lisent (les deux couches gardent le même cadrage) */
footer.footer.fy.fy-sara .fy-mark .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo .fy-col { background-size: 340% auto !important; }
@media (max-width: 860px) { footer.footer.fy.fy-sara .fy-mark .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo .fy-col { background-size: 300% auto !important; } }
/* halo resserré : plus de brume autour du mot, juste une lueur qui épouse les lettres */
footer.footer.fy.fy-sara .fy-mark .fy-photo { filter: drop-shadow(0 0 10px rgba(14, 165, 224, .28)) drop-shadow(0 20px 26px rgba(0, 0, 0, .45)) !important; }
/* le jumeau couleur doit avoir exactement le même espacement que le mur bleu (sinon un « C » fantôme décalé apparaît) */
footer.footer.fy.fy-sara .fy-mark .fy-photo .fy-col { letter-spacing: inherit !important; padding: inherit !important; font: inherit !important; line-height: inherit !important; text-align: inherit !important; }
/* pied de page plus compact ; « Kélibia » centré sur « JCI », en travers de son tiers bas */
footer.footer.fy.fy-sara { padding-top: clamp(40px, 4vw, 56px) !important; }
footer.footer.fy.fy-sara .fy-mark { padding: 0 0 clamp(22px, 2.6vw, 38px) !important; margin-bottom: clamp(10px, 1.4vw, 20px) !important; }
footer.footer.fy.fy-sara .fy-mark .fy-photo { font-size: clamp(120px, 18vw, 290px) !important; }
footer.fy.fy-sara .fy-kel { left: 50%; bottom: clamp(4px, 1vw, 14px); translate: -50% 0; rotate: -6deg; font-size: clamp(50px, 7.2vw, 116px) !important; }

/* ----- bas de page minimal (réf. Pinterest) : une ligne de liens centrée, une barre fine ----- */
footer.footer.fy .fy-min-nav { margin-top: 0; }
footer.footer.fy .fy-min-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(22px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
footer.footer.fy .fy-min-nav a { position: relative; color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 600; text-decoration: none; padding: 6px 0; transition: color .25s; }
footer.footer.fy .fy-min-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: #f2a93b; transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
footer.footer.fy .fy-min-nav a:hover, footer.footer.fy .fy-min-nav a:focus-visible { color: #fff; }
footer.footer.fy .fy-min-nav a:hover::after, footer.footer.fy .fy-min-nav a:focus-visible::after { transform: scaleX(1); }
footer.footer.fy .fy-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(26px, 3vw, 40px); padding-top: 18px; padding-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
footer.footer.fy .fy-bar p, footer.footer.fy .fy-bar ul { margin: 0 !important; padding: 0; }
footer.footer.fy .fy-copy { justify-self: start; }

footer.footer.fy .fy-soc { display: flex; gap: 8px; }
footer.footer.fy .fy-soc a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .16); font-size: 16px; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, translate .25s; }
footer.footer.fy .fy-soc a:hover, footer.footer.fy .fy-soc a:focus-visible { background: #f2a93b; border-color: #f2a93b; color: #0b2a4a; translate: 0 -2px; }
footer.footer.fy .fy-links { justify-self: end; display: flex; gap: 18px; list-style: none; }
footer.footer.fy .fy-links a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .25s; }
footer.footer.fy .fy-links a:hover, footer.footer.fy .fy-links a:focus-visible { color: #f6c66a; }
@media (max-width: 720px) {
  footer.footer.fy .fy-bar { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  footer.footer.fy .fy-copy, footer.footer.fy .fy-links { justify-self: center; }
  footer.footer.fy .fy-soc { order: -1; }
  
}
/* enhance : la couture aux quatre couleurs du logo JCI, une lumière de scène derrière le mot */
footer.footer.fy.fy-sara { background: radial-gradient(60% 75% at 50% 18%, #15406b 0%, rgba(21, 64, 107, 0) 70%), #0b2a4a !important; }
footer.footer.fy.fy-sara::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, #0ea5e0 0 25%, #26408b 25% 50%, #f5c518 50% 75%, #5cc0b8 75% 100%); }
footer.footer.fy .fy-copy { unicode-bidi: isolate; color: rgba(255, 255, 255, .6); }
html[dir="rtl"] footer.footer.fy .fy-copy { justify-self: start; }
/* filigrane Ripples : très discret, tourne lentement derrière « JCI » */
footer.fy .fy-mark { isolation: isolate; }


/* éclat sur la feuille d'or de « Kélibia » */
footer.fy .fy-kel span { background: linear-gradient(110deg, #c97d17 0%, #f0a83a 22%, #f8d27a 38%, #fff6d8 46%, #f8d27a 54%, #f0a83a 70%, #c97d17 100%) 0 0 / 260% 100%; }
footer.fy .fy-mark.in .fy-kel span { animation: fyWrite 1.2s .85s cubic-bezier(.5, 0, .2, 1) forwards, fyGleam 6.5s 2.4s ease-in-out infinite; }
@keyframes fyGleam { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {  footer.fy .fy-kel span { background-position: 60% 0; } }
footer.fy .fy-kel span { -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }

/* les Ripples restent dans le pied de page (ne débordent plus sur la section blanche) et cadrent le mot sans l'écraser */
footer.footer.fy.fy-sara { overflow: clip !important; }


/* ----- constellation de Ripples sur tout le pied de page (remplace le filigrane derrière le mot) ----- */

footer.footer.fy.fy-sara > :not(.fy-rv) { position: relative; z-index: 1; }
footer.fy .fy-rv { position: absolute; z-index: 0; pointer-events: none; overflow: visible; aspect-ratio: 1; }
footer.fy .fy-rv path { fill: none; stroke-linecap: round; }
/* grand, entier : coupé par le coin bas (côté début) */
footer.fy .fy-rv.v1 { width: clamp(300px, 30vw, 520px); inset-inline-start: clamp(-220px, -11vw, -120px); bottom: clamp(-260px, -14vw, -140px); opacity: .1; animation: fyRvSpin 220s linear infinite; }
/* demi (jaune + turquoise) : entre par le bord haut (côté fin) */
footer.fy .fy-rv.v2 { width: clamp(220px, 20vw, 340px); inset-inline-end: clamp(-90px, -4vw, -40px); top: clamp(-170px, -9vw, -110px); opacity: .13; rotate: 25deg; animation: fyRvSpin 180s linear infinite reverse; }
/* quart cyan : au-dessus de la barre, côté fin */
footer.fy .fy-rv.v3 { width: clamp(80px, 7vw, 120px); inset-inline-end: 12%; bottom: clamp(90px, 9vw, 130px); opacity: .22; rotate: -15deg; }
/* tout petit, entier : en haut, côté début */
footer.fy .fy-rv.v4 { width: clamp(44px, 3.6vw, 64px); inset-inline-start: 17%; top: clamp(40px, 4.5vw, 70px); opacity: .25; animation: fyRvSpin 70s linear infinite; }
/* quart bleu roi : à mi-hauteur, côté fin, près du mot sans le toucher */
footer.fy .fy-rv.v5 { width: clamp(60px, 5vw, 90px); inset-inline-end: 24%; top: 34%; opacity: .3; rotate: 40deg; }
@keyframes fyRvSpin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  footer.fy .fy-rv.v3, footer.fy .fy-rv.v5 { display: none; }
  footer.fy .fy-rv.v1 { width: 300px; inset-inline-start: -150px; bottom: -150px; }
  footer.fy .fy-rv.v2 { width: 200px; inset-inline-end: -70px; top: -110px; }
  footer.fy .fy-rv.v4 { inset-inline-start: 8%; top: 28px; }
}
@media (prefers-reduced-motion: reduce) { footer.fy .fy-rv { animation: none !important; } }
@media (min-width: 861px) {
  footer.fy .fy-rv.v2 { top: clamp(-130px, -6.5vw, -80px); inset-inline-end: clamp(-60px, -2.5vw, -20px); opacity: .15; }
  footer.fy .fy-rv.v3 { inset-inline-end: auto; inset-inline-start: 21%; bottom: auto; top: 44%; rotate: 200deg; }
  footer.fy .fy-rv.v5 { inset-inline-end: 21%; top: 30%; }
}
@media (max-width: 720px) { html[dir="rtl"] footer.footer.fy .fy-copy, footer.footer.fy .fy-copy { justify-self: center; } }
/* les ripples se tracent quand le pied de page arrive (anneau après anneau, ripple après ripple) */
footer.fy .fy-rv path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.5, 0, .2, 1) calc(var(--d, 0s) + var(--i) * 60ms); }
footer.fy:has(.fy-mark.in) .fy-rv path { stroke-dashoffset: 0; }
footer.fy .fy-rv.v1 { --d: 0s; --z: 14px; } footer.fy .fy-rv.v2 { --d: .15s; --z: 22px; } footer.fy .fy-rv.v3 { --d: .3s; --z: 34px; }
footer.fy .fy-rv.v4 { --d: .4s; --z: 46px; } footer.fy .fy-rv.v5 { --d: .25s; --z: 30px; }
/* profondeur à la souris */
footer.fy .fy-rv { translate: calc(var(--px, 0) * var(--z) * -1) calc(var(--py, 0) * var(--z) * -1); transition: translate .9s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { footer.fy .fy-rv path { stroke-dashoffset: 0; transition: none; } }
/* le mot est là d'emblée : plus de montée du mur ni d'écriture de « Kélibia » (la dérive, la lumière et l'éclat restent) */
footer.footer.fy.fy-sara .fy-mark:not(.in) .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo { clip-path: none !important; translate: none !important; }
footer.footer.fy.fy-sara .fy-mark.in .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo { animation: fyWall 60s linear infinite alternate !important; }
@media (hover: none), (pointer: coarse) {
  footer.footer.fy.fy-sara .fy-mark.in .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo { animation: fyWall 60s linear infinite alternate, fyRoam 14s ease-in-out infinite !important; }
}
footer.fy .fy-kel span, footer.fy .fy-mark.in .fy-kel span { clip-path: none !important; animation: fyGleam 6.5s 1.5s ease-in-out infinite !important; }
@media (prefers-reduced-motion: reduce) { footer.footer.fy.fy-sara .fy-mark .fy-photo, footer.fy .fy-kel span { animation: none !important; } }
/* composition revue : rien sous le texte du bas ; plus de quarts (ils faisaient « wifi ») */
footer.fy .fy-rv.v5 { display: none !important; }
@media (min-width: 861px) {
  footer.fy .fy-rv.v1 { width: clamp(300px, 26vw, 460px); inset-inline-start: clamp(-200px, -9vw, -110px); top: clamp(-230px, -12vw, -140px); bottom: auto; opacity: .1; }
  footer.fy .fy-rv.v2 { inset-inline-end: clamp(-60px, -2.5vw, -20px); top: clamp(-130px, -6.5vw, -80px); }
  footer.fy .fy-rv.v3 { width: clamp(120px, 10vw, 180px); inset-inline-start: clamp(-70px, -3vw, -40px); inset-inline-end: auto; top: 46%; bottom: auto; rotate: 0deg; opacity: .14; animation: fyRvSpin 120s linear infinite reverse; }
  footer.fy .fy-rv.v4 { inset-inline-start: auto; inset-inline-end: 21%; top: 52%; opacity: .22; }
}
/* ----- transition drapé : le satin bleu nuit relie le contact (blanc) au pied de page ----- */
.fy-drape { position: relative; z-index: 1; margin-top: calc(-1 * clamp(30px, 4vw, 80px)); line-height: 0; pointer-events: none; }
.fy-drape img { display: block; width: 100%; height: clamp(170px, 30vw, 560px); object-fit: cover; object-position: 50% 26%; }
footer.footer.fy.fy-sara { margin-top: -2px !important;
  background: radial-gradient(60% 70% at 50% 42%, #15406b 0%, rgba(21, 64, 107, 0) 70%), linear-gradient(180deg, #09182f 0, #0b2a4a clamp(160px, 16vw, 260px)) !important; }
footer.footer.fy.fy-sara::before { display: none !important; }
.fy-drape img { height: clamp(140px, 19vw, 360px); object-position: 50% 24%; }
/* la jointure satin → pied de page fondue (pas de ligne) */
.fy-drape::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(9, 24, 47, 0), #09182f 92%); }
/* haut du pied de page fondu dans le bas du satin : plus de ligne, les ripples des coins émergent du tissu */
footer.footer.fy.fy-sara::before { display: block !important; content: ""; position: absolute; inset: 0 0 auto; height: clamp(110px, 12vw, 190px); z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #09182f 0%, rgba(9, 24, 47, .85) 30%, rgba(9, 24, 47, 0) 100%) !important; }
/* critique : moins d'accessoires. Plus de ripples (le satin porte le drame), drapé ramené à une vraie transition */
footer.fy .fy-rv { display: none !important; }
.fy-drape img { height: clamp(110px, 12.5vw, 240px); object-position: 50% 22%; }
/* drapé incliné (réf. : le tissu traverse la couture en diagonale) ; agrandi pour qu'aucun coin ne se voie ; se pose doucement au défilement */
.fy-drape { overflow: hidden; height: clamp(130px, 15vw, 290px); margin-top: calc(-1 * clamp(40px, 5vw, 96px)); }
.fy-drape img { position: absolute; left: -8%; width: 116%; top: 0; height: 118%; object-position: 50% 22%;
  transform: translateY(calc(var(--dy, 0) * 1px)) rotate(-4.5deg); transform-origin: 50% 70%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
html[dir="rtl"] .fy-drape img { transform: translateY(calc(var(--dy, 0) * 1px)) rotate(4.5deg) scaleX(-1); }
.fy-drape::after { z-index: 1; height: 34%; }
@media (prefers-reduced-motion: reduce) { .fy-drape img { transition: none; } }
.fy-drape img { left: -16%; width: 132%; top: -42%; height: 184%; object-position: 50% 30%; }
.fy-drape img { max-width: none !important; }
.fy-drape img { object-position: 50% 14%; transform: translateY(calc(var(--dy, 0) * 1px)) rotate(-3.5deg); }
html[dir="rtl"] .fy-drape img { transform: translateY(calc(var(--dy, 0) * 1px)) rotate(3.5deg) scaleX(-1); }
.fy-drape img { top: -14%; height: 168%; object-position: 50% 0%; }
/* inclinaison faite dans l'image elle-même : la page affiche simplement la bande (plus de rotation CSS, plus de coins) */
.fy-drape { height: auto; overflow: hidden; }
.fy-drape img { position: static; left: auto; top: auto; width: 100%; max-width: 100%; height: clamp(120px, 14vw, 270px); object-fit: cover; object-position: 50% 18%; transform: none !important; transition: none; }
.fy-drape { z-index: 0; }
footer.footer.fy.fy-sara { position: relative; z-index: 1; margin-top: -8px !important; }
.fy-drape img { height: clamp(130px, 15vw, 290px); object-position: 50% 30%; }
.fy-drape img { height: clamp(150px, 20vw, 380px); object-position: 50% 12%; }
/* le drapé redevient une transition : tassé verticalement (les plis restent naturels), cadre réduit d'autant */
.fy-drape { height: clamp(117px, 15.6vw, 296px); }
.fy-drape img { transform: scaleY(.78) !important; transform-origin: 50% 0; }
/* pied de page compact : mot plus petit, espacements serrés, drapé plus bas */
.fy-drape { height: clamp(96px, 12vw, 228px); }
.fy-drape img { transform: scaleY(.6) !important; }
footer.footer.fy.fy-sara { padding-top: clamp(18px, 2vw, 30px) !important; padding-bottom: 16px !important; }
footer.footer.fy.fy-sara .fy-mark { padding: 0 0 clamp(14px, 1.6vw, 22px) !important; margin-bottom: 6px !important; }
footer.footer.fy.fy-sara .fy-mark .fy-photo { font-size: clamp(96px, 12.5vw, 200px) !important; }
footer.fy.fy-sara .fy-kel { font-size: clamp(40px, 5vw, 80px) !important; }
footer.footer.fy .fy-bar { margin-top: clamp(16px, 1.8vw, 24px); padding-top: 14px; }
/* re-revue : rythme vertical égal, visages lisibles à la nouvelle taille, barre resserrée sur la composition centrée */
footer.footer.fy.fy-sara { padding-top: clamp(22px, 2.2vw, 32px) !important; }
footer.footer.fy.fy-sara .fy-mark { padding: 0 0 clamp(26px, 2.4vw, 34px) !important; margin-bottom: 0 !important; }
footer.footer.fy.fy-sara .fy-mark .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo .fy-col { background-size: 430% auto !important; }
footer.footer.fy .fy-bar { max-width: 1120px; margin-inline: auto; margin-top: clamp(22px, 2.2vw, 30px); }
footer.footer.fy .fy-min-nav { margin-top: clamp(16px, 1.6vw, 24px) !important; }
/* bleu profond (celui du satin) sur tout le pied de page ; une lueur à peine perceptible derrière le mot */
footer.footer.fy.fy-sara { background: radial-gradient(42% 60% at 50% 40%, rgba(24, 58, 100, .55) 0%, rgba(24, 58, 100, 0) 70%), #09182f !important; }
footer.footer.fy.fy-sara::before { background: linear-gradient(180deg, #09182f 0%, rgba(9, 24, 47, 0) 100%) !important; }
footer.footer.fy .fy-bar { border-top-color: rgba(255, 255, 255, .08); }

/* =====================================================================
   Harmonisation du site sur le pied de page : bleu profond du satin (#09182f) pour toutes les zones sombres,
   un seul système d'ombres teintées bleu nuit (3 niveaux), un seul survol pour les cartes cliquables.
   ===================================================================== */
:root {
  --deep: #09182f; --deep-2: #0e2442; --deep-3: #132f55;
  --sh-1: 0 1px 2px rgba(9, 24, 47, .06), 0 8px 20px -12px rgba(9, 24, 47, .22);
  --sh-2: 0 1px 2px rgba(9, 24, 47, .07), 0 22px 44px -24px rgba(9, 24, 47, .42);
  --sh-3: 0 2px 6px rgba(9, 24, 47, .10), 0 36px 72px -34px rgba(9, 24, 47, .6);
  --sh-hover: 0 2px 6px rgba(9, 24, 47, .08), 0 30px 56px -26px rgba(9, 24, 47, .5);
}
/* zones sombres */
main > section#history.history { background-color: var(--deep) !important; }
main > section#projects { background-image: linear-gradient(180deg, var(--deep-3) 0, var(--deep-2) 40%, var(--deep) 100%) !important; }
#news article.post { background-color: var(--deep-2) !important; }

#why .pgx-frame { background-color: var(--deep) !important; }
main > section#join { background: linear-gradient(180deg, rgba(9, 24, 47, .9), rgba(9, 24, 47, .96)), url("../img/photos/fort-kelibia-nuit.webp") center 40% / cover !important; }
/* ombres : niveau 1 (cartes), niveau 2 (blocs mis en avant), niveau 3 (photos) */
#team div.member, #faq details, #news article.post { box-shadow: var(--sh-1) !important; }
#about div.about-card, #trainings div.trs-grp, #team div.lead-member, #contact form.contact-form { box-shadow: var(--sh-2) !important; }
#about div.about-cover, #team div.lead-photo { box-shadow: var(--sh-3) !important; }
/* un seul survol : on soulève de 4px, l'ombre s'approfondit */
#team div.member, #team div.lead-member, #news article.post {
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s cubic-bezier(.2, .7, .2, 1) !important; }
@media (hover: hover) {
  #team div.member:hover, #team div.lead-member:hover, #news article.post:hover { transform: translateY(-4px); box-shadow: var(--sh-hover) !important; }
  #faq details:hover { box-shadow: var(--sh-2) !important; }
}
@media (prefers-reduced-motion: reduce) { #team div.member:hover, #team div.lead-member:hover, #news article.post:hover { transform: none; } }
main > section#news article.post, html body main > section#news .post { background-color: var(--deep-2) !important; box-shadow: var(--sh-1) !important; }
@media (hover: hover) { html body main > section#news .post:hover { box-shadow: var(--sh-hover) !important; } }
#news .news-grid .post.post.post { background-color: var(--deep-2) !important; box-shadow: var(--sh-1) !important; }
@media (hover: hover) { #news .news-grid .post.post.post:hover { box-shadow: var(--sh-hover) !important; } }
/* le même satin que le pied de page, en haut des grands blocs sombres : les plis se fondent dans le bleu profond */
main > section#projects { background:
    linear-gradient(180deg, rgba(14, 36, 66, .15) 0, rgba(14, 36, 66, .55) 45%, var(--deep-2) 100%) top center / 100% clamp(260px, 26vw, 460px) no-repeat,
    url("../img/satin-folds.jpg") top center / 100% clamp(260px, 26vw, 460px) no-repeat,
    linear-gradient(180deg, var(--deep-2) 0, var(--deep-2) 40%, var(--deep) 100%) !important; }
main > section#history.history { background:
    linear-gradient(180deg, rgba(9, 24, 47, .2) 0, rgba(9, 24, 47, .6) 45%, var(--deep) 100%) top center / 100% clamp(220px, 22vw, 400px) no-repeat,
    url("../img/satin-folds.jpg") top center / 100% clamp(220px, 22vw, 400px) no-repeat,
    var(--deep) !important; }
/* satin : garder les proportions (pas d'étirement sur téléphone) */
main > section#projects { background-size: 100% clamp(260px, 26vw, 460px), auto clamp(260px, 26vw, 460px), auto !important; }
main > section#history.history { background-size: 100% clamp(220px, 22vw, 400px), auto clamp(220px, 22vw, 400px), auto !important; }
/* drapé par-dessus le bord du bloc des événements : pleine largeur, il recouvre les coins arrondis puis se fond dans le bloc */
.sec-drape { position: relative; z-index: 3; height: clamp(110px, 13vw, 250px); margin-bottom: calc(-1 * clamp(56px, 6vw, 110px)); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); }
.sec-drape img { display: block; width: 100%; max-width: none; height: clamp(170px, 21vw, 400px); object-fit: cover; object-position: 50% 12%; transform: scaleY(.62); transform-origin: 50% 0; }
main > section#projects { position: relative; z-index: 1; }
/* rideau latéral (satin détouré) le long du bord de début du bloc « ما نؤمن به » */



main > section#history > :not(.side-drape) { position: relative; z-index: 1; }



/* le drapé reste à la largeur du bloc : les marges blanches de chaque côté restent nettes */
.sec-drape { margin-inline: 22px; }
@media (max-width: 860px) { .sec-drape { margin-inline: 8px; } }
/* le satin couvre entièrement les coins arrondis du bloc, puis s'efface (plus de double contour) */
.sec-drape { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); }
/* plus de blanc sur les côtés : le bloc des événements et son drapé vont d'un bord à l'autre (coins arrondis gardés en bas) */
main > section#projects { margin-inline: 0 !important; border-radius: 0 0 clamp(32px, 3vw, 56px) clamp(32px, 3vw, 56px) !important; }
.sec-drape, .sec-drape { margin-inline: 0 !important; }

/* revue « تظاهراتنا الكبرى » : photo RISE sans texte, colonne élargie au bloc pleine largeur, vraie hiérarchie pour « ومن أنشطتنا أيضًا » */
#projects .ev.ev-rise img { object-position: 42% 50% !important; transform: none !important; scale: 1 !important; }
@media (hover: hover) { #projects .ev.ev-rise:hover img { scale: 1.06 !important; } }
@media (min-width: 1280px) { main > section#projects > .wrap { max-width: min(1340px, calc(100% - 96px)) !important; } }
#projects .albums-title { font-size: clamp(1.5rem, 2.1vw, 2.1rem) !important; line-height: 1.2 !important; margin: clamp(56px, 6vw, 88px) 0 clamp(20px, 2vw, 30px) !important; color: #fff !important; }
@media (min-width: 1280px) { main > section#projects > .wrap { width: min(1340px, calc(100% - 96px)) !important; } }
#projects .ev.ev-rise img { object-position: 64% 45% !important; }

/* =====================================================================
   Revue globale : une seule largeur de colonne sur grand écran (comme « تظاهراتنا الكبرى »),
   titre du bureau sur une ligne, cartes des membres un peu plus généreuses.
   ===================================================================== */
@media (min-width: 1600px) {
  main > section > .wrap, main > section#projects > .wrap { width: min(1340px, calc(100% - 96px)) !important; max-width: none !important; }
}
#team h2 .tl { display: inline !important; }
#team h2 { white-space: nowrap; }
@media (max-width: 560px) { #team h2 { white-space: normal; } }
#team div.member { padding: 18px 20px !important; gap: 16px !important; }
#team div.member .avatar { width: 62px !important; height: 62px !important; flex: 0 0 62px; }
#team div.member .name { font-size: 1.06rem !important; }

/* tous les blocs colorés d'un bord à l'autre (comme « تظاهراتنا الكبرى ») : plus de blanc sur les côtés, même arrondi partout */
main > section#team, main > section#history,
main > section#faq, main > section#join {
  margin-inline: 0 !important; border-radius: clamp(32px, 3vw, 56px) !important; }

/* bandes empilées comme des feuilles : bureau → valeurs → FAQ → أوشي → انضم إلينا se chevauchent de la hauteur de l'arrondi,
   ombre douce vers le haut, plus de rayures blanches entre elles ; la couleur précédente apparaît dans les coins */
:root { --band-r: clamp(32px, 3vw, 56px); }
main > section#team, main > section#history, main > section#faq { margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
main > section#team, main > section#history, main > section#faq { padding-bottom: calc(104px + var(--band-r)) !important; }

main > section#history, main > section#faq, main > section#join {
  margin-top: calc(-1 * var(--band-r)) !important; position: relative;
  box-shadow: 0 -18px 40px -24px rgba(9, 24, 47, .38) !important; }
main > section#team { z-index: 1; } main > section#history { z-index: 2; } main > section#faq { z-index: 3; }
 main > section#join { z-index: 5; }
/* écarts réguliers ailleurs */
main > section#projects, main > section#join { margin-bottom: clamp(48px, 4vw, 64px) !important; }
/* bandes pleine largeur : plus d'« ouverture » (scale .93 → 1) qui faisait apparaître du blanc sur les côtés et décollait le bloc de son drapé */
main > section.projects, main > section.team, main > section.faq, main > section.history, main > section.join { animation: none !important; scale: none !important; }

/* =====================================================================
   Revue pro, passe « tout » : page raccourcie, légende du logo lisible, rappel d'adhésion au bon moment
   ===================================================================== */
/* 1. moins de redites : les actualités sont déjà racontées par la frise « سنتنا شهرًا بشهر », les albums par les grands événements et la frise */


/* 2. le logo : la légende des quatre sens est lisible par défaut (elle s'allume encore au survol) */
@media (min-width: 1100px) { #why .story3d .s3-stage:not(.s3-open) .s3-note.lg { opacity: .92 !important; } }
/* 2b. téléphone : les quatre domaines défilent au doigt au lieu de s'empiler (≈ −1000 px) */
@media (max-width: 860px) {
  #why ul.areas.pillars { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important;
    padding: 4px 16px 14px !important; margin-inline: -16px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #why ul.areas.pillars::-webkit-scrollbar { display: none; }
  #why ul.areas.pillars > li { flex: 0 0 82% !important; scroll-snap-align: center; min-width: 0; }
}
/* 3. rappel « انضم إلينا » juste après les grands événements */








/* téléphone : les quatre grands événements défilent au doigt (≈ −1400 px) */
@media (max-width: 860px) {
  #projects .ev-grid { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important;
    padding: 4px 16px 16px !important; margin-inline: -16px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #projects .ev-grid::-webkit-scrollbar { display: none; }
  #projects .ev-grid > .ev { flex: 0 0 84% !important; min-width: 0; height: 500px !important; scroll-snap-align: center; grid-column: auto !important; }
}

/* =====================================================================
   Échelle des tailles (revue experte) :
   accueil > titres de section > titres secondaires > texte ; rien sous 16 px de lecture sur grand écran.
   ===================================================================== */
/* le titre d'accueil domine nettement (il n'était que 64 px contre 58 px pour les sections) */
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 5.2rem) !important; line-height: 1.12 !important; }
/* le rappel d'adhésion est un titre secondaire, pas un titre de section */

@media (min-width: 1440px) {
  /* texte de lecture : 16-17 px minimum sur grand écran */
  #news .post p, #why .pillars p, #projects .album p, #team .role { font-size: 1.02rem !important; line-height: 1.65 !important; }
  #projects .ev-more, #projects .album-more, #news .post a.more, #news .post .more { font-size: 1rem !important; }
  /* actualités : les cartes suivent la nouvelle colonne (260 → 310 px) */
  #news .news-grid { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 310px !important; gap: 22px !important; }
  #news .news-grid .post.post.post { width: 310px !important; height: 500px !important; }
}
html[lang] body .hero h1 { font-size: clamp(2.5rem, 4.4vw, 5.2rem) !important; line-height: 1.12 !important; }
html[lang] body .hero h1 { font-size: clamp(2.5rem, 4vw, 4.7rem) !important; }

/* rappel « انضم إلينا » refait : des visages de l'équipe qui se chevauchent, puis une place vide en pointillés dorés (« إنت؟ ») */






 
 











/* =====================================================================
   « ما نؤمن به » : déclaration épinglée, phrase par phrase
   ===================================================================== */
main > section#history.creed-pin { min-height: 250vh; }
main > section#history.creed-pin > .wrap:last-of-type { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
#history.creed-pin .creed { width: 100%; }
#history.creed-pin .creed-list { position: relative; }
#history.creed-pin .creed-list::before { content: "\201D"; position: absolute; inset-inline-start: -.1em; top: -.62em; font-family: "Aref Ruqaa", Georgia, serif;
  font-size: clamp(5rem, 9vw, 9rem); line-height: 1; color: #f2a93b; opacity: .9; pointer-events: none; }
#history.creed-pin .creed-list li { animation: none !important; font-size: clamp(1.25rem, 2vw, 2.05rem) !important; line-height: 1.5 !important;
  color: #fff !important; opacity: .22; transform-origin: right center; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
html:not([dir="rtl"]) #history.creed-pin .creed-list li { transform-origin: left center; }
#history.creed-pin .creed-list li.past { opacity: .55; }
#history.creed-pin .creed-list li.on { opacity: 1; transform: scale(1.05); text-shadow: 0 0 28px rgba(140, 200, 255, .25); }
@media (max-width: 860px) { main > section#history.creed-pin { min-height: 220vh; } #history.creed-pin .creed-list::before { top: -.8em; } }

/* =====================================================================
   « أبعد من قليبية » : zoom arrière en anneaux (grand écran)
   ===================================================================== */







/* anneaux */

  




  

  
/* les anneaux déjà franchis restent légèrement teintés */







/* =====================================================================
   Credo : manifeste dactylographié sur une feuille (réf. papier, pince, machine à écrire) — version sobre et premium.
   Feuille crème au grain fin, réglure discrète, pince en laiton, ombre longue ; chaque phrase se tape quand on défile.
   ===================================================================== */
#history.creed-pin .creed-list::before { content: none !important; }
#history.creed-pin .creed-list { position: relative; padding: clamp(56px, 5vw, 76px) clamp(28px, 4vw, 64px) clamp(44px, 4vw, 60px) !important; margin: 0 !important;
  border-radius: 3px; rotate: -1.2deg; list-style: none;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(2.3em - 1px), rgba(38, 64, 139, .12) calc(2.3em - 1px) 2.3em) 0 clamp(56px, 5vw, 76px) / 100% calc(100% - clamp(100px, 9vw, 136px)) no-repeat,
    radial-gradient(120% 90% at 30% 20%, #fbf6ea 0%, #f3ead6 60%, #ead9bc 100%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px rgba(0, 0, 0, .25), 0 38px 70px -30px rgba(0, 0, 0, .75), 0 70px 120px -60px rgba(0, 0, 0, .6) !important;
  font-size: clamp(1.05rem, 1.45vw, 1.42rem); }
/* grain du papier */
#history.creed-pin .creed-list > li:first-child::before { content: none; }
#history.creed-pin .creed-list::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background: repeating-radial-gradient(circle at 17% 31%, rgba(120, 90, 40, .05) 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 71% 62%, rgba(120, 90, 40, .04) 0 1px, transparent 1px 4px); }
/* pince en laiton */
#history.creed-pin .creed { position: relative; }




/* phrases tapées : encre bleu nuit, la phrase en cours se tape, les suivantes ne sont pas encore écrites */
#history.creed-pin .creed-list li { color: #13233c !important; opacity: 1 !important; transform: none !important; text-shadow: none !important; font-size: 1em !important;
  line-height: 2.3em !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  font-family: "IBM Plex Sans Arabic", "Courier New", monospace !important; letter-spacing: .01em;
  clip-path: inset(0 0 0 100%); transition: clip-path 1.25s steps(30, end) !important; }
html:not([dir="rtl"]) #history.creed-pin .creed-list li { clip-path: inset(0 100% 0 0); }
#history.creed-pin .creed-list li.past, #history.creed-pin .creed-list li.on { clip-path: inset(0 0 0 0) !important; }
#history.creed-pin .creed-list li.past { color: rgba(19, 35, 60, .62) !important; }
/* la tête du credo (« نحن نعتقد ») reste dans la colonne, en blanc sur le bleu */
@media (prefers-reduced-motion: reduce) { #history .creed-list li { clip-path: none !important; } }
#history.creed-pin .creed-list::after { content: none !important; }
#history.creed-pin .creed-list { font-size: clamp(1.12rem, 1.65vw, 1.6rem) !important;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(2.3em - 1px), rgba(38, 64, 139, .14) calc(2.3em - 1px) 2.3em) 0 clamp(56px, 5vw, 76px) / 100% calc(6 * 2.3em) no-repeat,
    linear-gradient(90deg, transparent calc(100% - clamp(22px, 3vw, 48px)), rgba(242, 169, 59, .35) calc(100% - clamp(22px, 3vw, 48px)) calc(100% - clamp(21px, 3vw, 47px)), transparent 0),
    radial-gradient(120% 90% at 30% 20%, #fbf6ea 0%, #f3ead6 60%, #ead9bc 100%) !important; }
html:not([dir="rtl"]) #history.creed-pin .creed-list { background:
    repeating-linear-gradient(180deg, transparent 0 calc(2.3em - 1px), rgba(38, 64, 139, .14) calc(2.3em - 1px) 2.3em) 0 clamp(56px, 5vw, 76px) / 100% calc(6 * 2.3em) no-repeat,
    linear-gradient(90deg, transparent clamp(22px, 3vw, 48px), rgba(242, 169, 59, .35) clamp(22px, 3vw, 48px) clamp(23px, 3vw, 49px), transparent 0),
    radial-gradient(120% 90% at 30% 20%, #fbf6ea 0%, #f3ead6 60%, #ead9bc 100%) !important; }
html body #history.creed-pin .creed-list { background: radial-gradient(120% 90% at 30% 20%, #fbf6ea 0%, #f3ead6 62%, #ebdcc0 100%) !important; }

/* =====================================================================
   FAQ : un tableau de notes en papier (crème, kraft), tenues par un ruban adhésif, légèrement de travers.
   Cliquer redresse la note, l'élargit et fait apparaître la réponse à l'encre.
   ===================================================================== */
#faq .faq-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.2vw, 34px) !important; align-items: start;
  background: none !important; box-shadow: none !important; padding: 18px 6px !important; }
#faq .faq-list > details { position: relative; margin: 0 !important; padding: 30px clamp(20px, 2vw, 30px) 24px !important; border: 0 !important; border-radius: 3px !important;
  background: radial-gradient(120% 100% at 30% 15%, #fdf9ef 0%, #f5ecda 70%, #ecdfc5 100%) !important;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .18), 0 18px 34px -20px rgba(60, 40, 10, .5) !important;
  rotate: -1.4deg; translate: none !important; transition: rotate .45s cubic-bezier(.34, 1.4, .5, 1), box-shadow .45s, scale .45s !important; }
#faq .faq-list > details:nth-child(2n) { rotate: 1.2deg; background: radial-gradient(120% 100% at 30% 15%, #efe2c6 0%, #e2cfa9 70%, #d6bf93 100%) !important; }
#faq .faq-list > details:nth-child(3n) { rotate: -.6deg; }
/* ruban adhésif */
#faq .faq-list > details::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; translate: -50% 0; rotate: -3deg;
  background: linear-gradient(180deg, rgba(255, 252, 240, .78), rgba(240, 232, 210, .7)); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  clip-path: polygon(3% 0, 97% 4%, 100% 100%, 0 96%); }
#faq .faq-list > details:nth-child(2n)::before { rotate: 4deg; left: 38%; }
#faq .faq-list > details summary { list-style: none; padding: 0 !important; color: #13233c !important; font-weight: 800 !important; font-size: clamp(1.05rem, 1.25vw, 1.22rem) !important;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: none !important; }
#faq .faq-list > details summary::-webkit-details-marker { display: none; }
#faq .faq-list > details summary::before { display: none !important; }
#faq .faq-list > details summary::after { content: "؟" !important; display: grid !important; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  font-family: "Aref Ruqaa", serif; font-size: 1.3rem; color: #d98a14 !important; background: rgba(242, 169, 59, .14) !important; border: 1px dashed rgba(217, 138, 20, .6) !important;
  transform: none !important; transition: background .3s, color .3s; }
#faq .faq-list > details[open] summary::after { content: "✓" !important; color: #fff !important; background: #f2a93b !important; border-color: #f2a93b !important; font-family: inherit; font-size: 1rem; }
#faq .faq-list > details > p { margin: 14px 0 0 !important; padding: 14px 0 0 !important; border-top: 1px dashed rgba(19, 35, 60, .2); color: rgba(19, 35, 60, .82) !important;
  font-size: clamp(.98rem, 1.05vw, 1.06rem) !important; line-height: 1.85 !important; max-width: none !important; }
#faq .faq-list > details[open] { grid-column: 1 / -1; rotate: 0deg; scale: 1.01; box-shadow: 0 2px 4px rgba(60, 40, 10, .2), 0 30px 54px -26px rgba(60, 40, 10, .6) !important; z-index: 1; }
@media (hover: hover) { #faq .faq-list > details:not([open]):hover { rotate: 0deg; box-shadow: 0 2px 4px rgba(60, 40, 10, .2), 0 26px 44px -22px rgba(60, 40, 10, .55) !important; } }
@media (max-width: 760px) { #faq .faq-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #faq .faq-list > details { transition: none !important; } }
#faq .faq-list { grid-auto-flow: row dense; }
#faq .faq-list > details[open] summary::after { content: "−" !important; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif !important; font-size: 1.3rem !important; line-height: 1; }

/* Credo, charte officielle : Amiri (arabe imprimé élégant), en-tête sur la feuille, tampon à l'encre bleue */
#history.creed-pin .creed-sheet { position: relative; rotate: -1.2deg; width: 100%; }
#history.creed-pin .creed-sheet .creed-list { rotate: 0deg !important; padding-top: clamp(92px, 7.5vw, 116px) !important; padding-bottom: clamp(70px, 6vw, 92px) !important; }

#history.creed-pin .creed-list li { font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important; font-size: 1.12em !important; line-height: 2.05em !important; }
html:not([lang="ar"]) #history.creed-pin .creed-list li { font-family: Georgia, "Times New Roman", serif !important; }







/* FAQ : attaches variées (ruban / punaise en laiton) et réponses en Amiri, comme la charte */
#faq .faq-list > details:nth-child(2n)::before { content: ""; top: -9px; left: 50%; width: 18px; height: 18px; translate: -50% 0; rotate: 0deg; clip-path: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c6 0%, #e7bd5d 35%, #a5772a 75%, #6e4c17 100%) !important;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, .45), 1px 7px 8px -4px rgba(0, 0, 0, .35) !important; }
#faq .faq-list > details > p { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif !important; font-size: clamp(1.05rem, 1.15vw, 1.16rem) !important; line-height: 1.95 !important; }
html:not([lang="ar"]) #faq .faq-list > details > p { font-family: Georgia, "Times New Roman", serif !important; }
@media (max-width: 860px) {
  #history .creed { display: grid !important; grid-template-columns: 1fr !important; gap: 22px !important; }
  #history .creed-sheet { width: auto !important; margin-inline: -4px; }
  #history.creed-pin .creed-sheet .creed-list { padding-inline: 22px !important; font-size: 1.04rem !important; }
  
}

/* Credo : une seule composition épinglée — titre + ligne dorée + « نحن نعتقد » à côté de la charte, centrés dans l'écran */
main > section#history > .wrap.creed-moved { display: none !important; }
main > section#history.creed-pin { min-height: 220vh; padding-top: 0 !important; }
main > section#history.creed-pin > .wrap:last-of-type { padding-block: clamp(70px, 8vh, 110px) clamp(30px, 4vh, 50px) !important; }
#history.creed-pin .creed { display: grid !important; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.7fr); align-items: center; gap: clamp(36px, 5vw, 96px) !important; }
#history .creed-head { display: grid; gap: 6px; align-content: center; }
#history .creed-head h2 { margin: 0 !important; color: #fff !important; }
#history .creed-head .derja { margin: 0 0 clamp(18px, 3vh, 34px) !important; color: #f2a93b !important; }
#history .creed-head h3 { display: none !important; }
#history .creed-head > p:not(.derja) { margin: 0 !important; color: rgba(255, 255, 255, .85) !important; font-size: clamp(1.3rem, 1.8vw, 1.9rem) !important; font-weight: 700; }
#history.creed-pin .creed-sheet .creed-list { padding-top: clamp(84px, 7vw, 104px) !important; padding-bottom: clamp(56px, 5vw, 76px) !important; }
@media (max-width: 860px) { #history.creed-pin .creed { grid-template-columns: 1fr; gap: 20px !important; } main > section#history.creed-pin { min-height: 200vh; } }
/* la feuille n'est jamais vide : les phrases à venir sont une empreinte pâle, la phrase en cours s'encre, les lues restent en encre grise */
html body #history.creed-pin .creed-list li { clip-path: none !important; color: rgba(19, 35, 60, .16) !important; transition: color .8s ease !important; }
html body #history.creed-pin .creed-list li.past { color: rgba(19, 35, 60, .58) !important; }
html body #history.creed-pin .creed-list li.on { color: #0f1d33 !important; }

/* Credo : feuille arrachée d'un registre (réf. bord de journal déchiré) — bord déchiré côté intérieur, fibres ombrées, ombre qui suit la découpe */
html body #history.creed-pin .creed-sheet { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)) drop-shadow(0 34px 44px rgba(0, 0, 0, .55)); }
html body #history.creed-pin .creed-sheet .creed-list { box-shadow: none !important; border-radius: 0 3px 3px 0 !important; clip-path: polygon(100% 0, 100% 100%, 2.16% 100%, 0.73% 97.83%, 1.68% 95.65%, 1.34% 93.48%, 0.54% 91.3%, 2.03% 89.13%, 0.31% 86.96%, 1.09% 84.78%, 0.78% 82.61%, 1.56% 80.43%, 0.45% 78.26%, 1.36% 76.09%, 1.24% 73.91%, 0.63% 71.74%, 0.94% 69.57%, 0.4% 67.39%, 1.15% 65.22%, 0.77% 63.04%, 0.23% 60.87%, 0.36% 58.7%, 1.52% 56.52%, 0.66% 54.35%, 1.13% 52.17%, 0.13% 50%, 0.35% 47.83%, 1.1% 45.65%, 0.98% 43.48%, 0.64% 41.3%, 0.31% 39.13%, 0.2% 36.96%, 1.25% 34.78%, 0.6% 32.61%, 1.53% 30.43%, 0.54% 28.26%, 1.13% 26.09%, 1.21% 23.91%, 0.94% 21.74%, 1% 19.57%, 0.21% 17.39%, 0.27% 15.22%, 0.83% 13.04%, 0.45% 10.87%, 0.4% 8.7%, 1.18% 6.52%, 1.39% 4.35%, 0.07% 2.17%, 1.2% 0%);
  background: linear-gradient(90deg, rgba(150, 118, 64, .22) 0, rgba(150, 118, 64, 0) 22px), radial-gradient(120% 90% at 30% 20%, #fbf6ea 0%, #f3ead6 62%, #ebdcc0 100%) !important; }
html:not([dir="rtl"]) body #history.creed-pin .creed-sheet .creed-list { border-radius: 3px 0 0 3px !important; clip-path: polygon(0 0, 0 100%, 97.84% 100%, 99.27% 97.83%, 98.32% 95.65%, 98.66% 93.48%, 99.46% 91.3%, 97.97% 89.13%, 99.69% 86.96%, 98.91% 84.78%, 99.22% 82.61%, 98.44% 80.43%, 99.55% 78.26%, 98.64% 76.09%, 98.76% 73.91%, 99.37% 71.74%, 99.06% 69.57%, 99.6% 67.39%, 98.85% 65.22%, 99.23% 63.04%, 99.77% 60.87%, 99.64% 58.7%, 98.48% 56.52%, 99.34% 54.35%, 98.87% 52.17%, 99.87% 50%, 99.65% 47.83%, 98.9% 45.65%, 99.02% 43.48%, 99.36% 41.3%, 99.69% 39.13%, 99.8% 36.96%, 98.75% 34.78%, 99.4% 32.61%, 98.47% 30.43%, 99.46% 28.26%, 98.87% 26.09%, 98.79% 23.91%, 99.06% 21.74%, 99% 19.57%, 99.79% 17.39%, 99.73% 15.22%, 99.17% 13.04%, 99.55% 10.87%, 99.6% 8.7%, 98.82% 6.52%, 98.61% 4.35%, 99.93% 2.17%, 98.8% 0%);
  background: linear-gradient(270deg, rgba(150, 118, 64, .22) 0, rgba(150, 118, 64, 0) 22px), radial-gradient(120% 90% at 30% 20%, #fbf6ea 0%, #f3ead6 62%, #ebdcc0 100%) !important; }

/* Credo, 3e passe : hiérarchie du titre, lumière chaude derrière la charte, tampon vraiment bleu */
#history.creed-pin .creed-head h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem) !important; line-height: 1.05 !important; }
#history.creed-pin .creed-head .derja { font-size: clamp(1.35rem, 1.9vw, 2rem) !important; }
#history.creed-pin .creed-head > p:not(.derja) { font-size: clamp(1.5rem, 2.2vw, 2.3rem) !important; color: #fff !important; position: relative; padding-top: 18px; }
#history.creed-pin .creed-head > p:not(.derja)::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 56px; height: 2px; background: linear-gradient(90deg, #f2a93b, rgba(242, 169, 59, 0)); }
/* lumière de bureau, chaude, derrière la feuille */
main > section#history.creed-pin > .wrap:last-of-type { position: sticky; }
main > section#history.creed-pin > .wrap:last-of-type::before { content: ""; position: absolute; z-index: 0; inset-inline-end: 8%; top: 50%; width: min(70vw, 1100px); aspect-ratio: 1.6;
  translate: 0 -50%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .2), rgba(255, 190, 110, .08) 45%, rgba(255, 190, 110, 0) 70%); }
html:not([dir="rtl"]) main > section#history.creed-pin > .wrap:last-of-type::before { inset-inline-end: auto; inset-inline-start: 8%; }
#history.creed-pin .creed { position: relative; z-index: 1; }
/* tampon à l'encre bleue */



/* =====================================================================
   Credo, 4e passe : feuille plus petite, satin en fond, plus d'épinglage ; entrée unique
   ===================================================================== */
html body main > section#history.cr-flow { min-height: 0 !important;
  background: linear-gradient(180deg, rgba(9, 24, 47, .55) 0%, rgba(9, 24, 47, .78) 55%, rgba(9, 24, 47, .92) 100%), url("../img/satin-folds.jpg") center / cover no-repeat, var(--deep) !important; }
html body main > section#history.cr-flow > .wrap:last-of-type { position: relative !important; top: auto; min-height: 0 !important; padding-block: clamp(80px, 8vw, 120px) clamp(90px, 9vw, 130px) !important; }
/* feuille ≈ 60 % */
html body #history.cr-flow .creed { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.35fr) !important; }
html body #history.cr-flow .creed-sheet { max-width: 720px; justify-self: center; }
/* toutes les phrases à l'encre */
html body #history.cr-flow .creed-list li, html body #history.cr-flow .creed-list li.on, html body #history.cr-flow .creed-list li.past { color: #13233c !important; opacity: 1; }
/* entrée unique */
html body #history.cr-flow .creed-sheet { opacity: 0; translate: 0 46px; rotate: -5deg; transition: opacity .9s ease, translate 1.1s cubic-bezier(.2, .8, .2, 1), rotate 1.2s cubic-bezier(.34, 1.35, .5, 1); }
html body #history.cr-flow.cr-in .creed-sheet { opacity: 1; translate: 0 0; rotate: -1.2deg; }
html body #history.cr-flow .creed-list li { opacity: 0 !important; translate: 0 8px; transition: opacity .6s ease, translate .6s ease !important; }
html body #history.cr-flow.cr-in .creed-list li { opacity: 1 !important; translate: 0 0; }
html body #history.cr-flow.cr-in .creed-list li:nth-child(1) { transition-delay: .55s !important; } html body #history.cr-flow.cr-in .creed-list li:nth-child(2) { transition-delay: .7s !important; }
html body #history.cr-flow.cr-in .creed-list li:nth-child(3) { transition-delay: .85s !important; } html body #history.cr-flow.cr-in .creed-list li:nth-child(4) { transition-delay: 1s !important; }
html body #history.cr-flow.cr-in .creed-list li:nth-child(5) { transition-delay: 1.15s !important; } html body #history.cr-flow.cr-in .creed-list li:nth-child(6) { transition-delay: 1.3s !important; }


@media (max-width: 860px) { html body #history.cr-flow .creed { grid-template-columns: 1fr !important; } html body #history.cr-flow .creed-sheet { max-width: none; } }
@media (prefers-reduced-motion: reduce) { html body #history.cr-flow .creed-sheet, html body #history.cr-flow .creed-list li{ transition: none !important; } }

/* Credo, 5e passe : le tampon ne mord plus sur le texte, signature manuscrite, feuille de dessous, colonnes resserrées */
html body #history.cr-flow .creed-sheet .creed-list { padding-bottom: clamp(120px, 10vw, 150px) !important; }

/* signature */



 
/* feuille de dessous, décalée */

html body #history.cr-flow .creed-sheet { isolation: isolate; }
/* colonnes resserrées : la feuille vient vers le titre */
@media (min-width: 861px) {
  html body #history.cr-flow .creed { grid-template-columns: auto minmax(0, 720px) !important; justify-content: center; gap: clamp(48px, 5vw, 96px) !important; }
  html body #history.cr-flow .creed-sheet { justify-self: stretch; }
}



html body #history.cr-flow .creed-sheet .creed-list { padding-bottom: clamp(132px, 11vw, 160px) !important; }

/* =====================================================================
   Credo, refonte experte : une inscription monumentale gravée dans le satin
   (plus de feuille, de pince, de tampon ni de signature : ils faisaient « objet posé »)
   ===================================================================== */

html body main > section#history.cr-engrave > .wrap:last-of-type { padding-block: clamp(96px, 9vw, 140px) clamp(110px, 10vw, 150px) !important; }
html body #history.cr-engrave .creed { display: grid !important; grid-template-columns: 1fr !important; justify-items: center; gap: clamp(26px, 3vw, 44px) !important;
  max-width: 1000px; margin-inline: auto; position: relative; text-align: center; }
/* filigrane Ripples */


/* tête centrée */
html body #history.cr-engrave .creed-head { position: relative; z-index: 1; justify-items: center; text-align: center; }
html body #history.cr-engrave .creed-head > p:not(.derja) { padding-top: 0 !important; font-size: clamp(1rem, 1.2vw, 1.15rem) !important; color: #f2a93b !important; letter-spacing: .06em; font-weight: 700; }
html body #history.cr-engrave .creed-head > p:not(.derja)::before { display: none; }
html body #history.cr-engrave .creed-head .derja { margin-bottom: clamp(14px, 2vw, 24px) !important; }
/* l'inscription */
html body #history.cr-engrave .creed-sheet { position: relative; z-index: 1; width: 100%; max-width: none !important; rotate: none !important; filter: none !important; opacity: 1 !important; translate: none !important; }
html body #history.cr-engrave .creed-sheet .creed-list { background: none !important; box-shadow: none !important; clip-path: none !important; padding: 0 !important; rotate: none !important; border-radius: 0 !important;
  display: grid; justify-items: center; gap: 0; font-size: 1rem !important; }
html body #history.cr-engrave .creed-list li { position: relative; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important; font-size: clamp(1.35rem, 2.15vw, 2.25rem) !important; line-height: 1.55 !important;
  color: #f4ead2 !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .35) !important; padding: clamp(14px, 1.6vw, 22px) 0 !important; max-width: 24ch; text-wrap: balance; }
html:not([lang="ar"]) body #history.cr-engrave .creed-list li { max-width: 34ch; }
/* filet doré + losange entre deux phrases */
html body #history.cr-engrave .creed-list li + li::before { content: ""; position: absolute; top: 0; left: 50%; width: clamp(90px, 9vw, 140px); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, rgba(242, 169, 59, 0), #f2a93b 30%, #f2a93b 70%, rgba(242, 169, 59, 0)); transform-origin: center; }
html body #history.cr-engrave .creed-list li + li::after { content: ""; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; translate: -50% 0; rotate: 45deg; background: #f2a93b; }
/* entrée solennelle : les phrases montent une à une, les filets se dessinent depuis le centre */
html body #history.cr-engrave .creed-list li { opacity: 0 !important; translate: 0 18px; transition: opacity .8s ease, translate .9s cubic-bezier(.2, .8, .2, 1) !important; }
html body #history.cr-engrave .creed-list li + li::before { scale: 0 1; transition: scale .9s cubic-bezier(.2, .8, .2, 1); }
html body #history.cr-engrave .creed-list li + li::after { opacity: 0; transition: opacity .4s ease; }
html body #history.cr-engrave.cr-in .creed-list li { opacity: 1 !important; translate: 0 0; }
html body #history.cr-engrave.cr-in .creed-list li + li::before { scale: 1 1; } html body #history.cr-engrave.cr-in .creed-list li + li::after { opacity: 1; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(1) { transition-delay: .1s !important; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(2), html body #history.cr-engrave.cr-in .creed-list li:nth-child(2)::before, html body #history.cr-engrave.cr-in .creed-list li:nth-child(2)::after { transition-delay: .35s !important; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(3), html body #history.cr-engrave.cr-in .creed-list li:nth-child(3)::before, html body #history.cr-engrave.cr-in .creed-list li:nth-child(3)::after { transition-delay: .6s !important; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(4), html body #history.cr-engrave.cr-in .creed-list li:nth-child(4)::before, html body #history.cr-engrave.cr-in .creed-list li:nth-child(4)::after { transition-delay: .85s !important; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(5), html body #history.cr-engrave.cr-in .creed-list li:nth-child(5)::before, html body #history.cr-engrave.cr-in .creed-list li:nth-child(5)::after { transition-delay: 1.1s !important; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(6), html body #history.cr-engrave.cr-in .creed-list li:nth-child(6)::before, html body #history.cr-engrave.cr-in .creed-list li:nth-child(6)::after { transition-delay: 1.35s !important; }
@media (prefers-reduced-motion: reduce) { html body #history.cr-engrave .creed-list li, html body #history.cr-engrave .creed-list li::before, html body #history.cr-engrave .creed-list li::after { transition: none !important; } }
html body #history.cr-engrave .creed-list li { max-width: 48ch !important; font-size: clamp(1.25rem, 1.85vw, 2rem) !important; padding: clamp(12px, 1.3vw, 18px) 0 !important; }
html body #history.cr-engrave .creed { max-width: 1200px; }
html body #history.cr-engrave .creed > .creed-head { grid-area: auto / 1 !important; grid-row: 1 !important; } html body #history.cr-engrave .creed > .creed-sheet { grid-area: auto / 1 !important; grid-row: 2 !important; }
html body #history.cr-engrave .creed-head { top: auto !important; position: relative !important; }
html body #history.cr-engrave .creed-list li, html body #history.cr-engrave .creed-list li.on, html body #history.cr-engrave .creed-list li.past { color: #f4ead2 !important; transform: none !important; }
/* Credo : contraste et espacement */
html body #history.cr-engrave .creed-list li { padding: clamp(8px, .9vw, 13px) 0 !important; line-height: 1.5 !important; color: #fbf3df !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 0 24px rgba(5, 14, 30, .85) !important; }
html body #history.cr-engrave .creed-list li + li::before { width: clamp(60px, 6vw, 96px); background: linear-gradient(90deg, rgba(242, 169, 59, 0), rgba(242, 169, 59, .75) 30%, rgba(242, 169, 59, .75) 70%, rgba(242, 169, 59, 0)); }
html body #history.cr-engrave .creed-list li + li::after { width: 5px; height: 5px; top: -2px; }

/* halo sombre doux derrière le texte : meilleur contraste sur le satin */
html body #history.cr-engrave .creed-sheet::before { content: ""; position: absolute; z-index: -1; inset: -6% -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 14, 30, .55), rgba(5, 14, 30, 0)); }
html body #history.cr-engrave .creed { gap: clamp(18px, 2vw, 30px) !important; }

/* Credo : la scène — rideau en miroir de l'autre côté, lumière qui tombe d'en haut sur l'inscription */



html body main > section#history.cr-engrave > .wrap:last-of-type::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 0; translate: -50% 0;
  width: min(70vw, 1100px); height: 100%; pointer-events: none; inset-inline-end: auto;
  background: radial-gradient(60% 70% at 50% 0%, rgba(255, 228, 170, .16), rgba(255, 228, 170, .05) 45%, rgba(255, 228, 170, 0) 75%); border-radius: 0; aspect-ratio: auto; }


/* Credo : plus de puces entre les phrases ; de grands guillemets dorés encadrent le texte (citation premium) */
html body #history.cr-engrave .creed-list li + li::before, html body #history.cr-engrave .creed-list li + li::after { display: none !important; content: none !important; }
html body #history.cr-engrave .creed-list { position: relative; padding: clamp(36px, 4vw, 56px) clamp(54px, 6vw, 96px) !important; }
html body main > section#history.cr-engrave .creed-sheet .creed-list::before, html body main > section#history.cr-engrave .creed-sheet .creed-list::after {
  position: absolute; display: block !important; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; line-height: 1; color: #f2a93b; pointer-events: none;
  font-size: clamp(5rem, 8vw, 8.5rem); opacity: .9; text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list::before { content: "\201D" !important; top: -.18em; right: 0; left: auto; }
html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list::after { content: "\201C" !important; bottom: -.62em; left: 0; right: auto; }
html:not([dir="rtl"]) body main > section#history.cr-engrave .creed-sheet .creed-list::before { content: "\201C" !important; top: -.18em; left: 0; right: auto; }
html:not([dir="rtl"]) body main > section#history.cr-engrave .creed-sheet .creed-list::after { content: "\201D" !important; bottom: -.62em; right: 0; left: auto; }
html body #history.cr-engrave .creed-list li { padding: clamp(10px, 1.1vw, 15px) 0 !important; }
/* les guillemets apparaissent avec le texte */
html body #history.cr-engrave .creed-sheet .creed-list::before, html body #history.cr-engrave .creed-sheet .creed-list::after { opacity: 0; scale: .7; transition: opacity .8s ease .05s, scale .9s cubic-bezier(.3, 1.4, .5, 1) .05s; }
html body #history.cr-engrave.cr-in .creed-sheet .creed-list::before { opacity: .9; scale: 1; }
html body #history.cr-engrave.cr-in .creed-sheet .creed-list::after { opacity: .9; scale: 1; transition-delay: 1.5s; }
@media (max-width: 860px) { html body #history.cr-engrave .creed-list { padding: 40px 24px 46px !important; } html body main > section#history.cr-engrave .creed-sheet .creed-list::before, html body main > section#history.cr-engrave .creed-sheet .creed-list::after { font-size: 4.2rem; } }
html body main > section#history.cr-engrave .creed-sheet .creed-list::after { top: auto !important; }

/* compacité : le Credo et « أوشي » prennent moins de place */
html body main > section#history.cr-engrave > .wrap:last-of-type { padding-block: clamp(56px, 5vw, 76px) clamp(64px, 6vw, 88px) !important; }
html body #history.cr-engrave .creed { gap: clamp(10px, 1.2vw, 18px) !important; }
html body #history.cr-engrave .creed-head .derja { margin-bottom: 8px !important; }
html body #history.cr-engrave .creed-list { padding: clamp(24px, 2.6vw, 36px) clamp(54px, 6vw, 90px) !important; }
html body #history.cr-engrave .creed-list li { font-size: clamp(1.15rem, 1.55vw, 1.7rem) !important; padding: clamp(6px, .7vw, 10px) 0 !important; }
html body main > section#history.cr-engrave .creed-sheet .creed-list::before, html body main > section#history.cr-engrave .creed-sheet .creed-list::after { font-size: clamp(4rem, 6vw, 6.2rem) !important; }
main > section#history { padding-bottom: calc(56px + var(--band-r)) !important; padding-top: 0 !important; }
/* أوشي */




/* =====================================================================
   Credo, la scène : lambrequin en haut, rideaux qui s'ouvrent à l'arrivée, guillemets collés au texte
   ===================================================================== */


html body main > section#history.cr-engrave > .wrap:last-of-type { padding-top: clamp(120px, 12vw, 200px) !important; }
/* rideaux qui s'ouvrent : au départ ils se rapprochent du centre, puis glissent vers les bords */


 

/* guillemets collés au bloc de texte */
html body #history.cr-engrave .creed-sheet { display: grid; justify-items: center; }
html body #history.cr-engrave .creed-sheet .creed-list { width: fit-content !important; max-width: 100%; padding-inline: clamp(58px, 5vw, 84px) !important; }


html body main > section#history.cr-engrave > .wrap:last-of-type { padding-top: clamp(150px, 15vw, 260px) !important; }
/* lambrequin retiré : retour à l'espacement d'avant */

html body main > section#history.cr-engrave > .wrap:last-of-type { padding-top: clamp(56px, 5vw, 76px) !important; }
/* rideaux latéraux retirés (ils faisaient « posés ») : le Credo reste sur le satin en fond */


/* Credo : tête refaite — titre, ligne dorée aérée, puis « نحن نعتقد » en Amiri entre deux filets dorés (ouverture solennelle) */
html body #history.cr-engrave .creed-head { gap: 0 !important; }
html body #history.cr-engrave .creed-head h2 { margin: 0 0 6px !important; }
html body #history.cr-engrave .creed-head .derja { margin: 0 0 clamp(22px, 2.6vw, 34px) !important; }
html body #history.cr-engrave .creed-head > p:not(.derja) { display: flex !important; align-items: center; justify-content: center; gap: clamp(14px, 1.6vw, 22px);
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important; font-weight: 700 !important; font-size: clamp(1.35rem, 1.8vw, 1.85rem) !important; letter-spacing: 0 !important;
  color: #f6dfa6 !important; padding: 0 !important; margin: 0 !important; }
html body #history.cr-engrave .creed-head > p:not(.derja)::before, html body #history.cr-engrave .creed-head > p:not(.derja)::after {
  content: "" !important; display: block !important; position: static !important; width: clamp(48px, 6vw, 90px); height: 1px; flex: 0 0 auto;
  background: linear-gradient(90deg, rgba(242, 169, 59, 0), #f2a93b) !important; }
html body #history.cr-engrave .creed-head > p:not(.derja)::after { background: linear-gradient(90deg, #f2a93b, rgba(242, 169, 59, 0)) !important; }
/* les anneaux en filigrane derrière le texte, plus derrière le titre */

/* Credo épuré : « نحن نعتقد » (redite du titre) et le filigrane d'anneaux retirés */
html body #history.cr-engrave .creed-head > p:not(.derja) { display: none !important; }
html body #history.cr-engrave .creed-head .derja { margin-bottom: clamp(8px, 1vw, 14px) !important; }

/* « نحن نعتقد » gardé : Amiri, or pâle, aéré, sans filets */
html body #history.cr-engrave .creed-head > p:not(.derja) { display: block !important; margin: clamp(10px, 1.4vw, 18px) 0 0 !important; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important;
  font-weight: 700 !important; font-size: clamp(1.25rem, 1.6vw, 1.65rem) !important; color: #f6dfa6 !important; letter-spacing: 0 !important; padding: 0 !important; }
html body #history.cr-engrave .creed-head > p:not(.derja)::before, html body #history.cr-engrave .creed-head > p:not(.derja)::after { display: none !important; content: none !important; }
html body #history.cr-engrave .creed-head .derja { margin-bottom: 0 !important; }
/* titre « ما نؤمن به » retiré : la section s'ouvre sur la ligne dorée puis « نحن نعتقد » */
html body #history.cr-engrave .creed-head h2 { display: none !important; }
html body #history.cr-engrave .creed-head .derja { font-size: clamp(1.6rem, 2.3vw, 2.4rem) !important; }
/* le Credo devient le héros de la section (le titre a été retiré) : texte plus grand, guillemets proportionnés, marges équilibrées */
html body #history.cr-engrave .creed-list li { font-size: clamp(1.3rem, 1.85vw, 2.15rem) !important; padding: clamp(7px, .8vw, 12px) 0 !important; }
html body main > section#history.cr-engrave .creed-sheet .creed-list::before, html body main > section#history.cr-engrave .creed-sheet .creed-list::after { font-size: clamp(4.6rem, 7vw, 7.4rem) !important; }
html body main > section#history.cr-engrave > .wrap:last-of-type { padding-block: clamp(70px, 6.5vw, 100px) clamp(70px, 6.5vw, 100px) !important; }
html body #history.cr-engrave .creed-head > p:not(.derja) { margin-top: clamp(8px, 1vw, 14px) !important; }
/* « من 1994 وإحنا هنا » retiré du Credo : la section s'ouvre directement sur « نحن نعتقد » */
html body #history.cr-engrave .creed-head .derja { display: none !important; }
html body #history.cr-engrave .creed-head > p:not(.derja) { margin-top: 0 !important; font-size: clamp(1.4rem, 1.9vw, 2rem) !important; }
/* « نحن نعتقد » : grande ligne d'ouverture dorée manuscrite (langage des autres sections) */
html body #history.cr-engrave .creed-head > p:not(.derja) { font-family: "Aref Ruqaa", "Reem Kufi", serif !important; font-weight: 700 !important;
  font-size: clamp(2.2rem, 3.4vw, 3.6rem) !important; line-height: 1.15 !important; margin: 0 0 clamp(4px, .6vw, 10px) !important;
  background: linear-gradient(180deg, #ffe3a0 0%, #f2a93b 55%, #d98a14 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
html:not([lang="ar"]) body #history.cr-engrave .creed-head > p:not(.derja) { font-family: "Caveat", cursive !important; }

/* Credo : une lumière dorée traverse les lignes une fois, dans le sens de lecture, après leur apparition */
html body #history.cr-engrave .creed-list li { color: transparent !important; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #fbf3df 0%, #fbf3df 40%, #fff3cf 46%, #ffd27a 50%, #fff3cf 54%, #fbf3df 60%, #fbf3df 100%);
  background-size: 300% 100%; background-position: 0% 0; background-repeat: no-repeat; }
html body #history.cr-engrave.cr-in .creed-list li { animation: crGlint 2.6s cubic-bezier(.45, 0, .25, 1) both; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(1) { animation-delay: 1.9s; } html body #history.cr-engrave.cr-in .creed-list li:nth-child(2) { animation-delay: 2.05s; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(3) { animation-delay: 2.2s; } html body #history.cr-engrave.cr-in .creed-list li:nth-child(4) { animation-delay: 2.35s; }
html body #history.cr-engrave.cr-in .creed-list li:nth-child(5) { animation-delay: 2.5s; } html body #history.cr-engrave.cr-in .creed-list li:nth-child(6) { animation-delay: 2.65s; }
@keyframes crGlint { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes crGlintLtr { from { background-position: 100% 0; } to { background-position: 0% 0; } }
html:not([dir="rtl"]) body #history.cr-engrave .creed-list li { background-position: 100% 0; }
html:not([dir="rtl"]) body #history.cr-engrave.cr-in .creed-list li { animation-name: crGlintLtr; }
@media (prefers-reduced-motion: reduce) { html body #history.cr-engrave.cr-in .creed-list li { animation: none !important; } }
html body #history.cr-engrave .creed-list li { background-image: linear-gradient(100deg, #fbf3df 0%, #fbf3df 46.5%, #fff1c8 48.5%, #ffd27a 50%, #fff1c8 51.5%, #fbf3df 53.5%, #fbf3df 100%) !important; }
html body #history.cr-engrave .creed-list li.on, html body #history.cr-engrave .creed-list li.past { color: transparent !important; -webkit-text-fill-color: transparent; }

/* Credo : texte plus lumineux, reflet bien visible, qui repasse (classe .cr-shine posée par le script) */
html body #history.cr-engrave .creed-list li { animation: none !important;
  background-image: linear-gradient(100deg, #fff8e6 0%, #fff8e6 44%, #fff4d2 46.5%, #ffffff 48.6%, #ffd27a 50%, #ffffff 51.4%, #fff4d2 53.5%, #fff8e6 56%, #fff8e6 100%) !important;
  filter: drop-shadow(0 0 14px rgba(255, 236, 190, .14)); }
html body #history.cr-engrave .creed-list li.cr-shine { animation: crGlint 3.2s cubic-bezier(.45, 0, .25, 1) var(--sd, 0s) both !important; }
html:not([dir="rtl"]) body #history.cr-engrave .creed-list li.cr-shine { animation-name: crGlintLtr !important; }
html body #history.cr-engrave .creed-list li { cursor: default; }

/* Credo : bande de lumière dorée à cœur blanc (contraste visible sur l'ivoire) */
html body #history.cr-engrave .creed-list li {
  background-image: linear-gradient(100deg, #f7eedb 0%, #f7eedb 40%, #f2cf7e 44.5%, #e9b452 47%, #fff3cf 49.2%, #ffffff 50%, #fff3cf 50.8%, #e9b452 53%, #f2cf7e 55.5%, #f7eedb 60%, #f7eedb 100%) !important; }

/* Credo : guillemets accrochés au texte, dernière ligne en apothéose dorée, halo chaud derrière */
html body main > section#history.cr-engrave .creed-sheet .creed-list { isolation: isolate; position: relative; }
html body main > section#history.cr-engrave .creed-sheet .creed-list::after { content: none !important; }
html body main > section#history.cr-engrave .creed-sheet .creed-list::before { content: "" !important; inset: -16% -20% !important; top: -16% !important; bottom: -16% !important; left: -20% !important; right: -20% !important;
  font-size: inherit !important; text-shadow: none !important; z-index: -1; scale: 1 !important;
  background: radial-gradient(closest-side, rgba(242, 169, 59, .12), rgba(242, 169, 59, .045) 55%, transparent) !important; }
html body main > section#history.cr-engrave .creed-sheet .creed-list li { width: fit-content; max-width: 100%; margin-inline: auto !important; position: relative; }
html body main > section#history.cr-engrave .creed-sheet .creed-list li:first-child::before,
html body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child::after {
  display: block !important; position: absolute; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: 2.5em; line-height: 1;
  color: #f2a93b !important; -webkit-text-fill-color: #f2a93b; pointer-events: none; text-shadow: 0 4px 18px rgba(0, 0, 0, .35); background: none !important; width: auto; height: auto; }
html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list li:first-child::before { content: "\201D" !important; top: -.1em; right: -.62em; left: auto; }
html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child::after { content: "\201C" !important; bottom: -.62em; left: -.62em; right: auto; top: auto; }
html:not([dir="rtl"]) body main > section#history.cr-engrave .creed-sheet .creed-list li:first-child::before { content: "\201C" !important; top: -.1em; left: -.62em; right: auto; }
html:not([dir="rtl"]) body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child::after { content: "\201D" !important; bottom: -.62em; right: -.62em; left: auto; top: auto; }
/* la dernière ligne : la conclusion du Credo */
html body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child { font-size: 1.16em !important; margin-top: .3em !important;
  background-image: linear-gradient(100deg, #f2c46b 0%, #f2c46b 40%, #ffe3a1 45%, #fff6dc 49%, #ffffff 50%, #fff6dc 51%, #ffe3a1 55%, #f2c46b 60%, #f2c46b 100%) !important; }
@media (max-width: 860px) {
  html body main > section#history.cr-engrave .creed-sheet .creed-list li:first-child::before, html body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child::after { font-size: 1.9em; }
  html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list li:first-child::before { right: -.4em; }
  html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child::after { left: -.4em; }
}

/* Credo v2 : guillemets indépendants, placés par script contre le premier et le dernier mot ; halo sur la liste */
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list li:first-child::before,
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child::after { content: none !important; }
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list { overflow: visible !important;
  background: radial-gradient(ellipse 58% 56% at 50% 52%, rgba(242, 169, 59, .13), rgba(242, 169, 59, .045) 58%, transparent 82%) !important; }
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::before,
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::after {
  display: block !important; inset: auto !important; right: auto !important; bottom: auto !important; background: none !important; z-index: 1;
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important; font-size: clamp(3.2rem, 4.4vw, 5rem) !important; line-height: 1 !important; color: #f2a93b !important; }
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::before { top: var(--qy1, -20px) !important; left: var(--qx1, 0px) !important; }
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::after { top: var(--qy2, 100%) !important; left: var(--qx2, 0px) !important; }
html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list::before { content: "\201D" !important; }
html[dir="rtl"] body main > section#history.cr-engrave .creed-sheet .creed-list::after { content: "\201C" !important; }
html:not([dir="rtl"])[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::before { content: "\201C" !important; }
html:not([dir="rtl"])[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::after { content: "\201D" !important; }
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list li:last-child { font-size: clamp(1.5rem, 2.15vw, 2.5rem) !important; }
@media (max-width: 860px) { html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::before, html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list::after { font-size: 2.8rem !important; } }

/* Credo : texte plus franc (Amiri fin paraissait gris sur le marine) */
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list li:not(:last-child) {
  background-image: linear-gradient(100deg, #fffaf0 0%, #fffaf0 40%, #f2cf7e 44.5%, #e9b452 47%, #fff3cf 49.2%, #ffffff 50%, #fff3cf 50.8%, #e9b452 53%, #f2cf7e 55.5%, #fffaf0 60%, #fffaf0 100%) !important; }
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list li {
  filter: drop-shadow(0 0 .6px rgba(255, 250, 235, .75)) drop-shadow(0 0 16px rgba(255, 236, 190, .16)) !important; }
@media (max-width: 860px) { html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list { padding-inline: 26px !important; } }

/* Credo : halo et lueur retirés (rectangles sombres sous chaque ligne) — texte net, sans filtre */
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list li,
html body #history.cr-engrave .creed-list li { filter: none !important; text-shadow: none !important; box-shadow: none !important; }
html[dir] body main > section#history.cr-engrave .creed-sheet .creed-list { background: none !important; }

/* =====================================================================
   Allègement « CTA → fin » : plus de défilement détourné, CTA fusionné dans « انضم », contact compact
   ===================================================================== */
/* « أبعد من قليبية » : plus épinglé ; une seule hauteur d'écran, les anneaux se cliquent */









/* « سنتنا » : carrousel avec flèches dans l'en-tête */







/* « انضم إلينا » : les visages de l'équipe et la place vide (ex-bandeau CTA) */





 
 




/* Contact : le second formulaire est retiré (Messenger + e-mail suffisent), tout tient sur une carte */
html body main > section#contact #contactForm { display: none !important; }
html body main > section#contact .contact-grid { display: block !important; }
@media (min-width: 900px) {
  html body main > section#contact .contact-list { display: grid !important; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
}
html body main > section#contact .contact-grid { padding-top: clamp(28px, 3vw, 44px) !important; }
/* Contact compact : titre à gauche/droite, coordonnées en face, sans grand vide */
html body main > section#contact > .wrap:first-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
html body main > section#contact .contact-grid { padding-top: clamp(36px, 3.4vw, 56px) !important; margin-top: 0 !important; }
@media (min-width: 900px) {
  html body main > section#contact .contact-grid > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); column-gap: clamp(32px, 4vw, 72px); align-items: center; }
  html body main > section#contact .contact-grid > div > :not(dl) { grid-column: 1; margin-bottom: 4px; }
  html body main > section#contact .contact-grid > div > dl { grid-column: 2; grid-row: 1 / span 3; margin: 0 !important; }
}
html body main > section#contact .partner { margin-bottom: 0 !important; }
html body main > section#contact .contact-grid { padding-top: clamp(40px, 3.6vw, 60px) !important; }
@media (min-width: 900px) {
  html body main > section#contact .contact-list { grid-template-columns: repeat(3, auto) !important; justify-content: space-between; }
  html body main > section#contact .contact-list dd { white-space: nowrap; }
}

/* =====================================================================
   Téléphone : sections plus courtes
   ===================================================================== */
@media (max-width: 860px) {
  /* تكويناتنا : une seule colonne (la règle forcée à deux colonnes écrasait la version mobile) */
  html body main > section.trainings .trs { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; margin-top: 22px !important; }
  html body main > section.trainings .trs-stage { position: relative !important; top: 0 !important; }
  html body main > section.trainings .trs-groups { gap: 10px !important; }

  /* المكتب : la présidente en grand, les six autres sur deux colonnes, photo au-dessus du nom */
  html body main > section#team .team-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  html body main > section#team .team-grid > .lead-member { grid-column: 1 / -1; }
  html body main > section#team .team-grid > .member { flex-direction: column !important; text-align: center; align-items: center !important; gap: 8px !important; padding: 14px 10px !important; height: auto !important; }
  html body main > section#team .team-grid > .member > * { margin: 0 !important; }

  /* أسئلة شائعة : en-tête resserré */
  html body main > section#faq .faq-sub { display: none !important; }
  html body main > section#faq .faq-ask { padding: 12px 14px !important; gap: 8px !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  html body main > section#faq .faq-grid { gap: 22px !important; }

  /* انضم : champs courts côte à côte, étapes resserrées */
  html body main > section#join .join-form .frow { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  html body main > section#join .join-form .frow-3 { grid-template-columns: 1fr 1fr !important; }
  html body main > section#join .join-form .frow-3 > :last-child { grid-column: 1 / -1; }
  html body main > section#join .join-form .frow:nth-child(2) { grid-template-columns: 1fr !important; }
  html body main > section#join .join-form textarea { min-height: 96px; height: 96px; }
  html body main > section#join .steps { gap: 8px !important; }
  html body main > section#join .steps li { padding-block: 4px !important; }
  html body main > section#join .join-grid { gap: 26px !important; }
}

/* « سنتنا، شهرًا بشهر » masquée : mêmes événements que « أنشطتنا » (redondance) — conservée dans le code */


/* Contact : coordonnées déjà dans le pied de page → seule la carte partenaire reste */
html body main > section#contact .contact-grid { display: none !important; }
html body main > section#contact { padding-bottom: calc(clamp(48px, 4.5vw, 72px) + var(--band-r, 0px)) !important; }
/* pied de page : adresse discrète sous la barre */
footer.footer.fy .fy-addr { grid-column: 1 / -1; justify-self: center; margin: 2px 0 0; font-size: .82rem; color: rgba(255, 255, 255, .45); unicode-bidi: isolate; direction: ltr; }
/* Actualités : le sous-titre répétait le titre ; bords du carrousel fondus au lieu d'être coupés net */
html body main > section#news .news-sub { display: none !important; }
html body main > section#news .news-grid { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
@media (min-width: 721px) {
  footer.footer.fy .fy-bar > .fy-copy { grid-row: 1; grid-column: 1; }
  footer.footer.fy .fy-bar > .fy-soc { grid-row: 1; grid-column: 2; }
  footer.footer.fy .fy-bar > .fy-links { grid-row: 1; grid-column: 3; }
  footer.footer.fy .fy-bar > .fy-addr { grid-row: 2; }
}

/* =====================================================================
   « أوشي » : le mot devient le héros du bloc ; la phrase lisible ; moins de vide
   ===================================================================== */












/* =====================================================================
   Bureau : avatars en arche (écho du cadre de la présidente) ; initiales en monogramme doré
   ===================================================================== */
html body main > section#team .member .avatar { width: 58px !important; height: 70px !important; flex: 0 0 58px !important; border-radius: 999px 999px 12px 12px !important;
  color: #f2c46b !important; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important; font-weight: 700 !important;
  font-size: 1.15rem !important; letter-spacing: .06em !important; box-shadow: inset 0 0 0 1.5px rgba(242, 196, 107, .55), 0 10px 22px -14px rgba(9, 24, 47, .6) !important; overflow: hidden; }
html body main > section#team .member .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
html body main > section#team .member:has(.avatar img) .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(242, 169, 59, .7), 0 10px 22px -14px rgba(9, 24, 47, .6) !important; }
html body main > section#team .member:hover .avatar { transform: none !important; }
/* correctif : les photos des membres sont en arrière-plan inline → ne pas les écraser */
html body main > section#team .member .avatar:not([style*="background-image"]) { background: linear-gradient(160deg, #132f55, #09182f) !important; }
html body main > section#team .member .avatar[style*="background-image"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(242, 169, 59, .7), 0 10px 22px -14px rgba(9, 24, 47, .6) !important; }
/* « أوشي » : le mot passe devant la photo */



/* =====================================================================
   « كن شريكًا لنا » : le mur des partenaires (des places, une en or : la vôtre)
   ===================================================================== */
html body main > section#contact .partner.pt { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: clamp(32px, 3.4vw, 56px) clamp(28px, 3.6vw, 60px) !important; border-radius: clamp(22px, 2vw, 32px) !important; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #fff8ea 0%, #fdeccc 55%, #f9e0b0 100%) !important; border: 1px solid rgba(227, 154, 34, .28) !important;
  box-shadow: 0 30px 60px -38px rgba(120, 72, 10, .45), inset 0 1px 0 rgba(255, 255, 255, .8) !important; }
html body main > section#contact .pt-txt h2 { margin: 0 !important; }
html body main > section#contact .pt-txt > p:not(.derja) { max-width: 46ch; margin: 14px 0 26px !important; font-size: clamp(1rem, 1.05vw, 1.12rem) !important; line-height: 1.85 !important; color: #3a3f4b !important; }
html body main > section#contact .pt-btn { display: inline-flex; align-items: center; gap: 10px; background: #09182f !important; color: #fff !important; border-radius: 999px !important; padding: 14px 28px !important; font-weight: 700;
  box-shadow: 0 14px 26px -16px rgba(9, 24, 47, .8) !important; transition: transform .25s ease, box-shadow .25s ease !important; }
html body main > section#contact .pt-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -16px rgba(9, 24, 47, .9) !important; }






/* la place en or */



@media (prefers-reduced-motion: no-preference) {
  
    /* reflet doré qui traverse le mur quand il arrive à l'écran */
  
  
  
  
  
  }
html body main > section#contact { padding-top: clamp(56px, 5vw, 84px) !important; }
@media (max-width: 860px) {
  html body main > section#contact .partner.pt { grid-template-columns: 1fr; gap: 26px; }
  
  
}
html body main > section#contact { padding-top: clamp(36px, 3.2vw, 56px) !important; padding-bottom: clamp(36px, 3.2vw, 56px) !important; }
html body main > section#contact { padding-bottom: calc(clamp(40px, 3.6vw, 60px) + clamp(70px, 8vw, 150px)) !important; }

/* =====================================================================
   « كن شريكًا لنا » v2 : une carte d'invitation — satin bleu nuit, double filet d'or, texte centré
   ===================================================================== */

html body main > section#contact .partner.pt { display: block !important; text-align: center; max-width: 980px; margin-inline: auto !important;
  padding: clamp(44px, 4.6vw, 76px) clamp(28px, 5vw, 96px) !important; border-radius: clamp(18px, 1.6vw, 26px) !important; border: 0 !important; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(9, 24, 47, .55), rgba(9, 24, 47, .82)), url("../img/satin-folds.jpg") center / cover no-repeat, #0e2442 !important;
  box-shadow: 0 40px 70px -40px rgba(9, 24, 47, .75) !important; }
/* double filet d'or, en retrait comme sur un carton d'invitation */
html body main > section#contact .partner.pt::before { content: ""; position: absolute; inset: 12px; border-radius: clamp(10px, 1vw, 16px); pointer-events: none; z-index: 0;
  border: 1px solid rgba(242, 196, 107, .6); box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(242, 196, 107, .28); }
/* reflet qui traverse la carte une fois à l'arrivée */
html body main > section#contact .partner.pt::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; translate: -110% 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 222, 160, .12) 47%, rgba(255, 240, 210, .22) 50%, rgba(255, 222, 160, .12) 53%, transparent 65%); }
html body main > section#contact .partner.pt.pt-in::after { animation: ptSheen 2.6s cubic-bezier(.45, 0, .25, 1) .2s both; }
@keyframes ptSheen { from { translate: -110% 0; } to { translate: 110% 0; } }
@media (prefers-reduced-motion: reduce) { html body main > section#contact .partner.pt::after { display: none; } }
html body main > section#contact .pt-txt { position: relative; z-index: 1; }
html body main > section#contact .pt-txt h2 { color: #fff8e6 !important; font-size: clamp(2.2rem, 3.2vw, 3.4rem) !important; margin: 0 !important; }
html body main > section#contact .pt-txt .derja { color: #f2c46b !important; margin: 4px auto 0 !important; font-size: clamp(1.4rem, 1.9vw, 2rem) !important; }
html body main > section#contact .pt-txt > p:not(.derja) { color: rgba(255, 248, 230, .82) !important; max-width: 52ch; margin: 18px auto 30px !important; }
html body main > section#contact .pt-btn { background: linear-gradient(180deg, #f6c062, #e9a73a) !important; color: #09182f !important;
  box-shadow: 0 14px 28px -14px rgba(242, 169, 59, .7), inset 0 1px 0 rgba(255, 255, 255, .45) !important; }
html body main > section#contact .pt-btn:hover { box-shadow: 0 18px 32px -14px rgba(242, 169, 59, .85), inset 0 1px 0 rgba(255, 255, 255, .45) !important; }
@media (max-width: 860px) { html body main > section#contact .partner.pt::before { inset: 8px; } }
html body main > section#contact .partner.pt a.btn.pt-btn { background: linear-gradient(180deg, #f6c062, #e9a73a) !important; color: #09182f !important; border: 0 !important; border-radius: 999px !important; padding: 14px 30px !important;
  box-shadow: 0 14px 28px -14px rgba(242, 169, 59, .7), inset 0 1px 0 rgba(255, 255, 255, .45) !important; }
html body main > section#contact .partner.pt a.btn.pt-btn:hover { transform: translateY(-2px); }

/* =====================================================================
   « كن شريكًا لنا » v3 : plus de carte (effet publicité) — une phrase qui clôt la page
   ===================================================================== */
html body main > section#contact .partner.pt { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: none; text-align: center; overflow: visible; }
html body main > section#contact .partner.pt::before, html body main > section#contact .partner.pt::after { content: none !important; display: none !important; }
html body main > section#contact .pt-txt h2 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html body main > section#contact .pt-txt > p[data-i18n="partner.sub"], html body main > section#contact .partner.pt a.btn.pt-btn { display: none !important; }
html body main > section#contact .pt-txt .derja { font-family: "Aref Ruqaa", serif !important; font-size: clamp(2.6rem, 4.6vw, 5rem) !important; line-height: 1.15 !important; color: #09182f !important; margin: 0 auto !important; }
html body main > section#contact .pt-line { margin: clamp(10px, 1vw, 16px) 0 0 !important; font-size: clamp(1.05rem, 1.2vw, 1.25rem) !important; color: #4a5160 !important; }
html body main > section#contact .pt-link { color: #09182f !important; font-weight: 700; text-decoration: none; margin-inline-start: 6px; background: linear-gradient(#f2a93b, #f2a93b) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size .3s ease, color .3s ease; }
html body main > section#contact .pt-link:hover { color: #b8690a !important; background-size: 100% 100%; background-image: linear-gradient(rgba(242, 169, 59, .18), rgba(242, 169, 59, .18)); }
html body main > section#contact { padding-top: clamp(64px, 6vw, 104px) !important; }
html body main > section#contact .pt-txt > p.pt-line { color: #4a5160 !important; margin: clamp(18px, 1.8vw, 26px) auto 0 !important; max-width: none; font-size: clamp(1.05rem, 1.2vw, 1.25rem) !important; }
html body main > section#contact .pt-txt > p.derja { line-height: 1.35 !important; }

/* « نكبرو مع بعضنا » : la phrase s'écrit comme à l'encre (révélée dans le sens de lecture), puis la question apparaît */
@media (prefers-reduced-motion: no-preference) {
  html body main > section#contact .pt-txt > p.derja { clip-path: inset(0 0 0 100%); transition: clip-path 1.8s cubic-bezier(.6, .05, .25, 1); }
  html:not([dir="rtl"]) body main > section#contact .pt-txt > p.derja { clip-path: inset(0 100% 0 0); }
  html body main > section#contact .pt-txt > p.pt-line { opacity: 0; translate: 0 8px; transition: opacity .7s ease 1.5s, translate .7s ease 1.5s; }
  html body main > section#contact .partner.pt.pt-in .pt-txt > p.derja { clip-path: inset(0 0 0 0) !important; }
  html body main > section#contact .partner.pt.pt-in .pt-txt > p.pt-line { opacity: 1; translate: 0 0; }
}
html body main > section#contact .pt-txt > p.derja { padding-inline: .15em; }
html body main > section#contact { padding-top: clamp(48px, 4.6vw, 80px) !important; }

/* « نكبرو مع … » : le mot qui change, en or, avec un curseur d'écriture */
html body main > section#contact .pt-txt > p.derja { clip-path: none !important; }

html body main > section#contact .pt-w { color: #e39a22 !important; text-decoration: none; background: linear-gradient(#f2a93b, #f2a93b) 0 92% / 100% 3px no-repeat; padding-bottom: .05em; }
html body main > section#contact .pt-w:hover { color: #b8690a !important; }
html body main > section#contact .pt-caret { display: inline-block; width: 3px; height: .9em; margin-inline-start: 4px; vertical-align: -.08em; background: #e39a22; border-radius: 2px; animation: ptCaret 1s steps(1) infinite; }
@keyframes ptCaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html body main > section#contact .pt-caret { display: none; } }

/* bulle « يلّا نحكيو! » (même famille que « أهلا وسهلا! » du logo) */
html body main > section#contact .pt-txt > p.pt-line { font-size: clamp(1.1rem, 1.35vw, 1.4rem) !important; color: #3a4252 !important; }
html body main > section#contact a.pt-bubble { display: table; margin: clamp(16px, 1.6vw, 24px) auto 0 !important; padding: 8px 22px 10px !important;
  border-radius: 18px 18px 18px 5px; background: #f2a93b !important; color: #0d3b66 !important; text-decoration: none;
  font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(1.3rem, 1.6vw, 1.7rem); line-height: 1.2;
  box-shadow: 0 12px 24px -12px rgba(5, 20, 40, .5); rotate: -3deg; transition: rotate .3s cubic-bezier(.3, 1.6, .5, 1), scale .3s cubic-bezier(.3, 1.6, .5, 1), background .2s ease !important; }
html[dir="rtl"] body main > section#contact a.pt-bubble { border-radius: 18px 18px 5px 18px; }
html:not([lang="ar"]) body main > section#contact a.pt-bubble { font-family: "Caveat", cursive; font-size: clamp(1.5rem, 1.9vw, 2rem); }
html body main > section#contact a.pt-bubble:hover, html body main > section#contact a.pt-bubble:focus-visible { rotate: 2deg; scale: 1.08; background: #f6b955 !important; color: #0d3b66 !important; }
html body main > section#contact .pt-line > span[data-i18n="partner.line"] { display: none !important; }

/* fin de page : la bulle répond au mot qui s'écrit — plus grande, décalée sous lui, elle « surgit » après la phrase */
html body main > section#contact a.pt-bubble { position: relative; font-size: clamp(1.5rem, 2vw, 2.15rem) !important; padding: 10px 26px 13px !important; margin-top: clamp(10px, 1vw, 16px) !important; }
html[dir="rtl"] body main > section#contact a.pt-bubble { left: clamp(-150px, -9vw, -60px); }
html:not([dir="rtl"]) body main > section#contact a.pt-bubble { left: clamp(60px, 9vw, 150px); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#contact a.pt-bubble { opacity: 0; scale: .5; }
  html body main > section#contact .partner.pt.pt-in a.pt-bubble { animation: ptPop .6s cubic-bezier(.3, 1.7, .5, 1) 1.1s both; }
  @keyframes ptPop { from { opacity: 0; scale: .5; rotate: -12deg; } to { opacity: 1; scale: 1; rotate: -3deg; } }
  html body main > section#contact .partner.pt a.pt-bubble.pt-done { animation: none !important; opacity: 1; scale: 1; }
  html body main > section#contact .partner.pt a.pt-bubble.pt-done:hover { scale: 1.08; }
}
@media (max-width: 860px) { html body main > section#contact a.pt-bubble { left: 0 !important; } }
/* correctif : l'ancien masque d'encre coupait les jambages (ع، و) ; et moins de blanc au-dessus */
html body main > section#contact .partner.pt .pt-txt > p.derja, html body main > section#contact .partner.pt.pt-in .pt-txt > p.derja { clip-path: none !important; overflow: visible !important; padding-bottom: .12em; }
html body main > section#contact { padding-top: clamp(28px, 2.6vw, 44px) !important; }
html body main > section#contact { padding-top: clamp(56px, 5vw, 92px) !important; padding-bottom: calc(clamp(30px, 2.6vw, 44px) + clamp(60px, 6.5vw, 120px)) !important; }
html body main > section#contact { padding-top: clamp(40px, 3.4vw, 64px) !important; }

/* =====================================================================
   Revue experte — 1. une seule palette de fonds : bleu nuit / ivoire / blanc (+ l'orange de « أوشي »)
   ===================================================================== */
:root { --ivory: #fbf6ec; --gold-ink: #b8690a; }
html body main > section#faq, html body main > section#team { background: var(--ivory) !important; background-image: none !important; }
html body main > section#trainings, html body main > section#news, html body main > section#contact { background: #fff !important; }

/* 5. contraste : les mots dorés sur fond clair passent à un or encré ; une seule couleur de derja */
html body main > section:is(#about, #why, #trainings, #network, #news, #team, #faq, #contact) .derja { color: var(--gold-ink) !important; }
html body main > section#contact .pt-w { color: var(--gold-ink) !important; background-image: linear-gradient(#e39a22, #e39a22) !important; }
html body main > section#contact .pt-caret { background: var(--gold-ink) !important; }
html body main > section:is(#network, #team, #faq, #trainings, #news) :is(.section-head p:not(.derja), .team-sub, .faq-sub, .news-sub) { color: #4a5160 !important; }

/* 6. téléphone : la flèche « haut de page » fait doublon avec la barre d'action → retirée */
@media (max-width: 860px) { #toTop.to-top, a.to-top { display: none !important; } }

/* 2. moins de gabarit : la derja ne revient que là où elle porte le sens (qui sommes-nous, bureau, انضم, fin) ; sous-titres redondants retirés */
html body main > section:is(#why, #projects, #trainings, #network, #news, #faq) .derja { display: none !important; }
html body main > section#team .team-sub, html body main > section#faq .faq-sub { display: none !important; }

/* Fin de page, revue UX : mot sans soulignement ni lien (le curseur suffit, puis s'efface) ; bulle centrée ; phrase posée près du drapé */
html body main > section#contact .pt-w { background: none !important; padding-bottom: 0; }
html body main > section#contact .pt-caret { transition: opacity .5s ease; }
html body main > section#contact p.derja.pt-end .pt-caret { opacity: 0; animation: none; }
html[dir] body main > section#contact a.pt-bubble { left: 0 !important; margin-top: clamp(14px, 1.4vw, 22px) !important; }
html body main > section#contact { padding-top: clamp(84px, 7vw, 132px) !important; padding-bottom: calc(clamp(8px, 1vw, 16px) + clamp(60px, 6.5vw, 120px)) !important; }
@media (max-width: 860px) { html body main > section#contact { padding-top: 64px !important; } }
html body main > section#contact { padding-top: clamp(56px, 4.6vw, 88px) !important; }

/* =====================================================================
   Fin de page = une collab : « JCI Kélibia × [votre marque] » (le code visuel des collaborations de marques)
   ===================================================================== */
html body main > section#contact .pt-collab { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 40px); margin: 0 auto clamp(18px, 1.8vw, 28px); }
html body main > section#contact .pt-us { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
html body main > section#contact .pt-us img { height: clamp(40px, 4.2vw, 74px); width: auto; display: block; }
html body main > section#contact .pt-us b { font-weight: 800; font-size: clamp(.9rem, 1.15vw, 1.25rem); color: #0097d7; letter-spacing: .02em; line-height: 1; }
html body main > section#contact .pt-x { font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 400; font-size: clamp(2.4rem, 4.2vw, 4.6rem); line-height: 1; color: var(--gold-ink, #b8690a); translate: 0 -.06em; }
html body main > section#contact .pt-them { display: inline-flex; align-items: center; justify-content: center; min-width: clamp(150px, 15vw, 260px); height: clamp(72px, 7vw, 120px); padding: 0 clamp(16px, 1.6vw, 28px);
  border: 2px dashed rgba(184, 105, 10, .55); border-radius: clamp(14px, 1.3vw, 22px); background: linear-gradient(180deg, #fffaf0, #fff3dc); }
html body main > section#contact .pt-them .pt-w { font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(1.7rem, 2.7vw, 3rem); line-height: 1; color: var(--gold-ink, #b8690a) !important; background: none !important; white-space: nowrap; }
html body main > section#contact .pt-them .pt-caret { display: inline-block; width: 3px; height: 1.1em; font-size: clamp(1.7rem, 2.7vw, 3rem); margin-inline-start: 6px; background: var(--gold-ink, #b8690a); border-radius: 2px; animation: ptCaret 1s steps(1) infinite; transition: opacity .5s ease; }
html body main > section#contact .pt-collab.pt-end .pt-caret { opacity: 0; animation: none; }
html body main > section#contact .pt-collab.pt-end .pt-them { border-style: solid; border-color: rgba(184, 105, 10, .4); }
/* la phrase devient la signature, plus petite, sous le duo */
html body main > section#contact .pt-txt > p.derja { font-size: clamp(1.5rem, 2.2vw, 2.4rem) !important; color: #09182f !important; }
@media (prefers-reduced-motion: reduce) { html body main > section#contact .pt-them .pt-caret { display: none; } }

/* collab, revue UI : deux marques à poids égal, sans cadre ; « × » charnière en bleu nuit ; bulle sobre */
html body main > section#contact .pt-collab { gap: clamp(20px, 2.6vw, 48px); align-items: center; }
html body main > section#contact .pt-us img { height: clamp(46px, 4.6vw, 80px); }
html body main > section#contact .pt-them, html body main > section#contact .pt-collab.pt-end .pt-them { border: 0 !important; background: none !important; min-width: 0; height: auto; padding: 0; }
html body main > section#contact .pt-them .pt-w { font-size: clamp(2.7rem, 4.8vw, 5.4rem) !important; color: #09182f !important; line-height: 1.05; translate: 0 -.04em; }
html body main > section#contact .pt-them .pt-caret { height: .85em; font-size: clamp(2.7rem, 4.8vw, 5.4rem); background: var(--gold-ink, #b8690a); }
html body main > section#contact .pt-x { color: #09182f !important; font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 4rem); opacity: .9; }
html body main > section#contact .pt-them { min-width: clamp(170px, 16vw, 300px); justify-content: flex-start; }
html[dir="rtl"] body main > section#contact .pt-them { justify-content: flex-start; }
/* signature et bouton */
html body main > section#contact .pt-txt > p.derja { font-size: clamp(1.25rem, 1.7vw, 1.8rem) !important; color: var(--gold-ink, #b8690a) !important; margin-top: 2px !important; }
html[dir] body main > section#contact a.pt-bubble, html[dir] body main > section#contact a.pt-bubble.pt-done { rotate: 0deg !important; border-radius: 999px !important; padding: 10px 30px 12px !important;
  font-size: clamp(1.25rem, 1.5vw, 1.6rem) !important; animation: none !important; opacity: 1 !important; scale: 1 !important; }
html[dir] body main > section#contact a.pt-bubble:hover { rotate: 0deg !important; scale: 1.04 !important; }
/* collab : le logo JCI Kélibia reprend exactement le bloc officiel de l'en-tête (Kélibia aligné sous le J, 43 % de la hauteur du logo) */
html body main > section#contact .pt-us { --h: clamp(46px, 4.6vw, 80px); direction: ltr; align-items: flex-start !important; gap: calc(var(--h) * .088) !important; }
html body main > section#contact .pt-us img { height: var(--h) !important; }
html body main > section#contact .pt-us b { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif; font-weight: 800; font-size: calc(var(--h) * .433) !important; line-height: 1 !important; letter-spacing: normal !important; color: #0097d7; padding-inline-start: calc(var(--h) * .03); }
html body main > section#contact .pt-us b { padding-inline-start: calc(var(--h) * .275) !important; }   /* « Kélibia » commence sous la hampe du J (x = 79.9 / 279 du logo) */
/* collab symétrique : le « × » est l'axe, exactement au-dessus de la signature et du bouton ; chaque marque se colle au × */
html body main > section#contact .pt-collab { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(1000px, 100%); margin-inline: auto !important; column-gap: clamp(18px, 2.4vw, 44px) !important; }
html body main > section#contact .pt-collab > .pt-us { justify-self: end; }
html body main > section#contact .pt-collab > .pt-them { justify-self: start; min-width: 0 !important; }
html body main > section#contact .pt-us b { font-size: calc(var(--h) * .36) !important; padding-inline-start: calc(var(--h) * .28) !important; margin-top: calc(var(--h) * .02); }
/* espacement (grille 8 px) : duo + signature = un bloc serré ; le bouton s'en détache ; blanc égal dessus / dessous */
html body main > section#contact .pt-collab { margin-bottom: clamp(10px, .9vw, 16px) !important; }
html body main > section#contact .pt-txt > p.derja { margin: 0 auto !important; }
html body main > section#contact .pt-txt > p.pt-line { margin-top: clamp(24px, 2.2vw, 40px) !important; }
html[dir] body main > section#contact a.pt-bubble { margin-top: 0 !important; }
html body main > section#contact { padding-top: clamp(24px, 2vw, 38px) !important; }
html body main > section#contact .pt-txt > p.derja { line-height: 1.15 !important; }
html body main > section#contact .pt-txt > p.pt-line { margin-top: clamp(32px, 2.8vw, 52px) !important; }
html body main > section#contact { padding-bottom: calc(clamp(0px, .2vw, 4px) + clamp(48px, 5vw, 92px)) !important; }

/* =====================================================================
   Fin de page — effets : les deux marques se rejoignent au « × » (une fois, à l'arrivée) ; bouton à ombres en couches
   (pas de lueur sur le texte : uniquement mouvement et ombres portées sur le bouton)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html body main > section#contact .pt-collab > .pt-us, html body main > section#contact .pt-collab > .pt-them { opacity: 0; transition: opacity .7s ease, translate .9s cubic-bezier(.22, 1, .36, 1); }
  html[dir="rtl"] body main > section#contact .pt-collab > .pt-us { translate: 56px 0; }
  html[dir="rtl"] body main > section#contact .pt-collab > .pt-them { translate: -56px 0; }
  html:not([dir="rtl"]) body main > section#contact .pt-collab > .pt-us { translate: -56px 0; }
  html:not([dir="rtl"]) body main > section#contact .pt-collab > .pt-them { translate: 56px 0; }
  html body main > section#contact .pt-collab > .pt-x { opacity: 0; scale: .3; rotate: -90deg; transition: opacity .5s ease .45s, scale .7s cubic-bezier(.3, 1.6, .5, 1) .45s, rotate .7s cubic-bezier(.3, 1.4, .5, 1) .45s; }
  html body main > section#contact .partner.pt.pt-in .pt-collab > .pt-us, html body main > section#contact .partner.pt.pt-in .pt-collab > .pt-them { opacity: 1; translate: 0 0; }
  html body main > section#contact .partner.pt.pt-in .pt-collab > .pt-x { opacity: .9; scale: 1; rotate: 0deg; }
  /* la signature puis le bouton suivent */
  html body main > section#contact .pt-txt > p.derja { opacity: 0; translate: 0 10px; transition: opacity .6s ease .8s, translate .6s ease .8s; }
  html body main > section#contact .partner.pt.pt-in .pt-txt > p.derja { opacity: 1; translate: 0 0; }
  html body main > section#contact .pt-txt > p.pt-line { transition: opacity .6s ease 1.05s, translate .6s ease 1.05s !important; }
  /* survol du duo : le × pivote d'un quart de tour */
  html body main > section#contact .pt-collab:hover > .pt-x { rotate: 90deg; transition: rotate .5s cubic-bezier(.3, 1.4, .5, 1); }
}
/* bouton : ombres en couches teintées or, reflet qui passe au survol, enfoncement au clic */
html[dir] body main > section#contact a.pt-bubble { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #f6bd5c 0%, #eea63c 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(160, 90, 8, .18), 0 2px 4px rgba(9, 24, 47, .10), 0 12px 24px -12px rgba(184, 105, 10, .6) !important;
  transition: translate .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease, scale .25s ease !important; }
html[dir] body main > section#contact a.pt-bubble::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; translate: -120% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transition: translate .7s ease; }
html[dir] body main > section#contact a.pt-bubble:hover, html[dir] body main > section#contact a.pt-bubble:focus-visible { scale: 1 !important; translate: 0 -3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(160, 90, 8, .18), 0 4px 8px rgba(9, 24, 47, .10), 0 20px 34px -14px rgba(184, 105, 10, .7) !important; }
html[dir] body main > section#contact a.pt-bubble:hover::after { translate: 120% 0; }
html[dir] body main > section#contact a.pt-bubble:active { translate: 0 0; box-shadow: inset 0 2px 4px rgba(160, 90, 8, .3), 0 4px 10px -6px rgba(184, 105, 10, .6) !important; }
html[dir] body main > section#contact a.pt-bubble:focus-visible { outline: 3px solid #09182f; outline-offset: 3px; }
html[dir] body main > section#contact a.pt-bubble, html[dir] body main > section#contact a.pt-bubble.pt-done { padding: 15px 32px 9px !important; line-height: 1.2 !important; }   /* Aref Ruqaa est haut dans sa ligne : centrage optique */
html[dir] body main > section#contact a.pt-bubble, html[dir] body main > section#contact a.pt-bubble.pt-done { padding: 12px 32px 11px !important; }
.fy-drape { mix-blend-mode: multiply; }   /* le haut blanc du drapé devient transparent : l'ombre du bouton n'est plus coupée */
html[dir] body main > section#contact a.pt-bubble { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(160, 90, 8, .16), 0 1px 2px rgba(110, 62, 4, .18), 0 4px 10px -2px rgba(110, 62, 4, .14), 0 16px 32px -12px rgba(184, 105, 10, .42) !important; }
html[dir] body main > section#contact a.pt-bubble:hover, html[dir] body main > section#contact a.pt-bubble:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(160, 90, 8, .16), 0 2px 4px rgba(110, 62, 4, .16), 0 8px 16px -4px rgba(110, 62, 4, .16), 0 24px 40px -14px rgba(184, 105, 10, .5) !important; }

/* =====================================================================
   « انضمّ إلينا » — revue UX : formulaire compact (tient dans un écran), bordures lisibles, aides, mot replié, étapes resserrées
   ===================================================================== */
html body main > section#join .join-form { padding: clamp(22px, 2vw, 34px) clamp(22px, 2.2vw, 38px) !important; }
html body main > section#join .join-form .form-body { gap: 14px !important; display: grid !important; }
html body main > section#join .join-form .frow { gap: 14px !important; }
html body main > section#join .join-form .field { gap: 6px !important; margin: 0 !important; }
html body main > section#join .join-form .field > span { font-size: .95rem !important; font-weight: 600; color: #1d2433 !important; }
html body main > section#join .join-form .field input, html body main > section#join .join-form .field textarea {
  height: 50px !important; min-height: 0 !important; padding: 0 14px !important; border: 1.5px solid #aab3c0 !important; border-radius: 12px !important; background: #fff !important; font-size: 1rem !important;
  transition: border-color .2s ease, box-shadow .2s ease !important; }
html body main > section#join .join-form .field textarea { height: auto !important; min-height: 96px !important; padding: 12px 14px !important; resize: vertical; }
html body main > section#join .join-form .field input:hover, html body main > section#join .join-form .field textarea:hover { border-color: #7d8899 !important; }
html body main > section#join .join-form .field input:focus, html body main > section#join .join-form .field textarea:focus { outline: none !important; border-color: #e39a22 !important; box-shadow: 0 0 0 4px rgba(242, 169, 59, .28) !important; }
html body main > section#join .join-form .field.invalid input, html body main > section#join .join-form .field.invalid textarea { border-color: #c62828 !important; box-shadow: 0 0 0 3px rgba(198, 40, 40, .15) !important; }
html body main > section#join .join-form .field input::placeholder { color: #9aa3af; }
html body main > section#join .join-form .fhint { font-size: .8rem; color: #5b6475; line-height: 1.3; }
html body main > section#join .join-form .fopt { font-style: normal; font-weight: 400; font-size: .85em; color: #6b7384; }
html body main > section#join .join-form .field > span > b { font-weight: 600; }
/* le mot facultatif, replié */
html body main > section#join .join-form .f-more > summary { list-style: none; cursor: pointer; display: inline-flex; color: #b8690a; font-weight: 700; font-size: .95rem; padding: 2px 0; }
html body main > section#join .join-form .f-more > summary::-webkit-details-marker { display: none; }
html body main > section#join .join-form .f-more > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
html body main > section#join .join-form .f-more[open] > summary { display: none; }
html body main > section#join .join-form .f-more > .field { margin-top: 0 !important; }
/* bouton + réassurance */
html body main > section#join .join-form button[type="submit"] { height: 54px !important; padding-block: 0 !important; margin-top: 4px !important; }
html body main > section#join .join-form .f-privacy { margin: -2px 0 0 !important; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .85rem; color: #5b6475; text-align: center; }

/* étapes : mini-frise compacte */
html body main > section#join .steps { gap: 0 !important; margin-top: 10px !important; }
html body main > section#join .steps li { padding: 8px 0 !important; border: 0 !important; font-size: 1rem !important; min-height: 0 !important; }
html body main > section#join .steps li::before { width: 26px !important; height: 26px !important; font-size: .85rem !important; }
html body main > section#join .join-text h3 { margin-top: 18px !important; margin-bottom: 4px !important; font-size: 1rem !important; }
html body main > section#join .join-text > p:not(.derja) { margin-bottom: 0 !important; }

/* « إنتَ؟ » : l'étiquette sous le cercle, sans le toucher */



/* =====================================================================
   « انضمّ إلينا » v2 : satin bleu nuit (comme le Credo), sans photo ni visages ; étapes en fil d'or
   ===================================================================== */
html body main > section#join { background: linear-gradient(180deg, rgba(9, 24, 47, .72) 0%, rgba(9, 24, 47, .86) 100%), url("../img/satin-folds.jpg") center / cover no-repeat, #09182f !important; }
html body main > section#join .join-text h2 { color: #fff8e6 !important; }
html body main > section#join .join-text > p.derja { color: #f2c46b !important; margin-bottom: 18px !important; }
html body main > section#join .join-text > p:not(.derja) { color: rgba(255, 248, 230, .82) !important; max-width: 44ch; line-height: 1.8 !important; }
html body main > section#join .join-text h3 { color: #f2c46b !important; font-size: .95rem !important; font-weight: 700 !important; margin: 30px 0 10px !important; letter-spacing: 0; }
/* étapes : petits numéros cerclés d'or reliés par un fil */
html body main > section#join .steps { list-style: none !important; counter-reset: st; padding: 0 !important; margin: 0 !important; display: grid !important; gap: 0 !important; }
html body main > section#join .steps li { counter-increment: st; position: relative; padding: 0 0 18px !important; padding-inline-start: 44px !important; color: rgba(255, 248, 230, .9) !important; font-size: 1rem !important; line-height: 1.6 !important; border: 0 !important; background: none !important; min-height: 0 !important; display: block !important; }
html body main > section#join .steps li:last-child { padding-bottom: 0 !important; }
html body main > section#join .steps li::before { content: counter(st) !important; position: absolute !important; inset-inline-start: 0; top: 0; width: 28px !important; height: 28px !important; border-radius: 50%;
  display: grid !important; place-items: center; font-size: .85rem !important; font-weight: 700; color: #f2c46b !important; background: #0e2442 !important; border: 1.5px solid rgba(242, 196, 107, .75) !important; box-shadow: none !important; margin: 0 !important; transform: none !important; }
html body main > section#join .steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13.5px; top: 30px; bottom: 2px; width: 1px; background: linear-gradient(rgba(242, 196, 107, .55), rgba(242, 196, 107, .15)); }
/* carte du formulaire : même blanc, coins et ombre plus calmes */
html body main > section#join .join-form { border-radius: 20px !important; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55) !important; border: 0 !important; }
html body main > section#join { background: radial-gradient(110% 90% at 85% 0%, #15335c 0%, #0e2442 48%, #09182f 100%) !important; }   /* bleu nuit uni, sans texture : le satin reste réservé au Credo et au pied de page */

/* « انضمّ » : une seule composition — largeur resserrée, texte centré face au formulaire, carte avec en-tête */
@media (min-width: 1000px) {
  html body main > section#join .join-grid { max-width: 1180px !important; margin-inline: auto !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) !important; column-gap: clamp(48px, 4.5vw, 80px) !important; align-items: center !important; }
}
html body main > section#join .join-text > p:not(.derja), html body main > section#join .steps { max-width: 46ch; }



/* « انضمّ » : une seule mesure pour la colonne de texte ; la derja respire avant le paragraphe */
html body main > section#join .join-text > p:not(.derja), html body main > section#join .steps, html body main > section#join .join-text h3 { max-width: 40ch !important; }
html body main > section#join .join-text > p.derja { margin-bottom: 26px !important; }

/* =====================================================================
   « انضمّ » — effet glacé premium : lumières colorées floues qui dérivent lentement sur le bleu nuit,
   formulaire en verre dépoli (champs blancs nets pour la lisibilité)
   ===================================================================== */
html body main > section#join { position: relative; isolation: isolate; overflow: hidden; background: #09182f !important; }
html body main > section#join::before, html body main > section#join::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); }
/* bleu JCI en haut, turquoise de Mansoura en bas, une touche d'or derrière le formulaire */
html body main > section#join::before { width: 62vw; height: 62vw; max-width: 1000px; max-height: 1000px; top: -32%; inset-inline-start: -12%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 151, 215, .55), rgba(0, 151, 215, 0) 62%), radial-gradient(circle at 70% 75%, rgba(242, 169, 59, .28), rgba(242, 169, 59, 0) 55%); }
html body main > section#join::after { width: 54vw; height: 54vw; max-width: 900px; max-height: 900px; bottom: -36%; inset-inline-end: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(19, 160, 154, .42), rgba(19, 160, 154, 0) 62%); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join::before { animation: joDrift1 22s ease-in-out infinite alternate; }
  html body main > section#join::after { animation: joDrift2 26s ease-in-out infinite alternate; }
  @keyframes joDrift1 { to { translate: 8% 10%; scale: 1.08; } }
  @keyframes joDrift2 { to { translate: -9% -8%; scale: 1.1; } }
}
html body main > section#join .join-grid { position: relative; z-index: 1; }

/* carte en verre dépoli */
html body main > section#join .join-form { background: rgba(255, 255, 255, .1) !important; -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .22) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .7) !important; }
html body main > section#join .join-form .field > span, html body main > section#join .join-form .field > span > b { color: #fff8e6 !important; }
html body main > section#join .join-form .fopt { color: rgba(255, 248, 230, .62) !important; }
html body main > section#join .join-form .fhint { color: rgba(255, 248, 230, .72) !important; }
html body main > section#join .join-form .f-privacy { color: rgba(255, 248, 230, .75) !important; }
html body main > section#join .join-form .f-more > summary { color: #f2c46b !important; }
html body main > section#join .join-form .field input, html body main > section#join .join-form .field textarea { background: rgba(255, 255, 255, .95) !important; border-color: rgba(255, 255, 255, .5) !important; color: #09182f !important; }
html body main > section#join .join-form .field input:hover, html body main > section#join .join-form .field textarea:hover { border-color: #fff !important; }
html body main > section#join .join-form .field input:focus, html body main > section#join .join-form .field textarea:focus { border-color: #f2a93b !important; box-shadow: 0 0 0 4px rgba(242, 169, 59, .35) !important; }
html body main > section#join .join-form .field.invalid input { border-color: #ff6b6b !important; box-shadow: 0 0 0 3px rgba(255, 107, 107, .3) !important; }
/* sans backdrop-filter (vieux navigateurs) : verre plus opaque pour rester lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { html body main > section#join .join-form { background: rgba(20, 45, 80, .92) !important; } }
html body main > section#join form.join-form { -webkit-backdrop-filter: blur(24px) saturate(150%) !important; backdrop-filter: blur(24px) saturate(150%) !important; }

/* « انضمّ » : mur de photos animé + voile (lisibilité côté texte, transparence côté verre) */
html body main > section#join .jo-wall { position: absolute; z-index: -3; inset: -30% -12%; display: flex; gap: clamp(12px, 1.4vw, 22px); rotate: -8deg; pointer-events: none; }
html body main > section#join .jo-col { flex: 1 1 0; overflow: hidden; }
html body main > section#join .jo-strip { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 22px); }
html body main > section#join .jo-strip img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: clamp(12px, 1.2vw, 20px); max-width: none;
  filter: grayscale(.3) saturate(.9) contrast(1.05) brightness(.85); }
html body main > section#join .jo-col:nth-child(even) { margin-top: -18%; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-strip { animation: joUp 70s linear infinite; animation-play-state: paused; }
  html body main > section#join .jo-col:nth-child(even) .jo-strip { animation-name: joDown; animation-duration: 80s; }
  html body main > section#join.jo-live .jo-strip { animation-play-state: running; }
  @keyframes joUp { from { translate: 0 0; } to { translate: 0 calc(-50% - clamp(6px, .7vw, 11px)); } }
  @keyframes joDown { from { translate: 0 calc(-50% - clamp(6px, .7vw, 11px)); } to { translate: 0 0; } }
}
html body main > section#join .jo-veil { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(to left, rgba(9, 24, 47, .95) 0%, rgba(9, 24, 47, .88) 38%, rgba(9, 24, 47, .5) 72%, rgba(9, 24, 47, .68) 100%); }
html:not([dir="rtl"]) body main > section#join .jo-veil { background: linear-gradient(to right, rgba(9, 24, 47, .95) 0%, rgba(9, 24, 47, .88) 38%, rgba(9, 24, 47, .5) 72%, rgba(9, 24, 47, .68) 100%); }
/* les lumières colorées passent au-dessus du voile, plus discrètes */
html body main > section#join::before { opacity: .7; }
html body main > section#join::after { opacity: .6; }
@media (max-width: 999px) {
  html body main > section#join .jo-veil, html:not([dir="rtl"]) body main > section#join .jo-veil { background: rgba(9, 24, 47, .84); }
  html body main > section#join .jo-col:nth-child(4) { display: none; }
}

/* « انضمّ » : la photo du port de Kélibia (zoom lent), voile bleu nuit côté texte, transparente derrière le verre */
html body main > section#join .jo-photo { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
html body main > section#join .jo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; max-width: none; display: block;
  filter: saturate(1.05) contrast(1.05); transform-origin: 30% 40%; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-photo img { animation: joKen 32s ease-in-out infinite alternate; animation-play-state: paused; }
  html body main > section#join.jo-live .jo-photo img { animation-play-state: running; }
  @keyframes joKen { from { scale: 1.12; translate: 1.5% 0; } to { scale: 1; translate: 0 0; } }
}
html body main > section#join .jo-veil { background:
  linear-gradient(to left, rgba(9, 24, 47, .93) 0%, rgba(9, 24, 47, .84) 36%, rgba(9, 24, 47, .38) 70%, rgba(9, 24, 47, .5) 100%),
  linear-gradient(180deg, rgba(9, 24, 47, .35) 0%, rgba(9, 24, 47, 0) 30%, rgba(9, 24, 47, .45) 100%) !important; }
html:not([dir="rtl"]) body main > section#join .jo-veil { background:
  linear-gradient(to right, rgba(9, 24, 47, .93) 0%, rgba(9, 24, 47, .84) 36%, rgba(9, 24, 47, .38) 70%, rgba(9, 24, 47, .5) 100%),
  linear-gradient(180deg, rgba(9, 24, 47, .35) 0%, rgba(9, 24, 47, 0) 30%, rgba(9, 24, 47, .45) 100%) !important; }
html body main > section#join::before, html body main > section#join::after { opacity: .28 !important; }
@media (max-width: 999px) { html body main > section#join .jo-veil, html:not([dir="rtl"]) body main > section#join .jo-veil { background: rgba(9, 24, 47, .8) !important; } }

/* « انضمّ » : mur de moments, plus coloré et plus vivant (photos en couleur, voile allégé côté verre) */
html body main > section#join .jo-strip img { filter: saturate(1.08) contrast(1.04) brightness(.92) !important; }
html body main > section#join .jo-wall { rotate: -10deg; inset: -35% -14%; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-strip { animation-duration: 55s; }
  html body main > section#join .jo-col:nth-child(even) .jo-strip { animation-duration: 62s; }
}
html body main > section#join .jo-veil { background:
  linear-gradient(to left, rgba(9, 24, 47, .94) 0%, rgba(9, 24, 47, .86) 36%, rgba(9, 24, 47, .3) 68%, rgba(9, 24, 47, .45) 100%) !important; }
html:not([dir="rtl"]) body main > section#join .jo-veil { background:
  linear-gradient(to right, rgba(9, 24, 47, .94) 0%, rgba(9, 24, 47, .86) 36%, rgba(9, 24, 47, .3) 68%, rgba(9, 24, 47, .45) 100%) !important; }
@media (max-width: 999px) { html body main > section#join .jo-veil, html:not([dir="rtl"]) body main > section#join .jo-veil { background: rgba(9, 24, 47, .78) !important; } }

/* « انضمّ » : côté texte, les photos deviennent un flou doux (bokeh) et s'assombrissent ; l'effet s'efface vers le formulaire */
html body main > section#join .jo-veil { background: rgba(9, 24, 47, .9) !important; -webkit-backdrop-filter: blur(10px) saturate(110%); backdrop-filter: blur(10px) saturate(110%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 44%, rgba(0, 0, 0, .35) 76%, rgba(0, 0, 0, .5) 100%); mask-image: linear-gradient(to left, #000 0%, #000 44%, rgba(0, 0, 0, .35) 76%, rgba(0, 0, 0, .5) 100%); }
html:not([dir="rtl"]) body main > section#join .jo-veil { background: rgba(9, 24, 47, .9) !important;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 44%, rgba(0, 0, 0, .35) 76%, rgba(0, 0, 0, .5) 100%); mask-image: linear-gradient(to right, #000 0%, #000 44%, rgba(0, 0, 0, .35) 76%, rgba(0, 0, 0, .5) 100%); }
@media (max-width: 999px) { html body main > section#join .jo-veil, html:not([dir="rtl"]) body main > section#join .jo-veil { -webkit-mask-image: none; mask-image: none; background: rgba(9, 24, 47, .82) !important; } }
footer.footer.fy.fy-sara .fy-mark .fy-photo, footer.footer.fy.fy-sara .fy-mark .fy-photo .fy-col { background-size: 240% auto !important; }   /* mosaïque moins zoomée : plusieurs visages entiers par lettre */

/* =====================================================================
   « انضمّ » v3 : bleu nuit net + 5 Polaroids nets autour du formulaire ; carte en verre plus opaque
   ===================================================================== */
html body main > section#join .jo-wall, html body main > section#join .jo-veil { display: none !important; }
html body main > section#join .jo-pols { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
html body main > section#join .jo-pol { position: absolute; margin: 0; padding: 10px 10px 34px; background: #fbf6ec; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 22px 40px -18px rgba(0, 0, 0, .7); width: var(--w, 220px); rotate: var(--r, 0deg); }
html body main > section#join .jo-pol img { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 2px; max-width: none; }
/* positions côté formulaire (début de ligne en LTR, fin en RTL) */
html body main > section#join .jo-p1 { --w: clamp(170px, 13vw, 250px); --r: -8deg; top: 9%;  inset-inline-end: 2%; }
html body main > section#join .jo-p2 { --w: clamp(160px, 12vw, 230px); --r: 6deg;  top: 52%; inset-inline-end: 7%; }
html body main > section#join .jo-p3 { --w: clamp(150px, 11vw, 215px); --r: 5deg;  top: -3%; inset-inline-end: 27%; }
html body main > section#join .jo-p4 { --w: clamp(160px, 12vw, 235px); --r: -5deg; top: 66%; inset-inline-end: 29%; }
html body main > section#join .jo-p5 { --w: clamp(140px, 10vw, 200px); --r: 9deg;  top: 26%; inset-inline-end: 45%; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-pol { animation: joBob 7s ease-in-out infinite alternate; }
  html body main > section#join .jo-p2, html body main > section#join .jo-p4 { animation-duration: 9s; animation-delay: -3s; }
  @keyframes joBob { to { translate: 0 -10px; rotate: calc(var(--r) + 1.5deg); } }
}
@media (max-width: 999px) { html body main > section#join .jo-pols { display: none; } }
/* carte : verre bleu nuit plus opaque (contraste propre, l'effet reste) */
html body main > section#join form.join-form { background: rgba(14, 36, 66, .72) !important; border: 1px solid rgba(242, 196, 107, .28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 40px 80px -36px rgba(0, 0, 0, .75) !important; }

/* « انضمّ » v4 : portraits en arche (plus de Polaroids) */
html body main > section#join .jo-pols { display: none !important; }
html body main > section#join .jo-arches { position: absolute; inset: 0; z-index: -1; pointer-events: none; --px: 0; --py: 0; }
html body main > section#join .jo-arch { position: absolute; margin: 0; width: var(--w); aspect-ratio: 3 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden;
  outline: 1px solid rgba(242, 196, 107, .7); outline-offset: 6px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
  translate: calc(var(--px) * var(--d) * 1px) calc(var(--py) * var(--d) * 1px); transition: translate .6s cubic-bezier(.2, .7, .2, 1); }
html body main > section#join .jo-arch img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
html body main > section#join .jo-a1 { --w: clamp(180px, 13vw, 250px); --d: 26; top: 12%; inset-inline-end: 1.5%; }
html body main > section#join .jo-a2 { --w: clamp(170px, 12vw, 230px); --d: 16; top: -10%; inset-inline-end: 20%; }
html body main > section#join .jo-a3 { --w: clamp(170px, 12vw, 230px); --d: 36; top: 46%; inset-inline-end: 39%; }
@media (max-width: 999px) { html body main > section#join .jo-arches { display: none; } }
html body main > section#join .jo-a2 { display: none; }   /* cachée derrière le menu et la carte : inutile */

/* « انضمّ » v5 : une grande photo d'équipe (plus d'arches ni de Polaroids) */
html body main > section#join .jo-arches, html body main > section#join .jo-pols { display: none !important; }
html body main > section#join .jo-hero { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 62%; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.55) 22%, #000 55%); mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.55) 22%, #000 55%); }
html:not([dir="rtl"]) body main > section#join .jo-hero { -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 55%); }
html body main > section#join .jo-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; max-width: none; filter: saturate(1.05) brightness(.82); }
html body main > section#join .jo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,24,47,.35), rgba(9,24,47,0) 30%, rgba(9,24,47,.55)); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-hero img { animation: joKen 30s ease-in-out infinite alternate; animation-play-state: paused; }
  html body main > section#join.jo-live .jo-hero img { animation-play-state: running; }
}
@media (max-width: 999px) { html body main > section#join .jo-hero { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; } }
/* photo de l'atrium : lumineuse ; verre plus transparent pour voir l'équipe à travers */
html body main > section#join .jo-hero img { filter: saturate(1.05) brightness(.9) !important; object-position: 50% 55%; }
html body main > section#join .jo-hero { width: 68%; }
html body main > section#join .jo-hero::after { background: linear-gradient(180deg, rgba(9,24,47,.25), rgba(9,24,47,0) 30%, rgba(9,24,47,.45)) !important; }
html body main > section#join form.join-form { background: rgba(14, 36, 66, .5) !important; -webkit-backdrop-filter: blur(18px) saturate(140%) !important; backdrop-filter: blur(18px) saturate(140%) !important; }
html body main > section#join .jo-hero { display: none !important; } html body main > section#join form.join-form { background: rgba(14, 36, 66, .72) !important; }

/* =====================================================================
   « انضمّ » vivant (sans photo) : aurores qui dérivent, halo souris, mots flottants, bordure dorée qui tourne
   ===================================================================== */
html body main > section#join::before, html body main > section#join::after { opacity: 1 !important; filter: blur(60px) !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join::before { animation: joDrift1 14s ease-in-out infinite alternate !important; }
  html body main > section#join::after { animation: joDrift2 17s ease-in-out infinite alternate !important; }
  @keyframes joDrift1 { 0% { translate: 0 0; scale: 1; } 50% { translate: 14% 8%; scale: 1.15; } 100% { translate: 4% 22%; scale: .95; } }
  @keyframes joDrift2 { 0% { translate: 0 0; scale: 1; } 50% { translate: -16% -10%; scale: 1.12; } 100% { translate: -6% -24%; scale: 1.05; } }
}
html body main > section#join .jo-live-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
html body main > section#join .jo-spot { position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 520px; height: 520px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 169, 59, .22), rgba(0, 151, 215, .12) 50%, transparent); opacity: 0; transition: opacity .5s ease; }
html body main > section#join .jo-live-bg.on .jo-spot { opacity: 1; }
/* mots flottants */
html body main > section#join .jo-word { position: absolute; bottom: -60px; left: calc(4% + (var(--i) * 8%)); font-family: "Aref Ruqaa", serif; font-weight: 700;
  font-size: calc(1.1rem + (var(--i) * 37 % 5) * .25rem); color: rgba(242, 196, 107, .22); white-space: nowrap; }
html body main > section#join .jo-word:nth-child(3n) { color: rgba(127, 211, 247, .2); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-word { animation: joFloat calc(16s + (var(--i) * 7 % 9) * 1s) linear infinite; animation-delay: calc(var(--i) * -2.3s); }
  @keyframes joFloat { 0% { translate: 0 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { translate: 0 calc(-1 * (100vh + 120px)); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html body main > section#join .jo-word { display: none; } }
/* bordure de la carte : un trait de lumière dorée qui fait le tour */
@property --joa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html body main > section#join form.join-form { position: relative; isolation: isolate; border-color: transparent !important; }
html body main > section#join form.join-form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--joa), rgba(242, 196, 107, .15) 0deg, #f2c46b 40deg, rgba(127, 211, 247, .6) 80deg, rgba(242, 196, 107, .15) 140deg, rgba(242, 196, 107, .15) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (prefers-reduced-motion: no-preference) { html body main > section#join form.join-form::before { animation: joRing 6s linear infinite; } @keyframes joRing { to { --joa: 360deg; } } }
html body main > section#join .jo-word { font-size: calc(1.5rem + (var(--i) * 37 % 5) * .35rem) !important; color: rgba(242, 196, 107, .34) !important; }
html body main > section#join .jo-word:nth-child(3n) { color: rgba(127, 211, 247, .32) !important; }
html body main > section#join form.join-form::before { padding: 2px !important;
  background: conic-gradient(from var(--joa), rgba(242, 196, 107, .2) 0deg, #ffd27a 30deg, #fff3cf 45deg, #7fd3f7 75deg, rgba(242, 196, 107, .2) 120deg, rgba(242, 196, 107, .2) 360deg) !important; }

/* =====================================================================
   « انضمّ » v6 : section claire et chaleureuse (sable doré) ; plus de bleu nuit ni de taches de couleur
   ===================================================================== */
html body main > section#join { background: radial-gradient(120% 120% at 85% 0%, #fdf5e4 0%, #f8ead0 55%, #f3dfba 100%) !important; }
html body main > section#join::before, html body main > section#join::after, html body main > section#join .jo-spot { display: none !important; }
html body main > section#join .join-text h2 { color: #09182f !important; }
html body main > section#join .join-text h2 span { color: inherit !important; }
html body main > section#join .join-text > p.derja { color: #b8690a !important; }
html body main > section#join .join-text > p:not(.derja) { color: #3a4252 !important; }
html body main > section#join .join-text h3 { color: #b8690a !important; }
html body main > section#join .steps li { color: #1d2433 !important; }
html body main > section#join .steps li::before { background: #fffaf0 !important; color: #b8690a !important; border-color: rgba(184, 105, 10, .7) !important; }
html body main > section#join .steps li:not(:last-child)::after { background: linear-gradient(rgba(184, 105, 10, .55), rgba(184, 105, 10, .15)) !important; }
/* mots flottants : encre or / bleu nuit, discrets sur le sable */
html body main > section#join .jo-word { color: rgba(184, 105, 10, .2) !important; }
html body main > section#join .jo-word:nth-child(3n) { color: rgba(9, 24, 47, .14) !important; }
/* carte blanche */
html body main > section#join form.join-form { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: 0 2px 6px rgba(120, 72, 10, .08), 0 34px 70px -34px rgba(120, 72, 10, .45) !important; }
html body main > section#join .join-form .field > span, html body main > section#join .join-form .field > span > b { color: #1d2433 !important; }
html body main > section#join .join-form .fopt { color: #6b7384 !important; }
html body main > section#join .join-form .fhint, html body main > section#join .join-form .f-privacy { color: #5b6475 !important; }
html body main > section#join .join-form .f-more > summary { color: #b8690a !important; }
html body main > section#join .join-form .field input, html body main > section#join .join-form .field textarea { background: #f8f6f1 !important; border-color: #d6cfc2 !important; color: #09182f !important; }
html body main > section#join .join-form .field input:hover, html body main > section#join .join-form .field textarea:hover { border-color: #b9ad97 !important; }
html body main > section#join .join-form .field input:focus, html body main > section#join .join-form .field textarea:focus { background: #fff !important; border-color: #e39a22 !important; }
html body main > section#join form.join-form::before { background: conic-gradient(from var(--joa), rgba(227, 154, 34, .15) 0deg, #e39a22 30deg, #ffd27a 45deg, #0097d7 75deg, rgba(227, 154, 34, .15) 120deg, rgba(227, 154, 34, .15) 360deg) !important; }

/* =====================================================================
   « انضمّ » v7 (réf. Pinterest) : une seule carte partagée — illustration de Kélibia + titre d'un côté, formulaire de l'autre
   ===================================================================== */
html body main > section#join { background: #f4ecdd !important; }
html body main > section#join .jo-live-bg, html body main > section#join .jo-hero, html body main > section#join .jo-arches, html body main > section#join .jo-pols { display: none !important; }
html body main > section#join .join-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important; gap: 0 !important; align-items: stretch !important;
  max-width: 1180px !important; margin-inline: auto !important; background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(120, 72, 10, .06), 0 40px 80px -40px rgba(80, 50, 10, .45); }
/* panneau illustration */
html body main > section#join .join-text { position: relative; padding: clamp(36px, 3.2vw, 56px) !important; min-height: 600px;
  background: #eeb95a url("../img/kelibia-illu.jpg?v=1") 50% 100% / cover no-repeat; display: flex; flex-direction: column; }
html body main > section#join .join-text h2 { color: #09182f !important; margin: 0 !important; }
html body main > section#join .join-text > p.derja { color: #7a3d00 !important; margin: 4px 0 12px !important; }
html body main > section#join .join-text > p:not(.derja) { color: #2b2418 !important; max-width: 34ch !important; font-weight: 500; }
html body main > section#join .join-text h3, html body main > section#join .join-text .steps { display: none !important; }
/* panneau formulaire : intégré à la carte */
html body main > section#join form.join-form { background: #fff !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
  padding: clamp(36px, 3.2vw, 56px) clamp(32px, 3.2vw, 60px) !important; align-self: center; }
html body main > section#join form.join-form::before { display: none !important; }
@media (max-width: 999px) {
  html body main > section#join .join-grid { grid-template-columns: 1fr !important; border-radius: 22px; }
  html body main > section#join .join-text { min-height: 420px; background-position: 50% 78%; }
}
@media (min-width: 1000px) {
  html body main > section#join .join-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important; }
  html body main > section#join .join-text { background-position: 50% 32% !important; }
}

/* « انضمّ » : petit chemin des étapes sous le bouton */
html body main > section#join .jo-path { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid #efe7d8; display: flex; justify-content: space-between; gap: 6px; counter-reset: none; }
html body main > section#join .jo-path li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: .82rem; font-weight: 600; color: #3a4252; text-align: center; }
html body main > section#join .jo-path li i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; color: #b8690a; background: #fff6e4; border: 1px solid rgba(184, 105, 10, .35); position: relative; z-index: 1; }
html body main > section#join .jo-path li:not(:last-child)::after { content: ""; position: absolute; top: 18px; inset-inline-start: calc(50% + 22px); width: calc(100% - 44px); border-top: 1.5px dashed rgba(184, 105, 10, .45); }
html body main > section#join .jo-path li:last-child i { background: #f2a93b; color: #09182f; border-color: #f2a93b; }

/* soleil qui se lève dans le ciel de l'illustration */
html body main > section#join .join-text { overflow: hidden; isolation: isolate; }
html body main > section#join .join-text::before { content: ""; position: absolute; z-index: -1; width: clamp(110px, 9vw, 160px); aspect-ratio: 1; border-radius: 50%; top: 12%; inset-inline-start: 12%;
  background: radial-gradient(circle at 40% 38%, #fff6d8 0%, #ffd98a 45%, rgba(255, 196, 92, .0) 72%); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .join-text::before { translate: 0 120px; opacity: 0; transition: translate 2.2s cubic-bezier(.2, .7, .2, 1), opacity 1.6s ease; }
  html body main > section#join.jo-live .join-text::before { translate: 0 0; opacity: 1; }
}
html body main > section#join .join-text::before { inset-inline-start: auto !important; inset-inline-end: 10% !important; top: 7% !important; background: radial-gradient(circle at 42% 40%, #fffaf0 0%, #ffe3a1 38%, #ffcf6b 58%, rgba(255, 196, 92, 0) 72%) !important; }

/* « انضمّ » : la carte tient dans l'écran, champs plus élégants, illustration qui réagit à la souris */
html body main > section#join form.join-form { padding: clamp(28px, 2.4vw, 42px) clamp(32px, 3vw, 56px) !important; }
html body main > section#join .join-form .form-body { gap: 11px !important; }
html body main > section#join .join-form .field input { height: 46px !important; }
html body main > section#join .join-form button[type="submit"] { height: 50px !important; }
html body main > section#join .join-text { min-height: 0 !important; }
html body main > section#join .jo-path { padding-top: 12px !important; }
/* champs : sable très clair, ligne de base dorée au focus */
html body main > section#join .join-form .field input, html body main > section#join .join-form .field textarea { background: #faf6ee !important; border: 1.5px solid #e6dccb !important; border-radius: 12px !important; }
html body main > section#join .join-form .field input:focus, html body main > section#join .join-form .field textarea:focus { background: #fff !important; border-color: #e39a22 !important; box-shadow: 0 0 0 4px rgba(242, 169, 59, .2) !important; }
/* soleil plus discret, à l'écart du titre */
html body main > section#join .join-text::before { width: clamp(84px, 6.5vw, 116px) !important; top: 5% !important; inset-inline-end: 7% !important; }
/* illustration : léger parallaxe à la souris + filet doré intérieur */
html body main > section#join .join-text { background-position: calc(50% + var(--px, 0) * 14px) calc(32% + var(--py, 0) * 10px) !important; transition: background-position .6s cubic-bezier(.2, .7, .2, 1); }
html body main > section#join .join-text::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 246, 216, .55); border-radius: 18px; pointer-events: none; }
@media (max-width: 999px) { html body main > section#join .join-text { background-position: 50% 78% !important; } }

/* « انضمّ » — revue : accueil en tête du formulaire, soleil plat, sans cadre intérieur, libellés plus lisibles, bande compacte sur téléphone */
html body main > section#join .f-hello { margin-bottom: 8px; }
html body main > section#join .f-hello .f-hi { margin: 0 0 4px !important; font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(1.6rem, 1.9vw, 2rem); line-height: 1.2; color: #09182f; }
html body main > section#join .f-hello p[data-i18n="join.sub"] { margin: 0 !important; color: #4a5160 !important; font-size: 1rem !important; line-height: 1.7 !important; max-width: 46ch; }
html body main > section#join .join-text::after { display: none !important; }
html body main > section#join .join-text::before { background: #fff1c9 !important; box-shadow: 0 0 0 10px rgba(255, 241, 201, .35); }
html body main > section#join .join-form .field > span, html body main > section#join .join-form .field > span > b { font-size: 1rem !important; }
html body main > section#join .join-form .fhint { font-size: .86rem !important; color: #4a5160 !important; }
html body main > section#join .join-form .field input::placeholder { color: #8a8f99 !important; }
@media (max-width: 999px) {
  html body main > section#join .join-text { min-height: 0 !important; height: 240px; padding: 26px 24px !important; background-size: cover !important; background-position: 50% 30% !important; justify-content: flex-start; }
  html body main > section#join .join-text::before { width: 70px !important; top: 18px !important; }
}
@media (min-width: 1000px) {
  html body main > section#join .join-text .jo-path { position: absolute; left: 20px; right: 20px; bottom: 18px; margin: 0; padding: 14px 10px 12px; border: 0;
    background: rgba(9, 24, 47, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 16px; }
  html body main > section#join .join-text .jo-path li { color: #fff8e6; }
  html body main > section#join .join-text .jo-path li i { background: rgba(255, 246, 216, .12); color: #f2c46b; border-color: rgba(242, 196, 107, .6); }
  html body main > section#join .join-text .jo-path li:last-child i { background: #f2a93b; color: #09182f; }
  html body main > section#join .join-text .jo-path li:not(:last-child)::after { border-top-color: rgba(242, 196, 107, .55); }
}
/* chemin à 3 étapes, plus discret, posé sur l'eau */
@media (min-width: 1000px) {
  html body main > section#join .join-text .jo-path { left: 50% !important; right: auto !important; translate: -50% 0; width: min(78%, 380px); bottom: 14px !important; padding: 10px 14px 9px !important; border-radius: 999px !important; }
  html body main > section#join .join-text .jo-path li { flex-direction: row; justify-content: center; gap: 7px; font-size: .85rem; }
  html body main > section#join .join-text .jo-path li i { width: 28px; height: 28px; font-size: .9rem; }
  html body main > section#join .join-text .jo-path li:not(:last-child)::after { display: none; }
}

/* « انضمّ » v8 : le panneau visuel reprend la mosaïque de visages du pied de page (plus d'illustration) */
html body main > section#join .join-text { background: #09182f url("../img/photos/fb/mosaic-duo.jpg?v=7") 0% 50% / auto 135% repeat-x !important; }
html body main > section#join .join-text::before { display: none !important; }   /* plus de soleil */
html body main > section#join .join-text::after { display: block !important; content: ""; position: absolute; inset: 0; z-index: -1; border: 0 !important; border-radius: 0 !important; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 24, 47, .92) 0%, rgba(9, 24, 47, .7) 34%, rgba(9, 24, 47, .25) 62%, rgba(9, 24, 47, .75) 100%); inset: 0 !important; }
html body main > section#join .join-text h2 { color: #fff8e6 !important; }
html body main > section#join .join-text > p.derja { color: #f2c46b !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .join-text { animation: joPan 90s linear infinite alternate; }
  @keyframes joPan { to { background-position: 100% 50%; } }
}
@media (max-width: 999px) { html body main > section#join .join-text { background-size: auto 160% !important; } }
/* mosaïque du panneau : en couleur, 4 visages entiers par rangée, voile seulement en haut (titre) et en bas (étapes) */
html body main > section#join .join-text { background: #09182f url("../img/photos/fb/mosaic-color.jpg?v=7") 0% 0% / 300% auto repeat !important; }
html body main > section#join .join-text::after { background: linear-gradient(180deg, rgba(9, 24, 47, .94) 0%, rgba(9, 24, 47, .78) 22%, rgba(9, 24, 47, .08) 46%, rgba(9, 24, 47, .08) 74%, rgba(9, 24, 47, .85) 100%) !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .join-text { animation: joPan2 80s linear infinite alternate !important; }
  @keyframes joPan2 { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
}
@media (max-width: 999px) { html body main > section#join .join-text { background-size: 400% auto !important; } }
/* mosaïque dédiée au panneau (portrait, différente du pied de page), pleine largeur, défilement vertical lent */
html body main > section#join .join-text { background: #09182f url("../img/photos/fb/mosaic-join.jpg?v=2") 50% 0% / 100% auto no-repeat !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .join-text { animation: joPan3 40s ease-in-out infinite alternate !important; }
  @keyframes joPan3 { from { background-position: 50% 0%; } to { background-position: 50% 100%; } }
}
@media (max-width: 999px) { html body main > section#join .join-text { background-size: 100% auto !important; } }
/* panneau photos : en-tête bleu nuit net pour le titre (au lieu d'un voile boueux), bas propre, pastille lisible */
html body main > section#join .join-text::after { background: linear-gradient(180deg, #09182f 0%, #09182f 24%, rgba(9, 24, 47, .55) 31%, rgba(9, 24, 47, 0) 38%, rgba(9, 24, 47, 0) 80%, rgba(9, 24, 47, .9) 92%, #09182f 100%) !important; }
html body main > section#join .join-text h2 { text-shadow: none !important; }
@media (min-width: 1000px) {
  html body main > section#join .join-text .jo-path { background: rgba(9, 24, 47, .88) !important; border: 1px solid rgba(242, 196, 107, .35) !important; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
}

/* mur vivant du panneau (remplace l'image fixe) */
html body main > section#join .join-text { background: #09182f !important; animation: none !important; }
html body main > section#join .jo-cols { position: absolute; inset: 0; z-index: -2; display: flex; gap: 8px; padding: 0 8px; overflow: hidden; }
html body main > section#join .jo-c { flex: 1 1 0; overflow: hidden; }
html body main > section#join .jo-s { display: flex; flex-direction: column; gap: 8px; }
html body main > section#join .jo-s img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; max-width: none;
  filter: saturate(1.06) contrast(1.03); transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
html body main > section#join .jo-c:nth-child(2) { margin-top: -40px; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-s { animation: joUp 48s linear infinite; }
  html body main > section#join .jo-c:nth-child(2) .jo-s { animation-name: joDown; animation-duration: 56s; }
  html body main > section#join .jo-c:nth-child(3) .jo-s { animation-duration: 52s; }
  html body main > section#join .join-text:hover .jo-s { animation-play-state: paused; }
}
html body main > section#join .join-text:hover .jo-s img { filter: saturate(.85) brightness(.8); }
html body main > section#join .join-text .jo-s img:hover { transform: scale(1.06); filter: saturate(1.1) brightness(1.05); position: relative; z-index: 1; }
html body main > section#join .join-text .jo-cols { pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .jo-s { animation-name: joWUp !important; }
  html body main > section#join .jo-c:nth-child(2) .jo-s { animation-name: joWDown !important; }
  @keyframes joWUp { from { translate: 0 0; } to { translate: 0 calc(-50% - 4px); } }
  @keyframes joWDown { from { translate: 0 calc(-50% - 4px); } to { translate: 0 0; } }
}

/* « انضمّ » : entrée chorégraphiée (la carte monte, les champs arrivent un à un) + reflet sur le bouton */
@media (prefers-reduced-motion: no-preference) {
  html body main > section#join .join-grid { opacity: 0; translate: 0 40px; scale: .98; transition: opacity .8s ease, translate 1s cubic-bezier(.2, .7, .2, 1), scale 1s cubic-bezier(.2, .7, .2, 1); }
  html body main > section#join.jo-in .join-grid { opacity: 1; translate: 0 0; scale: 1; }
  html body main > section#join .join-form .form-body > * { opacity: 0; translate: 0 14px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); }
  html body main > section#join.jo-in .join-form .form-body > * { opacity: 1; translate: 0 0; }
  html body main > section#join.jo-in .join-form .form-body > :nth-child(1) { transition-delay: .35s; }
  html body main > section#join.jo-in .join-form .form-body > :nth-child(2) { transition-delay: .45s; }
  html body main > section#join.jo-in .join-form .form-body > :nth-child(3) { transition-delay: .55s; }
  html body main > section#join.jo-in .join-form .form-body > :nth-child(4) { transition-delay: .65s; }
  html body main > section#join.jo-in .join-form .form-body > :nth-child(5) { transition-delay: .75s; }
  html body main > section#join.jo-in .join-form .form-body > :nth-child(n+6) { transition-delay: .85s; }
  html body main > section#join .join-text h2, html body main > section#join .join-text > p.derja { opacity: 0; translate: 0 18px; transition: opacity .7s ease .3s, translate .8s cubic-bezier(.2, .7, .2, 1) .3s; }
  html body main > section#join .join-text > p.derja { transition-delay: .5s; }
  html body main > section#join.jo-in .join-text h2, html body main > section#join.jo-in .join-text > p.derja { opacity: 1; translate: 0 0; }
}
html body main > section#join .join-form button[type="submit"] { position: relative; overflow: hidden; isolation: isolate; }
html body main > section#join .join-form button[type="submit"]::after { content: ""; position: absolute; inset: 0; z-index: -1; translate: -120% 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transition: translate .8s ease; }
html body main > section#join .join-form button[type="submit"]:hover::after { translate: 120% 0; }
html body main > section#join .join-form button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(184, 105, 10, .65) !important; }

/* pastille des étapes : un vrai chemin — fil doré entre les étapes, la lumière avance d'une étape à l'autre */
@media (min-width: 1000px) {
  html body main > section#join .join-text .jo-path { width: min(88%, 440px) !important; padding: 10px 18px !important; gap: 0 !important; }
  html body main > section#join .join-text .jo-path li { flex: 0 0 auto; gap: 8px; font-weight: 700; letter-spacing: 0; }
  html body main > section#join .join-text .jo-path li:not(:last-child) { flex: 1 1 0; }
  html body main > section#join .join-text .jo-path li:not(:last-child)::after { display: block !important; content: ""; position: static; flex: 1 1 auto; min-width: 18px; height: 2px; margin-inline: 10px 2px; border: 0 !important;
    background: linear-gradient(to left, rgba(242, 196, 107, .15), rgba(242, 196, 107, .8)); border-radius: 2px; }
  html:not([dir="rtl"]) body main > section#join .join-text .jo-path li:not(:last-child)::after { background: linear-gradient(to right, rgba(242, 196, 107, .15), rgba(242, 196, 107, .8)); }
  html body main > section#join .join-text .jo-path li i { transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
  html body main > section#join .join-text .jo-path li i { animation: joStep 4.5s ease-in-out infinite; }
  html body main > section#join .join-text .jo-path li:nth-child(2) i { animation-delay: 1.5s; }
  html body main > section#join .join-text .jo-path li:nth-child(3) i { animation-delay: 3s; }
  @keyframes joStep { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 169, 59, 0); } 12% { box-shadow: 0 0 0 6px rgba(242, 169, 59, .28); background: #f2a93b; color: #09182f; } 28% { box-shadow: 0 0 0 0 rgba(242, 169, 59, 0); } }
}
/* finitions : filet ivoire sur les photos du mur, petit trait doré sous la derja ; téléphone : bande de titre adaptée */
html body main > section#join .jo-s img { outline: 1px solid rgba(255, 248, 230, .18); outline-offset: -1px; }
html body main > section#join .join-text > p.derja::after { content: ""; display: block; width: 46px; height: 2px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, #f2c46b, rgba(242, 196, 107, 0)); }
html[dir="rtl"] body main > section#join .join-text > p.derja::after { background: linear-gradient(270deg, #f2c46b, rgba(242, 196, 107, 0)); }
@media (max-width: 999px) {
  html body main > section#join .join-text { height: 300px !important; }
  html body main > section#join .join-text::after { background: linear-gradient(180deg, #09182f 0%, #09182f 38%, rgba(9, 24, 47, .4) 52%, rgba(9, 24, 47, 0) 64%, rgba(9, 24, 47, 0) 88%, rgba(9, 24, 47, .6) 100%) !important; }
}
/* pastille des étapes en verre transparent : on voit les photos défiler, floutées, derrière */
@media (min-width: 1000px) {
  html body main > section#join .join-text .jo-path { background: rgba(255, 255, 255, .1) !important; -webkit-backdrop-filter: blur(14px) saturate(160%) !important; backdrop-filter: blur(14px) saturate(160%) !important;
    border: 1px solid rgba(255, 248, 230, .28) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 28px -14px rgba(0, 0, 0, .55) !important; }
  html body main > section#join .join-text .jo-path li { color: #fff !important; text-shadow: 0 1px 6px rgba(9, 24, 47, .6); }
  html body main > section#join .join-text .jo-path li i { background: rgba(255, 255, 255, .14) !important; border-color: rgba(255, 248, 230, .45) !important; }
}
@media (min-width: 1000px) { html body main > section#join .join-text .jo-path li:last-child i { background: #f2a93b !important; color: #09182f !important; border-color: #f2a93b !important; } }
/* correctif : backdrop-filter sur la pastille masquait les photos (bug de rendu Chrome) → verre simulé sans flou */
@media (min-width: 1000px) {
  html body main > section#join .join-text .jo-path { -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(9, 24, 47, .42)) !important; }
}

/* « انضمّ » : ombres en couches et fondus doux */
/* carte : ombre douce à plusieurs couches (contact + ambiance chaude) */
html body main > section#join .join-grid { box-shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 16px -6px rgba(60, 40, 10, .1), 0 30px 60px -24px rgba(80, 50, 10, .22), 0 60px 120px -60px rgba(9, 24, 47, .35) !important; }
/* mur : les photos apparaissent en fondu sous le titre et disparaissent en fondu vers le bas (plus de coupure nette) */
html body main > section#join .jo-cols { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 24%, #000 44%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, transparent 24%, #000 44%, #000 80%, transparent 100%); }
html body main > section#join .join-text::after { background: radial-gradient(120% 60% at 50% 0%, rgba(21, 51, 92, .55), transparent 70%) !important; }
/* photos : relief doux */
html body main > section#join .jo-s img { box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 14px 26px -14px rgba(0, 0, 0, .7); transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s cubic-bezier(.22, 1, .36, 1) !important; }
html body main > section#join .join-text .jo-s img:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, .3), 0 24px 40px -16px rgba(0, 0, 0, .8); }
/* titre : léger relief */
html body main > section#join .join-text h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35) !important; }
/* champs : ombre intérieure discrète, transitions fluides */
html body main > section#join .join-form .field input, html body main > section#join .join-form .field textarea { box-shadow: inset 0 1px 2px rgba(60, 40, 10, .06) !important; transition: border-color .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1), background .35s ease !important; }
html body main > section#join .join-form .field input:focus, html body main > section#join .join-form .field textarea:focus { box-shadow: 0 0 0 4px rgba(242, 169, 59, .18), 0 6px 14px -8px rgba(184, 105, 10, .35) !important; }
/* bouton : ombre dorée en couches */
html body main > section#join .join-form button[type="submit"] { box-shadow: 0 1px 2px rgba(120, 70, 5, .2), 0 8px 18px -8px rgba(184, 105, 10, .45), inset 0 1px 0 rgba(255, 255, 255, .35) !important; transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s cubic-bezier(.22, 1, .36, 1) !important; }
html body main > section#join .join-form button[type="submit"]:hover { box-shadow: 0 2px 4px rgba(120, 70, 5, .2), 0 18px 32px -12px rgba(184, 105, 10, .6), inset 0 1px 0 rgba(255, 255, 255, .4) !important; }
/* pastille : ombre portée douce */
@media (min-width: 1000px) { html body main > section#join .join-text .jo-path { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px rgba(0, 0, 0, .2), 0 18px 34px -16px rgba(0, 0, 0, .7) !important; } }
/* entrée plus fluide */
@media (prefers-reduced-motion: no-preference) { html body main > section#join .join-grid { transition: opacity 1s cubic-bezier(.22, 1, .36, 1), translate 1.2s cubic-bezier(.22, 1, .36, 1), scale 1.2s cubic-bezier(.22, 1, .36, 1) !important; } }

/* étapes : plus de pastille — une ligne gravée sur le bleu nuit (chiffres dorés, filets fins), sous le mur qui s'estompe */
@media (min-width: 1000px) {
  html body main > section#join .jo-cols { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 24%, #000 42%, #000 66%, transparent 82%) !important; mask-image: linear-gradient(180deg, transparent 0%, transparent 24%, #000 42%, #000 66%, transparent 82%) !important; }
  html body main > section#join .join-text .jo-path { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important;
    left: clamp(28px, 3vw, 48px) !important; right: clamp(28px, 3vw, 48px) !important; width: auto !important; translate: none !important; bottom: clamp(26px, 2.6vw, 40px) !important; counter-reset: jst; display: flex !important; justify-content: space-between; }
  html body main > section#join .join-text .jo-path li { counter-increment: jst; flex: 1 1 0 !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important;
    padding-inline: 14px; border-inline-start: 1px solid rgba(242, 196, 107, .35); color: rgba(255, 248, 230, .92) !important; text-shadow: none !important; font-size: .95rem !important; font-weight: 600 !important; }
  html body main > section#join .join-text .jo-path li:first-child { border-inline-start: 0; padding-inline-start: 0; }
  html body main > section#join .join-text .jo-path li::before { content: counter(jst, arabic-indic); font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1; color: #f2c46b; }
  html:not([dir="rtl"]) body main > section#join .join-text .jo-path li::before { content: "0" counter(jst); }
  html body main > section#join .join-text .jo-path li i, html body main > section#join .join-text .jo-path li::after { display: none !important; }
  html body main > section#join .join-text .jo-path li:last-child { color: #f2c46b !important; }
}
@media (min-width: 1000px) { html body main > section#join .join-text .jo-path li:not(:last-child)::after { display: none !important; content: none !important; } }
/* étapes retirées du panneau ; le mur de photos va jusqu'en bas */
html body main > section#join .jo-path { display: none !important; }
html body main > section#join .jo-cols { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 24%, #000 42%, #000 100%) !important; mask-image: linear-gradient(180deg, transparent 0%, transparent 24%, #000 42%, #000 100%) !important; }
html body main > section#join .join-text .jo-path, html body main > section#join .join-form .jo-path { display: none !important; }

/* =====================================================================
   FAQ v2 : plus de notes en papier (effet « parachuté ») — accordéon éditorial, numéroté, filets fins
   ===================================================================== */
html body main > section#faq .faq-list { display: block !important; columns: auto !important; counter-reset: fq; max-width: 760px; }
html body main > section#faq .faq-list details { counter-increment: fq; position: relative; background: none !important; border: 0 !important; border-bottom: 1px solid rgba(9, 24, 47, .12) !important;
  border-radius: 0 !important; box-shadow: none !important; rotate: 0deg !important; transform: none !important; margin: 0 !important; padding: 0 !important; width: auto !important; grid-column: auto !important; }
html body main > section#faq .faq-list details:first-child { border-top: 1px solid rgba(9, 24, 47, .12) !important; }
html body main > section#faq .faq-list details::before, html body main > section#faq .faq-list details::after { content: none !important; display: none !important; }
html body main > section#faq .faq-list summary { list-style: none; cursor: pointer; display: flex !important; align-items: center; gap: 18px; padding: 22px 4px !important; margin: 0 !important;
  font-size: clamp(1.1rem, 1.3vw, 1.3rem) !important; font-weight: 700 !important; color: #09182f !important; background: none !important; transition: color .3s ease; }
html body main > section#faq .faq-list summary::-webkit-details-marker { display: none; }
html body main > section#faq .faq-list summary::before { content: counter(fq, arabic-indic) !important; display: inline-block !important; position: static !important; flex: 0 0 auto; width: 2ch; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-size: 1.35rem; color: #b8690a; background: none !important; border: 0 !important; transform: none !important; }
html:not([dir="rtl"]) body main > section#faq .faq-list summary::before { content: "0" counter(fq) !important; }
html body main > section#faq .faq-list summary::after { content: "" !important; display: block !important; position: relative !important; inset: auto !important; margin-inline-start: auto; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(184, 105, 10, .45) !important; background: linear-gradient(#b8690a, #b8690a) center / 12px 1.5px no-repeat, linear-gradient(#b8690a, #b8690a) center / 1.5px 12px no-repeat !important;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), background-color .3s ease; transform: none; color: transparent !important; font-size: 0 !important; }
html body main > section#faq .faq-list details[open] > summary::after { transform: rotate(45deg); background-color: #fff4e0 !important; }
html body main > section#faq .faq-list summary:hover { color: #b8690a !important; }
html body main > section#faq .faq-list summary > * { display: none !important; }
html body main > section#faq .faq-list details > p { margin: -6px 0 0 !important; padding: 0 calc(2ch + 18px + 4px) 22px !important; padding-inline-end: 56px !important; background: none !important; border: 0 !important;
  font-family: inherit !important; font-size: 1.02rem !important; line-height: 1.85 !important; color: #3a4252 !important; max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#faq .faq-list details[open] > p { animation: fqIn .45s cubic-bezier(.22, 1, .36, 1); }
  @keyframes fqIn { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
}
@media (min-width: 900px) { html body main > section#faq .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) !important; align-items: start !important; } }
html body main > section#faq .faq-list > details:nth-child(n) { background: none !important; rotate: 0deg !important; box-shadow: none !important; padding: 0 !important; }
html body main > section#faq .faq-list > details:nth-child(n)::before, html body main > section#faq .faq-list > details:nth-child(n)::after { content: none !important; display: none !important; }
html body main > section#faq .faq-list > details:nth-child(n) > summary::after, html body main > section#faq .faq-list > details[open]:nth-child(n) > summary::after { content: "" !important; color: transparent !important; font-size: 0 !important;
  background: linear-gradient(#b8690a, #b8690a) center / 12px 1.5px no-repeat, linear-gradient(#b8690a, #b8690a) center / 1.5px 12px no-repeat !important; border: 1.5px solid rgba(184, 105, 10, .45) !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n) > summary::after { transform: rotate(45deg); background-color: #fff4e0 !important; }
html body main > section#faq .faq-list > details:nth-child(n) > p { border-top: 0 !important; margin: -6px 0 0 !important; padding: 0 0 22px !important; padding-inline: calc(2ch + 22px) 56px !important; font-family: inherit !important; font-size: 1.02rem !important; }
html body main > section#join { box-shadow: 0 -10px 30px -22px rgba(120, 80, 20, .22) !important; }
html body main > section#faq { padding-bottom: calc(clamp(48px, 4.5vw, 72px) + var(--band-r, 0px)) !important; }

/* =====================================================================
   FAQ v3 : tableau questions / réponse — liste à gauche, grande réponse sur carte bleu nuit
   ===================================================================== */
html body main > section#faq .fq-board { display: none; }
@media (min-width: 900px) {
  html body main > section#faq .faq-grid { grid-template-columns: 1fr !important; gap: clamp(24px, 2.4vw, 40px) !important; max-width: 1180px; margin-inline: auto !important; }
  html body main > section#faq .faq-aside { display: flex !important; flex-direction: row !important; align-items: flex-end !important; justify-content: space-between !important; gap: 24px; flex-wrap: wrap; }
  html body main > section#faq .faq-aside h2 { margin: 0 !important; }
  html body main > section#faq .faq-aside .faq-ask { margin: 0 !important; padding: 0 !important; border: 0 !important; display: flex !important; align-items: center; gap: 14px; }
  html body main > section#faq .faq-list { display: none !important; }
  html body main > section#faq .fq-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 2vw, 32px); align-items: stretch; }
  html body main > section#faq .fq-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  html body main > section#faq .fq-qs button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; text-align: start;
    font: inherit; font-size: clamp(1.02rem, 1.15vw, 1.15rem); font-weight: 700; color: #3a4252; transition: background .35s cubic-bezier(.22, 1, .36, 1), color .35s ease, box-shadow .35s ease; }
  html body main > section#faq .fq-qs .fq-n { flex: 0 0 auto; width: 2.2ch; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-size: 1.3rem; color: rgba(184, 105, 10, .55); transition: color .35s ease; }
  html body main > section#faq .fq-qs button:hover { background: rgba(255, 255, 255, .6); color: #09182f; }
  html body main > section#faq .fq-qs button.on { background: #fff; color: #09182f; box-shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 12px 26px -16px rgba(80, 50, 10, .35); }
  html body main > section#faq .fq-qs button.on .fq-n { color: #b8690a; }
  html body main > section#faq .fq-qs button:focus-visible { outline: 3px solid #f2a93b; outline-offset: 2px; }
  /* la réponse */
  html body main > section#faq .fq-ans { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(32px, 3.2vw, 52px); color: #fff8e6;
    background: radial-gradient(120% 90% at 85% 0%, #15335c 0%, #0e2442 45%, #09182f 100%); box-shadow: 0 2px 6px rgba(9, 24, 47, .15), 0 34px 70px -34px rgba(9, 24, 47, .6);
    display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
  html body main > section#faq .fq-num { position: absolute; inset-inline-end: clamp(20px, 2vw, 36px); bottom: -.18em; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: clamp(9rem, 13vw, 14rem); line-height: 1; color: rgba(242, 196, 107, .12); pointer-events: none; }
  html body main > section#faq .fq-q { margin: 0 0 14px !important; font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(1.6rem, 2.1vw, 2.2rem); line-height: 1.3; color: #f2c46b; position: relative; }
  html:not([lang="ar"]) body main > section#faq .fq-q { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
  html body main > section#faq .fq-a { margin: 0 !important; font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.9; color: rgba(255, 248, 230, .9); max-width: 46ch; position: relative; }
  html body main > section#faq .fq-q, html body main > section#faq .fq-a, html body main > section#faq .fq-num { transition: opacity .18s ease, translate .3s cubic-bezier(.22, 1, .36, 1); }
  html body main > section#faq .fq-board.fq-swap .fq-q, html body main > section#faq .fq-board.fq-swap .fq-a { opacity: 0; translate: 0 8px; }
  html body main > section#faq .fq-board.fq-swap .fq-num { opacity: 0; }
}
html body main > section#faq .faq-list summary::before { content: "0" counter(fq) !important; }

/* =====================================================================
   FAQ v4 (réf. Pinterest « Clear answers ») : titre + carte « encore une question ? » à côté ; questions en cartes douces dépliables
   ===================================================================== */
html body main > section#faq .fq-board { display: none !important; }
html body main > section#faq .faq-list { display: flex !important; flex-direction: column; gap: 12px; max-width: none; }
html body main > section#faq .faq-list > details:nth-child(n) { background: #fff !important; border: 1px solid rgba(9, 24, 47, .07) !important; border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 10px 24px -18px rgba(80, 50, 10, .35) !important; transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1), border-color .3s ease !important; }
html body main > section#faq .faq-list > details:first-child { border-top: 1px solid rgba(9, 24, 47, .07) !important; }
html body main > section#faq .faq-list > details:nth-child(n):hover { border-color: rgba(184, 105, 10, .3) !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n) { border-color: rgba(184, 105, 10, .35) !important; box-shadow: 0 2px 4px rgba(60, 40, 10, .06), 0 22px 40px -24px rgba(184, 105, 10, .45) !important; }
html body main > section#faq .faq-list summary { padding: 20px 22px !important; font-size: clamp(1.05rem, 1.2vw, 1.18rem) !important; }
html body main > section#faq .faq-list summary::before { font-family: inherit !important; font-size: .9rem !important; font-weight: 800; color: #b8690a !important; width: auto !important;
  padding: 4px 9px; border-radius: 999px; background: #fff4e0 !important; letter-spacing: .02em; }
html body main > section#faq .faq-list > details:nth-child(n) > summary::after { width: 32px; height: 32px; }
html body main > section#faq .faq-list > details[open]:nth-child(n) > summary::after { background-color: #f2a93b !important; border-color: #f2a93b !important;
  background-image: linear-gradient(#09182f, #09182f), linear-gradient(#09182f, #09182f) !important; }
html body main > section#faq .faq-list > details:nth-child(n) > p { padding: 0 22px 22px !important; padding-inline-start: calc(22px + 3.4ch + 18px) !important; margin-top: -4px !important; }
@media (min-width: 900px) {
  html body main > section#faq .faq-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr) !important; gap: clamp(40px, 5vw, 96px) !important; align-items: start !important; max-width: 1180px; }
  html body main > section#faq .faq-aside { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 0; position: sticky; top: 120px; }
  html body main > section#faq .faq-aside h2 { font-size: clamp(2.6rem, 3.6vw, 3.8rem) !important; line-height: 1.1 !important; }
}
html body main > section#faq .faq-aside .faq-sub { display: block !important; margin: 14px 0 26px !important; color: #4a5160 !important; font-size: 1.05rem !important; max-width: 32ch; }
/* carte « encore une question ? » */
html body main > section#faq .faq-aside .faq-ask { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; width: 100%; max-width: 340px;
  padding: 24px !important; border-radius: 20px !important; border: 0 !important; background: #09182f !important; color: #fff8e6 !important;
  box-shadow: 0 2px 6px rgba(9, 24, 47, .15), 0 26px 50px -28px rgba(9, 24, 47, .6) !important; }
html body main > section#faq .faq-aside .faq-ask > span { font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: 1.45rem; color: #f2c46b !important; line-height: 1.2; }
html body main > section#faq .faq-aside .faq-ask .btn { background: #f2a93b !important; color: #09182f !important; border: 0 !important; border-radius: 999px !important; padding: 11px 20px !important; font-weight: 700;
  box-shadow: 0 10px 20px -12px rgba(242, 169, 59, .8) !important; transition: transform .35s cubic-bezier(.22, 1, .36, 1) !important; }
html body main > section#faq .faq-aside .faq-ask .btn:hover { transform: translateY(-2px); }
html body main > section#faq .faq-aside .faq-ask .btn i { color: #09182f !important; }
html body main > section#faq .faq-list > details:nth-child(n) { width: 100% !important; align-self: stretch !important; box-sizing: border-box; }

/* FAQ v5 : un seul panneau blanc, filets fins, compact ; carte Messenger composée */
html body main > section#faq .faq-list { gap: 0 !important; background: #fff; border-radius: 24px; padding: 8px 10px; border: 1px solid rgba(9, 24, 47, .06);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 30px 60px -36px rgba(80, 50, 10, .4); }
html body main > section#faq .faq-list > details:nth-child(n) { background: transparent !important; border: 0 !important; border-radius: 16px !important; box-shadow: none !important; margin: 0 !important; position: relative; }
html body main > section#faq .faq-list > details:nth-child(n):not(:last-child)::after { content: "" !important; display: block !important; position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px; background: rgba(9, 24, 47, .08); }
html body main > section#faq .faq-list > details:first-child { border-top: 0 !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n) { background: #fff8ec !important; box-shadow: none !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n)::after { display: none !important; }
html body main > section#faq .faq-list summary { padding: 18px 16px !important; }
html body main > section#faq .faq-list > details:nth-child(n) > p { padding-bottom: 20px !important; }
/* carte Messenger : texte + bouton, mieux composée */
html body main > section#faq .faq-aside .faq-ask { max-width: 380px !important; padding: 26px 26px 24px !important; gap: 8px !important; position: relative; overflow: hidden; }
html body main > section#faq .faq-aside .faq-ask::before { content: "؟"; position: absolute; inset-inline-end: 14px; bottom: -40px; font-family: "Aref Ruqaa", serif; font-size: 9rem; line-height: 1; color: rgba(242, 196, 107, .1); pointer-events: none; }
html body main > section#faq .faq-aside .faq-ask .fq-ask-p { margin: 0 0 10px; color: rgba(255, 248, 230, .78); font-size: .98rem; line-height: 1.6; }

/* =====================================================================
   FAQ v6 : dans l'univers du site (bleu nuit + or, comme le Credo et l'accueil) — plus de panneau blanc
   ===================================================================== */
html body main > section#faq { background: radial-gradient(90% 70% at 15% 0%, #15335c 0%, #0e2442 45%, #09182f 100%) !important; color: #fff8e6; position: relative; overflow: hidden; isolation: isolate; }
html body main > section#faq::before { content: "؟"; position: absolute; z-index: -1; inset-inline-end: -2%; top: -8%; font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(22rem, 34vw, 40rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 196, 107, .14); pointer-events: none; }
html body main > section#faq .faq-aside h2, html body main > section#faq .faq-aside h2 span { color: #fff8e6 !important; }
html body main > section#faq .faq-aside .faq-sub { color: rgba(255, 248, 230, .7) !important; }
/* liste : plus de panneau, des lignes gravées */
html body main > section#faq .faq-list { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
html body main > section#faq .faq-list > details:nth-child(n) { border-radius: 0 !important; background: none !important; border-bottom: 1px solid rgba(242, 196, 107, .2) !important; transition: background .5s cubic-bezier(.22, 1, .36, 1) !important; }
html body main > section#faq .faq-list > details:first-child { border-top: 1px solid rgba(242, 196, 107, .2) !important; }
html body main > section#faq .faq-list > details:nth-child(n)::after { display: none !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n) { background: linear-gradient(90deg, rgba(242, 196, 107, 0), rgba(242, 196, 107, .08)) !important; }
html:not([dir="rtl"]) body main > section#faq .faq-list > details[open]:nth-child(n) { background: linear-gradient(270deg, rgba(242, 196, 107, 0), rgba(242, 196, 107, .08)) !important; }
html body main > section#faq .faq-list summary { color: #fff8e6 !important; padding: 24px 8px !important; font-size: clamp(1.15rem, 1.4vw, 1.45rem) !important; }
html body main > section#faq .faq-list summary:hover, html body main > section#faq .faq-list details[open] > summary { color: #f2c46b !important; }
html body main > section#faq .faq-list summary::before { background: none !important; padding: 0 !important; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important; font-size: 1.5rem !important; color: #f2c46b !important; width: 2.4ch !important; }
html body main > section#faq .faq-list > details:nth-child(n) > summary::after, html body main > section#faq .faq-list > details[open]:nth-child(n) > summary::after {
  border-color: rgba(242, 196, 107, .55) !important; background-color: transparent !important;
  background-image: linear-gradient(#f2c46b, #f2c46b), linear-gradient(#f2c46b, #f2c46b) !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n) > summary::after { background-color: rgba(242, 196, 107, .12) !important; }
html body main > section#faq .faq-list > details:nth-child(n) > p { color: rgba(255, 248, 230, .8) !important; padding-inline-start: calc(8px + 2.4ch + 18px) !important; font-size: 1.05rem !important; }
/* carte Messenger : verre sur bleu nuit, bordure dorée fine */
html body main > section#faq .faq-aside .faq-ask { background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(242, 196, 107, .3) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -36px rgba(0, 0, 0, .7) !important; }
html body main > section#faq .faq-aside .faq-ask::before { display: none; }

/* FAQ : la carte Messenger devient une bulle orange (famille « أهلا وسهلا! ») */
html body main > section#faq .faq-aside .faq-sub { color: rgba(255, 248, 230, .78) !important; }
html body main > section#faq .faq-aside .faq-ask { position: relative; overflow: visible !important; cursor: pointer; width: auto !important; max-width: 340px !important;
  background: #f2a93b !important; border: 0 !important; border-radius: 26px 26px 26px 6px !important; padding: 22px 26px 20px !important; gap: 6px !important; rotate: -3deg;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 24px 40px -18px rgba(242, 169, 59, .55) !important; transition: rotate .45s cubic-bezier(.3, 1.6, .5, 1), scale .45s cubic-bezier(.3, 1.6, .5, 1) !important; }
html[dir="rtl"] body main > section#faq .faq-aside .faq-ask { border-radius: 26px 26px 6px 26px !important; }
html body main > section#faq .faq-aside .faq-ask:hover { rotate: 1.5deg; scale: 1.04; }
html body main > section#faq .faq-aside .faq-ask > span { color: #09182f !important; font-size: 1.7rem !important; }
html body main > section#faq .faq-aside .faq-ask .fq-ask-p { color: rgba(9, 24, 47, .78) !important; margin: 0 0 6px !important; }
html body main > section#faq .faq-aside .faq-ask .btn { background: #09182f !important; color: #fff8e6 !important; box-shadow: none !important; padding: 10px 18px !important; }
html body main > section#faq .faq-aside .faq-ask .btn i { color: #f2c46b !important; }
/* petits points « en train d'écrire » */
html body main > section#faq .faq-aside .faq-ask::after { content: ""; position: absolute; top: -14px; inset-inline-end: 22px; width: 54px; height: 26px; border-radius: 14px; background:
  radial-gradient(circle, #09182f 3px, transparent 3.5px) 10px 50% / 14px 100% no-repeat, radial-gradient(circle, #09182f 3px, transparent 3.5px) 24px 50% / 14px 100% no-repeat, radial-gradient(circle, #09182f 3px, transparent 3.5px) 38px 50% / 14px 100% no-repeat, #fff8e6;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#faq .faq-aside .faq-ask { animation: fqBob 4s ease-in-out infinite; }
  @keyframes fqBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
  html body main > section#faq .faq-aside .faq-ask::after { animation: fqDots 1.4s steps(3) infinite; }
  @keyframes fqDots { 0% { opacity: 1; } 50% { opacity: .55; } 100% { opacity: 1; } }
}

/* FAQ — de l'âme : grand « ؟ » doré qui respire derrière le titre, filet doré qui se dessine au survol, × à l'ouverture, numéro qui s'illumine */
html body main > section#faq::before { content: "؟" !important; inset-inline-end: 4% !important; inset-inline-start: auto !important; top: 6% !important; font-size: clamp(16rem, 24vw, 28rem) !important;
  -webkit-text-stroke: 0 !important; color: transparent !important; background: linear-gradient(160deg, rgba(242, 196, 107, .16), rgba(242, 196, 107, .02) 70%); -webkit-background-clip: text; background-clip: text; }
@media (prefers-reduced-motion: no-preference) { html body main > section#faq::before { animation: fqBreath 9s ease-in-out infinite; } @keyframes fqBreath { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -14px; rotate: 2deg; } } }
/* filet doré qui se dessine depuis le numéro */
html body main > section#faq .faq-list > details:nth-child(n) { position: relative; }
html body main > section#faq .faq-list > details:nth-child(n) > summary { position: relative; }
html body main > section#faq .faq-list > details:nth-child(n)::before { content: "" !important; display: block !important; position: absolute; bottom: -1px; inset-inline-start: 0; height: 1.5px; width: 0;
  background: linear-gradient(90deg, #f2c46b, rgba(242, 196, 107, 0)); transition: width .7s cubic-bezier(.22, 1, .36, 1); z-index: 1; }
html[dir="rtl"] body main > section#faq .faq-list > details:nth-child(n)::before { background: linear-gradient(270deg, #f2c46b, rgba(242, 196, 107, 0)); }
html body main > section#faq .faq-list > details:nth-child(n):hover::before, html body main > section#faq .faq-list > details[open]:nth-child(n)::before { width: 100%; }
/* × à l'ouverture */
html body main > section#faq .faq-list > details:nth-child(n) > summary::after { transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), background-color .3s ease !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n) > summary::after { transform: rotate(45deg) !important; background-color: #f2a93b !important; border-color: #f2a93b !important;
  background-image: linear-gradient(#09182f, #09182f), linear-gradient(#09182f, #09182f) !important; }
/* numéro qui s'illumine */
html body main > section#faq .faq-list summary::before { transition: color .3s ease, text-shadow .4s ease, scale .4s cubic-bezier(.3, 1.5, .5, 1) !important; }
html body main > section#faq .faq-list > details[open] > summary::before, html body main > section#faq .faq-list > details:hover > summary::before { scale: 1.18; text-shadow: 0 0 18px rgba(242, 196, 107, .55); }
/* la ligne ouverte : halo doux, la réponse arrive en glissant */
html body main > section#faq .faq-list > details[open]:nth-child(n) { background: radial-gradient(80% 120% at 85% 0%, rgba(242, 196, 107, .1), transparent 70%) !important; }
html:not([dir="rtl"]) body main > section#faq .faq-list > details[open]:nth-child(n) { background: radial-gradient(80% 120% at 15% 0%, rgba(242, 196, 107, .1), transparent 70%) !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#faq .faq-list > details[open] > p { animation: fqIn2 .6s cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes fqIn2 { from { opacity: 0; translate: 0 -8px; filter: blur(3px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
}
/* devise sous la bulle */
html body main > section#faq .faq-aside .fq-motto { margin: 34px 0 0; font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(1.3rem, 1.6vw, 1.7rem); color: rgba(242, 196, 107, .85); }
html body main > section#faq .faq-aside .fq-motto::before { content: ""; display: inline-block; width: 28px; height: 1.5px; background: #f2c46b; vertical-align: middle; margin-inline-end: 12px; opacity: .7; }
html body main > section#faq::before { inset-inline-start: 3% !important; inset-inline-end: auto !important; top: 10% !important; }
html body main > section#faq .fq-motto { display: none !important; }   /* déjà présent ailleurs sur le site */
html body main > section#faq .faq-list > details:nth-child(n)::before { content: none !important; display: none !important; }   /* filet doré animé retiré */

/* FAQ — finitions : colonnes alignées en haut, survol doux, × bien visible, rythme */
@media (min-width: 900px) {
  html body main > section#faq .faq-grid { align-items: start !important; }
  html body main > section#faq .faq-aside { position: sticky; top: 130px; padding-top: 6px; }
}
html body main > section#faq { padding-bottom: calc(clamp(56px, 5vw, 88px) + var(--band-r, 0px)) !important; }
html body main > section#faq .faq-list > details:nth-child(n) > summary { border-radius: 12px; transition: background .4s cubic-bezier(.22, 1, .36, 1), color .3s ease, padding .4s cubic-bezier(.22, 1, .36, 1) !important; }
html body main > section#faq .faq-list > details:not([open]):nth-child(n) > summary:hover { background: rgba(255, 248, 230, .04) !important; padding-inline-start: 18px !important; }
html body main > section#faq .faq-list > details:nth-child(n) > summary::after, html body main > section#faq .faq-list > details[open]:nth-child(n) > summary::after {
  background-repeat: no-repeat !important; background-position: center !important; background-size: 12px 1.5px, 1.5px 12px !important; }
html body main > section#faq .faq-list > details:not([open]):nth-child(n) > summary:hover::after { background-color: rgba(242, 196, 107, .14) !important; border-color: #f2c46b !important; }

/* FAQ interactif */
html body main > section#faq::before { translate: calc(var(--fx, 0) * -40px) calc(var(--fy, 0) * -30px) !important; transition: translate 1.2s cubic-bezier(.22, 1, .36, 1); animation: none !important; }
html body main > section#faq .faq-list { position: relative; isolation: isolate; }
html body main > section#faq .faq-list::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 50%), rgba(242, 196, 107, .11), transparent 70%); }
html body main > section#faq .faq-list.lit::before { opacity: 1; }
html body main > section#faq .faq-aside .faq-ask { translate: var(--bx, 0) var(--by, 0); transition: translate .5s cubic-bezier(.22, 1, .36, 1), rotate .45s cubic-bezier(.3, 1.6, .5, 1), scale .45s cubic-bezier(.3, 1.6, .5, 1) !important; animation: none !important; }
html body main > section#faq .faq-list > details:not([open]):nth-child(n) > summary:hover { color: #f2c46b !important; }
html body main > section#faq .faq-list > details:nth-child(n) > summary:active::after { scale: .88; }

/* FAQ plus doux : lignes arrondies, filets qui s'estompent aux extrémités, survol en pilule */
html body main > section#faq .faq-list > details:nth-child(n) { border: 0 !important; border-radius: 22px !important; margin-bottom: 4px !important; }
html body main > section#faq .faq-list > details:first-child { border-top: 0 !important; }
html body main > section#faq .faq-list > details:nth-child(n):not(:last-child)::after { content: "" !important; display: block !important; position: absolute; left: 6%; right: 6%; bottom: -2px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 196, 107, .28) 20%, rgba(242, 196, 107, .28) 80%, transparent) !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n)::after, html body main > section#faq .faq-list > details:nth-child(n):hover::after { opacity: 0; }
html body main > section#faq .faq-list > details:nth-child(n) > summary { border-radius: 22px !important; }
html body main > section#faq .faq-list > details:not([open]):nth-child(n) > summary:hover { background: rgba(255, 248, 230, .06) !important; box-shadow: inset 0 0 0 1px rgba(242, 196, 107, .18); }
html body main > section#faq .faq-list > details[open]:nth-child(n) { background: rgba(255, 248, 230, .05) !important; box-shadow: inset 0 0 0 1px rgba(242, 196, 107, .22), 0 18px 40px -26px rgba(0, 0, 0, .6) !important; }
html body main > section#faq .faq-list::before { border-radius: 28px; }
/* FAQ : plus d'air et de présence */
html body main > section#faq .faq-list > details:nth-child(n) { margin-bottom: 8px !important; }
html body main > section#faq .faq-list summary { padding: 24px 22px !important; font-size: clamp(1.2rem, 1.45vw, 1.5rem) !important; }
html body main > section#faq .faq-list > details:nth-child(n) > p { font-size: clamp(1.05rem, 1.15vw, 1.15rem) !important; line-height: 1.95 !important; padding-bottom: 26px !important; padding-inline: calc(22px + 2.4ch + 18px) 70px !important; }
html body main > section#faq .faq-list > details[open]:nth-child(n) { background: linear-gradient(135deg, rgba(242, 196, 107, .1), rgba(255, 248, 230, .04) 60%) !important; }
html body main > section#faq .faq-list > details:nth-child(n) > summary::after { width: 38px !important; height: 38px !important; }

/* =====================================================================
   « أوشي » v2 : une seule déclaration typographique, centrée. Plus de polaroid collé ;
   le grand « أوشي؟ » devient un filigrane derrière la phrase.
   ===================================================================== */



/* filigrane */



/* contenu */













/* =====================================================================
   « أوشي » v3 : bande fine + paquet de cartes à balayer (ludique, compact)
   ===================================================================== */





@media (prefers-reduced-motion: no-preference) {   }



/* paquet */








 
/* tampons */




/* contrôles */
















/* =====================================================================
   « أوشي » v4 : rubans croisés (bande fine, audacieuse, ludique)
   ===================================================================== */







@media (prefers-reduced-motion: no-preference) {
  
  
  
    }






/* tampon */


/* badge tournant */




@media (prefers-reduced-motion: no-preference) {    }


















/* =====================================================================
   « أوشي » v5 : un pont entre le Credo et la FAQ — écharpe orange inclinée sur le bleu nuit
   ===================================================================== */













@media (prefers-reduced-motion: no-preference) {
  
    
  }


/* « أوشي » élevé : couture, reflet, mots qui montent, tampon qui frappe, message après 3 « أوشي! » */


 

@media (prefers-reduced-motion: no-preference) {
  
    
    
    
    
  }






/* tampon : seulement le grand « ؟ » (qui devient « ! »), la phrase commence déjà par « أوشي » */


/* raccord sans couture : la FAQ commence dans le même bleu nuit que l'écharpe */
html body main > section#faq { background: linear-gradient(180deg, #09182f 0%, rgba(9, 24, 47, 0) 22%), radial-gradient(90% 70% at 15% 20%, #15335c 0%, #0e2442 45%, #09182f 100%) !important; }

/* « أوشي » — finitions : compteur caché à 0, tampon double anneau, phrase plus présente, festons plus fins */







 




/* présentateur : surgit derrière l'écharpe, côté gauche, et désigne la question */










/* personnages : surgissent quand ils arrivent à l'écran ; petit sursaut au survol ; masqués sur téléphone */
html body main > section:is(#join, #faq, #contact) { position: relative; }
html body main > section .bn { position: absolute; z-index: 4; width: auto; max-width: none; pointer-events: auto; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35)); opacity: 0;
  transition: translate .9s cubic-bezier(.3, 1.5, .5, 1), opacity .5s ease, rotate .4s ease; }
html body main > section .bn.bn-in { opacity: 1; translate: 0 0 !important; }
html body main > section .bn:hover { rotate: -4deg; }
/* ça regarde le formulaire, depuis le bord droit de l'écran */
html body main > section#join .bn-peek { right: 0; top: 34%; height: clamp(150px, 12vw, 210px); translate: 110% 0; }
/* le petit pas de danse en bas de la FAQ */

/* le grand coup de pied à côté de « JCI × شريكنا » */

@media (max-width: 999px) { html body main > section .bn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { html body main > section .bn { transition: none; opacity: 1; translate: 0 0 !important; } }
html body main > section#join .bn-peek { top: 18% !important; }

html body main > section img.bn { position: absolute !important; margin: 0 !important; }



/* poses mieux choisies : regard malicieux qui monte du bas de la FAQ ; « au revoir » qui sort de derrière le drapé */
html body main > section#faq .bn-sly { left: clamp(20px, 6vw, 120px); bottom: calc(var(--band-r, 0px) - 2px); height: clamp(150px, 12vw, 210px); translate: 0 100%; }
html body main > section#faq .bn-sly.bn-in { translate: 0 0 !important; }
html body main > section#contact .bn-wave { left: clamp(20px, 10vw, 220px); bottom: -70px; height: clamp(170px, 13vw, 230px); translate: 0 60%; z-index: 4; }
.fy-drape { position: relative; z-index: 9 !important; }
html body main > section .bn-sly:hover, html body main > section .bn-wave:hover { rotate: 3deg; }
@media (prefers-reduced-motion: no-preference) { html body main > section#contact .bn-wave.bn-in { animation: bnWave 2.4s ease-in-out 1s 2; transform-origin: 50% 100%; } @keyframes bnWave { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 75% { rotate: 4deg; } } }

/* bulles des personnages (famille « أهلا وسهلا! ») */
.bn-say { position: absolute; z-index: 8; padding: 6px 14px 8px; border-radius: 16px 16px 16px 4px; background: #f2a93b; color: #09182f; white-space: nowrap; pointer-events: none;
  font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: 1.1rem; line-height: 1.2; box-shadow: 0 10px 22px -12px rgba(5, 20, 40, .6);
  opacity: 0; scale: .4; rotate: -10deg; transition: opacity .3s ease .9s, scale .5s cubic-bezier(.3, 1.6, .5, 1) .9s, rotate .5s cubic-bezier(.3, 1.6, .5, 1) .9s; }
html[dir="rtl"] .bn-say { border-radius: 16px 16px 4px 16px; }
html:not([lang="ar"]) .bn-say { font-family: "Caveat", cursive; font-size: 1.35rem; }
.bn-say.on { opacity: 1; scale: 1; rotate: -4deg; }
/* positions */

html body main > section#join .bs-peek { right: clamp(120px, 10vw, 180px); top: calc(18% - 10px); rotate: 6deg; }
html body main > section#join .bs-peek.on { rotate: 5deg; }
html body main > section#faq .bs-sly { left: calc(clamp(20px, 6vw, 120px) + clamp(130px, 10vw, 180px)); bottom: calc(var(--band-r, 0px) + clamp(120px, 10vw, 170px)); background: #fff8e6; }
html body main > section#contact .bs-wave { left: calc(clamp(20px, 10vw, 220px) + clamp(140px, 11vw, 190px)); bottom: clamp(70px, 7vw, 120px); }
@media (max-width: 999px) { .bn-say { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .bn-say { transition: none; } }

/* tête à l'envers qui pend du haut de « انضمّ » et espionne le formulaire */
html body main > section#join .bn-hang { right: auto !important; left: clamp(40px, 9vw, 200px) !important; top: 0 !important; height: clamp(140px, 11vw, 190px) !important; translate: 0 -105% !important; transform-origin: 50% 0; }
html body main > section#join .bn-hang.bn-in { translate: 0 0 !important; }
@media (prefers-reduced-motion: no-preference) { html body main > section#join .bn-hang.bn-in { animation: bnSwing 3.6s ease-in-out .9s infinite; } @keyframes bnSwing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } } }
html body main > section#join .bs-peek { right: auto !important; top: clamp(70px, 6vw, 110px) !important; left: calc(clamp(40px, 9vw, 200px) + clamp(150px, 11vw, 200px)) !important; }
html body main > section#join .bn-hang { left: auto !important; right: clamp(40px, 9vw, 200px) !important; }
html body main > section#join .bs-peek { left: auto !important; right: calc(clamp(40px, 9vw, 200px) + clamp(150px, 11vw, 200px)) !important; }

/* personnages : style autocollant (liseré blanc + ombre douce), vie au repos, réaction au survol */
html body main > section .bn {
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 14px 18px rgba(0, 0, 0, .35)) !important; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#faq .bn-sly.bn-in { animation: bnBreath 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes bnBreath { 0%, 100% { scale: 1; } 50% { scale: 1.025 1.04; } }
  html body main > section .bn.hop { animation: bnHop .5s cubic-bezier(.3, 1.6, .5, 1) !important; }
  @keyframes bnHop { 40% { translate: 0 -14px; } }
  html body main > section#join .bn-hang.hop { animation: bnShake .5s ease !important; }
  @keyframes bnShake { 25% { rotate: -10deg; } 75% { rotate: 10deg; } }
  .bn-say.on { animation: bsBob 3.2s ease-in-out 1.4s infinite; }
  @keyframes bsBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
  .bn-say.alt { animation: bsPop .35s cubic-bezier(.3, 1.6, .5, 1) !important; }
  @keyframes bsPop { from { scale: .8; } to { scale: 1; } }
}
.bn-say { filter: none; }
.bn-say::after { content: ""; position: absolute; bottom: -7px; inset-inline-start: 14px; width: 14px; height: 14px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
html[dir="rtl"] .bn-say::after { clip-path: polygon(0 0, 100% 0, 100% 100%); }
/* la tête pend du bord de la carte, au-dessus des photos */
html body main > section#join .bn-hang { z-index: 6 !important; height: clamp(130px, 10vw, 170px) !important; }
html body main > section#join .bn-hang { height: clamp(96px, 7vw, 122px) !important; }
html body main > section .bn-say { position: absolute !important; display: block !important; margin: 0 !important; }

/* Bulles façon sticker « Heee? » : typo ronde très grasse, carte claire, ombre franche */
html body main > section .bn-say, html body .bn-say { font-family: "Aref Ruqaa", "Reem Kufi", serif !important; font-weight: 800 !important; font-size: clamp(1.15rem, 1.25vw, 1.45rem) !important; line-height: 1 !important; letter-spacing: -.01em; color: #0a1426 !important; background: #f4f4f2 !important; padding: .42em .7em .5em !important; border-radius: 18px !important; box-shadow: 0 5px 0 rgba(0, 0, 0, .22), 0 14px 24px -10px rgba(0, 0, 0, .35) !important; }
html body .bn-say::after { bottom: -9px !important; width: 16px !important; height: 16px !important; inset-inline-start: 18px !important; background: #f4f4f2 !important; }
html body .bn-say.alt { background: #fff !important; }

/* Critique bulles : contour encre (lisible sur blanc, beige et marine), queue tournée vers celui qui parle, inclinaisons variées */
html body .bn-say { border: 2.5px solid #0a1426 !important; background: #fff !important; box-shadow: 3px 4px 0 #0a1426, 0 14px 24px -10px rgba(0, 0, 0, .35) !important; padding: .38em .7em .46em !important; }
html body .bn-say::before, html body .bn-say::after { content: "" !important; position: absolute !important; top: auto !important; left: auto !important; right: auto !important; inset-inline-start: auto !important; inset-inline-end: auto !important; clip-path: polygon(0 0, 100% 0, 0 100%) !important; }
html body .bn-say::before { bottom: -15px !important; width: 20px !important; height: 15px !important; background: #0a1426 !important; }
html body .bn-say::after { bottom: -9.5px !important; width: 13px !important; height: 10px !important; background: #fff !important; }
html body .bn-say.bs-guy::before, html body .bn-say.bs-sly::before, html body .bn-say.bs-wave::before { left: 14px !important; }
html body .bn-say.bs-guy::after, html body .bn-say.bs-sly::after, html body .bn-say.bs-wave::after { left: 17.5px !important; }
html body .bn-say.bs-peek::before { right: 14px !important; clip-path: polygon(0 0, 100% 0, 100% 100%) !important; }
html body .bn-say.bs-peek::after { right: 17.5px !important; clip-path: polygon(0 0, 100% 0, 100% 100%) !important; }
html body .bn-say.bs-guy.on { rotate: -5deg !important; }
html body .bn-say.bs-peek.on { rotate: 4deg !important; }
html body .bn-say.bs-sly.on { rotate: -3deg !important; }
html body .bn-say.bs-wave.on { rotate: 6deg !important; }
html body .bn-say.alt { background: #f2a93b !important; }
html body .bn-say.alt::after { background: #f2a93b !important; }

/* Bulle qui « sort » de la bouche : ressort depuis la pointe de la queue */
html body .bn-say { transform-origin: 18px 115% !important; }
html body .bn-say.bs-peek { transform-origin: calc(100% - 18px) 115% !important; }
html body .bn-say.on { transition: opacity .25s ease, scale .55s cubic-bezier(.3, 1.7, .45, 1), rotate .55s cubic-bezier(.3, 1.7, .45, 1) !important; }
html body .bn-say:not(.on) { scale: .2 !important; rotate: 0deg !important; }
@media (prefers-reduced-motion: no-preference) { html body .bn-say.alt { animation: bsPop2 .45s cubic-bezier(.3, 1.8, .45, 1) !important; } @keyframes bsPop2 { 0% { scale: .6; } 100% { scale: 1; } } }

/* Ancrage des personnages dans la mise en page (plus de collage dans le vide) */
/* Penseur : derrière la carte orange, seuls tête et épaules dépassent */





/* Tête pendue : accrochée au rebord marine, plus grande, balancier depuis le cou */
html body main > section#join .bn-hang { height: clamp(120px, 8.5vw, 150px) !important; translate: 0 -100% !important; transform-origin: 50% 0 !important; z-index: 6 !important; }
html body main > section#join .bn-hang.bn-in { translate: 0 0 !important; }
/* sa bulle est dessous : la queue monte vers la tête */
html body .bn-say.bs-peek::before { top: -15px !important; bottom: auto !important; left: 26px !important; right: auto !important; clip-path: polygon(0 100%, 100% 100%, 0 0) !important; }
html body .bn-say.bs-peek::after { top: -9.5px !important; bottom: auto !important; left: 29.5px !important; right: auto !important; clip-path: polygon(0 100%, 100% 100%, 0 0) !important; }
html body .bn-say.bs-peek { transform-origin: 30px -20% !important; }

/* Présentateur : il s'enfonce un peu plus derrière la bande, comme s'il la tenait */


/* Répartition : chaque personnage accroché à un élément de son chapitre */
html body main > section#why .wrap > img.bn-sly { position: absolute !important; z-index: -1 !important; height: clamp(150px, 11vw, 200px) !important; translate: 45% 0 !important; }
html body main > section#why .wrap > img.bn-sly.bn-in { translate: 0 0 !important; }


html body main > section#team > img.bn-hang { position: absolute !important; z-index: 6 !important; height: clamp(110px, 8vw, 140px) !important; translate: 0 -40% !important; transform-origin: 50% 0 !important; }
html body main > section#team > img.bn-hang.bn-in { translate: 0 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#team > img.bn-hang.bn-in { animation: bnSwing 3.6s ease-in-out .9s infinite; }
  html body main > section#why .wrap > img.bn-sly.bn-in { animation: bnBreath 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
  html body main > section .bn.hop { animation: bnHop .5s cubic-bezier(.3, 1.6, .5, 1) !important; }
  html body main > section#team > img.bn-hang.hop { animation: bnShake .5s ease !important; }
}
html body main > section .bn-say { z-index: 8 !important; }
/* présentateur : bulle à droite de lui, queue à gauche ; tête pendue : bulle dessous */

/* Penseur : le bas du buste se fond au lieu d'être coupé net */
html body main > section#why .wrap > img.bn-sly { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }

/* Poses accrochées : chaque personnage est caché en partie par la carte derrière laquelle il se tient */
html body main > section#why .wrap > img.bn-side { position: absolute !important; z-index: -1 !important; height: clamp(230px, 16vw, 300px) !important; width: auto !important; translate: 70% 0 !important; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); }
html body main > section#projects .wrap > img.bn-look { position: absolute !important; z-index: -1 !important; height: clamp(170px, 11.5vw, 220px) !important; width: auto !important; translate: 0 70% !important; }

html body main > section#why .wrap > img.bn-side.bn-in, html body main > section#projects .wrap > img.bn-look.bn-in { translate: 0 0 !important; }
html body main > section img.bn-side, html body main > section img.bn-look { transition: translate .7s cubic-bezier(.3, 1.4, .5, 1) .15s, opacity .3s ease .15s !important; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28)) !important; }
html body main > section img.bn-side:hover, html body main > section img.bn-look:hover { rotate: 0deg !important; }
@media (prefers-reduced-motion: no-preference) {
  
  html body main > section img.bn-side.hop, html body main > section img.bn-look.hop { animation: bnHop .5s cubic-bezier(.3, 1.6, .5, 1) !important; }
}
/* bulle de l'équipe : à côté de la tête, queue en bas à gauche comme les autres */
html body main > section#team .bn-say.bs-peek::before { top: auto !important; bottom: -15px !important; left: 14px !important; clip-path: polygon(0 0, 100% 0, 0 100%) !important; }
html body main > section#team .bn-say.bs-peek::after { top: auto !important; bottom: -9.5px !important; left: 17.5px !important; clip-path: polygon(0 0, 100% 0, 0 100%) !important; }
html body main > section#team .bn-say.bs-peek { transform-origin: 18px 115% !important; }
/* bulle du curieux : au-dessus de lui, queue vers le bas à droite (vers sa tête) */
html body main > section#why .bn-say.bs-sly::before { left: auto !important; right: 22px !important; clip-path: polygon(0 0, 100% 0, 100% 100%) !important; }
html body main > section#why .bn-say.bs-sly::after { left: auto !important; right: 25.5px !important; clip-path: polygon(0 0, 100% 0, 100% 100%) !important; }

/* ===== Stickers façon WhatsApp : contour blanc découpé + gros mot rouge bordé de blanc ===== */
html body main > section img.stk { filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 10px 16px rgba(0, 0, 0, .28)) !important; }
html body main > section img.bn-eeh { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3)) !important; }
html body .bn-say { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
  font-family: "Aref Ruqaa", "Reem Kufi", serif !important; font-weight: 800 !important; font-size: clamp(1.7rem, 2.1vw, 2.5rem) !important; line-height: 1 !important; white-space: nowrap;
  color: #d7263d !important; -webkit-text-stroke: 9px #fff; paint-order: stroke fill; text-shadow: 0 5px 0 rgba(9, 24, 47, .22), 0 10px 18px rgba(0, 0, 0, .25) !important; transform-origin: 50% 50% !important; z-index: 9 !important; }
html body .bn-say::before, html body .bn-say::after { display: none !important; }
html body .bn-say.alt { background: none !important; color: #0a1426 !important; }
html body .bn-say.bs-sly.on { rotate: -6deg !important; } html body .bn-say.bs-guy.on { rotate: -4deg !important; } html body .bn-say.bs-peek.on { rotate: 5deg !important; } html body .bn-say.bs-tilt.on { rotate: -5deg !important; } html body .bn-say.bs-wave.on { rotate: 4deg !important; }

/* tête penchée : derrière le coin haut-gauche de la carte « أبعد من قليبية » */

/* coucou de l'équipe : derrière le haut des cartes des membres */
html body main > section#team > img.bn-hello { position: absolute !important; z-index: -1 !important; height: clamp(170px, 11vw, 210px) !important; width: auto !important; translate: 0 70% !important; }
/* « Eeeeeeeh! » : collé de travers sur le coin de la carte Messenger */
html body main > section#faq .faq-ask > img.bn-eeh { position: absolute !important; z-index: 3 !important; height: clamp(120px, 8vw, 150px) !important; width: auto !important; top: -86px !important; left: -70px !important; right: auto !important; rotate: -10deg; scale: .4; opacity: 0; transition: scale .5s cubic-bezier(.3, 1.8, .45, 1) .2s, opacity .2s ease .2s !important; }
html body main > section#faq .faq-ask > img.bn-eeh.bn-in { scale: 1; opacity: 1; }
html body main > section#faq .faq-ask > img.bn-eeh:hover { rotate: -4deg; }
html body main > section#team > img.bn-hello.bn-in { translate: 0 0 !important; }
html body main > section img.bn-tilt, html body main > section img.bn-hello { transition: translate .7s cubic-bezier(.3, 1.4, .5, 1) .15s, opacity .3s ease .15s !important; }
@media (prefers-reduced-motion: no-preference) { html body main > section img.bn-tilt.hop, html body main > section img.bn-hello.hop { animation: bnHop .5s cubic-bezier(.3, 1.6, .5, 1) !important; } }
@media (max-width: 999px) { html body main > section img.stk { display: none !important; } }

/* mots-stickers : spécificité au niveau des anciennes règles de bulle pour qu'elles ne reprennent pas le dessus */
html body main > section .bn-say, html body main > section .bn-say.alt { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
  font-family: "Aref Ruqaa", "Reem Kufi", serif !important; font-weight: 800 !important; font-size: clamp(1.8rem, 2.2vw, 2.6rem) !important; line-height: 1.1 !important;
  color: #d7263d !important; -webkit-text-stroke: 10px #fff !important; paint-order: stroke fill !important; text-shadow: 0 5px 0 rgba(9, 24, 47, .2), 0 12px 20px rgba(0, 0, 0, .22) !important; }
html body main > section .bn-say.alt { color: #0a1426 !important; }
html body main > section#faq .faq-ask > img.bn-eeh { top: -58px !important; left: -84px !important; }

/* Footer : le « Big Hi » sort de derrière le drapé, main levée */
html body main > section#contact img.bn-wave { height: clamp(190px, 13vw, 250px) !important; bottom: -64px !important; left: clamp(40px, 9vw, 200px) !important; }
@media (prefers-reduced-motion: no-preference) { html body main > section#contact .bn-wave.bn-in { animation: bnWave 2.4s ease-in-out 1s 2 !important; transform-origin: 50% 100%; } }

/* Téléphone : 3 stickers seulement, plus petits (jumelles, « Eeeeeeeh! », au revoir) */
@media (max-width: 999px) {
  html body main > section#projects .wrap > img.bn-look.stk, html body main > section#faq .faq-ask > img.bn-eeh.stk, html body main > section#contact img.bn-wave.stk { display: block !important; }
  html body main > section#projects .bn-say.bs-guy, html body main > section#contact .bn-say.bs-wave { display: block !important; }
  html body main > section#projects .wrap > img.bn-look { height: 118px !important; }
  html body main > section#faq .faq-ask > img.bn-eeh { height: 96px !important; top: -66px !important; left: auto !important; right: -6px !important; rotate: 8deg; }
  html body main > section#contact img.bn-wave { height: 130px !important; bottom: -40px !important; left: 14px !important; }
  html body main > section .bn-say { font-size: 1.45rem !important; -webkit-text-stroke: 7px #fff !important; }
}
@media (max-width: 999px) { html body main > section .bn-say:not(.bs-guy):not(.bs-wave) { display: none !important; } }






/* Footer : le bas du corps se dissout dans le drapé (plus de coupe nette visible à travers le satin translucide) */
html body main > section#contact img.bn-wave { bottom: -78px !important; -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .35) 74%, transparent 86%); mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .35) 74%, transparent 86%); }

/* Footer v2 : plus grand, épaules hors du drapé, plus proche du bouton « يلّا نحكيو! », et il joue à cache-cache */
html body main > section#contact img.bn-wave { height: clamp(240px, 16vw, 310px) !important; bottom: -92px !important; left: clamp(120px, 20vw, 420px) !important; -webkit-mask-image: linear-gradient(to bottom, #000 64%, rgba(0, 0, 0, .35) 78%, transparent 88%); mask-image: linear-gradient(to bottom, #000 64%, rgba(0, 0, 0, .35) 78%, transparent 88%); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#contact .bn-wave.bn-in { animation: bnPeekaboo 7s cubic-bezier(.4, 0, .2, 1) 2.2s infinite !important; transform-origin: 50% 100%; }
  @keyframes bnPeekaboo {
    0%, 62%, 100% { translate: 0 0; rotate: 0deg; }
    68%, 74% { translate: 0 46%; rotate: 0deg; }   /* il se cache sous le drapé */
    80% { translate: 0 -5%; rotate: -4deg; }        /* et ressort d'un coup */
    85% { translate: 0 0; rotate: 4deg; }
    90% { rotate: -3deg; } 95% { rotate: 2deg; }
  }
  html body main > section#contact .bn-wave.hop { animation: bnHop .5s cubic-bezier(.3, 1.6, .5, 1) !important; }
}
@media (max-width: 999px) { html body main > section#contact img.bn-wave { height: 140px !important; bottom: -44px !important; left: 14px !important; } }

/* ===== Réduction générale : stickers et mots plus discrets ===== */
html body main > section#why .wrap > img.bn-side { height: clamp(180px, 12vw, 225px) !important; }
html body main > section#projects .wrap > img.bn-look { height: clamp(130px, 8.6vw, 165px) !important; }

html body main > section#team > img.bn-hello { height: clamp(130px, 8.4vw, 160px) !important; }
html body main > section#faq .faq-ask > img.bn-eeh { height: clamp(96px, 6.2vw, 118px) !important; top: -50px !important; left: -64px !important; }
html body main > section .bn-say, html body main > section .bn-say.alt { font-size: clamp(1.2rem, 1.4vw, 1.65rem) !important; -webkit-text-stroke: 7px #fff !important; text-shadow: 0 3px 0 rgba(9, 24, 47, .18), 0 8px 14px rgba(0, 0, 0, .18) !important; }

/* Footer : coucou derrière le bouton « يلّا نحكيو! » (le bouton cache le bas du corps) */




html body main > section#contact .pt-txt > .bn-say.bs-wave { z-index: 3 !important; }
@media (max-width: 999px) {
  
  
  html body main > section .bn-say { font-size: 1.15rem !important; -webkit-text-stroke: 6px #fff !important; }
  html body main > section#projects .wrap > img.bn-look { height: 104px !important; }
  html body main > section#faq .faq-ask > img.bn-eeh { height: 84px !important; top: -58px !important; left: auto !important; right: -4px !important; }
}

/* Footer : plus de personnage (retiré) */

/* Bloc partenaire : sticker carré pouce + clin d'œil, bord blanc épais, collé de travers */
html body main > section#contact .pt-txt > img.bn-deal { position: absolute !important; z-index: 2 !important; width: clamp(120px, 7.6vw, 150px) !important; height: auto !important; border: 5px solid #fff; border-radius: 22px; box-shadow: 0 10px 22px -8px rgba(9, 24, 47, .4), 0 2px 0 rgba(9, 24, 47, .08); filter: none !important; rotate: -8deg; scale: .4; opacity: 0; transition: scale .55s cubic-bezier(.3, 1.7, .45, 1) .25s, opacity .2s ease .25s, rotate .3s ease !important; }
html body main > section#contact .pt-txt > img.bn-deal.bn-in { scale: 1; opacity: 1; }
html body main > section#contact .pt-txt > img.bn-deal:hover { rotate: -3deg; }
html body main > section#contact .pt-txt > .bn-say.bs-deal { z-index: 3 !important; }
html body .bn-say.bs-deal.on { rotate: 5deg !important; }
@media (max-width: 999px) {
  html body main > section#contact .pt-txt > img.bn-deal { display: none !important; }
}

/* « خلّيني نخمّم… » : derrière le haut de la carte « انضمّ » (la carte, z 1, cache son buste) */
html body main > section#join > img.bn-think2 { position: absolute !important; z-index: 0 !important; height: clamp(150px, 9.6vw, 185px) !important; width: auto !important; translate: 0 60% !important; transition: translate .7s cubic-bezier(.3, 1.4, .5, 1) .15s, opacity .3s ease .15s !important; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14%); mask-image: linear-gradient(to left, transparent 0, #000 14%); }
html body main > section#join > img.bn-think2.bn-in { translate: 0 0 !important; }
/* « وبعد؟ » : derrière le haut de la rangée d'actualités */

html body main > section#news .wrap > img.bn-then { position: absolute !important; height: clamp(140px, 9vw, 170px) !important; width: auto !important; translate: 0 60% !important; transition: translate .7s cubic-bezier(.3, 1.4, .5, 1) .15s, opacity .3s ease .15s !important; }
html body main > section#news .wrap > img.bn-then.bn-in { translate: 0 0 !important; }
html body main > section#news .news-grid .post { z-index: 1; }
/* « يعيشك! » : les yeux dépassent du drapé (z 9) */
html body main > section#contact > img.bn-thx { position: absolute !important; z-index: 4 !important; height: clamp(84px, 5.6vw, 104px) !important; width: auto !important; translate: 0 70% !important; transition: translate .8s cubic-bezier(.3, 1.4, .5, 1) .3s, opacity .3s ease .3s !important; }
html body main > section#contact > img.bn-thx.bn-in { translate: 0 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section img.bn-think2.hop, html body main > section img.bn-then.hop, html body main > section img.bn-thx.hop { animation: bnHop .5s cubic-bezier(.3, 1.6, .5, 1) !important; }
}

/* Yeux « يعيشك! » : pas de contour blanc sous la coupe (c'est lui qui dessinait la ligne), bas adouci, un peu plus enfoncés dans le satin */
html body main > section#contact > img.bn-thx { filter: drop-shadow(0 -3px 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 -6px 12px rgba(0, 0, 0, .18)) !important; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); margin-top: 14px !important; }

/* Yeux « يعيشك! » : sans filtre ni masque (ils dessinaient un cadre), plus hauts pour que les yeux sortent du drapé */
html body main > section#contact > img.bn-thx { filter: none !important; -webkit-mask-image: none !important; mask-image: none !important; margin-top: 0 !important; }

/* « يعيشك! » v2 : sourire timide, buste caché dans le satin opaque, contour sticker normal */
html body main > section#contact > img.bn-thx { height: clamp(190px, 12vw, 230px) !important; filter: drop-shadow(0 -3px 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 -4px 14px rgba(0, 0, 0, .18)) !important; }

/* « يعيشك! » à droite : le bas du buste se dissout dans le satin (là, le drapé est translucide plus bas) */
html body main > section#contact > img.bn-thx { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 88%) !important; mask-image: linear-gradient(to bottom, #000 55%, transparent 88%) !important; }

/* « يعيشك! » v3 : devant le drapé, sans filtre (le filtre + masque dessinait un cadre), le buste se fond dans le satin */
html body main > section#contact > img.bn-thx { z-index: 10 !important; filter: none !important; -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .55) 70%, transparent 90%) !important; mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .55) 70%, transparent 90%) !important; }
html body main > section#contact > .bn-say.bs-thx { z-index: 11 !important; }

/* Contour blanc désormais gravé dans l'image : plus de filtre CSS là où il y a un fondu (sinon Chrome dessine la boîte) */
html body main > section#why .wrap > img.bn-side, html body main > section#join > img.bn-think2 { filter: none !important; }

/* mots en lettres latines sur la page arabe (« Interresting! ») : la ponctuation reste à sa place */
html body main > section .bn-say { unicode-bidi: plaintext; }


/* ===== Finition commune des 5 stickers ===== */
/* contour blanc gravé dans chaque image : plus aucun filtre CSS (net partout, pas de cadre fantôme dans Chrome) ; une ombre douce seulement là où il n'y a pas de fondu */
html body main > section img.stk { filter: none !important; }
html body main > section#projects .wrap > img.bn-look, html body main > section#team > img.bn-hello { filter: drop-shadow(0 8px 12px rgba(9, 24, 47, .22)) !important; }
/* entrée : même ressort pour tous, le mot arrive juste après (comme s'il le disait) */
html body main > section img.stk { transition: translate .75s cubic-bezier(.3, 1.45, .5, 1) .1s, opacity .3s ease .1s !important; }
html body main > section .bn-say { transition: opacity .25s ease .55s, scale .5s cubic-bezier(.3, 1.8, .45, 1) .55s, rotate .5s cubic-bezier(.3, 1.8, .45, 1) .55s !important; }
/* respiration légère et commune, le mot flotte doucement */
@media (prefers-reduced-motion: no-preference) {
  html body main > section img.stk.bn-in:not(.hop) { animation: stkBreath 5s ease-in-out 1.2s infinite !important; transform-origin: 50% 100%; }
  @keyframes stkBreath { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(-1deg); } }
  html body main > section .bn-say.on:not(.alt) { animation: sayFloat 3.6s ease-in-out 1.4s infinite !important; }
  @keyframes sayFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
}


/* « شوفلي حل » : l'épaule droite est coupée dans la photo d'origine → fondu plus large, plus de bord net */
html body main > section#join > img.bn-think2 { -webkit-mask-image: linear-gradient(to left, transparent 0, rgba(0, 0, 0, .35) 12%, #000 34%) !important; mask-image: linear-gradient(to left, transparent 0, rgba(0, 0, 0, .35) 12%, #000 34%) !important; }

/* ========== « من نحن » : carte en couleur, dans la palette des piliers (marine JCI #1F4A8A) ==========
   Le bleu profond répond au bois chaud de la photo du bureau ; titre blanc, derja et lien en or des piliers.
   (Essai sarcelle refusé par l'utilisatrice le 2026-11-14.) */
/* Verre givré : marine translucide (plus léger en haut, sur la photo ; plus dense en bas, sur le blanc),
   flou + saturation de ce qui passe dessous, liseré de lumière et ombres superposées teintées marine. */
html body main > section#about .about-card:not(#_) {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(40, 150, 220, .42) 0%, rgba(40, 150, 220, 0) 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(8, 24, 56, .55) 0%, rgba(8, 24, 56, 0) 70%),
    linear-gradient(170deg, rgba(28, 78, 160, .74) 0%, rgba(22, 64, 132, .88) 38%, rgba(15, 45, 98, .95) 100%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) brightness(.9) !important;
  backdrop-filter: blur(28px) saturate(140%) brightness(.9) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-top-color: rgba(255, 255, 255, .38) !important;
  color: #fff !important;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 -30px 60px -40px rgba(5, 18, 40, .55),
    0 2px 6px -2px rgba(16, 47, 96, .25),
    0 18px 36px -18px rgba(16, 47, 96, .45),
    0 48px 90px -40px rgba(16, 47, 96, .6) !important;
}
/* reflet givré : lumière diagonale douce + halo qui suit le pointeur (--mx/--my posés par le script de index.html)
   + filet d'or sur l'arête haute, comme une lumière chaude qui accroche la tranche du verre */
html body main > section#about .about-card:not(#_)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(237, 194, 19, 0) 0%, rgba(237, 194, 19, .85) 50%, rgba(237, 194, 19, 0) 100%) 50% 0 / 70% 2px no-repeat,
    radial-gradient(420px circle at var(--mx, 85%) var(--my, -10%), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%),
    linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 26%, rgba(255, 255, 255, 0) 48%);
}
/* survol : la carte se soulève, l'ombre s'allonge */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body main > section#about .about-card:not(#_) { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease !important; }
  html body main > section#about .about-card:not(#_):hover {
    transform: translateY(-6px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -30px 60px -40px rgba(5, 18, 40, .55),
      0 4px 10px -4px rgba(16, 47, 96, .3), 0 26px 48px -20px rgba(16, 47, 96, .5), 0 64px 110px -44px rgba(16, 47, 96, .65) !important;
  }
}
/* grain de givre : texture très fine, à peine visible, qui donne la matière du verre dépoli */
html body main > section#about .about-card:not(#_)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* navigateurs sans flou d'arrière-plan : on garde un marine plein, lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body main > section#about .about-card:not(#_) { background: linear-gradient(160deg, #1f4a8a 0%, #173d77 55%, #102f60 100%) !important; }
}
html body main > section#about .about-card:not(#_) h2 { text-shadow: 0 2px 14px rgba(5, 18, 40, .35); }
html body main > section#about .about-card:not(#_) h2,
html body main > section#about .about-card:not(#_) h2 * { color: #fff !important; }
html body main > section#about .about-card:not(#_) .derja { color: #edc213 !important; }
html body main > section#about .about-card:not(#_) .about-lead { color: rgba(255, 255, 255, .84) !important; }
/* lien → bouton de verre avec flèche (la flèche est en CSS : i18n remplace le texte du lien) */
html body main > section#about .about-card:not(#_) .about-link {
  display: inline-flex !important; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px 0 22px !important; margin-top: 4px !important;
  color: #fff !important; font-weight: 700; text-decoration: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24) !important; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 20px -12px rgba(5, 18, 40, .6);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
html[dir="rtl"] body main > section#about .about-card:not(#_) .about-link { padding: 0 22px 0 10px !important; }
html body main > section#about .about-card:not(#_) .about-link::after {
  content: ""; display: block; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: #edc213 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2d62' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
html[dir="rtl"] body main > section#about .about-card:not(#_) .about-link::after { transform: scaleX(-1); }
html body main > section#about .about-card:not(#_) .about-link:hover,
html body main > section#about .about-card:not(#_) .about-link:focus-visible { background: rgba(255, 255, 255, .18); border-color: rgba(237, 194, 19, .7) !important; color: #fff !important; }
html body main > section#about .about-card:not(#_) .about-link:hover::after { transform: translateX(4px); }
html[dir="rtl"] body main > section#about .about-card:not(#_) .about-link:hover::after { transform: scaleX(-1) translateX(4px); }
html body main > section#about .about-card:not(#_) .about-link:focus-visible { outline: 2px solid #edc213; outline-offset: 3px; }

/* « من نحن » : rythme vertical revu — titre + derja groupés, puis texte, puis bouton ; marges intérieures plus généreuses */
html body main > section#about .about-card:not(#_) { padding: clamp(30px, 3.4vw, 50px) clamp(28px, 3.8vw, 56px) clamp(30px, 3.4vw, 46px) !important; }
html body main > section#about .about-card:not(#_) h2 { font-size: clamp(2.2rem, 3.4vw, 3rem) !important; line-height: 1.1 !important; margin: 0 0 6px !important; }
html body main > section#about .about-card:not(#_) .derja { font-size: clamp(1.35rem, 1.9vw, 1.65rem) !important; margin: 0 0 clamp(16px, 1.8vw, 22px) !important; line-height: 1.3 !important; }
html body main > section#about .about-card:not(#_) .about-lead { font-size: clamp(1.04rem, 1.3vw, 1.16rem) !important; line-height: 1.8 !important; max-width: 46ch; margin: 0 0 clamp(22px, 2.4vw, 30px) !important; }
html[lang="ar"] body main > section#about .about-card:not(#_) .about-lead { line-height: 1.95 !important; }

/* Ruban « أكثر من منظّمة، عائلة » : photos nettes (vignettes en double résolution) et couleurs naturelles,
   plus de voile sépia ; fin liseré intérieur pour détacher la photo du papier du polaroïd */
html body main > .ribbon .rb-glass .rb-photo img:not(#_) { filter: saturate(1.06) contrast(1.04) !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); image-rendering: auto; }
html body main > .ribbon .rb-glass .rb-photo:hover img:not(#_) { filter: saturate(1.12) contrast(1.05) !important; }

/* Ruban : un seul format pour tous les tirages (4:3) ; les vignettes sont déjà recadrées en 4:3,
   avec un cadrage choisi photo par photo pour garder les visages (aucun rognage supplémentaire ici) */
html body main > .ribbon .rb-glass .rb-photo > img:not(#_) { height: clamp(112px, 10vw, 146px) !important; width: auto !important; aspect-ratio: 4 / 3; max-width: none !important; object-fit: cover !important; }
@media (max-width: 860px) { html body main > .ribbon .rb-glass .rb-photo > img:not(#_) { height: 96px !important; } }

/* ===== Ruban « أكثر من منظّمة، عائلة » : même langage que la carte « من نحن » =====
   Bande en verre givré marine : les mots dorés qui passent dessous deviennent une lueur floue, plus de texte fantôme sur le fil. */
html body main > .ribbon .rb-glass:not(#_) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 28%),
    linear-gradient(90deg, rgba(16, 47, 96, .9), rgba(28, 74, 150, .84) 50%, rgba(16, 47, 96, .9)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 24px 40px -26px rgba(16, 47, 96, .7) !important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body main > .ribbon .rb-glass:not(#_) { background: linear-gradient(90deg, #102f60, #1c4a96 50%, #102f60) !important; }
}
/* Tirages : papier légèrement chaud, bord fin, ombre de contact + ombre portée longue (la photo pend au fil) */
html body main > .ribbon .rb-glass .rb-photo:not(#_) {
  background: linear-gradient(180deg, #fffefb 0%, #f6f3ec 100%) !important;
  border-radius: 2px !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .05),
    0 1px 2px rgba(3, 14, 30, .18),
    0 10px 16px -8px rgba(3, 14, 30, .5),
    0 28px 34px -24px rgba(3, 14, 30, .45) !important;
  transition: box-shadow .35s ease, scale .35s cubic-bezier(.2, .8, .2, 1), rotate .35s ease !important;
}
/* reflet de tirage brillant, très léger, en diagonale */
html body main > .ribbon .rb-glass .rb-photo:not(#_)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08) 100%);
}
html body main > .ribbon .rb-glass .rb-photo:not(#_):hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 2px 4px rgba(3, 14, 30, .2), 0 18px 26px -10px rgba(3, 14, 30, .55), 0 40px 50px -30px rgba(3, 14, 30, .5) !important;
}
html body main > .ribbon .rb-glass .rb-photo > img:not(#_) { border-radius: 1px !important; }


/* ===== Stickers (personnages) : rendu « sticker WhatsApp » homogène =====
   - pas d'ombre floue (halo gris avec les fondus) : chaque sticker garde son réglage d'origine
   - mots : tous en rouge, contour blanc épais, plus gros ; plus de mot qui passe au marine en alternant */
html body main > section .bn-say:not(#_),
html body main > section .bn-say.alt:not(#_) {
  color: #d7263d !important;
  font-size: clamp(1.25rem, 1.75vw, 1.6rem) !important;
  -webkit-text-stroke: 7px #fff !important;
  paint-order: stroke fill;
  text-shadow: none !important;
  filter: none !important;
  letter-spacing: .01em;
}

/* « زعمة؟ » : la section candidature laisse assez de place au-dessus du formulaire pour que le personnage
   y passe la tête en entier (avant : réduit à 90 px et presque caché derrière la carte) */
html body main > section#join:not(#_) { padding-top: calc(clamp(56px, 7vw, 100px) + 70px) !important; }
@media (max-width: 860px) { html body main > section#join:not(#_) { padding-top: calc(clamp(56px, 7vw, 100px) + 60px) !important; } }

/* ===== Fluidité : flous d'arrière-plan retirés là où le fond est déjà quasi opaque (invisibles mais recalculés à chaque image) =====
   on garde le verre de la carte « من نحن », du bouton du hero et de l'en-tête (flou réduit) */
html body #news .post-lvl:not(#_), html body .round-btn:not(#_), html body .to-top:not(#_), html body .dock-msg:not(#_) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body #news .post-lvl:not(#_) { background-color: rgba(255, 255, 255, .96) !important; }
html body .round-btn:not(#_), html body .dock-msg:not(#_) { background-color: rgba(255, 255, 255, .94) !important; }
html body header.top:not(#_) { -webkit-backdrop-filter: blur(14px) saturate(1.5) !important; backdrop-filter: blur(14px) saturate(1.5) !important; }

/* « زعمة؟ » : plus de fondu sur la droite (il donnait un sticker « cassé ») — la coupe de l'épaule est cachée derrière le formulaire */
html body main > section#join > img.bn-think2:not(#_) { -webkit-mask-image: none !important; mask-image: none !important; }

/* Mots des stickers : contour blanc ARRONDI (anneaux d'ombres nettes) au lieu de -webkit-text-stroke,
   dont les angles en pointe « coulaient » aux jonctions des lettres arabes et sur la chadda */
html body main > section .bn-say:not(#_),
html body main > section .bn-say.alt:not(#_) {
  -webkit-text-stroke: 0 transparent !important;
  paint-order: normal !important;
  text-shadow:
    5.00px 0.00px 0 #fff,     4.83px 1.29px 0 #fff,     4.33px 2.50px 0 #fff,     3.54px 3.54px 0 #fff,     2.50px 4.33px 0 #fff,     1.29px 4.83px 0 #fff,     0.00px 5.00px 0 #fff,     -1.29px 4.83px 0 #fff,     -2.50px 4.33px 0 #fff,     -3.54px 3.54px 0 #fff,     -4.33px 2.50px 0 #fff,     -4.83px 1.29px 0 #fff,     -5.00px 0.00px 0 #fff,     -4.83px -1.29px 0 #fff,     -4.33px -2.50px 0 #fff,     -3.54px -3.54px 0 #fff,     -2.50px -4.33px 0 #fff,     -1.29px -4.83px 0 #fff,     -0.00px -5.00px 0 #fff,     1.29px -4.83px 0 #fff,     2.50px -4.33px 0 #fff,     3.54px -3.54px 0 #fff,     4.33px -2.50px 0 #fff,     4.83px -1.29px 0 #fff,     3.40px 0.00px 0 #fff,     3.14px 1.30px 0 #fff,     2.40px 2.40px 0 #fff,     1.30px 3.14px 0 #fff,     0.00px 3.40px 0 #fff,     -1.30px 3.14px 0 #fff,     -2.40px 2.40px 0 #fff,     -3.14px 1.30px 0 #fff,     -3.40px 0.00px 0 #fff,     -3.14px -1.30px 0 #fff,     -2.40px -2.40px 0 #fff,     -1.30px -3.14px 0 #fff,     -0.00px -3.40px 0 #fff,     1.30px -3.14px 0 #fff,     2.40px -2.40px 0 #fff,     3.14px -1.30px 0 #fff,     1.80px 0.00px 0 #fff,     1.46px 1.06px 0 #fff,     0.56px 1.71px 0 #fff,     -0.56px 1.71px 0 #fff,     -1.46px 1.06px 0 #fff,     -1.80px 0.00px 0 #fff,     -1.46px -1.06px 0 #fff,     -0.56px -1.71px 0 #fff,     0.56px -1.71px 0 #fff,     1.46px -1.06px 0 #fff,     0 6px 0 rgba(9, 24, 47, .12) !important;
}

/* =====================================================================================================
   Réseau → Actualités → Bureau : version compacte (2026-11-14)
   - « أبعد من قليبية » masquée : son contenu doublait « Notre empreinte », les programmes et les actualités
     (conservée dans le code ; son idée devient le filtre par niveau des actualités)
   ===================================================================================================== */


/* Actualités : filtres par niveau, pastilles discrètes dans la palette */
html body #news .news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
html body #news .news-filters button {
  font: 600 .9rem/1 inherit; font-family: inherit; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  color: var(--ink, #0b2540); background: #fff; border: 1px solid rgba(11, 37, 64, .14);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
html body #news .news-filters button b { font-weight: 700; opacity: .5; margin-inline-start: 6px; font-size: .8em; }
html body #news .news-filters button:hover { border-color: rgba(11, 37, 64, .35); }
html body #news .news-filters button[aria-pressed="true"] { background: #1f4a8a; color: #fff; border-color: #1f4a8a; box-shadow: 0 8px 18px -10px rgba(16, 47, 96, .7); }
html body #news .news-filters button[aria-pressed="true"] b { opacity: .75; }
html body #news .news-filters button:focus-visible { outline: 2px solid #edc213; outline-offset: 2px; }
html body main > section#news .post.is-off:not(#_):not(#_):not(#_) { display: none !important; }

/* Bureau 2026 : composition en crescendo, la présidente au centre (motif des arches des portes de Kélibia)
   ordre visuel : Ghazi · Nada · Yasmine · [Yosr] · Salma · Jawaher · Nesrine — symétrique, quelle que soit la langue */
html body main > section#team:not(#_) { padding-block: clamp(56px, 6vw, 92px) !important; }
html body main > section#team > .wrap:not(#_) { text-align: center !important; }
html body main > section#team > .wrap:not(#_) > h2, html body main > section#team > .wrap:not(#_) > .derja { text-align: center !important; margin-inline: auto !important; }
html body main > section#team .team-grid:not(#_) {
  display: flex !important; justify-content: center !important; align-items: flex-end !important; flex-wrap: nowrap !important;
  gap: clamp(10px, 1.5vw, 24px) !important; margin: clamp(30px, 3.4vw, 48px) auto 0 !important; max-width: 1180px; position: relative;
}
/* socle : une fine ligne dorée sur laquelle « posent » les portraits */
html body main > section#team .team-grid:not(#_)::after {
  content: ""; position: absolute; inset-inline: 6%; bottom: calc(clamp(64px, 6vw, 84px) - 1px); height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(184, 105, 10, .45) 20%, rgba(184, 105, 10, .45) 80%, transparent);
}
html body main > section#team .team-grid:not(#_) > .lead-member,
html body main > section#team .team-grid:not(#_) > .member {
  --w: 104px; flex: 0 0 auto !important; width: calc(var(--w) + 34px) !important;
  display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important;
  gap: 14px !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
  min-height: clamp(64px, 6vw, 84px);
}
/* crescendo : centre > voisins > milieu > bords */
html body main > section#team .team-grid:not(#_) > .lead-member { order: 4; --w: clamp(150px, 13vw, 190px); width: calc(var(--w) + 40px) !important; }
html body main > section#team .team-grid:not(#_) > .member:nth-child(2) { order: 2; --w: clamp(92px, 8vw, 116px); }  /* ancienne présidente (inversée avec Nada à la demande) */
html body main > section#team .team-grid:not(#_) > .member:nth-child(5) { order: 5; --w: clamp(104px, 9vw, 132px); } /* vice-présidente */
html body main > section#team .team-grid:not(#_) > .member:nth-child(3) { order: 3; --w: clamp(104px, 9vw, 132px); } /* secrétaire générale, à côté de la présidente */
html body main > section#team .team-grid:not(#_) > .member:nth-child(4) { order: 6; --w: clamp(92px, 8vw, 116px); }  /* trésorière */
html body main > section#team .team-grid:not(#_) > .member:nth-child(6) { order: 1; --w: clamp(82px, 7vw, 102px); }  /* vice-président formation */
html body main > section#team .team-grid:not(#_) > .member:nth-child(7) { order: 7; --w: clamp(82px, 7vw, 102px); }  /* conseillère juridique */
/* portraits en arche */
html body main > section#team .team-grid:not(#_) .lead-photo,
html body main > section#team .team-grid:not(#_) .avatar {
  width: var(--w) !important; height: calc(var(--w) * 1.25) !important; aspect-ratio: auto !important;
  border-radius: 999px 999px 16px 16px !important; margin: 0 !important; flex: none !important;
  box-shadow: 0 0 0 4px #fff, 0 16px 28px -16px rgba(9, 24, 47, .55) !important;
  display: grid !important; place-items: center !important;
  font: 700 calc(var(--w) * .2)/1 "Plus Jakarta Sans", system-ui, sans-serif !important; letter-spacing: .06em;
  color: #edc213 !important; background-color: #1f4a8a !important;
  background-image: linear-gradient(180deg, #1f4a8a, #102f60);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease !important;
}
html body main > section#team .team-grid:not(#_) .lead-photo {
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px #edc213, 0 0 0 9px rgba(184, 105, 10, .35), 0 26px 44px -20px rgba(9, 24, 47, .6) !important;
}
@media (hover: hover) {
  html body main > section#team .team-grid:not(#_) > *:hover .lead-photo,
  html body main > section#team .team-grid:not(#_) > *:hover .avatar { transform: translateY(-6px); }
}
html body main > section#team .team-grid:not(#_) .name { font-weight: 700 !important; font-size: .95rem !important; line-height: 1.3 !important; color: var(--ink, #0b2540) !important; margin: 0 !important; white-space: nowrap; }
html body main > section#team .team-grid:not(#_) .role { font-size: .8rem !important; line-height: 1.45 !important; color: var(--ink-2, #3d5166) !important; margin: 4px 0 0 !important; }
/* la présidente : nom plus grand, rôle sur un ruban or */
html body main > section#team .team-grid:not(#_) .lead-member .name { font-size: 1.2rem !important; }
html body main > section#team .team-grid:not(#_) .lead-member .role {
  display: inline-block; margin-top: 8px !important; padding: 5px 14px; border-radius: 999px;
  background: #edc213; color: #0b2540 !important; font-weight: 700 !important; font-size: .82rem !important;
  box-shadow: 0 6px 14px -8px rgba(184, 105, 10, .8);
}
/* tablette / mobile : la présidente en tête, au centre ; les six autres en grille 3 × 2 */
@media (max-width: 1000px) {
  html body main > section#team .team-grid:not(#_) {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; align-items: start !important;
    gap: 26px 12px !important; max-width: 520px;
  }
  html body main > section#team .team-grid:not(#_)::after { display: none; }
  html body main > section#team .team-grid:not(#_) > * { width: auto !important; min-height: 0; }
  html body main > section#team .team-grid:not(#_) > .lead-member { grid-column: 1 / -1 !important; order: 0 !important; --w: 150px; margin-bottom: 6px !important; }
  html body main > section#team .team-grid:not(#_) > .member { --w: 92px !important; }
  html body main > section#team .team-grid:not(#_) .name { white-space: normal; font-size: .88rem !important; }
}

/* bureau compact : on retire l'ancien cadre en arche autour de la photo de la présidente */
html body main > section#team .team-grid:not(#_) .lead-photo::after, html body main > section#team .team-grid:not(#_) .lead-photo::before,
html body main > section#team .team-grid:not(#_) .avatar::after, html body main > section#team .team-grid:not(#_) .avatar::before { content: none !important; display: none !important; }

/* ===== Actualités : finitions « éditoriales » =====
   - la dernière publication est mise à la une (carte double sur grand écran, titre plus grand)
   - toute la carte est cliquable (le bouton « اقرأ المزيد » s'étend sur la carte) ; survol : la carte se soulève, la photo s'avance */
html body main > section#news .post:not(#_) { position: relative !important; cursor: pointer; overflow: hidden !important;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease !important; }
html body main > section#news .post:not(#_) > img { transition: transform .9s cubic-bezier(.2, .8, .2, 1) !important; }
html body main > section#news .post:not(#_) .post-lvl { z-index: 2; }
@media (hover: hover) {
  html body main > section#news .post:not(#_):hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(9, 24, 47, .08), 0 26px 44px -22px rgba(9, 24, 47, .55) !important; }
  html body main > section#news .post:not(#_):hover > img { transform: scale(1.05); }
}
html body main > section#news .post:not(#_):focus-within { outline: 2px solid #edc213; outline-offset: 3px; }
@media (min-width: 1000px) {
  html body main > section#news .news-grid:not(#_) > .post:first-child:not(.is-off) { grid-column: span 2 !important; width: auto !important; max-width: none !important; min-width: 0 !important; justify-self: stretch !important; }
  html body main > section#news .news-grid:not(#_) > .post:first-child:not(.is-off) h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem) !important; line-height: 1.35 !important; }
  html body main > section#news .news-grid:not(#_) > .post:first-child:not(.is-off) p { -webkit-line-clamp: 3 !important; }
}
/* bureau : tous les portraits posent sur la même ligne (texte sous chaque portrait à hauteur fixe) ; socle doré retiré */
html body main > section#team .team-grid:not(#_)::after { content: none !important; display: none !important; }
@media (min-width: 1001px) {
  html body main > section#team .team-grid:not(#_) > .member > div:last-child,
  html body main > section#team .team-grid:not(#_) > .lead-member > div:last-child { min-height: 74px; }
}
@media (max-width: 1000px) {
  html body main > section#team .team-grid:not(#_) > .lead-member { justify-self: stretch !important; width: 100% !important; align-items: center !important; }
}

/* ===== Bureau : finitions ===== */
/* titre centré : on annule le décalage en escalier de la 2e ligne (prévu pour les titres alignés à droite) */
html body main > section#team > .wrap > h2:not(#_) .tl { padding: 0 !important; }
html body main > section#team > .wrap > h2:not(#_) { margin-bottom: 6px !important; }
/* halo doré derrière la présidente + « scène » : une ombre douce elliptique sous la rangée */
html body main > section#team .team-grid:not(#_) > .lead-member { position: relative; isolation: isolate; }
html body main > section#team .team-grid:not(#_) > .lead-member::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 190%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(237, 194, 19, .28), rgba(237, 194, 19, .10) 55%, rgba(237, 194, 19, 0) 75%);
}
@media (min-width: 1001px) {
  html body main > section#team .team-grid:not(#_)::before {
    content: ""; position: absolute; z-index: -2; inset-inline: 4%; bottom: 74px; height: 46px; pointer-events: none;
    background: radial-gradient(50% 50% at 50% 50%, rgba(16, 47, 96, .16), rgba(16, 47, 96, 0) 70%);
  }
}
/* arches des membres : liseré doré fin au survol, comme le cadre de la présidente en plus discret */
@media (hover: hover) {
  html body main > section#team .team-grid:not(#_) > .member:hover .avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px #edc213, 0 20px 30px -16px rgba(9, 24, 47, .55) !important; }
}
/* rôles : retours à la ligne équilibrés, typo plus fine */
html body main > section#team .team-grid:not(#_) .role { text-wrap: balance; max-width: 15ch; margin-inline: auto !important; }
html body main > section#team .team-grid:not(#_) .lead-member .role { max-width: none; }
html body main > section#team .team-grid:not(#_) .name { letter-spacing: -.005em; }
/* bureau : bande libre sous la rangée, d'où Mr Bean surgit de derrière le bord du bloc « نحن نعتقد » */
@media (min-width: 1001px) { html body main > section#team:not(#_) { padding-bottom: calc(clamp(56px, 6vw, 92px) + 96px) !important; } }

/* bureau : invitation sous la rangée (remplit la bande d'où surgit Mr Bean, et donne une suite à la section) */
html body main > section#team .team-next {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px;
  margin: clamp(26px, 3vw, 40px) auto 0; font-size: 1rem; color: var(--ink-2, #3d5166);
}
html body main > section#team .team-next a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
  color: #0b2540; background: #fff; border: 1px solid rgba(184, 105, 10, .35);
  box-shadow: 0 10px 22px -16px rgba(9, 24, 47, .6); transition: background .25s, border-color .25s, transform .25s;
}
html body main > section#team .team-next a::after { content: "←"; color: #b8690a; font-weight: 800; transition: transform .25s; }
html[dir="ltr"] body main > section#team .team-next a::after { content: "→"; }
html body main > section#team .team-next a:hover { background: #edc213; border-color: #edc213; }
html body main > section#team .team-next a:hover::after { transform: translateX(-3px); color: #0b2540; }
html[dir="ltr"] body main > section#team .team-next a:hover::after { transform: translateX(3px); }
html body main > section#team .team-next a:focus-visible { outline: 2px solid #edc213; outline-offset: 3px; }
@media (min-width: 1001px) { html body main > section#team:not(#_) { padding-bottom: calc(clamp(56px, 6vw, 92px) + 64px) !important; } }

/* bureau : moins de vide (haut, titre → portraits, sous l'invitation) ; Mr Bean garde juste sa place au-dessus du bloc marine */
html body main > section#team:not(#_) { padding-top: clamp(40px, 4vw, 64px) !important; }
@media (min-width: 1001px) { html body main > section#team:not(#_) { padding-bottom: 82px !important; } }
html body main > section#team .team-grid:not(#_) { margin-top: clamp(18px, 2vw, 28px) !important; }
html body main > section#team .team-next:not(#_) { margin-top: 20px !important; }

/* ===== Bureau : arches rapprochées + motion (entrée en cascade depuis le centre, respiration, halo vivant) ===== */
@media (min-width: 1001px) {
  html body main > section#team .team-grid:not(#_) { gap: clamp(4px, .7vw, 10px) !important; }
  html body main > section#team .team-grid:not(#_) > .member { width: calc(var(--w) + 18px) !important; }
  html body main > section#team .team-grid:not(#_) > .lead-member { width: calc(var(--w) + 26px) !important; }
}
/* distance au centre → délai de la cascade */
html body main > section#team .team-grid > .lead-member { --d: 0; --ph: 0s; }
html body main > section#team .team-grid > .member:nth-child(3), html body main > section#team .team-grid > .member:nth-child(5) { --d: 1; --ph: -1.6s; }
html body main > section#team .team-grid > .member:nth-child(2), html body main > section#team .team-grid > .member:nth-child(4) { --d: 2; --ph: -3.1s; }
html body main > section#team .team-grid > .member:nth-child(6), html body main > section#team .team-grid > .member:nth-child(7) { --d: 3; --ph: -4.4s; }
@media (prefers-reduced-motion: no-preference) {
  html.team-motion body main > section#team:not(.team-in) .team-grid > * { opacity: 0; translate: 0 46px; scale: .9; }
  html.team-motion body main > section#team.team-in .team-grid > * {
    animation: tmRise .9s cubic-bezier(.22, 1.4, .36, 1) both; animation-delay: calc(var(--d) * 110ms + 80ms);
  }
  @keyframes tmRise { from { opacity: 0; translate: 0 46px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
  /* respiration : chaque arche flotte, déphasée de sa voisine (translate, pour ne pas gêner le survol qui utilise transform) */
  html body main > section#team.team-in .team-grid:not(#_) .avatar,
  html body main > section#team.team-in .team-grid:not(#_) .lead-photo { animation: tmFloat 6.5s ease-in-out infinite; animation-delay: calc(1.4s + var(--ph)); }
  @keyframes tmFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
  /* halo de la présidente : il respire lentement */
  html body main > section#team.team-in .team-grid:not(#_) > .lead-member::before { animation: tmHalo 4.8s ease-in-out infinite 1s; }
  @keyframes tmHalo { 0%, 100% { opacity: .75; scale: .94; } 50% { opacity: 1; scale: 1.06; } }
  /* ruban « الرئيسة » : petit pop après l'arrivée */
  html body main > section#team.team-in .team-grid:not(#_) .lead-member .role { animation: tmPop .6s cubic-bezier(.3, 1.8, .45, 1) .75s both; }
  @keyframes tmPop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
  /* survol : l'arche se soulève et s'incline à peine */
  html body main > section#team .team-grid:not(#_) > *:hover .avatar,
  html body main > section#team .team-grid:not(#_) > *:hover .lead-photo { transform: translateY(-8px) rotate(-1.5deg) !important; }
}

/* bureau : une « lumière commune » sur toutes les arches — voile marine en bas + liseré clair intérieur :
   les photos aux fonds très différents (affiche, mur, salle) se lisent comme une même série */
html body main > section#team .team-grid:not(#_) .avatar {
  box-shadow: inset 0 -44px 40px -26px rgba(16, 47, 96, .55), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 4px #fff, 0 16px 28px -16px rgba(9, 24, 47, .55) !important;
}
html body main > section#team .team-grid:not(#_) .lead-photo {
  box-shadow: inset 0 -56px 50px -30px rgba(16, 47, 96, .5), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 5px #fff, 0 0 0 8px #edc213, 0 0 0 9px rgba(184, 105, 10, .35), 0 26px 44px -20px rgba(9, 24, 47, .6) !important;
}
@media (hover: hover) {
  html body main > section#team .team-grid:not(#_) > .member:hover .avatar {
    box-shadow: inset 0 -44px 40px -26px rgba(16, 47, 96, .4), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 4px #fff, 0 0 0 5.5px #edc213, 0 20px 30px -16px rgba(9, 24, 47, .55) !important;
  }
}

/* bureau : de la place au-dessus de l'arche de la présidente pour Mr Bean qui passe la tête ; plus de bande sous la rangée */
@media (min-width: 1001px) {
  html body main > section#team .team-grid:not(#_) { margin-top: 92px !important; }
  html body main > section#team:not(#_) { padding-bottom: clamp(56px, 6vw, 84px) !important; }
}

/* bureau : la morale « يد وحدة ما تصفّقش » passe sous les portraits (elle amène l'invitation) — calligraphie or, filets fins de part et d'autre */
html body main > section#team .team-proverb {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: clamp(28px, 3vw, 40px) auto 4px; max-width: 520px;
  font-family: "Aref Ruqaa", "Reem Kufi", serif; font-weight: 700; font-size: clamp(1.5rem, 2.1vw, 1.95rem); line-height: 1.3;
  color: #b8690a;
}
html body main > section#team .team-proverb::before, html body main > section#team .team-proverb::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(184, 105, 10, 0), rgba(184, 105, 10, .5));
}
html body main > section#team .team-proverb::after { background: linear-gradient(90deg, rgba(184, 105, 10, .5), rgba(184, 105, 10, 0)); }
html body main > section#team .team-next:not(#_) { margin-top: 10px !important; }
@media (prefers-reduced-motion: no-preference) {
  html.team-motion body main > section#team:not(.team-in) .team-proverb { opacity: 0; translate: 0 12px; }
  html.team-motion body main > section#team.team-in .team-proverb { transition: opacity .7s ease 1s, translate .7s cubic-bezier(.2, .8, .2, 1) 1s; }
}

/* bureau : filets dorés autour du proverbe retirés ; rythme vertical resserré et régulier
   titre → (Mr Bean) → arches : 92px ; arches → proverbe : 22px ; proverbe → invitation : 8px ; invitation → fin : ~64px */
html body main > section#team .team-proverb:not(#_)::before, html body main > section#team .team-proverb:not(#_)::after { content: none !important; display: none !important; }
html body main > section#team .team-proverb:not(#_) { display: block; text-align: center; margin: 22px auto 0 !important; max-width: none; }
html body main > section#team .team-next:not(#_) { margin-top: 8px !important; }
html body main > section#team > .wrap:not(#_) > h2 { margin-bottom: 0 !important; }
@media (min-width: 1001px) {
  html body main > section#team .team-grid:not(#_) { margin-top: 84px !important; }
  html body main > section#team:not(#_) { padding-top: clamp(40px, 3.6vw, 56px) !important; padding-bottom: 64px !important; }
}
@media (min-width: 1001px) {
  html body main > section#team .team-grid:not(#_) { margin-top: 108px !important; }
  html body main > section#team:not(#_) { padding-bottom: 100px !important; }
}
/* bureau, mobile : après la présidente, ses plus proches d'abord (même logique que le crescendo de l'ordinateur) */
@media (max-width: 1000px) {
  html body main > section#team .team-grid:not(#_) > .member:nth-child(3) { order: 1 !important; } /* Nada */
  html body main > section#team .team-grid:not(#_) > .member:nth-child(5) { order: 2 !important; } /* Salma */
  html body main > section#team .team-grid:not(#_) > .member:nth-child(2) { order: 3 !important; } /* Yasmine */
  html body main > section#team .team-grid:not(#_) > .member:nth-child(4) { order: 4 !important; } /* Jawaher */
  html body main > section#team .team-grid:not(#_) > .member:nth-child(6) { order: 5 !important; } /* Ghazi */
  html body main > section#team .team-grid:not(#_) > .member:nth-child(7) { order: 6 !important; } /* Nesrine */
  html body main > section#team .team-grid:not(#_) { margin-top: 26px !important; }
  html body main > section#team .team-proverb:not(#_) { margin-top: 26px !important; font-size: 1.45rem; }
}

/* ===== Titre du bureau : style maison (même police et même inclinaison que les autres titres) ;
   seule touche : « 2026 » dans l'ambre des derjas du site ===== */
html body main > section#team > .wrap > h2:not(#_) .tl:last-child .tw:last-child { color: #b8690a !important; }

/* bureau : le mot de Mr Bean reste un clin d'œil, il ne concurrence plus le titre */
html body main > section#team .bn-say.bs-peek:not(#_) { font-size: clamp(1.05rem, 1.45vw, 1.32rem) !important; }

/* ===== Formations : moins de vide, plus de vie ===== */
/* en-tête sur une ligne : titre d'un côté, phrase d'intro de l'autre (le grand blanc à côté du titre disparaît) */
@media (min-width: 1001px) {
  html body main > section#trainings > .wrap > .section-head:not(#_) {
    display: flex !important; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: none !important;
  }
  html body main > section#trainings > .wrap > .section-head:not(#_) > h2 { margin: 0 !important; flex: none; }
  html body main > section#trainings > .wrap > .section-head:not(#_) > p:not(.derja) { margin: 0 !important; max-width: 46ch; padding-bottom: 6px; }
  html body main > section#trainings .trs:not(#_) { align-items: start !important; margin-top: 30px !important; }
  html body main > section#trainings:not(#_) { padding-bottom: 72px !important; }
}
@media (prefers-reduced-motion: no-preference) {
  /* la photo à l'affiche respire (zoom lent), les cartes derrière flottent doucement, décalées */
  html body main > section#trainings.on-screen .trs-frame img.on { animation: trKB 14s ease-in-out infinite alternate; }
  @keyframes trKB { from { scale: 1; } to { scale: 1.07; } }
  html body main > section#trainings.on-screen .trs-peek.p1 { animation: trFloat 6s ease-in-out infinite; }
  html body main > section#trainings.on-screen .trs-peek.p2 { animation: trFloat 6s ease-in-out -3s infinite; }
  @keyframes trFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
  /* les blocs de thèmes se soulèvent au survol */
  html body main > section#trainings .trs-grp:not(#_) { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease !important; }
  html body main > section#trainings .trs-grp:not(#_):hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(9, 24, 47, .45) !important; }
}

/* ===== Formations : effet couleur + élévation, à chaque survol et sur le thème ouvert =====
   chaque bloc prend la couleur de son thème (--c : bleu JCI, sarcelle, ambre) : lueur colorée, voile teinté, liseré plus épais */
html body main > section#trainings .trs-grp:not(#_) {
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, background .4s ease !important;
}
html body main > section#trainings .trs-grp:not(#_):hover,
html body main > section#trainings .trs-grp.open:not(#_) {
  transform: translateY(-5px);
  background: linear-gradient(to left, color-mix(in srgb, var(--c) 9%, #fff), #fff 55%) !important;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--c) 18%, transparent),
              0 22px 40px -18px color-mix(in srgb, var(--c) 55%, transparent),
              0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent) !important;
}
html[dir="ltr"] body main > section#trainings .trs-grp:not(#_):hover,
html[dir="ltr"] body main > section#trainings .trs-grp.open:not(#_) { background: linear-gradient(to right, color-mix(in srgb, var(--c) 9%, #fff), #fff 55%) !important; }
html body main > section#trainings .trs-grp:not(#_)::before { transition: width .35s ease, box-shadow .35s ease; }
html body main > section#trainings .trs-grp:not(#_):hover::before,
html body main > section#trainings .trs-grp.open:not(#_)::before { width: 6px !important; box-shadow: 0 0 14px var(--c); }
/* la photo à l'affiche prend la couleur du thème choisi */
html body main > section#trainings .trs-stage.trs-jci { --c: #0097d7; }
html body main > section#trainings .trs-stage.trs-soft { --c: #13a09a; }
html body main > section#trainings .trs-stage.trs-hard { --c: #f2a93b; }
html body main > section#trainings .trs-stage:not(#_) .trs-frame {
  transition: box-shadow .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1) !important;
  box-shadow: 0 0 0 6px #fff, 0 30px 60px -26px color-mix(in srgb, var(--c, #0b2540) 60%, transparent), 0 0 46px -10px color-mix(in srgb, var(--c, #0b2540) 35%, transparent) !important;
}
@media (hover: hover) {
  html body main > section#trainings .trs-stage:not(#_):hover .trs-frame { transform: translateY(-6px) rotate(-.6deg); }
}
/* formations : le grand blanc sous le bloc marine des activités est réduit (≈ 93 px → ≈ 52 px) */
@media (min-width: 1001px) {
  html body main > section#projects:not(#_):not(#_) { margin-bottom: 24px !important; }
  html body main > section#trainings:not(#_):not(#_) { padding-top: 28px !important; }
}
/* formations : la phrase revient SOUS le titre (empilés, serrés), puis le contenu à distance régulière */
@media (min-width: 1001px) {
  html body main > section#trainings > .wrap > .section-head:not(#_):not(#_) { display: block !important; }
  html body main > section#trainings > .wrap > .section-head:not(#_):not(#_) > h2 { margin: 0 0 10px !important; }
  html body main > section#trainings > .wrap > .section-head:not(#_):not(#_) > p:not(.derja) { margin: 0 !important; max-width: 60ch; padding: 0; }
  html body main > section#trainings .trs:not(#_):not(#_) { margin-top: 32px !important; }
}

/* ===== Formations, cartes des thèmes : finitions =====
   - le liseré de couleur rentre DANS la carte (arrondi, décollé des coins) au lieu de coller au bord comme une bande rapportée
   - titres en marine plein (ils étaient gris à 70 %) + chevron qui indique que la carte s'ouvre
   - liste du thème ouvert un peu plus serrée */
html body main > section#trainings .trs-grp:not(#_) { position: relative; overflow: hidden; }
html body main > section#trainings .trs-grp:not(#_)::before {
  top: 18px !important; bottom: 18px !important; height: auto !important; border-radius: 4px !important;
  inset-inline-start: 10px !important; inset-inline-end: auto !important; left: auto; right: auto;
}
html[dir="rtl"] body main > section#trainings .trs-grp:not(#_)::before { right: 10px !important; left: auto !important; }
html[dir="ltr"] body main > section#trainings .trs-grp:not(#_)::before { left: 10px !important; right: auto !important; }
html body main > section#trainings .trs-grp:not(#_) > h3 { color: #0b2540 !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html body main > section#trainings .trs-grp:not(#_) > h3::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2540' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .35s;
}
html body main > section#trainings .trs-grp.open:not(#_) > h3::after { transform: rotate(180deg); background-color: color-mix(in srgb, var(--c) 28%, #fff); }
html body main > section#trainings .trs-grp:not(#_) .trs-row { padding-block: 8px !important; }

/* formations : couleurs adoucies (retour « trop flashy ») — la couleur du thème reste un accent, pas un néon */
html body main > section#trainings .trs-grp:not(#_):not(#_):hover,
html body main > section#trainings .trs-grp.open:not(#_):not(#_) {
  transform: translateY(-3px);
  background: linear-gradient(to left, color-mix(in srgb, var(--c) 4%, #fff), #fff 50%) !important;
  box-shadow: 0 1px 2px rgba(9, 24, 47, .06), 0 16px 32px -20px color-mix(in srgb, var(--c) 32%, rgba(9, 24, 47, .35)) !important;
}
html[dir="ltr"] body main > section#trainings .trs-grp:not(#_):not(#_):hover,
html[dir="ltr"] body main > section#trainings .trs-grp.open:not(#_):not(#_) { background: linear-gradient(to right, color-mix(in srgb, var(--c) 4%, #fff), #fff 50%) !important; }
html body main > section#trainings .trs-grp:not(#_):not(#_):hover::before,
html body main > section#trainings .trs-grp.open:not(#_):not(#_)::before { width: 5px !important; box-shadow: none !important; }
html body main > section#trainings .trs-grp:not(#_):not(#_) > h3::after { background-color: rgba(11, 37, 64, .06); }
html body main > section#trainings .trs-grp.open:not(#_):not(#_) > h3::after { background-color: color-mix(in srgb, var(--c) 16%, #fff); }
html body main > section#trainings .trs-stage:not(#_):not(#_) .trs-frame {
  box-shadow: 0 0 0 6px #fff, 0 28px 50px -28px rgba(9, 24, 47, .5), 0 18px 40px -26px color-mix(in srgb, var(--c, #0b2540) 30%, transparent) !important;
}

/* =====================================================================================================
   « نحن نعتقد » : six cartes de verre marine (même famille que la carte « من نحن ») — 3e version, 2026-11-14
   droites, numéro or + filet, texte clair ; la 6e (la conclusion) cerclée d'or. La FAQ n'est pas touchée.
   ===================================================================================================== */
html body main > section#history .creed-sheet:not(#_):not(#_) { display: block !important; }
html body main > section#history .creed-list:not(#_):not(#_) {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important;
  width: auto !important; max-width: 1100px !important; margin: 34px auto 0 !important; padding: 0 !important;
  list-style: none !important; counter-reset: cr; text-align: start !important;
}
html body main > section#history .creed-list:not(#_):not(#_)::before,
html body main > section#history .creed-list:not(#_):not(#_)::after { content: none !important; display: none !important; }
html body main > section#history .creed-list:not(#_):not(#_) > li {
  counter-increment: cr; position: relative; display: flex !important; flex-direction: column; gap: 14px;
  width: auto !important; max-width: none !important; justify-self: stretch !important; align-self: stretch !important; min-height: 168px;
  padding: 24px 26px 26px !important; margin: 0 !important; border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .035) 60%) !important;
  -webkit-background-clip: border-box !important; background-clip: border-box !important;
  border: 1px solid rgba(255, 255, 255, .12); border-top-color: rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .92) !important; -webkit-text-fill-color: rgba(255, 255, 255, .92) !important;
  font-size: clamp(1.18rem, 1.45vw, 1.36rem) !important; line-height: 1.8 !important;
  text-shadow: none !important; opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 26px 44px -28px rgba(0, 0, 0, .75);
  transition: translate .45s cubic-bezier(.2, .8, .2, 1), border-color .45s ease, box-shadow .45s ease, background .45s ease !important;
}
html body main > section#history .creed-list:not(#_):not(#_) > li::before {
  content: "0" counter(cr) !important; position: static !important; display: inline-block !important; inset: auto !important;
  align-self: flex-start; width: auto !important; height: auto !important; margin: 0 !important; translate: none !important; transform: none !important;
  padding: 0 0 10px !important; min-width: 46px;
  font: 700 1.7rem/1 "Reem Kufi", system-ui, sans-serif !important; letter-spacing: .05em;
  color: #edc213 !important; -webkit-text-fill-color: #edc213 !important; opacity: 1 !important;
  background: linear-gradient(to left, #edc213, rgba(237, 194, 19, 0)) bottom / 100% 2px no-repeat !important;
}
html[dir="ltr"] body main > section#history .creed-list:not(#_):not(#_) > li::before { background: linear-gradient(to right, #edc213, rgba(237, 194, 19, 0)) bottom / 100% 2px no-repeat !important; }
/* la conclusion */
html body main > section#history .creed-list:not(#_):not(#_) > li:last-child {
  background: linear-gradient(165deg, rgba(237, 194, 19, .20) 0%, rgba(237, 194, 19, .06) 65%) !important;
  border-color: rgba(237, 194, 19, .55); border-top-color: rgba(237, 194, 19, .85);
  color: #f6dc7a !important; -webkit-text-fill-color: #f6dc7a !important;
}
@media (hover: hover) {
  html body main > section#history .creed-list:not(#_):not(#_) > li:hover {
    translate: 0 -6px; border-color: rgba(237, 194, 19, .45);
    background: linear-gradient(165deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .05) 60%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 34px 50px -28px rgba(0, 0, 0, .85);
  }
  html body main > section#history .creed-list:not(#_):not(#_) > li:last-child:hover { background: linear-gradient(165deg, rgba(237, 194, 19, .26) 0%, rgba(237, 194, 19, .09) 65%) !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#history.cr-in .creed-list:not(#_):not(#_) > li { animation: crCard .8s cubic-bezier(.2, .8, .2, 1) both !important; animation-delay: var(--sd, 0s) !important; }
  @keyframes crCard { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
}
html body main > section#history:not(#_):not(#_) { padding-bottom: 40px !important; }
@media (max-width: 1000px) { html body main > section#history .creed-list:not(#_):not(#_) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; } }
@media (max-width: 620px) {
  html body main > section#history .creed-list:not(#_):not(#_) { grid-template-columns: 1fr !important; gap: 12px !important; }
  html body main > section#history .creed-list:not(#_):not(#_) > li { min-height: 0; padding: 18px 20px 20px !important; gap: 10px; }
}
/* Credo : espacements resserrés (haut 142→~84, titre→cartes 60→~30, cartes plus compactes, bas 90→~58) */
html body main > section#history > .wrap:not(#_):not(#_) { padding-top: 56px !important; }
html body main > section#history .creed:not(#_):not(#_) { margin-top: 28px !important; }
html body main > section#history .creed-list:not(#_):not(#_) { margin-top: 6px !important; gap: 16px !important; }
html body main > section#history .creed-list:not(#_):not(#_) > li { min-height: 0; padding: 20px 24px 22px !important; gap: 10px; }
html body main > section#history:not(#_):not(#_) { padding-bottom: 8px !important; }
@media (max-width: 620px) { html body main > section#history .creed-list:not(#_):not(#_) > li { padding: 16px 20px 18px !important; } }

/* =====================================================================================================
   Credo : fond clair (décision design, 2026-11-14). Avant : bureau crème → Credo marine → bandeau or → FAQ marine,
   soit deux gros blocs marine collés. Maintenant : crème → BLANC → bandeau or → marine : le Credo respire,
   la FAQ reste le seul bloc sombre de la séquence, et le marine sert d'accent (la carte de conclusion).
   ===================================================================================================== */
html body main > section#history:not(#_):not(#_):not(#_) {
  background: #fff !important; box-shadow: 0 -18px 40px -28px rgba(9, 24, 47, .18) !important; color: #0b2540 !important;
}
html body main > section#history .creed-sheet:not(#_):not(#_)::before { content: none !important; display: none !important; }
html body main > section#history .rip-deco:not(#_) { opacity: .5; }
html body main > section#history [data-i18n="creed.intro"]:not(#_):not(#_) {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  color: #b8690a !important; -webkit-text-fill-color: #b8690a !important; filter: none !important; text-shadow: none !important;
}
html body main > section#history .creed-list:not(#_):not(#_):not(#_) > li {
  background: #fbf6ec !important; border: 1px solid rgba(184, 105, 10, .16); border-top-color: rgba(184, 105, 10, .16);
  color: #0b2540 !important; -webkit-text-fill-color: #0b2540 !important;
  box-shadow: 0 1px 2px rgba(9, 24, 47, .05), 0 20px 34px -26px rgba(9, 24, 47, .35);
}
html body main > section#history .creed-list:not(#_):not(#_):not(#_) > li::before {
  color: #b8690a !important; -webkit-text-fill-color: #b8690a !important;
  background: linear-gradient(to left, #edc213, rgba(237, 194, 19, 0)) bottom / 100% 2px no-repeat !important;
}
html[dir="ltr"] body main > section#history .creed-list:not(#_):not(#_):not(#_) > li::before { background: linear-gradient(to right, #edc213, rgba(237, 194, 19, 0)) bottom / 100% 2px no-repeat !important; }
/* la conclusion : la seule carte marine */
html body main > section#history .creed-list:not(#_):not(#_):not(#_) > li:last-child {
  background: linear-gradient(160deg, #1f4a8a 0%, #173d77 55%, #102f60 100%) !important; border-color: transparent;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 40px -24px rgba(16, 47, 96, .7);
}
html body main > section#history .creed-list:not(#_):not(#_):not(#_) > li:last-child::before { color: #edc213 !important; -webkit-text-fill-color: #edc213 !important; }
@media (hover: hover) {
  html body main > section#history .creed-list:not(#_):not(#_):not(#_) > li:hover {
    background: #fff !important; border-color: rgba(237, 194, 19, .7);
    box-shadow: 0 2px 4px rgba(9, 24, 47, .06), 0 30px 44px -26px rgba(9, 24, 47, .45);
  }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_) > li:last-child:hover {
    background: linear-gradient(160deg, #24549c 0%, #1a4585 55%, #12356b 100%) !important; border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 32px 46px -24px rgba(16, 47, 96, .8);
  }
}

/* =====================================================================================================
   Credo, version vivante (2026-11-14) : six cartes aux couleurs des piliers JCI (or, marine, bleu, sarcelle, ambre, nuit),
   disposées en mosaïque (la 1re et la conclusion sont doubles), grand numéro en filigrane, cartes qui flottent.
   ===================================================================================================== */
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 18px !important; max-width: 1120px !important;
}
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li {
  --bg: #edc213; --fg: #0b2540; --num: rgba(11, 37, 64, .16);
  background: var(--bg) !important; border: 0 !important; color: var(--fg) !important; -webkit-text-fill-color: var(--fg) !important;
  min-height: 178px; padding: 26px 28px 28px !important; overflow: hidden; justify-content: flex-end;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem) !important; line-height: 1.7 !important;
  box-shadow: 0 1px 2px rgba(9, 24, 47, .08), 0 24px 36px -24px color-mix(in srgb, var(--bg) 70%, #09182f) !important;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease !important;
}
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:nth-child(1) { grid-column: span 2; }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:nth-child(2) { --bg: #1f4a8a; --fg: #fff; --num: rgba(255, 255, 255, .16); }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:nth-child(3) { --bg: #0a7cb5; --fg: #fff; --num: rgba(255, 255, 255, .18); }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:nth-child(4) { --bg: #1a7f7e; --fg: #fff; --num: rgba(255, 255, 255, .18); }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:nth-child(5) { --bg: #f2a93b; --fg: #0b2540; --num: rgba(11, 37, 64, .16); }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:nth-child(6) {
  grid-column: span 2; --bg: #0b2540; --fg: #edc213; --num: rgba(237, 194, 19, .2);
  background: linear-gradient(150deg, #12305c 0%, #0b2540 60%) !important;
  font-size: clamp(1.4rem, 1.9vw, 1.75rem) !important;
}
/* grand numéro en filigrane, dans le coin opposé au texte */
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li::before {
  position: absolute !important; top: -6px !important; inset-inline-end: 14px !important; inset-inline-start: auto !important; bottom: auto !important;
  padding: 0 !important; min-width: 0; background: none !important;
  font: 800 6.2rem/1 "Reem Kufi", system-ui, sans-serif !important; letter-spacing: 0;
  color: var(--num) !important; -webkit-text-fill-color: var(--num) !important;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) !important; transform-origin: 50% 40%;
}
@media (hover: hover) {
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:hover {
    transform: translateY(-8px) rotate(-1deg) !important; background: var(--bg) !important;
    box-shadow: 0 2px 4px rgba(9, 24, 47, .1), 0 36px 44px -24px color-mix(in srgb, var(--bg) 75%, #09182f) !important;
  }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:nth-child(6):hover { background: linear-gradient(150deg, #163a6e 0%, #0e2c4d 60%) !important; }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li:hover::before { transform: scale(1.18) rotate(-8deg) !important; }
}
@media (prefers-reduced-motion: no-preference) {
  /* arrivée en cascade, puis les cartes flottent doucement, chacune à son rythme */
  html body main > section#history.cr-in .creed-list:not(#_):not(#_):not(#_):not(#_) > li {
    animation: crCard .8s cubic-bezier(.22, 1.4, .36, 1) both, crFloat 6.5s ease-in-out infinite !important;
    animation-delay: var(--sd, 0s), calc(1.2s + var(--sd, 0s) * 4) !important;
  }
  @keyframes crFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}
@media (max-width: 1000px) {
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
}
@media (max-width: 620px) {
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) { grid-template-columns: 1fr !important; }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li { grid-column: auto !important; min-height: 128px; padding: 22px 22px 22px !important; }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li::before { font-size: 4.6rem !important; }
}
/* Credo : le texte commence sous le grand numéro (plus de chevauchement dans les cartes étroites) */
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li { padding-top: 84px !important; min-height: 206px; }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li::before { font-size: 5rem !important; top: 8px !important; }
@media (max-width: 620px) {
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li { padding-top: 66px !important; min-height: 0; }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_) > li::before { font-size: 3.8rem !important; }
}

/* ===== Credo : relief et lumière (2026-11-14) =====
   - carte en 3D qui s'incline vers le pointeur (--rx/--ry posés par le script de index.html), reflet qui suit la souris
   - ombres en trois couches teintées de la couleur de la carte, arête lumineuse en haut
   - à l'arrivée, un trait de lumière traverse chaque carte */
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) { perspective: 1100px; }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li {
  --rx: 0deg; --ry: 0deg; --lift: 0px; transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)) !important;
  transition: transform .25s ease-out, box-shadow .45s ease !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -18px 30px -22px rgba(0, 0, 0, .28),
    0 2px 3px rgba(9, 24, 47, .10),
    0 12px 18px -10px color-mix(in srgb, var(--bg) 55%, #09182f),
    0 34px 44px -26px color-mix(in srgb, var(--bg) 75%, #09182f) !important;
}
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li::after {
  content: "" !important; display: block !important; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(260px circle at var(--gx, 50%) var(--gy, -40%), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 62%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, 0) 62%) 220% 0 / 220% 100% no-repeat;
  opacity: .0; transition: opacity .35s ease;
}
@media (hover: hover) {
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li:hover {
    --lift: -10px; z-index: 2;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .36), inset 0 -18px 30px -22px rgba(0, 0, 0, .22),
      0 4px 6px rgba(9, 24, 47, .12),
      0 22px 28px -12px color-mix(in srgb, var(--bg) 60%, #09182f),
      0 54px 60px -30px color-mix(in srgb, var(--bg) 80%, #09182f) !important;
  }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li:hover::after { opacity: 1; }
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li:hover::before { transform: translateZ(40px) scale(1.2) rotate(-8deg) !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#history.cr-in .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li::after {
    animation: crSweep 1.1s ease-out both; animation-delay: calc(.55s + var(--sd, 0s));
  }
  @keyframes crSweep { 0% { opacity: 1; background-position: 0 0, 220% 0; } 99% { opacity: 1; background-position: 0 0, -120% 0; } 100% { opacity: 0; background-position: 0 0, -120% 0; } }
  /* le titre : un filet d'or se trace dessous */
  html body main > section#history [data-i18n="creed.intro"]:not(#_):not(#_):not(#_) { position: relative; display: inline-block; }
  html body main > section#history [data-i18n="creed.intro"]:not(#_):not(#_):not(#_)::after {
    content: "" !important; display: block !important; position: absolute; inset-inline: 8%; bottom: -6px; height: 3px; border-radius: 3px; width: auto;
    background: linear-gradient(90deg, rgba(237, 194, 19, 0), #edc213 30%, #edc213 70%, rgba(237, 194, 19, 0)) !important;
    transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1) .2s;
  }
  html body main > section#history.cr-in [data-i18n="creed.intro"]:not(#_):not(#_):not(#_)::after { transform: scaleX(1); }
}
/* Credo : filet sous le titre retiré ; reflet des cartes bien arrondi aux coins */
html body main > section#history [data-i18n="creed.intro"]:not(#_):not(#_):not(#_):not(#_)::after { content: none !important; display: none !important; }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li { transform-style: flat; border-radius: 22px !important; }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li::after { border-radius: 22px !important; inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; }

/* ===== Credo : corrections après auto-critique (2026-11-14) =====
   1. l'ancien état « ligne en cours » (.on / .past) coupait les coins d'une carte au carré et floutait son numéro → neutralisé
   2. les cartes larges (01 et 06) avaient un petit texte perdu dans un grand aplat → texte plus grand, même taille pour les deux
   3. flottement plus discret (les rangées paraissaient désalignées) */
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li,
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li.on,
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li.past {
  clip-path: none !important; -webkit-clip-path: none !important; text-shadow: none !important; filter: none !important; opacity: 1 !important;
  letter-spacing: normal !important;
}
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li::before,
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li.on::before,
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li.past::before { text-shadow: none !important; filter: none !important; opacity: 1 !important; }
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li:nth-child(1),
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li:nth-child(6) { font-size: clamp(1.45rem, 2vw, 1.85rem) !important; line-height: 1.6 !important; }
@media (prefers-reduced-motion: no-preference) { @keyframes crFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } } }
@media (max-width: 620px) {
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li:nth-child(1),
  html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_) > li:nth-child(6) { font-size: 1.3rem !important; }
}

/* =====================================================================================================
   « أوشي » + FAQ : refonte (2026-11-14)
   - « أوشي » n'est plus une écharpe penchée pleine largeur à bords dentelés : c'est une carte or arrondie, droite,
     posée à cheval entre la FAQ et le formulaire (elle « ouvre » le formulaire)
   - FAQ : chaque question a sa pastille numérotée aux couleurs des cartes du Credo ; la question ouverte prend sa couleur
   ===================================================================================================== */









/* la place de la carte : la FAQ finit plus bas, le formulaire commence plus bas (Mr Bean reste sous la carte) */
html body main > section#faq:not(#_):not(#_) { padding-bottom: 130px !important; }
@media (min-width: 861px) { html body main > section#join:not(#_):not(#_) { padding-top: 250px !important; } }
@media (max-width: 860px) {
  html body main > section#join:not(#_):not(#_) { padding-top: 150px !important; }
  
  
}

/* ---------- FAQ ---------- */
html body main > section#faq .faq-aside:not(#_):not(#_):not(#_) { position: relative !important; top: 0 !important; align-self: start !important; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details { --c: #edc213; --ct: #0b2540;
  background: rgba(255, 255, 255, .045) !important; border: 0 !important; border-radius: 22px !important; margin-bottom: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
  transition: background .35s ease, box-shadow .35s ease, translate .35s cubic-bezier(.2, .8, .2, 1) !important;
}
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:nth-child(2) { --c: #2aa7e0; --ct: #fff; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:nth-child(3) { --c: #23a6a4; --ct: #fff; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:nth-child(4) { --c: #f2a93b; --ct: #0b2540; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:nth-child(5) { --c: #fff8e6; --ct: #0b2540; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > summary { border: 0 !important; color: #fff !important; padding: 18px 20px !important; gap: 16px !important; align-items: center !important; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > summary::before {
  flex: none; display: grid !important; place-items: center; width: 46px !important; height: 46px !important; border-radius: 15px;
  background: var(--c) !important; color: var(--ct) !important; -webkit-text-fill-color: var(--ct) !important;
  font: 800 1.05rem/1 "Reem Kufi", system-ui, sans-serif !important; letter-spacing: .03em; rotate: -6deg;
  box-shadow: 0 10px 18px -10px var(--c); transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1), scale .4s cubic-bezier(.3, 1.6, .5, 1);
}
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > summary::after { border-color: color-mix(in srgb, var(--c) 60%, transparent) !important; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details[open] {
  background: color-mix(in srgb, var(--c) 13%, rgba(255, 255, 255, .03)) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent), 0 26px 40px -28px var(--c) !important;
}
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details[open] > summary { color: #fff !important; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details[open] > summary::before { rotate: 0deg; scale: 1.08; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details[open] > summary::after { background-color: var(--c) !important; border-color: var(--c) !important; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > p { color: rgba(255, 255, 255, .86) !important; padding-inline: 82px 64px !important; padding-bottom: 22px !important; }
@media (hover: hover) {
  html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:not([open]):hover { translate: 0 -3px; background: rgba(255, 255, 255, .08) !important; }
  html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:hover > summary::before { rotate: 4deg; scale: 1.1; }
}
@media (max-width: 620px) { html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > p { padding-inline: 20px !important; } }
/* « أوشي » : la section n'occupe plus de hauteur (la carte flotte, centrée sur la jonction FAQ / formulaire) → plus de bande blanche */





/* « أوشي » retiré de la page à la demande (2026-11-14) : conservé dans le code, simplement masqué ; espacements FAQ / formulaire rétablis */

html body main > section#faq:not(#_):not(#_):not(#_) { padding-bottom: 110px !important; }
@media (min-width: 861px) { html body main > section#join:not(#_):not(#_):not(#_) { padding-top: calc(clamp(56px, 7vw, 100px) + 70px) !important; } }
@media (max-width: 860px) { html body main > section#join:not(#_):not(#_):not(#_) { padding-top: calc(clamp(56px, 7vw, 100px) + 60px) !important; } }

/* ===== Rythme vertical harmonisé sur la 2e moitié de la page (2026-11-14) =====
   écarts mesurés entre blocs ramenés autour de 60–80 px (avant : 173 px avant les actualités, 158 px après le formulaire, 101 px ailleurs) */
@media (min-width: 1001px) {
  html body main > section#trainings:not(#_):not(#_):not(#_) { padding-bottom: 40px !important; }
  html body main > section#news:not(#_):not(#_):not(#_) { padding-top: 40px !important; padding-bottom: 64px !important; }
  html body main > section#faq:not(#_):not(#_):not(#_):not(#_) { padding-top: 76px !important; }
  html body main > section#join:not(#_):not(#_):not(#_):not(#_) { padding-bottom: 52px !important; }
}

/* ===== FAQ : mouvement et effets (2026-11-14) ===== */
@media (prefers-reduced-motion: no-preference) {
  /* arrivée : les questions montent l'une après l'autre, la pastille « tamponne » */
  html.faq-motion body main > section#faq:not(.faq-in) .faq-list details { opacity: 0; translate: 0 26px; }
  html.faq-motion body main > section#faq.faq-in .faq-list details { animation: fqRise .7s cubic-bezier(.22, 1.3, .36, 1) both; animation-delay: calc(var(--k, 0) * 90ms + 80ms); }
  html.faq-motion body main > section#faq.faq-in .faq-list details > summary::before { animation: fqStamp .55s cubic-bezier(.3, 1.8, .45, 1) both; animation-delay: calc(var(--k, 0) * 90ms + 320ms); }
  @keyframes fqRise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
  @keyframes fqStamp { from { opacity: 0; scale: 2.2; rotate: 18deg; } to { opacity: 1; scale: 1; rotate: -6deg; } }
  /* ouverture : la réponse se déplie en douceur */
  html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details[open] > p { animation: fqOpen .45s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes fqOpen { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
  html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > summary::after { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, border-color .3s !important; }
  /* le grand « ؟ » en filigrane respire ; la note « باقي عندك سؤال؟ » flotte */
  html body main > section#faq.on-screen .faq-ask:not(#_) { animation: fqNote 5.5s ease-in-out infinite; }
  @keyframes fqNote { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}
/* lueur qui suit la souris sur chaque question, dans la couleur de sa pastille */
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details { position: relative; overflow: hidden; }
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details::before {
  content: "" !important; display: block !important; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 26%, transparent), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
@media (hover: hover) {
  html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:hover::before { opacity: 1; }
  html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details:not([open]):hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 22px 34px -26px var(--c) !important; }
  html body main > section#faq .faq-ask:not(#_) { transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1), box-shadow .4s ease; }
  html body main > section#faq .faq-ask:not(#_):hover { rotate: 0deg; box-shadow: 0 30px 44px -22px rgba(0, 0, 0, .7); }
}
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > summary,
html body main > section#faq .faq-list:not(#_):not(#_):not(#_) details > p { position: relative; z-index: 1; }

/* =====================================================================================================
   « آخر الأخبار » : mosaïque éditoriale (2026-11-14) — remplace le carrousel horizontal sur ordinateur
   la dernière publication en grand (2 × 2), quatre autres à côté, le reste derrière « tout voir » ;
   texte posé sur la photo (dégradé marine) ; les cartes montent en cascade au défilement, la photo dézoome.
   Sur mobile, le carrousel au doigt est conservé.
   ===================================================================================================== */
@media (min-width: 1001px) {
  html body main > section#news #newsPrev:not(#_), html body main > section#news #newsNext:not(#_) { display: none !important; }
  html body main > section#news .news-grid:not(#_):not(#_) {
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-flow: row !important;
    grid-auto-columns: auto !important; grid-auto-rows: 236px !important; gap: 18px !important;
    overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; padding: 0 !important; scroll-snap-type: none !important;
  }
  html body main > section#news .news-grid:not(#_):not(#_) > .post {
    display: flex !important; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; min-height: 0 !important;
    padding: 18px 20px !important; border-radius: 22px !important; overflow: hidden !important; isolation: isolate;
    grid-column: auto !important; grid-row: auto !important; scroll-snap-align: none !important;
  }
  html body main > section#news .news-grid:not(#_):not(#_) > .post > img {
    position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover; z-index: -2 !important;
  }
  html body main > section#news .news-grid:not(#_):not(#_) > .post::before {
    position: absolute !important; inset: 0 !important; margin: 0 !important; height: auto !important; border-radius: 0 !important; z-index: -1 !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    background: linear-gradient(to top, rgba(9, 24, 47, .94) 0%, rgba(9, 24, 47, .62) 38%, rgba(9, 24, 47, 0) 72%) !important;
  }
  html body main > section#news .news-grid:not(#_):not(#_) > .post > time { margin: 0 0 4px !important; padding: 0 !important; color: #edc213 !important; font-weight: 700; }
  html body main > section#news .news-grid:not(#_):not(#_) > .post > h3 { margin: 0 !important; padding: 0 !important; color: #fff !important; font-size: 1.06rem !important; line-height: 1.45 !important; }
  html body main > section#news .news-grid:not(#_):not(#_) > .post > p,
  html body main > section#news .news-grid:not(#_):not(#_) > .post > button.link { display: none !important; }
  /* à la une */
  html body main > section#news:not(.news-filtered) .news-grid:not(#_):not(#_) > .post:first-child { grid-column: span 2 !important; grid-row: span 2 !important; padding: 28px 30px !important; }
  html body main > section#news:not(.news-filtered) .news-grid:not(#_):not(#_) > .post:first-child > h3 { font-size: clamp(1.5rem, 2.1vw, 1.95rem) !important; line-height: 1.35 !important; }
  html body main > section#news:not(.news-filtered) .news-grid:not(#_):not(#_) > .post:first-child > p {
    display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical; overflow: hidden;
    margin: 10px 0 0 !important; padding: 0 !important; color: rgba(255, 255, 255, .84) !important; max-width: 52ch;
  }
  html body main > section#news:not(.news-filtered) .news-grid:not(#_):not(#_) > .post:first-child > button.link {
    display: inline-flex !important; margin: 16px 0 0 !important; padding: 9px 20px !important; border-radius: 999px;
    background: #edc213 !important; color: #0b2540 !important; font-weight: 700;
  }
  /* 5 visibles par défaut ; tout voir : la 8e comble la rangée */
  html body main > section#news:not(.news-all):not(.news-filtered) .news-grid:not(#_):not(#_) > .post:nth-child(n+6) { display: none !important; }
  html body main > section#news.news-all:not(.news-filtered) .news-grid:not(#_):not(#_) > .post:nth-child(8):last-child { grid-column: span 2 !important; }
}
html body main > section#news .news-more {
  display: flex; margin: 26px auto 0; padding: 12px 26px; border-radius: 999px; cursor: pointer; font: 700 1rem/1.2 inherit; font-family: inherit;
  color: #0b2540; background: #fff; border: 1px solid rgba(184, 105, 10, .35); box-shadow: 0 10px 22px -16px rgba(9, 24, 47, .6);
  transition: background .25s, border-color .25s, transform .25s;
}
html body main > section#news .news-more:hover { background: #edc213; border-color: #edc213; transform: translateY(-2px); }
html body main > section#news .news-more:focus-visible { outline: 2px solid #edc213; outline-offset: 3px; }
html body main > section#news .news-more[hidden] { display: none; }
@media (max-width: 1000px) { html body main > section#news .news-more { display: none; } }
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  html body main > section#news:not(.news-in) .news-grid > .post { opacity: 0; translate: 0 40px; }
  html body main > section#news.news-in .news-grid > .post { animation: nwRise .8s cubic-bezier(.2, .8, .2, 1) both; }
  html body main > section#news.news-in .news-grid > .post:nth-child(2) { animation-delay: .1s; }
  html body main > section#news.news-in .news-grid > .post:nth-child(3) { animation-delay: .18s; }
  html body main > section#news.news-in .news-grid > .post:nth-child(4) { animation-delay: .26s; }
  html body main > section#news.news-in .news-grid > .post:nth-child(5) { animation-delay: .34s; }
  html body main > section#news.news-in .news-grid > .post:nth-child(n+6) { animation-delay: .1s; }
  @keyframes nwRise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
  html body main > section#news.news-in .news-grid:not(#_):not(#_) > .post > img { animation: nwZoom 1.6s cubic-bezier(.2, .8, .2, 1) both !important; }
  @keyframes nwZoom { from { scale: 1.18; } to { scale: 1; } }
}
/* nouvel ordre : événements → actualités → formations */
@media (min-width: 1001px) {
  html body main > section#news:not(#_):not(#_):not(#_):not(#_) { padding-top: 44px !important; padding-bottom: 36px !important; }
  html body main > section#trainings:not(#_):not(#_):not(#_):not(#_) { padding-top: 36px !important; padding-bottom: 64px !important; }
}

/* pied de page : espaces membres / administration « bientôt » (liens désactivés, pastille or) */
html body footer .fy-soon { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .55); cursor: default; }
html body footer .fy-soon em { font-style: normal; font-size: .68rem; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 999px; color: #0b2540; background: #edc213; letter-spacing: .02em; }

/* ===== Hero : tout tient au-dessus de la ligne de flottaison (2026-11-14) =====
   avant : sur un écran de ~900 px de haut, les deux boutons étaient coupés en bas. Le fort, le titre et les marges
   se règlent maintenant sur la HAUTEUR de l'écran ; texte d'accroche plus lisible ; bouton principal plus présent. */
@media (min-width: 1001px) {
  html body main > section.hero:not(#_):not(#_) { padding-top: clamp(88px, 11vh, 124px) !important; }
  html body main > section.hero:not(#_):not(#_) .montage { text-align: center; margin-inline: auto !important; width: auto !important; max-width: 1180px; height: auto !important; }
  html body main > section.hero:not(#_):not(#_) .fort-wrap { width: auto !important; max-width: 100%; height: auto !important; }
  html body main > section.hero:not(#_):not(#_) .montage img { width: auto !important; max-width: 100% !important; height: auto !important; max-height: min(33vh, 330px) !important; margin-inline: auto !important; }
  html body main > section.hero:not(#_):not(#_) .hero-text { margin-top: clamp(6px, 1.4vh, 16px) !important; }
  html body main > section.hero:not(#_):not(#_) h1 { font-size: clamp(2.6rem, min(4.2vw, 7.4vh), 4.6rem) !important; line-height: 1.12 !important; margin-bottom: clamp(8px, 1.4vh, 16px) !important; }
  html body main > section.hero:not(#_):not(#_) .hero-row { gap: clamp(14px, 2.2vh, 26px) !important; }
  html body main > section.hero:not(#_):not(#_) .lead { line-height: 1.75 !important; }
}
html body main > section.hero:not(#_):not(#_) .lead > span { color: rgba(255, 255, 255, .88) !important; }
html body main > section.hero:not(#_):not(#_) .cta-main {
  box-shadow: 0 0 0 0 rgba(242, 169, 59, .55), 0 16px 30px -14px rgba(242, 169, 59, .8) !important;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease !important;
}
html body main > section.hero:not(#_):not(#_) .cta-main:hover { transform: translateY(-3px) scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section.hero.on-screen:not(#_):not(#_) .cta-main { animation: heroPulse 2.8s ease-out 2.4s infinite; }
  @keyframes heroPulse { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, .55), 0 16px 30px -14px rgba(242, 169, 59, .8); } 70%, 100% { box-shadow: 0 0 0 16px rgba(242, 169, 59, 0), 0 16px 30px -14px rgba(242, 169, 59, .8); } }
}

/* ===== Hero : finitions (2026-11-14) — « 1994 » en or, titre avec profondeur, flèche sur le bouton ===== */
html body main > section.hero:not(#_):not(#_) h1 { text-shadow: 0 2px 0 rgba(4, 20, 43, .35), 0 18px 44px rgba(4, 20, 43, .55) !important; }
html body main > section.hero:not(#_):not(#_) h1 .w:last-child {
  background: linear-gradient(180deg, #ffe2a3 0%, #f8c25c 45%, #eea43a 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: #f8c25c !important;
  text-shadow: none !important; filter: drop-shadow(0 10px 22px rgba(242, 169, 59, .28));
}
html body main > section.hero:not(#_):not(#_) .lead > span { display: block; }
html body main > section.hero:not(#_):not(#_) .cta-main { gap: .6em; }
html body main > section.hero:not(#_):not(#_) .cta-main::after {
  content: ""; flex: none; width: .5em; height: .5em; border: solid currentColor; border-width: 0 0 2.5px 2.5px; border-radius: 1px;
  transform: rotate(45deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
html body main > section.hero:not(#_):not(#_) .cta-main:hover::after { transform: translateX(-4px) rotate(45deg); }
html[dir="ltr"] body main > section.hero:not(#_):not(#_) .cta-main::after { transform: rotate(225deg); }
html[dir="ltr"] body main > section.hero:not(#_):not(#_) .cta-main:hover::after { transform: translateX(4px) rotate(225deg); }
html body main > section.hero:not(#_):not(#_) .cta-glass {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 30px -18px rgba(1, 6, 15, .9) !important;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), border-color .3s ease !important;
}
html body main > section.hero:not(#_):not(#_) .cta-glass:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .6) !important; }
html body main > section.hero:not(#_):not(#_) .cta-main::after { position: static !important; inset: auto !important; opacity: 1 !important; background: none !important; animation: none !important; margin-top: .1em; }

/* ===== Boutons flottants (haut de page + Messenger) : une vraie paire (2026-11-14) =====
   avant : deux disques de tailles différentes (48 / 54), l'un bleu plat qui disparaissait sur le pied de page marine.
   Même diamètre, même axe, même ombre ; le « haut de page » en verre marine givré, lisible sur clair comme sur foncé. */
html body .to-top:not(#_):not(#_), html body .dock .dock-msg:not(#_):not(#_) {
  transition: transform .32s cubic-bezier(.3, 1.6, .5, 1), background-color .25s ease, box-shadow .3s ease, opacity .3s ease, border-color .25s ease !important;
}
html body .to-top:not(#_):not(#_) {
  background: rgba(13, 59, 102, .78) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 28px -14px rgba(4, 20, 43, .75) !important;
}
html body .to-top:not(#_):not(#_) i { transition: transform .32s cubic-bezier(.3, 1.6, .5, 1), color .25s ease; }
html body .dock .dock-msg:not(#_):not(#_) {
  background: #fff !important; border: 1px solid rgba(13, 59, 102, .1) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 14px 28px -14px rgba(4, 20, 43, .75) !important;
}
@media (hover: hover) {
  html body .to-top.show:not(#_):not(#_):hover { transform: translateY(-3px); background: #f2a93b !important; border-color: rgba(255, 255, 255, .5) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 30px -14px rgba(242, 169, 59, .8) !important; }
  html body .to-top.show:not(#_):not(#_):hover i { color: #0b2540 !important; transform: translateY(-2px); }
  html body .dock .dock-msg:not(#_):not(#_):hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 0 5px rgba(0, 132, 255, .16), 0 18px 30px -14px rgba(0, 132, 255, .7) !important; }
}
html body .to-top:not(#_):not(#_):focus-visible, html body .dock .dock-msg:not(#_):not(#_):focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; }
@media (min-width: 1001px) {
  html body .to-top:not(#_):not(#_) { width: 50px !important; height: 50px !important; inset-inline-end: auto; left: 20px !important; right: auto !important; bottom: 80px !important; }
  html body .dock .dock-msg:not(#_):not(#_) { width: 50px !important; height: 50px !important; }
  html body .dock .dock-msg:not(#_):not(#_) i { font-size: 26px !important; }
  html body .to-top:not(#_):not(#_) i { font-size: 20px !important; }
}

/* ===== Programmes (CYE / TOYP / D&O / TWIN) : ouverture rapide et fluide (2026-11-14) =====
   avant : ~1,5 s avant que tout soit posé (colonnes .95 s, photo révélée par un cercle clip-path 1,5 s, textes retardés de .45 à .75 s,
   flous animés) → saccades. Maintenant ~.55 s : colonnes .5 s, photo en simple fondu, textes qui suivent aussitôt, plus aucun flou animé. */
html body .pgx:not(#_):not(#_) .pgx-panels { transition: grid-template-columns .5s cubic-bezier(.22, 1, .36, 1) !important; }
html body .pgx:not(#_):not(#_) .pgx-p { contain: layout style; }
html body .pgx:not(#_):not(#_) .pgx-stage { transition: opacity .3s ease, visibility 0s !important; }
html body .pgx:not(#_):not(#_) .pgx-photos img { transition: opacity .45s ease !important; }
html body .pgx:not(#_):not(#_) .pgx-photos img.on { animation: pgxFadeIn .45s ease both, pgxKen 9s ease-out both !important; clip-path: none !important; }
@keyframes pgxFadeIn { from { opacity: 0; } to { opacity: 1; } }
html body .pgx:not(#_):not(#_) .pgx-frame :is(.pgx-badge, .pgx-cap, .pgx-chip, .pgx-stage-acts) { transition: opacity .25s ease .12s, visibility 0s linear 0s !important; }
html body .pgx:not(#_):not(#_) .pgx-p:not(.on) .pgx-frame :is(.pgx-badge, .pgx-cap, .pgx-chip, .pgx-stage-acts) { transition: opacity .12s ease 0s, visibility 0s linear .12s !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-frame { animation: none !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-badge { animation: pgxUp .35s cubic-bezier(.22, 1, .36, 1) .1s backwards !important; filter: none !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-cap-name { animation: pgxUp .38s cubic-bezier(.22, 1, .36, 1) .12s backwards !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-cap-hook .w { animation: pgxUp .4s cubic-bezier(.22, 1, .36, 1) backwards !important; animation-delay: calc(.16s + var(--i) * 28ms) !important; filter: none !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-cap-desc { animation: pgxUp .38s cubic-bezier(.22, 1, .36, 1) .26s backwards !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-stage-acts { animation: pgxUp .38s cubic-bezier(.22, 1, .36, 1) .32s backwards !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-chip { animation: pgxChip .38s cubic-bezier(.22, 1, .36, 1) .2s both !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-chip i { animation-duration: .45s !important; animation-delay: .3s !important; }
html body .pgx:not(#_):not(#_) .pgx-p.enter .pgx-front > * { animation-duration: .38s !important; }
html body .pgx:not(#_):not(#_) .pgx-amb { transition: opacity .4s ease !important; }
html body .pgx:not(#_):not(#_) .pgx-acro { transition: opacity .2s ease, translate .35s cubic-bezier(.22, 1, .36, 1) !important; }
html body .pgx:not(#_):not(#_) .pgx-open { transition: opacity .2s ease !important; }

/* Programmes : contenu des panneaux à largeur fixe (celle du panneau ouvert, --pgx-w posée par interactions.js), centré dans le cadre.
   Le glissement des colonnes ne fait plus que découvrir / recouvrir ce contenu : ni la photo ni le texte ne sont recalculés en route. */
html body .pgx[style*="--pgx-w"]:not(#_):not(#_) .pgx-frame > .pgx-deco {
  inset: 0 auto 0 50% !important; width: max(100%, var(--pgx-w)) !important; translate: -50% 0;
}
html body .pgx[style*="--pgx-w"]:not(#_):not(#_) .pgx-frame { contain: paint; }
html body .pgx[style*="--pgx-w"]:not(#_):not(#_) .pgx-stage { contain: layout style !important; }

/* ===== Téléphone : deux éléments mal posés (2026-11-15) =====
   l'étiquette « أهلا وسهلا! » tombait sur le fort ; le sticker « Interesting! » recouvrait le sous-titre des évènements
   (les autres stickers sont déjà masqués sur téléphone). */
@media (max-width: 760px) {
  html body .brand .brand-hello:not(#_):not(#_) { display: none !important; }
  html body #projects:not(#_):not(#_) .bn.bn-look, html body #projects:not(#_):not(#_) .bn-say.bs-guy { display: none !important; }
}

/* ===== Hero : ciel sans cassure (2026-11-15) =====
   avant : les paliers du dégradé mélangeaient des % et des distances fixes depuis le bas (100% - 460px…). Dès que l'accueil faisait
   moins de ~770 px de haut, deux paliers se retrouvaient au même endroit → une ligne nette sous le fort. Les paliers sont maintenant
   toujours dans l'ordre, avec davantage d'étapes pour un fondu de nuit vers l'aube plus naturel. */
html body main > section.hero:not(#_):not(#_):not(#_) {
  background-image:
    radial-gradient(70% 50% at 50% 38%, rgba(255, 170, 80, .08), rgba(255, 170, 80, 0) 70%),
    linear-gradient(in oklab,
      rgb(1, 6, 15) 0%,
      rgb(3, 14, 31) 12%,
      rgb(5, 24, 50) 26%,
      rgb(8, 37, 71) 40%,
      rgb(10, 45, 84) max(50%, calc(100% - 560px)),
      rgb(12, 53, 97) max(60%, calc(100% - 460px)),
      rgb(24, 68, 112) max(69%, calc(100% - 380px)),
      rgb(42, 88, 132) max(77%, calc(100% - 300px)),
      rgb(98, 136, 172) max(85%, calc(100% - 210px)),
      rgb(169, 192, 214) max(92%, calc(100% - 130px)),
      rgb(222, 232, 242) max(97%, calc(100% - 55px)),
      rgb(255, 255, 255) 100%) !important;
}
html body main > section.hero:not(#_):not(#_):not(#_) .hero-stars {
  -webkit-mask-image: linear-gradient(#000 0%, #000 max(45%, calc(100% - 480px)), transparent max(80%, calc(100% - 200px))) !important;
          mask-image: linear-gradient(#000 0%, #000 max(45%, calc(100% - 480px)), transparent max(80%, calc(100% - 200px))) !important;
}

/* ===== Formulaires : l'écran « وصلنا مطلبك » s'affiche enfin après l'envoi (2026-11-15) =====
   bogue : un display forcé gardait les champs visibles malgré l'attribut hidden, et le message de confirmation restait transparent.
   La demande partait bien, mais rien ne changeait à l'écran → on croyait que l'envoi avait échoué (et on renvoyait). */
html body form:not(#_):not(#_):not(#_) .form-body[hidden] { display: none !important; }
html body form:not(#_):not(#_):not(#_) .form-done[hidden] { display: none !important; }
html body form:not(#_):not(#_):not(#_) .form-done:not([hidden]) {
  display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
  padding: clamp(28px, 5vw, 56px) 8px; text-align: center; animation: formDone .5s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes formDone { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }


/* ===== Téléphone : retours sur le vrai appareil (2026-11-15) ===== */

/* 1. Mission et vision à côté du cercle : le cercle à droite, « رسالتنا » en haut et « رؤيتنا » en dessous.
      avant : le cercle occupait tout un écran, les deux textes venaient loin dessous. */
@media (max-width: 760px) {
  html body #about:not(#_):not(#_):not(#_) .mv {
    display: grid !important; align-items: center;
    grid-template-columns: clamp(112px, 34vw, 148px) minmax(0, 1fr) !important;
    grid-template-areas: "c m" "c v" !important;
    column-gap: 16px !important; row-gap: 20px !important;
  }
  html[dir="ltr"] body #about:not(#_):not(#_):not(#_) .mv {
    grid-template-columns: minmax(0, 1fr) clamp(112px, 34vw, 148px) !important;
    grid-template-areas: "m c" "v c" !important;
  }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-center {
    grid-area: c !important; width: 100% !important; height: auto !important; aspect-ratio: 1; margin: 0 !important;
    align-self: center !important; justify-self: stretch !important;
  }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-center .mvc-spin,
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-center .mvc-rip { width: 100% !important; height: 100% !important; }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-center .mvc-logo { width: 34% !important; height: 34% !important; }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-center .mvc-logo img { width: 66% !important; height: auto !important; }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-item { margin: 0 !important; padding: 0 !important; min-width: 0; }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-item h3 { font-size: 1.5rem !important; line-height: 1.25 !important; margin-bottom: 4px !important; }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-item .mv-text { font-size: .95rem !important; line-height: 1.7 !important; margin: 6px 0 0 !important; max-width: none !important; padding: 0 !important; }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-item .mv-derja { font-size: 1.05rem !important; margin: 6px 0 0 !important; padding: 0 !important; }
  html body #about:not(#_):not(#_):not(#_) .mv > .mv-item .mv-link { margin: 4px 0 !important; }
}

/* 2. Pied de page : le « JCI » retrouve sa mosaïque de photos sur iPhone.
      Safari n'affiche pas une image découpée dans un texte quand le même élément porte une ombre « filter » :
      il ne restait que le contour. L'ombre est retirée sur les écrans tactiles (le relief vient du contour). */
@media (hover: none), (max-width: 860px) {
  html body footer.footer.fy:not(#_):not(#_) .fy-mark .fy-photo { filter: none !important; -webkit-filter: none !important; }
}
@supports (-webkit-touch-callout: none) {
  html body footer.footer.fy:not(#_):not(#_) .fy-mark .fy-photo { filter: none !important; -webkit-filter: none !important; }
}
@media (max-width: 760px) {
  html body footer.footer.fy:not(#_):not(#_) .fy-mark .fy-photo { font-size: clamp(104px, 31vw, 132px) !important; }
  /* icônes de contact : de vrais ronds (elles étaient écrasées en ovales 34 x 44) */
  html body footer.footer.fy:not(#_):not(#_) a:has(> i[class*="ph-"]) {
    width: 44px !important; height: 44px !important; min-width: 44px !important; flex: 0 0 44px !important;
    padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center !important;
  }
}

/* 3. Boutons moins massifs sur téléphone, surtout à l'accueil : les deux boutons côte à côte, plus fins ;
      la barre fixe du bas plus basse. */
@media (max-width: 760px) {
  html body main > section.hero:not(#_):not(#_):not(#_) .hero-actions {
    display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; align-items: center;
  }
  html body main > section.hero:not(#_):not(#_):not(#_) .hero-actions .hero-note { grid-column: 1 / -1 !important; justify-self: center; margin: 0 0 2px !important; }
  html body main > section.hero:not(#_):not(#_):not(#_) .hero-actions .cta {
    width: auto !important; min-width: 0 !important; height: 44px !important; min-height: 44px !important;
    padding: 0 14px !important; font-size: .92rem !important; white-space: nowrap;
  }
  html body .dock:not(#_):not(#_) { padding-top: 8px !important; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; gap: 10px !important; }
  html body .dock:not(#_):not(#_) .btn { height: 46px !important; min-height: 46px !important; font-size: .98rem !important; padding: 0 18px !important; }
  html body .dock:not(#_):not(#_) .dock-msg { width: 46px !important; height: 46px !important; flex: 0 0 46px !important; }
  html body .top #burger:not(#_) { width: 40px !important; height: 40px !important; }
}

/* 4. Fluidité sur téléphone : les sections hors écran ne sont ni calculées ni dessinées tant qu'on n'en approche pas,
      et les effets les plus coûteux (flous de fond, étoiles animées) sont coupés. */
@media (max-width: 760px) {
  /* seulement les sections dont rien ne dépasse du cadre : ce réglage rogne tout ce qui sort de la section
     (la photo du bureau, qui remonte sur l'accueil, était coupée) */
  html body main > section#news:not(#_), html body main > section#trainings:not(#_),
  html body main > section#history:not(#_), html body main > section#faq:not(#_) {
    content-visibility: auto; contain-intrinsic-size: auto 900px;
  }
  html body .dock:not(#_):not(#_),
  html body main > section:not(#_) .about-card, html body main > section.hero:not(#_) .cta-glass {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html body main > section.hero:not(#_)::before { animation: none !important; }
  html body main > section.hero:not(#_) .beams, html body main > section.hero:not(#_) .hero-moon { display: none !important; }
}

/* Téléphone : plus de bande blanche sous le pied de page (la place de la barre fixe est prise dans le pied de page marine) ;
   cercle mission/vision un peu plus présent. */
@media (max-width: 760px) {
  html body:not(#_):not(#_) { padding-bottom: 0 !important; }
  html body footer.footer.fy:not(#_):not(#_) { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
  html body #about:not(#_):not(#_):not(#_) .mv { grid-template-columns: clamp(124px, 38vw, 164px) minmax(0, 1fr) !important; }
  html[dir="ltr"] body #about:not(#_):not(#_):not(#_) .mv { grid-template-columns: minmax(0, 1fr) clamp(124px, 38vw, 164px) !important; }
}


/* Bloc partenaire : en français et en anglais, le mot qui s'écrit et le slogan prennent l'écriture manuscrite latine du site */
html:not([lang="ar"]) body #contact:not(#_) .pt-collab .pt-w,
html:not([lang="ar"]) body #contact:not(#_) .pt-txt > p.derja { font-family: "Caveat", "Plus Jakarta Sans", cursive !important; letter-spacing: 0 !important; }
html:not([lang="ar"]) body #contact:not(#_) .pt-collab .pt-w { font-size: clamp(1.9rem, 3.4vw, 2.7rem) !important; font-weight: 700 !important; white-space: nowrap; }


/* ===== Versions française et anglaise : alignement et écriture (2026-11-15) =====
   Les petites phrases autrefois en arabe prennent l'écriture manuscrite latine ; la flèche de l'accueil pointe vers les boutons ;
   les titres des cartes « Pourquoi nous rejoindre » ne sont plus coupés. */
html:not([lang="ar"]) body .hero-note:not(#_), html:not([lang="ar"]) body .hero-note:not(#_) > span,
html:not([lang="ar"]) body p.mv-derja:not(#_), html:not([lang="ar"]) body p.team-proverb:not(#_),
html:not([lang="ar"]) body li.rb-w.rb-w-h:not(#_) { font-family: "Caveat", "Plus Jakarta Sans", cursive !important; letter-spacing: 0 !important; }
html:not([lang="ar"]) body p.derja:not(#_), html:not([lang="ar"]) body li.rb-w.rb-w-k:not(#_) { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; letter-spacing: 0 !important; }
html:not([lang="ar"]) body p.team-proverb:not(#_) { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; }
html:not([lang="ar"]) body li.rb-w.rb-w-k:not(#_) { font-weight: 800 !important; text-transform: uppercase; font-size: 26px !important; line-height: 44px !important; letter-spacing: .04em !important; }
/* flèche de l'accueil : en écriture latine la note est à droite des boutons, la flèche doit revenir vers eux */
html:not([lang="ar"]) body main > section.hero:not(#_):not(#_) .hero-note { direction: ltr !important; flex-direction: row !important; align-items: flex-end; }
html:not([lang="ar"]) body main > section.hero:not(#_):not(#_) .hero-note svg { transform: scaleX(-1) !important; scale: none !important; rotate: none !important; translate: none !important; }
html:not([lang="ar"]) body main > section.hero:not(#_):not(#_) .hero-note > span { white-space: nowrap; }
html:not([lang="ar"]) body p.mv-derja:not(#_):not(#_) { font-size: 1.35rem !important; line-height: 1.3 !important; }
/* cartes repliées : titre plus petit, coupé proprement en fin de ligne plutôt que rogné */
html:not([lang="ar"]) body #why:not(#_) ul.px-panels > li.area:not(.on) h3,
html:not([lang="ar"]) body #why:not(#_) ul.px-panels > li.area:not(.on) h3 mark {
  font-size: 1.12rem !important; line-height: 1.25 !important; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto;
}

/* Note de l'accueil en français/anglais : la flèche ne colle plus au point d'exclamation, elle part sous la fin de la phrase */
@media (min-width: 761px) {
  html:not([lang="ar"]) body main > section.hero:not(#_):not(#_):not(#_) .hero-note { gap: 12px !important; align-items: center !important; }
  html:not([lang="ar"]) body main > section.hero:not(#_):not(#_):not(#_) .hero-note > span { transform: rotate(-4deg) !important; transform-origin: 100% 100%; margin-bottom: 14px !important; }
  html:not([lang="ar"]) body main > section.hero:not(#_):not(#_):not(#_) .hero-note svg { width: 74px !important; height: auto !important; margin-top: 16px !important; flex: none; }
}

/* Ruban en français/anglais : mêmes inclinaisons qu'en arabe. Une règle « écriture de gauche à droite » remettait les deux bandes
   à plat : la bande dorée passait alors derrière les photos et ses mots devenaient illisibles. */
html[dir="ltr"] body main > .ribbon:not(#_) .rb-cross > .rb-band.rb-gold { rotate: -3deg !important; }
html[dir="ltr"] body main > .ribbon:not(#_) .rb-cross > .rb-band.rb-glass { rotate: 2.5deg !important; }
/* … et même largeur qu'en arabe (la bande prenait la largeur de tout son contenu, ce qui déportait la rotation) */
html[dir="ltr"] body main > .ribbon:not(#_) .rb-cross > .rb-band {
  left: -6% !important; right: -6% !important; width: auto !important; min-width: 0 !important; max-width: none !important;
}


/* ===== Actualités : nouvelle mise en page (2026-11-15) =====
   Une actualité « à la une » en grand, puis une grille de cartes : date en pastille sur la photo, niveau et catégorie,
   lieu, résumé, accès direct aux photos. Classes « nw- » neuves : aucune des anciennes règles de la mosaïque ne s'y applique. */
#news .nw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 18px; }
#news .nw-titles h2 { margin: 0; }
#news .nw-sub { margin: 8px 0 0; max-width: 46ch; color: #4a5a6d; font-size: 1.02rem; line-height: 1.7; }

#news .nw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
#news .nw-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; color: #0d3b66; background: #fff; border: 1px solid rgba(13, 59, 102, .16);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
#news .nw-filters button b { font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(13, 59, 102, .08); }
#news .nw-filters button:hover { border-color: rgba(13, 59, 102, .4); transform: translateY(-1px); }
#news .nw-filters button[aria-pressed="true"] { background: #0d3b66; border-color: #0d3b66; color: #fff; }
#news .nw-filters button[aria-pressed="true"] b { background: rgba(255, 255, 255, .2); }

#news .nw-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(13, 59, 102, .08); box-shadow: 0 1px 2px rgba(9, 24, 47, .05), 0 18px 34px -26px rgba(9, 24, 47, .55);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
#news .nw-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(9, 24, 47, .06), 0 26px 44px -26px rgba(9, 24, 47, .6); }
#news .nw-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #dfe7f0; cursor: pointer; overflow: hidden; }
#news .nw-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
#news .nw-card:hover .nw-media img { transform: scale(1.05); }
#news .nw-ph { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; font-size: 2rem; color: rgba(13, 59, 102, .35); }
#news .nw-date { position: absolute; top: 12px; inset-inline-start: 12px; display: grid; justify-items: center; min-width: 58px; padding: 7px 10px 8px;
  border-radius: 14px; background: rgba(255, 255, 255, .96); color: #0b2540; box-shadow: 0 10px 22px -12px rgba(9, 24, 47, .7); line-height: 1; }
#news .nw-date b { font-size: 1.45rem; font-weight: 800; }
#news .nw-date small { margin-top: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: #4a5a6d; white-space: nowrap; }
#news .nw-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
#news .nw-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .76rem; font-weight: 700; }
#news .nw-lvl { padding: 3px 10px; border-radius: 999px; }
#news .nw-local { background: #fdf0d6; color: #7a4a00; }
#news .nw-zone { background: #d9f2f0; color: #0b5f5b; }
#news .nw-nat { background: #dce8f6; color: #0d3b66; }
#news .nw-cat { color: #5b6b7e; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
html[lang="ar"] #news .nw-cat { text-transform: none; letter-spacing: 0; font-size: .78rem; }
#news .nw-card h3 { margin: 0 0 8px; font-size: 1.14rem; line-height: 1.35; color: #0b2540; }
#news .nw-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: .84rem; color: #4a5a6d; }
#news .nw-meta time, #news .nw-meta span { display: inline-flex; align-items: center; gap: 5px; }
#news .nw-meta i { font-size: 1rem; color: #0d3b66; opacity: .7; }
#news .nw-text { margin: 0 0 14px; font-size: .94rem; line-height: 1.7; color: #3f5164;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#news .nw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: auto 0 0; }
#news .nw-read { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 800; font-size: .92rem; color: #0d3b66;
  border-bottom: 2px solid #f2a93b; padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
#news .nw-read:hover { color: #b46c00; }
#news .nw-photos { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .82rem; color: #0d3b66; background: rgba(13, 59, 102, .06); border: 1px solid rgba(13, 59, 102, .1);
  transition: background-color .2s ease, transform .2s ease; }
#news .nw-photos b { font-weight: 800; }
#news .nw-photos:hover { background: rgba(13, 59, 102, .12); transform: translateY(-1px); }
#news :is(.nw-read, .nw-photos, .nw-filters button):focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; }

/* bande défilante : toutes les cartes sur une ligne, on fait défiler au doigt, à la molette ou avec les deux flèches */
#news .nw-rail { position: relative; }
#news .nw-list { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; margin: 0 -6px; padding: 8px 6px 34px; scroll-padding-inline: 6px; }
#news .nw-list::-webkit-scrollbar { display: none; }
#news .nw-card { flex: 0 0 clamp(280px, calc((100% - 40px) / 3), 400px); scroll-snap-align: start; }
#news .nw-arrow { position: absolute; top: calc(50% - 40px); z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  cursor: pointer; color: #0d3b66; background: #fff; border: 1px solid rgba(13, 59, 102, .16); font-size: 1.25rem;
  box-shadow: 0 14px 28px -14px rgba(9, 24, 47, .65); transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .2s ease, color .2s ease, opacity .2s ease; }
#news .nw-arrow.nw-prev { inset-inline-start: -22px; }
#news .nw-arrow.nw-next { inset-inline-end: -22px; }
#news .nw-arrow:hover:not(:disabled) { background: #0d3b66; color: #fff; transform: scale(1.06); }
#news .nw-arrow:disabled { opacity: 0; pointer-events: none; }
#news .nw-arrow:focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; }
html[lang="ar"] #news .nw-arrow i { transform: scaleX(-1); }


/* fiche détaillée */
.post-dialog .post-place { margin: 6px 0 14px; font-weight: 700; color: #4a5a6d; }
.post-dialog .post-acts { margin-top: 18px; }
.post-dialog .post-acts:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  #news:not(.nw-in) .nw-card { opacity: 0; transform: translateY(22px); }
  #news.nw-in .nw-card { animation: nwUp .6s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(min(var(--k, 0), 5) * 70ms); }
  @keyframes nwUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1000px) {
  #news .nw-card { flex-basis: clamp(270px, calc((100% - 20px) / 2), 400px); }
  #news .nw-arrow.nw-prev { inset-inline-start: -8px; }
  #news .nw-arrow.nw-next { inset-inline-end: -8px; }
}
@media (max-width: 760px) {
  #news .nw-head { align-items: flex-start; }
  /* téléphone : on fait défiler au doigt, la carte suivante dépasse pour le montrer ; pas de flèches */
  #news .nw-list { gap: 14px; margin-inline: -16px; padding: 6px 16px 28px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; }
  #news .nw-card { flex-basis: min(82%, 340px); }
  #news .nw-arrow { display: none; }
  #news .nw-text { -webkit-line-clamp: 3; line-clamp: 3; }
  #news .nw-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  #news .nw-filters::-webkit-scrollbar { display: none; }
  #news .nw-filters button { flex: none; }
}

/* Ruban de Polaroids : 42 photos au lieu de 34, la durée suit pour garder la même vitesse de défilement */
main > .ribbon .rb-glass .rb-track { animation-duration: 86s; }

/* ===== Actualités : ambiance de la bande défilante =====
   Lueur douce derrière les cartes, ombres en deux couches, fondu sur le bord où il reste des cartes, barre de progression. */
#news .nw-head { margin-bottom: 26px; }
#news .nw-filters { margin-bottom: 18px; }
#news .nw-rail { isolation: isolate; }
#news .nw-rail::before { content: ""; position: absolute; z-index: -1; inset: 6% -2% 4%; border-radius: 48px; pointer-events: none;
  background: radial-gradient(42% 60% at 12% 30%, rgba(242, 169, 59, .16), transparent 70%),
              radial-gradient(46% 70% at 88% 70%, rgba(13, 59, 102, .13), transparent 72%);
  filter: blur(28px); }
#news .nw-list { gap: 24px; padding: 14px 8px 44px; margin: 0 -8px; scroll-padding-inline: 8px;
  --fade-a: #000; --fade-b: #000;
  -webkit-mask-image: linear-gradient(to right, var(--fade-a), #000 56px, #000 calc(100% - 56px), var(--fade-b));
          mask-image: linear-gradient(to right, var(--fade-a), #000 56px, #000 calc(100% - 56px), var(--fade-b)); }
/* le fondu suit le sens de lecture : « avant » est à gauche en français, à droite en arabe */
html:not([lang="ar"]) #news .nw-rail.nw-more-before .nw-list, html[lang="ar"] #news .nw-rail.nw-more-after .nw-list { --fade-a: transparent; }
html:not([lang="ar"]) #news .nw-rail.nw-more-after .nw-list, html[lang="ar"] #news .nw-rail.nw-more-before .nw-list { --fade-b: transparent; }

#news .nw-card { border-radius: 24px; border: 1px solid rgba(13, 59, 102, .07);
  box-shadow: 0 1px 2px rgba(9, 24, 47, .04), 0 10px 22px -14px rgba(9, 24, 47, .22), 0 34px 54px -38px rgba(9, 24, 47, .5);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.22, 1, .36, 1), border-color .3s ease; }
#news .nw-card:hover { transform: translateY(-6px); border-color: rgba(242, 169, 59, .45);
  box-shadow: 0 2px 4px rgba(9, 24, 47, .05), 0 16px 30px -16px rgba(9, 24, 47, .28), 0 44px 64px -36px rgba(9, 24, 47, .55); }
#news .nw-media { aspect-ratio: 4 / 3; }
#news .nw-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 6, 15, .16), transparent 34%, transparent 62%, rgba(1, 6, 15, .3)); }
#news .nw-media img { transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
#news .nw-card:hover .nw-media img { transform: scale(1.06); }
#news .nw-ph { background: linear-gradient(135deg, #0d3b66, #01060f); color: rgba(255, 255, 255, .5); letter-spacing: .08em; }
#news .nw-date { z-index: 1; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); box-shadow: 0 10px 22px -12px rgba(1, 6, 15, .6); }
#news .nw-body { padding: 20px 22px 22px; }
#news .nw-tags { margin-bottom: 10px; }
#news .nw-card h3 { margin-bottom: 10px; font-size: 1.18rem; }
#news .nw-meta { margin-bottom: 12px; }
#news .nw-text { margin-bottom: 18px; }
#news .nw-acts { padding-top: 14px; border-top: 1px solid rgba(13, 59, 102, .08); }

#news .nw-arrow { width: 52px; height: 52px; top: calc(50% - 46px); background: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(13, 59, 102, .1), 0 18px 34px -14px rgba(9, 24, 47, .6);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, color .25s ease, opacity .3s ease; }
#news .nw-arrow:hover:not(:disabled) { background: #f2a93b; color: #0b2540; transform: scale(1.08); }
#news .nw-arrow:active:not(:disabled) { transform: scale(.96); }

#news .nw-progress { position: relative; width: min(220px, 46%); height: 4px; margin: -18px auto 0; border-radius: 999px; background: rgba(13, 59, 102, .1); overflow: hidden; }
#news .nw-progress[hidden] { display: none; }
#news .nw-progress i { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--p, 0) * (1 - var(--w, .3)) * 100%); width: calc(var(--w, .3) * 100%);
  border-radius: inherit; background: linear-gradient(90deg, #f2a93b, #e58f17); transition: inset-inline-start .25s ease-out; }

@media (max-width: 760px) {
  #news .nw-list { gap: 14px; margin-inline: -16px; padding: 10px 16px 36px; scroll-padding-inline: 16px; -webkit-mask-image: none; mask-image: none; }
  #news .nw-rail::before { inset: 10% 0 6%; filter: blur(22px); }
  #news .nw-body { padding: 16px 18px 18px; }
  #news .nw-progress { margin-top: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  #news .nw-list { scroll-behavior: auto; }
  #news .nw-card, #news .nw-media img, #news .nw-arrow, #news .nw-progress i { transition: none; }
}

/* Actualités : plusieurs photos par carte (une grande + une ou deux petites à côté) */
#news .nw-media { display: grid; gap: 3px; cursor: default; background: #fff; }
#news .nw-media.nw-n2 { grid-template-columns: 3fr 2fr; }
#news .nw-media.nw-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
#news .nw-media.nw-n3 .nw-main { grid-row: 1 / 3; }
#news .nw-shot { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; background: #dfe7f0; cursor: pointer; overflow: hidden; }
#news .nw-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#news .nw-shot .nw-ph { position: absolute; inset: 0; }
#news .nw-media::after { z-index: 1; }
#news .nw-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(13, 59, 102, 0); transition: background-color .3s ease; }
#news .nw-thumb:hover::after { background: rgba(13, 59, 102, .18); }
#news .nw-shot:focus-visible { outline: 3px solid #f2a93b; outline-offset: -3px; z-index: 2; }

/* Actualités : ombres plus courtes, pour qu'elles tiennent dans la marge de la bande et ne soient plus coupées net en bas */
#news .nw-list { padding-bottom: 52px; }
#news .nw-card { box-shadow: 0 1px 2px rgba(9, 24, 47, .05), 0 14px 26px -18px rgba(9, 24, 47, .34); }
#news .nw-card:hover { box-shadow: 0 2px 4px rgba(9, 24, 47, .06), 0 22px 34px -20px rgba(9, 24, 47, .4); }
#news .nw-rail::before { inset: 8% 2% 14%; filter: blur(34px); }
#news .nw-progress { margin-top: -12px; }
@media (max-width: 760px) {
  #news .nw-list { padding-bottom: 44px; }
  #news .nw-progress { margin-top: -10px; }
}

/* Actualités : une affiche se montre en entier (sans recadrage), sur son propre bleu */
#news .nw-shot.nw-fit { background: #012756; }
#news .nw-shot.nw-fit img { object-fit: contain; }
#news .nw-card:hover .nw-shot.nw-fit img { transform: none; }

/* Actualités : la date n'est plus répétée sous le titre (elle est sur la photo) ; la ligne ne garde que le lieu */
#news .nw-meta:empty { display: none; }

/* Actualités : pastille d'un événement sur plusieurs jours (« 24–26 ») */
#news .nw-date.nw-range b { font-size: 1.16rem; white-space: nowrap; letter-spacing: -.01em; }
#news .nw-date.nw-range { padding-inline: 12px; }

/* ===== Actualités : cartes « plein cadre » (2026-11-15) =====
   Même langage que les grandes manifestations et les formations : la photo remplit la carte, le texte se pose dessus
   sur un voile bleu nuit, touches dorées, petite phrase manuscrite au-dessus du titre, mini-Polaroids des autres photos. */
#news .nw-kicker { margin: 0 0 2px; font-family: "Aref Ruqaa", "Reem Kufi", serif; font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: #e0901a;
  rotate: -2deg; transform-origin: 100% 100%; width: fit-content; }
html:not([lang="ar"]) #news .nw-kicker { font-family: "Caveat", "Plus Jakarta Sans", cursive; font-size: 1.7rem; transform-origin: 0 100%; }
#news .nw-filters button { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease; }
#news .nw-filters button[aria-pressed="true"] { background: linear-gradient(135deg, #0d3b66, #072443); box-shadow: 0 12px 22px -14px rgba(7, 36, 67, .9); }

#news .nw-card { position: relative; display: block; aspect-ratio: 4 / 5; min-height: 420px; border: 0; border-radius: 28px; overflow: hidden; background: #071a33;
  box-shadow: 0 1px 2px rgba(9, 24, 47, .06), 0 16px 28px -18px rgba(9, 24, 47, .5);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s cubic-bezier(.22, 1, .36, 1); }
#news .nw-card:hover, #news .nw-card:focus-within { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(9, 24, 47, .08), 0 24px 34px -20px rgba(9, 24, 47, .6); }
/* liseré doré qui s'allume au survol */
#news .nw-card::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: box-shadow .5s ease; }
#news .nw-card:hover::after, #news .nw-card:focus-within::after { box-shadow: inset 0 0 0 1.5px rgba(242, 169, 59, .75); }

#news .nw-media, #news .nw-media.nw-n2, #news .nw-media.nw-n3 { position: absolute; inset: 0; display: block; aspect-ratio: auto; background: #071a33; }
#news .nw-main, #news .nw-media.nw-n3 .nw-main { position: absolute; inset: 0; width: 100%; height: 100%; background: #071a33; }
#news .nw-main img { transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
#news .nw-card:hover .nw-main img { transform: scale(1.07); }
#news .nw-media::after { z-index: 1; background:
  linear-gradient(180deg, rgba(4, 16, 36, .34) 0, rgba(4, 16, 36, 0) 24%, rgba(4, 16, 36, 0) 36%, rgba(4, 16, 36, .7) 64%, rgba(4, 16, 36, .95) 100%); }
#news .nw-shot.nw-fit img { object-fit: cover; object-position: 50% 0; }
#news .nw-ph { background: linear-gradient(160deg, #0d3b66, #01060f); }

/* mini-Polaroids des autres photos (ils ouvrent l'album) */
#news .nw-thumb { position: absolute; z-index: 3; top: 16px; inset-inline-end: 16px; width: 62px; height: 62px; border: 3px solid #fff; border-radius: 8px;
  background: #fff; box-shadow: 0 10px 18px -8px rgba(1, 6, 15, .75); rotate: 5deg;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), rotate .5s cubic-bezier(.22, 1, .36, 1); }
#news .nw-thumb + .nw-thumb { inset-inline-end: 62px; rotate: -6deg; z-index: 2; }
#news .nw-card:hover .nw-thumb { rotate: 2deg; transform: translateY(-2px); }
#news .nw-card:hover .nw-thumb + .nw-thumb { rotate: -3deg; transform: translate(-6px, -2px); }
html[lang="ar"] #news .nw-card:hover .nw-thumb + .nw-thumb { transform: translate(6px, -2px); }
#news .nw-thumb:hover { transform: translateY(-4px) scale(1.08) !important; z-index: 4; }
#news .nw-thumb img, #news .nw-card:hover .nw-thumb img { transform: none; border-radius: 4px; }
#news .nw-thumb::after { border-radius: 4px; }

#news .nw-date { top: 16px; inset-inline-start: 16px; z-index: 3; }

/* le texte, posé sur le voile */
#news .nw-body { position: absolute; z-index: 2; inset: auto 0 0; padding: 22px 22px 20px; pointer-events: none; color: #fff; }
#news .nw-body button { pointer-events: auto; }
#news .nw-tags { margin-bottom: 10px; }
#news .nw-lvl, #news .nw-local, #news .nw-zone, #news .nw-nat { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#news .nw-cat { color: #ffd27a; }
#news .nw-card h3 { margin: 0 0 8px; color: #fff; font-size: 1.32rem; line-height: 1.32; text-shadow: 0 2px 14px rgba(1, 6, 15, .5);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
#news .nw-card h3::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 10px; border-radius: 3px; background: #f2a93b;
  transition: width .6s cubic-bezier(.22, 1, .36, 1); }
#news .nw-card:hover h3::after, #news .nw-card:focus-within h3::after { width: 74px; }
#news .nw-meta { margin: 0 0 12px; color: rgba(255, 255, 255, .86); font-size: .88rem; }
#news .nw-meta i { color: #ffd27a; opacity: 1; }
#news .nw-text { margin: 0 0 14px; color: rgba(255, 255, 255, .9); font-size: .92rem; line-height: 1.65;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
#news .nw-acts { margin: 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
#news .nw-read { color: #ffd27a; border-bottom-color: rgba(255, 210, 122, .55); }
#news .nw-read:hover { color: #fff; }
#news .nw-photos { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#news .nw-photos:hover { background: #f2a93b; border-color: #f2a93b; color: #0b2540; }

/* à la souris : le résumé se déplie au survol ; au doigt : il reste dans la fiche détaillée */
@media (hover: hover) {
  #news .nw-text { max-height: 0; margin-bottom: 0; opacity: 0;
    transition: max-height .6s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, margin-bottom .6s cubic-bezier(.22, 1, .36, 1); }
  #news .nw-card:hover .nw-text, #news .nw-card:focus-within .nw-text { max-height: 5.2em; margin-bottom: 14px; opacity: 1; }
}
@media (hover: none) { #news .nw-text { display: none; } }
@media (max-width: 760px) {
  #news .nw-card { min-height: 0; aspect-ratio: 4 / 5.3; border-radius: 24px; }
  #news .nw-body { padding: 18px 18px 16px; }
  #news .nw-card h3 { font-size: 1.18rem; }
  #news .nw-kicker { font-size: 1.3rem; }
  #news .nw-thumb { width: 54px; height: 54px; }
  #news .nw-thumb + .nw-thumb { inset-inline-end: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  #news .nw-card, #news .nw-main img, #news .nw-thumb, #news .nw-text, #news .nw-card h3::after, #news .nw-card::after { transition: none; }
}

/* Actualités : sur une affiche (image chargée de texte), le voile monte plus haut pour que le titre reste lisible */
#news .nw-media:has(.nw-fit)::after { background:
  linear-gradient(180deg, rgba(4, 16, 36, .2) 0, rgba(4, 16, 36, 0) 22%, rgba(4, 16, 36, .55) 46%, rgba(4, 16, 36, .93) 62%, rgba(4, 16, 36, .98) 100%); }

/* Actualités : « Suivez-nous » — Instagram et Facebook, deux pastilles en verre aux couleurs de chaque réseau */
#news .nw-social { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(13, 59, 102, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(9, 24, 47, .05), 0 16px 28px -20px rgba(9, 24, 47, .5); }
html[lang="ar"] #news .nw-social { padding: 6px 16px 6px 6px; }
#news .nw-follow { font-weight: 800; font-size: .9rem; color: #0b2540; white-space: nowrap; }
#news .nw-soc { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .88rem; color: #fff; direction: ltr;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, filter .3s ease; }
#news .nw-soc i { font-size: 1.2rem; }
#news .nw-ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); box-shadow: 0 10px 18px -10px rgba(220, 39, 67, .8); }
#news .nw-fb { background: linear-gradient(135deg, #1877f2, #0d5bd1); box-shadow: 0 10px 18px -10px rgba(24, 119, 242, .8); }
#news .nw-soc:hover { transform: translateY(-3px); filter: saturate(1.1) brightness(1.05); }
#news .nw-ig:hover { box-shadow: 0 16px 24px -12px rgba(220, 39, 67, .85); }
#news .nw-fb:hover { box-shadow: 0 16px 24px -12px rgba(24, 119, 242, .85); }
#news .nw-soc:focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; }
@media (max-width: 420px) {
  #news .nw-soc span { display: none; }
  #news .nw-soc { width: 40px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { #news .nw-soc { transition: none; } }

/* Actualités : « Suivez-nous » en petit — un mot discret et deux icônes rondes aux couleurs du site (la couleur du réseau n'apparaît qu'au survol) */
#news .nw-social, html[lang="ar"] #news .nw-social { gap: 8px; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#news .nw-follow { font-weight: 700; font-size: .84rem; color: #5b6b7e; margin-inline-end: 2px; }
#news .nw-soc { width: 38px; height: 38px; min-height: 0; padding: 0; justify-content: center; color: #0d3b66; background: #fff;
  border: 1px solid rgba(13, 59, 102, .16); box-shadow: 0 8px 16px -12px rgba(9, 24, 47, .6); }
#news .nw-soc span { display: none; }
#news .nw-soc i { font-size: 1.15rem; }
#news .nw-ig, #news .nw-fb { background: #fff; box-shadow: 0 8px 16px -12px rgba(9, 24, 47, .6); }
#news .nw-soc:hover { transform: translateY(-2px); filter: none; color: #fff; border-color: transparent; }
#news .nw-ig:hover { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); box-shadow: 0 12px 18px -12px rgba(220, 39, 67, .8); }
#news .nw-fb:hover { background: #1877f2; box-shadow: 0 12px 18px -12px rgba(24, 119, 242, .8); }
#news .nw-head { align-items: flex-end; }


/* ===== « Et aussi nos activités » : cartes plein cadre et volets (2026-11-15) =====
   Même langage que les actualités : la photo remplit la carte, le texte se pose dessus sur un voile bleu nuit, trait et liseré dorés.
   Sur grand écran, les quatre cartes sont des volets côte à côte : celui qu'on survole s'ouvre et montre son texte.
   (Les sélecteurs sont longs parce que d'anciennes règles de ces cartes sont marquées !important.) */
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album { position: relative !important; display: block !important; height: 430px !important; min-height: 0 !important; padding: 0 !important;
  border-radius: 26px !important; overflow: hidden !important; isolation: isolate; text-align: start; background: #071a33 !important;
  box-shadow: 0 26px 40px -30px rgba(0, 6, 18, .9) !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .5s ease; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover::after, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:focus-visible::after { box-shadow: inset 0 0 0 1.5px rgba(242, 169, 59, .8); }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-cover { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important;
  flex: none !important; border-radius: 0 !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(180deg, rgba(4, 16, 36, .38) 0, rgba(4, 16, 36, 0) 24%, rgba(4, 16, 36, .1) 38%, rgba(4, 16, 36, .78) 66%, rgba(4, 16, 36, .96) 100%); }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover .album-cover img.on, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover .album-cover img:only-of-type { scale: 1.06; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .as-marks { inset: 14px 16px auto !important; }
#projects .album-count { position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(4, 16, 36, .5); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#projects .album-count i { font-size: .95rem; color: #ffd27a; }
#projects .album-slides .album-count { top: 30px; }

html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-body { position: absolute !important; inset: auto 0 0 !important; z-index: 2; display: flex !important; flex-direction: column; align-items: flex-start;
  padding: 22px 24px 22px !important; overflow: hidden !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-title { font-family: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif; font-weight: 600 !important; font-size: 1.24rem !important;
  line-height: 1.36 !important; color: #fff !important; text-shadow: 0 2px 14px rgba(1, 6, 15, .5); margin: 0 !important; }
html:not([lang="ar"]) body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-title { font-family: inherit; font-weight: 800 !important; font-size: 1.12rem !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-title::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 10px; border-radius: 3px; background: #f2a93b;
  transition: width .6s cubic-bezier(.22, 1, .36, 1); }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover .album-title::after, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:focus-visible .album-title::after { width: 72px; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-when { margin-top: 10px !important; color: #ffd27a !important; font-size: .82rem !important; white-space: normal; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-when::before { display: none; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-desc { margin-top: 8px !important; color: rgba(255, 255, 255, .9) !important; font-size: .9rem !important; line-height: 1.65 !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album .album-more { margin-top: 14px !important; background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover .album-more, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:focus-visible .album-more { background: #f2a93b !important; border-color: #f2a93b; color: #0b2540 !important; }

/* grand écran avec souris : les volets */
@media (min-width: 1101px) and (hover: hover) {
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] { display: flex !important; gap: 16px !important; }
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album { flex: 1 1 0 !important; min-width: 0; translate: none !important;
    transition: flex-grow .75s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease !important; }
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"]:not(:has(.album:hover, .album:focus-visible)) .album:first-child, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:focus-visible { flex-grow: 2.5 !important; }
  /* largeurs fixes : le texte ne se recompose pas pendant que le volet s'ouvre */
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-title, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-when { width: 172px; max-width: 100%; }
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-desc { width: 350px; max-width: none; max-height: 0; margin-top: 0 !important; opacity: 0; overflow: hidden !important;
    transition: max-height .6s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, margin-top .6s cubic-bezier(.22, 1, .36, 1); }
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"]:not(:has(.album:hover, .album:focus-visible)) .album:first-child .album-desc, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover .album-desc, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:focus-visible .album-desc {
    max-height: 7.5em; margin-top: 8px !important; opacity: 1; transition-delay: 0s, .28s, 0s; }
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"]:not(:has(.album:hover, .album:focus-visible)) .album:first-child .album-title, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover .album-title, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:focus-visible .album-title,
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"]:not(:has(.album:hover, .album:focus-visible)) .album:first-child .album-when, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover .album-when, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:focus-visible .album-when { width: 350px; }
}
@media (min-width: 761px) and (max-width: 1100px), (min-width: 761px) and (hover: none) {
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album { height: 380px !important; flex-direction: initial !important; }
}
@media (max-width: 760px) {
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album { height: 400px !important; }
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-desc { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3 !important; line-clamp: 3; overflow: hidden !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-desc, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-title::after, html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album::after { transition: none !important; }
}

/* « Et aussi nos activités » : voile sombre garanti sous le texte, plus d'inclinaison ni de trait doré hérités de l'ancien dessin */
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-cover::after { background:
  linear-gradient(180deg, rgba(4, 16, 36, .4) 0, rgba(4, 16, 36, 0) 22%, rgba(4, 16, 36, .12) 34%, rgba(4, 16, 36, .82) 62%, rgba(4, 16, 36, .97) 100%) !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-cover::before { display: none !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album,
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover { rotate: none !important; scale: none !important; }
@media (max-width: 1100px), (hover: none) {
  html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album:hover { translate: 0 -5px !important; }
}

/* Texte posé sur une photo (activités et actualités) : un fond dégradé propre au bloc de texte, pour qu'il reste lisible quelle que soit la photo */
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-body { padding-top: 56px !important;
  background: linear-gradient(180deg, rgba(4, 16, 36, 0) 0, rgba(4, 16, 36, .78) 26%, rgba(4, 16, 36, .96) 100%) !important; }
html body main > section#projects:not(#_):not(#_) .albums[data-where="local"] .album-desc { color: #fff !important; font-size: .93rem !important;
  line-height: 1.75 !important; text-shadow: 0 1px 8px rgba(1, 6, 15, .6); }
#news .nw-body { padding-top: 52px; background: linear-gradient(180deg, rgba(4, 16, 36, 0) 0, rgba(4, 16, 36, .74) 26%, rgba(4, 16, 36, .95) 100%); }
#news .nw-text { color: #fff; text-shadow: 0 1px 8px rgba(1, 6, 15, .6); }


/* ===== Grandes manifestations (ONE RUN, TILAR, Fête de la Musique, Entrep'RISE) : même langage que les actualités (2026-11-15) =====
   Le voile passe au bleu nuit, teinté par la couleur propre à chaque manifestation ; trait et liseré dorés, bouton en verre. */
html body main > section#projects:not(#_):not(#_) .ev { border-radius: 26px !important; rotate: none !important; isolation: isolate; }
html body main > section#projects:not(#_):not(#_) .ev:hover, html body main > section#projects:not(#_):not(#_) .ev:focus-visible { rotate: none !important; }
html body main > section#projects:not(#_):not(#_) .ev::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .5s ease; }
html body main > section#projects:not(#_):not(#_) .ev:hover::after, html body main > section#projects:not(#_):not(#_) .ev:focus-visible::after { box-shadow: inset 0 0 0 1.5px rgba(242, 169, 59, .8); }
html body main > section#projects:not(#_):not(#_) .ev .ev-body { background: linear-gradient(180deg, rgba(4, 16, 36, 0) 0, color-mix(in srgb, var(--ec, #0d3b66) 38%, rgba(4, 16, 36, .84)) 40%,
  color-mix(in srgb, var(--ec, #0d3b66) 14%, #041024) 100%) !important; }
html body main > section#projects:not(#_):not(#_) .ev .ev-title { text-shadow: 0 2px 14px rgba(1, 6, 15, .5); }
html body main > section#projects:not(#_):not(#_) .ev .ev-title::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 10px; border-radius: 3px; background: #f2a93b;
  transition: width .6s cubic-bezier(.22, 1, .36, 1); }
html[lang="ar"] body main > section#projects:not(#_):not(#_) .ev .ev-title::after { margin-left: auto; }
html body main > section#projects:not(#_):not(#_) .ev:hover .ev-title::after, html body main > section#projects:not(#_):not(#_) .ev:focus-visible .ev-title::after { width: 76px; }
html body main > section#projects:not(#_):not(#_) .ev .ev-facts > span:first-child { color: #ffd27a !important; font-weight: 700; }
html body main > section#projects:not(#_):not(#_) .ev .ev-text { color: #fff !important; text-shadow: 0 1px 8px rgba(1, 6, 15, .5); }
html body main > section#projects:not(#_):not(#_) .ev .ev-more { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
html body main > section#projects:not(#_):not(#_) .ev:hover .ev-more, html body main > section#projects:not(#_):not(#_) .ev:focus-visible .ev-more { background: #f2a93b !important; border-color: #f2a93b; color: #0b2540 !important; }
@media (prefers-reduced-motion: reduce) { html body main > section#projects:not(#_):not(#_) .ev::after, html body main > section#projects:not(#_):not(#_) .ev .ev-title::after, html body main > section#projects:not(#_):not(#_) .ev .ev-more { transition: none; } }

/* ===== Écran d'accueil pendant le chargement (2026-11-15) =====
   Écho du pied de page : mêmes bleus, le « JCI » en mosaïque de photos avec son liseré clair, « Kélibia » manuscrit doré posé dessus
   aux mêmes proportions, arcs fins qui tournent autour. Pendant le chargement, la mosaïque passe du bleu à la couleur de bas en haut,
   un reflet traverse les lettres ; puis on entre dans le site à travers le mot. Activé par boot.js (classe ld-on). */
.ld { display: none; }
html.ld-on .ld { position: fixed; inset: 0; z-index: 99999; display: grid; place-content: center; justify-items: center; overflow: hidden; color: #fff;
  background: radial-gradient(46% 62% at 50% 44%, rgba(24, 58, 100, .75) 0, rgba(24, 58, 100, 0) 72%), linear-gradient(180deg, #050f22 0, #09182f 46%, #040b19 100%);
  animation: ldSafe .01s linear 6s forwards; }
/* étoiles */
html.ld-on .ld::before { content: ""; position: absolute; inset: 0; pointer-events: none; animation: ldTwinkle 2.6s ease-in-out infinite alternate;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 12%, #ffe9b8 50%, transparent 51%), radial-gradient(1px 1px at 58% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 58%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 90%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 34% 88%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 80% 82%, #fff 50%, transparent 51%); }
/* voile en bas, comme l'horizon du pied de page */
html.ld-on .ld::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 6, 15, 0), rgba(1, 6, 15, .55)); }
/* deux lueurs qui dérivent lentement : turquoise et or */
.ld-glow { position: absolute; width: min(560px, 80vw); aspect-ratio: 1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.ld-g1 { left: 50%; top: 50%; translate: -92% -78%; background: rgba(92, 192, 184, .2); animation: ldDrift 7s ease-in-out infinite alternate; }
.ld-g2 { left: 50%; top: 50%; translate: -12% -22%; background: rgba(242, 169, 59, .2); animation: ldDrift 8s ease-in-out infinite alternate-reverse; }
/* arcs fins autour du mot */
.ld-rings { position: absolute; left: 50%; top: 50%; width: min(760px, 150vw); aspect-ratio: 1; translate: -50% -54%; opacity: .55; pointer-events: none;
  animation: ldIn .9s ease both; }
.ld-rings circle { transform-box: fill-box; transform-origin: 50% 50%; animation: ldSpin 16s linear infinite; }
.ld-rings circle:nth-child(2) { animation-duration: 22s; animation-direction: reverse; }
.ld-rings circle:nth-child(3) { animation-duration: 30s; }

.ld-mark { position: relative; z-index: 1; font-size: clamp(132px, 38vw, 248px); animation: ldIn .6s cubic-bezier(.22, 1, .36, 1) both; }
.ld-jci { position: relative; margin: 0; font: 800 1em/.78 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.06em !important; padding-inline-end: .06em;
  color: transparent; background: url("../img/photos/fb/mosaic-duo-m7.webp") 50% 50% / 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px rgba(150, 222, 255, .55); filter: drop-shadow(0 22px 34px rgba(1, 6, 15, .65)); animation: ldPan 9s ease-in-out infinite alternate; }
.ld-fill, .ld-shine { position: absolute; inset: 0; padding: inherit; color: transparent; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.ld-fill { background: url("../img/photos/fb/mosaic-color-m7.webp") 50% 50% / 200% auto; clip-path: inset(100% 0 0 0);
  animation: ldRise 1s cubic-bezier(.6, .05, .2, 1) .1s forwards, ldPan 9s ease-in-out infinite alternate; }
/* reflet qui traverse les lettres */
.ld-shine { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat;
  animation: ldGlint 1.5s ease-in-out .75s infinite; }
/* à redire après les fonds ci-dessus : le raccourci « background » remet le découpage à zéro */
.ld-fill, .ld-shine { -webkit-background-clip: text; background-clip: text; }
/* « Kélibia » : mêmes proportions et même pose que dans le pied de page */
.ld-kel { position: absolute; left: 50%; bottom: -.17em; margin: 0; translate: -50% 0; rotate: -6deg; white-space: nowrap; font: 700 .31em/1 "Caveat", cursive;
  filter: drop-shadow(0 2px 0 #9a5f10) drop-shadow(0 16px 26px rgba(3, 14, 30, .8)); }
.ld-kel span { display: inline-block; padding: .08em .16em; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(110deg, #c97d17 0%, #f0a83a 22%, #f8d27a 38%, #fff6d8 46%, #f8d27a 54%, #f0a83a 70%, #c97d17 100%); background-size: 220% 100%;
  clip-path: inset(0 100% 0 0); animation: ldWrite .55s cubic-bezier(.5, 0, .2, 1) .6s forwards, ldShine 2.6s ease-in-out 1.2s infinite; }
.ld-tag { position: relative; z-index: 1; margin: clamp(44px, 8vw, 78px) 16px 0; padding-inline-start: .46em; text-align: center; text-transform: uppercase;
  font: 700 clamp(.66rem, 1.9vw, .84rem)/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .46em !important; color: rgba(255, 255, 255, .82);
  animation: ldIn .8s cubic-bezier(.22, 1, .36, 1) .35s both; }   /* !important : en arabe, une règle générale remet l'espacement des lettres à zéro */
.ld-line { position: relative; z-index: 1; display: block; width: min(190px, 44vw); height: 3px; margin-top: 18px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .14); animation: ldIn .6s ease .2s both; }
.ld-line::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #5cc0b8, #f8d27a 55%, #f2a93b);
  transform: scaleX(0); transform-origin: 0 50%; animation: ldBar 1.2s cubic-bezier(.6, .05, .2, 1) .1s forwards; }

/* passages suivants dans la même session : plus bref */
html.ld-quick .ld-fill { animation-duration: .45s, 9s; animation-delay: 0s, 0s; }
html.ld-quick .ld-kel span { animation-delay: .1s, .8s; animation-duration: .35s, 2.6s; }
html.ld-quick .ld-line::after { animation-duration: .5s; animation-delay: 0s; }
html.ld-quick .ld-mark, html.ld-quick .ld-tag, html.ld-quick .ld-line, html.ld-quick .ld-rings { animation-duration: .35s; animation-delay: 0s; }

/* sortie : on entre dans le site à travers le mot — il grandit vers nous pendant que le fond s'efface */
html.ld-out .ld { animation: ldFade .75s cubic-bezier(.5, 0, .2, 1) forwards; pointer-events: none; }
html.ld-out .ld-mark { animation: ldZoom .75s cubic-bezier(.6, 0, .3, 1) forwards; }
html.ld-out .ld-rings { transition: scale .75s cubic-bezier(.6, 0, .3, 1), opacity .4s ease; scale: 2.4; opacity: 0; }
html.ld-out .ld-line, html.ld-out .ld-tag { transition: opacity .2s ease; opacity: 0; }

@keyframes ldIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ldRise { to { clip-path: inset(0 0 0 0); } }
@keyframes ldWrite { to { clip-path: inset(0 -6% 0 0); } }
@keyframes ldShine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes ldGlint { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
@keyframes ldBar { to { transform: scaleX(1); } }
@keyframes ldPan { from { background-position: 30% 40%; } to { background-position: 70% 60%; } }
@keyframes ldTwinkle { from { opacity: .4; } to { opacity: .95; } }
@keyframes ldDrift { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(5%, 4%) scale(1.12); } }
@keyframes ldSpin { to { transform: rotate(360deg); } }
@keyframes ldFade { 0% { opacity: 1; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ldZoom { from { transform: scale(1); } to { transform: scale(5.5); } }
@keyframes ldSafe { to { visibility: hidden; pointer-events: none; } }

/* ===== Harmonisation de la direction artistique (2026-11-15) =====
   Polices : trois rôles seulement — Reem Kufi (titres, chiffres), IBM Plex Sans Arabic / Plus Jakarta Sans (texte), Aref Ruqaa / Caveat (manuscrit).
   Arrondis : une échelle — 32 px (fonds de section), 24 px (cartes), 16 px (éléments dans une carte), 12 px (petits éléments).
   Boutons : principal doré, secondaire en verre (sur fond sombre) ou cerné de bleu (sur fond clair) ; tous 48 px de haut, texte 16 px gras. */

/* --- arrondis : cartes (24 px) --- */
html body main > section#projects:not(#_):not(#_) .ev,
html body main > section#projects:not(#_):not(#_) .albums .album,
html body main > section#faq:not(#_):not(#_) .faq-ask,
html body main > section#join:not(#_):not(#_) .join-grid,
html body main > section#contact:not(#_):not(#_) .partner,
html body main > section#trainings:not(#_):not(#_) .trs-frame,
html body main > section#trainings:not(#_):not(#_) .trs-peek,
html body main > section#about:not(#_):not(#_) :is(.about-cover, .about-card),
html body main > section#why:not(#_):not(#_) :is(li.area, .pgx-frame),
html body main > section#news:not(#_):not(#_) .nw-card { border-radius: 24px !important; }
/* --- arrondis : éléments dans une carte (16 px) --- */
html body main > section#trainings:not(#_):not(#_) .trs-grp,
html body main > section#faq:not(#_):not(#_) .faq-list > details,
html body main > section#faq:not(#_):not(#_) .faq-list > details > summary,
html body main > section#history:not(#_):not(#_) .creed-list > li,
html body main > section#about:not(#_):not(#_) button.hs { border-radius: 16px !important; }
/* --- arrondis : petits éléments (12 px) --- */
html body main > section#news:not(#_):not(#_) .nw-date,
html body main > section#contact:not(#_):not(#_) .pt-them { border-radius: 12px !important; }

/* --- boutons : même hauteur, même texte --- */
html body main > section.hero:not(#_) :is(a.cta-main, a.cta-glass),
html body main > section#about:not(#_):not(#_) a.about-link,
html body main > section#why:not(#_):not(#_) :is(.pgx-cta, .pgx-more),
html body main > section#team:not(#_):not(#_) .team-next a,
html body main > section#faq:not(#_):not(#_) a.btn,
html body main > section#join:not(#_):not(#_) button.btn-lg {
  min-height: 48px !important; padding-block: 0 !important; padding-inline: 26px !important; font-size: 1rem !important; font-weight: 700 !important;
  border-radius: 999px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; line-height: 1.2 !important; }
html body main > section#join:not(#_):not(#_) button.btn-lg { display: flex !important; width: 100%; }
/* secondaire sur fond clair : cerné de bleu, se remplit au survol */
html body main > section#team:not(#_):not(#_) .team-next a { background: transparent !important; color: #0b2540 !important; border: 1.5px solid rgba(13, 59, 102, .35) !important;
  box-shadow: none !important; transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }
html body main > section#team:not(#_):not(#_) .team-next a:hover { background: #0d3b66 !important; border-color: #0d3b66 !important; color: #fff !important; }
/* principal : doré, texte bleu nuit */
html body main > section#join:not(#_):not(#_) button.btn-lg { background: #f2a93b !important; border-color: #f2a93b !important; color: #0b2540 !important; }

/* --- titres de section : une seule taille --- */
html body main > section#history:not(#_):not(#_) h2,
html body main > section#faq:not(#_):not(#_) h2 { font-size: clamp(2.2rem, 4vw, 3.6rem) !important; }
/* (renfort : d'anciennes règles plus précises gardaient 26 / 22 px et un bouton plus haut) */
html body main > section#projects:not(#_):not(#_):not(#_) .albums[data-where="local"] .album { border-radius: 24px !important; }
html body main > section#faq:not(#_):not(#_):not(#_) .faq-list > details,
html body main > section#faq:not(#_):not(#_):not(#_) .faq-list > details > summary,
html[dir] body main > section#history:not(#_):not(#_):not(#_) .creed-list > li { border-radius: 16px !important; }
html body main > section#faq:not(#_):not(#_):not(#_) a.btn { min-height: 48px !important; height: auto !important; padding-block: 0 !important; }
/* credo : tuiles à 16 px ; les phrases en police de texte (plus lisible que la police de titre sur des phrases longues), les numéros restent en Reem Kufi */
html body main > section#history .creed-list:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) > li { border-radius: 16px !important; }
html[dir] body main > section#history:not(#_):not(#_):not(#_) .creed-list > li { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif !important; font-weight: 600 !important; line-height: 1.75 !important; }
html:not([lang="ar"])[dir] body main > section#history:not(#_):not(#_):not(#_) .creed-list > li { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; font-weight: 700 !important; }

/* Titres de section en arabe : Rakkas, une calligraphie grasse (choix confirmé le 2026-11-15) ; titres des cartes et texte inchangés, français et anglais inchangés */
html[lang="ar"] body main > section:not(#_) h2 { font-family: "Rakkas", "Reem Kufi", "IBM Plex Sans Arabic", serif !important; font-weight: 400 !important;
  letter-spacing: 0 !important; line-height: 1.3 !important; }

/* Petites phrases en darija (« ولاد قليبية وبناتها », « ما تخمّمش برشا! », « ابعثلنا كلمة »…) : toutes dans la police manuscrite,
   comme « إيجا معانا! » et « يد وحدة ما تصفّقش » — Aref Ruqaa en arabe, Caveat en français et anglais (2026-11-15). */
html[lang="ar"] body main > section:not(#_):not(#_) p.derja { font-family: "Aref Ruqaa", "Reem Kufi", serif !important; font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1.5 !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_) p.derja { font-family: "Caveat", cursive !important; font-weight: 700 !important; letter-spacing: 0 !important;
  font-size: 1.3em !important; line-height: 1.25 !important; text-transform: none !important; }

/* Titres de section en arabe : Rakkas légèrement agrandi pour garder la même présence que l'ancienne police */
html[lang="ar"] body main > section:not(#_) h2 { font-size: clamp(2.4rem, 4.4vw, 3.9rem) !important; line-height: 1.25 !important; }

/* ===== Échelle typographique unique (2026-11-15) =====
   Relevé fait sur tout le site : 6 tailles différentes pour les textes d'introduction, 3 polices différentes pour les titres de cartes,
   4 tailles pour les dates et méta, 3 pour les étiquettes. On ramène tout à une seule échelle :
     titre de section (h2) ......... Rakkas en arabe, inchangé
     sous-titre de section (h3) .... Reem Kufi 600, 38 px
     titre de carte ................ Reem Kufi 600 (lettres latines en Plus Jakarta Sans), 20 px
     introduction de section ....... 18 px, interligne 1,85
     texte courant ................. 16 px, interligne 1,85
     texte de carte ................ 15 px, interligne 1,75
     date / méta ................... 13,5 px gras
     étiquette ..................... 12,5 px gras
     chiffres ...................... Plus Jakarta Sans 800
     phrase manuscrite ............. 24 px
   En français et en anglais, interlignes un peu plus serrés (l'écriture latine en demande moins). */
:root { --ts-sub: clamp(1.75rem, 2.7vw, 2.4rem); --ts-card: 1.25rem; --ts-lead: clamp(1.04rem, 1.2vw, 1.125rem); --ts-body: 1rem; --ts-small: .95rem;
  --ts-meta: .84rem; --ts-chip: .78rem; --ts-hand: 1.5rem; --lh-ar: 1.85; --lh-lat: 1.65;
  --ff-title: "Plus Jakarta Sans", "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif; }
html[lang="ar"] { --ff-title: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif; }

/* titres de section : la FAQ avait une taille à part */
html[lang="ar"] body main > section#faq:not(#_):not(#_):not(#_) h2 { font-size: clamp(2.4rem, 4.4vw, 3.9rem) !important; }

/* sous-titres de section */
html body main > section:not(#_):not(#_):not(#_) :is(.reach-head > h3, .pgx-head > h3, .mv-item > h3, h3.albums-title) {
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif !important; font-weight: 600 !important; font-size: var(--ts-sub) !important; line-height: 1.4 !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) :is(.reach-head > h3, .pgx-head > h3, .mv-item > h3, h3.albums-title) {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.01em !important; }

/* titres de carte : une seule police (les noms latins comme « ONE RUN » ou « TILAR » en Plus Jakarta Sans, l'arabe en Reem Kufi) */
html body main > section:not(#_):not(#_):not(#_) :is(.ev .ev-title, .album .album-title, .nw-card h3, .trs-cap b, .trs-frame b, .pgx-tab b, .area-pg b) {
  font-family: "Plus Jakarta Sans", "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif !important; font-weight: 700 !important; letter-spacing: 0 !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_) :is(.album .album-title, .nw-card h3) { font-size: var(--ts-card) !important; line-height: 1.45 !important; }

/* introductions de section */
html body main > section:not(#_):not(#_):not(#_) :is(.section-head > p:not(.derja), .reach-head > p, .pgx-head > p, .projects-head > p, p.nw-sub, p.faq-sub, p.about-lead) {
  font-size: var(--ts-lead) !important; line-height: var(--lh-ar) !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) :is(.section-head > p:not(.derja), .reach-head > p, .pgx-head > p, .projects-head > p, p.nw-sub, p.faq-sub, p.about-lead) { line-height: var(--lh-lat) !important; }

/* texte courant */
html body main > section:not(#_):not(#_):not(#_) :is(p.about-story, .reach-item > p:not(.reach-scale):not(.reach-year), .faq-list > details > p, p.fq-ask-p) {
  font-size: var(--ts-body) !important; line-height: var(--lh-ar) !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) :is(p.about-story, .reach-item > p:not(.reach-scale):not(.reach-year), .faq-list > details > p, p.fq-ask-p) { line-height: var(--lh-lat) !important; }

/* texte des cartes */
html body main > section:not(#_):not(#_):not(#_) :is(.ev .ev-text, .album .album-desc, .nw-card .nw-text) { font-size: var(--ts-small) !important; line-height: 1.75 !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) :is(.ev .ev-text, .album .album-desc, .nw-card .nw-text) { line-height: 1.6 !important; }

/* dates et méta */
html body main > section:not(#_):not(#_):not(#_) :is(.ev .ev-facts, .album .album-when, .nw-card .nw-meta, p.reach-scale) { font-size: var(--ts-meta) !important; font-weight: 700 !important; }

/* étiquettes */
html body main > section:not(#_):not(#_):not(#_) :is(.nw-lvl, .nw-cat, .album-count) { font-size: var(--ts-chip) !important; font-weight: 700 !important; }

/* chiffres : la même police partout (frise de l'accueil, pastilles de date) */
html body main > section:not(#_):not(#_):not(#_) :is(.about-relay b, .nw-date b) { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; font-weight: 800 !important; letter-spacing: -.01em !important; }

/* phrases manuscrites sous les titres : une seule taille */
html body main > section:not(#_):not(#_):not(#_) :is(p.derja, p.nw-kicker) { font-size: var(--ts-hand) !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) :is(p.derja, p.nw-kicker) { font-size: calc(var(--ts-hand) * 1.15) !important; }
/* (renfort : deux anciennes règles gardaient 14,9 px et 13,1 px ; titres de carte arabes à 600 comme les sous-titres) */
html body main > section:not(#_):not(#_):not(#_):not(#_) :is(.ev .ev-text, .album .album-desc, .nw-card .nw-text) { font-size: var(--ts-small) !important; }
html body main > section:not(#_):not(#_):not(#_):not(#_) :is(.ev .ev-facts, .album .album-when, .nw-card .nw-meta, p.reach-scale) { font-size: var(--ts-meta) !important; }
html body main > section:not(#_):not(#_):not(#_):not(#_) :is(.album .album-title, .nw-card h3) { font-weight: 600 !important; }
/* français et anglais : mêmes tailles de titres de carte et de section qu'en arabe, FAQ comprise ; petites phrases manuscrites latines lisibles */
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) :is(.album .album-title, .nw-card h3) { font-size: var(--ts-card) !important; line-height: 1.35 !important; }
html:not([lang="ar"]) body main > section#faq:not(#_):not(#_):not(#_) h2 { font-size: clamp(2.2rem, 4vw, 3.6rem) !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) p.mv-derja { font-size: 1.35rem !important; }
@media (min-width: 900px) { html:not([lang="ar"]) body main > section#faq:not(#_):not(#_):not(#_):not(#_) .faq-aside h2 { font-size: clamp(2.2rem, 4vw, 3.6rem) !important; } }

/* Titres en français et en anglais : Fraunces, un serif doux et chaleureux — l'équivalent latin de Rakkas en arabe (2026-11-15).
   Titre d'accueil, titres de section et sous-titres ; le texte reste en Plus Jakarta Sans, les cartes aussi (lisibilité sur les photos). */
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) :is(h2, .reach-head > h3, .pgx-head > h3, .mv-item > h3, h3.albums-title),
html:not([lang="ar"]) body main > section.hero:not(#_):not(#_) h1, html:not([lang="ar"]) body main > section.hero:not(#_):not(#_) h1 .w {
  font-family: "Fraunces", Georgia, serif !important; font-optical-sizing: auto; font-weight: 700 !important; letter-spacing: -.012em !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) :is(.reach-head > h3, .pgx-head > h3, .mv-item > h3, h3.albums-title) { font-weight: 600 !important; line-height: 1.15 !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) h2 { line-height: 1.08 !important; }

/* ===== Français et anglais : tailles et espacements (2026-11-15) =====
   Relevé : l'écart titre → texte variait de 2 à 14 px selon les sections, et certaines introductions faisaient 78 à 88 caractères
   par ligne (trop long à lire). Règles : écart titre → texte de 16 px partout, phrase manuscrite collée au titre (6 px),
   lignes de 60 à 70 caractères au plus, titre d'accueil un peu plus grand et plus serré, introductions à 18 px. */
html:not([lang="ar"]) body main > section.hero:not(#_):not(#_) h1 { font-size: clamp(2.5rem, 4.8vw, 4.25rem) !important; line-height: 1.04 !important; letter-spacing: -.02em !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) h2 { letter-spacing: -.018em !important; margin-bottom: 16px !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) :is(.reach-head > h3, .pgx-head > h3, .mv-item > h3, h3.albums-title) { letter-spacing: -.012em !important; margin-bottom: 14px !important; }
/* phrase manuscrite juste sous le titre (ou juste au-dessus pour les actualités) */
/* (certaines phrases sont masquées : on remonte la phrase visible plutôt que de réduire la marge du titre) */
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) h2 + p.derja { margin: -10px 0 16px !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) p.nw-kicker { margin-bottom: 6px !important; }
/* introductions : 18 px, lignes de 60 à 70 caractères */
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) :is(.section-head > p:not(.derja), .reach-head > p, .pgx-head > p, .projects-head > p, p.nw-sub, p.faq-sub, p.about-lead) {
  font-size: 1.125rem !important; line-height: 1.6 !important; max-width: 38rem !important; margin-top: 0 !important; }
/* texte courant : 16 px, lignes de 65 caractères au plus */
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_) :is(p.about-story, .faq-list > details > p, p.fq-ask-p) { max-width: 40rem !important; }
/* sous-titre de l'accueil (« Tu as entre 18 et 40 ans ? ») un peu plus marqué que le texte qui suit */
html:not([lang="ar"]) body main > section.hero:not(#_):not(#_) .hero-text strong { font-weight: 800 !important; letter-spacing: -.01em; }
/* Français et anglais : titres un cran plus petits (retour de Yosr, 2026-11-15) — accueil 56 px, sections 46 px, sous-titres 31 px sur ordinateur */
html:not([lang="ar"]) body main > section.hero:not(#_):not(#_):not(#_) h1 { font-size: clamp(2.2rem, 3.9vw, 3.5rem) !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) h2 { font-size: clamp(1.9rem, 3.2vw, 2.875rem) !important; }
@media (min-width: 900px) { html:not([lang="ar"]) body main > section#faq:not(#_):not(#_):not(#_):not(#_):not(#_) .faq-aside h2 { font-size: clamp(1.9rem, 3.2vw, 2.875rem) !important; } }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) :is(.reach-head > h3, .pgx-head > h3, .mv-item > h3, h3.albums-title) { font-size: clamp(1.5rem, 2.2vw, 1.95rem) !important; }
html:not([lang="ar"]) body main > section#about:not(#_):not(#_):not(#_):not(#_):not(#_) .about-card h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem) !important; }
/* Arabe : titres un cran plus petits, comme en français et en anglais (2026-11-15) — sections 50 px, sous-titres 32 px, accueil 52 px sur ordinateur */
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) h2 { font-size: clamp(2.05rem, 3.5vw, 3.15rem) !important; }
html[lang="ar"] body main > section#about:not(#_):not(#_):not(#_):not(#_):not(#_) .about-card h2 { font-size: clamp(1.9rem, 2.7vw, 2.6rem) !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) :is(.reach-head > h3, .pgx-head > h3, .mv-item > h3, h3.albums-title) { font-size: clamp(1.5rem, 2.2vw, 2rem) !important; }
html[lang="ar"] body main > section.hero:not(#_):not(#_):not(#_) h1 { font-size: clamp(2.1rem, 3.7vw, 3.3rem) !important; }

/* ===== Arabe : échelle harmonieuse (2026-11-15) =====
   Mesure des polices : à taille égale, Rakkas paraît environ 18 % plus petite que Reem Kufi, et l'écriture arabe du texte
   (IBM Plex Sans Arabic) se lit moins facilement que le latin à 16 px. Les titres sont donc bien dosés (accueil 53 px en Reem Kufi
   reste au-dessus des sections à 50 px en Rakkas, qui paraissent ~41 px), mais le texte était trop petit. Échelle de rapport 1,25
   à partir d'un texte de 17 px : texte 17 · introduction 19 · titre de carte 21 · sous-titre 32 · section 50 · accueil 53. */
html[lang="ar"] { --ts-lead: clamp(1.1rem, 1.3vw, 1.19rem); --ts-body: 1.0625rem; --ts-small: 1rem; --ts-meta: .875rem; --ts-chip: .8125rem; --ts-card: 1.3125rem; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_) :is(.section-head > p:not(.derja), .reach-head > p, .pgx-head > p, .projects-head > p, p.nw-sub, p.faq-sub, p.about-lead) {
  font-size: var(--ts-lead) !important; line-height: 1.9 !important; max-width: 44rem !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_) :is(p.about-story, .reach-item > p:not(.reach-scale):not(.reach-year), .faq-list > details > p, p.fq-ask-p, .s3-note > span) {
  font-size: var(--ts-body) !important; line-height: 1.9 !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) :is(.ev .ev-text, .album .album-desc, .nw-card .nw-text) { font-size: var(--ts-small) !important; line-height: 1.8 !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) :is(.ev .ev-facts, .album .album-when, .nw-card .nw-meta, p.reach-scale) { font-size: var(--ts-meta) !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) :is(.nw-lvl, .nw-cat, .album-count) { font-size: var(--ts-chip) !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) :is(.album .album-title, .nw-card h3) { font-size: var(--ts-card) !important; }
/* titres des repères de la frise (« الغرفة الفتية العالمية »…) : un pas au-dessus du texte, sous le titre de carte */
html[lang="ar"] body main > section#about:not(#_):not(#_):not(#_):not(#_) .reach-item h4 { font-size: 1.3125rem !important; line-height: 1.5 !important; }
@media (max-width: 760px) { html[lang="ar"] { --ts-card: 1.1875rem; } }

/* ===== Français et anglais : revue de l'échelle (2026-11-15) =====
   Échelle latine (rapport ~1,25 à partir de 16 px) : étiquette 12,5 · méta 13,5 · texte de carte 15 · texte 16 · introduction 18 ·
   titre de carte 20 · titre sur photo 30 · sous-titre 31 · section 46 · accueil 56 ; manuscrit Caveat 28.
   Écarts corrigés : la police manuscrite arabe (Aref Ruqaa) servait encore pour des phrases en français/anglais (bulles, « Bienvenue
   parmi nous », « Encore une question ? ») ; titres sur photo à 28,8 / 32 px → 30 px ; « Kélibia » du bloc partenaire dans la police arabe. */
html:not([lang="ar"]) body :is(.bn-say, .f-hi, .faq-ask .fq-hand, .faq-ask span[class*="hand"]),
html:not([lang="ar"]) body main > section#faq:not(#_):not(#_) .faq-ask > span:first-child {
  font-family: "Caveat", cursive !important; font-weight: 700 !important; letter-spacing: 0 !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) :is(.bn-say) { font-size: 1.65rem !important; line-height: 1.05 !important; }
html:not([lang="ar"]) body main > section:not(#_):not(#_):not(#_) .f-hi { font-size: 1.85rem !important; line-height: 1.15 !important; }
/* titres posés sur une photo (manifestations, formation mise en avant) : une seule taille */
html body main > section:not(#_):not(#_):not(#_):not(#_) :is(.ev:not(.ev-onerun) .ev-title, .trs-frame .trs-cap b, .trs-frame > b, .trs-cap > b) { font-size: 1.875rem !important; line-height: 1.15 !important; }
/* « Kélibia » du bloc partenaire : police latine comme le reste du logo */
html body main > section#contact:not(#_):not(#_) .pt-us b { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; font-weight: 800 !important; }
/* la bulle « Interesting! » est en anglais même sur la version arabe : écriture manuscrite latine */
html[lang="ar"] body .bn-say.bs-guy { font-family: "Caveat", cursive !important; font-weight: 700 !important; font-size: 1.65rem !important; }

/* Rythme des fonds (2026-11-15) : « Actualités » et « Formations » étaient deux fonds blancs collés, sans séparation.
   « Formations » prend un bleu très pâle (de la même famille que le bleu nuit), ce qui la détache des actualités et de la feuille
   crème du bureau qui la suit ; ses cartes blanches ressortent mieux. Le reste garde son rythme : bleu nuit pour les temps forts,
   puis les feuilles empilées crème → blanc → bleu nuit → crème. */
html body main > section#trainings:not(#_):not(#_) { background: linear-gradient(180deg, #ffffff 0, #f3f7fc 140px, #f3f7fc 100%) !important; }
/* Jonction Formations → Bureau : la feuille crème du bureau remonte de 64 px sur le fond bleu pâle des formations,
   pour que ses coins arrondis se posent sur ce bleu (avant, ils laissaient voir des coins blancs). */
html body main > section#trainings:not(#_):not(#_):not(#_):not(#_):not(#_) { padding-bottom: 128px !important; }
@media (max-width: 760px) { html body main > section#trainings:not(#_):not(#_):not(#_):not(#_):not(#_) { padding-bottom: 104px !important; } }
html body main > section#team:not(#_):not(#_) { margin-top: -64px !important; position: relative; z-index: 2; }

/* ===== Téléphone : corrections de l'audit (2026-11-15) ===== */
/* mois et année dans la pastille de date : 12 px au lieu de 10,9 (trop petit à lire) */
html body main > section#news:not(#_):not(#_) .nw-date small { font-size: .75rem !important; }
@media (max-width: 760px) {
  /* boutons des cartes d'actualités : 40 px de haut au moins, pour le doigt */
  html body main > section#news:not(#_):not(#_) :is(.nw-read, .nw-photos) { min-height: 40px !important; display: inline-flex !important; align-items: center; }
  html body main > section#news:not(#_):not(#_) .nw-read { padding-inline: 4px !important; }
}

/* Stickers sur téléphone et tablette (≤ 999 px) : ils étaient cachés. On les affiche, plus petits ; le script de placement
   (window.__stkPlace dans peps.js) les accroche déjà à leur bloc (cartes, arche de la présidente, formulaire, drapé du bas). */
@media (max-width: 999px) {
  html body main > section:not(#_):not(#_):not(#_) :is(img.bn, img.stk) { display: block !important; }
  html body main > section:not(#_):not(#_):not(#_) .bn-say { display: block !important; font-size: 1.1rem !important; }
  /* taille : ~70 px de haut, la tête et les épaules suffisent */
  html body main > section:not(#_):not(#_):not(#_) img.bn:is(.bn-side, .bn-look, .bn-think2, .bn-thx) { width: auto !important; height: 72px !important; max-width: 96px !important; object-fit: contain; }
  html body main > section:not(#_):not(#_):not(#_) img.bn.bn-hello { width: 92px !important; height: auto !important; }
  html body main > section:not(#_):not(#_):not(#_) img.bn { transform: none !important; translate: none !important; rotate: none !important; }
  html body main > section:not(#_):not(#_):not(#_) .bn-say { white-space: nowrap !important; width: auto !important; max-width: none !important; z-index: 7 !important; }
}

/* Téléphone (≤ 860 px) : deux blocs qui se gênaient
   1. « Pourquoi nous rejoindre » : la liste « Bouclier / Effet ricochet / J-C-I / 4 éléments » était décalée de 72 px vers le bas
      sans prendre de place, et passait sous les cartes des domaines. Le décalage devient une vraie marge. */
@media (max-width: 860px) {
  html body main > section#why:not(#_):not(#_) .story3d .s3-stage { top: 0 !important; margin-top: 56px !important; }
  /* 2. Mission / vision : colonne de texte plus large (cercle un peu plus petit), texte plus compact */
  html body main > section#about:not(#_):not(#_):not(#_) .mv-item .mv-text { font-size: .94rem !important; line-height: 1.55 !important; }
  html[lang="ar"] body main > section#about:not(#_):not(#_):not(#_) .mv-item .mv-text { line-height: 1.75 !important; }
}
@media (max-width: 999px) {
  /* une ancienne règle cachait aussi « Interesting! » sur téléphone */
  html body main > section#projects:not(#_):not(#_):not(#_) :is(img.bn.bn-look, .bn-say.bs-guy) { display: block !important; }
}

/* Mission / vision sur téléphone : composition en diagonale autour du cercle (2026-11-15).
   La mission part d'un bord (à gauche en français / anglais, à droite en arabe), le cercle JCI se place au centre en dessous,
   et la vision repart de l'autre bord, alignée de son côté. On lit « mission → cercle → vision » en Z, comme sur grand écran
   où elles encadrent le cercle, sans écraser le texte dans une colonne trop étroite. */
@media (max-width: 760px) {
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv {
    grid-template-columns: 14% minmax(0, 1fr) 14% !important; grid-template-areas: "m m ." ". c ." ". v v" !important;
    grid-template-rows: auto auto auto !important; column-gap: 0 !important; row-gap: 0 !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > .mv-center { justify-self: center !important; align-self: center !important;
    width: 148px !important; height: 148px !important; margin: 10px 0 !important; }
  /* la vision s'aligne sur son bord : titre, trait et texte */
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type { text-align: end !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type :is(h3, .mv-text, .mv-derja) { text-align: end !important; margin-inline-start: auto !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type .mv-link { margin-inline-start: auto !important; margin-inline-end: 0 !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item .mv-text { font-size: .95rem !important; line-height: 1.6 !important; }
  html[lang="ar"] body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item .mv-text { line-height: 1.8 !important; }
}
@media (max-width: 999px) {
  /* « Psst! » sort du bord de l'écran : un peu plus grand, retourné quand il sort du bord droit */
  html body main > section#why:not(#_):not(#_):not(#_):not(#_) img.bn.bn-side { height: 92px !important; max-width: none !important; }
}
@media (max-width: 860px) {
  /* cartes des domaines (bande qui défile) : leur ombre (36 px vers le bas) était coupée net par le bas de la bande.
     On donne la place à l'ombre dans la bande et on rattrape cette place en dessous ; l'ombre est aussi un peu plus courte. */
  html body main > section#why:not(#_):not(#_):not(#_) ul.px-panels { padding-bottom: 46px !important; margin-bottom: -32px !important; }
  html body main > section#why:not(#_):not(#_):not(#_) ul.px-panels > li.area { box-shadow: 0 22px 34px -24px rgba(7, 26, 46, .6) !important; }
}
@media (max-width: 999px) {
  /* bureau : le personnage qui salue passe la tête au-dessus de l'arche de la présidente ; il lui faut de la place sous le titre,
     sinon le titre le recouvre. Sa bulle peut tenir sur deux lignes au lieu de traverser l'écran. */
  html body main > section#team:not(#_):not(#_):not(#_) .team-grid { margin-top: 100px !important; }
  html body main > section#team:not(#_):not(#_):not(#_) .bn-say.bs-peek { white-space: normal !important; max-width: 40vw !important; text-align: center; line-height: 1.15 !important; font-size: 1.05rem !important; }
  html:not([lang="ar"]) body main > section#team:not(#_):not(#_):not(#_) .bn-say.bs-peek { font-size: 1.25rem !important; }
}
@media (max-width: 999px) {
  /* « Psst! » passe la tête par-dessus la bande des cartes : la bande passe devant lui */
  html body main > section#why:not(#_):not(#_):not(#_) ul.px-panels { position: relative; z-index: 3; }
  html body main > section#why:not(#_):not(#_):not(#_):not(#_) img.bn.bn-side { z-index: 2 !important; }
}

/* Actualités : le texte fait partie de la carte (plus en position absolue) ; si le titre ou le lieu passe sur plusieurs
   lignes (téléphone étroit, taille de texte agrandie sur iPhone), la carte s'allonge au lieu que le titre remonte sous la date */
#news .nw-card:not(#_):not(#_) { display: flex !important; flex-direction: column !important; justify-content: flex-end !important; padding-top: 18px !important; }
#news .nw-card:not(#_):not(#_) > .nw-body { position: relative !important; inset: auto !important; flex: 0 0 auto !important; }

/* Téléphone : « Psst! » passe la tête depuis le côté de la première carte (comme sur ordinateur) ; la bande lui laisse la place */
@media (max-width: 999px) {
  #why .px-panels:not(#_):not(#_) { padding-inline-start: 46px !important; scroll-padding-inline-start: 46px !important; }
  html body main > section#why:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.bn-side { height: 150px !important; max-width: none !important; width: auto !important; }
}

/* Menu téléphone / tablette : panneau opaque (le flou ne marche pas dans l'en-tête déjà flouté sur iPhone), voile sur la page,
   ouverture douce, liens qui arrivent un à un avec une flèche dorée, icône ≡ qui devient ✕ (elle pivotait en « ||| ») */
@media (max-width: 1380px) {
  .top .menu.open:not(#_):not(#_) { background: rgba(255, 255, 255, .985) !important; border: 1px solid rgba(13, 59, 102, .07) !important; border-radius: 24px !important;
    box-shadow: 0 28px 60px -22px rgba(7, 26, 51, .5), 0 8px 18px -10px rgba(7, 26, 51, .18) !important; padding: 8px 20px 10px !important;
    transform-origin: 50% 0; animation: mnIn .52s cubic-bezier(.22, 1, .36, 1) both !important; }
  .top.over-night .menu.open:not(#_):not(#_) { background: rgba(6, 20, 40, .97) !important; border-color: rgba(255, 255, 255, .1) !important; }
  .top .menu.open:not(#_):not(#_) > a { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 4px !important; font-size: 1.06rem !important;
    border-bottom: 1px solid rgba(13, 59, 102, .08) !important; transition: color .25s ease, padding .35s cubic-bezier(.22, 1, .36, 1) !important;
    animation: mnItem .6s cubic-bezier(.22, 1, .36, 1) both !important; }
  .top.over-night .menu.open:not(#_):not(#_) > a { border-bottom-color: rgba(255, 255, 255, .1) !important; }
  .top .menu.open:not(#_):not(#_) > a:last-child { border-bottom: 0 !important; }
  .top .menu.open > a::after { content: "→"; font-size: .95em; color: #e8a33d; opacity: .45; translate: -6px 0; transition: opacity .3s ease, translate .35s cubic-bezier(.22, 1, .36, 1); }
  html[dir="rtl"] .top .menu.open > a::after { content: "←"; translate: 6px 0; }
  .top .menu.open > a.on::after, .top .menu.open > a:hover::after, .top .menu.open > a:active::after { opacity: 1; translate: 0 0; }
  .top .menu.open:not(#_):not(#_) > a.on { color: var(--port, #0d3b66) !important; font-weight: 700 !important; }
  .top.over-night .menu.open:not(#_):not(#_) > a.on { color: #fff !important; }
  .top .menu.open:not(#_):not(#_) > a:active { padding-inline-start: 10px !important; }
  .top .menu.open > a:nth-child(1) { animation-delay: .06s !important; } .top .menu.open > a:nth-child(2) { animation-delay: .1s !important; }
  .top .menu.open > a:nth-child(3) { animation-delay: .14s !important; } .top .menu.open > a:nth-child(4) { animation-delay: .18s !important; }
  .top .menu.open > a:nth-child(5) { animation-delay: .22s !important; } .top .menu.open > a:nth-child(6) { animation-delay: .26s !important; }
  /* voile sur la page derrière le menu (sous l'en-tête) */
  body::after { content: ""; position: fixed; inset: 0; z-index: 49; background: rgba(7, 26, 51, .32); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  body:has(#menu.open)::after { opacity: 1; }
  /* ≡ → ✕ */
  #burger:not(#_) { position: relative; }
  #burger:not(#_) i { transition: opacity .25s ease, scale .35s cubic-bezier(.22, 1, .36, 1) !important; }
  #burger[aria-expanded="true"]:not(#_) i { rotate: 0deg !important; opacity: 0; scale: .5; }
  #burger::before, #burger::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 2px; background: currentColor;
    color: var(--port, #0d3b66); opacity: 0; rotate: 0deg; transition: opacity .2s ease, rotate .45s cubic-bezier(.22, 1, .36, 1); }
  .top.over-night #burger::before, .top.over-night #burger::after { color: #fff; }
  #burger[aria-expanded="true"]::before { opacity: 1; rotate: 45deg; } #burger[aria-expanded="true"]::after { opacity: 1; rotate: -45deg; }
}
@keyframes mnIn { from { opacity: 0; translate: 0 -12px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes mnItem { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .top .menu.open, .top .menu.open > a { animation: none !important; } body::after { transition: none; } }

/* Carte « Développement individuel » : la photo est recadrée sur la formatrice (à droite de la photo), visage entier, sur carte étroite */
.areas .area-ind:not(#_):not(#_) { background-position: 0 0, 92% 18% !important; }
.areas .area-ind:not(#_):not(#_)::before { background-position: 92% 18% !important; }

/* Menu téléphone, version soignée : grands titres (Fraunces / Reem Kufi) numérotés en or, flèche dans une pastille,
   pied de menu avec « Devenir membre » et Instagram / Facebook */
.menu-foot { display: none; }
@media (max-width: 1380px) {
  .top .menu.open:not(#_):not(#_) { padding: 6px 22px 18px !important; counter-reset: mn; }
  .top .menu.open:not(#_):not(#_) > a { counter-increment: mn; justify-content: flex-start; gap: 14px; padding: 16px 2px !important;
    font-family: "Fraunces", Georgia, serif !important; font-weight: 600 !important; font-size: 1.32rem !important; letter-spacing: -.01em; line-height: 1.15; color: #0b1d33 !important; }
  html[lang="ar"] .top .menu.open:not(#_):not(#_) > a { font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif !important; font-size: 1.28rem !important; letter-spacing: 0; }
  .top .menu.open > a::before { content: counter(mn, decimal-leading-zero); min-width: 22px; font: 700 .7rem/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; color: #d4952c; translate: 0 -.35em; }
  .top .menu.open > a::after { margin-inline-start: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: .9rem !important;
    border: 1px solid rgba(232, 163, 61, .35); color: #d4952c !important; opacity: 1 !important; translate: 0 0 !important;
    transition: background .3s ease, color .3s ease, border-color .3s ease, translate .35s cubic-bezier(.22, 1, .36, 1) !important; }
  .top .menu.open > a.on::after, .top .menu.open > a:active::after { background: #e8a33d; border-color: #e8a33d; color: #0b1d33 !important; }
  .top .menu.open > a:active::after { translate: 4px 0 !important; } html[dir="rtl"] .top .menu.open > a:active::after { translate: -4px 0 !important; }
  .top .menu.open:not(#_):not(#_) > a.on { color: #0d3b66 !important; }
  .top.over-night .menu.open:not(#_):not(#_) > a { color: #fff !important; }
  .top .menu.open:not(#_):not(#_) > a:nth-last-child(2) { border-bottom: 0 !important; }
  .top .menu.open .menu-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(13, 59, 102, .08);
    animation: mnItem .6s .3s cubic-bezier(.22, 1, .36, 1) both; }
  .top .menu-foot a { border: 0 !important; padding: 0 !important; text-decoration: none; }
  .top .menu-foot .menu-cta:not(#_) { flex: 1; display: grid; place-items: center; height: 48px; border-radius: 999px; background: #e8a33d; color: #0b1d33 !important;
    font: 700 1rem/1 "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif; box-shadow: 0 10px 22px -12px rgba(232, 163, 61, .9); }
  .top .menu-foot .menu-soc:not(#_) { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(13, 59, 102, .18) !important;
    color: #0d3b66 !important; font-size: 1.3rem; }
  .top.over-night .menu-foot .menu-soc:not(#_) { color: #fff !important; border-color: rgba(255, 255, 255, .25) !important; }
  .top .menu-foot a.on { border: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .top .menu.open .menu-foot { animation: none; } }

/* Menu téléphone, retouche : sans numéros ni flèches, texte à la taille du site (Plus Jakarta / IBM Plex), lien actif en bleu */
@media (max-width: 1380px) {
  .top .menu.open > a::before, .top .menu.open > a::after { content: none !important; display: none !important; }
  .top .menu.open:not(#_):not(#_) > a { font-family: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif !important; font-weight: 600 !important; font-size: 1.04rem !important;
    letter-spacing: 0; padding: 14px 2px !important; color: #24384f !important; }
  html[lang="ar"] .top .menu.open:not(#_):not(#_) > a { font-family: "IBM Plex Sans Arabic", sans-serif !important; font-size: 1.06rem !important; }
  .top .menu.open:not(#_):not(#_) > a.on { color: #0d3b66 !important; font-weight: 700 !important; }
  .top.over-night .menu.open:not(#_):not(#_) > a { color: rgba(255, 255, 255, .86) !important; }
  .top.over-night .menu.open:not(#_):not(#_) > a.on { color: #fff !important; }
}

/* Menu téléphone, habillage : panneau bleu nuit sur le satin du footer, liens blancs, lien actif doré, filets clairs */
@media (max-width: 1380px) {
  .top .menu.open:not(#_):not(#_), .top.over-night .menu.open:not(#_):not(#_) {
    background: radial-gradient(120% 70% at 85% 0%, rgba(232, 163, 61, .16), transparent 60%),
      linear-gradient(180deg, rgba(7, 24, 48, .9), rgba(5, 17, 36, .96)), url("../img/drape-navy.jpg") center / cover !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    box-shadow: 0 30px 60px -20px rgba(4, 14, 30, .65), inset 0 1px 0 rgba(255, 255, 255, .08) !important; }
  .top .menu.open:not(#_):not(#_) > a, .top.over-night .menu.open:not(#_):not(#_) > a {
    color: rgba(255, 255, 255, .88) !important; font-size: 1.08rem !important; border-bottom-color: rgba(255, 255, 255, .09) !important;
    transition: color .25s ease, padding .35s cubic-bezier(.22, 1, .36, 1) !important; }
  .top .menu.open:not(#_):not(#_) > a.on, .top.over-night .menu.open:not(#_):not(#_) > a.on,
  .top .menu.open:not(#_):not(#_) > a:active { color: #f2b54f !important; }
  .top .menu.open:not(#_):not(#_) > a:active { padding-inline-start: 8px !important; }
  .top .menu.open .menu-foot { border-top-color: rgba(255, 255, 255, .1) !important; }
  .top .menu-foot .menu-soc:not(#_) { color: #fff !important; border-color: rgba(255, 255, 255, .22) !important; background: rgba(255, 255, 255, .04); }
  .top .menu-foot .menu-cta:not(#_) { box-shadow: 0 12px 26px -12px rgba(232, 163, 61, .75); }
}

/* Actualités (2) : la carte est une grille d'une case ; une cale invisible garde la proportion de la carte, le texte se pose
   en bas dans la même case. Si le texte est plus haut que la cale, la carte grandit (overflow:hidden empêchait l'autre méthode) */
#news .nw-card:not(#_):not(#_) { display: grid !important; aspect-ratio: auto !important; min-height: 0 !important; padding-top: 0 !important; }
#news .nw-card:not(#_):not(#_)::before { content: ""; grid-area: 1 / 1; aspect-ratio: 4 / 5; min-height: 420px; }
#news .nw-card:not(#_):not(#_) > .nw-body { grid-area: 1 / 1; align-self: end; margin-top: 76px; }
@media (max-width: 760px) { #news .nw-card:not(#_):not(#_)::before { aspect-ratio: 4 / 5.3; min-height: 0; } }

/* Menu téléphone, mouvement : le panneau se déroule depuis l'en-tête (rideau), les liens glissent un à un en se précisant,
   le voile se pose en douceur ; à la fermeture tout se replie vite vers le haut */
@media (max-width: 1380px) {
  .top .menu.open:not(#_):not(#_) { animation: mnCurtain .62s cubic-bezier(.16, 1, .3, 1) both !important; will-change: clip-path, translate; }
  .top .menu.open:not(#_):not(#_) > a { animation: mnLink .7s cubic-bezier(.16, 1, .3, 1) both !important; }
  .top .menu.open > a:nth-child(1) { animation-delay: .08s !important; } .top .menu.open > a:nth-child(2) { animation-delay: .13s !important; }
  .top .menu.open > a:nth-child(3) { animation-delay: .18s !important; } .top .menu.open > a:nth-child(4) { animation-delay: .23s !important; }
  .top .menu.open > a:nth-child(5) { animation-delay: .28s !important; }
  .top .menu.open .menu-foot { animation: mnLink .7s .34s cubic-bezier(.16, 1, .3, 1) both !important; }
  .top .menu.open.closing:not(#_):not(#_) { animation: mnFold .3s cubic-bezier(.4, 0, .9, .4) both !important; }
  .top .menu.open.closing:not(#_):not(#_) > a, .top .menu.open.closing .menu-foot { animation: none !important; }
  body:has(#menu.closing)::after { opacity: 0 !important; }
  body::after { transition: opacity .45s cubic-bezier(.16, 1, .3, 1) !important; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  #burger::before, #burger::after { transition: opacity .2s ease, rotate .55s cubic-bezier(.34, 1.56, .64, 1) !important; }
}
@keyframes mnCurtain { from { clip-path: inset(0 0 100% 0 round 24px); translate: 0 -6px; opacity: .4; } to { clip-path: inset(0 0 0 0 round 24px); translate: 0 0; opacity: 1; } }
@keyframes mnFold { from { clip-path: inset(0 0 0 0 round 24px); opacity: 1; } to { clip-path: inset(0 0 100% 0 round 24px); translate: 0 -6px; opacity: 0; } }
@keyframes mnLink { from { opacity: 0; translate: 0 10px; filter: blur(3px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .top .menu.open, .top .menu.open > a, .top .menu.open .menu-foot { animation: none !important; } }
@media (max-width: 1380px) {
  .top .menu-foot .menu-cta:not(#_) { padding: 0 16px; font-size: .95rem; white-space: nowrap; min-width: 0; }
  .top .menu-foot .menu-soc:not(#_) { width: 44px; height: 44px; flex: 0 0 44px; font-size: 1.2rem; }
}

/* Téléphone : « Psst! » a les mêmes effets que les autres (ombre portée, pas de fondu pâle) ; et tous les personnages
   arrivent en douceur (ils montent de derrière leur carte) au lieu d'être déjà là */
@media (max-width: 999px) {
  html body main > section#why:not(#_):not(#_):not(#_) img.bn.bn-side { -webkit-mask-image: none !important; mask-image: none !important; filter: drop-shadow(rgba(9, 24, 47, .22) 0 8px 12px) !important; }
}
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  html body main > section:not(#_):not(#_):not(#_):not(#_) img.bn.stk:not(.bn-in) { translate: 0 22px !important; opacity: 0 !important; }
  html body main > section:not(#_):not(#_):not(#_):not(#_) img.bn.stk { transition: translate .8s cubic-bezier(.3, 1.45, .5, 1) .1s, opacity .35s ease .1s !important; }
}

/* Actualités, téléphone : la date devient une petite étiquette d'une ligne (taille des étiquettes du site, 12,5 px),
   verre bleu nuit, jour en or ; elle n'écrase plus la photo */
@media (max-width: 760px) {
  #news .nw-card .nw-date:not(#_):not(#_) { display: inline-flex !important; flex-direction: row !important; align-items: baseline; gap: 6px; padding: 6px 11px !important;
    border-radius: 999px !important; background: rgba(7, 24, 48, .62) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .14) !important;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5) !important; min-width: 0 !important; line-height: 1 !important; }
  #news .nw-card .nw-date:not(#_):not(#_) b { font-size: .82rem !important; font-weight: 800 !important; color: #f2b54f !important; line-height: 1 !important; }
  #news .nw-card .nw-date:not(#_):not(#_) small { font-size: .74rem !important; font-weight: 600 !important; color: rgba(255, 255, 255, .9) !important; line-height: 1 !important; margin: 0 !important; letter-spacing: .01em; }
  #news .nw-card:not(#_):not(#_) > .nw-body { margin-top: 52px; }
}

/* Téléphone : le personnage des événements (et son mot) glisse vers la carte affichée quand on fait défiler la bande */
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  html body main > section#projects:not(#_):not(#_):not(#_):not(#_) img.bn.stk { transition: left .55s cubic-bezier(.22, 1, .36, 1), translate .8s cubic-bezier(.3, 1.45, .5, 1) .1s, opacity .35s ease .1s !important; }
  html body main > section#projects .bn-say { transition: left .55s cubic-bezier(.22, 1, .36, 1), opacity .25s, scale .55s cubic-bezier(.3, 1.7, .45, 1), rotate .55s cubic-bezier(.3, 1.7, .45, 1) !important; }
}

/* Accueil, téléphone : les deux boutons prennent la largeur de leur texte (« Become a member » débordait d'une colonne égale) ;
   sur les écrans les plus étroits ils s'empilent */
@media (max-width: 760px) {
  .hero .hero-actions:not(#_):not(#_) { grid-template-columns: auto auto !important; }
  .hero .hero-actions:not(#_):not(#_) > .cta { padding: 0 12px !important; min-width: 0 !important; }
}
@media (max-width: 359px) {
  .hero .hero-actions:not(#_):not(#_) { grid-template-columns: 1fr !important; }
}

/* Téléphone : « Psst! » sort la tête de derrière la carte (comme sur ordinateur), et s'y recache pendant le défilement */
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  html body main > section#why:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.bn-side { transition: translate .75s cubic-bezier(.3, 1.4, .5, 1) .1s, opacity .3s ease .1s !important; }
  html body main > section#why:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.bn-side:is(:not(.bn-in), .stk-hide) { translate: 55% 0 !important; opacity: 0 !important; transition-delay: 0s !important; transition-duration: .35s, .25s !important; }
  html[dir="rtl"] body main > section#why:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.bn-side:is(:not(.bn-in), .stk-hide) { translate: -55% 0 !important; }
  html body main > section#why .bn-say.stk-hide { opacity: 0 !important; scale: .4 !important; }
}
/* Accueil, téléphone (2) : sélecteur renforcé, l'ancienne règle des deux colonnes égales gagnait */
@media (max-width: 760px) {
  html body .hero .hero-actions:not(#_):not(#_):not(#_):not(#_):not(#_) { grid-template-columns: auto auto !important; }
  html body .hero .hero-actions:not(#_):not(#_):not(#_):not(#_):not(#_) > .cta { padding: 0 12px !important; min-width: 0 !important; }
}
@media (max-width: 359px) { html body .hero .hero-actions:not(#_):not(#_):not(#_):not(#_):not(#_) { grid-template-columns: 1fr !important; } }

/* Stickers, mouvement harmonisé (ordinateur et téléphone) :
   - saut au survol / au toucher : sur « transform » (l'ancien saut animait « translate », bloqué par la position d'entrée en !important : invisible)
   - mot qui change : petit pop sur « transform », puis il reprend sa flottaison
   - tous les mots flottent pareil (Psst avait un autre pop et restait figé) */
@media (prefers-reduced-motion: no-preference) {
  html body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.stk.hop { animation: stkHop .55s cubic-bezier(.3, 1.6, .5, 1) !important; transform-origin: 50% 100%; }
  html body main > section:not(#_):not(#_):not(#_) .bn-say.on.alt { animation: sayPop .45s cubic-bezier(.3, 1.8, .45, 1) !important; }
  html body main > section:not(#_):not(#_):not(#_) .bn-say.on:not(.alt) { animation: sayFloat 3.6s ease-in-out 1.4s infinite !important; }
}
@keyframes stkHop { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-12px) rotate(-3deg); } 70% { transform: translateY(2px) rotate(1deg); } }
@keyframes sayPop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

/* Téléphone : les jumelles (événements) se cachent derrière la carte pendant le défilement, comme « Psst! » ;
   plus de glissement de « left » (saccadé) */
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  html body main > section#projects:not(#_):not(#_):not(#_):not(#_) img.bn.stk { transition: translate .75s cubic-bezier(.3, 1.4, .5, 1) .1s, opacity .3s ease .1s !important; }
  html body main > section#projects:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.stk.stk-hide { translate: 0 60% !important; opacity: 0 !important; transition-delay: 0s !important; transition-duration: .35s, .25s !important; }
  html body main > section#projects .bn-say { transition: opacity .25s, scale .55s cubic-bezier(.3, 1.7, .45, 1), rotate .55s cubic-bezier(.3, 1.7, .45, 1) !important; }
  html body main > section#projects .bn-say.stk-hide { opacity: 0 !important; scale: .4 !important; }
}

/* Événements (téléphone / tablette) : la bande qui défile coupait net la lueur colorée sous les cartes (bande plate) ;
   on lui laisse la place en bas, sans changer l'espacement de la section */
@media (max-width: 999px) {
  html body main > section#projects:not(#_):not(#_):not(#_) .ev-grid { padding-bottom: 52px !important; margin-bottom: -36px !important; }
  html body main > section#projects:not(#_):not(#_):not(#_) .ev-grid > .ev { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 6px rgba(2, 10, 24, .35), 0 22px 36px -24px var(--ec, rgba(0, 0, 0, .5)) !important; }
}

/* Téléphone : les cartes « Pourquoi nous rejoindre » s'arrêtent contre la marge de gauche (et plus au centre), là où « Psst! »
   passe la tête ; s'il n'y a pas de carte à cet endroit, il reste caché (stk-off) */
@media (max-width: 999px) {
  html body main > section#why:not(#_):not(#_):not(#_) .px-panels > .area { scroll-snap-align: start !important; }
  html body main > section#why:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.bn-side.stk-off { translate: 55% 0 !important; opacity: 0 !important; }
  html[dir="rtl"] body main > section#why:not(#_):not(#_):not(#_):not(#_):not(#_) img.bn.bn-side.stk-off { translate: -55% 0 !important; }
  html body main > section#why .bn-say.stk-off { opacity: 0 !important; scale: .4 !important; }
}

/* Écran d'accueil, fluidité (téléphone surtout) : plus d'animations qui redessinent tout à chaque image
   (mosaïques qui glissaient en continu, reflets en boucle) ; sortie plus légère (zoom ×2,6 sans ombre au lieu de ×5,5 avec ombre) */
html.ld-on .ld-jci, html.ld-on .ld-fill { animation-name: none; }
html.ld-on .ld-fill { animation: ldRise 1s cubic-bezier(.6, .05, .2, 1) .1s forwards; }
html.ld-quick .ld-fill { animation-duration: .45s; animation-delay: 0s; }
html.ld-on .ld-shine { animation-iteration-count: 1; }
html.ld-on .ld-kel span { animation-iteration-count: 1, 1; }
html.ld-on .ld-glow { will-change: transform; }
html.ld-on .ld-mark { will-change: transform, opacity; }
html.ld-out .ld-jci, html.ld-out .ld-kel { filter: none !important; }
html.ld-out .ld { animation: ldFade .6s cubic-bezier(.5, 0, .2, 1) forwards !important; }
html.ld-out .ld-mark { animation: ldZoom2 .6s cubic-bezier(.6, 0, .3, 1) forwards !important; }
@keyframes ldZoom2 { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* Mission / vision sur tablette (561–760 px) : le zigzag du téléphone y laissait de grands vides ; on reprend la composition
   de l'ordinateur (mission | cercle | vision, la vision un peu plus bas), avec un cercle plus petit. Le zigzag reste ≤ 560 px. */
@media (min-width: 561px) and (max-width: 760px) {
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv {
    grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr) !important; grid-template-areas: "m c v" !important; grid-template-rows: auto !important;
    column-gap: 22px !important; align-items: start !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > .mv-center { width: 190px !important; height: 190px !important; margin: 40px 0 0 !important; align-self: start !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type { margin-top: 110px !important; }
}
@media (min-width: 561px) and (max-width: 760px) {
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv { grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr) !important; column-gap: 16px !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > .mv-center { width: 230px !important; height: 230px !important; margin-top: 30px !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type { margin-top: 130px !important; }
  /* la vision s'aligne au début de sa colonne, comme sur grand écran (le zigzag téléphone l'alignait sur le bord) */
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type,
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type :is(h3, .mv-text, .mv-derja) { text-align: start !important; margin-inline-start: 0 !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type .mv-link { margin-inline-start: 0 !important; }
}

/* Mission / vision, harmonie (561–1199 px) : le cercle suit la largeur de l'écran (26 vw, entre 170 et 360 px) pour rester
   à peu près de la largeur d'une colonne de texte ; avant, il gardait 360 px à 880 px pendant que les textes n'avaient que 197 px. */
@media (min-width: 561px) and (max-width: 1199px) {
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv { --mvc: clamp(170px, 26vw, 360px);
    grid-template-columns: minmax(0, 1fr) var(--mvc) minmax(0, 1fr) !important; column-gap: clamp(18px, 3vw, 40px) !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > .mv-center { width: var(--mvc) !important; height: var(--mvc) !important; }
}
@media (min-width: 561px) and (max-width: 760px) {
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > .mv-center { margin-top: 26px !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item:last-of-type { margin-top: calc(var(--mvc) * .5) !important; }
}

/* Visionneuse d'albums : fondu enchaîné entre deux photos (l'ancienne glisse et s'efface pendant que la nouvelle arrive),
   photo qui suit le doigt, compteur sur une ligne */
.lightbox .lb-ghost { position: fixed; z-index: 1; margin: 0; object-fit: contain; border-radius: 14px; pointer-events: none;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); animation: lbOut .45s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes lbOut { to { opacity: 0; transform: translateX(var(--gx, 0px)) scale(.96); } }
#lbImg:not(#_) { position: relative; z-index: 2; transition: opacity .3s cubic-bezier(.22, 1, .36, 1), translate .4s cubic-bezier(.22, 1, .36, 1) !important; }
#lbImg.lb-drag:not(#_) { transition: none !important; }
#lbImg.lb-in:not(#_) { animation: lbIn2 .55s cubic-bezier(.16, 1, .3, 1) both !important; }
@keyframes lbIn2 { from { opacity: 0; transform: translateX(var(--dx, 0px)) scale(.97); } to { opacity: 1; transform: none; } }
.lightbox .lb-bg img { transition: opacity .6s ease, filter .6s ease !important; }
#lbNum { white-space: nowrap; }
@media (max-width: 760px) {
  .lightbox .lb-top:not(#_) { padding-inline: 16px 76px !important; }
  #lbImg:not(#_) { max-width: calc(100% - 24px) !important; }
  .lightbox .lb-btn { z-index: 3; }
}
@media (prefers-reduced-motion: reduce) { .lightbox .lb-ghost { display: none; } #lbImg.lb-in:not(#_) { animation: none !important; } }

/* Mission / vision, équilibre (561–999 px) : la mission (texte long) prend plus de largeur que la vision (texte court),
   pour que les deux blocs aient à peu près la même hauteur ; texte un cran plus petit, comme les autres cartes sur tablette */
@media (min-width: 561px) and (max-width: 999px) {
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv { grid-template-columns: minmax(0, 1.3fr) var(--mvc) minmax(0, 1fr) !important; }
  html body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item .mv-text { font-size: .95rem !important; line-height: 1.6 !important; }
  html[lang="ar"] body #about:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .mv > div.mv-item .mv-text { font-size: 1rem !important; line-height: 1.8 !important; }
}

/* Visionneuse façon story Instagram : une barre par photo en haut ; celle en cours se remplit (5 s) puis on passe à la suivante ;
   doigt appuyé = pause ; toucher la photo à droite / à gauche = suivante / précédente */
.lightbox .lb-story { position: absolute; z-index: 4; top: 8px; left: 12px; right: 12px; display: flex; gap: 3px; pointer-events: none; }
.lightbox .lb-story i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.lightbox .lb-story b { display: block; height: 100%; width: 100%; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: 0 50%; }
html[dir="rtl"] .lightbox .lb-story b { transform-origin: 100% 50%; }
.lightbox .lb-story i.done b { transform: scaleX(1); }
.lightbox .lb-story i.cur b { animation: lbStory 5s linear forwards; }
.lightbox.lb-hold .lb-story i.cur b, .lightbox:not([open]) .lb-story i.cur b { animation-play-state: paused; }
@keyframes lbStory { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lightbox .lb-fig { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lightbox .lb-top:not(#_) { padding-top: 22px !important; }
/* moins d'animations demandées : pas de défilement automatique, les barres indiquent juste la position */
@media (prefers-reduced-motion: reduce) { .lightbox .lb-story i.cur b { animation: none; transform: scaleX(1); } }

/* Visionneuse façon story, habillage :
   - plus de flèches sur téléphone / tablette (on touche la photo, on glisse, ou les vignettes) ; elles restent à la souris
   - en-tête aligné comme une story : pastille ronde de l'album cerclée d'or, titre en gras, date ou légende en dessous, compteur discret
   - photo arrondie avec une ombre douce ; vignettes plus petites qui s'effacent sur les bords ; dégradés haut et bas pour la lisibilité */
@media (max-width: 999px), (hover: none) {
  .lightbox:not(#_) .lb-prev, .lightbox:not(#_) .lb-next { display: none !important; }
}
.lightbox[open]::before, .lightbox[open]::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.lightbox[open]::before { top: 0; height: 120px; background: linear-gradient(180deg, rgba(3, 9, 18, .7), rgba(3, 9, 18, 0)); }
.lightbox[open]::after { bottom: 0; height: 110px; background: linear-gradient(0deg, rgba(3, 9, 18, .65), rgba(3, 9, 18, 0)); }
.lightbox .lb-top:not(#_):not(#_) { justify-content: flex-start !important; align-items: center !important; gap: 10px !important; padding: 24px 76px 10px 16px !important; text-align: start; }
html[dir="rtl"] .lightbox .lb-top:not(#_):not(#_) { padding: 24px 16px 10px 76px !important; }
#lbTitle:not(#_) { display: flex !important; align-items: center; gap: 10px; min-width: 0; font-size: .95rem; font-weight: 700; line-height: 1.2; }
#lbTitle .lb-av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; padding: 2px; background: linear-gradient(135deg, #f8d27a, #e8a33d 50%, #c97d17);
  box-shadow: 0 0 0 2px rgba(5, 13, 24, .9) inset; }
#lbTitle .lb-tt { display: grid; min-width: 0; }
#lbTitle .lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lbTitle:not(#_) .lb-cap { margin-top: 2px !important; font-size: .76rem !important; font-weight: 500 !important; opacity: .72 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lbNum:not(#_) { flex: none; margin-inline-start: auto; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff !important; font-size: .74rem !important; font-weight: 700; letter-spacing: .02em; }
#lbNum:empty { display: none; }
.lightbox .lb-close:not(#_) { z-index: 5; top: 26px !important; width: 40px; height: 40px; background: rgba(255, 255, 255, .12) !important; border: 0 !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#lbImg:not(#_):not(#_) { border-radius: 18px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); }
.lightbox .lb-thumbs:not(#_) { padding: 10px 16px 18px !important; gap: 6px !important;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.lightbox .lb-thumbs:not(#_) button { width: 46px; height: 46px; border-radius: 12px; opacity: .5; border-width: 2px; transition: opacity .3s, transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s; }
.lightbox .lb-thumbs:not(#_) button.on { opacity: 1; transform: scale(1.08); border-color: #f2b54f; }
@media (min-width: 1000px) and (hover: hover) {
  .lightbox .lb-thumbs:not(#_) button { width: 64px; height: 48px; }
}
/* la visionneuse ne peut pas défiler elle-même (overflow:clip) : rien ne la décale quand une photo glisse ou qu'une vignette se centre */
.lightbox[open]:not(#_) { overflow: clip !important; }

/* Bureau, téléphone : le bas du sticker « بالشفى سيدي الرئيس! » s'efface en fondu juste au-dessus de l'arche (on voyait la coupe
   droite de sa veste posée sur l'arche, comme s'il flottait) */
@media (max-width: 999px) {
  html body main > section#team:not(#_):not(#_):not(#_):not(#_) img.bn.bn-hello { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 97%); mask-image: linear-gradient(180deg, #000 70%, transparent 97%); }
}
/* (l'ombre portée, coupée par le fondu aux bords de l'image, dessinait un rectangle gris autour de lui : on la retire ici) */
@media (max-width: 999px) {
  html body main > section#team:not(#_):not(#_):not(#_):not(#_) img.bn.bn-hello { filter: none !important; }
}

/* Bulles des personnages : une seule écriture par langue (Caveat en français / anglais, Aref Ruqaa en arabe), même taille pour
   toutes les bulles (avant : l'arabe plus petit, « بالشفى سيدي الرئيس! » encore plus petit, une bulle en Caveat sur la version arabe) */
html body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) .bn-say { font-family: "Caveat", cursive !important; font-weight: 700 !important; font-size: 26.4px !important; }
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) .bn-say { font-family: "Aref Ruqaa", "Caveat", serif !important; font-weight: 700 !important; font-size: 24px !important; }
@media (max-width: 999px) {
  html body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) .bn-say { font-size: 24px !important; }
  html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) .bn-say { font-size: 22px !important; }
}

/* Haut de page après l'écran d'accueil : les délais d'origine (titre à 1,45 s, phrase et boutons à 2,1 s) attendaient que le fort
   s'allume ; il s'est déjà allumé derrière l'écran d'accueil, donc on enchaîne tout de suite (titre, puis phrase, boutons, « إيجا معانا! ») */
html.ld-intro .hero:not(#_) h1 .w { transition-delay: calc(var(--i) * 60ms + .05s) !important; }
html.ld-intro .hero.on:not(#_) .hero-row { transition-delay: .45s !important; }
html.ld-intro .hero.on:not(#_) .hero-note span { animation-delay: .7s !important; }
html.ld-intro .hero.on:not(#_) .hero-note path:first-child { animation-delay: .95s !important; }
html.ld-intro .hero.on:not(#_) .hero-note path:last-child { animation-delay: 1.3s !important; }
/* une bulle en anglais sur la version arabe (« Interesting! ») garde l'écriture Caveat */
html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) .bn-say.lat { font-family: "Caveat", cursive !important; font-size: 26.4px !important; }
@media (max-width: 999px) { html[lang="ar"] body main > section:not(#_):not(#_):not(#_):not(#_):not(#_) .bn-say.lat { font-size: 24px !important; } }

/* Story : même sens dans toutes les langues (barres de gauche à droite, vignettes dans l'ordre, flèches non inversées) ;
   seul l'en-tête (titre de l'album) suit la langue de la page */
.lightbox .lb-story b, html[dir="rtl"] .lightbox .lb-story b { transform-origin: 0 50% !important; }
html[dir="rtl"] .lightbox .dir-ic { transform: none !important; }
html[dir="rtl"] .lightbox .lb-top:not(#_):not(#_):not(#_) { direction: ltr; padding: 24px 76px 10px 16px !important; }
#lbTitle .lb-name, #lbTitle .lb-cap { unicode-bidi: plaintext; text-align: start; }

/* Story partout (ordinateur compris) : plus de flèches ; on touche / clique à droite ou à gauche de l'écran */
.lightbox:not(#_):not(#_) .lb-prev, .lightbox:not(#_):not(#_) .lb-next { display: none !important; }
.lightbox[open]:not(#_) { cursor: pointer; }
.lightbox[open] .lb-top, .lightbox[open] .lb-thumbs { cursor: default; }

/* Bureau : plus d'air entre le titre « المكتب التنفيذي 2026 » et l'équipe, pour que le sticker remonté ne colle pas au titre */
html body main > section#team:not(#_):not(#_):not(#_):not(#_) .team-grid { margin-top: 148px !important; }
@media (max-width: 999px) { html body main > section#team:not(#_):not(#_):not(#_):not(#_) .team-grid { margin-top: 128px !important; } }

/* Bureau, mise en scène : halo doré qui respire derrière la présidente, sol d'ombre douce sous la rangée,
   (sans sol d'ombre : il faisait une bande grise) ; au survol d'un membre la photo se soulève avec un liseré doré */
html body main > section#team:not(#_):not(#_) .team-grid { position: relative; }

html body main > section#team:not(#_):not(#_) .lead-member::before { background: radial-gradient(closest-side, rgba(242, 181, 79, .42), rgba(242, 181, 79, .14) 55%, rgba(242, 181, 79, 0)) !important; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#team:not(#_):not(#_) .lead-member::before { animation: teamHalo 6s ease-in-out infinite; }
  html body main > section#team .member .avatar { transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
  html body main > section#team:not(#_):not(#_) .member:hover .avatar { transform: translateY(-6px); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f2b54f, 0 18px 30px -16px rgba(9, 24, 47, .55) !important; }
}
@keyframes teamHalo { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: 1; scale: 1.06; } }

/* Bureau, espacements : autant d'air en haut qu'en bas de la section, un peu plus de place entre les membres,
   le proverbe « يد وحدة ما تصفقش » et l'appel « تحب تكون في المكتب الجاي؟ » */
html body main > section#team:not(#_):not(#_):not(#_) { padding-top: 96px !important; }
html body main > section#team:not(#_):not(#_):not(#_) .team-proverb { margin-top: 44px !important; }
html body main > section#team:not(#_):not(#_):not(#_) .team-next { margin-top: 16px !important; }
@media (max-width: 999px) {
  html body main > section#team:not(#_):not(#_):not(#_) { padding-top: 72px !important; }
  html body main > section#team:not(#_):not(#_):not(#_) .team-proverb { margin-top: 32px !important; }
}
/* Bureau, grand écran : moins de vide entre le titre et l'équipe (le sticker garde ~45 px sous le titre) */
@media (min-width: 1000px) {
  html body main > section#team:not(#_):not(#_):not(#_):not(#_):not(#_) .team-grid { margin-top: 118px !important; }
  html body main > section#team:not(#_):not(#_):not(#_):not(#_) { padding-top: 80px !important; }
}

/* Téléphone / tablette : le bouton « retour en haut » revient (il était masqué ; en bas de page il ne restait que Messenger).
   Petit rond en bas à gauche, au-dessus de la barre « Devenir membre », visible dès qu'on a un peu défilé */
@media (max-width: 1000px) {
  html body a#toTop.to-top:not(#_):not(#_):not(#_) { display: grid !important; width: 44px !important; height: 44px !important;
    left: 16px !important; right: auto !important; inset-inline-end: auto !important; bottom: 84px !important; }
  html body a#toTop.to-top:not(#_):not(#_):not(#_) i { font-size: 19px !important; }
}

/* Formulaire, ordinateur : la colonne « Âge » un peu plus large et son indication (« Between 18 and 40 ») sur une seule ligne */
@media (min-width: 1000px) {
  html body #join .frow-3:not(#_):not(#_) { grid-template-columns: minmax(140px, 1.15fr) 1.6fr 2.1fr !important; }
  html body #join .frow-3 .fhint:not(#_) { white-space: nowrap; }
}

/* Revue complète (2026-11-16) — corrections d'ergonomie */
/* 1. Partenaire, petits téléphones : « JCI Kélibia × votre partenaire » ne tenait pas sur une ligne (logo coupé à gauche,
      mot sorti de l'écran) : on empile logo, ×, puis le mot */
@media (max-width: 420px) {
  html body main > section#contact:not(#_):not(#_) .pt-collab { grid-template-columns: 1fr !important; grid-auto-flow: row !important; justify-items: center !important; row-gap: 6px !important; }
  html body main > section#contact:not(#_):not(#_) .pt-collab > * { grid-column: 1 !important; grid-row: auto !important; max-width: 100%; }
  html body main > section#contact:not(#_):not(#_) .pt-them { min-width: 0 !important; max-width: 100% !important; }
}
/* 2. Zones à toucher trop petites : « + Ajouter un mot » (28 px) et, sur tablette, « Lire la suite » / « Photos » (27–34 px) */
html body #join summary:not(#_) { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 1000px) {
  html body #news .nw-read:not(#_):not(#_), html body #news .nw-photos:not(#_):not(#_) { min-height: 40px !important; }
}

/* Pied de page : mention « Réalisation : Yosr Lengliz » à côté du ©, discrète */
footer.footer.fy .fy-copy .fy-made { color: rgba(255, 255, 255, .5); }
footer.footer.fy .fy-copy .fy-sep { color: rgba(255, 255, 255, .35); }
@media (max-width: 520px) { footer.footer.fy .fy-copy .fy-sep { display: none; } footer.footer.fy .fy-copy .fy-made { display: block; margin-top: 2px; } }
/* Téléphone : la dernière ligne du pied de page passait sous le bouton « retour en haut » et la barre du bas */
@media (max-width: 1000px) { html body footer.footer.fy:not(#_):not(#_):not(#_):not(#_) { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; } }

/* Écran d'accueil : la mosaïque du « JCI » était agrandie (200 %) et figée sur une zone sombre — visages énormes, trous noirs
   dans le J et le C. Moins zoomée et cadrée sur une zone pleine : beaucoup de visages entiers dans chaque lettre */
html.ld-on .ld-jci:not(#_), html.ld-on .ld-fill:not(#_) { background-size: 165% auto !important; background-position: 42% 30% !important; }

/* Footer : nouvelle mosaïque harmonisée (48 plans moyens, même étalonnage chaud, grille régulière) en haute définition ;
   8 colonnes au lieu d'environ 12 : cadrage à 165 % pour garder des tuiles de même taille dans les lettres */
footer.footer.fy.fy-sara .fy-mark .fy-photo:not(#_), footer.footer.fy.fy-sara .fy-mark .fy-photo:not(#_) .fy-col { background-size: 165% auto !important; }

/* Programmes JCI (ordinateur) : texte lisible sur la photo
   - un voile bleu nuit dégradé sous la légende (le titre et la phrase se perdaient sur les scènes lumineuses, ex. TOYP)
   (les photos et la vitesse d'ouverture des panneaux restent celles d'origine : les surcharger cassait le fondu et le gris) */
html body .pgx:not(#_):not(#_) .pgx-p .pgx-cap { top: auto !important; padding-top: 120px !important;
  background: linear-gradient(0deg, rgba(4, 14, 30, .92) 0%, rgba(4, 14, 30, .72) 38%, rgba(4, 14, 30, .35) 70%, rgba(4, 14, 30, 0) 100%) !important; }
html body .pgx:not(#_):not(#_) .pgx-p .pgx-cap :is(.pgx-cap-hook, .pgx-cap-desc, .pgx-cap-name) { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
html body .pgx:not(#_):not(#_) .pgx-p .pgx-cap .pgx-cap-desc { color: rgba(255, 255, 255, .9) !important; }

/* Programmes sur téléphone / tablette (cartes empilées) : plus de vide
   - la légende descend au bas de la photo (une bande sombre de 104 px y restait vide : les boutons sont sous la photo)
   - le texte sous la photo s'enchaîne sans les rangées vides de la grille (étapes, preuves… masquées sur téléphone)
   - un écart régulier avant la carte suivante */
@media (max-width: 980px) {
  html body .pgx:not(#_):not(#_) .pgx-p.on .pgx-cap { padding-bottom: 26px !important; }
  html body .pgx:not(#_):not(#_) .pgx-p.on .pgx-front:not([hidden]) { display: flex !important; flex-direction: column; gap: 16px; }
  html body .pgx:not(#_):not(#_) .pgx-p.on .pgx-front > .pgx-acts { margin-top: 4px; align-self: stretch; width: 100%; }
  html body .pgx:not(#_):not(#_) .pgx-p.on .pgx-story { margin: 18px 4px 22px !important; }
  html body .pgx:not(#_):not(#_) .pgx-open small { color: rgba(255, 255, 255, .9) !important; letter-spacing: .02em; }
  /* boutons : texte sur une ligne, centré ; s'ils ne tiennent pas côte à côte (petits écrans, français), chacun prend toute la largeur */
  html body .pgx:not(#_):not(#_) .pgx-p.on .pgx-acts { flex-wrap: wrap !important; gap: 10px !important; }
  html body .pgx:not(#_):not(#_) .pgx-p.on .pgx-acts > :is(.pgx-cta, .pgx-more) { flex: 1 1 auto !important; white-space: nowrap; text-align: center !important; justify-content: center; padding-inline: 18px !important; font-size: .95rem !important; }
}

/* =====================================================================
   Nos présidents : « le flambeau » — un fil d'or serpente d'année en année (une rangée vers la gauche, la suivante
   vers la droite) sur le satin bleu nuit du pied de page. En descendant, une braise parcourt le fil et allume chaque
   mandat à son passage ; 2026 s'embrase en or au bout du fil.
   Sans JavaScript ou avec « réduire les animations » : tout est allumé, le fil est plein.
   ===================================================================== */
html body main > section#presidents.pres:not(#_) {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(84px, 9vw, 140px) 0 clamp(80px, 9vw, 140px) !important;
  background:
    linear-gradient(180deg, rgba(9, 24, 47, .2) 0, rgba(9, 24, 47, .62) 45%, var(--deep, #09182f) 100%) top center / 100% clamp(220px, 22vw, 400px) no-repeat,
    url("../img/satin-folds.jpg") top center / auto clamp(220px, 22vw, 400px) no-repeat,
    var(--deep, #09182f) !important;
}
/* halo doré qui se lève vers le bas, là où le fil arrive à 2026 */
html body main > section#presidents.pres:not(#_)::before {
  content: ""; position: absolute; z-index: -1; inset: auto 0 -25% 0; height: 75%;
  background: radial-gradient(60% 55% at 50% 70%, rgba(242, 196, 107, .13), rgba(242, 196, 107, 0) 70%); pointer-events: none;
}
html body main > section#presidents .pres-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 72px); }
html body main > section#presidents .pres-kick {
  display: inline-block; margin: 0 0 14px; font-family: "Reem Kufi", sans-serif; font-weight: 600; font-size: .9rem; letter-spacing: .32em;
  color: #f2c46b; direction: ltr; unicode-bidi: isolate; padding-inline-start: .32em;
}
html body main > section#presidents .pres-head h2:not(#_):not(#_) { color: #fff8e6 !important; margin: 0 !important; }
html body main > section#presidents .pres-hand {
  margin: 12px 0 0; color: #f2c46b; font-family: "Caveat", cursive; font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2;
}
html[lang="ar"] body main > section#presidents .pres-hand { font-family: "Aref Ruqaa", "Reem Kufi", serif; font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.7rem); }
html body main > section#presidents .pres-sub:not(#_) { margin: 14px auto 0 !important; max-width: 560px; color: rgba(255, 255, 255, .72) !important; font-size: 1rem; line-height: 1.7; }

/* le plateau : la grille des mandats et, dessous, le fil (SVG calculé d'après la position des nœuds) */
html body main > section#presidents .pres-board { position: relative; max-width: 1180px; margin: 0 auto; padding-inline: clamp(26px, 4vw, 56px); }
html body main > section#presidents .pres-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
html body main > section#presidents .pt-track { fill: none; stroke: rgba(242, 196, 107, .16); stroke-width: 1.2; }
html body main > section#presidents .pt-glow { fill: none; stroke: #f2c46b; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(242, 196, 107, .55)); }
html body main > section#presidents .pt-ember { fill: #fff3d1; opacity: 0; transition: opacity .35s ease;
  filter: drop-shadow(0 0 4px #ffd27a) drop-shadow(0 0 12px rgba(255, 190, 90, .9)); }
html body main > section#presidents.pres-live .pt-ember.on { opacity: 1; }

html body main > section#presidents .pres-list {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: clamp(10px, 1.6vw, 24px);
}
html body main > section#presidents .pres-list li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center;
  padding: 34px 2px clamp(34px, 3.4vw, 48px);
}
/* le nœud sur le fil */
html body main > section#presidents .pres-dot {
  position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: #f2c46b; border: 1.5px solid #f2c46b; box-shadow: 0 0 0 4px rgba(242, 196, 107, .14), 0 0 14px rgba(242, 196, 107, .6);
  transition: background .4s ease, border-color .4s ease, box-shadow .5s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
html body main > section#presidents .pres-y {
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 2.6vw, 2.55rem); line-height: 1;
  color: #f2c46b; direction: ltr; unicode-bidi: isolate; font-variant-numeric: lining-nums tabular-nums;
  transition: color .5s ease, text-shadow .6s ease;
}
html body main > section#presidents .pres-y i { font-style: normal; color: rgba(242, 196, 107, .4); transition: color .5s ease; }
html body main > section#presidents .pres-n {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 600; font-size: .95rem; line-height: 1.35; color: #fff;
  text-wrap: balance; overflow-wrap: anywhere; transition: color .5s ease;
}

/* en attente du passage de la braise : éteint, mais lisible */
html body main > section#presidents.pres-live .pres-list li:not(.lit) .pres-dot { background: var(--deep, #09182f); border-color: rgba(242, 196, 107, .4); box-shadow: none; transform: scale(.8); }
html body main > section#presidents.pres-live .pres-list li:not(.lit) .pres-y { color: rgba(242, 196, 107, .3); }
html body main > section#presidents.pres-live .pres-list li:not(.lit) .pres-y i { color: rgba(242, 196, 107, .14); }
html body main > section#presidents.pres-live .pres-list li:not(.lit) .pres-n { color: rgba(255, 255, 255, .42); }
/* l'instant où la braise touche le mandat : l'année s'éclaire */
html body main > section#presidents.pres-live .pres-list li.lit .pres-y { text-shadow: 0 0 22px rgba(242, 196, 107, .35); }

/* 2026 : la présidente en cours, au bout du fil — un médaillon d'or qui s'embrase */
html body main > section#presidents .pres-list li.pres-now { padding-inline: 8px; }
html body main > section#presidents .pres-now .pres-dot { width: 18px; height: 18px; margin-left: -9px; top: 1px; background: #ffe3a3; }
html body main > section#presidents .pres-now .pres-y, html body main > section#presidents .pres-now .pres-n { position: relative; z-index: 1; }
html body main > section#presidents .pres-now::after {
  content: ""; position: absolute; z-index: 0; inset: 22px -6px 18px; border-radius: 16px;
  background: linear-gradient(160deg, #f8d988, #e2a840); box-shadow: 0 22px 44px -18px rgba(242, 196, 107, .7), 0 0 0 1px rgba(255, 236, 190, .5) inset;
  transition: opacity .7s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
html body main > section#presidents .pres-now .pres-y { color: #09182f; margin-top: 10px; }
html body main > section#presidents .pres-now .pres-y i { color: rgba(9, 24, 47, .45); }
html body main > section#presidents .pres-now .pres-n { color: #09182f; font-weight: 700; }
html body main > section#presidents .pres-tag {
  position: relative; z-index: 1; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #09182f; color: #f6d27e;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
html[lang="ar"] body main > section#presidents .pres-tag { font-family: var(--font-ar); font-size: .78rem; }
html body main > section#presidents.pres-live .pres-now:not(.lit)::after { opacity: 0; transform: scale(.9); }
html body main > section#presidents.pres-live .pres-now:not(.lit) .pres-y { color: rgba(242, 196, 107, .3); }
html body main > section#presidents.pres-live .pres-now:not(.lit) .pres-n { color: rgba(255, 255, 255, .42); }
html body main > section#presidents.pres-live .pres-now:not(.lit) .pres-tag { opacity: 0; }
html body main > section#presidents .pres-now .pres-tag { transition: opacity .5s ease .25s; }
html body main > section#presidents.pres-live .pres-now.lit .pres-dot { box-shadow: 0 0 0 6px rgba(242, 196, 107, .2), 0 0 26px 4px rgba(255, 210, 120, .75); }

/* tablette et téléphone : 3 par rangée, six rangées pleines (le fil fait demi-tour sur les côtés) */
@media (max-width: 999px) {
  html body main > section#presidents .pres-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body main > section#presidents .pres-board { max-width: 620px; }
}
@media (max-width: 560px) {
  html body main > section#presidents .pres-board { padding-inline: 22px; }
  html body main > section#presidents .pres-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
  html body main > section#presidents .pres-list li { padding: 30px 0 30px; gap: 4px; }
  html body main > section#presidents .pres-y { font-size: 1.45rem; }
  html body main > section#presidents .pres-n { font-size: .78rem; line-height: 1.3; }
  html body main > section#presidents .pres-now::after { inset: 20px -2px 14px; border-radius: 14px; }
  html body main > section#presidents .pres-tag { font-size: .62rem; padding: 2px 7px; }
}

/* Présidents : en-tête « monumental ». « 2009 — 2026 » en très grand, gravé en filigrane d'or dans le satin ; un reflet de
   lumière le traverse une fois quand on arrive. Le titre, d'une seule couleur crème, se pose devant. Pas d'autre ornement. */
html body main > section#presidents.pres:not(#_):not(#_) { padding-top: clamp(56px, 6vw, 96px) !important; }
html body main > section#presidents .pres-head:not(#_) { position: relative; max-width: none; margin-bottom: clamp(44px, 5vw, 76px); }
html body main > section#presidents .pres-kick:not(#_):not(#_) {
  position: relative; display: block; margin: 0 auto; padding: 0; z-index: 0;
  font-family: "Reem Kufi", sans-serif; font-weight: 700; letter-spacing: .01em; line-height: .9; white-space: nowrap;
  font-size: clamp(3.6rem, 12.5vw, 9rem); font-variant-numeric: lining-nums tabular-nums;
  color: transparent; -webkit-text-stroke: 1.2px rgba(242, 196, 107, .34);
  /* remplissage presque invisible + bande de lumière (hors champ au repos) */
  background: linear-gradient(105deg, rgba(242, 196, 107, 0) 40%, rgba(255, 228, 160, .55) 50%, rgba(242, 196, 107, 0) 60%) -150% 0 / 250% 100% no-repeat,
              linear-gradient(180deg, rgba(242, 196, 107, .10), rgba(242, 196, 107, .02) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, .25) 100%);
}
html body main > section#presidents .pres-kick:not(#_):not(#_)::before, html body main > section#presidents .pres-kick:not(#_):not(#_)::after { display: none; }
html body main > section#presidents .pres-kick .dash { font-weight: 500; -webkit-text-stroke-width: 1px; padding-inline: .06em; }
/* le titre remonte sur le bas des grandes années */
html body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_) {
  position: relative; z-index: 1; margin: clamp(10px, 1.4vw, 22px) 0 0 !important;
  font-size: clamp(2.3rem, 4.6vw, 4rem) !important; line-height: 1.12 !important; color: #fff8e6 !important;
  text-shadow: 0 8px 34px rgba(4, 12, 26, .85), 0 2px 6px rgba(4, 12, 26, .5); text-wrap: balance;
}
html body main > section#presidents .pres-head h2:not(#_) .tl { display: inline !important; padding: 0 !important; margin: 0 !important; translate: none !important; }
html body:not(#_) main > section#presidents:not(#_):not(#_):not(#_) .pres-head h2:not(#_) .tl .tw { color: #fff8e6 !important; }
html body main > section#presidents .pres-hand { display: none !important; }
html body main > section#presidents .pres-sub:not(#_):not(#_) {
  position: relative; z-index: 1; margin: 16px auto 0 !important; max-width: 520px; font-size: 1rem; line-height: 1.75; text-wrap: balance; color: rgba(255, 255, 255, .64) !important;
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-seen .pres-kick:not(#_):not(#_) { animation: presSheen 2.6s cubic-bezier(.45, .05, .2, 1) .2s 1 both; }
  @keyframes presSheen { from { background-position: -150% 0, 0 0; } to { background-position: 250% 0, 0 0; } }
}
@media (max-width: 560px) {
  html body main > section#presidents .pres-kick:not(#_):not(#_) { -webkit-text-stroke-width: 1px; }
  html body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_) { font-size: clamp(2rem, 8.8vw, 2.4rem) !important; margin-top: 8px !important; }
  html body main > section#presidents.pres:not(#_):not(#_):not(#_) { padding-top: 76px !important; }
}

/* Présidents, en-tête (finition) :
   - les chiffres gravés : contour d'or + remplissage d'or qui s'efface vers le bas (relief), tiret remplacé par un fil d'or
   - une lumière de scène tombe du satin sur le titre
   - entrée : les années sortent du flou en se resserrant, puis le titre, puis la phrase (une seule fois)
   - profondeur : les années glissent un peu moins vite que la page (transform seul, fluide) */
html body main > section#presidents .pres-head:not(#_)::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -140px; width: min(1100px, 120vw); height: 620px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(46% 52% at 50% 34%, rgba(255, 228, 175, .11), rgba(255, 228, 175, .04) 45%, rgba(255, 228, 175, 0) 72%);
}
html body main > section#presidents .pres-kick:not(#_):not(#_) {
  -webkit-text-stroke: 1.1px rgba(242, 196, 107, .42);
  background: linear-gradient(105deg, rgba(242, 196, 107, 0) 40%, rgba(255, 232, 170, .6) 50%, rgba(242, 196, 107, 0) 60%) -150% 0 / 250% 100% no-repeat,
              linear-gradient(180deg, rgba(246, 210, 126, .26) 0%, rgba(242, 196, 107, .08) 48%, rgba(242, 196, 107, 0) 82%);
  -webkit-background-clip: text; background-clip: text;
  transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}
html body main > section#presidents .pres-kick .dash {
  display: inline-block; width: .42em; height: .04em; margin: 0 .14em; vertical-align: .3em; border-radius: 1px;
  background: linear-gradient(90deg, rgba(242, 196, 107, 0), rgba(242, 196, 107, .8), rgba(242, 196, 107, 0)) !important; -webkit-text-stroke: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-intro .pres-kick:not(#_):not(#_),
  html body main > section#presidents.pres-intro .pres-head h2:not(#_),
  html body main > section#presidents.pres-intro .pres-sub:not(#_),
  html body main > section#presidents.pres-intro .pres-head::before { transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), translate 1.2s cubic-bezier(.22, 1, .36, 1), filter 1.2s cubic-bezier(.22, 1, .36, 1), letter-spacing 1.6s cubic-bezier(.22, 1, .36, 1); }
  html body main > section#presidents.pres-intro:not(.pres-seen) .pres-kick:not(#_):not(#_) { opacity: 0; translate: 0 26px; filter: blur(10px); letter-spacing: .12em; }
  html body main > section#presidents.pres-intro:not(.pres-seen) .pres-head h2:not(#_) { opacity: 0; translate: 0 18px; }
  html body main > section#presidents.pres-intro:not(.pres-seen) .pres-sub:not(#_) { opacity: 0; translate: 0 12px; }
  html body main > section#presidents.pres-intro:not(.pres-seen) .pres-head::before { opacity: 0; }
  html body main > section#presidents.pres-intro.pres-seen .pres-head h2:not(#_) { transition-delay: .35s; }
  html body main > section#presidents.pres-intro.pres-seen .pres-sub:not(#_) { transition-delay: .55s; }
  html body main > section#presidents.pres-seen .pres-kick:not(#_):not(#_) { animation-delay: .9s !important; }
}

/* =====================================================================
   Présidents : passe de finition (rythme, typographie, couleurs, effets)
   - chaque mandat se lit comme un cadran : « 20 » en petit au-dessus, les deux chiffres en grand, en serif doré
     (dorure dégradée), le nom en crème
   - toutes les rangées ont la même hauteur ; moins de vide sous la liste
   - 2026 n'est plus une boîte : un médaillon lumineux sur le fil qui respire doucement, et l'année en or plein
   - au survol (souris), le mandat se soulève d'un rien et son nœud s'illumine
   ===================================================================== */
html body main > section#presidents.pres:not(#_):not(#_) { padding-bottom: clamp(64px, 6.5vw, 104px) !important; }
html body main > section#presidents .pres-head:not(#_) { margin-bottom: clamp(36px, 4vw, 60px); }
html body main > section#presidents .pres-list:not(#_) { grid-auto-rows: 1fr; }
html body main > section#presidents .pres-list:not(#_) li { padding: 40px 4px clamp(30px, 3vw, 42px); gap: 8px; justify-content: flex-start; }

/* l'année en cadran */
html body main > section#presidents .pres-list:not(#_) .pres-y {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(2.3rem, 3vw, 3rem); line-height: .95; letter-spacing: -.01em;
  font-variation-settings: "opsz" 144; font-variant-numeric: lining-nums;
  color: transparent; background: linear-gradient(180deg, #fff0c8 0%, #f2c46b 48%, #c8902f 100%); -webkit-background-clip: text; background-clip: text;
  text-shadow: none;
}
html body main > section#presidents .pres-list:not(#_) .pres-y i {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 700; font-size: .62rem; letter-spacing: .42em; line-height: 1;
  padding-inline-start: .42em; color: rgba(242, 196, 107, .7); -webkit-text-fill-color: rgba(242, 196, 107, .7);
}
html body main > section#presidents .pres-list:not(#_) .pres-n {
  font-weight: 600; font-size: .94rem; letter-spacing: .005em; color: #f4ecdc; max-width: 15ch;
}
/* éteint (avant le passage de la braise) */
html body main > section#presidents.pres-live .pres-list:not(#_) li:not(.lit) .pres-y { background: linear-gradient(180deg, rgba(242, 196, 107, .34), rgba(242, 196, 107, .16)); -webkit-background-clip: text; background-clip: text; }
html body main > section#presidents.pres-live .pres-list:not(#_) li:not(.lit) .pres-y i { color: rgba(242, 196, 107, .25); -webkit-text-fill-color: rgba(242, 196, 107, .25); }
html body main > section#presidents.pres-live .pres-list:not(#_) li:not(.lit) .pres-n { color: rgba(244, 236, 220, .38); }
html body main > section#presidents .pres-list:not(#_) .pres-y, html body main > section#presidents .pres-list:not(#_) .pres-n { transition: color .6s ease, opacity .6s ease, translate .5s cubic-bezier(.22, 1, .36, 1); }

/* le nœud qui s'allume : un anneau s'ouvre une fois au passage de la braise */
html body main > section#presidents .pres-list:not(#_) .pres-dot::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid rgba(242, 196, 107, .7); opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-live .pres-list:not(#_) li.lit .pres-dot::after { animation: presRing 1.1s cubic-bezier(.22, 1, .36, 1) 1; }
  @keyframes presRing { 0% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: 3.2; } }
}

/* 2026 : médaillon sur le fil, sans boîte */
html body main > section#presidents .pres-list:not(#_) li.pres-now::after { display: none !important; }
html body main > section#presidents .pres-list:not(#_) li.pres-now::before {
  display: block !important; content: ""; position: absolute; z-index: -1; left: 50%; top: -30px; width: 210px; height: 210px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 130, .26), rgba(255, 214, 130, .08) 55%, rgba(255, 214, 130, 0)); transform: none; right: auto;
  opacity: 1; transition: opacity .8s ease;
}
html body main > section#presidents.pres-live .pres-list:not(#_) li.pres-now:not(.lit)::before { opacity: 0; }
html body main > section#presidents .pres-list:not(#_) .pres-now .pres-dot { width: 22px; height: 22px; margin-left: -11px; top: -1px; background: radial-gradient(circle at 35% 30%, #fff4d6, #f2c46b 55%, #c98f2e); border: 0; }
html body main > section#presidents.pres-live .pres-list:not(#_) .pres-now.lit .pres-dot { box-shadow: 0 0 0 6px rgba(242, 196, 107, .16), 0 0 30px 6px rgba(255, 205, 110, .6); }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-live .pres-list:not(#_) .pres-now.lit .pres-dot { animation: presBreath 3.6s ease-in-out .8s infinite; }
  @keyframes presBreath { 0%, 100% { box-shadow: 0 0 0 6px rgba(242, 196, 107, .16), 0 0 26px 4px rgba(255, 205, 110, .5); } 50% { box-shadow: 0 0 0 11px rgba(242, 196, 107, .08), 0 0 40px 10px rgba(255, 205, 110, .7); } }
}
html body main > section#presidents .pres-list:not(#_) .pres-now .pres-y { color: transparent; background: linear-gradient(180deg, #fff6dc 0%, #ffd27a 50%, #e5a43a 100%); -webkit-background-clip: text; background-clip: text; margin-top: 0; }
html body main > section#presidents .pres-list:not(#_) .pres-now .pres-y i { color: #f6d27e; -webkit-text-fill-color: #f6d27e; }
html body main > section#presidents .pres-list:not(#_) .pres-now .pres-n { color: #fff8e6; font-weight: 700; }
html body main > section#presidents .pres-list:not(#_) .pres-tag { margin-top: 6px; background: linear-gradient(160deg, #f8d988, #e2a840); color: #09182f; box-shadow: 0 8px 20px -10px rgba(242, 196, 107, .8); }

/* survol à la souris : le mandat se soulève d'un rien */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body main > section#presidents .pres-list:not(#_) li:hover .pres-y, html body main > section#presidents .pres-list:not(#_) li:hover .pres-n { translate: 0 -3px; }
  html body main > section#presidents .pres-list:not(#_) li.lit:hover .pres-dot { box-shadow: 0 0 0 6px rgba(242, 196, 107, .18), 0 0 22px rgba(242, 196, 107, .8); }
}

@media (max-width: 560px) {
  html body main > section#presidents .pres-list:not(#_) { grid-auto-rows: auto; }
  html body main > section#presidents .pres-list:not(#_) li { padding: 30px 0 16px; gap: 4px; }
  html body main > section#presidents .pres-list:not(#_) .pres-y { font-size: 1.9rem; }
  html body main > section#presidents .pres-list:not(#_) .pres-y i { font-size: .52rem; letter-spacing: .34em; padding-inline-start: .34em; }
  html body main > section#presidents .pres-list:not(#_) .pres-n { font-size: .78rem; }
  html body main > section#presidents .pres-list:not(#_) li.pres-now::before { width: 150px; height: 150px; top: -22px; }
  html body main > section#presidents .pres-list:not(#_) .pres-tag { font-size: .6rem; }
}

/* Jointure bureau (crème) → présidents (bleu nuit) : pas de ligne droite ni de second drapé (le pied de page a déjà le sien).
   Le bloc bleu nuit remonte un peu sur le crème avec de grands coins arrondis et une ombre douce, comme les autres grands blocs. */
html body main > section#presidents.pres:not(#_):not(#_):not(#_) {
  margin-top: calc(-1 * clamp(36px, 4vw, 64px)) !important; z-index: 3 !important;
  border-radius: clamp(32px, 4vw, 64px) clamp(32px, 4vw, 64px) 0 0;
  box-shadow: 0 -24px 60px -30px rgba(9, 24, 47, .35);
}

/* Pied de page : trait presque noir sous le drapé. Le drapé est en « multiply » (pour fondre son blanc dans la page) et
   chevauchait le haut du pied de page de quelques pixels : bleu nuit × bleu nuit = noir. Le pied de page commence
   maintenant exactement sous le drapé, sans chevauchement. */
html body footer.footer.fy.fy-sara:not(#_):not(#_) { margin-top: 0 !important; }

/* Pied de page, drapé vivant : le satin respire très lentement (il se soulève d'un rien) et un reflet de lumière glisse
   sur les plis. Transform et position de fond uniquement (fluide) ; arrêté si l'on réduit les animations. */
@media (prefers-reduced-motion: no-preference) {
  .fy-drape img { transform-origin: 50% 0; animation: fyBreath 9s ease-in-out infinite alternate; will-change: transform; }
  @keyframes fyBreath { from { transform: scale(1, 1); } to { transform: scale(1.015, 1.07); } }
  .fy-drape::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(100deg, rgba(120, 170, 255, 0) 38%, rgba(140, 185, 255, .22) 48%, rgba(220, 235, 255, .28) 50%, rgba(140, 185, 255, .22) 52%, rgba(120, 170, 255, 0) 62%) 0 0 / 300% 100% no-repeat;
    animation: fySheen 11s cubic-bezier(.45, .05, .55, .95) infinite;
  }
  @keyframes fySheen { 0% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }
}
.fy-drape::after { z-index: 2; }
.fy-drape { overflow: hidden; }   /* le satin qui respire ne déborde jamais sur le pied de page */

/* Présidents : plus de tiret entre les années, un simple espace d'air. */
html body main > section#presidents .pres-kick .gap { display: inline-block; width: .5em; }
/* filet de sécurité : tant que les fonds de la section ne sont pas chargés (fonds différés), les chiffres dorés
   (texte rempli par un dégradé) restent lisibles en or plein au lieu d'être invisibles */
html.bg-defer body main > section#presidents:not(.near):not(#_):not(#_):not(#_) :is(.pres-y, .pres-kick) { color: #f2c46b !important; -webkit-text-fill-color: #f2c46b; }

/* Présidents : l'année sur une seule ligne (« 2009 » en entier, plus de « 20 » posé au-dessus), même dorure partout */
html body main > section#presidents .pres-list:not(#_):not(#_) .pres-y { display: block; font-size: clamp(2rem, 2.5vw, 2.6rem); line-height: 1; letter-spacing: 0; }
html body main > section#presidents .pres-list:not(#_):not(#_) .pres-y i {
  font: inherit; letter-spacing: inherit; padding: 0; color: transparent; -webkit-text-fill-color: transparent;
}
html.bg-defer body main > section#presidents:not(.near):not(#_):not(#_):not(#_) .pres-y i { color: #f2c46b !important; -webkit-text-fill-color: #f2c46b; }
@media (max-width: 560px) { html body main > section#presidents .pres-list:not(#_):not(#_) .pres-y { font-size: 1.35rem; } }

/* Présidents : juste milieu entre le contour fantôme (trop pâle) et la dorure pleine (trop voyante) :
   « 2009 2026 » rempli d'un champagne doux et mat, sans halo ; les mandats pas encore atteints un peu moins délavés. */
html body main > section#presidents .pres-kick:not(#_):not(#_):not(#_):not(#_) {
  -webkit-text-stroke: .8px rgba(242, 210, 150, .28); -webkit-mask-image: none; mask-image: none;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 244, 215, .35) 50%, rgba(255, 255, 255, 0) 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, rgba(250, 232, 196, .34) 0%, rgba(232, 200, 140, .22) 60%, rgba(232, 200, 140, .12) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: none;
}
html body main > section#presidents.pres-live .pres-list:not(#_):not(#_) li:not(.lit) .pres-y { background: linear-gradient(180deg, rgba(242, 210, 150, .5), rgba(226, 180, 100, .34)); -webkit-background-clip: text; background-clip: text; }
html body main > section#presidents.pres-live .pres-list:not(#_):not(#_) li:not(.lit) .pres-n { color: rgba(244, 236, 220, .55); }

/* Présidents : les « ripples » JCI (anneaux en arcs, couleurs officielles) sortent du bord de la section, comme les cernes
   d'un arbre : un anneau par saison de la chambre. Ils s'ouvrent du centre vers l'extérieur quand on arrive,
   puis tournent très lentement. Discrets (opacité réduite) pour laisser la place aux années et aux noms. */
html body main > section#presidents .pres-rip {
  position: absolute; z-index: 0; pointer-events: none; width: clamp(420px, 46vw, 720px); aspect-ratio: 1;
  inset-inline-end: calc(-1 * clamp(210px, 23vw, 360px)); top: clamp(-120px, -6vw, -40px); opacity: .5;
}
html body main > section#presidents .pres-rip .rp { stroke-linecap: butt; }
html body main > section#presidents :is(.pres-head, .pres-board) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-intro .pres-rip .rp { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.22, 1, .36, 1) calc(var(--n) * 70ms); }
  html body main > section#presidents.pres-intro.pres-seen .pres-rip .rp { stroke-dashoffset: 0; }
  html body main > section#presidents .pres-rip > g { transform-origin: 0 0; animation: presRipTurn 140s linear infinite; }
  @keyframes presRipTurn { to { transform: rotate(360deg); } }
}
@media (max-width: 560px) {
  html body main > section#presidents .pres-rip { width: 340px; inset-inline-end: -170px; top: -60px; opacity: .4; }
}
/* « 2009 2026 » dans la même serif que les années de la liste (Fraunces), plus fine et plus élégante */
html body main > section#presidents .pres-kick:not(#_):not(#_):not(#_):not(#_) {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-variation-settings: "opsz" 144; letter-spacing: -.02em;
  font-variant-numeric: lining-nums; font-size: clamp(4rem, 13vw, 9.5rem); line-height: .95;
}

/* Présidents : ripples plus petits et plus légers, cantonnés au coin haut (ils ne descendent plus sur la liste) ;
   « 2009 2026 » un peu plus chaud (le champagne tirait sur le gris) */
html body main > section#presidents .pres-rip:not(#_) { width: clamp(300px, 30vw, 480px); inset-inline-end: calc(-1 * clamp(150px, 15vw, 240px)); top: calc(-1 * clamp(110px, 11vw, 180px)); opacity: .34; }
@media (max-width: 560px) { html body main > section#presidents .pres-rip:not(#_) { width: 260px; inset-inline-end: -130px; top: -110px; opacity: .3; } }
html body main > section#presidents .pres-kick:not(#_):not(#_):not(#_):not(#_) {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 244, 215, .35) 50%, rgba(255, 255, 255, 0) 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, rgba(250, 222, 160, .46) 0%, rgba(232, 188, 112, .3) 60%, rgba(226, 176, 96, .16) 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* Présidents : composition éditoriale. « 2009 » en haut, décalé vers un côté ; « 2026 » plus bas, décalé vers l'autre ;
   le titre se glisse entre les deux et passe par-dessus les chiffres (halo bleu nuit pour rester lisible).
   Les années gardent leur remplissage champagne (copié sur chaque bloc). */
html body main > section#presidents .pres-kick:not(#_):not(#_):not(#_):not(#_) {
  display: flex; justify-content: center; align-items: flex-start; gap: .1em; direction: ltr;
  background: none !important; -webkit-text-stroke: 0; color: inherit;
  padding-bottom: .38em;
}
html body main > section#presidents .pres-kick .ky {
  display: block; position: relative; color: transparent; -webkit-text-stroke: .8px rgba(242, 210, 150, .28);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 244, 215, .35) 50%, rgba(255, 255, 255, 0) 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, rgba(250, 222, 160, .46) 0%, rgba(232, 188, 112, .3) 60%, rgba(226, 176, 96, .16) 100%);
  -webkit-background-clip: text; background-clip: text;
}
html body main > section#presidents .pres-kick .ky1 { inset-inline-start: -.32em; }
html body main > section#presidents .pres-kick .ky2 { top: .38em; inset-inline-start: .32em; }
/* le titre remonte entre les deux années et les chevauche */
html body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_):not(#_) {
  margin-top: calc(-1 * clamp(64px, 7.4vw, 112px)) !important;
  text-shadow: 0 0 28px rgba(9, 24, 47, .95), 0 0 10px rgba(9, 24, 47, .85), 0 2px 4px rgba(9, 24, 47, .6);
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-seen .pres-kick:not(#_):not(#_):not(#_):not(#_) { animation: none !important; }
  html body main > section#presidents.pres-seen .pres-kick .ky { animation: presSheen 2.6s cubic-bezier(.45, .05, .2, 1) 1s 1 both; }
  html body main > section#presidents.pres-seen .pres-kick .ky2 { animation-delay: 1.25s; }
  /* entrée : chaque année glisse depuis son côté */
  html body main > section#presidents.pres-intro .pres-kick .ky { transition: translate 1.3s cubic-bezier(.22, 1, .36, 1), opacity 1.1s ease; }
  html body main > section#presidents.pres-intro:not(.pres-seen) .pres-kick .ky1 { translate: -40px 0; opacity: 0; }
  html body main > section#presidents.pres-intro:not(.pres-seen) .pres-kick .ky2 { translate: 40px 0; opacity: 0; }
}
@media (max-width: 560px) {
  html body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_):not(#_) { margin-top: -30px !important; }
  html body main > section#presidents .pres-kick .ky1 { inset-inline-start: -.18em; }
  html body main > section#presidents .pres-kick .ky2 { inset-inline-start: .18em; }
}

/* Présidents, composition : le titre ne se mêle plus aux chiffres. Les deux années s'écartent davantage et s'estompent
   là où le titre passe (bas de 2009, haut de 2026) : il traverse un espace d'air, les chiffres restent lisibles. */
html body main > section#presidents .pres-kick .ky1 { inset-inline-start: -.55em; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, .12) 92%); mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, .12) 92%); }
html body main > section#presidents .pres-kick .ky2 { inset-inline-start: .55em; top: .5em; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .12) 6%, #000 52%, #000 100%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .12) 6%, #000 52%, #000 100%); }
html body main > section#presidents .pres-kick:not(#_):not(#_):not(#_):not(#_) { padding-bottom: .5em; }
html body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_):not(#_) { margin-top: calc(-1 * clamp(92px, 10vw, 150px)) !important; }
@media (max-width: 560px) {
  html body main > section#presidents .pres-kick .ky1 { inset-inline-start: -.22em; }
  html body main > section#presidents .pres-kick .ky2 { inset-inline-start: .22em; }
  html body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_):not(#_) { margin-top: -46px !important; }
}
html body main > section#presidents .pres-sub:not(#_):not(#_):not(#_) { margin-top: clamp(40px, 4.6vw, 70px) !important; }
@media (max-width: 560px) { html body main > section#presidents .pres-sub:not(#_):not(#_):not(#_) { margin-top: 28px !important; } }

/* Présidents : second ripple JCI en rappel, en bas à gauche (en arabe, juste derrière 2026, l'année en cours).
   Plus petit, tourné d'un quart pour ne pas être la copie du premier, et il tourne dans l'autre sens. */
html body main > section#presidents .pres-rip.pres-rip2:not(#_) {
  top: auto; bottom: calc(-1 * clamp(130px, 13vw, 210px)); inset-inline: auto; left: calc(-1 * clamp(130px, 13vw, 210px));
  width: clamp(260px, 26vw, 420px); opacity: .28; rotate: 90deg;
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents .pres-rip2 > g { animation-direction: reverse; animation-duration: 170s; }
  html body main > section#presidents.pres-intro .pres-rip2 .rp { transition-delay: calc(.6s + var(--n) * 70ms); }
}
@media (max-width: 560px) {
  html body main > section#presidents .pres-rip.pres-rip2:not(#_) { width: 220px; left: -110px; bottom: -110px; opacity: .24; }
}
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-intro .pres-rip2 .rp { stroke-dashoffset: 1; transition-delay: calc(.2s + var(--n) * 70ms); }
  html body main > section#presidents.pres-intro.pres-end .pres-rip2 .rp { stroke-dashoffset: 0; }
}
html body main > section#presidents .pres-rip.pres-rip2:not(#_):not(#_) { bottom: calc(-1 * clamp(60px, 6vw, 110px)); left: calc(-1 * clamp(150px, 15vw, 230px)); width: clamp(300px, 30vw, 460px); opacity: .32; }
@media (max-width: 560px) { html body main > section#presidents .pres-rip.pres-rip2:not(#_):not(#_) { width: 230px; left: -120px; bottom: -60px; opacity: .26; } }
/* second ripple : de l'autre côté, en diagonale du premier (bas à droite en arabe, bas à gauche en français / anglais) */
html body main > section#presidents .pres-rip.pres-rip2:not(#_):not(#_) { left: auto; right: auto; inset-inline-start: calc(-1 * clamp(150px, 15vw, 230px)); }
@media (max-width: 560px) { html body main > section#presidents .pres-rip.pres-rip2:not(#_):not(#_) { left: auto; right: auto; inset-inline-start: -120px; } }
/* second ripple : entièrement au-dessus du bas de la section (plus de coupe droite contre le crème), coupé seulement par le côté */
html body main > section#presidents .pres-rip.pres-rip2:not(#_):not(#_):not(#_) { bottom: clamp(24px, 3vw, 48px); width: clamp(280px, 26vw, 400px); inset-inline-start: calc(-1 * clamp(140px, 13vw, 200px)); }
@media (max-width: 560px) { html body main > section#presidents .pres-rip.pres-rip2:not(#_):not(#_):not(#_) { width: 200px; bottom: 16px; inset-inline-start: -100px; } }

/* Présidents, espacements : chaque rangée prenait la hauteur de la plus haute (182 px) alors que le contenu en occupe ~100 :
   ~80 px de vide sous chaque nom. Rangées à hauteur de leur contenu (minimum régulier), moins de vide en bas de section. */
html body main > section#presidents .pres-list:not(#_):not(#_) { grid-auto-rows: minmax(clamp(132px, 11vw, 150px), auto); }
html body main > section#presidents .pres-list:not(#_):not(#_) li { padding-bottom: 22px; }
html body main > section#presidents.pres:not(#_):not(#_):not(#_) { padding-bottom: clamp(48px, 5vw, 72px) !important; }
@media (max-width: 560px) {
  html body main > section#presidents .pres-list:not(#_):not(#_) { grid-auto-rows: auto; }
  html body main > section#presidents .pres-list:not(#_):not(#_) li { padding-bottom: 14px; }
}

/* Présidents → « نحن نعتقد » : le bloc suivant a de grands coins arrondis qui remontent sur le bleu nuit, mais la section
   des présidents passait par-dessus (ligne droite). Il repasse devant ; un peu moins de vide sous 2026. */
html body main > section#history.history:not(#_):not(#_) { z-index: 4 !important; }
html body main > section#presidents.pres:not(#_):not(#_):not(#_):not(#_) { padding-bottom: clamp(56px, 5vw, 76px) !important; }

/* Présidents, ripples (direction artistique) : l'or du site au lieu du jaune vif (qui virait à l'olive sur le bleu nuit),
   bleu marine éclairci ; les anneaux extérieurs se fondent dans le satin au lieu d'être coupés net ;
   ils tournent un peu au défilement (--rot, sens opposés), en plus de leur lente rotation. */
html body main > section#presidents .pres-rip {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 52%, rgba(0, 0, 0, .35) 66%, rgba(0, 0, 0, 0) 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 52%, rgba(0, 0, 0, .35) 66%, rgba(0, 0, 0, 0) 74%);
  transform: rotate(var(--rot, 0deg)); will-change: transform;
}
html body main > section#presidents .pres-rip:not(.pres-rip2):not(#_) { opacity: .42; }
html body main > section#presidents .pres-rip.pres-rip2:not(#_):not(#_):not(#_):not(#_) { opacity: .38; }

/* Présidents, couleurs : les grandes années tiraient sur le brun (or peu opaque sur bleu nuit = boueux).
   Dégradé plus lumineux et moins saturé : ivoire en haut, or doux au milieu, reflet bleuté en bas (le satin s'y reflète).
   Fond : une lueur bleu profond derrière l'en-tête, pour une profondeur de velours au lieu d'un aplat. */
html body main > section#presidents .pres-kick .ky {
  -webkit-text-stroke: .7px rgba(255, 236, 200, .22);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 248, 228, .45) 50%, rgba(255, 255, 255, 0) 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 245, 225, .5) 0%, rgba(246, 216, 160, .36) 45%, rgba(214, 186, 140, .2) 75%, rgba(150, 180, 230, .16) 100%);
  -webkit-background-clip: text; background-clip: text;
}
html body main > section#presidents .pres-head:not(#_)::before {
  background:
    radial-gradient(50% 55% at 50% 40%, rgba(40, 92, 160, .32), rgba(40, 92, 160, 0) 70%),
    radial-gradient(40% 40% at 50% 35%, rgba(255, 226, 170, .08), rgba(255, 226, 170, 0) 70%) !important;
}
html body main > section#presidents .pres-sub:not(#_):not(#_):not(#_):not(#_) { color: rgba(240, 232, 216, .72) !important; }
html body main > section#presidents.pres-live .pres-list:not(#_):not(#_) li:not(.lit) .pres-y { background: linear-gradient(180deg, rgba(255, 240, 210, .46), rgba(226, 190, 130, .3)); -webkit-background-clip: text; background-clip: text; }

/* Présidents : les noms passent au premier plan. Plus grands, plus gras, blanc chaud avec une lueur légère ;
   l'année devient l'appui (un peu plus petite, au-dessus). Les noms pas encore atteints restent bien lisibles. */
html body main > section#presidents .pres-list:not(#_):not(#_) .pres-n {
  font-size: clamp(1.04rem, 1.3vw, 1.22rem); font-weight: 700; letter-spacing: .005em; line-height: 1.28; max-width: 14ch;
  color: #fff8ec; text-shadow: 0 0 18px rgba(255, 226, 170, .18), 0 2px 8px rgba(4, 12, 26, .5);
}
html body main > section#presidents .pres-list:not(#_):not(#_) .pres-y { font-size: clamp(1.6rem, 2vw, 2.05rem); }
html body main > section#presidents .pres-list:not(#_):not(#_) li { gap: 6px; }
html body main > section#presidents.pres-live .pres-list:not(#_):not(#_):not(#_) li:not(.lit) .pres-n { color: rgba(255, 248, 236, .66); text-shadow: none; }
html body main > section#presidents .pres-list:not(#_):not(#_) .pres-now .pres-n { font-size: clamp(1.12rem, 1.4vw, 1.3rem); color: #fff; text-shadow: 0 0 22px rgba(255, 214, 130, .4); }
@media (max-width: 560px) {
  html body main > section#presidents .pres-list:not(#_):not(#_) .pres-n { font-size: .86rem; line-height: 1.25; }
  html body main > section#presidents .pres-list:not(#_):not(#_) .pres-y { font-size: 1.2rem; }
  html body main > section#presidents .pres-list:not(#_):not(#_) .pres-now .pres-n { font-size: .92rem; }
}

/* Présidents, effets de la liste :
   - au passage de la braise, le nom sort d'un léger flou et se pose (au lieu de seulement s'éclairer)
   - au survol (souris), un halo doré doux s'allume derrière le mandat */
@media (prefers-reduced-motion: no-preference) {
  html body main > section#presidents.pres-live .pres-list:not(#_):not(#_):not(#_) li .pres-n { transition: color .6s ease, filter .7s ease, translate .7s cubic-bezier(.22, 1, .36, 1), text-shadow .8s ease; }
  html body main > section#presidents.pres-live .pres-list:not(#_):not(#_):not(#_) li:not(.lit) .pres-n { filter: blur(1.2px); translate: 0 5px; }
  html body main > section#presidents.pres-live .pres-list:not(#_):not(#_):not(#_) li.lit .pres-n { filter: none; translate: 0 0; }
}
html body main > section#presidents .pres-list:not(#_):not(#_) li:not(.pres-now)::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 18px; width: 170px; height: 150px; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .14), rgba(255, 214, 140, 0)); opacity: 0; transition: opacity .45s ease;
}
@media (hover: hover) {
  html body main > section#presidents .pres-list:not(#_):not(#_) li.lit:hover::after { opacity: 1; }
  html body main > section#presidents .pres-list:not(#_):not(#_) li.lit:hover .pres-n { text-shadow: 0 0 22px rgba(255, 220, 150, .45), 0 2px 8px rgba(4, 12, 26, .5); }
}

/* Téléphone : en français / anglais le titre tient sur deux lignes et recouvrait presque « 2026 » : il se pose juste
   sous les années (léger chevauchement seulement). Le flou des noms pas encore atteints est retiré (sur petit écran il
   ressemblait à un défaut d'affichage) ; le nom remonte toujours en place. */
@media (max-width: 560px) {
  html:not([lang="ar"]) body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_):not(#_) { margin-top: -10px !important; font-size: clamp(1.7rem, 7.6vw, 2rem) !important; }
  html body main > section#presidents.pres-live .pres-list:not(#_):not(#_):not(#_) li:not(.lit) .pres-n { filter: none; }
}
/* très petits écrans (≤ 380 px) : « 2009 2026 » un peu plus petit pour ne pas toucher les bords */
@media (max-width: 380px) {
  html body main > section#presidents .pres-kick:not(#_):not(#_):not(#_):not(#_) { font-size: 3.4rem; }
  html body main > section#presidents .pres-kick .ky1 { inset-inline-start: -.1em; }
  html body main > section#presidents .pres-kick .ky2 { inset-inline-start: .1em; }
}
@media (max-width: 380px) {
  html body main > section#presidents .pres-kick:not(#_):not(#_):not(#_):not(#_) { font-size: 14vw; }
  html body main > section#presidents .pres-kick .ky1, html body main > section#presidents .pres-kick .ky2 { inset-inline-start: 0; }
}

/* Pied de page (téléphone surtout) : fine ligne claire à la jointure drapé / pied de page, due à une position à
   virgule (le drapé et le pied de page se touchent à 0,24 px près). Le pied de page passe devant le drapé et le
   recouvre de 2 px : la jointure tombe dans le bleu nuit plein. */
html body footer.footer.fy.fy-sara:not(#_):not(#_):not(#_) { margin-top: -2px !important; z-index: 10 !important; }
/* jointure drapé / pied de page : le pied de page commence à une position à virgule et la rangée de pixels partagée
   ressortait plus claire. Un liseré bleu nuit plein de 4 px au-dessus du pied de page recouvre cette rangée. */
html body footer.footer.fy.fy-sara:not(#_):not(#_):not(#_) { box-shadow: 0 -4px 0 0 #09182f !important; }
/* crédit du pied de page sur petit téléphone : il dépassait le bord droit de 8 px (anglais, 320 px) */
html body footer .fy-copy:not(#_) { min-width: 0; flex: 0 1 100%; max-width: 100%; box-sizing: border-box; }
html body footer .fy-copy .fy-made:not(#_) { max-width: 100%; text-wrap: balance; }
@media (max-width: 560px) { html body footer .fy-bar:not(#_):not(#_) { grid-template-columns: minmax(0, 1fr) !important; } }
/* pied de page, téléphone : les liens « Espace membres / Administration / jci.cc » dépassaient (une seule ligne de 347 px) */
@media (max-width: 560px) { html body footer .fy-links:not(#_) { flex-wrap: wrap; justify-content: center; row-gap: 8px; max-width: 100%; } }
/* téléphone : le dernier pli clair du drapé passait sous le voile encore transparent et formait une ligne juste au-dessus
   du pied de page ; le voile bleu nuit couvre plus haut et devient plein plus tôt */
@media (max-width: 560px) {
  .fy-drape::after { height: 62% !important; background: linear-gradient(180deg, rgba(9, 24, 47, 0) 0%, rgba(9, 24, 47, .8) 45%, #09182f 70%) !important; }
}

/* Téléphone : hauteur provisoire des sections pas encore dessinées (content-visibility) proche de leur vraie hauteur
   (900 px partout auparavant : -180 / +147 / +274 / +78 px de correction au moment où elles apparaissent, ce qui faisait
   sauter la page quand on remontait après un saut par le menu ou le bouton « haut de page ») */
@media (max-width: 760px) {
  html body main > section#news:not(#_):not(#_) { contain-intrinsic-size: auto 720px; }
  html body main > section#trainings:not(#_):not(#_) { contain-intrinsic-size: auto 1050px; }
  html body main > section#history:not(#_):not(#_) { contain-intrinsic-size: auto 1180px; }
  html body main > section#faq:not(#_):not(#_) { contain-intrinsic-size: auto 980px; }
}

/* Présidents, français / anglais (ordinateur et tablette) : le titre est long et traversait les deux années de bout en bout.
   Il passe sur deux lignes courtes (« Nos présidents, / d'année en année ») et se loge dans l'espace entre 2009 et 2026 ;
   moins de vide avant la phrase. */
@media (min-width: 561px) {
  html:not([lang="ar"]) body:not(#_) main > section#presidents:not(#_):not(#_):not(#_):not(#_):not(#_) .pres-head h2:not(#_):not(#_) {
    max-width: 14.5ch; margin-inline: auto !important; font-size: clamp(2.2rem, 3.6vw, 3.5rem) !important; line-height: 1.08 !important;
    margin-top: calc(-1 * clamp(110px, 11.5vw, 170px)) !important;
  }
  html:not([lang="ar"]) body main > section#presidents .pres-sub:not(#_):not(#_):not(#_):not(#_) { margin-top: clamp(30px, 3.2vw, 48px) !important; }
}
/* Présidents, français / anglais sur grand écran : la phrase d'introduction sur une seule ligne */
@media (min-width: 1000px) {
  html:not([lang="ar"]) body main > section#presidents .pres-sub:not(#_):not(#_):not(#_):not(#_) { max-width: none; white-space: nowrap; text-wrap: nowrap; }
}

/* Actualités, petits téléphones (320 px) : le texte des cartes était plus large que la carte (295 px pour 236) et se faisait
   rogner, la rangée « Lire la suite · Photos » ne passant pas à la ligne. La colonne suit la largeur de la carte. */
html body main > section#news .nw-card:not(#_) { grid-template-columns: minmax(0, 1fr); }
html body main > section#news .nw-card .nw-acts:not(#_) { flex-wrap: wrap; row-gap: 6px; }
