﻿/* =====================================================================
   ELEVATE — couche finale de design (chargée en dernier)
   Principes :
   1. Une seule voix visuelle : blanc, encre marine, bleu JCI ; l'or réservé à l'action.
   2. Le rythme vient des sections (blanc / brume / marine), pas des décorations.
   3. Le verre seulement là où il a un sens : en-tête flottant, visionneuse, puces sur photo.
   4. Un seul moment fort au milieu de la page : la bande marine des événements phares.
   ===================================================================== */

:root {
  --ink: #0b2540;
  --ink-2: #3d5166;
  --muted: #64768a;
  --line: rgba(11, 37, 64, 0.1);
  --mist: #f3f6f9;
  --card-r: 20px;
  --lift: 0 1px 2px rgba(11, 37, 64, 0.04), 0 8px 24px -16px rgba(11, 37, 64, 0.18);
  --lift-hover: 0 1px 2px rgba(11, 37, 64, 0.05), 0 24px 48px -20px rgba(11, 37, 64, 0.28);
}

/* ---------- Fond : plus de taches de couleur flottantes ---------- */
body { background: #fff; color: var(--ink); }
.aura { display: none; }
.hero { background: radial-gradient(1200px 520px at 50% -10%, #e6f3fb 0%, rgba(230, 243, 251, 0) 70%), #fff; }

/* ---------- Rythme des sections ---------- */
main > section:not(.hero) { padding-block: clamp(84px, 10vw, 140px); position: relative; }
main > section.about, main > section.trainings, main > section.news, main > section.history, main > section.join { background: #fff; }
main > section.why, main > section.team, main > section.faq, main > section.contact { background: var(--mist); }

/* ---------- Titres de section : un seul modèle, aligné au début ---------- */
.section-head { display: block; margin-bottom: clamp(40px, 5vw, 60px); max-width: 760px; }
main h2, .section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; color: var(--ink); margin: 0 0 16px; font-weight: 800;
}
html:not([lang="ar"]) main h2 { letter-spacing: -0.025em; }
html[lang="ar"] main h2 { line-height: 1.3; }
.section-head p, .team-sub, .news-sub { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 58ch; margin: 0; }
main h3 { color: var(--ink); }

/* ---------- Cartes : surfaces blanches nettes, ombre douce, sans verre ---------- */
.pillars .area, .reach-item:not(.reach-here), .album, .mv-item, .creed, .faq-list,
.join-form, .contact-form, .partner, .news-grid .post, .lead-member {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--card-r);
  box-shadow: var(--lift) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.pillars .area, .reach-item, .album, .mv-item, .news-grid .post {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.pillars .area:hover, .reach-item:hover, .album:hover, .mv-item:hover, .news-grid .post:hover {
  transform: translateY(-3px); box-shadow: var(--lift-hover) !important;
}
/* plus de bordures de couleur en haut des cartes */
.pillars .area, .mv-item { border-top-width: 1px !important; border-top-color: var(--line) !important; }

/* ---------- Les 4 piliers : la couleur passe dans une fine barre latérale ---------- */
.pillars .area { padding: clamp(26px, 3vw, 36px); }
.pillars .area h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
.pillars .area::before { content: ""; position: absolute; inset-block: 28px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
html[dir="rtl"] .pillars .area::before { border-radius: 4px 0 0 4px; }
.pillars .area-tag { color: var(--accent) !important; font-weight: 700; }

/* ---------- Événements phares : la bande marine, moment fort de la page ---------- */
main > section.projects { background: var(--port); color: #fff; overflow: hidden; }
main > section.projects::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 400px at 85% 0%, rgba(0, 151, 215, 0.35), transparent 70%); }
.projects .wrap { position: relative; }
.projects h2, .projects .albums-title { color: #fff; }
.projects .showcase { gap: clamp(20px, 3vw, 36px); }
.show-tabs button {
  grid-template-columns: minmax(0, 1fr) !important; background: transparent !important; border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px !important; padding: 18px 20px !important; box-shadow: none !important; color: #fff;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.show-tabs button span { color: #fff !important; font-size: 1.08rem; }
.show-tabs button small { color: rgba(255, 255, 255, 0.62) !important; }
.show-tabs button:hover { border-color: rgba(255, 255, 255, 0.45) !important; transform: none; }
.show-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.6) !important; }
.show-tabs .tab-timer { background: var(--barque) !important; }
.show-panel { border-radius: 24px !important; min-height: 440px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.show-text h3 { font-size: clamp(1.8rem, 3vw, 2.6rem) !important; line-height: 1.15; }
.show-photos { align-self: flex-start; }
.projects .album { background: rgba(255, 255, 255, 0.06) !important; border-color: rgba(255, 255, 255, 0.14) !important; box-shadow: none !important; }
.projects .album-title { color: #fff; }
.projects .album-when { color: rgba(255, 255, 255, 0.62); }

/* ---------- Albums : titres de groupe sobres ---------- */
.albums-title { font-size: 1.15rem; font-weight: 700; margin: clamp(48px, 6vw, 72px) 0 18px; }
.albums { gap: 20px; }
.album { padding-bottom: 16px; }
.album-cover { margin-bottom: 12px; }

/* ---------- Formations : la couleur devient une pastille devant le titre ---------- */




/* ---------- Notre empreinte : cartes plus calmes ---------- */
.reach-list::before { opacity: 0.5; }
.reach-here { box-shadow: 0 30px 60px -30px rgba(0, 151, 215, 0.6); }

/* ---------- Mission / vision ---------- */
.mv-item h3 { color: var(--jci); }
.mv-text { color: var(--ink); }

/* ---------- Actualités ---------- */
.news-grid .post { padding: 0 0 20px !important; overflow: hidden; }
.news-grid .post img, .news-grid .post .post-ph { border-radius: 0; margin-bottom: 16px; }
.news-grid .post > *:not(img):not(.post-ph) { padding-inline: 20px !important; }
.news-grid .post .post-lvl { margin-inline: 20px; padding-inline: 11px !important; }

/* ---------- Boutons : une seule famille, en pilule ---------- */
.btn { border-radius: 999px; }
.cta-main { background: var(--barque) !important; color: var(--port) !important; box-shadow: 0 14px 30px -14px rgba(242, 169, 59, 0.8) !important; }
.cta-main:hover { box-shadow: 0 20px 38px -14px rgba(242, 169, 59, 0.95) !important; }

/* ---------- En-tête : plus discret, plus net ---------- */
.top { box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(11, 37, 64, 0.25) !important; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  main > section:not(.hero) { padding-block: 72px; }
  .show-panel { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pillars .area, .reach-item, .album, .mv-item, .news-grid .post { transition: none; }
}

/* ---------- Qui sommes-nous : texte + une seule photo, la nôtre ---------- */

.about-text h2 { margin-bottom: 20px; }
.about-lead { font-size: clamp(1.25rem, 2vw, 1.55rem) !important; line-height: 1.55; color: var(--ink) !important; font-weight: 600; margin: 0 0 18px; }
.about-text p:not(.about-lead) { color: var(--ink-2); line-height: 1.8; max-width: 52ch; }
.about-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--port);
  text-decoration: none; border-bottom: 2px solid var(--barque); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.about-link:hover { color: var(--jci); border-color: var(--jci); }
.about-photo { margin: 0; }

/* le bandeau « JCI Kélibia / Académie des Officiers » en bas de la photo est rogné */

.about-photo figcaption { margin-top: 14px; color: var(--muted); font-size: .92rem; letter-spacing: 0 !important; word-spacing: normal !important; }
@media (max-width: 860px) {  .about-photo { order: -1; } }
 

/* ---------- Photos de l'équipe : une grande, deux petites ----------
   Même rayon, même ombre, même gouttière : la grille fait le travail,
   pas les décorations. */

.about-photo { margin: 0; padding: 0; min-width: 0; }
.about-photo::before, .about-photo::after { content: none; }







.about-photo figcaption { margin-top: 10px; text-align: start; color: var(--muted); font-size: .86rem; line-height: 1.4; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
@media (max-width: 860px) {  .about-photo { order: 0; } }

/* ---------- Qui sommes-nous : couverture pleine largeur ----------
   La photo du bureau occupe toute la largeur de l'écran, comme une
   couverture de magazine. Le titre est posé dessus, sur un dégradé marine
   qui monte du bas. Le reste du texte suit dessous, au calme. */
main > section.about { padding-top: 0; }
.about-cover { position: relative; isolation: isolate; height: clamp(520px, 82vh, 820px); overflow: hidden; color: #fff; background: var(--port); }
.about-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2;
  transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2, .7, .2, 1); }
.about-cover.seen > img { transform: scale(1); }
.about-cover::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7, 26, 46, .92) 0%, rgba(7, 26, 46, .62) 32%, rgba(7, 26, 46, .08) 62%, rgba(7, 26, 46, 0) 100%); }








@media (max-width: 860px) {
  .about-cover { height: clamp(460px, 78vh, 640px); }
  .about-cover > img { object-position: 50% 40%; }
  
}
@media (prefers-reduced-motion: reduce) { .about-cover > img { transform: none; transition: none; } }
/* visages au-dessus du titre : on montre le bas de la photo */
.about-cover > img { object-position: 50% 78%; }

@media (max-width: 860px) {
  /* sur téléphone : photo entière (personne n'est coupé), texte dessous sur fond marine */
  .about-cover { height: auto; }
  .about-cover > img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 50% 60%; }
  .about-cover::after { display: none; }
  
  
}

/* ---------- Couverture : finitions ---------- */
/* étalonnage doux de la photo de téléphone : un peu plus de contraste et de couleur */
.about-cover > img { filter: contrast(1.06) saturate(1.1) brightness(.97); will-change: transform; }


.about-cover .cta-glass { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45) !important; box-shadow: none !important; }
.about-cover .cta-glass:hover { background: rgba(255, 255, 255, .26) !important; }
/* crédit façon magazine : qui est sur la photo */
.about-credit { position: absolute; inset-inline-end: clamp(16px, 4vw, 48px); bottom: clamp(36px, 7vw, 84px); margin: 0;
  max-width: 300px; text-align: end; color: rgba(255, 255, 255, .78); font-size: .82rem; line-height: 1.55; }
.about-credit b { display: block; color: #fff; font-size: .9rem; margin-bottom: 4px; }
.about-credit span { display: block; }
@media (max-width: 1100px) { .about-credit { display: none; } }
@media (max-width: 860px) {
  .about-credit { display: block; position: static; max-width: none; text-align: start; padding: 0 16px 28px; background: var(--port); }
  
}
/* parallaxe légère : la photo glisse un peu plus lentement que la page */
.about-cover > img { height: 112%; top: -6%; transform: translate3d(0, var(--py, 0px), 0) scale(var(--sc, 1.06)); transition: transform 2.4s cubic-bezier(.2, .7, .2, 1); }
.about-cover.seen > img { --sc: 1; }
.about-cover.moving > img { transition: none; }
@media (max-width: 860px) { .about-cover > img { height: auto; top: 0; transform: none; } }
@media (prefers-reduced-motion: reduce) { .about-cover > img { transform: none !important; } }
.about-cover > img { --sc: 1; }

/* ---------- Crédit de la photo : une liste nette nom / rôle ---------- */
.about-credit { max-width: 420px; text-align: start; font-size: inherit; }
.about-credit b, .about-credit span { margin: 0; }
.credit-t { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .22);
  font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .72); }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.credit-list li { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.credit-list b { display: block; color: #fff; font-size: .92rem; font-weight: 700; line-height: 1.3; }
.credit-list span { display: block; color: rgba(255, 255, 255, .68); font-size: .78rem; line-height: 1.4; }
html[lang="ar"] .credit-list span, html[lang="ar"] .credit-t { font-size: .86rem; }
@media (max-width: 860px) { .about-credit { max-width: none; padding: 4px 16px 30px; } }
.about-cover > img { filter: none; } /* la retouche est faite dans le fichier bureau-2026-hd.jpg */
.about-cover > img { object-position: 50% 52%; } @media (max-width: 860px) { .about-cover > img { aspect-ratio: 2000 / 1369; object-position: 50% 50%; } }

/* ---------- Couverture : version cinéma ---------- */
.about-cover { height: clamp(560px, 90vh, 900px); }
/* vignettage : les bords (vitres, plantes) s'effacent, le regard va au centre */
.about-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 75% 85% at 50% 40%, rgba(7, 26, 46, 0) 55%, rgba(7, 26, 46, .45) 100%); }
/* entrée : titre, phrase et bouton montent l'un après l'autre */
.about-cover.anim .about-credit { opacity: 0; transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.about-cover.anim.seen .about-credit { opacity: 1; transform: none; }


.about-cover.anim.seen .about-credit { transition-delay: .45s; }
/* crédit dans une carte en verre sombre, lisible sur n'importe quelle partie de la photo */
.about-credit { padding: 16px 18px 18px; border-radius: 18px; background: rgba(7, 26, 46, .42);
  border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
/* texte sous la couverture : une introduction éditoriale */



@media (max-width: 860px) {
  .about-cover { height: auto; }
  .about-cover::before { display: none; }
  .about-credit { border-radius: 0; background: var(--port); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .about-cover.anim .about-credit { opacity: 1; transform: none; transition: none; } }

/* ---------- Cadrage : la photo entière, rien n'est coupé ----------
   La couverture prend exactement les proportions de la photo (2000 x 1369),
   donc ni les têtes, ni les pieds, ni les côtés ne sont rognés. */
.about-cover { height: auto !important; aspect-ratio: 2000 / 1369; max-height: none; }
.about-cover > img { height: 100% !important; top: 0 !important; object-position: 50% 50% !important; transform: none !important; }
@media (max-width: 860px) {
  .about-cover { aspect-ratio: auto; }
  .about-cover > img { width: 100%; height: auto !important; aspect-ratio: 2000 / 1369; }
}

/* =====================================================================
   QUI SOMMES-NOUS — version fluide et interactive
   Titre au-dessus ; photo de taille raisonnable qui s'élargit en douceur
   au défilement ; points sur chaque membre (survol / toucher) ; liste des
   noms dessous, reliée aux points.
   ===================================================================== */
main > section.about { padding-top: clamp(84px, 10vw, 140px) !important; }





.about-stage { position: relative; }
.about-stage .about-cover {
  height: clamp(400px, 66vh, 660px) !important; aspect-ratio: auto !important; width: 100%; color: #fff; background: transparent;
  clip-path: inset(0 var(--ins, 40px) round var(--rad, 28px)); will-change: clip-path;
}
.about-stage .about-cover::after { background: linear-gradient(to top, rgba(7, 26, 46, .35), rgba(7, 26, 46, 0) 38%) !important; }
.about-stage .about-cover::before { background: radial-gradient(ellipse 80% 90% at 50% 40%, rgba(7, 26, 46, 0) 60%, rgba(7, 26, 46, .3) 100%) !important; }
.about-stage .about-cover > img { position: absolute; inset: 0; width: 100%; height: 100% !important; top: 0 !important;
  object-fit: cover; object-position: 50% 28% !important; transform: scale(var(--zoom, 1.08)) !important; transition: none !important; }

/* points sur les membres */
.hotspots { position: absolute; inset: 0; }
.hs { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.hs-dot { position: absolute; inset: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .32), 0 4px 14px rgba(0, 0, 0, .35); transition: transform .25s; }
.hs-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: hsPulse 2.4s ease-out infinite; }
@keyframes hsPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.hs:hover .hs-dot, .hs.on .hs-dot, .hs:focus-visible .hs-dot { transform: scale(1.25); background: var(--barque); }
.hs:focus-visible { outline: none; }
.hs-tip { position: absolute; top: calc(100% + 4px); left: 50%; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; white-space: nowrap; text-align: center;
  background: rgba(7, 26, 46, .84); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.hs-tip b { font-size: .95rem; }
.hs-tip small { font-size: .78rem; color: rgba(255, 255, 255, .75); }
.hs:hover .hs-tip, .hs.on .hs-tip, .hs:focus-visible .hs-tip { opacity: 1; transform: translate(-50%, 0); }



/* liste des noms sous la photo, reliée aux points */
.about-stage + .wrap .about-credit { position: static !important; max-width: none !important; margin-top: 22px; padding: 0 !important;
  background: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; opacity: 1 !important; transform: none !important; }
.about-stage + .wrap .credit-t { display: none; }
.about-stage + .wrap .credit-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.about-stage + .wrap .credit-list li { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: default; transition: background .2s, border-color .2s; }
.about-stage + .wrap .credit-list li.on { background: var(--mist); border-color: rgba(0, 151, 215, .35); }
.about-stage + .wrap .credit-list b { color: var(--ink) !important; }
.about-stage + .wrap .credit-list span { color: var(--muted) !important; }


@media (max-width: 860px) {
  
  .about-stage .about-cover { height: auto !important; aspect-ratio: 2000 / 1369 !important; clip-path: inset(0 16px round 20px); }
  .about-stage .about-cover > img { transform: none !important; }
  .about-stage + .wrap .credit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-tip { white-space: normal; width: 170px; }
  
}
@media (prefers-reduced-motion: reduce) { .hs-dot::after { animation: none; } }
.about-stage + .wrap .about-credit { display: block !important; }

/* ---------- Sans point lumineux : chaque personne est une zone invisible ----------
   Au survol ou au toucher d'une personne, son nom apparaît sous elle. */
.hs-dot { display: none !important; }
.hs { width: var(--hw, 120px); height: var(--hh, 300px); margin: 0; transform: translate(-50%, -50%); border-radius: 16px; }
.hs-tip { top: auto; bottom: 14px; }
.hs-tip { top: 56% !important; bottom: auto !important; }

/* ---------- Noms écrits sur la photo ----------
   Chaque nom est posé sous la personne, sur une ligne commune en bas de la photo,
   avec une ombre douce pour rester lisible. Au survol d'une personne, son nom
   monte légèrement et se souligne en or, les autres s'estompent. */
.about-stage + .wrap .about-credit { display: none !important; }

.about-stage .about-cover::after { background: linear-gradient(to top, rgba(7, 26, 46, .62), rgba(7, 26, 46, .18) 26%, rgba(7, 26, 46, 0) 42%) !important; }
.hs-tip {
  top: var(--ty, 70%) !important; bottom: auto !important; opacity: 1 !important; transform: translate(-50%, 0) !important;
  background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 0 0 6px !important; border-radius: 0; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 18px rgba(0, 0, 0, .35);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1) !important;
}
.hs-tip b { font-size: clamp(.9rem, 1.3vw, 1.08rem); letter-spacing: .01em; }
.hs-tip small { font-size: clamp(.72rem, 1vw, .82rem); color: rgba(255, 255, 255, .82); }
.hs-tip::after { content: ""; display: block; height: 2px; width: 0; margin: 6px auto 0; border-radius: 2px; background: var(--barque); transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.hotspots.has-on .hs:not(.on) .hs-tip { opacity: .5 !important; }
.hs.on .hs-tip { transform: translate(-50%, -6px) !important; }
.hs.on .hs-tip::after { width: 36px; }
@media (max-width: 860px) {
  .hs-tip { white-space: normal; width: auto !important; max-width: 92px; text-align: center; }
  .hs-tip b { font-size: .72rem; } .hs-tip small { display: none; }
}
@media (max-width: 860px) { .hs-tip { white-space: nowrap !important; max-width: none !important; padding-bottom: 2px !important; } .hs-tip b { font-size: .62rem !important; } .hs-tip::after { margin-top: 3px; } }
/* téléphone : les membres sont trop proches pour 4 noms côte à côte ;
   on touche une personne pour afficher son nom et son rôle */
@media (max-width: 860px) {
  .hs-tip { opacity: 0 !important; }
  .hs.on .hs-tip { opacity: 1 !important; }
  .hs-tip b { font-size: .8rem !important; }
  .hs.on .hs-tip small { display: block; font-size: .7rem; }
  
  
}

.montage { width: min(1320px, 100%); } /* nouvelle image 2000 px : nette même un peu plus large */
.hero-text { margin-top: clamp(-36px, -2.4vw, -6px) !important; } /* le titre commence sous la végétation de la nouvelle image */

/* =====================================================================
   FINITIONS GÉNÉRALES
   ===================================================================== */
/* ancres : le titre ne passe plus sous l'en-tête flottant ; défilement doux */
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
::selection { background: rgba(0, 151, 215, .2); color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--barque); outline-offset: 3px; border-radius: 6px; }

/* ---------- Le bureau ---------- */
.team .avatar { background-color: var(--port) !important; color: #fff !important; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.team .member { border-top-color: var(--line) !important; }
.team .member:hover { background: #fff; }
.lead-member .lead-photo { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--barque) !important; }
.team-grid { align-items: start; }

/* ---------- Questions fréquentes : ouverture claire, signe + qui tourne ---------- */
.faq-list { padding: 8px clamp(16px, 2.4vw, 28px) !important; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--mist); color: var(--port); font-size: 1.25rem; font-weight: 500; line-height: 1; transition: transform .3s, background .3s, color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--port); color: #fff; }
.faq-list summary:hover { color: var(--jci); }
.faq-list details p { margin: -4px 0 20px; color: var(--ink-2); line-height: 1.75; max-width: 62ch; }
.faq-list details[open] p { animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Formulaires ---------- */
.field input, .field select, .field textarea { border-radius: 12px !important; border: 1px solid rgba(11, 37, 64, .16) !important; background: #fff !important; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(11, 37, 64, .3) !important; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--jci) !important; box-shadow: 0 0 0 4px rgba(0, 151, 215, .14) !important; }
.join-form .btn, .contact-form .btn { border-radius: 999px; padding: 14px 28px; }
.steps li::marker, .steps li::before { font-weight: 700; }

/* ---------- Pied de page marine ---------- */
.footer { background: var(--port) !important; color: rgba(255, 255, 255, .72) !important; border-top: 0 !important; padding: clamp(48px, 6vw, 72px) 0 28px !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.footer .brand-lo { color: #fff !important; }
.footer p { color: rgba(255, 255, 255, .72); }




/* ---------- Fort : fondu dans la page ----------
   L'image a maintenant un fond transparent (plus de rectangle blanc ou gris),
   et les bords du ciel s'effacent en douceur au lieu de s'arrêter net. */
.hero { background: #fff !important; }
.montage { background: none !important; box-shadow: none !important; border: 0 !important; }
.montage img {
  mix-blend-mode: normal !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  filter: drop-shadow(0 30px 40px rgba(11, 37, 64, .12));
}
.montage img { -webkit-mask-image: none !important; mask-image: none !important; filter: none !important; } /* le fondu du ciel est fait dans fort-kelibia-fondu.webp */
.montage img { mix-blend-mode: multiply !important; } /* retour à l'image d'origine, fond blanc fusionné */

/* ---------- Fort en 3D : reflet de lumière qui suit la souris ---------- */
.montage { position: relative; }
.montage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 220, 160, .28), rgba(255, 220, 160, 0) 42%);
  mix-blend-mode: soft-light; }
.montage.lit::after { opacity: 1; }
.montage img { transform-origin: 50% 60%; will-change: transform; }

/* =====================================================================
   PREMIER CONTACT : « Kélibia s'illumine »
   À l'ouverture, le fort monte dans la pénombre, puis ses éclairages
   s'allument comme à la tombée de la nuit ; un halo chaud s'épanouit
   derrière les remparts. Le titre arrive ensuite, mot par mot, puis
   la phrase, les boutons et les chiffres.
   ===================================================================== */
.montage img { animation: fortOn 2.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fortOn {
  0%   { opacity: 0; filter: brightness(.18) saturate(0) blur(6px); transform: translateY(46px) scale(.94); }
  30%  { opacity: 1; filter: brightness(.3) saturate(.1) blur(0); transform: translateY(10px) scale(.98); }
  48%  { filter: brightness(.34) saturate(.15); }
  56%  { filter: brightness(.95) saturate(1.15); }   /* les lumières s'allument */
  62%  { filter: brightness(.7) saturate(.9); }      /* petit vacillement */
  70%  { filter: brightness(1.08) saturate(1.2); }
  100% { opacity: 1; filter: none; transform: none; }
}
/* halo chaud derrière le fort, qui s'épanouit puis respire doucement */
.montage::before {
  content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 4%; height: 70%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 176, 64, .55), rgba(255, 140, 40, .18) 45%, rgba(255, 140, 40, 0) 72%);
  filter: blur(30px); opacity: 0;
  animation: haloOn 1.6s 1.3s ease-out forwards, haloBreath 7s 3s ease-in-out infinite;
}
@keyframes haloOn { to { opacity: .9; } }
@keyframes haloBreath { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .6; transform: scale(1.05); } }
.hero { isolation: isolate; }

/* titre plus grand, qui arrive quand les lumières sont allumées */
.hero h1 { font-size: clamp(2.8rem, 7vw, 6.2rem) !important; }
html[lang="ar"] .hero h1 { font-size: clamp(2.8rem, 6.8vw, 6rem) !important; }
.hero h1 .w { transition-delay: calc(var(--i) * 80ms + 1.45s) !important; transform: translateY(.6em) !important; filter: blur(6px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1), filter .8s ease !important; }
.hero.on h1 .w { transform: none !important; filter: none; }
/* puis la phrase, les boutons et les chiffres */
.hero .hero-row { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.hero.on .hero-row { opacity: 1; transform: none; transition-delay: 2.1s; }


@media (prefers-reduced-motion: reduce) {
  .montage img { animation: none !important; }
  .montage::before { animation: none; opacity: .8; }
  .hero h1 .w, .hero .hero-row { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ---------- Accueil plus serré ----------
   L'image est rognée au plus près du fort (fort-kelibia-serre.webp) et
   l'accueil démarre juste sous l'en-tête : plus de grand vide au début. */
.hero { padding-top: clamp(4px, 1.2vw, 14px) !important; }
/* halo plus petit, uniquement derrière les remparts (plus de teinte en rectangle) */
.montage::before { left: 24% !important; right: 24% !important; top: 6% !important; height: 46% !important; filter: blur(40px) !important; }
@keyframes haloOn { to { opacity: .55; } }
@keyframes haloBreath { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .35; transform: scale(1.04); } }
.hero-text { margin-top: clamp(4px, 1vw, 14px) !important; }

/* =====================================================================
   OUVERTURE : KÉLIBIA LA NUIT
   Un plein écran bleu nuit ; le fort s'allume dans l'obscurité ;
   le titre en blanc ; quelques étoiles qui scintillent. Le reste du site
   reste blanc : ce contraste fait l'effet d'entrée.
   ===================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(96px, 12vh, 130px) !important; padding-bottom: clamp(36px, 6vh, 64px) !important;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(32, 84, 140, .55), rgba(32, 84, 140, 0) 70%),
    linear-gradient(180deg, #06162a 0%, #0a2340 55%, #0b2744 100%) !important;
}
/* étoiles */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 24% 9%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 38% 22%, #fff, transparent), radial-gradient(1px 1px at 52% 7%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 66% 16%, #fff, transparent), radial-gradient(1px 1px at 78% 6%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 88% 20%, #fff, transparent), radial-gradient(1px 1px at 94% 11%, #fff, transparent),
    radial-gradient(1px 1px at 6% 32%, #fff, transparent), radial-gradient(1.2px 1.2px at 30% 34%, #fff, transparent),
    radial-gradient(1px 1px at 72% 30%, #fff, transparent), radial-gradient(1.2px 1.2px at 46% 28%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }
.hero .wrap, .hero .montage { position: relative; z-index: 1; }
/* le fort : image à fond transparent, sans fusion */
.montage { width: min(1180px, 94vw) !important; }
.montage img { mix-blend-mode: normal !important; max-height: 48vh; width: auto !important; max-width: 100%; margin-inline: auto; }
.montage::before { background: radial-gradient(ellipse at 50% 55%, rgba(255, 176, 64, .45), rgba(255, 140, 40, .12) 45%, rgba(255, 140, 40, 0) 72%) !important; }
/* textes en blanc */
.hero h1 { color: #fff !important; font-size: clamp(2.4rem, 5.4vw, 4.8rem) !important; margin-bottom: 18px !important; }
html[lang="ar"] .hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important; }
.hero .lead { color: rgba(255, 255, 255, .78) !important; }



.hero .cta-glass { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .35) !important; box-shadow: none !important; }
.hero .cta-glass:hover { background: rgba(255, 255, 255, .2) !important; }
/* l'en-tête flottant reste blanc et lisible au-dessus de la nuit */
.top { background: rgba(255, 255, 255, .92) !important; }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 92px !important; }
  .montage img { max-height: none; width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
/* nuit : l'accueil passe sous l'en-tête flottant (plus de bande blanche au-dessus),
   et tout tient dans le premier écran : fort, titre, phrase, boutons */
.hero { margin-top: -78px; padding-top: clamp(118px, 15vh, 150px) !important; }
.montage img { max-height: 40vh; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 4.2rem) !important; }
html[lang="ar"] .hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem) !important; }
.hero-text { margin-top: clamp(10px, 2vh, 22px) !important; }
@media (max-width: 860px) { .hero { margin-top: -78px; padding-top: 108px !important; } }

/* ---------- Nuit : nettoyage ----------
   Le reflet qui suivait la souris et le halo créaient un rectangle grisâtre
   derrière le fort (effet « bon marché ») : supprimés. Le fort se découpe
   seul sur le ciel, avec une lueur portée par l'image elle-même. */
.montage::after, .montage.lit::after { content: none !important; display: none !important; }
.montage::before { content: none !important; display: none !important; }
.montage img { filter: drop-shadow(0 0 40px rgba(255, 168, 60, .28)) drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
/* ciel plus profond et plus riche, moins « aplat » */
.hero {
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(255, 160, 70, .10), rgba(255, 160, 70, 0) 70%),
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(28, 78, 138, .55), rgba(28, 78, 138, 0) 70%),
    linear-gradient(180deg, #040e1c 0%, #081d36 50%, #0a2440 100%) !important;
}
.hero::before { opacity: .45; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .55; } }
/* transition douce entre la nuit et la page blanche */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .08); }

/* ---------- Nuit : bleu plus riche + ciel étoilé ----------
   Dégradé de nuit méditerranéenne : presque noir en haut, bleu profond,
   puis une lueur bleu JCI à l'horizon derrière la colline. Les étoiles
   sont dessinées par un canevas (interactions.js) : tailles variées,
   scintillement, et de temps en temps une étoile filante. */
.hero {
  background:
    radial-gradient(130% 60% at 50% 105%, rgba(0, 151, 215, .35) 0%, rgba(0, 151, 215, 0) 55%),
    radial-gradient(70% 50% at 50% 42%, rgba(255, 170, 80, .08), rgba(255, 170, 80, 0) 70%),
    linear-gradient(180deg, #01060f 0%, #04142b 28%, #082547 58%, #0c3561 82%, #0f4277 100%) !important;
}
.hero::before { content: none !important; }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Nuit : lune, faisceaux, invitation à défiler ---------- */
/* croissant de lune, discret, avec un halo */
.hero-moon { position: absolute; z-index: 0; top: clamp(96px, 14vh, 150px); inset-inline-start: clamp(24px, 9vw, 160px);
  width: clamp(34px, 3.4vw, 54px); aspect-ratio: 1; border-radius: 50%; background: transparent;
  box-shadow: clamp(7px, .7vw, 11px) clamp(-5px, -.4vw, -3px) 0 0 #f7ecd2;
  filter: drop-shadow(0 0 12px rgba(247, 236, 210, .55)) drop-shadow(0 0 40px rgba(247, 236, 210, .25));
  opacity: 0; animation: moonIn 2s 2.2s ease forwards; }
html[dir="rtl"] .hero-moon { transform: scaleX(-1); }
@keyframes moonIn { to { opacity: .95; } }

/* faisceaux des projecteurs : naissent au pied des remparts et balaient le ciel */
.montage { text-align: center; }
.fort-wrap { position: relative; display: inline-block; max-width: 100%; }
.fort-wrap img { display: block; }
.beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; animation: beamsOn 2s 1.6s ease forwards; }
.beams i { position: absolute; left: var(--x); top: 41%; width: clamp(40px, 5vw, 80px); height: 70vh; transform-origin: 50% 100%;
  translate: -50% -100%;
  background: linear-gradient(to top, rgba(255, 214, 150, .32), rgba(255, 214, 150, .08) 45%, rgba(255, 214, 150, 0) 85%);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); filter: blur(5px); mix-blend-mode: screen;
  animation: sweep 9s var(--d) ease-in-out infinite alternate; }
@keyframes beamsOn { to { opacity: 1; } }
@keyframes sweep { from { rotate: -9deg; } to { rotate: 9deg; } }

/* invitation à défiler : un trait fin où glisse une goutte de lumière */
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 26px; height: 46px; translate: -50% 0; display: grid; place-items: start center;
  opacity: 0; animation: moonIn 1s 3s ease forwards; }
