/* =====================================================================
   JCI Kélibia — Ambiance « verre dépoli »
   Une lumière douce (trois halos aux couleurs JCI) dérive derrière la page ;
   les panneaux en verre la laissent transparaître. Chargé après site.css.
   ===================================================================== */
:root {
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(18px) saturate(160%);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -24px rgba(13, 59, 102, 0.35);
  --glass-radius: 18px;
}

/* ---------- Fond : halos de lumière ---------- */
body { background: #f4f8fb; }
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.aura i:nth-child(1) { width: 46vmax; height: 46vmax; background: #7fd0f2; top: -12vmax; inset-inline-start: -10vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aura i:nth-child(2) { width: 38vmax; height: 38vmax; background: #9fe3d8; bottom: -14vmax; inset-inline-end: -8vmax; animation: drift2 32s ease-in-out infinite alternate; }
.aura i:nth-child(3) { width: 28vmax; height: 28vmax; background: #f8d39a; top: 38%; left: 40%; opacity: 0.4; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-16vmax, -12vmax) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-22vmax, 10vmax) scale(0.9); } }

/* Les sections laissent passer la lumière ; les sections « alternées » ont un voile léger */
section, .why, .about, .gallery, .team, .join, .projects, .news, .faq, .contact { background: transparent; }
.why, .about, .gallery, .team, .join { background: rgba(255, 255, 255, 0.32); }
.footer { background: rgba(255, 255, 255, 0.5); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }

/* ---------- Le verre : style commun ---------- */
.glass,
.mv-item, .creed, .faq-list, .join-form, .contact-form, .partner,
.news-grid .post, .show-tabs button, .lead-member {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--glass-radius);
}
.join-form, .contact-form { background: var(--glass-bg-strong); padding: clamp(22px, 4vw, 40px); }
.faq-list { padding: 6px clamp(16px, 3vw, 28px); border-top: 1px solid var(--glass-border); }
.faq details:last-child { border-bottom: 0; }
.lead-member { padding: 24px; align-self: start; }
.show-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.9); border-color: rgba(13, 59, 102, 0.35); }
.field input, .field textarea, .field select { background: rgba(255, 255, 255, 0.85); }
.partner { border-inline-start: 5px solid var(--barque); }