.scroll-cue::before { content: ""; position: absolute; top: 4px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, .25); }
.scroll-cue span { width: 5px; height: 12px; margin-top: 4px; border-radius: 4px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(26px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) { .beams i { height: 40vh; } .scroll-cue { display: none; } .hero-moon { top: 88px; } }
@media (prefers-reduced-motion: reduce) {
  .beams { animation: none; opacity: .8; } .beams i { animation: none; }
  .hero-moon, .scroll-cue { animation: none; opacity: .9; } .scroll-cue span { animation: none; }
}
.fort-wrap { isolation: isolate; transform-origin: 50% 60%; will-change: transform; }
/* faisceaux plus doux : lumière dorée, très évasée, qui s'éteint bien avant le haut */
.beams i { width: clamp(70px, 9vw, 150px); height: 52vh;
  background: linear-gradient(to top, rgba(255, 196, 120, .30), rgba(255, 196, 120, .10) 35%, rgba(255, 196, 120, 0) 70%);
  clip-path: polygon(48% 100%, 52% 100%, 100% 0, 0 0); filter: blur(10px); }
.beams i:nth-child(2), .beams i:nth-child(4) { display: none; }   /* trois faisceaux suffisent */
@media (max-width: 860px) { .hero-moon { display: none; } }

/* =====================================================================
   EN-TÊTE QUI S'ACCORDE À LA NUIT
   Tant que l'accueil nocturne est à l'écran, l'en-tête devient un verre
   sombre et transparent : textes blancs, logo blanc, filet clair.
   Dès qu'on arrive sur les sections blanches, il redevient clair.
   ===================================================================== */
.logo-night { display: none; }
.top { transition: background .45s ease, box-shadow .45s ease, border-color .45s ease; }
.top.over-night {
  background: rgba(6, 20, 40, .38) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important; backdrop-filter: blur(18px) saturate(1.4) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px -24px rgba(0, 0, 0, .6) !important;
}
.top.over-night .top-row { background: transparent !important; }
.top.over-night .logo-day { display: none; }
.top.over-night .logo-night { display: block; }
.top.over-night .brand-lo { color: #7fd3f7 !important; }
.top.over-night .menu a { color: rgba(255, 255, 255, .86) !important; }
.top.over-night .menu a:hover, .top.over-night .menu a.on { color: #fff !important; }
.top.over-night .lang button { color: rgba(255, 255, 255, .62) !important; background: transparent !important; }
.top.over-night .lang button[aria-pressed="true"] { color: #fff !important; }
.top.over-night .burger { color: #fff !important; background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .2) !important; }
.top.over-night .progress { opacity: 0; }
/* menu ouvert sur téléphone : panneau sombre lui aussi */
@media (max-width: 1380px) {
  .top.over-night .menu.open { background: rgba(6, 20, 40, .92) !important; border-color: rgba(255, 255, 255, .12) !important; }
}

/* ---------- Enchaînement nuit → jour ----------
   La nuit ne s'arrête plus net : son bas s'arrondit doucement, comme
   l'horizon, et la section suivante commence tout de suite. */
.hero { border-radius: 0 0 50% 50% / 0 0 clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px); }
main > section.about { padding-top: clamp(56px, 7vw, 96px) !important; }
/* « Qui sommes-nous » : un seul bloc aligné, le lien sous la phrase (plus de bouton isolé à l'autre bout) */


.top.over-night .burger i, .top.over-night .burger svg { color: #fff !important; fill: #fff !important; }

/* ---------- Mission et vision : deux phrases fortes, sans boîtes ----------
   Plus de cartes ni de traduction anglaise en petit sous le texte arabe
   ou français (elle mélangeait les langues). Juste l'étiquette et la phrase,
   en grand, séparées par un filet. */
.mv { gap: clamp(28px, 5vw, 72px) !important; margin-top: clamp(56px, 7vw, 96px) !important; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.mv-item { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.mv-item:hover { transform: none !important; }
.mv-item h3 { font-size: .95rem !important; font-weight: 700; color: var(--jci) !important; margin: 0 0 12px !important; }
.mv-text { font-size: clamp(1.35rem, 2.3vw, 1.85rem) !important; line-height: 1.45 !important; font-weight: 600; color: var(--ink) !important; margin: 0; }
html[lang="ar"] .mv-text { line-height: 1.7 !important; }



/* =====================================================================
   OUVERTURE — VERSION « PRO »
   Moins d'effets, plus de rigueur : on retire les faisceaux (trapèzes gris),
   la lune et la découpe arrondie qui mangeait les boutons. La composition
   devient symétrique : le fort au centre, puis le titre, la phrase et les
   deux boutons centrés sous lui, sur un même axe.
   ===================================================================== */
.beams, .hero-moon { display: none !important; }
.hero { border-radius: 0 !important; justify-content: center; }
.hero-text { text-align: center; }
.hero h1 { margin-inline: auto !important; max-width: 18ch !important; }
html[lang="ar"] .hero h1 { max-width: 20ch !important; }
.hero-row { flex-direction: column; align-items: center !important; justify-content: center; gap: 26px !important; }
.hero .lead { margin-inline: auto; max-width: 54ch !important; text-align: center; }
.hero-actions { justify-content: center; }
/* séparation nette et calme avec la page blanche */
.hero::after { content: "" !important; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15, 66, 119, 0), rgba(15, 66, 119, .55)); }

/* ---------- Profondeur de l'accueil ----------
   Le fort flotte très doucement (il respire), une brume bleutée
   passe devant le pied de la colline, et une ombre portée floue
   le décolle du ciel : on sort de l'image plate. */
.fort-wrap { animation: fortFloat 8s ease-in-out 3s infinite; }
@keyframes fortFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.fort-wrap::after {
  content: ""; position: absolute; z-index: 2; left: 4%; right: 4%; bottom: -6%; height: 34%; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 30% 60%, rgba(150, 200, 255, .22), transparent 70%),
              radial-gradient(ellipse 45% 55% at 72% 55%, rgba(150, 200, 255, .18), transparent 70%);
  filter: blur(18px); opacity: 0; animation: mistIn 2s 2.4s ease forwards, mistDrift 14s 2.4s ease-in-out infinite alternate;
}
@keyframes mistIn { to { opacity: 1; } }
@keyframes mistDrift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
/* ombre portée sous la colline, comme si le fort était posé au-dessus de la mer */
.fort-wrap::before {
  content: ""; position: absolute; z-index: -2; left: 14%; right: 14%; bottom: -10%; height: 18%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%); filter: blur(14px);
}
@media (prefers-reduced-motion: reduce) { .fort-wrap, .fort-wrap::after { animation: none; } .fort-wrap::after { opacity: 1; } }

/* ---------- Accueil : phrase et boutons affinés ---------- */
.hero .lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem) !important; line-height: 1.75 !important; font-weight: 400;
  color: rgba(226, 238, 255, .78) !important; max-width: 46ch !important; letter-spacing: 0; }
html[lang="ar"] .hero .lead { line-height: 1.95 !important; }
.hero-row { gap: 30px !important; }
.hero-actions { gap: 12px !important; }
.hero .cta { min-height: 52px; padding: 0 30px !important; font-size: 1rem; font-weight: 700; border-radius: 999px; }
/* principal : or, avec un léger reflet en haut et une lueur douce */
.hero .cta-main { background: linear-gradient(180deg, #f8c25c, #eea43a) !important; color: #0b2540 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 26px -10px rgba(242, 169, 59, .75) !important; }
.hero .cta-main:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 34px -12px rgba(242, 169, 59, .9) !important; }
/* secondaire : contour fin, transparent, qui s'éclaire au survol */
.hero .cta-glass { background: rgba(255, 255, 255, .04) !important; border: 1px solid rgba(255, 255, 255, .32) !important;
  color: #fff !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .cta-glass:hover { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .6) !important; transform: translateY(-2px); }
@media (max-width: 560px) { .hero .cta { min-height: 50px; } }

/* ---------- Phrase d'accroche : une question en blanc, la promesse en retrait ---------- */
.hero .lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem) !important; max-width: 40ch !important; }
.hero .lead strong { display: block; color: #fff; font-weight: 700; margin-bottom: 4px; }
.hero .lead span { color: rgba(226, 238, 255, .74); }
html[lang="ar"] .hero .lead strong { font-family: var(--font-ar-display, inherit); font-weight: 400; font-size: 1.15em; letter-spacing: 0; }

/* ---------- Alignement : une seule grille ----------
   Tous les titres et blocs démarrent sur le même bord que le contenu
   (largeur .wrap). « Qui sommes-nous » était centré par erreur. */



/* ---------- Transition nuit → page : une vague naturelle ----------
   Trois ondes superposées (deux translucides, une blanche) ondulent très
   lentement : la nuit se pose sur la page comme la mer sur le rivage. */
.hero { padding-bottom: clamp(110px, 14vh, 150px) !important; }
.hero::after { content: none !important; }







.hero { padding-bottom: clamp(130px, 17vh, 180px) !important; }

/* =====================================================================
   LA MER DE KÉLIBIA
   Quatre couches de vagues qui se répètent sans couture et roulent à des
   vitesses et dans des sens différents : bleu profond du large, turquoise
   de la Mansoura, eau claire du bord, puis l'écume blanche du rivage qui
   se confond avec la page.
   ===================================================================== */

.sea { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(80px, 11vw, 150px); z-index: 1; pointer-events: none; overflow: hidden; }
.sea i { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; animation: seaRoll linear infinite; }
/* une période de vague, qui commence et finit à la même hauteur (raccord parfait) */
.sea .s1 { height: 100%; background-size: 1600px 100%; animation-duration: 38s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 150' preserveAspectRatio='none'%3E%3Cpath fill='%230b5e86' fill-opacity='.55' d='M0,58 C200,20 400,96 600,62 C800,28 1000,90 1200,58 C1400,26 1500,64 1600,58 L1600,150 L0,150 Z'/%3E%3C/svg%3E"); }
.sea .s2 { height: 82%; background-size: 1100px 100%; animation-duration: 26s; animation-direction: reverse;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 120' preserveAspectRatio='none'%3E%3Cpath fill='%2318a3b4' fill-opacity='.55' d='M0,52 C180,18 370,86 550,52 C730,18 920,86 1100,52 L1100,120 L0,120 Z'/%3E%3C/svg%3E"); }
.sea .s3 { height: 60%; background-size: 800px 100%; animation-duration: 18s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 90' preserveAspectRatio='none'%3E%3Cpath fill='%237fdde0' fill-opacity='.65' d='M0,40 C130,14 270,66 400,40 C530,14 670,66 800,40 L800,90 L0,90 Z'/%3E%3C/svg%3E"); }
/* écume : liseré blanc ourlé, puis le blanc de la page */
.sea .s4 { height: 40%; background-size: 620px 100%; animation-duration: 14s; animation-direction: reverse;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,26 C100,10 210,40 310,26 C410,12 520,40 620,26 L620,60 L0,60 Z'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.85' stroke-width='2' d='M0,20 C100,4 210,34 310,20 C410,6 520,34 620,20'/%3E%3C/svg%3E"); }
@keyframes seaRoll { from { background-position-x: 0; } to { background-position-x: -1600px; } }
.sea .s2 { animation-name: seaRoll2; } .sea .s3 { animation-name: seaRoll3; } .sea .s4 { animation-name: seaRoll4; }
@keyframes seaRoll2 { to { background-position-x: -1100px; } }
@keyframes seaRoll3 { to { background-position-x: -800px; } }
@keyframes seaRoll4 { to { background-position-x: -620px; } }
@media (prefers-reduced-motion: reduce) { .sea i { animation: none; } }

/* =====================================================================
   LA MER LA NUIT
   Le turquoise de jour jurait avec le ciel nocturne. La mer devient une
   eau de nuit, dans les bleus du ciel, à peine plus claire vers le bord ;
   au centre, les lumières du fort s'y reflètent en traits dorés qui
   scintillent ; l'écume blanche fait la limite avec la page.
   ===================================================================== */
.sea { height: clamp(90px, 12vw, 170px) !important; }
.sea .s1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 150' preserveAspectRatio='none'%3E%3Cpath fill='%230a2c52' fill-opacity='.85' d='M0,58 C200,40 400,76 600,60 C800,44 1000,74 1200,58 C1400,44 1500,62 1600,58 L1600,150 L0,150 Z'/%3E%3C/svg%3E") !important; }
.sea .s2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 120' preserveAspectRatio='none'%3E%3Cpath fill='%230d3a69' fill-opacity='.85' d='M0,52 C180,38 370,66 550,52 C730,38 920,66 1100,52 L1100,120 L0,120 Z'/%3E%3C/svg%3E") !important; }
.sea .s3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 90' preserveAspectRatio='none'%3E%3Cpath fill='%23124a80' fill-opacity='.8' d='M0,40 C130,30 270,50 400,40 C530,30 670,50 800,40 L800,90 L0,90 Z'/%3E%3C/svg%3E") !important; }
/* reflet doré des lumières du fort : traits horizontaux brisés qui scintillent */

@keyframes ripple { from { background-position-y: 0; } to { background-position-y: 8px; } }
/* écume plus fine et plus nette */
.sea .s4 { height: 34% !important; }

 .hero { padding-bottom: clamp(160px, 20vh, 210px) !important; }

/* ---------- Fin de l'accueil : une seule courbe, sobre ----------
   Plus de mer animée ni de reflets : un arc très léger, blanc, immobile,
   qui adoucit le passage de la nuit à la page. */
.sea { display: none !important; }
.hero-curve { position: absolute; left: 0; bottom: -1px; width: 100%; max-width: none; height: clamp(36px, 5vw, 72px); z-index: 1; fill: #fff; pointer-events: none; }
.hero { padding-bottom: clamp(96px, 12vh, 130px) !important; }

/* =====================================================================
   CARTE QUI CHEVAUCHE LA NUIT
   « Qui sommes-nous » monte en carte blanche, posée à moitié sur la nuit
   et à moitié sur la page : deux plans superposés, transition sans couture.
   ===================================================================== */
.hero-curve { display: none !important; }
.hero { padding-bottom: clamp(150px, 19vh, 200px) !important; }
main > section.about { padding-top: 0 !important; }




/* le lien passe à droite (à gauche en arabe), au niveau de la dernière ligne */


/* carte : chevauchement franc et constant, quelle que soit la hauteur d'écran */
.hero { padding-bottom: 220px !important; }

@media (max-width: 860px) { .hero { padding-bottom: 130px !important; }  }

/* ---------- Carte « Qui sommes-nous » : texte + trois repères ---------- */












/* =====================================================================
   QUI SOMMES-NOUS — COMPOSITION « MAGAZINE »
   La photo du bureau monte sur la nuit ; la carte de texte chevauche
   son coin inférieur. Deux plans, une seule image forte, un texte court.
   ===================================================================== */

.about-compo { position: relative; z-index: 3; margin-top: -150px !important; }
.about-compo .about-stage .about-cover {
  height: clamp(420px, 64vh, 640px) !important; clip-path: none !important; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(7, 26, 46, .6), 0 12px 30px -16px rgba(7, 26, 46, .35);
}
.about-compo .about-stage .about-cover > img { transform: none !important; object-position: 50% 30% !important; }
.about-card {
  position: relative; z-index: 4; width: min(600px, 88%);
  margin-top: -96px; margin-inline-start: clamp(20px, 4vw, 56px);
  background: #fff; border-radius: 24px; padding: clamp(26px, 3.4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(7, 26, 46, .45), 0 6px 18px -10px rgba(7, 26, 46, .2);
}
.about-card h2 { font-size: clamp(2rem, 3.4vw, 2.9rem) !important; margin: 0 0 14px !important; }
.about-card .about-lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem) !important; line-height: 1.7 !important; color: var(--ink-2) !important; margin: 0 0 20px !important; font-weight: 400 !important; }
html[lang="ar"] .about-card .about-lead { line-height: 1.9 !important; }
.about-card .about-link { margin: 0; }

@media (max-width: 860px) {
  .about-compo { margin-top: -90px !important; }
  .about-compo .about-stage .about-cover { height: auto !important; aspect-ratio: 2000 / 1369 !important; border-radius: 20px; }
  .about-card { width: auto; margin: -40px 12px 0; border-radius: 20px; }
}

/* ---------- Passage fluide de la nuit au blanc ----------
   Le bas de l'accueil s'éclaircit progressivement (bleu nuit, bleu JCI, brume claire)
   jusqu'au blanc de « Qui sommes-nous » : plus de coupure nette derrière la photo. */
.hero {
  background:
    radial-gradient(70% 50% at 50% 38%, rgba(255, 170, 80, .08), rgba(255, 170, 80, 0) 70%),
    linear-gradient(180deg, #01060f 0%, #04142b 22%, #082547 45%, #0c3561 calc(100% - 300px),
      #1a5288 calc(100% - 200px), #6f9cc4 calc(100% - 110px), #d6e5f1 calc(100% - 45px), #fff 100%) !important;
}
.hero-stars { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 320px), transparent calc(100% - 140px)); mask-image: linear-gradient(180deg, #000 calc(100% - 320px), transparent calc(100% - 140px)); }
/* La marge négative de la photo remonte toute la section : son haut reste transparent
   pour laisser voir le dégradé de l'accueil (150 px, 90 px sur mobile). */
main > section.about { --lap: 150px; background: linear-gradient(180deg, transparent var(--lap), #fff var(--lap)) !important; }
@media (max-width: 860px) { main > section.about { --lap: 90px; } }
/* Fondu affiné : courbe adoucie (beaucoup de paliers, pas de bande visible) et bleus
   plus lumineux au milieu, comme l'aube sur la mer, au lieu d'un gris-bleu terne. */
.hero {
  background:
    radial-gradient(90% 260px at 50% 100%, rgba(120, 200, 245, .35), rgba(120, 200, 245, 0) 70%),
    radial-gradient(70% 50% at 50% 38%, rgba(255, 170, 80, .08), rgba(255, 170, 80, 0) 70%),
    linear-gradient(180deg, #01060f 0%, #04142b 20%, #082547 40%, #0c3561 calc(100% - 380px),
      #0f3f72 calc(100% - 330px), #154f88 calc(100% - 285px), #1f62a0 calc(100% - 245px),
      #2f78b6 calc(100% - 205px), #4891c9 calc(100% - 170px), #69aad8 calc(100% - 135px),
      #91c3e5 calc(100% - 102px), #b9daef calc(100% - 72px), #dbecf7 calc(100% - 44px),
      #f2f8fc calc(100% - 20px), #fff 100%) !important;
}
.hero-stars { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 400px), transparent calc(100% - 200px)); mask-image: linear-gradient(180deg, #000 calc(100% - 400px), transparent calc(100% - 200px)); }
/* Fondu naturel : plus de halo au ras du bord (il créait une marche visible sur les côtés),
   bleus moins saturés, passage long et interpolé en OKLab (comme l'œil perçoit la lumière). */
.hero {
  background:
    radial-gradient(70% 50% at 50% 38%, rgba(255, 170, 80, .08), rgba(255, 170, 80, 0) 70%),
    linear-gradient(180deg, #01060f 0%, #04142b 20%, #082547 40%, #0c3561 calc(100% - 460px),
      #1b4a7a calc(100% - 360px), #46719c calc(100% - 260px), #8fabc6 calc(100% - 160px),
      #d3e0ec calc(100% - 70px), #fff 100%) !important;
}
@supports (background: linear-gradient(in oklab, red, blue)) {
  .hero {
    background:
      radial-gradient(70% 50% at 50% 38%, rgba(255, 170, 80, .08), rgba(255, 170, 80, 0) 70%),
      linear-gradient(in oklab 180deg, #01060f 0%, #04142b 20%, #082547 40%, #0c3561 calc(100% - 460px),
        #2a5884 calc(100% - 300px), #a9c0d6 calc(100% - 130px), #fff 100%) !important;
  }
}
.hero-stars { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 480px), transparent calc(100% - 260px)); mask-image: linear-gradient(180deg, #000 calc(100% - 480px), transparent calc(100% - 260px)); }
/* Carte + histoire côte à côte sous la photo : plus de vide à côté de la carte,
   plus de paragraphe isolé et trop gros en dessous. */
.about-row { display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 64px); }
.about-row .about-card { flex: 0 0 min(600px, 50%); width: auto; }
.about-story { flex: 1; margin: 0; padding-top: clamp(28px, 3vw, 44px); padding-inline-end: clamp(20px, 4vw, 56px);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.8; color: var(--ink-2); max-width: 52ch; }
.about-story::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--barque, #edc213); margin-bottom: 18px; }
@media (max-width: 860px) {
  .about-row { flex-direction: column; gap: 0; }
  .about-row .about-card { flex: none; }
  .about-story { padding: 28px 16px 0; max-width: none; }
}

/* ---------- Monde > Tunisie > Kélibia : une frise, pas trois cartes ----------
   Un seul fil continu qui va du bleu pâle (le monde) au doré (Kélibia). Sur le fil, un repère
   par échelle, de plus en plus marqué à mesure qu'on se rapproche de la ville : on « zoome ». */
.reach-list { gap: clamp(28px, 4vw, 64px) !important; padding-top: 40px !important; }
.reach-list::before { content: "" !important; top: 9px !important; inset-inline: 0 !important; height: 2px !important; opacity: 1 !important;
  border-radius: 2px; background: linear-gradient(90deg, rgba(0,151,215,.18), var(--jci) 60%, var(--barque)) !important; }
html[dir="rtl"] .reach-list::before { background: linear-gradient(270deg, rgba(0,151,215,.18), var(--jci) 60%, var(--barque)) !important; }
.reach-item, .reach-item:not(.reach-here), .reach-here {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 0 !important; transform: none !important; color: inherit !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.reach-item::before { content: ""; position: absolute; top: -40px; inset-inline-start: 0; width: 12px; height: 12px; margin-top: 3px;
  border-radius: 50%; background: #fff; border: 2px solid rgba(0,151,215,.45); }
.reach-item:nth-child(2)::before { width: 14px; height: 14px; margin-top: 2px; border-color: var(--jci); }
.reach-here::before { width: 18px !important; height: 18px !important; margin-top: 0 !important; background: var(--barque) !important; border: 0 !important;
  box-shadow: 0 0 0 6px rgba(237,194,19,.22), 0 0 0 12px rgba(237,194,19,.1); animation: reachPulse 2.8s ease-out infinite; }
@keyframes reachPulse { 0%,100% { box-shadow: 0 0 0 6px rgba(237,194,19,.22), 0 0 0 12px rgba(237,194,19,.08); } 50% { box-shadow: 0 0 0 8px rgba(237,194,19,.28), 0 0 0 18px rgba(237,194,19,0); } }
.reach-year { font-weight: 700 !important; color: var(--encre) !important; font-size: clamp(2.4rem, 4vw, 3.4rem) !important; }
.reach-item:not(.reach-here) .reach-year { color: rgba(19,38,58,.28) !important; }
.reach-here .reach-year { color: var(--encre) !important; background: linear-gradient(90deg, #e2a400, var(--barque)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.reach-scale { margin: 14px 0 6px !important; color: var(--jci) !important; font-size: .88rem !important; }
.reach-here .reach-scale { color: #b98a00 !important; }
.reach-pin { background: none !important; padding: 0 !important; color: #b98a00 !important; font-weight: 600 !important; }
.reach-pin::before { content: "·"; margin-inline-end: 6px; }
.reach-item h4, .reach-here h4 { color: var(--encre) !important; margin-bottom: 10px !important; }
.reach-item p:last-child, .reach-here p:last-child { color: var(--ink-2, rgba(19,38,58,.78)) !important; font-size: 1rem; line-height: 1.75 !important; max-width: 40ch; }
@media (max-width: 860px) {
  .reach-list { padding-top: 0 !important; padding-inline-start: 34px !important; gap: 36px !important; }
  .reach-list::before { top: 6px !important; bottom: 6px !important; inset-inline-start: 8px !important; inset-inline-end: auto !important; width: 2px !important; height: auto !important;
    background: linear-gradient(180deg, rgba(0,151,215,.18), var(--jci) 60%, var(--barque)) !important; }
  .reach-item::before { top: 8px; inset-inline-start: -34px; transform: translateX(calc(var(--rtl, 1) * 0px)); }
  .reach-item::before { inset-inline-start: calc(-34px + 9px - 6px); }
  .reach-item:nth-child(2)::before { inset-inline-start: calc(-34px + 9px - 7px); }
  .reach-here::before { inset-inline-start: calc(-34px + 9px - 9px) !important; }
}
@media (prefers-reduced-motion: reduce) { .reach-here::before { animation: none; } }
/* La liste des noms du bureau reste masquée : les noms sont écrits sur la photo. */
.about-credit { display: none !important; }
/* En arabe, l'année s'aligne sous son repère (à droite de la colonne). */
html[dir="rtl"] .reach-year { text-align: right !important; }

/* ---------- Frise animée au défilement ----------
   Le fil se trace pendant qu'on descend : du monde (1915) à la Tunisie (1962) puis à Kélibia (1994).
   Chaque repère s'allume quand le fil l'atteint ; son année passe du gris pâle à l'encre,
   et celle de Kélibia s'illumine en or. */
.reach-list::before { background: rgba(19, 38, 58, .1) !important; }
html[dir="rtl"] .reach-list::before { background: rgba(19, 38, 58, .1) !important; }
.reach-list::after { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 2px; border-radius: 2px; z-index: 0;
  background: linear-gradient(90deg, #8fd0ef, var(--jci) 55%, var(--barque));
  transform: scaleX(var(--p, 0)); transform-origin: left center; }
html[dir="rtl"] .reach-list::after { background: linear-gradient(270deg, #8fd0ef, var(--jci) 55%, var(--barque)); transform-origin: right center; }
.reach-item::before { transition: background .5s, border-color .5s, transform .5s cubic-bezier(.2, .8, .2, 1.4), box-shadow .5s; border-color: rgba(19,38,58,.18) !important; }
.reach-item.lit::before { border-color: var(--jci) !important; background: var(--jci) !important; transform: scale(1.15); }
.reach-here::before { background: #fff !important; border: 2px solid rgba(19,38,58,.18) !important; box-shadow: none !important; animation: none !important; }
.reach-here.lit::before { background: var(--barque) !important; border-color: var(--barque) !important; transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(237,194,19,.22), 0 0 0 12px rgba(237,194,19,.1) !important; animation: reachPulse 2.8s ease-out .6s infinite !important; }
.reach-year { font-size: clamp(3rem, 6vw, 5.4rem) !important; letter-spacing: -.04em !important; transition: color .6s, opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reach-item .reach-year, .reach-item:not(.reach-here) .reach-year { color: rgba(19,38,58,.12) !important; transform: translateY(10px); }
.reach-item.lit .reach-year, .reach-item.lit:not(.reach-here) .reach-year { color: var(--encre) !important; transform: none; }
.reach-here .reach-year { -webkit-text-fill-color: rgba(19,38,58,.12); }
.reach-here.lit .reach-year { -webkit-text-fill-color: transparent; }
.reach-item > :not(.reach-year) { transition: opacity .6s .1s, transform .6s .1s; opacity: .35; transform: translateY(8px); }
.reach-item.lit > :not(.reach-year) { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .reach-list::after { top: 6px; bottom: 6px; inset-inline-start: 8px; inset-inline-end: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, #8fd0ef, var(--jci) 55%, var(--barque)) !important; transform: scaleY(var(--p, 0)); transform-origin: center top !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reach-list::after { transform: none !important; }
  .reach-item .reach-year, .reach-item > :not(.reach-year) { opacity: 1 !important; transform: none !important; color: var(--encre) !important; }
}
.reach-here:not(.lit) .reach-year { background: none !important; -webkit-text-fill-color: rgba(19,38,58,.12) !important; }

/* Étincelle à la pointe du fil + survol */
.reach-spark { position: absolute; top: 10px; inset-inline-start: calc(var(--p, 0) * 100%); width: 0; height: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .4s; }
.reach-spark::before { content: ""; position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(0,151,215,.35), 0 0 18px 6px rgba(0,151,215,.55), 0 0 40px 14px rgba(237,194,19,.25); }
.reach-spark::after { content: ""; position: absolute; top: -1px; inset-inline-end: 0; width: 90px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); filter: blur(1px); }
html[dir="rtl"] .reach-spark::after { background: linear-gradient(270deg, transparent, rgba(255,255,255,.9)); }
.reach-list.drawing .reach-spark { opacity: 1; }
.reach-year { font-variant-numeric: tabular-nums; }
.reach-item { cursor: default; outline: none; transition: opacity .4s; }
.reach-list.focusing .reach-item.lit:not(.hot) { opacity: .38; }
.reach-item.hot::before { transform: scale(1.5) !important; }
.reach-item.hot .reach-year { transform: translateY(-6px) !important; }
.reach-item.hot h4 { color: var(--jci) !important; }
.reach-item h4 { transition: color .3s; }
.reach-item:focus-visible { box-shadow: 0 0 0 3px rgba(0,151,215,.35) !important; border-radius: 12px !important; }
@media (max-width: 860px) {
  .reach-spark { top: calc(var(--p, 0) * 100%); inset-inline-start: 9px; }
  .reach-spark::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .reach-spark { display: none; } }
.reach-list.focusing .reach-item.lit:not(.hot) { opacity: .38 !important; }
/* (l'apparition au défilement fixe l'opacité de l'élément : on estompe donc son contenu) */
.reach-list.focusing .reach-item.lit:not(.hot) > * { opacity: .32 !important; transition: opacity .4s !important; }
.reach-list.focusing .reach-item.lit:not(.hot)::before { opacity: .45; }

/* Corrections de la frise :
   - pas de carte blanche ni d'ombre au survol ou au clic (reste de l'ancien style des cartes) ;
   - le fil s'arrête au repère de Kélibia au lieu de continuer dans le vide ;
   - au survol, les autres dates s'estompent juste un peu (pas au point de paraître éteintes). */
.reach-list .reach-item:hover, .reach-list .reach-item:focus, .reach-list .reach-item:focus-visible, .reach-list .reach-here:hover {
  background: none !important; box-shadow: none !important; transform: none !important; }
.reach-list::before, .reach-list::after { inset-inline-end: var(--end, 0px) !important; }
.reach-spark { inset-inline-start: calc(var(--p, 0) * (100% - var(--end, 0px))); }
.reach-list.focusing .reach-item.lit:not(.hot) > * { opacity: .55 !important; }
.reach-list.focusing .reach-item.lit:not(.hot)::before { opacity: .7; }
.reach-item.hot::before { transform: scale(1.3) !important; }
.reach-here.hot::before { transform: scale(1.15) !important; }
@media (max-width: 860px) {
  .reach-list::before, .reach-list::after { inset-inline-end: auto !important; bottom: var(--endv, 6px) !important; }
  .reach-spark { inset-inline-start: 9px; top: calc(6px + var(--p, 0) * (100% - 6px - var(--endv, 6px))); }
}

/* ---------- Mission et vision : un panneau de nuit ----------
   Rappel de la nuit de l'accueil : fond bleu nuit étoilé, coins arrondis.
   Deux phrases côte à côte, séparées par un fil doré ; texte dans la police de lecture
   (plus lisible que la police de titre pour des phrases longues).
   Une lueur douce suit la souris sur le panneau. */
.mv { position: relative; overflow: hidden; isolation: isolate; border-top: 0 !important;
  margin-top: clamp(64px, 8vw, 110px) !important; padding: clamp(40px, 5vw, 72px) clamp(28px, 5vw, 80px) !important;
  border-radius: 28px; display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important;
  background:
    radial-gradient(420px 420px at var(--mx, 70%) var(--my, 30%), rgba(0,151,215,.28), rgba(0,151,215,0) 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(0,151,215,.35), rgba(0,151,215,0) 60%),
    linear-gradient(160deg, #04142b 0%, #082547 55%, #0c3561 100%);
  box-shadow: 0 40px 80px -40px rgba(7,26,46,.55); }
.mv::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 28% 68%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 41% 14%, #fff 99%, transparent), radial-gradient(1px 1px at 57% 82%, #fff 99%, transparent),
    radial-gradient(1px 1px at 66% 36%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 79% 58%, #ffe2b0 99%, transparent),
    radial-gradient(1px 1px at 88% 18%, #fff 99%, transparent), radial-gradient(1px 1px at 94% 74%, #fff 99%, transparent),
    radial-gradient(1px 1px at 6% 86%, #fff 99%, transparent), radial-gradient(1px 1px at 35% 42%, #fff 99%, transparent);
  animation: mvTwinkle 6s ease-in-out infinite alternate; }
@keyframes mvTwinkle { from { opacity: .45; } to { opacity: .85; } }
.mv-item { position: relative; padding: 0 clamp(20px, 3.5vw, 56px) !important; }
.mv-item + .mv-item::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 0; width: 1px;
  background: linear-gradient(180deg, rgba(237,194,19,0), rgba(237,194,19,.75), rgba(237,194,19,0)); }
.mv-item:first-child { padding-inline-start: 0 !important; }
.mv-item:last-child { padding-inline-end: 0 !important; }
.mv-item h3 { color: var(--barque, #edc213) !important; font-size: .95rem !important; letter-spacing: .02em; margin: 0 0 16px !important; }
.mv-text, html[lang="ar"] .mv-text { font-family: inherit !important; color: #fff !important; font-weight: 500 !important;
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important; line-height: 1.6 !important; }
html[lang="ar"] .mv-text { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif !important; line-height: 1.8 !important; }
@media (max-width: 860px) {
  .mv { grid-template-columns: 1fr; border-radius: 22px; margin-inline: 12px; }
  .mv-item, .mv-item:first-child, .mv-item:last-child { padding: 0 !important; }
  .mv-item + .mv-item { margin-top: 28px; padding-top: 28px !important; }
  .mv-item + .mv-item::before { inset-block: 0 auto; inset-inline: 0; width: auto; height: 1px;
    background: linear-gradient(90deg, rgba(237,194,19,0), rgba(237,194,19,.75), rgba(237,194,19,0)); }
}
@media (prefers-reduced-motion: reduce) { .mv::before { animation: none; } }

/* ---------- Mission et vision : sans panneau ----------
   Pas de boîte, pas d'étoiles, pas de dégradé : seulement la typographie.
   La mission est écrite en grand ; ses mots passent du gris pâle à l'encre au fil du défilement,
   comme si on la lisait à voix haute. La vision suit, plus petite, avec le même effet. */
.mv { display: block !important; background: none !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 0 !important; overflow: visible; margin-top: clamp(80px, 10vw, 140px) !important; }
.mv::before { content: none !important; }
.mv-item, .mv-item:first-child, .mv-item:last-child { padding: 0 !important; max-width: 30ch; }
.mv-item + .mv-item { margin-top: clamp(48px, 6vw, 80px); max-width: 36ch; }
.mv-item + .mv-item::before { content: none !important; }
.mv-item h3 { color: var(--jci) !important; font-size: .95rem !important; margin: 0 0 18px !important; }
.mv-text, html[lang="ar"] .mv-text { color: var(--encre) !important; font-weight: 600 !important; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 4vw, 3.3rem) !important; line-height: 1.3 !important; }
html[lang="ar"] .mv-text { line-height: 1.6 !important; letter-spacing: 0; }
.mv-item + .mv-item .mv-text { font-size: clamp(1.4rem, 2.6vw, 2.1rem) !important; }
.mv-w { color: rgba(19, 38, 58, .16); transition: color .35s ease; }
.mv-w.on { color: var(--encre); }
@media (max-width: 860px) { .mv { margin-inline: 0; } .mv-item, .mv-item + .mv-item { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .mv-w { color: var(--encre); transition: none; } }
.mv-item, .mv-item:first-child, .mv-item:last-child { max-width: min(1040px, 100%) !important; }
.mv-item + .mv-item { max-width: min(860px, 100%) !important; }

/* ---------- Mission et vision autour du logo JCI ----------
   Le logo officiel au centre ; la mission d'un côté, la vision de l'autre,
   chacune alignée vers le logo. Pas de fond ni de cadre. */
.mv { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(28px, 5vw, 80px) !important;
  margin-top: clamp(80px, 10vw, 130px) !important; padding: clamp(36px, 4vw, 56px) 0 !important;
  border-block: 1px solid var(--line) !important; }
.mv-item, .mv-item:first-child, .mv-item:last-child, .mv-item + .mv-item { max-width: none !important; margin: 0 !important; }
.mv-item:first-child { text-align: end; }
.mv-item:last-child { text-align: start; }
.mv-logo { display: flex; align-items: center; justify-content: center; }
.mv-logo img { width: clamp(150px, 16vw, 230px); height: auto; display: block; }
.mv-item h3 { margin: 0 0 12px !important; }
.mv-text, html[lang="ar"] .mv-text, .mv-item + .mv-item .mv-text { font-size: clamp(1.15rem, 1.7vw, 1.45rem) !important; font-weight: 500 !important;
  line-height: 1.65 !important; color: var(--encre) !important; letter-spacing: 0 !important; }
html[lang="ar"] .mv-text { line-height: 1.85 !important; }
@media (max-width: 860px) {
  .mv { grid-template-columns: 1fr; text-align: center; gap: 28px !important; }
  .mv-logo { order: -1; }
  .mv-item:first-child, .mv-item:last-child { text-align: center; }
}

/* ---------- Mission / logo / vision : version sceau ----------
   Le logo est posé dans un médaillon blanc (ombre douce, anneau fin), relié aux deux textes
   par deux traits qui s'estompent. Un anneau pointillé tourne lentement autour du médaillon.
   Textes plus présents, titres en or. */
.mv { border-block: 0 !important; padding: clamp(24px, 3vw, 40px) 0 !important; gap: 0 !important; }
.mv-item { padding: 0 !important; }
.mv-logo { position: relative; width: clamp(190px, 17vw, 240px); aspect-ratio: 1; margin: 0 clamp(40px, 5vw, 88px); }
.mv-logo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(7, 26, 46, .35), 0 0 0 10px rgba(0, 151, 215, .05); }
.mv-logo::after { content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px dashed rgba(0, 151, 215, .35); animation: mvRing 40s linear infinite; }
@keyframes mvRing { to { transform: rotate(360deg); } }
.mv-logo img { position: relative; z-index: 1; width: 66%; }
/* traits de liaison vers les textes */
.mv-logo > img + i, .mv-logo i { display: none; }
.mv-item:first-child, .mv-item:last-child { position: relative; }
.mv-item:first-child::after, .mv-item:last-child::after { content: ""; position: absolute; top: 50%; width: clamp(28px, 4vw, 72px); height: 1px; }
.mv-item:first-child::after { inset-inline-end: calc(-1 * clamp(40px, 5vw, 88px) - 14px + 6px); background: linear-gradient(var(--dir-s, 90deg), rgba(237,194,19,0), var(--barque)); }
.mv-item:last-child::after { inset-inline-start: calc(-1 * clamp(40px, 5vw, 88px) - 14px + 6px); background: linear-gradient(var(--dir-s, 90deg), var(--barque), rgba(237,194,19,0)); }
html[dir="rtl"] .mv-item:first-child::after, html[dir="rtl"] .mv-item:last-child::after { --dir-s: 270deg; }
.mv-item h3 { color: #b98a00 !important; font-size: .9rem !important; letter-spacing: .04em; margin: 0 0 14px !important; }
.mv-text, html[lang="ar"] .mv-text, .mv-item + .mv-item .mv-text { font-size: clamp(1.25rem, 1.9vw, 1.65rem) !important; font-weight: 600 !important; }
@media (max-width: 860px) {
  .mv-logo { margin: 0 auto 8px; width: 170px; }
  .mv-item:first-child::after, .mv-item:last-child::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mv-logo::after { animation: none; } }
.mv-item .mv-text { max-width: 24em !important; }
.mv-item:first-child .mv-text { margin-inline-start: auto !important; }
.mv-logo::after { border-color: rgba(0, 151, 215, .45); }
@media (max-width: 860px) { .mv-item .mv-text { margin-inline: auto !important; } }

/* ---------- Mission / logo / vision : interactions ---------- */
.mv { perspective: 900px; }
.mv-logo { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.mv-logo img { transform: translateZ(40px); transition: transform .4s; }
.mv-logo::before { transition: box-shadow .5s; }
.mv:hover .mv-logo::before { box-shadow: 0 40px 70px -30px rgba(7, 26, 46, .45), 0 0 0 12px rgba(0, 151, 215, .08); }
.mv:hover .mv-logo::after { animation-duration: 12s; }
/* traits : se tracent depuis le logo */
.mv-item:first-child::after, .mv-item:last-child::after { transition: transform .9s cubic-bezier(.2, .8, .2, 1) .35s, height .3s, box-shadow .3s, opacity .3s; }
.mv-item:first-child::after { transform-origin: var(--o-end, left) center; }
.mv-item:last-child::after { transform-origin: var(--o-start, right) center; }
html[dir="ltr"] .mv-item:first-child::after, html:not([dir="rtl"]) .mv-item:first-child::after { --o-end: right; }
html:not([dir="rtl"]) .mv-item:last-child::after { --o-start: left; }
html[dir="rtl"] .mv-item:first-child::after { --o-end: left; }
html[dir="rtl"] .mv-item:last-child::after { --o-start: right; }
/* entrée : médaillon, puis traits, puis textes depuis le logo */
.mv-anim .mv-logo { opacity: 0; scale: .7; transition: opacity .7s, scale .9s cubic-bezier(.2, .8, .2, 1.2); }
.mv-anim .mv-item:first-child::after, .mv-anim .mv-item:last-child::after { transform: scaleX(0); }
.mv-anim .mv-item > * { opacity: 0; transition: opacity .7s, translate .8s cubic-bezier(.2, .8, .2, 1); }
.mv-anim .mv-item:first-child > * { translate: var(--fx, -30px) 0; }
.mv-anim .mv-item:last-child > * { translate: var(--lx, 30px) 0; }
html[dir="rtl"] .mv-anim .mv-item:first-child > * { --fx: -30px; }
html:not([dir="rtl"]) .mv-anim .mv-item:first-child > * { --fx: 30px; }
html:not([dir="rtl"]) .mv-anim .mv-item:last-child > * { --lx: -30px; }
.mv-anim .mv-item > :nth-child(2) { transition-delay: .1s; }
.mv-anim.mv-in .mv-logo { opacity: 1; scale: 1; }
.mv-anim.mv-in .mv-item:first-child::after, .mv-anim.mv-in .mv-item:last-child::after { transform: scaleX(1); }
.mv-anim.mv-in .mv-item > * { opacity: 1; translate: 0 0; transition-delay: .7s; }
.mv-anim.mv-in .mv-item > :nth-child(2) { transition-delay: .82s; }
/* survol d'un côté */
.mv-item h3, .mv-text { transition: opacity .6s, color .4s, translate .8s cubic-bezier(.2, .8, .2, 1); }
.mv.mv-focus .mv-item:not(.mv-hot) > * { opacity: .35 !important; transition-delay: 0s !important; }
.mv-item.mv-hot::after { height: 2px !important; box-shadow: 0 0 12px rgba(237, 194, 19, .7); }
.mv-item.mv-hot h3 { color: var(--jci) !important; }
@media (max-width: 860px) {
  .mv-anim .mv-item > *, html .mv-anim .mv-item:first-child > *, html .mv-anim .mv-item:last-child > * { translate: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-logo { transform: none !important; }
}

/* ---------- Mission / logo / vision : composition symétrique ----------
   Les deux textes sont centrés dans leur colonne (avant : l'un collé au logo, l'autre au bord,
   ce qui déséquilibrait). Médaillon plus léger, titres plus lisibles avec un petit trait doré. */
.mv { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; }
.mv-item:first-child, .mv-item:last-child { text-align: center !important; }
.mv-item .mv-text, .mv-item:first-child .mv-text { max-width: 21em !important; margin-inline: auto !important; }
.mv-item h3 { font-size: 1rem !important; color: #b98a00 !important; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px !important; }
.mv-item h3::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--barque); transition: width .4s; }
.mv-item.mv-hot h3::after { width: 56px; }
.mv-text, html[lang="ar"] .mv-text, .mv-item + .mv-item .mv-text { font-size: clamp(1.2rem, 1.75vw, 1.5rem) !important; }
.mv-logo { width: clamp(170px, 14vw, 200px) !important; }
.mv-logo::before { box-shadow: 0 24px 44px -26px rgba(7, 26, 46, .3), 0 0 0 8px rgba(0, 151, 215, .04) !important; }
.mv:hover .mv-logo::before { box-shadow: 0 30px 54px -26px rgba(7, 26, 46, .38), 0 0 0 10px rgba(0, 151, 215, .07) !important; }
.mv-logo::after { inset: -12px; border-color: rgba(0, 151, 215, .3); }
.mv-item:first-child::after, .mv-item:last-child::after { width: clamp(24px, 3vw, 56px) !important; opacity: .8; }

/* ---------- Le logo seul, sans médaillon ----------
   Plus de cercle blanc, d'anneau gris ni d'anneau pointillé (effet « badge » cheap) :
   le logo officiel est posé tel quel, avec une lueur bleue très douce derrière
   qui s'intensifie au survol. Les traits dorés viennent jusqu'à lui. */
.mv-logo { width: clamp(200px, 16vw, 250px) !important; aspect-ratio: auto !important; padding: 28px 0; margin: 0 clamp(36px, 4vw, 72px) !important; }
.mv-logo::after { content: none !important; animation: none !important; }
.mv-logo::before { inset: -10% -6% !important; border: 0 !important; border-radius: 50% !important; box-shadow: none !important;
  background: radial-gradient(closest-side, rgba(0, 151, 215, .1), rgba(0, 151, 215, 0)) !important; transition: opacity .5s, transform .6s; }
.mv:hover .mv-logo::before { box-shadow: none !important; transform: scale(1.15); background: radial-gradient(closest-side, rgba(0, 151, 215, .16), rgba(0, 151, 215, 0)) !important; }
.mv-logo img { width: 100% !important; filter: drop-shadow(0 14px 18px rgba(7, 26, 46, .12)); }
.mv-item:first-child::after { inset-inline-end: calc(-1 * clamp(36px, 4vw, 72px)) !important; }
.mv-item:last-child::after { inset-inline-start: calc(-1 * clamp(36px, 4vw, 72px)) !important; }
.mv-item:first-child::after, .mv-item:last-child::after { width: clamp(28px, 3.4vw, 60px) !important; }
@media (max-width: 860px) { .mv-logo { width: 190px !important; margin: 0 auto !important; padding: 8px 0; } }

/* ---------- Mission et vision avec une vraie photo ----------
   Photo de l'Académie des Leaders d'un côté (ce que la mission produit concrètement),
   mission et vision de l'autre. La photo se dézoome doucement à l'arrivée et suit
   légèrement le défilement ; la mission est mise en avant, la vision vient en second. */
.mvx { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-top: clamp(80px, 10vw, 130px); }
.mvx-photo { margin: 0; position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 940 / 560;
  box-shadow: 0 40px 70px -40px rgba(7, 26, 46, .5); }
.mvx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block;
  transform: scale(var(--mvz, 1.12)) translateY(var(--mvy, 0px)); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.mvx-photo:hover img { --mvz: 1.04; }
.mvx-photo figcaption { position: absolute; inset-inline-start: 16px; bottom: 14px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--encre); font-size: .82rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mvx.in .mvx-photo img { --mvz: 1; }





/* entrée : le texte glisse depuis le côté de la photo */



@media (max-width: 860px) {
  .mvx { grid-template-columns: 1fr; gap: 28px; }
  .mvx-photo { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .mvx-photo img { transform: none; transition: none; } }

/* ---------- Motif « Ripples » de la charte JCI autour du logo ---------- */
.mv-logo { width: clamp(260px, 24vw, 340px) !important; aspect-ratio: 1 !important; padding: 0 !important; display: grid !important; place-items: center; }
.mv-logo::before { content: none !important; }
.mv-logo img { width: 34% !important; position: relative; z-index: 1; filter: none !important; transform: translateZ(30px); }
.ripples { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rp-ring { transform-origin: 100px 100px; transform-box: view-box; animation: rpSpin var(--d, 80s) linear infinite; animation-direction: var(--dir, normal); }
.rp-ring path { fill: none; stroke-width: 2.7; stroke-linecap: butt; }
@keyframes rpSpin { to { transform: rotate(360deg); } }
.mv:hover .rp-ring { animation-duration: calc(var(--d, 80s) / 4); }
/* entrée : les anneaux se tracent du centre vers l'extérieur */
.mv-anim .rp-ring path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms); }
.mv-anim.mv-in .rp-ring path { stroke-dashoffset: 0; }
.mv-anim .mv-logo { scale: 1 !important; }
.mv-item:first-child::after, .mv-item:last-child::after { display: none !important; }
@media (max-width: 860px) { .mv-logo { width: 240px !important; margin: 0 auto !important; } }
@media (prefers-reduced-motion: reduce) { .rp-ring { animation: none; } .mv-anim .rp-ring path { stroke-dashoffset: 0; transition: none; } }
/* Garder la spirale de couleurs cohérente (comme le motif officiel) : tout le motif tourne d'un bloc,
   très lentement, et chaque anneau « respire » seulement de quelques degrés autour de sa place. */
.ripples { animation: rpSpin 140s linear infinite; }
.rp-ring { animation: rpSway calc(5s + var(--i) * .45s) ease-in-out infinite alternate !important; animation-direction: alternate !important; }
.rp-ring:nth-child(even) { animation-name: rpSway2 !important; }
@keyframes rpSway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes rpSway2 { from { transform: rotate(5deg); } to { transform: rotate(-5deg); } }
.mv:hover .ripples { animation-duration: 40s; }
.mv:hover .rp-ring { animation-duration: calc(2s + var(--i) * .2s) !important; }
@media (prefers-reduced-motion: reduce) { .ripples, .rp-ring { animation: none !important; } }
@media (max-width: 860px) {
  .mv { grid-template-columns: 1fr !important; gap: 28px !important; text-align: center; }
  .mv-logo { order: -1; width: 230px !important; margin: 0 auto !important; }
}

/* ---------- Ripples : survol et ombre ----------
   Ombre : une ombre colorée douce sous le motif + une ombre au sol (ellipse floue) qui
   se resserre quand le motif se soulève.
   Survol : le motif se soulève, les anneaux s'écartent l'un après l'autre du centre vers
   l'extérieur (comme une onde à la surface de l'eau), les couleurs s'avivent, le logo grossit un peu. */
.ripples { filter: drop-shadow(0 14px 22px rgba(0, 151, 215, .16)) drop-shadow(0 4px 6px rgba(7, 26, 46, .08));
  translate: 0 0; transition: translate .7s cubic-bezier(.2, .8, .2, 1), filter .7s; }
.mv-logo::after { content: "" !important; position: absolute; inset: auto 18% -26px; height: 26px; border: 0 !important; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 26, 46, .22), rgba(7, 26, 46, 0)); animation: none !important;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s; pointer-events: none; }
.rp-ring { scale: 1; transition: scale .9s cubic-bezier(.2, .9, .25, 1.25); transition-delay: calc(var(--i) * 35ms); }
.rp-ring path { transition: stroke-width .5s, opacity .5s; }
.mv-logo img { transition: transform .7s cubic-bezier(.2, .8, .2, 1.3) !important; }

.mv:hover .ripples { translate: 0 -8px; filter: drop-shadow(0 26px 34px rgba(0, 151, 215, .26)) drop-shadow(0 8px 12px rgba(7, 26, 46, .1)); }
.mv:hover .mv-logo::after { transform: scaleX(.8); opacity: .7; }
.mv:hover .rp-ring { scale: calc(1 + var(--i) * .011); }
.mv:hover .rp-ring path { stroke-width: 3.1; }
.mv:hover .mv-logo img { transform: translateZ(30px) scale(1.08) !important; }
/* survol d'un côté : les anneaux de ce côté s'intensifient légèrement */
.mv.mv-focus .rp-ring path { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .rp-ring, .ripples, .mv-logo::after { transition: none !important; } }

/* ---------- Rappels du motif Ripples (charte JCI 2026) dans les sections ----------
   Grands motifs coupés par le bord de l'écran, en arrière-plan, alternés gauche / droite :
   ils font le lien visuel entre les sections sans gêner la lecture. */
.has-rip { position: relative; isolation: isolate; }
.has-rip > :not(.rip-deco) { position: relative; z-index: 1; }
.rip-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.rip-svg { position: absolute; transition: rotate .2s linear; }
.rip-svg .rp-ring { animation: none !important; transition: none; }
.rip-anim .rp-ring path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 90ms); }
.rip-anim.rip-in .rp-ring path { stroke-dashoffset: 0; }
/* sur fond sombre (projets, pied de page) le motif reste lisible mais plus discret */
@media (max-width: 860px) { .rip-svg { width: 340px !important; height: 340px !important; } }
@media (max-width: 860px) { section.history .rip-deco { display: none; } }
.rip-svg { width: var(--rs); height: var(--rs); }
@media (max-width: 860px) { .rip-svg { --rs: 340px !important; width: var(--rs) !important; height: var(--rs) !important; } }
@media (max-width: 860px) { footer.footer .rip-deco { display: none; } }

/* ---------- Rappels Ripples affinés ----------
   Traits plus fins et plus nombreux (texture plus délicate), bords fondus en douceur
   (le motif se dissout au lieu d'être coupé net), une respiration très lente des anneaux,
   et une légère parallaxe à la souris. */
.rip-svg { -webkit-mask-image: radial-gradient(closest-side, #000 55%, rgba(0,0,0,.35) 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, rgba(0,0,0,.35) 80%, transparent 100%); }
.rip-svg .rp-ring { animation: ripBreath calc(7s + var(--i) * .6s) ease-in-out infinite alternate !important; transform-origin: 100px 100px; transform-box: view-box; }
.rip-svg .rp-ring:nth-child(even) { animation-direction: alternate-reverse !important; }
@keyframes ripBreath { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
/* sur les fonds sombres : plus lumineux mais plus transparent */
section.projects .rip-svg, footer.footer .rip-svg { filter: saturate(1.2) brightness(1.15); }
@media (prefers-reduced-motion: reduce) { .rip-svg .rp-ring { animation: none !important; } }
/* « Qui sommes-nous » : le motif apparaît derrière la photo, dans l'espace libre près de l'histoire.
   La section garde le haut transparent (fondu de l'accueil) : le motif reste sous la photo. */
section.about .rip-deco { top: 150px; }
@media (max-width: 860px) { section.about .rip-deco { display: none; } }

/* ---------- Accueil : halo Ripples derrière le fort ---------- */
.hero .montage { position: relative; }
.hero-rip { position: absolute; left: 50%; top: 46%; width: min(980px, 92vw); aspect-ratio: 1; margin-left: calc(min(980px, 92vw) / -2);
  margin-top: calc(min(980px, 92vw) / -2); z-index: 0; pointer-events: none; opacity: .3; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.4) 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, rgba(0,0,0,.4) 72%, transparent 100%); }
.hero-rip svg { width: 100%; height: 100%; animation: rpSpin 240s linear infinite; filter: drop-shadow(0 0 6px rgba(14,165,224,.45)); }
.hero-rip .rp-ring { transform-origin: 100px 100px; transform-box: view-box; animation: ripBreath calc(8s + var(--i) * .5s) ease-in-out infinite alternate; }
.hero-rip .rp-ring:nth-child(even) { animation-direction: alternate-reverse; }
.hero-rip .rp-ring path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.4s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 110ms); }
.hero-rip.on .rp-ring path { stroke-dashoffset: 0; }
.hero .montage .fort-wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .hero-rip { opacity: .22; } }
@media (prefers-reduced-motion: reduce) { .hero-rip svg, .hero-rip .rp-ring { animation: none; } .hero-rip .rp-ring path { stroke-dashoffset: 0; transition: none; } }

/* ---------- Accueil : le fort reste seul, éclairé ----------
   Plus de halo. À la place, la lumière dorée des projecteurs du fort se diffuse doucement dans la nuit
   autour de lui (comme le vrai fort illuminé vu de loin), et une brume claire flotte sous la colline.
   La lueur vit au rythme de l'allumage du fort et respire très lentement. */
.hero-rip { display: none !important; }
.hero .montage::before { content: ""; position: absolute; left: 50%; top: 34%; width: min(1100px, 96vw); height: min(420px, 40vw);
  translate: -50% -50%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 176, 72, .22), rgba(255, 150, 60, .08) 55%, rgba(255, 150, 60, 0));
  filter: blur(10px); opacity: 0; animation: fortGlowIn 2.4s ease-out 1.6s forwards, fortGlow 7s ease-in-out 4s infinite alternate; }
@keyframes fortGlowIn { to { opacity: 1; } }
@keyframes fortGlow { from { opacity: 1; scale: 1; } to { opacity: .75; scale: 1.05; } }
.hero .montage { isolation: isolate; }
@media (prefers-reduced-motion: reduce) { .hero .montage::before { animation: none; opacity: 1; } }
.hero .montage::before { opacity: 1; animation: fortGlow 7s ease-in-out infinite alternate !important; }
.hero .montage::before { background: radial-gradient(closest-side, rgba(255, 176, 72, .3), rgba(255, 150, 60, .1) 55%, rgba(255, 150, 60, 0)) !important; }

/* ---------- Les 4 piliers : panneaux qui s'ouvrent ----------
   Quatre panneaux pleins, chacun dans la couleur officielle de son pilier. Le panneau actif s'élargit
   et révèle sa description, l'exemple à Kélibia et le programme JCI ; les autres gardent leur titre.
   Un motif Ripples blanc tourne lentement dans le coin du panneau actif. */
section.why .rip-deco { display: none !important; }
.why ul.px-panels { display: flex !important; gap: 14px !important; height: clamp(460px, 40vw, 540px); margin-top: 40px !important; grid-template-columns: none !important; }
.why ul.px-panels > li.area { --pc: #1f4a8a; --ink: #fff; --ink2: rgba(255,255,255,.82);
  flex: 1 1 0 !important; min-width: 0; position: relative; overflow: hidden; cursor: pointer; isolation: isolate;
  display: flex !important; flex-direction: column; justify-content: flex-end; gap: 0;
  padding: clamp(22px, 2.2vw, 34px) !important; border-radius: 26px !important; border: 0 !important;
  background: var(--pc) !important; color: var(--ink) !important; transform: none !important;
  box-shadow: 0 24px 50px -32px rgba(7, 26, 46, .55) !important;
  transition: flex-grow .75s cubic-bezier(.2, .8, .2, 1), box-shadow .5s !important; }
.why ul.px-panels > li.area::before, .why ul.px-panels > li.area::after { content: none !important; }
.why ul.px-panels > li.area-com { --pc: #1f4a8a; }
.why ul.px-panels > li.area-biz { --pc: #2a9d9c; }
.why ul.px-panels > li.area-int { --pc: #0097d7; }
.why ul.px-panels > li.area-ind { --pc: #edc213; --ink: #13263a; --ink2: rgba(19,38,58,.78); }
.why ul.px-panels > li.area.on { flex-grow: 2.9 !important; box-shadow: 0 36px 70px -34px rgba(7, 26, 46, .7) !important; }
/* dégradé sombre en bas pour la lisibilité, motif en haut */
.why ul.px-panels > li.area > * { position: relative; z-index: 1; }
.px-rip { position: absolute !important; z-index: 0 !important; width: 340px; height: 340px; top: -110px; inset-inline-end: -110px;
  opacity: .22; transition: opacity .7s, scale .9s cubic-bezier(.2, .8, .2, 1); animation: rpSpin 90s linear infinite; }
.px-rip .rp-ring path { stroke: var(--ink) !important; }
.why ul.px-panels > li.area.on .px-rip { opacity: .4; scale: 1.15; }
/* titre */
.why ul.px-panels h3 { margin: 0 0 8px !important; font-size: clamp(1.3rem, 1.8vw, 1.75rem) !important; line-height: 1.25 !important; color: var(--ink) !important; }
.why ul.px-panels h3 mark { background: none !important; color: inherit !important; padding: 0 !important; box-shadow: none !important; }
.why ul.px-panels .area-tag { margin: 0 !important; color: var(--ink2) !important; font-weight: 600; font-size: .95rem !important; line-height: 1.5; }
/* contenu révélé */
.why ul.px-panels > li.area > p:not(.area-tag), .why ul.px-panels .area-ex, .why ul.px-panels dl {
  max-height: 0; opacity: 0; overflow: hidden; margin: 0 !important; translate: 0 12px;
  transition: max-height .6s cubic-bezier(.2, .8, .2, 1), opacity .4s, translate .6s, margin .6s; }
.why ul.px-panels > li.area.on > p:not(.area-tag), .why ul.px-panels > li.area.on .area-ex, .why ul.px-panels > li.area.on dl {
  max-height: 260px; opacity: 1; translate: 0 0; transition-delay: .28s; }
.why ul.px-panels > li.area.on > p:not(.area-tag) { margin-top: 16px !important; color: var(--ink2) !important; line-height: 1.7; max-width: 46ch; }
.why ul.px-panels .area-ex { color: var(--ink) !important; background: rgba(255,255,255,.12) !important; border: 0 !important; border-radius: 14px; padding: 0 14px !important; font-size: .92rem; line-height: 1.6; }
.why ul.px-panels > li.area-ind .area-ex { background: rgba(19,38,58,.08) !important; }
.why ul.px-panels > li.area.on .area-ex { margin-top: 14px !important; padding: 10px 14px !important; }
.why ul.px-panels .area-ex b { display: block; color: var(--ink) !important; font-size: .8rem; margin-bottom: 2px; }
.why ul.px-panels dl { display: flex !important; gap: 28px; border-top: 1px solid rgba(255,255,255,.22) !important; }
.why ul.px-panels > li.area-ind dl { border-top-color: rgba(19,38,58,.2) !important; }
.why ul.px-panels > li.area.on dl { margin-top: 16px !important; padding-top: 14px; }
.why ul.px-panels dl dt { color: var(--ink2) !important; font-size: .78rem !important; margin: 0 0 2px !important; }
.why ul.px-panels dl dd { margin: 0 !important; color: var(--ink) !important; font-size: .95rem !important; }
.why ul.px-panels dl dd b { color: var(--ink) !important; font-size: 1.25rem !important; margin-inline-end: 6px; }
.why ul.px-panels dl dd span { color: var(--ink2) !important; font-size: .78rem; }
.why ul.px-panels > li.area:focus-visible { outline: 3px solid rgba(0,151,215,.5); outline-offset: 3px; }
@media (max-width: 860px) {
  .why ul.px-panels { flex-direction: column; height: auto; }
  .why ul.px-panels > li.area { flex: none !important; min-height: 140px; }
  .why ul.px-panels > li.area > p:not(.area-tag), .why ul.px-panels .area-ex, .why ul.px-panels dl { max-height: none; opacity: 1; translate: 0 0; }
  .why ul.px-panels > li.area > p:not(.area-tag) { margin-top: 14px !important; }
  .why ul.px-panels .area-ex { margin-top: 12px !important; padding: 10px 14px !important; }
  .why ul.px-panels dl { margin-top: 14px !important; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .px-rip { animation: none; } .why ul.px-panels > li.area { transition: none !important; } }
.why ul.px-panels:not(.px-ready) > li.area, .why ul.px-panels:not(.px-ready) > li.area * { transition: none !important; }

/* ---------- Piliers : contenu plus clair ----------
   Un panneau ouvert dit trois choses seulement : ce que le domaine t'apporte, un exemple réel
   à Kélibia, et le programme JCI lié (sur une ligne). Fermé, il ne montre que son titre. */
.why ul.px-panels > li.area > p:not(.area-tag):not(.area-ex) { display: none !important; }
.why ul.px-panels dl > div:nth-child(2), .why ul.px-panels dl dd span { display: none !important; }
.why ul.px-panels .area-tag { max-height: 0; opacity: 0; overflow: hidden; translate: 0 10px;
  transition: max-height .6s cubic-bezier(.2, .8, .2, 1), opacity .4s, translate .6s, margin .6s; }
.why ul.px-panels > li.area.on .area-tag { max-height: 200px; opacity: 1; translate: 0 0; margin-top: 12px !important; transition-delay: .25s;
  color: var(--ink) !important; font-weight: 500 !important; font-size: clamp(1rem, 1.2vw, 1.12rem) !important; line-height: 1.7 !important; max-width: 44ch; }
.why ul.px-panels .area-ex b { font-size: .85rem !important; opacity: .85; }
.why ul.px-panels .area-ex span { font-weight: 600; }
.why ul.px-panels dl { gap: 0 !important; }
.why ul.px-panels dl > div:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.why ul.px-panels dl dt { font-size: .85rem !important; }
.why ul.px-panels dl dd b { font-size: 1.15rem !important; }
.why ul.px-panels h3 { font-size: clamp(1.35rem, 1.9vw, 1.85rem) !important; }
@media (max-width: 860px) { .why ul.px-panels .area-tag { max-height: none; opacity: 1; translate: 0 0; margin-top: 10px !important; } }
.why ul.px-panels .area-ex span { color: var(--ink) !important; opacity: 1 !important; font-size: .95rem; }
.why ul.px-panels .area-ex { background: rgba(255,255,255,.16) !important; }

.why ul.px-panels dl { display: none !important; }

/* ---------- Domaines : panneaux affinés ----------
   Plus d'encadré « À Kélibia » : à la place, trois mots-clés du domaine (tirés de la définition officielle),
   en ligne, séparés par de fins traits. Motif Ripples plus petit et plus discret, placé en haut, pour laisser
   respirer le texte. Les panneaux fermés gardent leur titre bien en bas et s'éclaircissent au survol. */
.why ul.px-panels .area-keys { list-style: none; margin: 0 !important; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0;
  max-height: 0; opacity: 0; overflow: hidden; translate: 0 10px;
  transition: max-height .6s cubic-bezier(.2, .8, .2, 1), opacity .4s, translate .6s, margin .6s, padding .6s; }
.why ul.px-panels > li.area.on .area-keys { max-height: 120px; opacity: 1; translate: 0 0; margin-top: 18px !important; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.25); transition-delay: .35s; }
.why ul.px-panels > li.area-ind.on .area-keys { border-top-color: rgba(19,38,58,.2); }
.why ul.px-panels .area-keys li { font-weight: 700; font-size: .95rem; color: var(--ink); }
.why ul.px-panels .area-keys li + li { margin-inline-start: 14px; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.35); }
.why ul.px-panels > li.area-ind .area-keys li + li { border-inline-start-color: rgba(19,38,58,.25); }
.px-rip { width: 260px !important; height: 260px !important; top: -90px !important; inset-inline-end: -90px !important; opacity: .16 !important; }
.why ul.px-panels > li.area.on .px-rip { opacity: .26 !important; scale: 1.1; }
.why ul.px-panels > li.area:not(.on):hover { filter: brightness(1.06); }
.why ul.px-panels > li.area { transition: flex-grow .75s cubic-bezier(.2, .8, .2, 1), box-shadow .5s, filter .3s !important; }
.why ul.px-panels { height: clamp(420px, 34vw, 480px) !important; }
@media (max-width: 860px) {
  .why ul.px-panels { height: auto !important; }
  .why ul.px-panels .area-keys { max-height: none; opacity: 1; translate: 0 0; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); }
}

/* ---------- Domaines : repère « pour qui » + lien vers le programme ----------
   Au-dessus de chaque titre, un petit repère qui se lit d'un coup d'œil (Pour toi / Pour ta ville /
   Avec le monde / Pour ta carrière), visible même panneau fermé. Panneau ouvert : définition plus grande,
   mots-clés, puis un lien vers le programme JCI lié (fait le pont avec la partie Programmes). */
.why ul.px-panels .area-for { margin: 0 0 8px !important; font-size: .85rem; font-weight: 700; color: var(--ink2) !important;
  display: inline-flex; align-items: center; gap: 8px; }
.why ul.px-panels .area-for::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.why ul.px-panels > li.area.on h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem) !important; }
.why ul.px-panels > li.area.on .area-tag { font-size: clamp(1.02rem, 1.25vw, 1.15rem) !important; }
.why ul.px-panels .area-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; text-decoration: none;
  color: var(--ink) !important; font-size: .92rem; border-bottom: 1px solid currentColor; padding-bottom: 2px;
  max-height: 0; opacity: 0; overflow: hidden; margin: 0; transition: max-height .6s, opacity .4s, margin .6s; }
.why ul.px-panels .area-link span { opacity: .8; }
.why ul.px-panels > li.area.on .area-link { max-height: 40px; opacity: 1; margin-top: 18px; transition-delay: .45s; }
.why ul.px-panels .area-link:hover { opacity: .85; }
@media (max-width: 860px) { .why ul.px-panels .area-link { max-height: none; opacity: 1; margin-top: 14px; } }
.why ul.px-panels > li.area > p.area-for { display: inline-flex !important; max-height: none; opacity: 1; translate: 0 0; }
.why ul.px-panels > li.area > p.area-for.area-for.area-for { display: inline-flex !important; }

/* ---------- Passage « mission/vision » → « quatre domaines » ----------
   Plus de coupure nette blanc / gris-bleu ni de grand vide : le fond glisse doucement du blanc au gris-bleu,
   et l'en-tête occupe toute la largeur (titre d'un côté, phrase d'introduction de l'autre, alignés en bas). */
main > section.about { padding-bottom: 28px !important; }
main > section.why { background: linear-gradient(180deg, #fff 0, var(--mist, #f3f6f9) 180px) !important; padding-top: clamp(56px, 6vw, 84px) !important; }
.why .section-head { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px);
  align-items: end; max-width: none !important; margin-bottom: clamp(32px, 4vw, 48px) !important; }
.why .section-head h2 { margin: 0 !important; }
.why .section-head p { margin: 0 !important; max-width: 42ch; font-size: clamp(1.02rem, 1.25vw, 1.15rem) !important; line-height: 1.75 !important;
  padding-inline-start: 18px; border-inline-start: 3px solid var(--barque, #edc213); color: var(--ink-2, #3b4a5c) !important; }
@media (max-width: 860px) { .why .section-head { grid-template-columns: 1fr; gap: 14px; } }
.why .section-head { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) !important; }
.why .section-head h2 { max-width: none !important; white-space: normal; }

/* ---------- Domaines + programmes : ensemble ----------
   - un petit « + » cerclé en haut des panneaux fermés indique qu'ils s'ouvrent (il pivote en « × » sur le panneau ouvert) ;
   - la phrase de conclusion sous les panneaux, redondante, est retirée ;
   - la partie Programmes suit de plus près, séparée par un fin filet. */
.px-plus { position: absolute !important; z-index: 2 !important; top: 20px; inset-inline-start: 20px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid currentColor; color: var(--ink); opacity: .55; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.px-plus::before, .px-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.px-plus::after { rotate: 90deg; }
.why ul.px-panels > li.area:hover .px-plus { opacity: .9; }
.why ul.px-panels > li.area.on .px-plus { transform: rotate(45deg); opacity: 0; }
.pillars-foot { display: none !important; }
@media (max-width: 860px) { .px-plus { display: none; } }


/* ---------- Nos actions : en harmonie avec le reste ----------
   - le fond passe en douceur du gris-bleu de la section précédente au bleu nuit (plus de coupure nette) ;
   - en-tête comme « les quatre domaines » : titre d'un côté, phrase d'intro de l'autre avec le trait doré ;
   - onglets en liste légère (plus de boîtes) : filets fins, l'onglet actif a un trait doré et un fond à peine éclairé ;
   - la vitrine garde ses coins à 24 px et une ombre profonde, comme les fiches. */
main > section.projects { padding-top: 0 !important;
  background: linear-gradient(in oklab 180deg, var(--mist, #f3f6f9) 0, #0c3561 170px, #0a2d55 60%, #082547 100%) !important; }
main > section.projects > .wrap { padding-top: clamp(150px, 14vw, 200px); }
.projects-head { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(30px, 4vw, 46px); }
.projects-head h2 { margin: 0 !important; color: #fff !important; }
.projects-head p { margin: 0; max-width: 42ch; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.75;
  padding-inline-start: 18px; border-inline-start: 3px solid var(--barque, #edc213); }
.show-tabs { gap: 0 !important; }
.show-tabs button { background: none !important; border: 0 !important; border-radius: 12px !important; border-bottom: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: none !important; padding: 18px 20px !important; position: relative; transition: background .3s !important; }
.show-tabs button:last-child { border-bottom: 0 !important; }
.show-tabs button::before { content: ""; position: absolute; inset-block: 16px; inset-inline-start: 0; width: 3px; border-radius: 3px;
  background: var(--barque, #edc213); transform: scaleY(0); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.show-tabs button[aria-selected="true"] { background: rgba(255,255,255,.06) !important; }
.show-tabs button[aria-selected="true"]::before { transform: scaleY(1); }
.show-tabs button:hover { background: rgba(255,255,255,.04) !important; }
.show-tabs button span { color: rgba(255,255,255,.7) !important; transition: color .3s; }
.show-tabs button[aria-selected="true"] span, .show-tabs button:hover span { color: #fff !important; }
.show-tabs button small { color: rgba(255,255,255,.5) !important; }
.show-panel { box-shadow: 0 40px 80px -40px rgba(0,0,0,.6) !important; }
@media (max-width: 860px) { .projects-head { grid-template-columns: 1fr; gap: 14px; } main > section.projects > .wrap { padding-top: 120px; } }

/* ---------- Nos actions : mosaïque d'événements ----------
   Remplace la vitrine à onglets. Trois colonnes :
   - ONE RUN en grande tuile verticale (photo plein cadre), TILAR en tuile large (photo de match) ;
   - Fête de la Musique et Entrep'RISE en tuiles typographiques à leur couleur (« 10 » éditions, « RISE »).
   Texte posé sur un dégradé sombre en bas de la photo ; au survol la photo se rapproche doucement,
   le texte complet se dévoile et le lien « Voir les photos » apparaît. Clic = ouvre l'album. */
.showcase { display: none !important; }
.ev-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 18px; }
.ev { position: relative; overflow: hidden; border-radius: 24px; border: 0; padding: 0; margin: 0; text-align: start; font: inherit; color: #fff;
  display: flex; align-items: flex-end; isolation: isolate; background: var(--ec);
  box-shadow: 0 30px 60px -36px rgba(0,0,0,.6); transition: translate .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
button.ev { cursor: pointer; }
.ev:hover { translate: 0 -5px; box-shadow: 0 40px 70px -36px rgba(0,0,0,.7); }
.ev:focus-visible { outline: 3px solid var(--barque, #edc213); outline-offset: 3px; }
.ev-onerun { grid-row: 1 / span 2; }
.ev-tilar { grid-column: 2 / span 2; }
.ev > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s cubic-bezier(.2, .8, .2, 1); }
.ev-onerun > img { object-position: 50% 30%; }
.ev:hover > img { scale: 1.05; }
.ev > img + .ev-body::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(5, 18, 36, .88) 0%, rgba(5, 18, 36, .45) 45%, rgba(5, 18, 36, 0) 75%); }
.ev-body { display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 2.2vw, 30px); width: 100%; }
.ev-meta { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 8px; }
.ev-meta::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--barque, #edc213); }
.ev-title { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.2; }
.ev-onerun .ev-title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.ev-text { font-size: .98rem; line-height: 1.65; color: rgba(255,255,255,.88); max-width: 46ch;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.ev:hover .ev-text, .ev:focus-visible .ev-text { -webkit-line-clamp: 4; }
.ev-more { margin-top: 6px; align-self: flex-start; font-weight: 700; font-size: .92rem; padding-bottom: 2px;
  border-bottom: 2px solid var(--barque, #edc213); opacity: 0; translate: 0 6px; transition: opacity .35s, translate .35s; }
.ev:hover .ev-more, .ev:focus-visible .ev-more { opacity: 1; translate: 0 0; }
/* tuiles typographiques */




.ev-fete { background: linear-gradient(150deg, #0aa7e8, #0079b8) !important; }
.ev-rise { background: linear-gradient(150deg, #24508f, #16375f) !important; }

@media (max-width: 960px) {
  .ev-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .ev-onerun { grid-row: auto; grid-column: 1 / span 2; min-height: 340px; }
  .ev-tilar { grid-column: 1 / span 2; min-height: 280px; }
  
}
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } .ev-onerun, .ev-tilar { grid-column: auto; } }
@media (hover: none) { .ev-more { opacity: 1; translate: 0 0; } .ev-text { -webkit-line-clamp: 3; } }
@media (prefers-reduced-motion: reduce) { .ev, .ev > img { transition: none; } }
html[dir="rtl"] .ev-title[dir="ltr"] { text-align: right; }
/* Fondu vers le bleu nuit de « Nos actions » : plus long et par des bleus clairs (comme l'aube inversée de l'accueil),
   au lieu de passer par un gris terne. */
main > section.projects { background: linear-gradient(180deg, var(--mist, #f3f6f9) 0, #dbe8f3 60px, #a9c6df 120px, #5f8fbc 185px,
  #2a5d93 245px, #12406f 300px, #0c3561 340px, #0a2d55 62%, #082547 100%) !important; }
main > section.projects > .wrap { padding-top: clamp(250px, 22vw, 300px); }
@media (max-width: 860px) { main > section.projects > .wrap { padding-top: 220px; } }
/* Correction : moins de vide et un passage court et propre vers le bleu nuit.
   - plus de lueur bleu clair en haut à droite (elle donnait la tache claire) ;
   - fondu court (≈ 90 px) directement du gris-bleu clair au bleu nuit ;
   - marges réduites en bas de la section précédente et en haut de celle-ci. */
main > section.projects::before { content: none !important; }
main > section.projects { background: linear-gradient(180deg, var(--mist, #f3f6f9) 0, #0c3561 90px, #0a2d55 55%, #082547 100%) !important; }
main > section.projects > .wrap { padding-top: clamp(130px, 11vw, 160px) !important; }
main > section.why { padding-bottom: 24px !important; }

@media (max-width: 860px) { main > section.projects > .wrap { padding-top: 120px !important; } }

/* ---------- Visionneuse photo modernisée ----------
   - fond = la photo elle-même, très floutée et assombrie : l'ambiance de l'événement remplit l'écran ;
   - en haut : nom de l'album et compteur ; à droite le bouton fermer ;
   - la photo arrive en glissant légèrement du côté où l'on avance, avec un fondu ;
   - en bas : bande de vignettes cliquables, la vignette active est mise en avant et centrée. */
.lightbox[open] { background: #050d18 !important; overflow: hidden; grid-template-rows: auto 1fr auto; grid-template-columns: 72px 1fr 72px !important; }
.lightbox::backdrop { background: rgba(5, 13, 24, .9); }
.lb-bg { position: absolute; inset: -40px; z-index: 0; overflow: hidden; }
.lb-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) brightness(.45) saturate(1.3); transform: scale(1.1); opacity: 0; transition: opacity .6s; }
.lb-bg img.on { opacity: 1; }
.lb-top { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; display: flex; justify-content: center; align-items: baseline; gap: 14px;
  padding: 22px 80px 10px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.lb-top b { color: var(--barque, #edc213); font-size: .9rem; font-weight: 700; }
.lightbox .lb-fig { grid-column: 2; grid-row: 2; position: relative; z-index: 1; margin: 0; display: grid; place-items: center; min-height: 0; height: 100%; }
.lightbox .lb-fig figcaption { display: none; }
#lbImg { max-width: 100%; max-height: calc(100vh - 230px); border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); object-fit: contain; animation: none !important; }
#lbImg.lb-in { animation: lbIn .55s cubic-bezier(.2, .8, .2, 1) both !important; }
@keyframes lbIn { from { opacity: 0; transform: translateX(var(--dx, 0px)) scale(.985); } to { opacity: 1; transform: none; } }
.lightbox .lb-btn { position: relative; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.08) !important; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, transform .3s; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.2) !important; transform: scale(1.06); }
.lightbox .lb-prev { grid-column: 1; grid-row: 2; justify-self: center; }
.lightbox .lb-next { grid-column: 3; grid-row: 2; justify-self: center; }
.lightbox .lb-close { position: absolute !important; top: 16px; inset-inline-end: 16px; }
.lb-thumbs { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 2; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto;
  padding: 14px 24px 22px; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: none; opacity: .45; transition: opacity .3s, border-color .3s, transform .3s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumbs button:hover { opacity: .8; }
.lb-thumbs button.on { opacity: 1; border-color: var(--barque, #edc213); transform: translateY(-3px); }
@media (max-width: 760px) {
  .lightbox[open] { grid-template-columns: 1fr !important; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute !important; bottom: 96px; width: 44px; height: 44px; }
  .lightbox .lb-prev { inset-inline-start: 14px; } .lightbox .lb-next { inset-inline-end: 14px; }
  .lightbox .lb-fig { grid-column: 1; }
  #lbImg { max-height: calc(100vh - 260px); border-radius: 10px; }
  .lb-thumbs button { width: 60px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { #lbImg.lb-in { animation: none !important; } }
.ev-fete, .ev-rise { background: #0b2a4d !important; }

/* ---------- Tuiles événements : contenu plus riche, mieux hiérarchisé ----------
   - deux repères concrets (date / lieu ou éditions / format) sous le titre, séparés par un trait fin ;
   - texte plus long dévoilé au survol (2 lignes au repos) ;
   - « Voir les photos » avec le nombre de photos dans une pastille ;
   - dégradé du bas plus profond pour la lisibilité, léger voile de la couleur de l'événement. */
.ev > img + .ev-body::before { background: linear-gradient(0deg, rgba(4, 14, 30, .94) 0%, rgba(4, 14, 30, .6) 40%, rgba(4, 14, 30, .1) 70%, rgba(4, 14, 30, 0) 100%) !important; }
.ev-body::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--ec) 30%, transparent), transparent 55%); mix-blend-mode: soft-light; }
.ev-facts { display: flex; flex-wrap: wrap; gap: 0; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.85); margin-top: 2px; }
.ev-facts span + span { margin-inline-start: 12px; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255,255,255,.35); }
.ev-text { -webkit-line-clamp: 2 !important; }
.ev:hover .ev-text, .ev:focus-visible .ev-text { -webkit-line-clamp: 5 !important; }
.ev-more { display: inline-flex; align-items: center; gap: 8px; }
.ev-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--barque, #edc213); color: #13263a; font-size: .78rem; font-weight: 800; }
.ev-title { letter-spacing: -.01em; }
@media (hover: none) { .ev-text { -webkit-line-clamp: 3 !important; } }

/* ---------- Tuiles événements : sobriété éditoriale ----------
   Retirés : petit trait doré avant la ligne de contexte, voile coloré, pastille du nombre de photos,
   séparateurs verticaux. À la place : la date et le lieu en une phrase courte, le nombre de photos
   entre parenthèses, un lien souligné blanc. Le titre devient l'élément fort de la tuile. */
.ev-meta::before { content: none !important; }
.ev-meta { font-size: .8rem !important; color: rgba(255,255,255,.7) !important; font-weight: 600 !important; }
.ev-body::after { content: none !important; }
.ev-facts span + span { border: 0 !important; margin-inline-start: 0 !important; padding-inline-start: 0 !important; }
.ev-facts span + span::before { content: ", "; }
html[dir="rtl"] .ev-facts span + span::before { content: "، "; }
.ev-facts { color: rgba(255,255,255,.9) !important; font-size: .9rem !important; }
.ev-n { background: none !important; color: inherit !important; min-width: 0 !important; height: auto !important; padding: 0 !important; font-weight: 600 !important; }
.ev-n::before { content: "("; } .ev-n::after { content: ")"; }
.ev-more { border-bottom-color: rgba(255,255,255,.8) !important; }
.ev-title { font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important; }
.ev-onerun .ev-title { font-size: clamp(2rem, 3.2vw, 2.9rem) !important; }
.ev-text { color: rgba(255,255,255,.92) !important; font-size: 1rem !important; }

/* ---------- « Tout au long de l'année » : même langage que les grandes tuiles ----------
   Les petits albums sous la mosaïque n'étaient plus assortis (cartes blanches sur fond nuit).
   Ils deviennent des tuiles photo plus petites, texte posé sur la photo, sans cadre blanc. */
section.projects .albums-title { color: #fff !important; font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important; margin: clamp(48px, 5vw, 64px) 0 16px !important; }
section.projects .albums { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; }
section.projects .album { position: relative !important; display: flex !important; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 18px 20px !important;
  border: 0 !important; border-radius: 20px !important; overflow: hidden; background: #0b2a4d !important; color: #fff !important; text-align: start; isolation: isolate;
  box-shadow: 0 24px 50px -32px rgba(0,0,0,.6) !important; transition: translate .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s !important; transform: none !important; }
section.projects .album:hover { translate: 0 -4px; box-shadow: 0 34px 60px -30px rgba(0,0,0,.7) !important; }
section.projects .album-cover { position: absolute !important; inset: 0; z-index: -1; margin: 0 !important; border-radius: 0 !important; aspect-ratio: auto !important; height: auto !important; }
section.projects .album-cover img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s cubic-bezier(.2, .8, .2, 1); }
section.projects .album:hover .album-cover img { scale: 1.05; }
section.projects .album-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,14,30,.92) 0%, rgba(4,14,30,.35) 55%, rgba(4,14,30,0) 85%); }

section.projects .album-title { color: #fff !important; font-size: 1.12rem !important; line-height: 1.35; margin: 0 0 4px !important; }
section.projects .album-when { color: rgba(255,255,255,.75) !important; font-size: .85rem !important; }
@media (max-width: 860px) { section.projects .albums { grid-template-columns: 1fr !important; } section.projects .album { min-height: 200px; } }
/* sortie de la bande nuit : même fondu court qu'à l'entrée, vers le blanc de la section suivante */
main > section.projects { background: linear-gradient(180deg, var(--mist, #f3f6f9) 0, #0c3561 90px, #0a2d55 50%, #082547 calc(100% - 90px), #fff 100%) !important;
  padding-bottom: clamp(130px, 11vw, 160px) !important; }
/* correction : nombre de photos sur une seule ligne « (8) » */
.ev-n { display: inline !important; place-items: initial !important; white-space: nowrap; }
.ev-rise > img { object-position: 50% 40%; }

/* ---------- Tuiles événements : plus rien ne bouge dans le texte ----------
   Le lien « Voir les photos » apparaissait en glissant et le texte s'allongeait au survol :
   le contenu « défilait », ce qui déroute. Désormais tout est visible et fixe dès le départ ;
   le survol ne fait que soulever la tuile et rapprocher la photo. */
.ev-more, .ev:hover .ev-more, .ev:focus-visible .ev-more { opacity: 1 !important; translate: none !important; transition: border-color .3s !important; }
.ev-text, .ev:hover .ev-text, .ev:focus-visible .ev-text { -webkit-line-clamp: 2 !important; }
.ev:hover .ev-more { border-bottom-color: var(--barque, #edc213) !important; }

/* ---------- Tuiles événements : aperçu de l'album au survol ----------
   Une deuxième image se superpose à la couverture et fait défiler les photos de l'album en fondu,
   avec un très léger zoom lent (effet « Ken Burns ») ; en haut, de fines marques montrent la progression. */
.ev > .ev-flip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0;
  transition: opacity .7s ease; transform: scale(1.04); }
.ev > .ev-flip.on { opacity: 1; animation: evKen 1.8s linear forwards; }
@keyframes evKen { from { transform: scale(1.04); } to { transform: scale(1.1); } }
.ev-marks { position: absolute; top: 14px; inset-inline: 18px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.ev-marks i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); transition: background .4s; }
.ev-marks i.on { background: #fff; }
.ev.flipping .ev-marks { opacity: 1; }
/* profondeur : les photos des tuiles sont un peu plus grandes que la tuile et glissent au défilement */
.ev > img, .ev > .ev-flip { inset: -18px 0 !important; height: calc(100% + 36px) !important; translate: 0 var(--py, 0px); }
@media (prefers-reduced-motion: reduce) { .ev > img, .ev > .ev-flip { translate: none; } }

/* ---------- Tuiles événements : l'essentiel seulement ----------
   Sur chaque tuile : la date (petite, au-dessus), le nom de l'événement (grand), et « Voir les photos ».
   Plus de ligne de contexte ni de paragraphe : la photo raconte, l'album détaille. */
.ev-meta, .ev-text, .ev-facts span + span { display: none !important; }
.ev-body { gap: 10px !important; padding: clamp(22px, 2.4vw, 32px) !important; }
.ev-facts { order: -1; font-size: .9rem !important; font-weight: 600 !important; color: rgba(255,255,255,.82) !important; letter-spacing: .01em; }
.ev-title { font-size: clamp(1.7rem, 2.6vw, 2.4rem) !important; line-height: 1.12 !important; font-weight: 800 !important; }
.ev-onerun .ev-title { font-size: clamp(2.2rem, 3.6vw, 3.2rem) !important; }
.ev-more { margin-top: 4px !important; font-size: .95rem !important; }
.ev > img + .ev-body::before { background: linear-gradient(0deg, rgba(4, 14, 30, .85) 0%, rgba(4, 14, 30, .35) 38%, rgba(4, 14, 30, 0) 62%) !important; }
/* pas de nombre de photos sur les tuiles */
.ev-n { display: none !important; }

/* tuiles : une phrase qui dit la valeur et l'ampleur de l'événement */
.ev .ev-text { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: .5rem 0 0 !important; max-width: 52ch; font-size: .98rem !important; line-height: 1.6 !important; color: rgba(255,255,255,.88) !important; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.ev-onerun .ev-text { font-size: 1.08rem !important; -webkit-line-clamp: 4; }
@media (max-width: 700px) { .ev .ev-text { font-size: .92rem !important; -webkit-line-clamp: 4; } }
@media (min-width: 701px) { .ev-grid { grid-auto-rows: minmax(340px, auto) !important; } }
.ev .ev-body { background: linear-gradient(180deg, rgba(6,24,48,0) 0, rgba(6,24,48,.55) 38%, rgba(6,24,48,.92) 100%) !important; padding-top: 4.5rem !important; }
.ev:not(.ev-onerun) .ev-title { font-size: clamp(1.5rem, 2.1vw, 2rem) !important; }
.ev-grid .ev .ev-text { -webkit-line-clamp: unset !important; line-clamp: unset !important; display: block !important; overflow: visible !important; max-height: none !important; }

/* ===== Tuiles événements : ombres en couches, profondeur, réponse au geste ===== */
.ev-grid .ev {
  transition: translate .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s cubic-bezier(.2,.8,.2,1), filter .45s ease, scale .35s cubic-bezier(.2,.8,.2,1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 1px 2px rgba(2,10,24,.40),
    0 8px 16px -8px rgba(2,10,24,.55),
    0 26px 48px -24px rgba(2,12,30,.65),
    0 60px 90px -50px rgba(0,6,18,.55) !important;
}
.ev-grid .ev:hover, .ev-grid .ev:focus-visible {
  translate: 0 -10px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 2px 4px rgba(2,10,24,.30),
    0 18px 30px -14px rgba(2,10,24,.60),
    0 46px 70px -30px rgba(2,12,30,.75),
    0 90px 130px -60px rgba(0,6,18,.70) !important;
}
.ev-grid .ev:active { scale: .985 !important; translate: 0 -4px !important; transition-duration: .15s !important; }
/* les autres tuiles reculent un peu : l'œil va à celle qu'on regarde */
@media (hover: hover) {
  .ev-grid:has(.ev:hover) .ev:not(:hover) { filter: brightness(.8) saturate(.88); scale: .99 !important; }
}
/* deux plans : la photo (opposée au curseur) et le texte (avec le curseur) */
.ev-grid .ev > img, .ev-grid .ev > .ev-flip {
  inset: -22px !important; width: calc(100% + 44px) !important; height: calc(100% + 44px) !important;
  translate: calc(var(--mx, 0) * -16px) calc(var(--py, 0px) + var(--my, 0) * -16px) !important;
}
.ev-grid .ev .ev-body > * { translate: calc(var(--mx, 0) * 5px) calc(var(--my, 0) * 4px); }
.ev-grid .ev .ev-title { transition: translate .5s cubic-bezier(.2,.8,.2,1); }
.ev-grid .ev:hover .ev-title { text-shadow: 0 6px 24px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: reduce) {
  .ev-grid .ev, .ev-grid .ev:hover { translate: none !important; scale: none !important; }
  .ev-grid .ev > img, .ev-grid .ev > .ev-flip, .ev-grid .ev .ev-body > * { translate: none !important; }
}
/* la photo déborde de la tuile (marge de parallaxe) : sans plafond de largeur, sinon une bande vide apparaît sur le côté */
.ev-grid .ev > img, .ev-grid .ev > .ev-flip { max-width: none !important; max-height: none !important; left: -22px !important; right: auto !important; }

/* ===== Nos grands rendez-vous : nouvelle composition =====
   ONE RUN (l'événement phare) occupe une rangée entière, en format cinéma, texte sur le côté pour laisser la photo respirer.
   Dessous, trois tuiles égales et hautes : chaque photo a la place d'exister au-dessus de son texte. */
@media (min-width: 761px) {
  .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: none !important; grid-auto-rows: auto !important; gap: 22px !important; }
  .ev-grid .ev-onerun { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: clamp(440px, 42vw, 580px); align-items: flex-end; }
  .ev-grid .ev-tilar, .ev-grid .ev-fete, .ev-grid .ev-rise { grid-column: auto !important; grid-row: auto !important; min-height: 500px; }
  /* phare : voile latéral du côté du texte, la photo reste lisible de l'autre côté */
  .ev-grid .ev-onerun .ev-body { background: none !important; padding: clamp(28px, 3.4vw, 52px) !important; }
  .ev-grid .ev-onerun .ev-body > * { max-width: 30rem; }
  html[dir="rtl"] .ev-grid .ev-onerun > img + .ev-body::before { background:
      linear-gradient(270deg, rgba(5,18,38,.9) 0, rgba(5,18,38,.66) 30%, rgba(5,18,38,.12) 58%, rgba(5,18,38,0) 72%),
      linear-gradient(0deg, rgba(5,18,38,.55) 0, rgba(5,18,38,0) 40%) !important; }
  html[dir="ltr"] .ev-grid .ev-onerun > img + .ev-body::before { background:
      linear-gradient(90deg, rgba(5,18,38,.9) 0, rgba(5,18,38,.66) 30%, rgba(5,18,38,.12) 58%, rgba(5,18,38,0) 72%),
      linear-gradient(0deg, rgba(5,18,38,.55) 0, rgba(5,18,38,0) 40%) !important; }
  .ev-grid .ev-onerun .ev-title { font-size: clamp(2.6rem, 4.6vw, 4.2rem) !important; line-height: 1.02 !important; }
  .ev-grid .ev-onerun .ev-text { font-size: clamp(1rem, 1.15vw, 1.14rem) !important; }
  .ev-grid .ev-onerun > img, .ev-grid .ev-onerun > .ev-flip { object-position: 50% 42%; }
  /* petites tuiles : voile seulement en bas, la moitié haute reste photo */
  .ev-grid .ev:not(.ev-onerun) .ev-body { background: linear-gradient(180deg, rgba(5,18,38,0) 0, rgba(5,18,38,.7) 30%, rgba(5,18,38,.94) 100%) !important; padding: 5rem clamp(20px, 2vw, 28px) clamp(22px, 2vw, 28px) !important; }
  .ev-grid .ev:not(.ev-onerun) > img + .ev-body::before { background: none !important; }
  .ev-grid .ev:not(.ev-onerun) .ev-title { font-size: clamp(1.45rem, 1.9vw, 1.85rem) !important; }
  .ev-grid .ev:not(.ev-onerun) .ev-text { font-size: .93rem !important; line-height: 1.65 !important; }
}
/* la date : petite, nette, avec un trait doré qui annonce le titre */
.ev-grid .ev-facts span:first-child { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .01em; }
.ev-grid .ev-facts span:first-child::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--barque, #edc213); }
.ev-grid .ev-tilar > img { object-position: 50% 72% !important; }
@media (max-width: 760px) {
  .ev-grid { grid-template-columns: 1fr !important; grid-template-rows: none !important; grid-auto-rows: auto !important; gap: 16px !important; }
  .ev-grid .ev { grid-column: auto !important; grid-row: auto !important; min-height: 440px !important; }
  .ev-grid .ev-onerun { min-height: 500px !important; }
  .ev-grid .ev .ev-body { padding-top: 6rem !important; }
}

/* ===== En-tête transparent =====
   Verre clair très léger sur les sections claires, verre nuit sur les sections sombres : le contenu reste visible
   à travers, la barre ne coupe plus la page. Le passage d'un état à l'autre est fondu. */
.top {
  background: rgba(255, 255, 255, .58) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.7) !important; backdrop-filter: blur(22px) saturate(1.7) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 1px 0 rgba(13, 59, 102, .06), 0 16px 40px -26px rgba(11, 37, 64, .45) !important;
  border: 0 !important;
  transition: background .5s ease, box-shadow .5s ease !important;
}
.top .top-row { background: transparent !important; }
.top.over-night {
  background: rgba(6, 22, 44, .34) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 44px -26px rgba(0, 0, 0, .7) !important;
}
.top .menu a, .top .lang button, .top .brand-lo { transition: color .45s ease !important; }
.top.over-night .menu a.on { color: #fff !important; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: rgba(255, 255, 255, .94) !important; }
  .top.over-night { background: rgba(6, 22, 44, .9) !important; }
}
/* cadrages des tuiles verticales : on centre le sujet, pas le milieu de la photo */
.ev-grid .ev-fete > img { object-position: 55% 30% !important; }
.ev-grid .ev-rise > img { object-position: 44% 20% !important; }
.albums[data-where="local"] { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
/* albums « Nos autres actions » : une phrase qui dit ce que l'action a apporté */
.album .album-desc { margin: 8px 0 0; font-size: .9rem; line-height: 1.65; color: rgba(255, 255, 255, .8); text-align: start; font-weight: 400; }
.album { display: flex !important; flex-direction: column; align-items: stretch; }
#lbTitle .lb-cap { display: block; margin-top: 3px; font-size: .82rem; font-weight: 500; opacity: .78; }
/* « Nos autres actions » : cartes photo + texte dessous (le texte ne se pose plus sur les affiches), deux par ligne */
.albums[data-where="local"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)) !important; gap: 22px !important; }
.albums[data-where="local"] .album { padding: 0 0 22px !important; min-height: 0 !important; height: auto !important; justify-content: flex-start !important;
  background: rgba(255, 255, 255, .045) !important; border-radius: 22px !important; overflow: hidden; }
.albums[data-where="local"] .album-cover { position: relative !important; inset: auto !important; display: block; aspect-ratio: 16 / 9; height: auto !important; margin-bottom: 18px; overflow: hidden; }
.albums[data-where="local"] .album-cover::after { background: linear-gradient(0deg, rgba(4, 14, 30, .35), rgba(4, 14, 30, 0) 45%) !important; }
.albums[data-where="local"] .album-cover img { width: 100%; height: 100% !important; object-fit: cover; }
.albums[data-where="local"] .album-title, .albums[data-where="local"] .album-when, .albums[data-where="local"] .album-desc { padding: 0 22px !important; }
.albums[data-where="local"] .album-title { font-size: 1.15rem !important; line-height: 1.4; }
.albums[data-where="local"] .album-when { margin-top: 4px; }
.albums[data-where="local"] .album-desc { margin-top: 10px; font-size: .93rem; }
main section .albums[data-where="local"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)) !important; }
main section .albums[data-where="local"] .album-cover img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
main section .albums[data-where="local"] .album-cover { display: block !important; position: relative !important; width: 100% !important; height: 0 !important; padding-top: 56.25% !important; aspect-ratio: auto !important; flex: none !important; }
/* carte qui fait défiler plusieurs journées : photos et textes empilés, fondu croisé */
main section .album-slides .album-cover img { opacity: 0; transition: opacity .9s ease, scale 6s ease-out; scale: 1.04; }
main section .album-slides .album-cover img.on { opacity: 1; scale: 1; }
.album-slides .as-marks { position: absolute; z-index: 2; inset-inline: 22px; bottom: 14px; display: flex; gap: 6px; }
.album-slides .as-marks i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); cursor: pointer; position: relative; overflow: hidden; }
.album-slides .as-marks i::after { content: ""; position: absolute; inset: 0; background: var(--barque, #edc213); transform: scaleX(0); transform-origin: var(--from, left); }
html[dir="rtl"] .album-slides .as-marks i::after { --from: right; }
.album-slides .as-marks i.on::after { animation: asFill 5s linear forwards; }
.album-slides:hover .as-marks i.on::after, .album-slides:focus-within .as-marks i.on::after { animation-play-state: paused; }
@keyframes asFill { to { transform: scaleX(1); } }
.album-slides .as-texts { display: grid; }
.album-slides .as-text { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; translate: 0 6px; transition: opacity .6s ease, translate .6s ease; pointer-events: none; }
.album-slides .as-text.on { opacity: 1; translate: 0 0; }
.album-slides .as-text .album-desc { display: block; margin-top: 10px; padding: 0 22px; font-size: .93rem; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.album-slides .as-text .album-when { padding: 0 22px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  main section .album-slides .album-cover img, .album-slides .as-text { transition: none; scale: 1; translate: none; }
  .album-slides .as-marks i.on::after { animation: none; transform: scaleX(1); }
}

/* ===== « ومن أنشطتنا أيضًا » : cartes au même langage que les grandes tuiles =====
   relief en couches, la carte se soulève et la photo avance au survol ; date avec le trait doré ;
   « شاهد الصور » toujours en bas, alignés d'une carte à l'autre. */
main section .albums[data-where="local"] .album {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 1px 2px rgba(2, 10, 24, .4), 0 22px 44px -26px rgba(2, 12, 30, .7) !important;
  transition: translate .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s cubic-bezier(.2, .8, .2, 1) !important;
  text-align: start; color: #fff; cursor: pointer;
}
main section .albums[data-where="local"] .album:hover, main section .albums[data-where="local"] .album:focus-visible {
  translate: 0 -8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 2px 4px rgba(2, 10, 24, .3), 0 40px 70px -32px rgba(0, 6, 18, .8) !important;
}
main section .albums[data-where="local"] .album:focus-visible { outline: 3px solid var(--barque, #edc213); outline-offset: 3px; }
main section .albums[data-where="local"] .album-cover img { transition: scale 1.1s cubic-bezier(.2, .8, .2, 1), opacity .9s ease !important; }
main section .albums[data-where="local"] .album:not(.album-slides):hover .album-cover img,
main section .albums[data-where="local"] .album-slides:hover .album-cover img.on { scale: 1.05 !important; }
main section .albums[data-where="local"] .album-cover { margin-bottom: 22px !important; }
main section .albums[data-where="local"] .album-title { font-size: 1.22rem !important; font-weight: 800 !important; line-height: 1.4 !important; color: #fff !important; }
main section .albums[data-where="local"] .album-when { display: inline-flex !important; align-items: center; gap: 10px; margin-top: 8px !important;
  font-size: .85rem !important; font-weight: 700 !important; color: rgba(255, 255, 255, .72) !important; }
main section .albums[data-where="local"] .album-when::before { content: ""; flex: none; width: 20px; height: 2px; border-radius: 2px; background: var(--barque, #edc213); }
main section .albums[data-where="local"] .album-desc { margin-top: 12px !important; font-size: .94rem !important; line-height: 1.75 !important; color: rgba(255, 255, 255, .78) !important; max-width: 60ch; }
main section .albums[data-where="local"] .album-more { margin: 20px 22px 0; margin-top: auto; padding-top: 18px; align-self: flex-start;
  font-weight: 700; font-size: .92rem; color: #fff; }
main section .albums[data-where="local"] .album-more::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--barque, #edc213);
  transform: scaleX(.45); transform-origin: var(--from, left); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
html[dir="rtl"] main section .albums[data-where="local"] .album-more::after { --from: right; }
main section .albums[data-where="local"] .album:hover .album-more::after, main section .albums[data-where="local"] .album:focus-visible .album-more::after { transform: scaleX(1); }
/* titre de la rangée : même famille que les titres de section, plus discret */
.albums-title[data-i18n="alb.local"] { font-size: clamp(1.35rem, 2vw, 1.7rem) !important; margin-bottom: 22px !important; color: #fff !important; }
@media (prefers-reduced-motion: reduce) {
  main section .albums[data-where="local"] .album, main section .albums[data-where="local"] .album:hover { translate: none !important; }
  main section .albums[data-where="local"] .album-cover img { scale: 1 !important; }
}
/* couverture « trois sections » : cadrer sur les visages, sous le titre manuscrit */ main section .album-slides .album-cover img[src$="teambuilding-0.jpg"] { object-position: 50% 42% !important; }
/* couverture Jaycees : cadrer sur le groupe et le logo de la Bourse */ main section .albums[data-where="local"] .album-cover img[src$="jaycees-2.jpg"] { object-position: 50% 52% !important; }
main section .albums[data-where="local"] .album-cover img[src$="jaycees-2.jpg"] { object-position: 50% 28% !important; }
main section .album-slides .album-cover img[src$="teambuilding-groupe.jpg"] { object-position: 50% 38% !important; }

/* ===== « ومن أنشطتنا أيضًا » : cartes « billet », compactes =====
   photo d'un côté, texte de l'autre ; un filet doré se trace entre les deux au survol ;
   la description tient en 3 lignes et se déplie au survol. Sur téléphone, photo au-dessus. */
@media (min-width: 761px) {
  main section .albums[data-where="local"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; }
  main section .albums[data-where="local"] .album { flex-direction: row !important; align-items: stretch !important; padding: 0 !important; min-height: 216px; border-radius: 18px !important; }
  main section .albums[data-where="local"] .album-cover { width: 40% !important; flex: none !important; height: auto !important; padding-top: 0 !important; margin: 0 !important; border-radius: 0 !important; }
  main section .albums[data-where="local"] .album-cover::before { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; inset-inline-end: 0; width: 3px;
    background: var(--barque, #edc213); transform: scaleY(.18); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  main section .albums[data-where="local"] .album:hover .album-cover::before, main section .albums[data-where="local"] .album:focus-visible .album-cover::before { transform: scaleY(1); }
  main section .albums[data-where="local"] .album-cover::after { background: linear-gradient(0deg, rgba(4, 14, 30, .45), rgba(4, 14, 30, 0) 40%) !important; }
  .album-slides .as-marks { inset-inline: 14px !important; bottom: 12px !important; }
}
main section .albums[data-where="local"] .album-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 22px 18px; }
main section .albums[data-where="local"] .album-title,
main section .albums[data-where="local"] .album-when,
main section .albums[data-where="local"] .album-desc,
main section .albums[data-where="local"] .as-text .album-when,
main section .albums[data-where="local"] .as-text .album-desc { padding: 0 !important; }
main section .albums[data-where="local"] .album-title { font-size: 1.06rem !important; line-height: 1.45 !important; }
main section .albums[data-where="local"] .album-when { font-size: .8rem !important; margin-top: 6px !important; }
main section .albums[data-where="local"] .album-desc { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  margin-top: 10px !important; font-size: .88rem !important; line-height: 1.7 !important; transition: color .3s; }
main section .albums[data-where="local"] .album:hover .album-desc, main section .albums[data-where="local"] .album:focus-visible .album-desc { -webkit-line-clamp: 8; color: rgba(255, 255, 255, .9) !important; }
main section .albums[data-where="local"] .album-more { margin: 0 !important; margin-top: auto !important; padding-top: 14px !important; font-size: .86rem !important; }
main section .albums[data-where="local"] .album:hover, main section .albums[data-where="local"] .album:focus-visible { translate: 0 -5px !important; }
@media (max-width: 760px) {
  main section .albums[data-where="local"] .album-cover { margin-bottom: 0 !important; }
  main section .albums[data-where="local"] .album-body { padding: 16px 18px 18px; }
}
/* affiche (texte) : affichée entière sur son propre fond clair, jamais rognée */
main section .albums[data-where="local"] .album-cover:has(img[src$="orientation-1.jpg"]) { background: #f4f6f9; }
main section .albums[data-where="local"] .album-cover img[src$="orientation-1.jpg"] { object-fit: contain !important; padding: 10px; }
main section .albums[data-where="local"] .album-cover:has(img[src$="orientation-1.jpg"])::after { background: none !important; }
/* photos des cartes « billet » un peu plus grandes */
@media (min-width: 761px) {
  main section .albums[data-where="local"] .album { min-height: 252px; }
  main section .albums[data-where="local"] .album-cover { width: 46% !important; }
}
/* photos des cartes : la moitié de la carte, cadrées sur le sujet */
@media (min-width: 761px) {
  main section .albums[data-where="local"] .album { min-height: 256px; }
  main section .albums[data-where="local"] .album-cover { width: 50% !important; }
}
main section .albums[data-where="local"] .album-cover img[src$="layalina-cover.jpg"] { object-position: 50% 55% !important; }
main section .albums[data-where="local"] .album-cover img[src$="jaycees-cover.jpg"] { object-position: 52% 50% !important; }
main section .albums[data-where="local"] .album-cover img[src$="teambuilding-groupe.jpg"] { object-position: 52% 30% !important; }
main section .albums[data-where="local"] .album-cover img[src$="teambuilding-oct-affiche.jpg"] { object-position: 50% 28% !important; }
main section .albums[data-where="local"] .album-cover img[src$="integration-cover.jpg"] { object-position: 48% 50% !important; }

/* ===== Ombres des cartes « ومن أنشطتنا أيضًا » =====
   au repos : une ombre de contact nette + trois couches de plus en plus longues et douces (bleu nuit, jamais grises) ;
   au survol : la carte monte et l'ombre s'étire vers le bas ; au clic : elle se repose. */
main section .albums[data-where="local"] .album {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 1px 1px rgba(0, 8, 20, .55),
    0 4px 8px -2px rgba(0, 8, 22, .45),
    0 16px 30px -12px rgba(0, 10, 26, .6),
    0 38px 64px -30px rgba(0, 6, 18, .75) !important;
  transition: translate .55s cubic-bezier(.2, .8, .2, 1), box-shadow .55s cubic-bezier(.2, .8, .2, 1), scale .2s ease !important;
}
main section .albums[data-where="local"] .album:hover, main section .albums[data-where="local"] .album:focus-visible {
  translate: 0 -9px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .11),
    0 2px 2px rgba(0, 8, 20, .35),
    0 12px 20px -8px rgba(0, 8, 22, .5),
    0 34px 52px -20px rgba(0, 10, 26, .7),
    0 72px 110px -44px rgba(0, 4, 14, .9) !important;
}
main section .albums[data-where="local"] .album:active { translate: 0 -3px !important; scale: .992; transition-duration: .15s !important; }
/* la photo semble posée dans la carte : léger creux sur ses bords */
main section .albums[data-where="local"] .album-cover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
main section .albums[data-where="local"] .album-cover img { filter: saturate(1.04); }
main section .albums[data-where="local"] .album-cover > span.as-marks { z-index: 4; }
html[dir="rtl"] main section .albums[data-where="local"] .album-cover::after {
  background: linear-gradient(90deg, rgba(4, 14, 30, .35), rgba(4, 14, 30, 0) 22%), linear-gradient(0deg, rgba(4, 14, 30, .45), rgba(4, 14, 30, 0) 40%) !important; }
html[dir="ltr"] main section .albums[data-where="local"] .album-cover::after {
  background: linear-gradient(270deg, rgba(4, 14, 30, .35), rgba(4, 14, 30, 0) 22%), linear-gradient(0deg, rgba(4, 14, 30, .45), rgba(4, 14, 30, 0) 40%) !important; }
@media (max-width: 760px) {
  main section .albums[data-where="local"] .album-cover::after { background: linear-gradient(0deg, rgba(4, 14, 30, .45), rgba(4, 14, 30, 0) 40%) !important; }
}
@media (prefers-reduced-motion: reduce) { main section .albums[data-where="local"] .album:active { scale: 1; } }
/* le texte reste toujours dans la carte : pas de dépliage au survol (la carte ne grandit plus),
   titre sur 2 lignes max, et format « photo au-dessus » dès que la colonne de texte deviendrait trop étroite */
main section .albums[data-where="local"] .album:hover .album-desc,
main section .albums[data-where="local"] .album:focus-visible .album-desc { -webkit-line-clamp: 3 !important; }
main section .albums[data-where="local"] .album-title { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
main section .albums[data-where="local"] .album-body { overflow: hidden; }
@media (min-width: 761px) and (max-width: 1100px) {
  main section .albums[data-where="local"] .album { flex-direction: column !important; min-height: 0; }
  main section .albums[data-where="local"] .album-cover { width: 100% !important; height: 0 !important; padding-top: 52% !important; }
  main section .albums[data-where="local"] .album-cover::before { display: none; }
}
/* plus aucune coupure : la carte prend la hauteur de son texte (textes raccourcis en conséquence) */
main section .albums[data-where="local"] .album-desc,
main section .albums[data-where="local"] .album:hover .album-desc,
main section .albums[data-where="local"] .album:focus-visible .album-desc { -webkit-line-clamp: unset !important; line-clamp: unset !important; display: block !important; overflow: visible !important; }
main section .albums[data-where="local"] .album-title { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }
main section .albums[data-where="local"] .album-body { overflow: visible !important; }
/* fin de « أنشطتنا » : fondu bleu nuit → blanc long et progressif (au lieu d'une bande de 90 px),
   et les motifs Ripples s'effacent avant le fondu pour ne jamais être coupés net */
main > section.projects {
  padding-bottom: 210px !important;
  background: linear-gradient(180deg, var(--mist, #f3f6f9) 0, #0c3561 90px, #0a2d55 50%, #082547 calc(100% - 230px),
    #0d3157 calc(100% - 190px), #1f4a74 calc(100% - 150px), #4f7398 calc(100% - 110px), #93adc6 calc(100% - 70px),
    #d4e0eb calc(100% - 32px), #fff 100%) !important;
}
main > section.projects > .rip-deco {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 300px), transparent calc(100% - 170px));
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 300px), transparent calc(100% - 170px));
}

/* ===== « تكويناتنا » : trois pistes de formation =====
   chaque piste a sa couleur JCI (filet en haut), une phrase qui dit ce qu'on y gagne, puis une frise verticale :
   date au-dessus du titre, la plus récente marquée ; les formations avec photos montrent une vignette et ouvrent leur album. */
main > section.trainings { padding-top: clamp(48px, 5vw, 72px) !important; }







/* frise */














/* au-delà de 4 formations */







/* ===== « تكويناتنا » v2 : programme + grande photo =====
   à gauche (droite en arabe) : onglets texte soulignés, une phrase, puis la liste date / titre / piste ;
   de l'autre côté : une grande photo portrait, collante au défilement, qui montre les formations en images. */
main > section.trainings { padding-top: clamp(40px, 4vw, 60px) !important; }

/* onglets */







  

/* liste */



  











/* grande photo */









  


















/* ===== « تكويناتنا » v3 : grands onglets verticaux + formations en grands titres + photo au survol ===== */
















/* liste */

  













/* photo qui suit le pointeur */


/* écrans tactiles : pas de survol, la vignette et « شاهد الصور » sont visibles dans la ligne */




  

/* ===== « تكويناتنا » v4 : pistes avec exemples + rail de cartes photo ===== */
.tr2 { --c-jci: var(--jci, #0097d7); --c-soft: var(--mansoura, #2aa79b); --c-hard: #c8960c; margin-top: 34px; }
/* onglets : trois blocs côte à côte, chacun avec ses exemples */


  













/* rail */



  















/* sans photo : carte typographique */



/* navigation */












 

/* ===== « تكويناتنا » v5 : mise en page éditoriale =====
   trois colonnes, une par domaine ; un filet fin au-dessus du titre ; photos à peine arrondies, sans ombre ;
   légende sobre sous chaque photo (titre, date). Survol : les autres photos de la formation défilent dans le cadre. */
.trx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px); margin-top: clamp(30px, 4vw, 48px); align-items: start; }














@media (max-width: 900px) {
  .trx { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  
  
}


/* hiérarchie : la plus récente en grand, les suivantes en lignes compactes (vignette carrée + légende) */








/* ===== « تكويناتنا » v6 : cadre-écran par colonne + liste vivante ===== */



/* cadre */









html[dir="rtl"] .trx { --dx: -1; }


/* lignes */












/* dévoilement à l'arrivée : filet qui se trace, cadre qui s'ouvre de haut en bas, lignes en cascade */











/* en-tête de « تكويناتنا » : titre d'un côté, phrase de l'autre, alignés en bas (mise en page éditoriale) ;
   espacements fixes pour que les colonnes suivent juste après */
main > section.trainings { padding-top: clamp(36px, 4vw, 56px) !important; }
main > section.trainings .section-head { display: grid !important; grid-template-columns: auto minmax(0, 30rem); justify-content: space-between; align-items: end;
  gap: 12px 48px; margin: 0 !important; padding: 0 !important; max-width: none !important; }
main > section.trainings .section-head h2 { margin: 0 !important; }
main > section.trainings .section-head p { margin: 0 0 .45em !important; font-size: clamp(1rem, 1.15vw, 1.08rem) !important; line-height: 1.75 !important; color: rgba(19, 38, 58, .66) !important; }
main > section.trainings .trx { margin-top: clamp(32px, 3.5vw, 48px) !important; }
@media (max-width: 760px) {
  main > section.trainings .section-head { grid-template-columns: minmax(0, 1fr); }
}
/* transition « أنشطتنا » → « تكويناتنا » plus serrée : fondu un peu plus court, titre plus proche */
main > section.projects { padding-bottom: 150px !important;
  background: linear-gradient(180deg, var(--mist, #f3f6f9) 0, #0c3561 90px, #0a2d55 50%, #082547 calc(100% - 170px),
    #123a64 calc(100% - 135px), #3a6690 calc(100% - 100px), #8eaac5 calc(100% - 62px), #d7e2ec calc(100% - 26px), #fff 100%) !important; }
main > section.projects > .rip-deco { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 240px), transparent calc(100% - 130px));
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 240px), transparent calc(100% - 130px)); }
main > section.trainings { padding-top: clamp(20px, 2.5vw, 36px) !important; }
/* l'introduction, ancrée par un filet fin du côté du texte */
main > section.trainings .section-head p { padding-inline-start: 18px; border-inline-start: 2px solid rgba(13, 59, 102, .16); color: rgba(19, 38, 58, .72) !important; }

/* ===== « تكويناتنا » v7 : un paquet de photos vivant =====
   Derrière chaque cadre, les deux formations suivantes dépassent (photos inclinées) ; au survol le paquet s'ouvre en éventail.
   Les colonnes avancent seules, à tour de rôle : la photo du dessus se pose avec un petit rebond, zoom lent sur la photo affichée,
   et la photo suit légèrement le pointeur. */








/* le cadre du dessus : vraie épaisseur de tirage photo */




/* la photo du dessus se pose sur le paquet */


/* zoom lent + profondeur au pointeur */



/* la ligne active : la vignette se soulève un peu */

/* dévoilement : le paquet s'ouvre après le cadre */





   /* sinon le clip du dévoilement coupe l'ombre et le liseré blanc */

/* ===== « تكويناتنا » v8 : en-têtes de colonne plus vivants =====
   Une couleur par domaine (bleu JCI, turquoise, or) : filet du haut, ligne active, lien « voir ».
   À côté du titre, les photos rondes de toutes les formations de la colonne : survol ou clic = la formation passe dans le cadre. */
















/* la couleur du domaine sur la ligne active et le lien */



/* dévoilement : les visages arrivent un par un */








/* ===== « تكويناتنا » v9 : la liste devient une planche de photos =====
   Chaque formation = une vignette photo (titre en blanc sur un dégradé sombre), deux par rang ; la dernière prend toute la largeur
   si le nombre est impair. La vignette active est cerclée de la couleur du domaine. Les visages de l'en-tête (v8) sont retirés :
   ils doublaient la planche ; seul reste le nombre de formations. */


















   /* la planche arrive en cascade */
   /* plus de nombre : ce sont des exemples parmi d'autres formations */

/* ===== « تكويناتنا » v10 : une seule photo par colonne, les formations en texte =====
   Moins d'images : sous le cadre, la liste des noms ; survoler (ou parcourir) un nom change la photo du cadre.
   Les vignettes (v9) sont retirées ; le paquet de photos derrière le cadre (v7) reste. */











/* le paquet de photos derrière le cadre est gardé (apprécié) */

/* ===== « تكويناتنا » v11 : liste typographique + repère qui glisse =====
   Plus de légende sous la photo (le nom actif dans la liste en tient lieu) ; « شاهد الصور » apparaît sur la photo au survol.
   La liste : du texte seul, sans filets ; un rail fin sur le côté, et un repère de la couleur du domaine qui glisse jusqu'au nom affiché. */










   /* pas de transition de taille : le repère mesure la ligne tout de suite */





/* ===== « تكويناتنا » v12 : une grande photo + les trois domaines =====
   D'un côté la photo (avec le paquet de photos inclinées derrière) et sa légende : domaine en couleur, nom de la formation.
   De l'autre les trois domaines, chacun avec sa couleur, sa phrase et ses formations ; un repère glisse jusqu'au nom affiché. */
.trs { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(44px, 6vw, 96px); align-items: start; margin-top: clamp(36px, 4vw, 56px); }
.trs-jci  { --c: #0097d7; --c-ink: #00709f; --c-hi: #5cc8f5; }
.trs-soft { --c: #13a09a; --c-ink: #0b7a75; --c-hi: #5fd8cf; }
.trs-hard { --c: #f2a93b; --c-ink: #a8690a; --c-hi: #f7c46f; }
html[dir="rtl"] .trs { --dx: -1; }
/* la photo */
.trs-stage { position: sticky; top: 110px; margin: 0; cursor: pointer; outline: none; }
.trs-deck { position: relative; display: block; isolation: isolate; }
.trs-frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #dfe6ee;
  box-shadow: 0 0 0 6px #fff, 0 1px 2px 6px rgba(8, 37, 71, .08), 0 30px 60px -26px rgba(8, 37, 71, .65); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.trs-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -9px); transition: opacity .6s ease, translate .5s ease-out; }
.trs-frame > img.on { opacity: 1; animation: trs-kb 9s ease-out both; }
@keyframes trs-kb { from { scale: 1.02; } to { scale: 1.1; } }
.trs-peek { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: 10px; background: #dfe6ee;
  box-shadow: 0 0 0 6px #fff, 0 1px 2px 6px rgba(8, 37, 71, .07), 0 18px 36px -18px rgba(8, 37, 71, .5);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
.trs-peek img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.93); }
.trs-peek.p1 { transform: translate(calc(var(--dx, 1) * -16px), 10px) rotate(calc(var(--dx, 1) * -3deg)); }
.trs-peek.p2 { z-index: -2; transform: translate(calc(var(--dx, 1) * 18px), 16px) rotate(calc(var(--dx, 1) * 2.6deg)); }
.trs-stage:hover .trs-peek.p1 { transform: translate(calc(var(--dx, 1) * -40px), 6px) rotate(calc(var(--dx, 1) * -6.5deg)); }
.trs-stage:hover .trs-peek.p2 { transform: translate(calc(var(--dx, 1) * 42px), 14px) rotate(calc(var(--dx, 1) * 5.5deg)); }
.trs-stage:hover .trs-frame { transform: translateY(-5px); }
.trs-deck.deal .trs-frame { animation: trs-deal .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes trs-deal { 0% { transform: translate(0, -12px) rotate(calc(var(--dx, 1) * -1.6deg)); } 55% { transform: translate(0, 2px) rotate(calc(var(--dx, 1) * .3deg)); } 100% { transform: none; } }
/* légende sur la photo */
.trs-cap { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 70px clamp(18px, 2.4vw, 30px) clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, rgba(6, 20, 38, 0), rgba(6, 20, 38, .55) 45%, rgba(6, 20, 38, .86)); transition: opacity .35s ease, translate .35s ease; }
.trs-cap.out { opacity: 0; translate: 0 8px; }
.trs-cap small { font-size: .86rem; font-weight: 700; color: var(--c-hi); }
.trs-cap b { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 800; line-height: 1.3; color: #fff; text-wrap: balance; }
.trs-cap span { font-size: .88rem; font-weight: 700; color: rgba(255, 255, 255, .85); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
.trs-stage:hover .trs-cap span, .trs-stage:focus-visible .trs-cap span { max-height: 2em; opacity: 1; margin-top: 6px; }
@media (hover: none) { .trs-cap span { max-height: 2em; opacity: 1; margin-top: 6px; } }
.trs-stage:focus-visible .trs-frame { outline: 3px solid var(--barque, #edc213); outline-offset: 9px; }
/* les domaines */
.trs-groups { display: flex; flex-direction: column; gap: clamp(30px, 3.4vw, 44px); }
.trs-grp { position: relative; padding-top: 18px; }
.trs-grp::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 3px; background: var(--c); transform-origin: var(--from, left); }
html[dir="rtl"] .trs-grp::before { --from: right; }
.trs-grp h3 { margin: 0 0 4px; font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 800; color: var(--encre, #13263a); }
.trs-grp p { margin: 0 0 14px; font-size: .95rem; line-height: 1.6; color: rgba(19, 38, 58, .6); }
.trs-list { position: relative; list-style: none; margin: 0; padding: 0; padding-inline-start: 18px; }
.trs-list::before { content: ""; position: absolute; inset-block: 2px; inset-inline-start: 0; width: 2px; border-radius: 2px; background: rgba(13, 59, 102, .1); }
.trs-ind { position: absolute; inset-inline-start: 0; top: 0; width: 2px; height: 0; border-radius: 2px; background: var(--c); opacity: 0;
  transition: top .5s cubic-bezier(.65, 0, .25, 1), height .5s cubic-bezier(.65, 0, .25, 1), opacity .3s; }
.trs-row { padding: 6px 0; font-size: 1rem; font-weight: 600; line-height: 1.45; color: rgba(19, 38, 58, .5); cursor: pointer; outline: none; transition: color .3s ease; }
.trs-row:hover { color: rgba(19, 38, 58, .85); }
.trs-row.on { color: var(--encre, #13263a); font-weight: 800; }
.trs-row:focus-visible { outline: 2px solid var(--barque, #edc213); outline-offset: 3px; border-radius: 4px; }
/* dévoilement */
.trs-wait:not(.trs-in) .trs-frame { clip-path: inset(0 0 100% 0); }
.trs-wait:not(.trs-in) .trs-peek { opacity: 0; transform: none; }
.trs-wait:not(.trs-in) .trs-grp::before { transform: scaleX(0); }
.trs-wait:not(.trs-in) .trs-grp > * { opacity: 0; translate: 0 12px; }
.trs-in .trs-frame { clip-path: inset(0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), transform .5s, box-shadow .5s; }
.trs-in .trs-peek { transition-delay: .9s; }
.trs-in .trs-grp::before { transition: transform .9s cubic-bezier(.7, 0, .2, 1) calc(.3s + var(--gi) * .15s); }
.trs-in .trs-grp > * { transition: opacity .6s ease calc(.45s + var(--gi) * .15s), translate .6s cubic-bezier(.2, .8, .2, 1) calc(.45s + var(--gi) * .15s); }
.trs-done .trs-frame { clip-path: none; }
.trs-done .trs-peek { transition-delay: 0s; }
@media (max-width: 900px) {
  .trs { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .trs-stage { position: relative; top: 0; }
  .trs-peek.p1 { transform: translate(calc(var(--dx, 1) * -9px), 7px) rotate(calc(var(--dx, 1) * -2deg)); }
  .trs-peek.p2 { transform: translate(calc(var(--dx, 1) * 10px), 11px) rotate(calc(var(--dx, 1) * 1.8deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .trs-frame > img.on, .trs-deck.deal .trs-frame { animation: none !important; }
  .trs-frame, .trs-peek, .trs-ind, .trs-cap { transition: none !important; }
}

/* formation mise en avant (lead) : une ligne de contexte sous son nom, dans la légende et dans la liste */
.trs-cap em { font-style: normal; font-size: clamp(.95rem, 1.2vw, 1.05rem); font-weight: 600; color: rgba(255, 255, 255, .88); }
.trs-cap em[hidden] { display: none; }
.trs-row small { display: block; margin-top: 2px; font-size: .84rem; font-weight: 700; color: var(--c-ink); }
.trs-row.lead { color: rgba(19, 38, 58, .72); }
.trs-row.lead.on { color: var(--encre, #13263a); }

/* ===== « تكويناتنا » v13 : plus d'âme =====
   1. La section se teinte doucement de la couleur du domaine affiché (bleu, turquoise, or), et la teinte glisse quand on change.
   2. Les domaines deviennent un accordéon : celui qui est affiché s'ouvre en carte blanche avec sa liste ; les autres restent compacts
      (titre + phrase) et s'ouvrent au survol ou au toucher.
   3. Photo plus grande, légende plus forte. */
main > section.trainings.trs-sec { position: relative; isolation: isolate; --tint: #0097d7; }
main > section.trainings.tint-soft { --tint: #13a09a; }
main > section.trainings.tint-hard { --tint: #f2a93b; }
main > section.trainings.trs-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at var(--tx, 70%) 55%, var(--tint), transparent 70%); opacity: .13; transition: opacity .6s;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 80%, transparent 100%); }
html[dir="rtl"] main > section.trainings.trs-sec::before { --tx: 30%; }
@property --tint { syntax: "<color>"; inherits: true; initial-value: #0097d7; }
main > section.trainings.trs-sec { transition: --tint 1.1s ease; }
.trs { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important; align-items: center !important; }
.trs-cap b { font-size: clamp(1.4rem, 2.3vw, 2rem) !important; }
/* accordéon des domaines */
.trs-groups { gap: 12px !important; }
.trs-grp { padding: 20px 24px 18px !important; border-radius: 14px; background: transparent; cursor: pointer;
  transition: background .5s ease, box-shadow .5s ease, translate .5s cubic-bezier(.2, .8, .2, 1); }
.trs-grp::before { inset: 0 auto 0 0 !important; inset-inline-start: 0 !important; width: 4px !important; height: auto !important; border-radius: 14px 0 0 14px !important; }
html[dir="rtl"] .trs-grp::before { left: auto !important; right: 0 !important; border-radius: 0 14px 14px 0 !important; }
.trs-grp:not(.open)::before { opacity: .55; }
.trs-grp h3 { display: flex; align-items: center; gap: 10px; transition: color .4s; }
.trs-grp:not(.open) h3 { color: rgba(19, 38, 58, .7); }
.trs-grp:not(.open):hover h3 { color: var(--encre, #13263a); }
.trs-grp p { margin-bottom: 0 !important; }
.trs-grp.open { cursor: default; background: #fff; translate: calc(var(--dx, 1) * -6px) 0;
  box-shadow: 0 1px 2px rgba(8, 37, 71, .06), 0 24px 48px -26px rgba(8, 37, 71, .45); }
.trs-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2, .8, .2, 1); }
.trs-body > div { overflow: hidden; min-height: 0; }
.trs-grp.open .trs-body { grid-template-rows: 1fr; }
.trs-body .trs-list { margin-top: 16px !important; }
.trs-body > div { opacity: 0; transition: opacity .4s ease; }
.trs-grp.open .trs-body > div { opacity: 1; transition: opacity .5s ease .15s; }
@media (max-width: 900px) { .trs-grp.open { translate: none; } .trs { align-items: start !important; } }
@media (prefers-reduced-motion: reduce) { .trs-body, .trs-grp, main > section.trainings.trs-sec { transition: none !important; } }
main > section.trainings.trs-sec::before { opacity: .2; }   /* lueur de la couleur du domaine un peu plus présente */

/* ===== « تكويناتنا » v14 : espacements, ombres, fluidité ===== */
.trs { --ease: cubic-bezier(.22, 1, .36, 1); gap: clamp(56px, 7vw, 112px) !important; margin-top: clamp(44px, 5vw, 72px) !important; }
/* espacements */
.trs-groups { gap: 18px !important; }
.trs-grp { padding: 26px 30px 24px !important; }
.trs-grp h3 { margin-bottom: 6px !important; }
.trs-body .trs-list { margin-top: 20px !important; }
.trs-row { padding: 8px 0 !important; }
.trs-row small { margin-top: 3px; }
.trs-cap { padding: 90px clamp(22px, 2.8vw, 36px) clamp(20px, 2.4vw, 30px) !important; gap: 6px !important; }
/* ombres : plusieurs couches douces plutôt qu'une seule dure */
.trs-frame { box-shadow: 0 0 0 7px #fff, 0 1px 2px 7px rgba(8, 37, 71, .05), 0 12px 24px -10px rgba(8, 37, 71, .18), 0 44px 80px -36px rgba(8, 37, 71, .42) !important; }
.trs-stage:hover .trs-frame { box-shadow: 0 0 0 7px #fff, 0 1px 2px 7px rgba(8, 37, 71, .05), 0 18px 32px -12px rgba(8, 37, 71, .22), 0 60px 100px -40px rgba(8, 37, 71, .48) !important; }
.trs-peek { box-shadow: 0 0 0 7px #fff, 0 1px 2px 7px rgba(8, 37, 71, .04), 0 18px 40px -22px rgba(8, 37, 71, .32) !important; }
.trs-grp.open { box-shadow: 0 1px 1px rgba(8, 37, 71, .04), 0 6px 14px -6px rgba(8, 37, 71, .08), 0 28px 56px -28px rgba(8, 37, 71, .3) !important; }
.trs-grp:not(.open):hover { background: rgba(255, 255, 255, .55); }
/* fluidité */
.trs-frame > img { transition: opacity 0s linear .9s, translate .6s var(--ease) !important; }
.trs-frame > img.on { z-index: 1; transition: opacity .9s var(--ease), translate .6s var(--ease) !important; }   /* la nouvelle photo se pose sur l'ancienne : pas de creux */
.trs-frame, .trs-peek { transition-timing-function: var(--ease) !important; }
.trs-peek { transition-duration: 1s !important; }
.trs-frame { transition: transform .7s var(--ease), box-shadow .7s var(--ease) !important; }
.trs-grp { transition: background .6s var(--ease), box-shadow .6s var(--ease), translate .7s var(--ease) !important; }
.trs-body { transition: grid-template-rows .75s var(--ease) !important; }
.trs-grp.open .trs-body > div { transition: opacity .6s var(--ease) .18s !important; }
.trs-ind { transition: top .6s var(--ease), height .6s var(--ease), opacity .4s !important; }
.trs-cap { transition: opacity .5s var(--ease), translate .5s var(--ease) !important; }
.trs-row { transition: color .4s var(--ease) !important; }
.trs-deck.deal .trs-frame { animation-duration: 1.1s !important; animation-timing-function: var(--ease) !important; }

/* en-tête de « تكويناتنا » : la phrase directement sous le titre, alignée avec lui (plus de colonne à part ni de filet vertical) */
main > section.trainings .section-head { display: block !important; max-width: 46rem !important; }
main > section.trainings .section-head h2 { margin: 0 0 14px !important; }
main > section.trainings .section-head p { margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: 40rem;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem) !important; line-height: 1.75 !important; color: rgba(19, 38, 58, .64) !important; }
main > section.trainings .section-head p::before, main > section.trainings .section-head p::after { content: none !important; }
main > section.trainings .trs { margin-top: clamp(36px, 4.2vw, 60px) !important; }

/* en-tête de « تظاهراتنا الكبرى » : comme « تكويناتنا », la phrase directement sous le titre, alignée avec lui, sans filet */
main > section.projects .projects-head { display: block !important; max-width: 46rem !important; }
main > section.projects .projects-head h2 { margin: 0 0 14px !important; }
main > section.projects .projects-head p { margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: 40rem;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem) !important; line-height: 1.75 !important; color: rgba(255, 255, 255, .72) !important; }
main > section.projects .projects-head p::before, main > section.projects .projects-head p::after { content: none !important; }

/* ===== Harmonisation générale =====
   1. En-têtes de section : partout le même modèle — titre, puis la phrase juste en dessous, alignée, sans filet.
   2. Rythme vertical : 140 px en haut et en bas de chaque section faisaient ~280 px de vide entre deux sections blanches ;
      on passe à un rythme plus serré et constant. */
main > section.why .section-head { display: block !important; max-width: 46rem !important; }
main > section.why .section-head h2 { margin: 0 0 14px !important; }
main > section.why .section-head p { margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: 40rem;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem) !important; line-height: 1.75 !important; color: rgba(19, 38, 58, .64) !important; }
main > section:is(.network, .news, .team, .history, .faq, .join, .contact) { padding-top: clamp(64px, 7vw, 104px) !important; padding-bottom: clamp(64px, 7vw, 104px) !important; }
main > section.trainings { padding-bottom: clamp(64px, 7vw, 104px) !important; }
main > section:is(.network, .news, .team, .history, .faq) .section-head p,
main > section.news .news-head p { max-width: 40rem; line-height: 1.75 !important; }

/* ===== Accessibilité (audit) =====
   1. Contrastes : les petits textes or et bleu clair sur blanc, et le texte blanc sur les panneaux bleu clair / turquoise,
      n'atteignaient pas 4,5:1. On assombrit juste assez la teinte, sans changer l'identité des couleurs. */
.reach .reach-scale { color: #00709f !important; }
.reach .reach-scale span, .reach span[style*="b98a00"], .mv-item h3 { color: #8a6400 !important; }
.why ul.px-panels > li.area-int { --pc: #0a7cb5; }
.why ul.px-panels > li.area-biz { --pc: #1a7f7e; }
.why ul.px-panels > li.area .area-for { color: rgba(255, 255, 255, .94) !important; }
/* 2. Cibles tactiles : au moins 44 px sur écran tactile (langues, liens d'action, contacts, pied de page) */
@media (pointer: coarse) {
  .top .lang button, header button[data-lang] { min-width: 44px; min-height: 44px; }
  .area-link, .about-link, #news .link, #news button.link, #contact a, footer a, .trs-row { min-height: 44px; display: inline-flex; align-items: center; }
  .trs-row { display: flex; }
}

/* logo JCI Kélibia : comme le logo officiel, le nom de la section sous « JCI », aligné à gauche — quelle que soit la langue de la page
   (en arabe, la page est de droite à gauche et le nom se retrouvait à droite, sous le bouclier) */
.brand { direction: ltr !important; align-items: flex-start !important; text-align: left !important; }
.brand .brand-lo { padding-inline-start: 2px; text-align: left; }

/* ===== Parcours mobile (audit UX) =====
   La page faisait ~23 000 px de haut sur téléphone (≈ 29 écrans). Les listes de cartes secondaires deviennent des rangées
   qu'on fait glisser du doigt, avec la carte suivante qui dépasse (signal clair qu'il y a une suite) :
   programmes internationaux, « ومن أنشطتنا أيضًا », albums de « شبكتنا ». Les 4 domaines et les grands événements restent empilés.
   Le bouton « haut de page » est masqué sur téléphone : il recouvrait le texte, et l'en-tête fixe + la barre du bas suffisent. */
@media (max-width: 760px) {
  #projects .albums {
    display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 84%;
    gap: 14px !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(50% - 50vw) !important; padding: 6px calc(50vw - 50%) 18px !important; scroll-padding-inline: calc(50vw - 50%);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #projects .albums::-webkit-scrollbar { display: none; }
  #projects .albums > * { scroll-snap-align: start; min-width: 0; margin: 0 !important; }
  #toTop { display: none !important; }
}

/* ===== Fluidité : un seul langage de mouvement =====
   Avant : chaque type de carte bougeait à sa vitesse (0,2 s à 0,8 s) et sur sa propre courbe, l'ombre souvent sur une autre
   courbe que le mouvement — la carte et son ombre se décalaient. Désormais : une courbe (sortie douce), une durée, un même
   « flottement » au survol, une pression douce au clic. Seuls translate / transform / box-shadow / opacity sont animés
   (pas de recalcul de mise en page). */
:root { --m-ease: cubic-bezier(.22, 1, .36, 1); --m-dur: .55s; --m-fast: .25s;
  --lift-rest: 0 1px 2px rgba(8, 37, 71, .06), 0 10px 24px -16px rgba(8, 37, 71, .28);
  --lift-hover: 0 2px 4px rgba(8, 37, 71, .06), 0 26px 48px -22px rgba(8, 37, 71, .42); }
/* cartes : même tempo pour le mouvement et l'ombre */
#projects .ev-grid > .ev, #projects .albums > .album, #news .post {
  transition-property: translate, transform, box-shadow, opacity, filter, scale !important;
  transition-duration: var(--m-dur) !important; transition-timing-function: var(--m-ease) !important; }
/* cartes blanches sur fond clair : ombre en couches, au repos et au survol */
#news .post { box-shadow: var(--lift-rest); }
@media (hover: hover) and (pointer: fine) {
  #news .post:hover { transform: none !important; translate: 0 -6px; }
  #news .post:hover { box-shadow: var(--lift-hover); }
  #projects .albums > .album:hover { translate: 0 -6px; }
}
/* pression au clic / au toucher : la carte s'enfonce légèrement, retour souple */
#projects .ev-grid > .ev:active, #projects .albums > .album:active, #news .post:active {
  scale: .985; transition-duration: .12s !important; }
/* boutons : même courbe, petit soulèvement au survol, pression au clic */
.btn { transition: background .3s var(--m-ease), color .3s var(--m-ease), transform var(--m-fast) var(--m-ease), translate var(--m-fast) var(--m-ease), box-shadow .35s var(--m-ease), scale .15s var(--m-ease) !important; }
@media (hover: hover) and (pointer: fine) { .btn:hover { translate: 0 -2px; } }
.btn:active { scale: .97; translate: 0 0; }
/* membres du bureau : plus d'animation de marge intérieure (recalcul de mise en page) — un glissement à la place */
#team .member { transition: background .35s var(--m-ease), translate .45s var(--m-ease) !important; }
@media (hover: hover) and (pointer: fine) { #team .member:hover { translate: calc(var(--dx, 1) * -4px) 0; } }
html[dir="rtl"] #team { --dx: -1; }
/* FAQ : ouverture et fermeture en douceur (navigateurs récents ; ailleurs, ouverture instantanée comme avant) */
:root { interpolate-size: allow-keywords; }
#faq details::details-content { block-size: 0; overflow: hidden; opacity: 0;
  transition: block-size .5s var(--m-ease), opacity .35s var(--m-ease), content-visibility .5s allow-discrete; }
#faq details[open]::details-content { block-size: auto; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #projects .ev-grid > .ev, #projects .albums > .album, #news .post, .btn, #team .member { transition: none !important; }
  #faq details::details-content { transition: none; }
}

/* ===== Fluidité, suite : apparitions et fenêtres ===== */
/* photos des cartes : fondu à l'arrivée (classe posée seulement sur les images pas encore chargées) */
main img.img-wait { opacity: 0 !important; }
main :is(.album, .post, .prog, .member, .about-compo, .reach) img { transition: opacity .6s var(--m-ease, ease), scale 1.1s var(--m-ease, ease), transform .5s var(--m-ease, ease), filter .4s; }
/* visionneuse : ouverture et fermeture en fondu (au lieu d'apparaître d'un coup), la photo attend d'être chargée pour entrer */
.lightbox { opacity: 0; transition: opacity .4s var(--m-ease), display .4s allow-discrete, overlay .4s allow-discrete; }
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: rgba(5, 13, 24, 0); transition: background .4s var(--m-ease), display .4s allow-discrete, overlay .4s allow-discrete; }
.lightbox[open]::backdrop { background: rgba(5, 13, 24, .6); }
@starting-style { .lightbox[open]::backdrop { background: rgba(5, 13, 24, 0); } }
#lbImg.lb-wait { opacity: 0; }
#lbImg { transition: opacity .3s var(--m-ease); }
#lbThumbs button { transition: opacity .3s var(--m-ease), scale .3s var(--m-ease), box-shadow .3s var(--m-ease); }
/* menu sur téléphone : il glisse et les liens arrivent l'un après l'autre */
@media (max-width: 1024px) {
  .menu.open { animation: menuIn .42s var(--m-ease) both; }
  .menu.open > * { animation: menuItem .5s var(--m-ease) both; }
  .menu.open > *:nth-child(2) { animation-delay: .03s; } .menu.open > *:nth-child(3) { animation-delay: .06s; }
  .menu.open > *:nth-child(4) { animation-delay: .09s; } .menu.open > *:nth-child(5) { animation-delay: .12s; }
  .menu.open > *:nth-child(6) { animation-delay: .15s; } .menu.open > *:nth-child(7) { animation-delay: .18s; }
  .menu.open > *:nth-child(8) { animation-delay: .21s; } .menu.open > *:nth-child(9) { animation-delay: .24s; }
}
@keyframes menuIn { from { opacity: 0; translate: 0 -10px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes menuItem { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
#burger i { transition: rotate .35s var(--m-ease); }
#burger[aria-expanded="true"] i { rotate: 90deg; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox::backdrop, #lbImg { transition: none !important; }
  .menu.open, .menu.open > * { animation: none !important; }
  main img.img-wait { opacity: 1 !important; }
}

/* ===== « أبعد من قليبية » (ex-« شبكتنا ») =====
   Une échelle Kélibia → Zone A → Tunisie → monde : le fil se trace à l'arrivée et s'arrête sur le niveau survolé.
   Trois cartes, une par niveau : ce que le membre y gagne, les photos qui défilent, les albums à ouvrir. */

/* échelle */
.nx-scale { --reach: 0; position: relative; list-style: none; margin: clamp(34px, 4vw, 52px) 0 clamp(28px, 3vw, 40px); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); }
.nx-scale::before, .nx-scale::after { content: ""; position: absolute; top: 7px; height: 2px; border-radius: 2px;
  inset-inline-start: 12.5%; inset-inline-end: 12.5%; }
.nx-scale::before { background: rgba(13, 59, 102, .12); }
.nx-scale::after { background: linear-gradient(to var(--nx-to, left), #0d3b66, var(--nx-zone), var(--nx-nat), var(--nx-world));
  transform-origin: var(--nx-from, right); transform: scaleX(calc(var(--reach) / 3)); transition: transform 1.3s var(--nx-ease); }
html[dir="ltr"] .nx-scale::after { --nx-from: left; --nx-to: right; }
.nx-node { --lit: clamp(0, calc(var(--reach) - var(--n) + 1), 1); position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.nx-node i { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgba(13, 59, 102, .2);
  transition: box-shadow .5s var(--nx-ease), scale .5s var(--nx-ease), background .5s var(--nx-ease); transition-delay: calc(var(--n) * .28s); }
.nx-node span { font-size: .9rem; font-weight: 700; color: rgba(19, 38, 58, .45); transition: color .5s var(--nx-ease) calc(var(--n) * .28s); }
.nx-node:nth-child(1) { --c: #0d3b66; } .nx-node:nth-child(2) { --c: var(--nx-zone); } .nx-node:nth-child(3) { --c: var(--nx-nat); } .nx-node:nth-child(4) { --c: #c98a00; }
.nx-node i { background: color-mix(in srgb, var(--c) calc(var(--lit) * 100%), #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) calc(var(--lit) * 100%), rgba(13, 59, 102, .2)),
  0 0 0 calc(var(--lit) * 6px) color-mix(in srgb, var(--c) 16%, transparent); }
.nx-node span { color: color-mix(in srgb, var(--encre, #13263a) calc(var(--lit) * 100%), rgba(19, 38, 58, .4)); }
.nx-node:first-child span { font-weight: 800; }
/* cartes */
.nx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); align-items: stretch; }
.nx-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(8, 37, 71, .06), 0 14px 32px -20px rgba(8, 37, 71, .32);
  transition: translate .55s var(--nx-ease), box-shadow .55s var(--nx-ease), opacity .7s var(--nx-ease); }
.nx-zone { --c: var(--nx-zone); } .nx-nat { --c: var(--nx-nat); } .nx-world { --c: var(--nx-world); }
@media (hover: hover) and (pointer: fine) {
  .nx-card:hover { translate: 0 -6px; box-shadow: 0 2px 4px rgba(8, 37, 71, .06), 0 30px 56px -26px rgba(8, 37, 71, .45); }
}
.nx-ph { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe6ee; cursor: pointer; outline: none; }
.nx-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0s linear .9s; }
.nx-ph img.on { z-index: 1; opacity: 1; transition: opacity .9s var(--nx-ease); animation: nx-kb 10s ease-out both; }
@keyframes nx-kb { from { scale: 1.03; } to { scale: 1.1; } }
.nx-ph::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; z-index: 2; background: var(--c); }
.nx-ph:focus-visible { outline: 3px solid var(--barque, #edc213); outline-offset: -3px; }
.nx-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.nx-kick { font-size: .84rem; font-weight: 800; color: color-mix(in srgb, var(--c) 78%, #000); }
.nx-card h3 { margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.32rem); font-weight: 800; line-height: 1.4; color: var(--encre, #13263a); }
.nx-card p { margin: 0; font-size: .95rem; line-height: 1.75; color: rgba(19, 38, 58, .68); }
.nx-albums { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid rgba(13, 59, 102, .08); display: flex; flex-direction: column; gap: 2px; }
.nx-albums button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 6px 0; padding-inline-start: 14px; position: relative; cursor: pointer;
  font-size: .9rem; font-weight: 600; line-height: 1.45; color: rgba(19, 38, 58, .55); transition: color .3s var(--nx-ease); }
.nx-albums button::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: rgba(13, 59, 102, .18); transition: background .3s var(--nx-ease), scale .3s var(--nx-ease); }
.nx-albums button:hover, .nx-albums button.on { color: var(--encre, #13263a); }
.nx-albums button.on::before { background: var(--c); scale: 1.35; }
.nx-albums button:focus-visible { outline: 2px solid var(--barque, #edc213); outline-offset: 2px; border-radius: 4px; }
/* carte « monde » : pas de photo à nous — un fond nuit avec les anneaux du site qui tournent lentement */
.nx-world { background: #0b2a4a; }
.nx-world .nx-kick { color: var(--nx-world); }
.nx-world h3 { color: #fff; }
.nx-world p { color: rgba(255, 255, 255, .78); }
.nx-globe { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.nx-globe i { position: absolute; left: 50%; top: 58%; border-radius: 50%; border: 2px dashed rgba(242, 169, 59, .55); translate: -50% -50%; }
.nx-globe i:nth-child(1) { width: 34%; aspect-ratio: 1; border-style: solid; border-color: rgba(242, 169, 59, .85); animation: nx-spin 40s linear infinite; }
.nx-globe i:nth-child(2) { width: 58%; aspect-ratio: 1; border-color: rgba(92, 200, 245, .45); animation: nx-spin 60s linear infinite reverse; }
.nx-globe i:nth-child(3) { width: 84%; aspect-ratio: 1; border-color: rgba(95, 216, 207, .3); animation: nx-spin 90s linear infinite; }
@keyframes nx-spin { to { rotate: 360deg; } }
.nx-more { margin-top: auto; padding-top: 14px; font-size: .92rem; font-weight: 800; color: var(--nx-world); text-decoration: none; }
.nx-more:hover { color: #f7c46f; }
/* arrivée */


/* mobile : cartes l'une sous l'autre, échelle compacte */
@media (max-width: 900px) {
  .nx { grid-template-columns: minmax(0, 1fr); }
  .nx-scale { margin-inline: -4px; }
  .nx-node span { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-scale::after, .nx-node i, .nx-node span, .nx-card, .nx-ph img { transition: none !important; }
  .nx-ph img.on, .nx-globe i { animation: none !important; }
}

/* « أبعد من قليبية » sur téléphone : les trois niveaux en rangée qu'on fait glisser, comme les autres listes du site */


/* ===== « أبعد من قليبية » v2 : l'échelle devient une onde =====
   Kélibia au centre, puis la Zone A, la Tunisie et le monde en cercles de plus en plus larges — le titre mis en image,
   dans le langage des anneaux déjà présents sur le site. Placée à côté du titre (elle remplit le vide à côté de l'en-tête).
   Mouvement : à l'arrivée, les cercles s'ouvrent l'un après l'autre depuis le centre ; puis une onde douce part de Kélibia
   toutes les quelques secondes ; au survol d'une carte, seuls les cercles jusqu'à son niveau restent allumés. */



.nx-scale { grid-column: 2; grid-row: 1; position: relative; width: clamp(260px, 27vw, 370px); aspect-ratio: 1; margin: 0 !important; display: block !important; }
.nx-scale::after { content: none !important; }
/* l'onde qui part du centre */
.nx-scale::before { content: "" !important; position: absolute; left: 50%; top: 50%; width: 18px; height: auto !important; aspect-ratio: 1; inset: auto !important;
  left: 50% !important; top: 50% !important; translate: -50% -50%; border-radius: 50%; background: none !important; border: 2px solid rgba(13, 59, 102, .35); opacity: 0; pointer-events: none; }

.nx-node { position: absolute !important; inset: 0; display: block !important; pointer-events: none; }
.nx-node:nth-child(1) { --d: 18px; } .nx-node:nth-child(2) { --d: 44%; } .nx-node:nth-child(3) { --d: 72%; } .nx-node:nth-child(4) { --d: 100%; }
.nx-node i { position: absolute; left: 50%; top: 50%; width: var(--d) !important; height: auto !important; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: color-mix(in srgb, var(--c) calc(var(--lit) * 7%), transparent) !important;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) calc(var(--lit) * 100%), rgba(13, 59, 102, .12)) !important;
  transition: box-shadow .6s var(--nx-ease), background .6s var(--nx-ease), scale 1.1s var(--nx-ease), opacity .8s var(--nx-ease) !important;
  transition-delay: calc(var(--n) * .25s) !important; }
.nx-node:nth-child(1) i { background: var(--c) !important; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent) !important; }
.nx-node:nth-child(4) i { box-shadow: none !important; outline: 2px dashed color-mix(in srgb, var(--c) calc(var(--lit) * 100%), rgba(13, 59, 102, .14)); outline-offset: -2px; }
/* noms posés sur le haut de chaque cercle (Kélibia sous le point central) */
.nx-node span { position: absolute; left: 50%; top: calc(50% - var(--d) / 2); translate: -50% -50%; padding: 2px 10px; border-radius: 20px; white-space: nowrap;
  background: #f3f6f9; font-size: .88rem !important; font-weight: 800 !important; }
.nx-node:nth-child(1) span { top: calc(50% + 24px); translate: -50% 0; background: transparent; font-size: .95rem !important; }
/* arrivée : les cercles s'ouvrent depuis le centre */



@media (max-width: 900px) {
  
  .nx-scale { grid-column: 1; grid-row: 2; width: min(300px, 78vw); margin: 34px auto 0 !important; }
  
}

.nx-node:not(:first-child) i { background: transparent !important; }
.nx-scale { margin-top: 18px !important; }


/* =====================================================================
   Refonte des sections du bas : « ما نؤمن به », FAQ, « انضمّ إلينا », partenaires et contact
   ===================================================================== */

/* --- « ما نؤمن به » (le Credo) : bande nuit, le texte devient la pièce maîtresse ; chaque ligne s'allume à la lecture --- */
main > section.history { background: #0b2a4a !important; color: #fff; position: relative; overflow: hidden; }
main > section.history h2 { color: #fff !important; }
main > section.history .creed { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2fr) !important; gap: clamp(28px, 5vw, 80px) !important; margin-top: clamp(28px, 3.5vw, 48px) !important; align-items: start; }
main > section.history .creed-head { position: sticky; top: 120px; }
main > section.history .creed-head h3 { font-size: .9rem !important; font-weight: 800; color: #f2a93b !important; margin: 0 0 10px !important; }
main > section.history .creed-head p { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.8rem) !important; font-weight: 800 !important; line-height: 1.25; color: #fff !important; }
main > section.history .creed-list { gap: 0 !important; }
main > section.history .creed-list li { --on: 1; padding: clamp(14px, 1.6vw, 20px) 0 !important; padding-inline-start: 0 !important; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: clamp(1.2rem, 2.1vw, 1.7rem) !important; font-weight: 600; line-height: 1.6 !important;
  color: color-mix(in srgb, #fff calc(var(--on) * 100%), rgba(255, 255, 255, .2)) !important;
  translate: calc((1 - var(--on)) * var(--dx, 1) * -14px) 0; transition: color .35s ease-out, translate .45s cubic-bezier(.22, 1, .36, 1); }
html[dir="rtl"] main > section.history { --dx: -1; }
main > section.history .creed-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }
main > section.history .creed-list li::before { content: none !important; }
@media (max-width: 760px) { main > section.history .creed-head { position: static; } }

/* --- FAQ : colonne d'appui (titre, phrase, recours Messenger) + questions en cartes --- */
.faq-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 14px; }
.faq-aside h2 { margin: 0 !important; }
.faq-sub { margin: 0; font-size: clamp(1.02rem, 1.2vw, 1.1rem); line-height: 1.75; color: rgba(19, 38, 58, .64); }
.faq-ask { margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(13, 59, 102, .1); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.faq-ask > span { font-weight: 700; color: var(--encre, #13263a); }
.faq-ask .btn { display: inline-flex; align-items: center; gap: 8px; }
.faq-ask .btn i { font-size: 1.2em; color: #0a7cb5; }
#faq .faq-list { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
#faq details { background: #fff; border-radius: 16px; border: 0 !important; padding: 0 22px;
  box-shadow: 0 1px 2px rgba(8, 37, 71, .05), 0 10px 26px -18px rgba(8, 37, 71, .3); transition: box-shadow .45s var(--m-ease, ease); }
#faq details[open] { box-shadow: 0 1px 2px rgba(8, 37, 71, .05), 0 22px 44px -24px rgba(8, 37, 71, .4); }
#faq summary { padding: 20px 0 !important; font-size: 1.05rem; font-weight: 700; }
#faq details p { margin: 0; padding: 0 0 20px; line-height: 1.8; color: rgba(19, 38, 58, .72); }
@media (max-width: 760px) { .faq-aside { position: static; } }

/* --- « انضمّ إلينا » : bande nuit avec le fort (écho de l'accueil), le formulaire en carte blanche surélevée --- */
main > section.join { background: linear-gradient(180deg, rgba(6, 20, 40, .9), rgba(6, 20, 40, .95)), url("../img/photos/fort-kelibia-nuit.webp") center 40% / cover !important; color: #fff; }
main > section.join .join-text h2 { color: #fff !important; }
main > section.join .join-text > p { color: rgba(255, 255, 255, .8) !important; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.75; }
main > section.join .join-text h3 { color: #f2a93b !important; font-size: .95rem !important; font-weight: 800; margin-top: clamp(24px, 3vw, 36px) !important; }
main > section.join .steps { gap: 0 !important; margin-top: 8px; }
main > section.join .steps li { position: relative; padding: 14px 0; color: rgba(255, 255, 255, .9); border-top: 1px solid rgba(255, 255, 255, .1); line-height: 1.6; }
main > section.join .steps li::before { background: #f2a93b !important; color: #0b2a4a !important; box-shadow: 0 0 0 5px rgba(242, 169, 59, .16); }
main > section.join .join-form { background: #fff !important; color: var(--encre, #13263a); border-radius: 22px !important; padding: clamp(24px, 3vw, 40px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 40px 80px -30px rgba(0, 0, 0, .6) !important; }
main > section.join .join-form .btn-primary { width: 100%; justify-content: center; }
main > section.join .rip-deco { opacity: .35; }

/* --- Partenaires : bande dorée claire, l'appel à l'action devient le bouton principal --- */
#contact .partner { background: linear-gradient(120deg, #fff6e3, #fdecc8) !important; border: 1px solid rgba(201, 138, 0, .18) !important; border-radius: 22px !important;
  padding: clamp(26px, 3.4vw, 44px) clamp(24px, 3.4vw, 48px) !important; box-shadow: 0 18px 40px -28px rgba(140, 95, 0, .45) !important; }
#contact .partner h2 { margin-bottom: 8px !important; }
#contact .partner p { color: rgba(19, 38, 58, .72) !important; max-width: 40rem; }
#contact .partner .btn { background: #0b2a4a !important; color: #fff !important; border-color: #0b2a4a !important; }
/* --- Contact : coordonnées plus lisibles --- */
#contact .contact-list > div { padding: 14px 0; border-top: 1px solid rgba(13, 59, 102, .08); }
#contact .contact-list dt { font-size: .82rem; font-weight: 700; color: rgba(19, 38, 58, .55); margin-bottom: 4px; }
#contact .contact-list dd { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--encre, #13263a); }
#contact .contact-form { background: #fff; border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 1px 2px rgba(8, 37, 71, .05), 0 22px 50px -30px rgba(8, 37, 71, .35); }

/* =====================================================================
   Refonte, suite : « سنتنا 2026 », le bureau, le pied de page
   ===================================================================== */

/* --- « سنتنا 2026 » : cartes éditoriales épurées — photo en tête avec l'étiquette posée dessus, date discrète,
   titre sur deux lignes, résumé sur trois ; bords du carrousel en fondu pour signaler qu'il y a une suite --- */
#news .news-grid { scrollbar-width: none; padding: 8px 4px 24px !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
#news .news-grid::-webkit-scrollbar { display: none; }
#news .post { position: relative; display: flex !important; flex-direction: column; gap: 6px; padding: 0 0 20px !important; border-radius: 18px !important; overflow: hidden; background: #fff; border: 0 !important; }
#news .post > img { width: 100%; aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; margin: 0 0 10px !important; border-radius: 0 !important; }
#news .post .post-lvl { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; margin: 0 !important; padding: 5px 10px !important; border-radius: 8px !important;
  background: rgba(6, 20, 40, .72) !important; color: #fff !important; font-size: .74rem !important; font-weight: 800; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#news .post > time, #news .post > h3, #news .post > p, #news .post > .link { margin-inline: 20px !important; }
#news .post > time { font-size: .8rem; font-weight: 700; color: rgba(19, 38, 58, .5) !important; }
#news .post > h3 { margin-top: 0 !important; margin-bottom: 0 !important; font-size: 1.06rem !important; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#news .post > p { margin-top: 2px !important; margin-bottom: 0 !important; font-size: .92rem; line-height: 1.7; color: rgba(19, 38, 58, .64); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#news .post > .link { margin-top: auto !important; padding-top: 10px; align-self: flex-start; }

/* --- Le bureau : la présidente en grand, les six autres membres en tuiles homogènes (photo ou initiales au même format) --- */
#team .member { background: #fff; border-radius: 16px; padding: 14px 18px !important; gap: 14px; align-items: center;
  box-shadow: 0 1px 2px rgba(8, 37, 71, .05), 0 10px 26px -18px rgba(8, 37, 71, .3); border: 0 !important; }
#team .member .avatar { width: 54px !important; height: 54px !important; flex: 0 0 54px; border-radius: 50%; display: grid; place-items: center;
  background-color: #0b2a4a; color: #f2a93b; font-weight: 800; font-size: .9rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(242, 169, 59, .55); background-size: cover; background-position: center; }
#team .member .name { font-weight: 800; color: var(--encre, #13263a); }
#team .member .role { font-size: .86rem; color: rgba(19, 38, 58, .6); line-height: 1.45; margin-top: 2px; }
#team .lead-member { border-radius: 22px !important; box-shadow: 0 1px 2px rgba(8, 37, 71, .05), 0 26px 56px -30px rgba(8, 37, 71, .45) !important; }

/* --- Pied de page : trois colonnes (identité et réseaux, plan du site, coordonnées + adhésion), puis la barre du bas --- */





.footer h2 { margin: 0 0 16px; font-size: .86rem !important; font-weight: 800; color: #f2a93b !important; }










   /* identité empilée : logo, phrase, réseaux */

/* =====================================================================
   Refonte : « من نحن » (le relais) et les programmes de « مجالات الفرص »
   ===================================================================== */

/* --- « من نحن » : le paragraphe d'histoire, qui flottait sous la photo, devient « le relais » :
   1994 → 2009 → 2026 sur un fil ; une étincelle dorée passe d'une date à l'autre (le flambeau que chaque bureau reprend) --- */
.about-row { align-items: flex-start !important; }
.about-story-box { flex: 1 1 0; min-width: 0; max-width: 34rem; padding-top: clamp(28px, 3vw, 44px); }
.about-story-box .about-story { margin: 18px 0 0 !important; padding: 0 !important; border: 0 !important; max-width: none !important;
  font-size: clamp(1rem, 1.15vw, 1.08rem) !important; line-height: 1.85 !important; color: rgba(19, 38, 58, .7) !important; }
.about-story-box .about-story::before, .about-story-box .about-story::after { content: none !important; }
.about-relay { display: flex; align-items: center; gap: 14px; direction: ltr; }
html[dir="rtl"] .about-relay { flex-direction: row-reverse; }
.about-relay b { font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 800; color: #0d3b66; letter-spacing: .01em; }
.about-relay b:last-child { color: #c98a00; }
.about-relay i { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(13, 59, 102, .14); overflow: visible; }
.about-relay i::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #f2a93b;
  box-shadow: 0 0 0 4px rgba(242, 169, 59, .2), 0 0 14px 2px rgba(242, 169, 59, .55); left: 0; opacity: 0; }
html[dir="rtl"] .about-relay i::after { left: auto; right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .about-relay i::after { animation: relay 4.2s cubic-bezier(.45, 0, .2, 1) infinite; }
  .about-relay i:nth-of-type(2)::after { animation-delay: 2.1s; }
}
@keyframes relay { 0% { inset-inline-start: 0; opacity: 0; } 10% { opacity: 1; } 45% { opacity: 1; } 50% { inset-inline-start: calc(100% - 10px); opacity: 0; } 100% { inset-inline-start: calc(100% - 10px); opacity: 0; } }
@media (max-width: 760px) { .about-story-box { max-width: none; padding-top: 8px; } }

/* --- Programmes : une hiérarchie claire. La phrase d'accroche devient le titre, le gain une encadré teinté,
   les trois repères (pour qui, comment, jusqu'où) une bande colorée en bas de carte, l'action un vrai bouton --- */
#why li.prog { display: flex !important; flex-direction: column; border-radius: 20px !important; overflow: hidden; padding: 0 !important;
  border: 0 !important; border-top: 0 !important; background: #fff !important; }















html[dir="rtl"] .about-relay i { direction: rtl; }  html[dir="rtl"] .about-relay i::after { right: auto; left: auto; }   /* en arabe, l'étincelle va bien de 1994 vers 2009 puis 2026 */


/* =====================================================================
   SYSTÈME DE DESIGN UNIFIÉ (dernier calque — à garder en fin de fichier)
   Audit : 12 rayons d'angle, 23 ombres, 12 tailles de titres de cartes, 2 familles de boutons qui se contredisaient.
   On ramène tout à une échelle : 4 rayons, 3 ombres, 3 tailles de texte, boutons en pilule partout.
   ===================================================================== */
:root {
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(8, 37, 71, .05), 0 8px 22px -16px rgba(8, 37, 71, .3);
  --sh-2: 0 1px 2px rgba(8, 37, 71, .05), 0 18px 40px -24px rgba(8, 37, 71, .4);
  --sh-3: 0 2px 4px rgba(8, 37, 71, .06), 0 30px 60px -28px rgba(8, 37, 71, .5);
  --t-card: clamp(1.08rem, 1.25vw, 1.2rem); --t-body: 1rem; --t-small: .92rem; --t-meta: .82rem;
}

/* --- rayons --- */
main .post-lvl { border-radius: var(--r-xs) !important; }
main input, main textarea, main select { border-radius: var(--r-sm) !important; }
.trs-frame, .trs-peek { border-radius: var(--r-sm) !important; }
#team .member, #faq details, .about-cover .hs, .trs-grp, #news .post, main .album, .nx-card { border-radius: var(--r-md) !important; }
.about-card, #projects .ev, .mv-item, #why li.area, #why li.prog, #team .lead-member, main .join-form, #contact .partner, #contact .contact-form, .about-cover { border-radius: var(--r-lg) !important; }

/* --- ombres : repos / surélevé / survol --- */
#team .member, #faq details:not([open]), #news .post { box-shadow: var(--sh-1) !important; }
#faq details[open], .trs-grp.open, #team .lead-member, #contact .contact-form, .about-card { box-shadow: var(--sh-2) !important; }
@media (hover: hover) and (pointer: fine) {
  #team .member:hover, #news .post:hover { box-shadow: var(--sh-3) !important; }
}

/* --- boutons : une seule famille, en pilule --- */

main .btn { font-weight: 800; letter-spacing: 0; }

/* --- texte : une taille de titre de carte, une de corps, une secondaire --- */
#news .post > h3, .nx-card h3, .trs-grp h3, main .album-title, #faq summary, .lead-member .name { font-size: var(--t-card) !important; line-height: 1.45 !important; }
.nx-card p, .trs-grp p, #faq details p, .faq-sub, .about-story-box .about-story { font-size: var(--t-body) !important; }
#news .post > p, main .album-desc, #team .member .role { font-size: var(--t-small) !important; }
#news .post > time, .nx-kick, main .album-when, .trs-cap small { font-size: var(--t-meta) !important; }
/* système de design : derniers écarts */
main > section.join .join-form { border-radius: var(--r-lg) !important; }
main .creed, main .faq-list { border-radius: var(--r-lg) !important; }
.nx-node span { border-radius: var(--r-pill) !important; }
main section .albums .album .album-title, #projects .album .album-title { font-size: var(--t-card) !important; }

/* =====================================================================
   PROGRAMMES JCI (#programmes.pgx) — feuille unique, consolidée
   Remplace les calques successifs (« quatre scènes », « scène cinéma », profondeur, chiffre/logo, morphose, rythme).
   Structure : en-tête | scène 16:9 (photos officielles, accroche écrite dessus) + rail de 4 cartes photo | récit en 3 colonnes.
   Les 4 programmes sont superposés dans la même grille (fondu, hauteur stable) ; seul le programme choisi est actif.
   Logique : interactions.js (bloc « Programmes JCI »).
   ===================================================================== */
@property --pgx-c { syntax: "<color>"; inherits: true; initial-value: #2a9d9c; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- bloc ---------- */
.pgx { --pgx-c: #2a9d9c; --dir: 1; --ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 23vw, 300px);
  grid-template-areas: "head head" "stage nav" "story story";
  column-gap: 18px; align-items: stretch;
  margin-top: clamp(64px, 8vw, 112px); margin-bottom: clamp(56px, 7vw, 104px);
  transition: --pgx-c .9s ease; }
/* halo de la couleur du programme, dans le coin */
.pgx::before { content: ""; position: absolute; z-index: -1; inset: -8% -12% auto auto; width: min(70vw, 760px); aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--pgx-c) 22%, transparent), transparent 72%);
  filter: blur(10px); pointer-events: none; }
html[dir="rtl"] .pgx::before { inset: -8% auto auto -12%; }

.pgx-head { grid-area: head; max-width: 60ch; margin-bottom: clamp(26px, 3vw, 38px); }
.pgx-head h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--port); }
html[lang="ar"] .pgx-head h3 { font-family: var(--font-ar-display); font-weight: 600; letter-spacing: 0; }
.pgx-head p { margin: 0; color: var(--gris, #5b6b80); font-size: 1.05rem; text-wrap: pretty; }

/* tous les programmes dans la même grille : la scène et le récit de chacun occupent les mêmes cases */
.pgx-panels, .pgx-p { display: contents !important; }
.pgx-stage { grid-area: stage; min-width: 0; position: relative; --mx: 0; --my: 0; }
.pgx-story { grid-area: story; }
.pgx-p .pgx-stage, .pgx-p .pgx-story { transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.pgx-p:not(.on) .pgx-stage, .pgx-p:not(.on) .pgx-story { opacity: 0; visibility: hidden; pointer-events: none; }
.pgx-p.on .pgx-stage, .pgx-p.on .pgx-story { opacity: 1; visibility: visible; z-index: 1; transition: opacity .7s var(--ease), visibility 0s; }

/* ---------- rail : 4 cartes photo ---------- */
.pgx-nav { grid-area: nav; position: relative; display: flex; flex-direction: column; gap: 12px; }
.pgx-tab { position: relative; z-index: 1; flex: 1 1 0; display: grid; grid-template-columns: clamp(78px, 7vw, 96px) minmax(0, 1fr);
  align-items: center; gap: 16px; padding: 10px; padding-inline-end: 16px; border: 0; border-radius: 18px; background: #fff;
  font: inherit; color: var(--port); text-align: start; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px transparent, var(--sh-1);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .3s var(--ease), box-shadow .45s ease, background .45s ease; }
.pgx-tab:hover:not(.on) { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(6px); }
.pgx-tab:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; }
.pgx-tab.on { background: color-mix(in oklab, var(--pc) 7%, #fff);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--pc) 45%, transparent), 0 18px 34px -22px color-mix(in oklab, var(--pc) 80%, #082547); }
/* anneau lumineux qui tourne autour de la carte active */
.pgx-tab::before { content: ""; position: absolute; inset: -1.5px; border-radius: 19.5px; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: conic-gradient(from var(--ang), color-mix(in oklab, var(--pc) 95%, #fff), transparent 28%, transparent 55%, color-mix(in oklab, var(--pc) 60%, #fff) 80%, color-mix(in oklab, var(--pc) 95%, #fff));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pgx-tab.on::before { opacity: 1; animation: pgxSpin 5s linear infinite; }

.pgx-tab-ph { position: relative; align-self: stretch; min-height: 64px; border-radius: 12px; overflow: hidden; background: color-mix(in oklab, var(--pc) 25%, #0b2340); }
.pgx-tab-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.92);
  transform: scale(1.02); transition: filter .5s ease, transform .9s var(--ease); }
.pgx-tab:hover .pgx-tab-ph > img, .pgx-tab.on .pgx-tab-ph > img { filter: none; transform: scale(1.1); }
.pgx-tab.on .pgx-tab-ph > img { animation: pgxThumb 8s ease-in-out infinite alternate; }
.pgx-tab-mark { position: absolute; z-index: 1; inset-block-end: 6px; inset-inline-start: 6px; display: grid; place-items: center; height: 22px; padding: 0 7px;
  border-radius: 7px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .6); transition: background .4s ease; }
.pgx-tab.on .pgx-tab-mark { background: #fff; box-shadow: 0 6px 14px -8px color-mix(in oklab, var(--pc) 70%, transparent); }
.pgx-tab-mark img { max-width: 34px; max-height: 15px; width: auto; height: auto; }
.pgx-tab-word { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: .7rem; letter-spacing: -.02em; color: var(--pc); }
.pgx-tab-txt { display: grid; gap: 1px; min-width: 0; }
.pgx-tab-txt b { font-weight: 700; font-size: .96rem; line-height: 1.3; text-wrap: balance; }
.pgx-tab-txt small { margin-top: 2px; font-size: .8rem; color: var(--gris, #5b6b80); }
.pgx-tab.on .pgx-tab-txt small { color: color-mix(in oklab, var(--pc) 85%, #000); }

/* ---------- scène 16:9 ---------- */
/* halo : la photo en cours, très floue, déborde derrière la scène */
.pgx-amb { position: absolute; z-index: -1; inset: 8% -3% -8% -3%; pointer-events: none; filter: blur(56px) saturate(1.6); opacity: .5; transform: translateZ(0); }
.pgx-amb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 60px; opacity: 0; transition: opacity 1.8s ease; }
.pgx-amb img.on { opacity: 1; }

.pgx-frame { position: relative; z-index: 1; aspect-ratio: 16 / 9; height: 100%; min-height: 100%; overflow: hidden; isolation: isolate; border-radius: 26px;
  background: color-mix(in oklab, var(--pc) 20%, #0b2340);
  box-shadow: 0 2px 4px rgba(8, 37, 71, .08), 0 40px 70px -38px color-mix(in oklab, var(--pc) 75%, #082547);
  scale: calc(.93 + .07 * var(--open, 1)); transform-origin: 50% 70%; transition: scale .2s linear; }
/* dégradés de lisibilité : la couleur du programme en bas (accroche), une ombre en haut (logo, chiffre) */
.pgx-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--pc) 45%, #050f22) 0%, color-mix(in oklab, var(--pc) 30%, rgba(5, 15, 34, .55)) 28%, transparent 62%),
              linear-gradient(to bottom, rgba(5, 15, 34, .55), rgba(5, 15, 34, .18) 24%, transparent 40%); }
/* grain de pellicule, très léger */
.pgx-frame::before { content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .11; 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 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: pgxGrain 1.2s steps(5) infinite; }

/* photos : la nouvelle s'ouvre en cercle par-dessus l'ancienne ; travelling lent ; parallaxe (pointeur, défilement) */
.pgx-photos { position: absolute; inset: -4.5%; --ox: 82%;
  transform: translate(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px + var(--sy, 0px))); transition: transform .9s var(--ease); }
html[dir="rtl"] .pgx-photos { --ox: 18%; }
.pgx-photos img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(1.04); }
.pgx-photos img.was { opacity: 1; z-index: 1; }
.pgx-photos img.on { opacity: 1; z-index: 2; animation: pgxOpen 1.5s cubic-bezier(.7, 0, .2, 1) both, pgxKen 11s ease-out both; }

/* reflet qui balaie la photo ; lumière qui suit le pointeur */
.pgx-sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.pgx-sheen::before { content: ""; position: absolute; inset: -20% -60%; transform: translateX(-70%) skewX(-14deg); opacity: 0; mix-blend-mode: overlay;
  background: linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, .06) 56%, transparent 64%); }
.pgx-sheen.go::before { animation: pgxSweep 1.6s cubic-bezier(.45, 0, .2, 1) .25s both; }
.pgx-light { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s ease; mix-blend-mode: soft-light;
  background: radial-gradient(520px circle at calc((var(--mx, 0) + .5) * 100%) calc((var(--my, 0) + .5) * 100%), rgba(255, 255, 255, .55), transparent 62%); }
@media (hover: hover) and (pointer: fine) { .pgx-stage:hover .pgx-light { opacity: 1; } }

/* logo : marque blanche intégrée (le logo est en dir="ltr" : son coin suit la langue de la page) */
.pgx-badge { position: absolute; z-index: 4; top: clamp(18px, 2.4vw, 28px); left: clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: 10px; color: #fff; }
html[dir="rtl"] .pgx-badge { left: auto; right: clamp(20px, 3vw, 36px); }
.pgx-badge img { display: block; height: clamp(30px, 3.1vw, 42px); width: auto; filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(0, 0, 0, .5)); }
.pgx-badge-jci { font: italic 800 clamp(1.35rem, 2vw, 1.7rem)/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.04em; text-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.pgx-badge b { padding-inline-start: 10px; border-inline-start: 1.5px solid rgba(255, 255, 255, .65); font: 700 clamp(.9rem, 1.2vw, 1.05rem)/1.1 "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.01em; text-shadow: 0 3px 14px rgba(0, 0, 0, .5); }

/* accroche écrite sur la photo */
.pgx-cap { position: absolute; z-index: 4; inset: auto 0 0 0; padding: clamp(20px, 3vw, 36px); padding-inline-end: clamp(130px, 14vw, 180px); color: #fff; }
.pgx-cap-name { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .95rem; font-weight: 700; color: rgba(255, 255, 255, .92); }
.pgx-cap-name small { font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .66); }
.pgx-cap-hook { margin: 0; max-width: 24ch; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
  text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
html[lang="ar"] .pgx-cap-hook { font-family: var(--font-ar-display); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.pgx-cap-hook .w { display: inline-block; }

/* chiffre : grande typographie dans le coin haut, opposé au logo */
.pgx-chip { position: absolute; z-index: 4; margin: 0; top: clamp(18px, 2.4vw, 28px); inset-inline-end: clamp(20px, 3vw, 36px);
  display: flex; align-items: flex-start; gap: 14px; max-width: min(340px, 42%); color: #fff; }
.pgx-chip b { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: .9; letter-spacing: -.045em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff 0%, #fff 38%, color-mix(in oklab, var(--pc) 45%, #fff) 50%, #fff 62%, #fff 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .45)); animation: pgxShine 5.5s ease-in-out 1.2s infinite; }
html[dir="rtl"] .pgx-chip b { text-align: right; }
.pgx-chip.long b { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.pgx-chip i { flex: 0 0 3px; align-self: stretch; min-height: 2.4em; border-radius: 3px; transform-origin: 50% 100%;
  background: linear-gradient(to top, transparent, color-mix(in oklab, var(--pc) 55%, #fff) 40%, #fff);
  box-shadow: 0 0 16px color-mix(in oklab, var(--pc) 70%, #fff), 0 0 3px #fff; }
.pgx-chip span { padding-top: .35em; max-width: 14ch; font-size: .92rem; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }

/* pastilles photo : en bas, à l'opposé de l'accroche ; la photo active s'allonge */
.pgx-dots { position: absolute; z-index: 4; bottom: clamp(18px, 2.6vw, 32px); right: clamp(16px, 2.6vw, 30px); display: flex; gap: 2px; }
html[dir="rtl"] .pgx-dots { right: auto; left: clamp(16px, 2.6vw, 30px); }
.pgx-dots button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .5s var(--ease); }
.pgx-dots button span { display: block; width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .5);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .35); transition: width .5s var(--ease), background .4s ease; }
.pgx-dots button:hover span { background: rgba(255, 255, 255, .85); }
.pgx-dots button.on { width: 36px; }
.pgx-dots button.on span { width: 24px; background: #fff; }

/* ---------- récit : posé sur la page, dans la grille de la scène et du rail (plus de boîte) ----------
   Sous la photo : description (texte d'ouverture) | réussite tunisienne, puis les 3 étapes en frise horizontale.
   Sous le rail : les deux boutons, empilés, qui prolongent la colonne des cartes.
   Le nom et l'accroche sont sur la photo ; gardés ici, masqués, pour les lecteurs d'écran. */
.pgx-story { position: relative; margin-top: clamp(30px, 3.4vw, 44px); transform-origin: center; }
.pgx-front > .pgx-name, .pgx-front > .pgx-hook { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* colonnes : [description] [espace] [réussite] [gouttière 18 px = celle du rail] [rail] */
.pgx-front, .pgx-back { display: grid; grid-template-columns: minmax(0, 1.3fr) clamp(32px, 4vw, 60px) minmax(0, 1fr) 18px clamp(250px, 23vw, 300px); column-gap: 0; row-gap: clamp(26px, 3vw, 36px); align-items: start; }
.pgx-front { grid-template-areas: "desc . proof . acts" "how how how how how"; }
.pgx-desc { grid-area: desc; margin: 0; color: #2c3e55; font-size: clamp(1.06rem, 1.25vw, 1.16rem); line-height: 1.75; text-wrap: pretty; }
.pgx-desc strong { display: block; margin-top: 12px; color: color-mix(in oklab, var(--pc) 70%, #0b2540); font-weight: 700; }
.pgx-proof { grid-area: proof; position: relative; margin: 0; padding-inline-start: 18px; font-size: .98rem; line-height: 1.72; color: #2b3b52; }
.pgx-proof::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--pc); }
/* étapes : une frise, les numéros reliés par un trait de la couleur du programme */
.pgx-how { grid-area: how; padding-top: clamp(22px, 2.4vw, 28px); border-top: 1px solid color-mix(in oklab, var(--pc) 22%, transparent); }
.pgx-how-t { margin: 0 0 18px; font-size: .88rem; font-weight: 700; color: color-mix(in oklab, var(--pc) 85%, #000); }
.pgx-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: pgx; }
.pgx-how li { position: relative; counter-increment: pgx; padding-top: 40px; font-size: .95rem; line-height: 1.6; color: #3a4b62; }
.pgx-how li::before { content: ""; position: absolute; top: 13px; height: 2px; inset-inline-start: 38px; inset-inline-end: -22px; border-radius: 2px;
  background: color-mix(in oklab, var(--pc) 55%, transparent); transform-origin: left; }
html[dir="rtl"] .pgx-how li::before { transform-origin: right; }
.pgx-how li:last-child::before { display: none; }
.pgx-how li::after { content: counter(pgx); position: absolute; top: 0; inset-inline-start: 0; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--pc) 70%, transparent), 0 6px 14px -8px color-mix(in oklab, var(--pc) 60%, transparent);
  font: 800 .78rem/1 "Plus Jakarta Sans", sans-serif; color: color-mix(in oklab, var(--pc) 88%, #000); transition: background .4s ease, color .4s ease; }
.pgx-how li:hover::after { background: color-mix(in oklab, var(--pc) 85%, #000); color: #fff; }
/* boutons : sous le rail, pleine largeur de la colonne */
.pgx-acts { grid-area: acts; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pgx-acts > .pgx-cta, .pgx-acts > .pgx-more, .pgx-acts > .pgx-back-btn { justify-content: center; min-height: 52px; }
.pgx-acts > .pgx-src { align-self: center; padding: 6px 0; }

/* boutons (légèrement « aimantés » vers le pointeur : --tx / --ty posés par le script) */
.pgx-cta, .pgx-more, .pgx-back-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 .95rem/1 inherit; cursor: pointer; text-decoration: none; translate: var(--tx, 0px) var(--ty, 0px);
  transition: translate .4s var(--ease), transform .35s var(--ease), box-shadow .35s ease, background .3s ease; }
.pgx-cta { border: 0; background: color-mix(in oklab, var(--pc) 82%, #000); color: #fff !important;
  box-shadow: 0 12px 24px -14px color-mix(in oklab, var(--pc) 90%, #000); }
.pgx-more, .pgx-back-btn { background: #fff; color: color-mix(in oklab, var(--pc) 85%, #000); border: 1.5px solid color-mix(in oklab, var(--pc) 35%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .pgx-cta:hover, .pgx-more:hover, .pgx-back-btn:hover { transform: translateY(-2px); }
  .pgx-cta:hover { box-shadow: 0 18px 30px -14px color-mix(in oklab, var(--pc) 90%, #000); }
  .pgx-more:hover, .pgx-back-btn:hover { background: color-mix(in oklab, var(--pc) 7%, #fff); }
}
.pgx-cta:focus-visible, .pgx-more:focus-visible, .pgx-back-btn:focus-visible, .pgx-src:focus-visible { outline: 2px solid var(--pc); outline-offset: 3px; }
.pgx-src { font-weight: 600; font-size: .92rem; color: color-mix(in oklab, var(--pc) 85%, #000); text-underline-offset: 4px; }

/* verso (« اكتشف المزيد ») : chiffres | actualités */
.pgx-back { grid-template-areas: "h1 . h2 . acts" "nums . news . acts"; row-gap: 12px; }
.pgx-back[hidden] { display: none; }
.pgx-back > * { margin: 0; }
.pgx-back > h5 + * { margin-top: 10px; }
.pgx-back > h5:first-of-type { grid-area: h1; } .pgx-back > h5:last-of-type { grid-area: h2; }
.pgx-back > .pgx-nums { grid-area: nums; align-self: start; } .pgx-back > .pgx-news { grid-area: news; } .pgx-back > .pgx-acts { grid-area: acts; }
.pgx-back h5 { font-size: .84rem; font-weight: 700; color: color-mix(in oklab, var(--pc) 85%, #000); }
.pgx-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pgx-nums > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: color-mix(in oklab, var(--pc) 7%, #fff); }
.pgx-nums b { font: 800 1.35rem/1.1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; color: color-mix(in oklab, var(--pc) 88%, #000); }
html[dir="rtl"] .pgx-nums b { text-align: right; }
.pgx-nums span { font-size: .8rem; line-height: 1.4; color: var(--gris, #5b6b80); }
.pgx-news { list-style: none; padding: 0; display: grid; gap: 10px; }
.pgx-news li { position: relative; padding-inline-start: 18px; font-size: .9rem; line-height: 1.6; color: #2b3b52; }
.pgx-news li::before { content: ""; position: absolute; top: .62em; inset-inline-start: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }

/* ---------- mouvement ---------- */
/* première arrivée à l'écran (la classe pgx-wait n'est posée que si les animations sont permises) */
.pgx.pgx-wait .pgx-frame { opacity: 0; clip-path: inset(8% 8% 8% 8% round 44px); }
.pgx.pgx-wait .pgx-chip, .pgx.pgx-wait .pgx-front > *, .pgx.pgx-wait .pgx-cap > *, .pgx.pgx-wait .pgx-story, .pgx.pgx-wait .pgx-tab { opacity: 0; transform: translateY(14px); }
.pgx.pgx-in .pgx-story { animation: pgxUp .8s var(--ease) .2s backwards; }
.pgx.pgx-in .pgx-tab { animation: pgxUp .6s var(--ease) backwards; }
.pgx.pgx-in .pgx-tab:nth-child(2) { animation-delay: .07s; } .pgx.pgx-in .pgx-tab:nth-child(3) { animation-delay: .14s; } .pgx.pgx-in .pgx-tab:nth-child(4) { animation-delay: .21s; }

/* à l'arrivée et à chaque changement de programme (.enter) */
.pgx.pgx-in .pgx-p.on .pgx-frame { animation: pgxIn 1s var(--ease) both; }
.pgx-p.enter .pgx-frame { animation: pgxIn .8s var(--ease) both; }
.pgx.morph .pgx-p.enter .pgx-frame { animation: none; }
.pgx-p.enter .pgx-badge, .pgx.pgx-in .pgx-p.on .pgx-badge { animation: pgxLogo .9s var(--ease) .1s both; }
.pgx-p.enter .pgx-cap-name, .pgx.pgx-in .pgx-p.on .pgx-cap-name { animation: pgxUp .7s var(--ease) both; }
.pgx-p.enter .pgx-cap-hook .w, .pgx.pgx-in .pgx-p.on .pgx-cap-hook .w { animation: pgxWord .9s var(--ease) both; animation-delay: calc(.18s + var(--i) * 60ms); }
.pgx-p.enter .pgx-chip, .pgx.pgx-in .pgx-p.on .pgx-chip { animation: pgxChip .8s var(--ease) .35s both; }
.pgx-p.enter .pgx-chip i, .pgx.pgx-in .pgx-p.on .pgx-chip i { animation: pgxBar .9s var(--ease) .5s both; }
.pgx-p.enter .pgx-front > *, .pgx.pgx-in .pgx-p.on .pgx-front > * { animation: pgxUp .65s var(--ease) both; }
.pgx-p.enter .pgx-front > :nth-child(4), .pgx.pgx-in .pgx-p.on .pgx-front > :nth-child(4) { animation-delay: .08s; }
.pgx-p.enter .pgx-front > :nth-child(5), .pgx.pgx-in .pgx-p.on .pgx-front > :nth-child(5) { animation-delay: .16s; }
.pgx-p.enter .pgx-front > :nth-child(6), .pgx.pgx-in .pgx-p.on .pgx-front > :nth-child(6) { animation-delay: .24s; }
.pgx-p.enter .pgx-how li::before { animation: pgxLineH .7s var(--ease) both; }
.pgx-p.enter .pgx-how li:nth-child(2)::before { animation-delay: .15s; }

/* morphose carte → scène (View Transitions) */
::view-transition-group(pgx-hero) { animation-duration: .75s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); z-index: 50; }
::view-transition-old(pgx-hero), ::view-transition-new(pgx-hero) { height: 100%; width: 100%; object-fit: cover; overflow: hidden; border-radius: 26px; }
::view-transition-old(pgx-hero) { animation: pgxVtOut .35s ease both; }
::view-transition-new(pgx-hero) { animation: pgxVtIn .5s ease .1s both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* économie : rien ne tourne hors de l'écran, ni dans les programmes non affichés */
.pgx.pgx-off *, .pgx.pgx-off *::before, .pgx.pgx-off *::after,
.pgx-p:not(.on) *, .pgx-p:not(.on) *::before, .pgx-p:not(.on) *::after { animation-play-state: paused !important; }

@keyframes pgxIn { from { opacity: 0; clip-path: inset(6% 10% 6% 10% round 40px); } to { opacity: 1; clip-path: inset(0 round 26px); } }
@keyframes pgxUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pgxChip { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pgxLogo { from { opacity: 0; transform: translateY(-10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pgxWord { from { opacity: 0; transform: translateY(.6em) rotate(1.5deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pgxBar { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pgxLineH { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pgxLineV { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pgxOpen { from { clip-path: circle(0% at var(--ox, 82%) 72%); } to { clip-path: circle(150% at var(--ox, 82%) 72%); } }
@keyframes pgxKen { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes pgxSweep { 0% { transform: translateX(-70%) skewX(-14deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(70%) skewX(-14deg); opacity: 0; } }
@keyframes pgxShine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@keyframes pgxSpin { to { --ang: 360deg; } }
@keyframes pgxThumb { from { transform: scale(1.08); } to { transform: scale(1.2) translateX(-4%); } }
@keyframes pgxGrain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } }
@keyframes pgxVtOut { to { opacity: 0; } }
@keyframes pgxVtIn { from { opacity: 0; } }

/* ---------- tablette ---------- */
@media (max-width: 980px) {
  .pgx { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "nav" "stage" "story"; }
  .pgx-nav { flex-direction: row; gap: 10px; margin-bottom: 14px; padding: 4px 2px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pgx-nav::-webkit-scrollbar { display: none; }
  .pgx-tab { flex: 0 0 auto; width: min(250px, 68vw); grid-template-columns: 72px minmax(0, 1fr); scroll-snap-align: start; transform: none !important; }
  .pgx-amb { inset: 10% 0 -6% 0; opacity: .4; }
  .pgx-story { margin-top: 28px; }
  .pgx-front, .pgx-back { grid-template-columns: minmax(0, 1.2fr) 32px minmax(0, 1fr); }
  .pgx-front { grid-template-areas: "desc . proof" "how how how" "acts acts acts"; }
  .pgx-back { grid-template-areas: "h1 . h2" "nums . news" "acts acts acts"; }
  .pgx-acts { flex-direction: row; flex-wrap: wrap; }
  .pgx-acts > .pgx-cta, .pgx-acts > .pgx-more, .pgx-acts > .pgx-back-btn { flex: 1 1 200px; }
}
/* ---------- téléphone ---------- */
@media (max-width: 640px) {
  .pgx { margin-bottom: 56px; }
  .pgx-frame { aspect-ratio: 4 / 4.4; border-radius: 22px; }
  .pgx-badge img { height: 28px; }
  .pgx-cap { padding: 20px 20px 108px; }
  .pgx-cap-hook { max-width: none; font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .pgx-chip { top: auto; bottom: 20px; inset-inline-start: 20px; inset-inline-end: auto; align-items: center; gap: 12px; max-width: calc(100% - 40px); }
  .pgx-chip b { font-size: 2.6rem; }
  .pgx-chip.long b { font-size: 2.1rem; }
  .pgx-chip span { padding-top: 0; font-size: .84rem; }
  .pgx-dots { top: 16px; bottom: auto; }
  .pgx-story { margin-top: 24px; }
  .pgx-front, .pgx-back { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .pgx-front { grid-template-areas: "desc" "proof" "how" "acts"; }
  .pgx-back { grid-template-areas: "h1" "nums" "h2" "news" "acts"; row-gap: 12px; }
  /* étapes à la verticale sur téléphone */
  .pgx-how ol { grid-template-columns: 1fr; gap: 18px; }
  .pgx-how li { padding-top: 2px; padding-inline-start: 42px; min-height: 28px; }
  .pgx-how li::before { top: 32px; bottom: -16px; height: auto; width: 2px; inset-inline-start: 13px; inset-inline-end: auto; transform-origin: top !important; }
  .pgx-p.enter .pgx-how li::before { animation-name: pgxLineV; }
  .pgx-desc { font-size: 1rem; }
  .pgx-acts > * { flex: 1 1 auto; justify-content: center; }
}
/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .pgx *, .pgx *::before, .pgx *::after { animation: none !important; transition: none !important; }
  .pgx-frame { scale: 1; }
  .pgx-photos { transform: none; }
}

/* =====================================================================
   « مجالات الفرص » ↔ PROGRAMMES : le domaine mène à son programme
   ===================================================================== */
/* repère « لنفسك / لمدينتك… » sans le petit trait devant (motif d'étiquette trop vu) */
.why ul.px-panels .area-for::before { display: none !important; }
/* lien vers le programme : une pastille avec la photo du programme (la même que sa carte, plus bas) */
.why ul.px-panels .area-link { gap: 10px; padding: 5px; padding-inline-end: 18px; border-bottom: 0; border-radius: 999px; font-size: .9rem;
  background: color-mix(in srgb, var(--ink) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 24%, transparent);
  transition: max-height .6s, opacity .4s, margin .6s, background .35s ease, translate .35s cubic-bezier(.22, 1, .36, 1); }
.why ul.px-panels > li.area.on .area-link { max-height: 64px; }
.why ul.px-panels .area-link:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 22%, transparent); translate: 0 -2px; }
.why ul.px-panels .area-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.why ul.px-panels .area-link b { font-weight: 800; }
.area-pg { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 55%, transparent); }
.area-pg img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.why ul.px-panels .area-link:hover .area-pg img { transform: scale(1.12); }
@media (max-width: 860px) { .why ul.px-panels .area-link { max-height: none; } }
@media (prefers-reduced-motion: reduce) { .why ul.px-panels .area-link, .area-pg img { transition: none; } }

/* Débat : le doré assombri devenait kaki ; bouton dans le jaune JCI du domaine « التنمية الذاتية », texte bleu nuit */
#pgx-do .pgx-cta { background: #edc213; color: #13263a !important; box-shadow: 0 12px 24px -14px rgba(160, 120, 0, .9); }
@media (hover: hover) and (pointer: fine) { #pgx-do .pgx-cta:hover { background: #f3cd2c; box-shadow: 0 18px 30px -14px rgba(160, 120, 0, .9); } }
#pgx-do .pgx-more, #pgx-do .pgx-back-btn { color: #7a5b00; border-color: rgba(185, 138, 0, .45); }

/* =====================================================================
   PROGRAMMES : LE BAS DE LA SCÈNE PREND VIE
   - les étapes : de vraies pastilles colorées, une lumière qui circule d'une étape à l'autre (le parcours) ;
   - la réussite tunisienne : un encart teinté à la couleur du programme, avec son repère « نجاح تونسي » ;
   - le gain : surligné au feutre de la couleur du programme, qui se trace à l'arrivée ;
   - une lueur douce de la couleur du programme sous toute la bande.
   ===================================================================== */
.pgx-story::before { content: ""; position: absolute; z-index: -1; inset: -50px -6% -70px; pointer-events: none;
  background: radial-gradient(55% 75% at 72% 40%, color-mix(in oklab, var(--pc) 10%, transparent), transparent 72%); }
html[dir="rtl"] .pgx-story::before { background: radial-gradient(55% 75% at 28% 40%, color-mix(in oklab, var(--pc) 10%, transparent), transparent 72%); }

/* gain surligné */
.pgx-desc strong { display: table; margin-top: 14px; padding: 0 4px; color: #13263a; font-weight: 700;
  background: linear-gradient(transparent 58%, color-mix(in oklab, var(--pc) 26%, transparent) 58%, color-mix(in oklab, var(--pc) 26%, transparent) 92%, transparent 92%) no-repeat;
  background-size: 100% 100%; background-position: left; }
html[dir="rtl"] .pgx-desc strong { background-position: right; }
.pgx-p.enter .pgx-desc strong, .pgx.pgx-in .pgx-p.on .pgx-desc strong { animation: pgxMark 1.1s cubic-bezier(.65, 0, .35, 1) .45s both; }
@keyframes pgxMark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* réussite tunisienne */
.pgx-proof { padding: 18px 20px; padding-inline-start: 24px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--pc) 11%, #fff), color-mix(in oklab, var(--pc) 3%, #fff) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pc) 16%, transparent), 0 18px 34px -26px color-mix(in oklab, var(--pc) 60%, transparent); }
.pgx-proof::before { inset-block: 18px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(to bottom, var(--pc), color-mix(in oklab, var(--pc) 40%, #fff)); }
html[dir="rtl"] .pgx-proof::before { border-radius: 4px 0 0 4px; }
.pgx-proof-t { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .01em; color: color-mix(in oklab, var(--pc) 80%, #000); }

/* étapes : pastilles pleines, trait de parcours où une lumière circule */
.pgx-how { border-top: 0; padding-top: clamp(26px, 2.8vw, 34px);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--pc) 30%, transparent) 20%, color-mix(in oklab, var(--pc) 30%, transparent) 80%, transparent) top / 100% 1px no-repeat; }
.pgx-how-t { margin-bottom: 22px; font-size: .92rem; }
.pgx-how li { padding-top: 62px; font-size: 1rem; font-weight: 500; line-height: 1.6; color: #24364d; transition: color .35s ease; }
.pgx-how li::after { width: 44px; height: 44px; font-size: .95rem; color: #fff;
  background: linear-gradient(140deg, color-mix(in oklab, var(--pc) 85%, #fff), color-mix(in oklab, var(--pc) 75%, #000));
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--pc) 12%, transparent), 0 12px 24px -10px color-mix(in oklab, var(--pc) 80%, transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease; }
.pgx-how li:hover::after { transform: scale(1.1); background: linear-gradient(140deg, color-mix(in oklab, var(--pc) 85%, #fff), color-mix(in oklab, var(--pc) 75%, #000));
  box-shadow: 0 0 0 9px color-mix(in oklab, var(--pc) 14%, transparent), 0 16px 28px -10px color-mix(in oklab, var(--pc) 85%, transparent); }
.pgx-how li:hover { color: color-mix(in oklab, var(--pc) 70%, #0b2540); }
.pgx-how li::before { top: 21px; height: 3px; inset-inline-start: 56px; inset-inline-end: -16px; border-radius: 3px;
  background-color: color-mix(in oklab, var(--pc) 28%, transparent);
  background-image: linear-gradient(90deg, transparent, color-mix(in oklab, var(--pc) 90%, #fff), transparent);
  background-size: 45% 100%; background-repeat: no-repeat; background-position: -50% 0;
  animation: pgxFlow 3.6s cubic-bezier(.45, 0, .25, 1) infinite; }
.pgx-how li:nth-child(2)::before { animation-delay: 1.2s; }
html[dir="rtl"] .pgx-how li::before { animation-name: pgxFlowR; }
@keyframes pgxFlow { 0% { background-position: -50% 0; } 55%, 100% { background-position: 150% 0; } }
@keyframes pgxFlowR { 0% { background-position: 150% 0; } 55%, 100% { background-position: -50% 0; } }
/* à l'arrivée : les pastilles apparaissent une à une, puis le trait se trace */
.pgx-p.enter .pgx-how li::after, .pgx.pgx-in .pgx-p.on .pgx-how li::after { animation: pgxPop .6s cubic-bezier(.34, 1.56, .64, 1) .25s backwards; }
.pgx-p.enter .pgx-how li:nth-child(2)::after, .pgx.pgx-in .pgx-p.on .pgx-how li:nth-child(2)::after { animation-delay: .45s; }
.pgx-p.enter .pgx-how li:nth-child(3)::after, .pgx.pgx-in .pgx-p.on .pgx-how li:nth-child(3)::after { animation-delay: .65s; }
.pgx-p.enter .pgx-how li::before { animation: pgxLineH .7s var(--ease) .35s both, pgxFlow 3.6s cubic-bezier(.45, 0, .25, 1) 1.2s infinite; }
html[dir="rtl"] .pgx-p.enter .pgx-how li::before { animation-name: pgxLineH, pgxFlowR; }
.pgx-p.enter .pgx-how li:nth-child(2)::before { animation-delay: .55s, 2.4s; }
@keyframes pgxPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .pgx-how li { padding-top: 8px; padding-inline-start: 58px; min-height: 44px; }
  .pgx-how li::before { top: 50px; bottom: -14px; height: auto; width: 3px; inset-inline-start: 20px; inset-inline-end: auto;
    background-image: linear-gradient(180deg, transparent, color-mix(in oklab, var(--pc) 90%, #fff), transparent); background-size: 100% 45%; background-position: 0 -50%; }
  .pgx-how li::before, html[dir="rtl"] .pgx-how li::before { animation-name: pgxFlowV; }
  .pgx-p.enter .pgx-how li::before, html[dir="rtl"] .pgx-p.enter .pgx-how li::before { animation-name: pgxLineV, pgxFlowV; }
  .pgx-proof { padding: 16px 18px; padding-inline-start: 22px; }
}
@keyframes pgxFlowV { 0% { background-position: 0 -50%; } 55%, 100% { background-position: 0 150%; } }
@media (prefers-reduced-motion: reduce) { .pgx-how li::before { background-image: none; } }
@media (max-width: 640px) {
  .pgx-how ol { gap: 30px; }
  .pgx-how li::before { top: 50px; bottom: -26px; }
}

/* =====================================================================
   PROGRAMMES : CARTE ACTIVE EN COULEUR + « من يمكنه المشاركة؟ »
   ===================================================================== */
/* la carte du programme choisi se remplit de sa couleur (comme les panneaux des domaines, plus haut) */
.pgx-tab.on { background: linear-gradient(140deg, color-mix(in oklab, var(--pc) 90%, #fff), color-mix(in oklab, var(--pc) 78%, #000)); color: #fff;
  box-shadow: 0 22px 38px -20px color-mix(in oklab, var(--pc) 85%, #082547); }
.pgx-tab.on .pgx-tab-txt b { color: #fff; }
.pgx-tab.on .pgx-tab-txt small { color: rgba(255, 255, 255, .82); }
.pgx-tab.on::before { background: conic-gradient(from var(--ang), #fff, transparent 28%, transparent 55%, rgba(255, 255, 255, .55) 80%, #fff); }
.pgx-tab.on .pgx-tab-ph { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.pgx-tab:not(.on) .pgx-tab-txt b { transition: color .35s ease; }
@media (hover: hover) and (pointer: fine) { .pgx-tab:not(.on):hover .pgx-tab-txt b { color: color-mix(in oklab, var(--pc) 75%, #0b2540); } }

/* qui peut participer : une carte blanche dans la colonne du rail, juste avant les boutons */
.pgx-acts .pgx-who { margin: 0 0 4px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1);
  font-size: .92rem; line-height: 1.6; color: #2b3b52; }
.pgx-who b { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 800; color: color-mix(in oklab, var(--pc) 80%, #000); }
@media (max-width: 980px) { .pgx-acts .pgx-who { flex: 1 1 100%; } }

/* chiffres longs : encore un cran plus petits (« 10 000 $ » touchait l'écran CYE de la photo) */
.pgx-chip.long b { font-size: clamp(1.9rem, 2.9vw, 2.6rem); }

/* =====================================================================
   PROGRAMMES : BANDE DU BAS ÉQUILIBRÉE
   La colonne du rail (« من يمكنه المشاركة؟ » + boutons) descend sur toute la hauteur de la bande ;
   à côté, sous la photo : description | réussite, puis la frise des étapes. Plus de grand vide, rythme resserré.
   ===================================================================== */
.pgx-front { grid-template-areas: "desc . proof . acts" "how how how . acts"; row-gap: 28px; }
.pgx-acts { align-self: start; }
.pgx-how { padding-top: 24px; }
.pgx-how-t { margin-bottom: 18px; }
/* le gain surligné ligne par ligne, au ras du texte (et non plus un bloc plus large que la phrase) */
.pgx-desc > span { display: block; margin-bottom: 12px; }
.pgx-desc strong { display: inline; margin: 0; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9; }
@media (max-width: 980px) {
  .pgx-front { grid-template-areas: "desc . proof" "how how how" "acts acts acts"; }
}
@media (max-width: 640px) {
  .pgx-front { grid-template-areas: "desc" "proof" "how" "acts"; }
}

/* =====================================================================
   PROGRAMMES : LES ACTIONS SUR LA PHOTO
   Comme une affiche de film : sur la photo, à côté de l'accroche, « أريد المشاركة » (blanc) et « اكتشف المزيد » (verre).
   Sous la photo : trois colonnes de texte (description | réussite tunisienne | qui peut participer), puis les étapes.
   Sur tablette et téléphone (photo trop petite), les boutons reviennent sous le texte.
   ===================================================================== */
.pgx-deco { position: absolute; inset: 0; }
.pgx-stage-acts { position: absolute; z-index: 5; bottom: clamp(20px, 3vw, 36px); inset-inline-end: clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: 10px; }
.pgx-stage-acts .pgx-cta, .pgx-stage-acts .pgx-more { min-height: 50px; padding: 0 24px; justify-content: center; white-space: nowrap; }
.pgx-stage-acts .pgx-cta { background: #fff; color: color-mix(in oklab, var(--pc) 78%, #000) !important; font-weight: 800; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.pgx-stage-acts .pgx-more { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
@media (hover: hover) and (pointer: fine) {
  .pgx-stage-acts .pgx-cta:hover { background: #fff; box-shadow: 0 20px 36px -14px rgba(0, 0, 0, .7); }
  .pgx-stage-acts .pgx-more:hover { background: rgba(255, 255, 255, .24); }
}
.pgx-stage-acts .pgx-cta:focus-visible, .pgx-stage-acts .pgx-more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#pgx-do .pgx-stage-acts .pgx-cta { background: #edc213; color: #13263a !important; }
/* l'accroche laisse la place aux boutons ; les pastilles photo passent sous l'accroche */
.pgx-cap { padding-inline-end: clamp(330px, 30vw, 400px); }
.pgx-cap .pgx-dots { position: static; margin-top: 14px; margin-inline-start: -8px; }
html[dir="rtl"] .pgx-cap .pgx-dots { justify-content: flex-end; }
.pgx-p.enter .pgx-stage-acts, .pgx.pgx-in .pgx-p.on .pgx-stage-acts { animation: pgxUp .7s var(--ease) .4s backwards; }

/* sous la photo : trois colonnes de texte, puis les étapes (plus de boutons ici sur grand écran) */
.pgx-front { grid-template-areas: "desc . proof . who" "how how how how how"; }
.pgx-front > .pgx-acts { display: none; }
.pgx-who { grid-area: who; position: relative; margin: 0; padding: 18px 20px; padding-inline-start: 24px; border-radius: 18px;
  background: #fff; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pc) 14%, transparent), var(--sh-1);
  font-size: .95rem; line-height: 1.65; color: #2b3b52; }
.pgx-who::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0; background: color-mix(in oklab, var(--pc) 45%, #fff); }
html[dir="rtl"] .pgx-who::before { border-radius: 4px 0 0 4px; }
.pgx-who b { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 800; color: color-mix(in oklab, var(--pc) 80%, #000); }

@media (max-width: 980px) {
  .pgx-stage-acts { display: none; }
  .pgx-cap { padding-inline-end: clamp(20px, 3vw, 36px); }
  .pgx-front { grid-template-areas: "desc . proof" "who who who" "how how how" "acts acts acts"; }
  .pgx-front > .pgx-acts { display: flex; }
}
@media (max-width: 640px) {
  .pgx-cap { padding-inline-end: 20px; }
  .pgx-cap .pgx-dots { display: none; }
  .pgx-front { grid-template-areas: "desc" "proof" "who" "how" "acts"; }
}

/* =====================================================================
   PROGRAMMES : PANNEAUX PHOTO QUI S'OUVRENT (direction choisie)
   Quatre panneaux photo côte à côte, tous visibles. Celui qui est ouvert prend la place (photo, accroche, texte court,
   chiffre, bouton) ; les autres sont des bandes photo avec leur nom — un clic les ouvre, la largeur glisse en douceur.
   Dessous : seulement les étapes, la réussite tunisienne et « qui peut participer », en texte (sans boîtes).
   ===================================================================== */
.pgx { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "panels"; }
.pgx-nav { display: none !important; }
.pgx-panels { grid-area: panels; display: grid !important; grid-template-columns: var(--cols, 4.4fr 1fr 1fr 1fr);
  grid-template-rows: clamp(460px, 40vw, 560px) auto; column-gap: 14px; transition: grid-template-columns .85s cubic-bezier(.22, 1, .36, 1); }
.pgx-p { display: contents !important; }
.pgx-stage { grid-area: auto; grid-row: 1; height: 100%; min-width: 0; }
.pgx-story { grid-area: auto; grid-row: 2; grid-column: 1 / -1; margin-top: clamp(30px, 3.2vw, 42px); }

/* tous les panneaux sont visibles ; le cadre remplit sa colonne */
.pgx-p:not(.on) .pgx-stage { opacity: 1; visibility: visible; pointer-events: auto; transition: none; }
.pgx-frame { aspect-ratio: auto; height: 100%; min-height: 0; border-radius: 24px; scale: 1; }
.pgx-p:not(.on) .pgx-amb { opacity: 0; transition: opacity .5s ease; }
.pgx-p.on .pgx-amb { transition: opacity .9s ease .3s; }

/* contenu du panneau ouvert : apparaît une fois le panneau élargi ; caché dans les panneaux repliés */
.pgx-frame :is(.pgx-badge, .pgx-cap, .pgx-chip, .pgx-stage-acts) { transition: opacity .45s ease .38s, visibility 0s linear 0s; }
.pgx-p:not(.on) .pgx-frame :is(.pgx-badge, .pgx-cap, .pgx-chip, .pgx-stage-acts, .pgx-light, .pgx-sheen) { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.pgx-p:not(.on) .pgx-photos img { filter: saturate(.75) brightness(.86); transition: filter .5s ease; }
.pgx-p:not(.on) .pgx-photos { transform: none; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) {
  .pgx-p:not(.on) .pgx-stage:hover .pgx-photos { transform: scale(1.05); }
  .pgx-p:not(.on) .pgx-stage:hover .pgx-photos img { filter: none; }
}
/* dégradé de lisibilité plus profond sur les bandes (le nom est en bas) */
.pgx-p:not(.on) .pgx-frame::after { background: linear-gradient(to top, color-mix(in oklab, var(--pc) 55%, #050f22) 0%, rgba(5, 15, 34, .35) 45%, transparent 70%); }

/* bouton qui ouvre un panneau replié : toute la bande */
.pgx-open { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px;
  padding: 20px 18px; border: 0; background: none; color: #fff; font: inherit; text-align: start; cursor: pointer;
  transition: opacity .35s ease; }
.pgx-p.on .pgx-open { opacity: 0; visibility: hidden; pointer-events: none; }
.pgx-open-mark { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pgx-open-mark img { height: 24px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.pgx-open-mark .pgx-badge-jci { font-size: 1.05rem; }
.pgx-open-mark i { font: 700 .82rem/1 "Plus Jakarta Sans", sans-serif; font-style: normal; padding-inline-start: 6px; border-inline-start: 1px solid rgba(255, 255, 255, .6); }
.pgx-open b { font-size: 1.02rem; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); text-wrap: balance; }
.pgx-open small { font-size: .8rem; color: rgba(255, 255, 255, .78); }
.pgx-open:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 24px; }

/* panneau ouvert : accroche, texte court, puis les boutons sous le texte (même côté) */
.pgx-cap { padding: clamp(24px, 3vw, 40px); padding-bottom: 116px; padding-inline-end: clamp(24px, 3vw, 40px); }
.pgx-cap-hook { font-size: clamp(1.8rem, 2.9vw, 2.7rem); max-width: 20ch; }
.pgx-cap-desc { margin: 12px 0 0; max-width: 46ch; font-size: 1.02rem; line-height: 1.7; color: rgba(255, 255, 255, .88); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.pgx-cap .pgx-dots { display: none; }
.pgx-stage-acts { bottom: clamp(24px, 3vw, 40px); inset-inline-start: clamp(24px, 3vw, 40px); inset-inline-end: auto; }
.pgx-p.enter .pgx-cap-desc, .pgx.pgx-in .pgx-p.on .pgx-cap-desc { animation: pgxUp .7s var(--ease) .45s backwards; }

/* dessous : les étapes | la réussite | qui peut participer — du texte, sans boîtes */
.pgx-front, .pgx-back { grid-template-columns: minmax(0, 2fr) clamp(28px, 3.4vw, 56px) minmax(0, 1fr) clamp(28px, 3.4vw, 56px) minmax(0, 1fr); }
.pgx-front { grid-template-areas: "how . proof . who"; }
.pgx-front > .pgx-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pgx-how { padding-top: 0; background: none; }
.pgx-proof, .pgx-who { padding: 4px 0; padding-inline-start: 20px; border-radius: 0; background: none; box-shadow: none; }
.pgx-proof::before, .pgx-who::before { inset-block: 4px; width: 3px; border-radius: 3px; background: var(--pc); }
.pgx-who::before { background: color-mix(in oklab, var(--pc) 40%, #fff); }
.pgx-back { grid-template-areas: "h1 . h2 . acts" "nums . news . acts"; }
.pgx-story::before { inset: -30px -6% -60px; }

/* ---------- tablette et téléphone : les mêmes panneaux, empilés ---------- */
@media (max-width: 980px) {
  .pgx-panels { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 10px; transition: none; }
  .pgx-stage, .pgx-story { grid-row: auto; grid-column: 1; }
  .pgx-p:not(.on) .pgx-stage { height: 96px; }
  .pgx-p.on .pgx-stage { height: auto; }
  .pgx-p.on .pgx-frame { aspect-ratio: 16 / 11; height: auto; }
  .pgx-p:not(.on) .pgx-story { display: none; }
  .pgx-story { margin: 18px 0 26px; }
  .pgx-p:not(.on) .pgx-frame::after { background: linear-gradient(to left, color-mix(in oklab, var(--pc) 60%, #050f22), rgba(5, 15, 34, .25)); }
  html[dir="ltr"] .pgx-p:not(.on) .pgx-frame::after { background: linear-gradient(to right, color-mix(in oklab, var(--pc) 60%, #050f22), rgba(5, 15, 34, .25)); }
  .pgx-open { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 12px; padding: 0 20px; }
  .pgx-open-mark { margin: 0; }
  .pgx-open small { flex-basis: 100%; margin-top: -2px; }
  .pgx-cap { padding: 22px; padding-bottom: 22px; }
  .pgx-cap-desc { display: none; }
  .pgx-front { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); grid-template-areas: "desc . proof" "who who who" "how how how" "acts acts acts"; }
  .pgx-front > .pgx-desc { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .pgx-back { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h1" "nums" "h2" "news" "acts"; }
}
@media (max-width: 640px) {
  .pgx-p.on .pgx-frame { aspect-ratio: 4 / 4.6; }
  .pgx-cap { padding-bottom: 104px; }
  .pgx-front { grid-template-columns: minmax(0, 1fr); grid-template-areas: "desc" "proof" "who" "how" "acts"; }
}
@media (prefers-reduced-motion: reduce) { .pgx-panels { transition: none; } }

/* bandes repliées : le chiffre phare en haut, qui donne envie d'ouvrir */
.pgx-open-num { position: absolute; top: 20px; inset-inline-start: 18px; inset-inline-end: 14px; display: grid; gap: 4px; }
.pgx-open-num em { font: 800 clamp(1.5rem, 2vw, 1.9rem)/1 "Plus Jakarta Sans", sans-serif; font-style: normal; letter-spacing: -.03em; color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .5); white-space: nowrap; }
html[dir="rtl"] .pgx-open-num em { text-align: right; }
.pgx-open-num span { font-size: .74rem; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pgx-p:not(.on) .pgx-frame::before { opacity: .08; }
/* ombre du haut pour lire le chiffre */
.pgx-p:not(.on) .pgx-open::before { content: ""; position: absolute; inset: 0 0 auto; height: 45%; z-index: -1; border-radius: inherit;
  background: linear-gradient(to bottom, rgba(5, 15, 34, .55), transparent); pointer-events: none; }
/* survol : la bande s'élargit (largeur gérée par le script) et son nom s'éclaire */
.pgx-open b, .pgx-open-num em { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) { .pgx-p:not(.on) .pgx-stage:hover .pgx-open b { transform: translateY(-3px); } }
@media (max-width: 980px) {
  .pgx-open-num { position: static; order: 3; margin-inline-start: auto; display: flex; align-items: baseline; gap: 6px; }
  .pgx-open-num em { font-size: 1.2rem; }
  .pgx-open-num span { display: none; }
  .pgx-p:not(.on) .pgx-open::before { display: none; }
}
@media (max-width: 980px) { .pgx-open small { order: 4; } }

/* =====================================================================
   PROGRAMMES : BUDGET DE MOUVEMENT (revue « motion design »)
   Avant : jusqu'à dix effets simultanés (grain, reflet du chiffre, lumière sous le pointeur, balayage, parallaxe,
   travelling, ouverture circulaire, lumière des étapes, diaporama, changement automatique de programme).
   On ne garde que le mouvement qui a un sens :
     1. l'ouverture d'un panneau (largeur) — réponse au clic ;
     2. l'arrivée du contenu (accroche mot à mot, chiffre qui compte, surlignage, pastilles des étapes) — une fois ;
     3. la vie de la photo (travelling lent + ouverture circulaire entre deux photos, toutes les 6 s) ;
     4. un fil de lumière discret sur les étapes, lent.
   Supprimés : grain, reflet sur le chiffre, lumière sous le pointeur, balayage lumineux, parallaxe au pointeur.
   ===================================================================== */
.pgx-frame::before, .pgx-light, .pgx-sheen { display: none !important; }
.pgx-chip b { animation: none; background: none; color: #fff; -webkit-background-clip: border-box; background-clip: border-box; }
.pgx-photos { transform: translateY(var(--sy, 0px)); }
.pgx-how li::before { animation-duration: 6s; }
.pgx-how li:nth-child(2)::before { animation-delay: 2s; }
.pgx-p.enter .pgx-how li::before { animation-duration: .7s, 6s; }
/* courbes : une seule famille, sorties douces, rien de plus rapide que 0,35 s ni de plus lent que 0,9 s pour une réponse */
.pgx-panels { transition-duration: .75s; }

/* =====================================================================
   PROGRAMMES : BANDE DU BAS, LECTURE CONFORTABLE
   Les étapes étaient serrées dans 2/4 de la largeur (texte coupé en lignes de 2-3 mots).
   Elles prennent maintenant toute la largeur ; dessous, réussite tunisienne et « qui peut participer » côte à côte.
   ===================================================================== */
@media (min-width: 981px) {
  .pgx-front { grid-template-columns: minmax(0, 1fr) clamp(40px, 5vw, 80px) minmax(0, 1fr); grid-template-areas: "how how how" "proof . who"; row-gap: clamp(30px, 3.2vw, 44px); }
  .pgx-back { grid-template-columns: minmax(0, 1fr) clamp(40px, 5vw, 80px) minmax(0, 1.2fr); grid-template-areas: "h1 . h2" "nums . news" "acts acts acts"; }
  .pgx-back > .pgx-acts { flex-direction: row; align-items: center; gap: 18px; }
  .pgx-how ol { gap: clamp(28px, 3vw, 48px); }
  .pgx-how li::before { inset-inline-end: calc(-1 * clamp(28px, 3vw, 48px) + 8px); }
  .pgx-proof, .pgx-who { max-width: 58ch; }
}

/* =====================================================================
   PROGRAMMES : RIEN SOUS LES PANNEAUX
   La section = les quatre panneaux photo, rien d'autre. Les étapes, la réussite tunisienne et « qui peut participer »
   s'ouvrent à la demande (« اكتشف المزيد ») dans le panneau ouvert, en verre dépoli au-dessus de la photo ;
   les boutons restent visibles en bas, « رجوع » referme. Téléphone et tablette : version empilée inchangée.
   ===================================================================== */
@media (min-width: 981px) {
  .pgx-panels { grid-template-rows: clamp(480px, 42vw, 580px); }
  .pgx-story { grid-row: 1; grid-column: var(--oc, 1); align-self: start; z-index: 7; position: relative;
    margin: 16px 16px 0; padding: clamp(22px, 2.4vw, 30px); border-radius: 20px; max-height: calc(100% - 112px); overflow: auto; overscroll-behavior: contain;
    background: rgba(7, 19, 38, .66); -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -30px rgba(0, 0, 0, .7); color: #fff; scrollbar-width: thin; }
  .pgx-story::before { display: none; }
  /* fermé par défaut ; « اكتشف المزيد » l'ouvre */
  .pgx-p.on:not(.details) .pgx-story { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-14px);
    transition: opacity .3s ease, transform .4s ease, visibility 0s linear .4s; }
  .pgx-p.on.details .pgx-story { opacity: 1; visibility: visible; transform: none;
    transition: opacity .45s ease .05s, transform .6s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
  /* pendant la lecture des détails, l'accroche et le chiffre s'effacent ; les boutons restent */
  .pgx-p.details .pgx-frame :is(.pgx-cap, .pgx-chip, .pgx-badge) { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
  .pgx-p.details .pgx-photos img { filter: brightness(.7); transition: filter .5s ease; }

  /* contenu en clair sur verre sombre */
  .pgx-front { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); grid-template-areas: "how how how" "proof . who"; row-gap: 22px; }
  .pgx-how-t { margin-bottom: 14px; color: color-mix(in oklab, var(--pc) 30%, #fff); }
  .pgx-how ol { gap: 22px; }
  .pgx-how li { padding-top: 52px; font-size: .95rem; color: rgba(255, 255, 255, .92); }
  .pgx-how li:hover { color: #fff; }
  .pgx-how li::after { width: 38px; height: 38px; font-size: .85rem; }
  .pgx-how li::before { top: 18px; inset-inline-start: 48px; inset-inline-end: -14px; background-color: rgba(255, 255, 255, .22); }
  .pgx-proof, .pgx-who { padding: 0; padding-inline-start: 16px; font-size: .95rem; line-height: 1.65; color: rgba(255, 255, 255, .9); }
  .pgx-proof::before { background: color-mix(in oklab, var(--pc) 45%, #fff); }
  .pgx-who::before { background: rgba(255, 255, 255, .3); }
  .pgx-proof-t, .pgx-who b { color: color-mix(in oklab, var(--pc) 30%, #fff); }
  .pgx-p.details .pgx-stage-acts .pgx-more { background: #fff; color: #13263a; }
}

/* =====================================================================
   PROGRAMMES : VERSION SOBRE ET ÉLÉGANTE (en harmonie avec le reste du site)
   Moins d'effets, plus de photo. On retire tout ce qui faisait « généré » : halos colorés, lueur floue derrière la scène,
   dégradés teintés, gros chiffre lumineux, anneaux, lumières qui circulent. Ombres neutres et douces comme les autres
   cartes du site, rayon 24 px, dégradé de lisibilité neutre, boutons sobres. Les détails s'ouvrent sur une feuille blanche.
   ===================================================================== */
.pgx::before, .pgx-amb { display: none !important; }
.pgx-frame { border-radius: 24px; background: #0b1d33;
  box-shadow: 0 1px 2px rgba(8, 37, 71, .06), 0 22px 44px -30px rgba(8, 37, 71, .5); }
/* lisibilité : un seul dégradé neutre, sans couleur de programme */
.pgx-frame::after, .pgx-p:not(.on) .pgx-frame::after {
  background: linear-gradient(to top, rgba(6, 18, 36, .84) 0%, rgba(6, 18, 36, .38) 38%, transparent 62%),
              linear-gradient(to bottom, rgba(6, 18, 36, .32), transparent 22%) !important; }
.pgx-p:not(.on) .pgx-photos img { filter: saturate(.85) brightness(.9); }

/* panneau ouvert : nom, accroche, une phrase, deux boutons — rien d'autre sur la photo */
.pgx-chip, .pgx-open-num, .pgx-p:not(.on) .pgx-open::before { display: none !important; }
.pgx-badge img { height: clamp(24px, 2.2vw, 30px); }
.pgx-badge-jci { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.pgx-cap-name { font-size: .9rem; color: rgba(255, 255, 255, .8); }
.pgx-cap-name small { display: none; }
.pgx-cap-hook { text-shadow: none; }
.pgx-cap-desc { color: rgba(255, 255, 255, .82); text-shadow: none; }
.pgx-stage-acts .pgx-cta, #pgx-do .pgx-stage-acts .pgx-cta { background: #fff; color: #0d2a4a !important; box-shadow: none; }
.pgx-stage-acts .pgx-more { background: transparent; border: 1px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (hover: hover) and (pointer: fine) {
  .pgx-stage-acts .pgx-cta:hover { background: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .5); }
  .pgx-stage-acts .pgx-more:hover { background: rgba(255, 255, 255, .12); }
}
.pgx-open b { text-shadow: none; }

/* étapes : sans lumière qui circule ; pastilles sobres, bleu nuit du site */
.pgx-how li::before { background-image: none !important; animation: none !important; background-color: rgba(13, 42, 74, .16); }
.pgx-how li::after { background: #0d2a4a; box-shadow: none; text-shadow: none; }
.pgx-how li:hover::after { background: #0d2a4a; transform: none; box-shadow: none; }
.pgx-desc strong { background: none !important; animation: none !important; padding: 0; color: #0d2a4a; }

@media (min-width: 981px) {
  /* les détails : une feuille blanche posée sur la photo (comme les cartes blanches du site) */
  .pgx-story { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #24364d;
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55); }
  .pgx-how-t { color: #0d2a4a; }
  .pgx-how li, .pgx-how li:hover { color: #3a4b62; }
  .pgx-how li::before { background-color: rgba(13, 42, 74, .16); }
  .pgx-proof, .pgx-who { color: #3a4b62; }
  .pgx-proof-t, .pgx-who b { color: #0d2a4a; }
  .pgx-proof::before { background: #edc213; }
  .pgx-who::before { background: rgba(13, 42, 74, .2); }
  .pgx-p.details .pgx-photos img { filter: brightness(.55); }
  .pgx-p.details .pgx-stage-acts .pgx-more { background: #fff; color: #0d2a4a; border-color: #fff; }
}
/* chaque panneau garde sa colonne (sinon la feuille de détails, posée en colonne 1, décalait tous les panneaux) */
@media (min-width: 981px) {
  .pgx-panels > .pgx-p:nth-child(1) > .pgx-stage { grid-column: 1; }
  .pgx-panels > .pgx-p:nth-child(2) > .pgx-stage { grid-column: 2; }
  .pgx-panels > .pgx-p:nth-child(3) > .pgx-stage { grid-column: 3; }
  .pgx-panels > .pgx-p:nth-child(4) > .pgx-stage { grid-column: 4; }
}

/* détails : plus de carte blanche — le texte s'écrit directement sur la photo, sur un dégradé sombre qui monte du bas */
@media (min-width: 981px) {
  .pgx-story { align-self: end; margin: 0; max-height: 100%; border-radius: 0 0 24px 24px;
    padding: clamp(70px, 8vw, 110px) clamp(24px, 3vw, 40px) 112px;
    background: linear-gradient(to top, rgba(6, 18, 36, .95) 0%, rgba(6, 18, 36, .86) 58%, rgba(6, 18, 36, 0) 100%);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: #fff; }
  .pgx-p.on:not(.details) .pgx-story { transform: translateY(18px); }
  .pgx-p.details .pgx-photos img { filter: brightness(.8); }
  .pgx-how-t { color: rgba(255, 255, 255, .72); font-weight: 600; }
  .pgx-how li, .pgx-how li:hover { color: rgba(255, 255, 255, .92); }
  .pgx-how li::after, .pgx-how li:hover::after { background: #fff; color: #0d2a4a; }
  .pgx-how li::before { background-color: rgba(255, 255, 255, .28); }
  .pgx-proof, .pgx-who { color: rgba(255, 255, 255, .86); }
  .pgx-proof-t, .pgx-who b { color: rgba(255, 255, 255, .62); font-weight: 700; }
  .pgx-proof::before { background: #edc213; }
  .pgx-who::before { background: rgba(255, 255, 255, .3); }
}
/* les détails s'arrêtent au-dessus des boutons (sinon ils les recouvraient) ; l'ombre du bas de la photo prend le relais */
@media (min-width: 981px) {
  .pgx-story { margin-bottom: 92px; padding-bottom: 18px; border-radius: 0; max-height: calc(100% - 92px);
    background: linear-gradient(to top, rgba(6, 18, 36, .9) 0%, rgba(6, 18, 36, .82) 60%, rgba(6, 18, 36, 0) 100%); }
  .pgx-p.details .pgx-frame::after { background: linear-gradient(to top, rgba(6, 18, 36, .92) 0%, rgba(6, 18, 36, .9) 18%, rgba(6, 18, 36, .55) 45%, transparent 75%) !important; }
}

/* =====================================================================
   PROGRAMMES : VIF ET GRAPHIQUE — DUOTONES + GRANDS SIGLES
   La couleur vient du graphisme, pas des effets : chaque bande repliée est un duotone dans la couleur du programme
   (photo en noir et blanc × couleur vive), avec son sigle géant à la verticale, comme une affiche.
   Au survol, la bande s'éclaire ; à l'ouverture, la photo retrouve ses vraies couleurs.
   ===================================================================== */
#pgx-cye { --duo: #1fb5ad; } #pgx-toyp { --duo: #2f6fe0; } #pgx-do { --duo: #f2c21b; } #pgx-tw { --duo: #11a7e6; }

/* duotone des bandes repliées */
.pgx-deco::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--duo, var(--pc));
  mix-blend-mode: multiply; opacity: 0; transition: opacity .6s ease; }
.pgx-p:not(.on) .pgx-deco::before { opacity: .92; }
.pgx-p:not(.on) .pgx-photos img { filter: grayscale(1) contrast(1.15) brightness(1.12) !important; transition: filter .6s ease; }
.pgx-p:not(.on) .pgx-frame::after { background: linear-gradient(to top, rgba(6, 18, 36, .7) 0%, rgba(6, 18, 36, .1) 40%, transparent 60%) !important; }
@media (hover: hover) and (pointer: fine) {
  .pgx-p:not(.on) .pgx-stage:hover .pgx-deco::before { opacity: .72; }
  .pgx-p:not(.on) .pgx-stage:hover .pgx-photos img { filter: grayscale(.4) contrast(1.1) brightness(1.08) !important; }
}

/* sigle géant à la verticale (se lit de bas en haut) */
.pgx-acro { position: absolute; z-index: 1; top: 18px; inset-inline-start: 50%; translate: -50% 0; pointer-events: none;
  writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap;
  font: 800 clamp(3.6rem, 6.2vw, 6rem)/.82 "Plus Jakarta Sans", sans-serif; letter-spacing: -.03em;
  color: rgba(255, 255, 255, .92); mix-blend-mode: overlay; transition: translate .6s cubic-bezier(.22, 1, .36, 1), opacity .4s ease; }
html[dir="rtl"] .pgx-acro { translate: 50% 0; }
.pgx-p:not(.on) .pgx-open-mark { display: none; }
@media (hover: hover) and (pointer: fine) { .pgx-p:not(.on) .pgx-stage:hover .pgx-acro { translate: -50% -8px; } html[dir="rtl"] .pgx-p:not(.on) .pgx-stage:hover .pgx-acro { translate: 50% -8px; } }
.pgx-open b { font-size: 1.05rem; }

/* panneau ouvert : la couleur du programme en accent franc (étiquette du nom), photo en vraies couleurs */
.pgx-cap-name { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--duo, var(--pc)); color: #fff; font-weight: 800; font-size: .85rem; }
#pgx-do .pgx-cap-name { color: #13263a; }
.pgx-p.on .pgx-photos img { filter: saturate(1.08) contrast(1.03); }
.pgx-p.enter .pgx-deco::before { opacity: 0; }

/* téléphone / tablette : bandes horizontales, sigle à plat en filigrane à l'opposé du nom */
@media (max-width: 980px) {
  .pgx-acro { writing-mode: horizontal-tb; rotate: none; top: 50%; translate: 0 -50%; inset-inline-start: auto; inset-inline-end: 16px; font-size: 3.2rem; opacity: .55; }
  html[dir="rtl"] .pgx-acro { translate: 0 -50%; }
}
@media (prefers-reduced-motion: reduce) { .pgx-deco::before, .pgx-acro { transition: none; } }
/* correctifs : la couche de couleur passe au-dessus des photos ; le sigle vertical se centre en coordonnées physiques
   (en écriture verticale, « inline-start » désigne le haut, pas le côté) */
.pgx-deco::before { z-index: 3; }
.pgx-acro, html[dir="rtl"] .pgx-acro { left: 50%; right: auto; inset-inline-start: auto; translate: -50% 0; z-index: 4; }
@media (hover: hover) and (pointer: fine) {
  .pgx-p:not(.on) .pgx-stage:hover .pgx-acro, html[dir="rtl"] .pgx-p:not(.on) .pgx-stage:hover .pgx-acro { translate: -50% -8px; }
}
@media (max-width: 980px) {
  .pgx-acro, html[dir="rtl"] .pgx-acro { top: 50%; translate: 0 -50%; left: auto; right: 16px; }
  html[dir="rtl"] .pgx-acro { right: auto; left: 16px; }
}
/* le sigle vertical part du haut de la bande (en écriture verticale, inset-inline-start = top : on fixe top après coup) */
.pgx-acro, html[dir="rtl"] .pgx-acro { top: 20px; bottom: auto; }
@media (max-width: 980px) { .pgx-acro, html[dir="rtl"] .pgx-acro { top: 50%; } }
@media (max-width: 980px) {
  #programmes .pgx-acro { top: 50%; translate: 0 -50% !important; rotate: none; }
}

/* =====================================================================
   PROGRAMMES : « اكتشف المزيد » — CONTENU ET DESIGN
   En tête : les trois chiffres clés du programme (documents officiels), grands, dans la couleur du programme.
   Puis les étapes (pastilles colorées), puis réussite tunisienne | qui peut participer.
   ===================================================================== */
.pgx-kpis { grid-area: kpis; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.pgx-kpis p { margin: 0; display: grid; gap: 4px; align-content: start; }
.pgx-kpis b { font: 800 clamp(1.5rem, 2.2vw, 2.1rem)/1.05 "Plus Jakarta Sans", sans-serif; letter-spacing: -.03em; color: color-mix(in oklab, var(--duo, var(--pc)) 75%, #0b2540); white-space: nowrap; }
html[dir="rtl"] .pgx-kpis b { text-align: right; }
.pgx-kpis span { font-size: .84rem; line-height: 1.45; color: #4a5b70; }

@media (min-width: 981px) {
  .pgx-front { grid-template-areas: "kpis kpis kpis" "how how how" "proof . who"; row-gap: 22px; }
  /* sur la photo : chiffres dans la couleur vive du programme, séparés du reste par un filet */
  .pgx-kpis { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .pgx-kpis b { color: var(--duo, var(--pc)); }
  .pgx-kpis span { color: rgba(255, 255, 255, .78); }
  .pgx-how-t { color: rgba(255, 255, 255, .62); font-size: .82rem; margin-bottom: 12px; }
  .pgx-how li { padding-top: 46px; font-size: .95rem; }
  .pgx-how li::after, .pgx-how li:hover::after { width: 34px; height: 34px; background: var(--duo, var(--pc)); color: #fff; font-size: .82rem; }
  #pgx-do .pgx-how li::after { color: #13263a; }
  .pgx-how li::before { top: 16px; inset-inline-start: 44px; background-color: color-mix(in oklab, var(--duo, var(--pc)) 45%, transparent); }
  .pgx-proof::before { background: var(--duo, var(--pc)); }
  .pgx-proof-t { color: var(--duo, var(--pc)); }
  .pgx-proof, .pgx-who { font-size: .93rem; }
  /* « رجوع » : bouton clair et neutre */
  .pgx-p.details .pgx-stage-acts .pgx-more { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
  .pgx-story { padding-top: clamp(56px, 6vw, 84px); }
}
@media (max-width: 980px) {
  .pgx-front { grid-template-areas: "desc . proof" "kpis kpis kpis" "who who who" "how how how" "acts acts acts"; }
  .pgx-kpis { padding: 16px 0; border-block: 1px solid rgba(13, 42, 74, .1); }
}
@media (max-width: 640px) {
  .pgx-front { grid-template-areas: "desc" "kpis" "proof" "who" "how" "acts"; }
  .pgx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pgx-kpis b { font-size: 1.3rem; white-space: normal; }
  .pgx-kpis span { font-size: .76rem; }
}

/* chiffres longs (« 30 → 20 → 10 ») : plus petits pour tenir dans leur colonne */
.pgx-kpis b.long { font-size: clamp(1.1rem, 1.5vw, 1.4rem); white-space: normal; }

/* =====================================================================
   PROGRAMMES : PANNEAU OUVERT — COULEUR, ESPACE, FLUIDITÉ
   ===================================================================== */
/* --- couleur : le bouton principal prend la couleur vive du programme (le seul aplat de couleur du panneau) --- */
.pgx-stage-acts .pgx-cta, #pgx-do .pgx-stage-acts .pgx-cta { background: var(--duo, #fff); color: #0b1d33 !important; font-weight: 800;
  box-shadow: 0 12px 26px -14px color-mix(in oklab, var(--duo, #000) 80%, #000); }
#pgx-toyp .pgx-stage-acts .pgx-cta { color: #fff !important; }
@media (hover: hover) and (pointer: fine) {
  .pgx-stage-acts .pgx-cta:hover { background: color-mix(in oklab, var(--duo, #fff) 88%, #fff); box-shadow: 0 18px 32px -14px color-mix(in oklab, var(--duo, #000) 85%, #000); }
}
/* un fin filet de la couleur du programme en haut du panneau ouvert */
.pgx-p.on .pgx-deco::after { content: ""; position: absolute; z-index: 4; inset: 0 0 auto; height: 4px; background: var(--duo, var(--pc));
  transform-origin: left; animation: pgxBarIn .9s cubic-bezier(.22, 1, .36, 1) .35s both; }
html[dir="rtl"] .pgx-p.on .pgx-deco::after { transform-origin: right; }
@keyframes pgxBarIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- espace : marges plus généreuses, rythme régulier (14 / 16 / 28 px) --- */
@media (min-width: 981px) {
  .pgx-cap { padding: 44px; padding-bottom: 124px; }
  .pgx-cap-name { margin-bottom: 16px; }
  .pgx-cap-desc { margin-top: 14px; }
  .pgx-stage-acts { bottom: 44px; inset-inline-start: 44px; gap: 12px; }
  .pgx-stage-acts .pgx-cta, .pgx-stage-acts .pgx-more { min-height: 52px; padding: 0 28px; }
  .pgx-badge { top: 30px; left: 44px; } html[dir="rtl"] .pgx-badge { left: auto; right: 44px; }
  .pgx-story { padding-inline: 44px; margin-bottom: 104px; }
}

/* --- fluidité : la photo passe du duotone à la couleur pendant que le panneau s'ouvre ;
       puis le nom, l'accroche, la phrase et les boutons arrivent en cascade une fois la largeur posée --- */
.pgx-photos img { transition: filter .9s cubic-bezier(.22, 1, .36, 1); }
.pgx-deco::before { transition: opacity .9s cubic-bezier(.22, 1, .36, 1); }
.pgx-panels { transition: grid-template-columns .8s cubic-bezier(.65, 0, .25, 1); }
.pgx-p.enter .pgx-cap-name, .pgx.pgx-in .pgx-p.on .pgx-cap-name { animation: pgxUp .7s cubic-bezier(.22, 1, .36, 1) .32s backwards; }
.pgx-p.enter .pgx-cap-hook .w, .pgx.pgx-in .pgx-p.on .pgx-cap-hook .w { animation-delay: calc(.42s + var(--i) * 55ms); }
.pgx-p.enter .pgx-cap-desc, .pgx.pgx-in .pgx-p.on .pgx-cap-desc { animation: pgxUp .7s cubic-bezier(.22, 1, .36, 1) .62s backwards; }
.pgx-p.enter .pgx-stage-acts, .pgx.pgx-in .pgx-p.on .pgx-stage-acts { animation: pgxUp .7s cubic-bezier(.22, 1, .36, 1) .74s backwards; }
.pgx-p.enter .pgx-badge, .pgx.pgx-in .pgx-p.on .pgx-badge { animation-delay: .3s; }

/* --- détails : chaque bloc arrive à son tour, les étapes se relient --- */
@media (min-width: 981px) {
  .pgx-p.details .pgx-front > :is(.pgx-kpis, .pgx-how, .pgx-proof, .pgx-who) { animation: pgxUp .6s cubic-bezier(.22, 1, .36, 1) backwards; }
  .pgx-p.details .pgx-front > .pgx-kpis { animation-delay: .08s; }
  .pgx-p.details .pgx-front > .pgx-how { animation-delay: .18s; }
  .pgx-p.details .pgx-front > .pgx-proof { animation-delay: .28s; }
  .pgx-p.details .pgx-front > .pgx-who { animation-delay: .36s; }
  .pgx-p.details .pgx-how li::before { animation: pgxLineH .7s cubic-bezier(.22, 1, .36, 1) .35s both; }
  .pgx-p.details .pgx-how li:nth-child(2)::before { animation-delay: .5s; }
  .pgx-p.details .pgx-how li::after { animation: pgxPop .5s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: .3s; }
  .pgx-p.details .pgx-how li:nth-child(2)::after { animation-delay: .45s; }
  .pgx-p.details .pgx-how li:nth-child(3)::after { animation-delay: .6s; }
}
@media (prefers-reduced-motion: reduce) { .pgx-p.on .pgx-deco::after { animation: none; } }

/* =====================================================================
   PROGRAMMES : FLUIDITÉ
   - duotone sans filtre : la photo garde ses couleurs, une couche de couleur en mode « color » la teinte ;
     seule l'opacité de cette couche s'anime (rien de coûteux sur les grandes photos) ;
   - l'ouverture d'un panneau suit une courbe douce et régulière, un peu plus longue ;
   - le contenu qui part s'efface vite, celui qui arrive attend que la largeur soit presque posée ;
   - les éléments animés sont annoncés au navigateur (couches dédiées) pour éviter les saccades.
   ===================================================================== */
.pgx-p:not(.on) .pgx-photos img, .pgx-p.on .pgx-photos img, .pgx-p.details .pgx-photos img { filter: none !important; transition: none !important; }
.pgx-deco::before { mix-blend-mode: color; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); will-change: opacity; }
.pgx-p:not(.on) .pgx-deco::before { opacity: .9; }
.pgx-p.on .pgx-deco::before { opacity: 0; }
/* assombrissement des bandes et des détails : une couche noire dont seule l'opacité change */
.pgx-deco > .pgx-photos::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #061224; opacity: 0; pointer-events: none;
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1); will-change: opacity; }
.pgx-p:not(.on) .pgx-photos::after { opacity: .18; }
.pgx-p.details .pgx-photos::after { opacity: .35; }
@media (hover: hover) and (pointer: fine) {
  .pgx-p:not(.on) .pgx-stage:hover .pgx-deco::before { opacity: .55; }
  .pgx-p:not(.on) .pgx-stage:hover .pgx-photos::after { opacity: 0; }
  .pgx-p:not(.on) .pgx-stage:hover .pgx-photos { transform: scale(1.04); }
}
.pgx-photos { transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
/* ouverture : courbe douce, sans à-coup au départ ni à l'arrivée */
.pgx-panels { transition: grid-template-columns .95s cubic-bezier(.45, .05, .15, 1); }
.pgx-frame :is(.pgx-badge, .pgx-cap, .pgx-chip, .pgx-stage-acts) { transition: opacity .5s ease .45s, visibility 0s linear 0s; }
.pgx-p:not(.on) .pgx-frame :is(.pgx-badge, .pgx-cap, .pgx-chip, .pgx-stage-acts) { transition: opacity .15s ease, visibility 0s linear .15s; }
.pgx-p.enter .pgx-cap-name, .pgx.pgx-in .pgx-p.on .pgx-cap-name { animation-duration: .8s; animation-delay: .42s; }
.pgx-p.enter .pgx-cap-hook .w, .pgx.pgx-in .pgx-p.on .pgx-cap-hook .w { animation-duration: .9s; animation-delay: calc(.52s + var(--i) * 50ms); }
.pgx-p.enter .pgx-cap-desc, .pgx.pgx-in .pgx-p.on .pgx-cap-desc { animation-duration: .8s; animation-delay: .72s; }
.pgx-p.enter .pgx-stage-acts, .pgx.pgx-in .pgx-p.on .pgx-stage-acts { animation-duration: .8s; animation-delay: .84s; }
/* le sigle s'efface en douceur quand la bande s'ouvre */
.pgx-acro { transition: opacity .35s ease, translate .6s cubic-bezier(.22, 1, .36, 1); }
.pgx-p.on .pgx-acro { opacity: 0; }
/* le mot à mot sans flou (le flou animé sur du texte coûte cher et « bave ») */
@keyframes pgxWord { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pgx-panels, .pgx-deco::before, .pgx-photos::after, .pgx-photos { transition: none; } }

/* =====================================================================
   PROGRAMMES : CHAQUE PANNEAU DONNE VIE À LA PAGE
   - un clic sur une bande envoie une vague de sa couleur, du point cliqué, derrière les panneaux ;
   - une lueur douce de la couleur du programme ouvert baigne tout le bloc ;
   - tant que la section est à l'écran, la page entière s'accorde : soulignement du menu, bouton « haut de page »,
     couleur de sélection du texte. En quittant la section, tout revient aux couleurs du site.
   ===================================================================== */
@property --live { syntax: "<color>"; inherits: true; initial-value: #1fb5ad; }
html { transition: --live 1s cubic-bezier(.4, 0, .2, 1); }

/* lueur d'ambiance derrière les panneaux */
#programmes.pgx::before { content: ""; display: block !important; position: absolute; z-index: -1; inset: 16% -10% -14% -10%; width: auto; aspect-ratio: auto;
  pointer-events: none; filter: none;
  background: radial-gradient(55% 60% at 50% 55%, color-mix(in oklab, var(--live) 18%, transparent), transparent 72%); }

/* vague de couleur */
.pgx-ripple { position: absolute; z-index: -1; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--c) 0%, color-mix(in oklab, var(--c) 40%, transparent) 45%, transparent 70%);
  opacity: .5; animation: pgxRipple 1.6s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes pgxRipple { to { transform: scale(55); opacity: 0; } }

/* la page s'accorde au programme ouvert */
header.top .menu a.on { transition: border-color .8s ease, color .3s ease; }
html.pgx-live header.top .menu a.on { border-bottom-color: var(--live); }
.to-top { transition: background-color .8s ease, translate .3s ease, opacity .3s ease; }
html.pgx-live .to-top { background-color: color-mix(in oklab, var(--live) 78%, #0b1d33); }
html.pgx-live ::selection { background: color-mix(in oklab, var(--live) 40%, #fff); color: #0b1d33; }
@media (prefers-reduced-motion: reduce) { html { transition: none; } .pgx-ripple { display: none; } }

/* la vague et la lueur restent dans le bloc des programmes (avec une marge pour les ombres) */
#programmes.pgx { overflow: clip; overflow-clip-margin: 80px; }

/* =====================================================================
   PROGRAMMES : COMPTEUR ET FLÈCHES DANS L'EN-TÊTE
   « 01 / 04 » dans la couleur du programme ouvert (le chiffre roule vers le haut ou le bas), et deux flèches rondes.
   ===================================================================== */
.pgx-head { max-width: none; display: grid; grid-template-columns: minmax(0, 60ch) 1fr; align-items: end; column-gap: 24px; }
.pgx-head > h3, .pgx-head > p { grid-column: 1; }
.pgx-pager { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; display: flex; align-items: center; gap: 10px; }
.pgx-idx { margin: 0 6px 0 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; }
html[dir="rtl"] .pgx-idx { margin: 0 0 0 6px; }
.pgx-idx b { display: inline-block; font: 800 clamp(2rem, 3vw, 2.6rem)/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.04em; color: var(--live, #0d2a4a);
  transition: color .8s ease; font-variant-numeric: tabular-nums; }
.pgx-idx i { font: 600 .95rem/1 "Plus Jakarta Sans", sans-serif; font-style: normal; color: #8a97a8; }


.pgx-nav-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: #0d2a4a; border: 1px solid rgba(13, 42, 74, .14); box-shadow: 0 6px 16px -10px rgba(8, 37, 71, .4);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.pgx-nav-btn i { font-size: 1.15rem; }
html[dir="ltr"] .pgx-nav-btn i { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .pgx-nav-btn:hover { background: var(--live, #0d2a4a); border-color: transparent; color: #fff; transform: translateY(-2px); }
}
.pgx-nav-btn:focus-visible { outline: 2px solid var(--live, #0d2a4a); outline-offset: 3px; }
@media (max-width: 640px) {
  .pgx-head { grid-template-columns: 1fr; row-gap: 14px; }
  .pgx-pager { grid-column: 1; grid-row: auto; justify-self: start; }
  .pgx-nav-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .pgx-idx b { animation: none !important; } }

/* le compteur se lit toujours « 01 / 04 », de gauche à droite */
.pgx-idx { direction: ltr; }

/* =====================================================================
   PROGRAMMES : FLUIDE ET VIVANT
   Fluidité : pendant l'ouverture, le texte ne se recompose plus à chaque image (largeur fixe), chaque panneau est
   isolé (contain), et la photo glisse en douceur (transform seul, géré par la carte graphique).
   Vie : les photos ne sont jamais figées — lent travelling sur le panneau ouvert, lent défilement vertical des bandes,
   chacune à son rythme. Uniquement des transformations, mises en pause hors écran.
   ===================================================================== */
.pgx-stage { contain: layout paint; }
.pgx-photos { will-change: transform; }
@media (min-width: 981px) {
  /* largeur fixe du texte : il ne se recompose pas pendant que le panneau s'élargit */
  .pgx-cap > * { width: min(560px, calc(100vw - 200px)); max-width: none; }
  .pgx-cap > .pgx-cap-name { width: auto; }
  .pgx-story > * { width: min(600px, calc(100vw - 200px)); }
}
/* ouverture : la photo du panneau qui s'ouvre se pose en douceur (léger zoom arrière) */
.pgx-p.enter .pgx-photos { animation: pgxSettle 1.4s cubic-bezier(.22, 1, .36, 1) both, pgxDrift 22s ease-in-out 1.4s infinite alternate; }
@keyframes pgxSettle { from { transform: scale(1.14); } to { transform: scale(1.02); } }

/* vie continue : panneau ouvert — travelling lent */
.pgx-p.on .pgx-photos { animation: pgxDrift 22s ease-in-out infinite alternate; }
@keyframes pgxDrift { 0% { transform: scale(1.02) translate3d(0, 0, 0); } 100% { transform: scale(1.1) translate3d(-2%, -1.5%, 0); } }
html[dir="rtl"] .pgx-p.on .pgx-photos { animation-name: pgxDriftR; }
html[dir="rtl"] .pgx-p.enter .pgx-photos { animation-name: pgxSettle, pgxDriftR; }
@keyframes pgxDriftR { 0% { transform: scale(1.02) translate3d(0, 0, 0); } 100% { transform: scale(1.1) translate3d(2%, -1.5%, 0); } }

/* vie continue : bandes repliées — défilement vertical lent, décalé d'une bande à l'autre */
.pgx-p:not(.on) .pgx-photos { animation: pgxPan 18s ease-in-out infinite alternate; }
.pgx-panels > .pgx-p:nth-child(2):not(.on) .pgx-photos { animation-duration: 21s; animation-delay: -6s; }
.pgx-panels > .pgx-p:nth-child(3):not(.on) .pgx-photos { animation-duration: 19s; animation-delay: -11s; }
.pgx-panels > .pgx-p:nth-child(4):not(.on) .pgx-photos { animation-duration: 23s; animation-delay: -3s; }
@keyframes pgxPan { 0% { transform: scale(1.18) translate3d(0, -4%, 0); } 100% { transform: scale(1.18) translate3d(0, 4%, 0); } }
/* le sigle respire très légèrement avec la bande */
.pgx-p:not(.on) .pgx-acro { animation: pgxAcro 9s ease-in-out infinite alternate; }
@keyframes pgxAcro { from { opacity: .8; } to { opacity: 1; } }
/* le survol d'une bande garde son effet par-dessus le mouvement (zoom un peu plus fort) */
@media (hover: hover) and (pointer: fine) {
  .pgx-p:not(.on) .pgx-stage:hover .pgx-photos { animation-play-state: paused; }
}
/* les animations ne tournent que si la section est à l'écran (règle .pgx-off existante) */
@media (prefers-reduced-motion: reduce) { .pgx-photos, .pgx-acro { animation: none !important; } }
/* la vie des bandes passe outre la mise en pause des panneaux repliés (mais reste en pause hors écran et au survol) */
.pgx-p:not(.on) .pgx-photos, .pgx-p:not(.on) .pgx-acro { animation-play-state: running !important; }
@media (hover: hover) and (pointer: fine) { .pgx-p:not(.on) .pgx-stage:hover .pgx-photos { animation-play-state: paused !important; } }
.pgx.pgx-off .pgx-p .pgx-photos, .pgx.pgx-off .pgx-p .pgx-acro { animation-play-state: paused !important; }
/* largeur du texte = largeur finale du panneau ouvert (calculée sur la rangée) : stable pendant l'ouverture */
@media (min-width: 981px) {
  .pgx-panels { container-type: inline-size; }
  .pgx-cap > * { width: calc((100cqw - 42px) * 4.4 / 7.4 - 88px); }
  .pgx-cap > .pgx-cap-name { width: auto; }
  .pgx-story > * { width: calc((100cqw - 42px) * 4.4 / 7.4 - 88px); }
}

/* =====================================================================
   PROGRAMMES : COMPTEUR ET FLÈCHES VIVANTS
   ===================================================================== */
.pgx-count { display: grid; gap: 8px; justify-items: start; }
html[dir="rtl"] .pgx-count { justify-items: end; }
/* odomètre : l'ancien chiffre sort, le nouveau entre, dans une fenêtre qui coupe le mouvement */
.pgx-odo { position: relative; display: inline-grid; overflow: hidden; height: 1em; line-height: 1; font: 800 clamp(2rem, 3vw, 2.6rem)/1 "Plus Jakarta Sans", sans-serif; }
.pgx-odo b { grid-area: 1 / 1; font: inherit; letter-spacing: -.04em; color: var(--live, #0d2a4a); font-variant-numeric: tabular-nums; transition: color .8s ease; }
.pgx-odo b.in-up { animation: pgxOdoInUp .62s cubic-bezier(.22, 1, .36, 1) both; }
.pgx-odo b.in-down { animation: pgxOdoInDown .62s cubic-bezier(.22, 1, .36, 1) both; }
.pgx-odo b.out-up { animation: pgxOdoOutUp .5s cubic-bezier(.55, 0, .3, 1) both; }
.pgx-odo b.out-down { animation: pgxOdoOutDown .5s cubic-bezier(.55, 0, .3, 1) both; }
@keyframes pgxOdoInUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes pgxOdoInDown { from { transform: translateY(-105%); } to { transform: none; } }
@keyframes pgxOdoOutUp { to { transform: translateY(-105%); opacity: .3; } }
@keyframes pgxOdoOutDown { to { transform: translateY(105%); opacity: .3; } }


/* repères de position : 4 traits, celui du programme ouvert s'allonge et prend sa couleur */
.pgx-marks { display: flex; gap: 5px; direction: ltr; }
.pgx-marks i { display: block; width: 8px; height: 4px; border-radius: 4px; background: rgba(13, 42, 74, .16);
  transition: width .6s cubic-bezier(.22, 1, .36, 1), background-color .6s ease; }
.pgx-marks i.on { width: 30px; background: var(--live, #0d2a4a); }

/* flèches : un disque de couleur se remplit depuis le centre, la flèche glisse dans son sens, le clic presse le bouton */
.pgx-nav-btn { position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s ease, border-color .35s ease, transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
.pgx-nav-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--live, #0d2a4a);
  transform: scale(0); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.pgx-nav-btn i { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) {
  .pgx-nav-btn:hover { background: #fff; color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 12px 24px -12px color-mix(in oklab, var(--live, #0d2a4a) 80%, #000); }
  .pgx-nav-btn:hover::before { transform: scale(1); }
  .pgx-nav-btn[data-d="-1"]:hover i { transform: translateX(3px); }
  .pgx-nav-btn[data-d="1"]:hover i { transform: translateX(-3px); }
  html[dir="ltr"] .pgx-nav-btn[data-d="-1"]:hover i { transform: scaleX(-1) translateX(3px); }
  html[dir="ltr"] .pgx-nav-btn[data-d="1"]:hover i { transform: scaleX(-1) translateX(-3px); }
}
.pgx-nav-btn:active { transform: scale(.9); transition-duration: .12s; }
@media (prefers-reduced-motion: reduce) { .pgx-odo b, .pgx-nav-btn, .pgx-nav-btn::before, .pgx-nav-btn i, .pgx-marks i { animation: none !important; transition: none !important; } }

/* =====================================================================
   PROGRAMMES : LA COULEUR GAGNE TOUTE LA PAGE, AVEC ÉLÉGANCE
   Tant que la section est à l'écran : une lumière douce de la couleur du programme monte du bas de l'écran,
   un trait de cette couleur souligne le titre, la barre de défilement l'adopte. Tout se fond en ~1 s.
   ===================================================================== */
html::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; mix-blend-mode: multiply;
  background: radial-gradient(130% 70% at 50% 115%, color-mix(in oklab, var(--live) 26%, transparent), transparent 62%);
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1); }
html.pgx-live::after { opacity: 1; }
.pgx-head h3 { position: relative; padding-bottom: 14px; }
.pgx-head h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 4px; border-radius: 4px;
  background: var(--live, #0d2a4a); transition: width .8s cubic-bezier(.22, 1, .36, 1); }
html.pgx-live .pgx-head h3::after { width: 88px; }
html { scrollbar-color: color-mix(in oklab, var(--live) 70%, #0b1d33) transparent; }
html:not(.pgx-live) { scrollbar-color: auto; }
@media (prefers-reduced-motion: reduce) { html::after { transition: none; } }
@media print { html::after { display: none; } }

/* en-tête des programmes : de nouveau un simple titre + phrase (compteur et flèches retirés) */
.pgx-head { display: block; max-width: 60ch; }
.pgx-pager { display: none !important; }

/* =====================================================================
   PROGRAMMES : LE PASSAGE D'UNE COULEUR À L'AUTRE, SUR TOUTE LA PAGE
   - une vague de lumière traverse l'écran dans la nouvelle couleur, dans le sens de lecture (de droite à gauche en arabe) ;
   - la lumière d'ambiance devient bicolore et douce : la couleur du programme + une version claire et chaude de celle-ci,
     ce qui reste harmonieux quelle que soit la couleur (teal, bleu, jaune) ;
   - les couleurs se mélangent en Oklab (pas de gris boueux entre deux teintes).
   ===================================================================== */
@property --live-prev { syntax: "<color>"; inherits: true; initial-value: #1fb5ad; }
html { transition: --live 1.2s cubic-bezier(.4, 0, .2, 1); }

/* la vague */
html::before { content: ""; position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0; mix-blend-mode: multiply;
  background: linear-gradient(105deg, transparent 30%, color-mix(in oklab, var(--live) 20%, transparent) 46%, color-mix(in oklab, var(--live) 28%, transparent) 50%, color-mix(in oklab, var(--live) 20%, transparent) 54%, transparent 70%) no-repeat;
  background-size: 320% 100%; background-position: 100% 0; }
html.pgx-sweep::before { animation: pgxPageSweep 1.5s cubic-bezier(.45, 0, .2, 1) both; }
html[dir="rtl"].pgx-sweep::before { animation-name: pgxPageSweepR; }
@keyframes pgxPageSweep { 0% { opacity: 0; background-position: 100% 0; } 15% { opacity: 1; } 100% { opacity: 0; background-position: 0% 0; } }
@keyframes pgxPageSweepR { 0% { opacity: 0; background-position: 0% 0; } 15% { opacity: 1; } 100% { opacity: 0; background-position: 100% 0; } }

/* lumière d'ambiance bicolore derrière les panneaux */
#programmes.pgx::before { background:
  radial-gradient(45% 55% at 62% 58%, color-mix(in oklab, var(--live) 20%, transparent), transparent 70%),
  radial-gradient(40% 45% at 22% 30%, color-mix(in oklab, color-mix(in oklab, var(--live) 55%, #ffe9b8) 22%, transparent), transparent 72%); }
html[dir="rtl"] #programmes.pgx::before { background:
  radial-gradient(45% 55% at 38% 58%, color-mix(in oklab, var(--live) 20%, transparent), transparent 70%),
  radial-gradient(40% 45% at 78% 30%, color-mix(in oklab, color-mix(in oklab, var(--live) 55%, #ffe9b8) 22%, transparent), transparent 72%); }

/* lumière du bas de l'écran : deux sources douces, la couleur et sa version chaude */
html::after { background:
  radial-gradient(70% 60% at 25% 118%, color-mix(in oklab, var(--live) 24%, transparent), transparent 62%),
  radial-gradient(70% 60% at 78% 120%, color-mix(in oklab, color-mix(in oklab, var(--live) 50%, #ffd88a) 22%, transparent), transparent 62%); }

@media (prefers-reduced-motion: reduce) { html::before { display: none; } }
@media print { html::before { display: none; } }

/* =====================================================================
   PROGRAMMES : COULEUR BIEN VISIBLE SUR LA PAGE (les effets précédents étaient trop discrets)
   ===================================================================== */
/* l'en-tête flottant se teinte de la couleur du programme, et sa barre de progression la prend entièrement */
header.top { transition: background-color 1s cubic-bezier(.4, 0, .2, 1), box-shadow 1s ease; }
html.pgx-live header.top { background-color: color-mix(in oklab, var(--live) 16%, rgba(255, 255, 255, .7));
  box-shadow: 0 10px 30px -18px color-mix(in oklab, var(--live) 70%, transparent); }
header.top .progress i { transition: background-color 1s ease; }
html.pgx-live header.top .progress i { background: var(--live); }
html.pgx-live header.top .menu a.on { color: color-mix(in oklab, var(--live) 70%, #0b1d33); }

/* fond : la section baigne nettement dans la couleur du programme (deux sources, bien plus présentes) */
#programmes.pgx::before { inset: 8% -14% -12% -14%; background:
  radial-gradient(48% 60% at 60% 60%, color-mix(in oklab, var(--live) 34%, transparent), transparent 72%),
  radial-gradient(42% 50% at 20% 28%, color-mix(in oklab, color-mix(in oklab, var(--live) 55%, #ffe9b8) 34%, transparent), transparent 74%); }
html[dir="rtl"] #programmes.pgx::before { background:
  radial-gradient(48% 60% at 40% 60%, color-mix(in oklab, var(--live) 34%, transparent), transparent 72%),
  radial-gradient(42% 50% at 80% 28%, color-mix(in oklab, color-mix(in oklab, var(--live) 55%, #ffe9b8) 34%, transparent), transparent 74%); }
#programmes.pgx { overflow-clip-margin: 140px; }

/* lumière du bas de l'écran : plus haute et plus franche */
html::after { mix-blend-mode: normal; background:
  radial-gradient(70% 55% at 25% 112%, color-mix(in oklab, var(--live) 30%, transparent), transparent 64%),
  radial-gradient(70% 55% at 78% 115%, color-mix(in oklab, color-mix(in oklab, var(--live) 50%, #ffd88a) 26%, transparent), transparent 64%); }

/* la vague : plus large et plus colorée, en teinte claire (et non plus en assombrissement) */
html::before { mix-blend-mode: normal; background:
  linear-gradient(105deg, transparent 26%, color-mix(in oklab, var(--live) 16%, transparent) 42%, color-mix(in oklab, var(--live) 30%, transparent) 50%, color-mix(in oklab, var(--live) 16%, transparent) 58%, transparent 74%) no-repeat;
  background-size: 300% 100%; }

/* priorité : l'en-tête clair prend bien la teinte du programme (une règle plus ancienne fixait son fond) */
html.pgx-live header.top:not(.over-night) { background-color: color-mix(in oklab, var(--live) 16%, rgba(255, 255, 255, .72)) !important; }

/* =====================================================================
   PROGRAMMES : OMBRES ET SURVOL
   (l'isolation « paint » des panneaux coupait leurs ombres : on garde seulement l'isolation de mise en page)
   Ombres en couches, teintées de la couleur du programme : un contact net au sol + une ombre portée douce et longue.
   Survol : la bande se soulève, son ombre s'allonge et se colore, son sigle s'éclaire ; le panneau ouvert gagne en profondeur.
   ===================================================================== */
.pgx-stage { contain: layout; }
.pgx-frame { transition: box-shadow .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 1px 2px rgba(6, 22, 41, .1), 0 10px 22px -14px color-mix(in oklab, var(--duo, #0b2540) 45%, rgba(6, 22, 41, .45)),
              0 34px 60px -38px color-mix(in oklab, var(--duo, #0b2540) 55%, rgba(6, 22, 41, .55)); }
/* panneau ouvert : plus de profondeur, ombre colorée plus présente */
.pgx-p.on .pgx-frame {
  box-shadow: 0 2px 4px rgba(6, 22, 41, .12), 0 18px 36px -18px color-mix(in oklab, var(--duo, #0b2540) 50%, rgba(6, 22, 41, .5)),
              0 60px 100px -50px color-mix(in oklab, var(--duo, #0b2540) 70%, rgba(6, 22, 41, .5)); }
@media (hover: hover) and (pointer: fine) {
  /* bande survolée : elle se soulève et son ombre se colore */
  .pgx-p:not(.on) .pgx-stage:hover .pgx-frame { transform: translateY(-8px);
    box-shadow: 0 2px 4px rgba(6, 22, 41, .12), 0 22px 40px -18px color-mix(in oklab, var(--duo, #0b2540) 70%, rgba(6, 22, 41, .4)),
                0 50px 80px -40px color-mix(in oklab, var(--duo, #0b2540) 75%, transparent); }
  .pgx-p:not(.on) .pgx-stage:hover .pgx-acro { opacity: 1; mix-blend-mode: normal; color: #fff; text-shadow: 0 6px 30px color-mix(in oklab, var(--duo, #000) 70%, #000); }
  .pgx-p:not(.on) .pgx-stage:hover .pgx-open b { transform: translateY(-4px); }
  /* panneau ouvert survolé : un peu plus de relief */
  .pgx-p.on .pgx-stage:hover .pgx-frame {
    box-shadow: 0 2px 4px rgba(6, 22, 41, .12), 0 24px 44px -20px color-mix(in oklab, var(--duo, #0b2540) 55%, rgba(6, 22, 41, .5)),
                0 70px 110px -50px color-mix(in oklab, var(--duo, #0b2540) 80%, rgba(6, 22, 41, .5)); }
  /* boutons du panneau : le principal s'illumine de sa couleur, le secondaire se remplit de blanc */
  .pgx-stage-acts .pgx-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px color-mix(in oklab, var(--duo, #000) 90%, #000), 0 0 0 4px color-mix(in oklab, var(--duo, #fff) 30%, transparent); }
  .pgx-stage-acts .pgx-more:hover { background: #fff; color: #0b1d33; border-color: #fff; transform: translateY(-3px); }
}
.pgx-stage-acts .pgx-cta:active, .pgx-stage-acts .pgx-more:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.pgx-open { cursor: pointer; }
.pgx-open:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@media (prefers-reduced-motion: reduce) { .pgx-frame { transition: none; } .pgx-p:not(.on) .pgx-stage:hover .pgx-frame { transform: none; } }

/* =====================================================================
   PROGRAMMES : FOND DE COULEUR — VERSION SOBRE ET SOIGNÉE
   Retirés (rendu « bon marché ») : taches de lumière floues, lueur qui monte du bas de l'écran, vague qui balaie la page,
   onde au clic, teinte de l'en-tête.
   À la place, une seule idée nette : derrière les programmes, toute la largeur de la page prend un aplat très clair
   de la couleur du programme ouvert, avec des bords fondus en haut et en bas — comme une page produit qui change d'ambiance.
   Restent, précis : le trait sous le titre, la barre de progression de l'en-tête, le lien actif du menu, le bouton principal.
   ===================================================================== */
html::before, html::after, .pgx-ripple { display: none !important; }
html.pgx-live header.top:not(.over-night) { background-color: rgba(255, 255, 255, .72) !important; box-shadow: none; }
#programmes.pgx { overflow: visible; }
#programmes.pgx::before { content: ""; display: block !important; position: absolute; z-index: -1; pointer-events: none;
  top: -120px; bottom: -110px; left: 50%; right: auto; width: 100vw; translate: -50% 0; filter: none;
  background: color-mix(in oklab, var(--live) 9%, #f4f7fa) !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 110px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 110px), transparent 100%);
  transition: background-color 1.2s cubic-bezier(.4, 0, .2, 1); }
html[dir="rtl"] #programmes.pgx::before { translate: 50% 0; left: auto; right: 50%; }

/* =====================================================================
   PROGRAMMES SUR TÉLÉPHONE / TABLETTE : RÉCIT COURT, DÉTAILS À LA DEMANDE
   Avant : le programme ouvert affichait ~900 px de détails et repoussait les trois autres programmes loin en bas.
   Maintenant : description + boutons ; « اكتشف المزيد » déplie le reste (chiffres, étapes, réussite, qui peut participer).
   ===================================================================== */
@media (max-width: 980px) {
  .pgx-p:not(.details) .pgx-front > :is(.pgx-kpis, .pgx-how, .pgx-proof, .pgx-who) { display: none; }
  .pgx-front { grid-template-areas: "desc desc desc" "acts acts acts" "kpis kpis kpis" "proof . who" "how how how"; }
  .pgx-p.details .pgx-front > :is(.pgx-kpis, .pgx-how, .pgx-proof, .pgx-who) { animation: pgxUp .5s cubic-bezier(.22, 1, .36, 1) backwards; }
  .pgx-story { margin: 14px 0 18px; }
  .pgx-front > .pgx-acts { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
  .pgx-front > .pgx-acts > * { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 640px) {
  .pgx-front { grid-template-areas: "desc" "acts" "kpis" "proof" "who" "how"; row-gap: 18px; }
}

/* =====================================================================
   PASSAGE PROGRAMMES → « تظاهراتنا الكبرى »
   Moins de vide sous les panneaux ; le fondu du clair vers le bleu nuit devient progressif (courbe douce,
   plusieurs paliers) au lieu d'une bande grise marquée.
   ===================================================================== */
#programmes.pgx { margin-bottom: clamp(36px, 4vw, 60px); }
#programmes.pgx::before { bottom: -60px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 60px), transparent 100%); }
main > section.projects { background: linear-gradient(180deg,
  var(--mist, #f3f6f9) 0,
  color-mix(in oklab, var(--mist, #f3f6f9) 82%, #0c3561) 40px,
  color-mix(in oklab, var(--mist, #f3f6f9) 52%, #0c3561) 80px,
  color-mix(in oklab, var(--mist, #f3f6f9) 22%, #0c3561) 120px,
  #0c3561 170px, #0a2d55 55%, #082547 100%) !important; }
main > section.projects > .wrap { padding-top: clamp(110px, 9vw, 140px) !important; }
@media (max-width: 860px) { main > section.projects > .wrap { padding-top: 100px !important; } }

/* =====================================================================
   « تظاهراتنا الكبرى » : UN GRAND PANNEAU DE NUIT AUX COINS ARRONDIS
   Plus de fondus vers le clair en haut et en bas (ils donnaient une bande grise) : la section devient une « feuille »
   bleu nuit, légèrement en retrait des bords de l'écran, aux grands coins arrondis, avec une ombre douce.
   Elle répond à l'accueil de nuit arrondi en haut du site.
   ===================================================================== */
main > section.projects { background: linear-gradient(180deg, #0d3866 0, #0a2d55 45%, #082547 100%) !important;
  border-radius: clamp(28px, 4vw, 56px); margin-inline: clamp(8px, 1.4vw, 22px); margin-block: 8px clamp(40px, 5vw, 72px);
  padding-bottom: clamp(80px, 8vw, 120px) !important;
  box-shadow: 0 2px 4px rgba(8, 37, 71, .08), 0 40px 80px -50px rgba(8, 37, 71, .6); isolation: isolate; }
main > section.projects > .wrap { padding-top: clamp(84px, 7vw, 112px) !important; }
@media (max-width: 860px) { main > section.projects > .wrap { padding-top: 72px !important; } }
#programmes.pgx { margin-bottom: clamp(56px, 6vw, 88px); }

/* ===== Night panel « تظاهراتنا الكبرى » — vie au défilement (v20261120a) ===== */
main > section.projects { box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 4px rgba(8,37,71,.08), 0 40px 80px -50px rgba(8,37,71,.6) !important; overflow: clip; }
main > section.projects > .rip-deco { display: none !important; }
main > section.projects .projects-head h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem) !important; line-height: 1.1; }
section.projects .albums-title[data-i18n="alb.local"] { display: flex !important; align-items: center; gap: 22px; margin-top: clamp(72px, 7vw, 104px) !important; }
section.projects .albums-title[data-i18n="alb.local"]::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.2)); }
html[dir="rtl"] section.projects .albums-title[data-i18n="alb.local"]::after { background: linear-gradient(270deg, rgba(255,255,255,.04), rgba(255,255,255,.2)); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* une seule entrée orchestrée : la photo se dévoile, les cartes montent en cascade */
    section.projects .ev-grid .ev { animation: nightRise linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
    section.projects .ev-grid .ev:nth-child(3) { animation-range: entry 15% entry 85%; }
    section.projects .ev-grid .ev:nth-child(2) { animation-range: entry 25% entry 95%; }
    section.projects .ev-grid .ev-onerun { animation-name: nightUnveil; animation-range: entry 0% cover 35%; }
    section.projects .albums .album { animation: nightRise linear both; animation-timeline: view(); animation-range: entry 5% entry 80%; }
    section.projects .albums .album:nth-child(even) { animation-range: entry 18% entry 92%; }
    /* la photo glisse doucement dans son cadre pendant le défilement */
    section.projects .ev-grid .ev > img:not(.ev-flip) { animation: nightDrift linear both; animation-timeline: view(); }
  }
}
@keyframes nightRise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes nightUnveil { from { opacity: .3; clip-path: inset(9% 7% 9% 7% round 40px); transform: translateY(40px); } to { opacity: 1; clip-path: inset(-90px round 40px); transform: none; } }
@keyframes nightDrift { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