/* ---------- En-tête : barre flottante en verre ---------- */
.top { top: 12px; width: min(1220px, calc(100% - 24px)); margin: 12px auto 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.top .wrap { width: calc(100% - 36px); }
.top-row { height: 64px; }
.top .progress { inset: auto 22px -1px 22px; height: 2px; border-radius: 2px; overflow: hidden; }
.top.scrolled { box-shadow: 0 14px 34px -18px rgba(13, 59, 102, 0.45); }
@media (max-width: 1380px) {
  .menu { top: 74px; left: 0; right: 0; border-radius: 22px; background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
}
html { scroll-padding-top: 96px; }

/* ---------- Accueil : badges flottants autour du fort ---------- */
.montage { position: relative; }






 
 
 
/* Le fond blanc du montage se fond dans la lumière de la page */
.montage { perspective: none; }   /* la perspective isolerait le fusionnement : elle est portée par la transformation de l'image */
.montage img { mix-blend-mode: multiply; }
/* Bouton Messenger : bulle ronde sur ordinateur, libellé au survol */
@media (min-width: 761px) {
  .dock-msg { width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; position: relative; }
  .dock-msg svg { width: 26px; }
  .dock-msg span { position: absolute; inset-inline-end: 64px; white-space: nowrap; background: var(--port); color: #fff; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  [dir="rtl"] .dock-msg span { transform: translateX(-6px); }
  .dock-msg:hover span, .dock-msg:focus-visible span { opacity: 1; transform: none; }
  .to-top { bottom: 86px; }
  .dock-msg { transition: opacity 0.3s, transform 0.3s var(--ease), border-color 0.2s; }
  .dock:not(.show) .dock-msg { opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none; }
}
   /* trop petit : les chiffres sont déjà sous le titre */


/* ---------- Ruban, galerie, Messenger : touches de verre ---------- */


.gal-item figcaption { background: linear-gradient(transparent, rgba(10, 35, 60, 0.55)); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

.dock-msg, .round-btn, .to-top { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.dock-msg { background: rgba(255, 255, 255, 0.7); border-color: var(--glass-border); }
.round-btn { background: rgba(255, 255, 255, 0.7); }
@media (max-width: 760px) {
  .dock { background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-top-color: var(--glass-border); }
}

/* Les cartes réagissent au survol en « flottant » */
.mv-item, .news-grid .post, .lead-member { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.mv-item:hover, .lead-member:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 28px 50px -28px rgba(13, 59, 102, 0.5); }

/* Accessibilité : pas de dérive ni de flottement si l'utilisateur réduit les animations */
@media (prefers-reduced-motion: reduce) {
  .aura i { animation: none !important; }
}
/* Navigateurs sans verre dépoli : fond plus opaque pour rester lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .mv-item, .creed, .faq-list, .news-grid .post, .show-tabs button, .lead-member, .top, .partner { background: rgba(255, 255, 255, 0.92); }
}

/* =====================================================================
   Icônes (Phosphor, version duotone) : tailles et couleurs harmonisées
   ===================================================================== */
.ph, .ph-fill { line-height: 1; }
.burger i { font-size: 24px; color: var(--port); margin: auto; }
.round-btn i { font-size: 20px; color: var(--port); transition: color 0.2s; }
.round-btn:hover i { color: #fff; }
.round-btn:disabled i { color: var(--port); }
.lb-btn i { font-size: 24px; color: #fff; }
.to-top i { font-size: 22px; color: #fff; }
.dock-msg i { font-size: 24px; color: #0084ff; }
@media (min-width: 761px) { .dock-msg i { font-size: 28px; } }
[dir="rtl"] .dir-ic { transform: scaleX(-1); }

/* Badges flottants */



/* 4 domaines : grande icône dans une pastille de verre */
.area-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 32px; color: #fff;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.35); margin-bottom: 18px;
  transition: transform 0.4s var(--ease); }
.area-ind .area-ic { color: var(--port); background: rgba(255, 255, 255, 0.45); }
.area:hover .area-ic, .area.open .area-ic { transform: rotate(-8deg) scale(1.08); }

/* Onglets des actions : icône à gauche du titre */
.show-tabs button { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }


.show-tabs button .tab-timer { grid-column: 1 / -1; }
.show-visual { flex-direction: column; gap: 6px; }



/* Chiffres sous le titre */



/* Contact */
.contact-list > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }


/* Correctif : une icône duotone = deux couches superposées (::before + ::after).
   On les garde en ligne et de gauche à droite, même en arabe, sinon elles se séparent. */

.area-ic, .burger i {
  display: inline-flex !important; align-items: center; justify-content: center; }

/* Le fort incliné en 3D ne doit jamais créer de défilement horizontal (clip garde le menu collant) */
html, body { overflow-x: clip; }
.hero { overflow-x: clip; }

/* =====================================================================
   Les 4 piliers : d'après le visuel officiel de JCI Kélibia
   Photo réelle estompée en fond, voile de verre, titre surligné au marqueur.
   ===================================================================== */
.pillars { gap: 22px; }
.pillars .area { --fg: var(--encre); --soft: rgba(19, 38, 58, 0.74); --accent: var(--port);
  position: relative; isolation: isolate; overflow: hidden; background: transparent; color: var(--fg);
  border-radius: 22px; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); padding: 28px 26px 26px; min-height: 480px; }
.pillars .area-bg { position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; filter: saturate(0.85);
  transform: scale(1.02); transition: transform 0.8s var(--ease), filter 0.5s; }
.pillars .area::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.86) 45%, rgba(255,255,255,0.94) 100%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background 0.5s; }
.pillars .area:hover .area-bg, .pillars .area.open .area-bg { transform: scale(1.1); filter: saturate(1.05); }
.pillars .area:hover::after, .pillars .area.open::after { background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.84) 45%, rgba(255,255,255,0.95) 100%); }
.pillars .area-com { --accent: #1f4a8a; }
.pillars .area-biz { --accent: #2a9d9c; }
.pillars .area-int { --accent: #0097d7; }
.pillars .area-ind { --accent: #c79a00; }
/* filet de couleur du pilier en haut de la carte */
.pillars .area { border-top: 5px solid var(--accent); }
.pillars .area-ic { color: #fff; background: var(--accent); border-color: transparent; box-shadow: 0 10px 22px -12px var(--accent); }
.pillars .area h3 { color: var(--port); font-size: 1.55rem; margin-bottom: 8px; }
/* titre surligné au marqueur jaune, comme sur le visuel */
.pillars .area h3 mark { background: linear-gradient(transparent 52%, rgba(246, 205, 82, 0.85) 52%, rgba(246, 205, 82, 0.85) 92%, transparent 92%);
  color: inherit; padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pillars .area-tag { font-weight: 700; color: var(--accent); font-size: 1rem; margin-bottom: 10px; line-height: 1.45; }
.pillars .area > p:not(.area-tag):not(.area-ex) { color: var(--soft); font-size: 0.97rem; }
.pillars .area dl { border-top: 1px solid rgba(13, 59, 102, 0.12); }
.pillars .area dd b { color: var(--port); }
.pillars .area-ex span { color: var(--port); }
.pillars .area:hover .area-ex, .pillars .area.open .area-ex { border-top-color: rgba(13, 59, 102, 0.15); }
.pillars-foot { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 30px auto 0; max-width: 60ch; text-align: center;
  font-weight: 600; color: var(--port); font-size: 1.08rem; }

html[lang="ar"] .pillars .area h3 { font-size: 1.7rem; }
@media (max-width: 560px) { .pillars .area { min-height: 0; } }

/* ===== Boutons du hero : pilules avec pastille d'icône ===== */
.hero-actions { gap: 14px; }
.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  padding: 17px 34px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, background .3s; }


.cta-main { color: #fff; background: linear-gradient(135deg, var(--jci), var(--port));
  box-shadow: 0 14px 30px -12px rgba(0, 151, 215, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* reflet qui traverse le bouton au survol */
.cta-main::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transition: transform .7s; }
.cta-main:hover::after { transform: translateX(120%); }
.cta-glass { color: var(--port); background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 26px -14px rgba(13, 59, 102, .45); }

.cta:hover { transform: translateY(-3px); }
.cta-main:hover { box-shadow: 0 20px 38px -14px rgba(0, 151, 215, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cta-glass:hover { background: rgba(255, 255, 255, .85); }

.cta:focus-visible { outline: 3px solid var(--barque); outline-offset: 3px; }
@media (max-width: 560px) { .hero-actions .cta { flex: 1 1 100%; justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .cta, .cta-main::after { transition: none; } }

/* ===== Notre empreinte : monde → Tunisie → Kélibia ===== */
.reach { margin-top: clamp(48px, 7vw, 88px); }
.reach-head { max-width: 62ch; margin-bottom: 34px; }
.reach-head h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; color: var(--encre); margin: 0 0 14px; }
.reach-head p { color: rgba(19, 38, 58, .74); line-height: 1.7; margin: 0; }
.reach-list { list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
/* le fil qui relie les trois échelles, passant par les icônes */
.reach-list::before { content: ""; position: absolute; top: 58px; inset-inline: 12%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 151, 215, .45) 0 8px, transparent 8px 16px); }
.reach-item { position: relative; z-index: 1; padding: 28px 26px 30px; border-radius: 26px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.reach-item:hover { transform: translateY(-6px); }
/* l'année de fondation tient lieu d'emblème */
.reach-year { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  line-height: 1; letter-spacing: -.03em; color: var(--jci); text-align: start; }
.reach-here .reach-year { color: var(--barque); }
.reach-scale { margin: 18px 0 4px; font-size: .9rem; font-weight: 600; color: var(--jci);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reach-item h4 { margin: 0 0 12px; font-size: 1.35rem; color: var(--encre); }
.reach-item p:last-child { margin: 0; color: rgba(19, 38, 58, .78); line-height: 1.7; }
/* Kélibia : la carte où l'on se trouve */
.reach-here { background: linear-gradient(150deg, var(--jci), var(--port)); border-color: transparent; color: #fff;
  box-shadow: 0 22px 50px rgba(0, 151, 215, .32); }

.reach-here .reach-scale, .reach-here h4, .reach-here p:last-child { color: #fff; }
.reach-pin { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--barque); color: var(--port); font-size: .78rem; font-weight: 700; }
html[lang="ar"] .reach-item h4 { font-size: 1.45rem; }
@media (max-width: 860px) {
  .reach-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .reach-list::before { top: 40px; bottom: 40px; inset-inline-start: 56px; inset-inline-end: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(0, 151, 215, .45) 0 8px, transparent 8px 16px); }
}
@media (prefers-reduced-motion: reduce) { .reach-item, .reach-item:hover { transition: none; transform: none; } }


/* ===== Niveau de chaque action : à Kélibia, Zone A, national ===== */
.post-lvl.lvl-local { background: var(--barque); color: var(--port); border-color: transparent; }
.post-lvl.lvl-zone { background: var(--mansoura); color: #fff; border-color: transparent; }
.post-lvl.lvl-nat { background: var(--port); color: #fff; border-color: transparent; }
.post-lvl { display: inline-block; align-self: flex-start; margin: 0 0 6px; padding: 3px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; }
.post-lvl + time { display: block; }

/* ===== Nos formations : trois colonnes, listes datées ===== */
.trainings { padding-block: clamp(56px, 8vw, 96px); }


  








/* ===== Albums : une carte par événement, ses photos s'ouvrent dans la visionneuse ===== */
.albums-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 44px 0 16px; font-size: 1.2rem; color: var(--encre); }
.albums-title .post-lvl { margin: 0; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.album { display: flex; flex-direction: column; gap: 4px; padding: 0 0 14px; border: 1px solid var(--glass-border); border-radius: 22px;
  background: var(--glass-bg); box-shadow: var(--glass-shadow); text-align: start; cursor: pointer; overflow: hidden; font: inherit; color: inherit;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.album:hover { transform: translateY(-4px); }
.album:focus-visible { outline: 3px solid var(--barque); outline-offset: 3px; }
.album-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album:hover .album-cover img { transform: scale(1.05); }

.album-title { padding-inline: 16px; color: var(--port); line-height: 1.35; }
.album-when { padding-inline: 16px; color: rgba(19, 38, 58, .62); font-size: .86rem; }
.show-photos { margin-top: 18px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.network, .history { padding-block: clamp(56px, 8vw, 96px); }
.history h2 { margin-bottom: 8px; }
/* piliers sans photo : cartes plus compactes */
.pillars .area { min-height: 0; }
.pillars .area::after { display: none; }
.pillars .area { background: var(--glass-bg); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
