﻿/* =====================================================================
   JCI Kélibia — Site public
   Fond blanc. Élément signature : le montage du fort de Kélibia qui
   déborde de son cadre de ciel, affiché à sa taille d'origine (net).
   Couleurs : bleu JCI pour les titres, or des projecteurs du fort pour
   l'action principale, brume claire pour séparer les sections.
   ===================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: #fff; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 120px); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
p { max-width: 64ch; }
p + p { margin-top: 1em; }
.meta { color: var(--mansoura); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.link { color: var(--port); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--barque); }
.link:hover { text-decoration-color: currentColor; }
/* Lien d'évitement caché au-dessus de l'écran (pas à gauche : en arabe, ça créerait un défilement horizontal) */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--port); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }
/* ---------- Typographie arabe ----------
   Titres en Reem Kufi (coufique géométrique, en écho au logo JCI),
   texte courant en IBM Plex Sans Arabic, un peu plus grand et plus aéré
   que le latin : l'arabe paraît plus petit à taille égale. */
html[lang="ar"] body { font-family: var(--font-ar); font-size: 1.12rem; line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .show-big, html[lang="ar"] .area dd b { font-family: var(--font-ar-display); letter-spacing: 0; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 700; line-height: 1.35; }
html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 600; line-height: 1.5; }
html[lang="ar"] .hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.3; max-width: 14ch; }
html[lang="ar"] .meta, html[lang="ar"] .post time, html[lang="ar"] .role, html[lang="ar"] .area dt, html[lang="ar"] .ph figcaption { font-size: 0.95rem; }
html[lang="ar"] .btn { font-weight: 600; }
html[lang="ar"] .menu a, html[lang="ar"] .lang button { font-weight: 600; }
html[lang="ar"] .lead, html[lang="ar"] .about-lead { line-height: 1.85; }
html[lang="ar"] .mv-text { line-height: 1.7; font-family: var(--font-ar-display); font-weight: 600; }
html[lang="ar"] .creed-list li { font-size: 1.15rem; line-height: 1.85; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--trait); }
.top-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.menu { display: flex; gap: 20px; margin-inline-start: auto; }
.menu a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--encre); padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--barque); }

.top-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: none; cursor: pointer; padding: 6px 7px; font-weight: 600; font-size: 0.88rem; color: var(--gris); border-bottom: 2px solid transparent; }
.lang button[lang="ar"] { font-family: var(--font-ar); font-size: 0.95rem; }
.lang button[aria-pressed="true"] { color: var(--port); border-bottom-color: var(--barque); }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--trait); border-radius: var(--radius); background: #fff; cursor: pointer; }
.burger svg { width: 22px; margin: auto; fill: none; stroke: var(--port); stroke-width: 2; stroke-linecap: round; }

/* ---------- Accueil : le montage du fort ---------- */
.hero { padding-top: clamp(16px, 3vw, 36px); padding-bottom: clamp(56px, 8vw, 96px); }
/* Affiché au maximum à sa largeur réelle (1240 px) pour rester net */
.montage { margin: 0 auto; width: min(1240px, 100%); }
.montage img { width: 100%; height: auto; display: block; animation: rise 1.1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hero-text { margin-top: clamp(4px, 1vw, 16px); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; max-width: 16ch; margin-bottom: clamp(20px, 3vw, 32px); }
html[lang="ar"] .hero h1 { line-height: 1.3; max-width: 18ch; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.lead { font-size: 1.15rem; color: var(--gris); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }



/* Le titre remonte sur la partie blanche du montage (là où la colline se dissout) */
.hero-text { position: relative; margin-top: clamp(-150px, -10vw, -24px); }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }

/* ---------- Pourquoi nous rejoindre ---------- */
.why { background: var(--brume); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 40px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--gris); }
/* Les 4 domaines : couleurs officielles des « Areas of Opportunity » de jci.cc */
.areas { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area { --bg: var(--port); --fg: #fff; --soft: rgba(255, 255, 255, 0.82); background: var(--bg); color: var(--fg); border-radius: var(--radius); padding: 30px 26px 28px; min-height: 400px; display: flex; flex-direction: column; }
.area-biz { --bg: #57bcbb; }
.area-int { --bg: #0097d7; }
.area-ind { --bg: #edc213; --fg: #13263a; --soft: rgba(19, 38, 58, 0.78); }   /* texte foncé sur jaune : lisible */
.area-com { --bg: #1f4a8a; }
.area h3 { color: var(--fg); font-size: 1.45rem; line-height: 1.15; margin-bottom: 14px; }
.area > p { color: var(--soft); font-size: 0.98rem; }
.area dl { margin-top: auto; padding-top: 24px; display: grid; gap: 14px; }
.area dt { font-size: 0.82rem; color: var(--soft); }
.area dd { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.area dd b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.area dd span { font-weight: 600; font-size: 0.88rem; color: var(--soft); }

/* ---------- Questions fréquentes ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.08rem; color: var(--port); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--trait); display: grid; place-items: center; font-weight: 500; font-size: 1.2rem; color: var(--port); transition: transform 0.2s; }
.faq details[open] summary::after { content: "−"; background: var(--barque); border-color: var(--barque); }
.faq details p { padding: 0 0 22px; color: var(--gris); }

/* ---------- Devenir partenaire ---------- */
.partner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; background: var(--brume); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); margin-bottom: clamp(56px, 8vw, 96px); border-inline-start: 5px solid var(--barque); }
.partner h2 { margin-bottom: 0.3em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.partner p { color: var(--gris); }
.partner .btn { flex-shrink: 0; }

/* ---------- Qui sommes-nous ---------- */
.about { background: var(--brume); }
/* Mission et vision : les deux phrases officielles de la JCI, mises en avant */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: clamp(48px, 7vw, 80px); }
.mv-item { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); border-top: 4px solid var(--barque); }
.mv-item h3 { font-size: 1rem; color: var(--mansoura); margin-bottom: 12px; }
.mv-text { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; font-weight: 700; color: var(--port); letter-spacing: -0.01em; }
html[lang="ar"] .mv-text { line-height: 1.7; }

   /* inutile de répéter l'anglais en version anglaise */
/* Le Credo : titre à gauche, les six phrases à droite */
.creed { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(20px, 4vw, 56px); margin-top: clamp(20px, 3vw, 32px); background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.creed-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.creed-head p { font-size: 1.15rem; font-weight: 600; color: var(--mansoura); }
.creed-list { list-style: none; display: grid; gap: 14px; }
.creed-list li { position: relative; padding-inline-start: 28px; font-size: 1.08rem; line-height: 1.5; color: var(--encre); }
/* Étoile à huit branches (khatam), motif des zelliges tunisiens : utilisée avec parcimonie */
:root { --khatam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='%23f2a93b'%3E%3Crect x='4' y='4' width='12' height='12'/%3E%3Crect x='4' y='4' width='12' height='12' transform='rotate(45 10 10)'/%3E%3C/g%3E%3C/svg%3E"); }
.creed-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.35em; width: 4px; height: 1.1em; border-radius: 2px; background: var(--barque); }
html[lang="ar"] .creed-list li::before { top: 0.62em; }
.story-title { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 26px; font-size: 1.4rem; }

.about-lead { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5; color: var(--port); font-weight: 500; }

.ph { margin: 0; }
.ph img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); background: #fff; }
.ph figcaption { font-size: 0.85rem; color: var(--gris); margin-top: 8px; }







/* ---------- Projets ---------- */


/* ---------- Histoire ---------- */

/* ---------- Actualités ---------- */

.news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.post { display: flex; flex-direction: column; }
.post img, .post .post-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--brume); margin-bottom: 14px; }
.post-ph { display: grid; place-items: center; font-weight: 800; font-size: 2rem; color: var(--port); }
.post time { font-size: 0.9rem; color: var(--gris); }
.post h3 { font-size: 1.12rem; margin: 4px 0 8px; }
.post p { font-size: 0.96rem; color: var(--gris); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post button { margin-top: 10px; align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.95rem; }
.empty { color: var(--gris); }

/* ---------- Bureau ---------- */
.team { background: var(--brume); }
.team-sub { color: var(--gris); margin-top: -0.4em; margin-bottom: 36px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.lead-member { grid-row: span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-inline-end: 20px; }
.lead-photo { width: 200px; aspect-ratio: 1; border-radius: 50%; background-color: var(--brume); background-size: cover; background-position: center; border: 4px solid var(--barque); display: grid; place-items: center; font-size: 3rem; font-weight: 700; color: var(--port); }
.lead-member .name { font-size: 1.6rem; }
.member { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid #d0dde4; }
.member .avatar { background: #fff; }
.member .avatar { width: 52px; height: 52px; }
.name { font-weight: 700; color: var(--port); font-size: 1.08rem; line-height: 1.3; }
.role { color: var(--gris); font-size: 0.95rem; line-height: 1.35; }

/* ---------- Rejoindre ---------- */
.join { background: var(--brume); }
.join-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.join-text > p { font-size: 1.1rem; margin-bottom: 34px; color: var(--gris); }
.join-text h3 { font-size: 1.1rem; margin-bottom: 14px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--barque); color: var(--port); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.join-form { background: #fff; color: var(--encre); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--trait); }
.form-body { display: grid; gap: 16px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frow-3 { grid-template-columns: 0.6fr 1fr 1.4fr; }
.join-form .btn { justify-self: start; margin-top: 6px; }
.form-done { padding: 20px 0; border-inline-start: 5px solid var(--mansoura); padding-inline-start: 20px; }
.form-done h3 { color: var(--port); font-size: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); }
.contact-list { margin-top: 30px; display: grid; gap: 18px; }
.contact-list dt { font-size: 0.9rem; color: var(--gris); }
.contact-list dd { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-list a { color: var(--port); text-decoration-color: var(--barque); text-underline-offset: 3px; }
.contact-form { display: grid; gap: 16px; }
.contact-form .btn { justify-self: start; }

/* ---------- Pied de page ---------- */
.footer { background: var(--brume); color: var(--gris); padding: 48px 0 28px; border-top: 1px solid var(--trait); }



.footer strong { color: var(--port); }
.footer p { font-size: 0.95rem; }





/* ---------- Article (dialog) ---------- */
.post-dialog { width: min(680px, calc(100% - 24px)); max-height: 90vh; border: 0; border-radius: var(--radius); padding: 0; margin: auto; color: var(--encre); background: #fff; }
.post-dialog::backdrop { background: rgba(19, 38, 58, 0.55); }
.post-dialog form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 12px; background: #fff; border-bottom: 1px solid var(--trait); }
.dialog-close { border: 1.5px solid var(--trait); background: #fff; border-radius: var(--radius); padding: 6px 14px; font-weight: 600; cursor: pointer; }
.post-dialog img { width: 100%; max-height: 380px; object-fit: cover; }
.post-dialog-body { padding: 24px clamp(20px, 4vw, 36px) 36px; }
.post-dialog-body h3 { font-size: 1.7rem; margin-bottom: 14px; }
.post-dialog-body p { white-space: pre-line; }

/* ---------- Responsive ---------- */
.top-join { white-space: nowrap; }
@media (max-width: 1380px) {
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--trait); padding: 8px 20px 18px; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--trait); font-size: 1.05rem; }
  .burger { display: grid; }
  .top-actions { margin-inline-start: auto; }
  .areas { grid-template-columns: 1fr 1fr; }
  
}
@media (max-width: 820px) {
  .join-grid, .contact-grid, .faq-grid, .mv, .creed { grid-template-columns: minmax(0, 1fr); }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .show-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .show-tabs button { flex: 0 0 auto; scroll-snap-align: start; min-width: 200px; }
  .show-panel { grid-template-columns: minmax(0, 1fr); }
  .tl-years button { font-size: 1rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .lead-member { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; margin-bottom: 20px; }
  .lead-photo { width: 120px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top-join { display: none; }
  .lang button { padding: 6px 5px; }
  .frow, .frow-3 { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .area { min-height: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .lead-member { flex-direction: column; align-items: flex-start; }
  
  
  
  .partner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .montage img { animation: none; } }

/* =====================================================================
   INTERACTIONS — chaque mouvement répond à une action du visiteur
   (survol, clic, défilement), sauf l'ouverture de l'accueil.
   ===================================================================== */

/* Barre de progression de lecture (or), en haut de l'en-tête */
.progress { position: absolute; inset: auto 0 -1px 0; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--barque); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .progress i { transform-origin: right; }
.top { transition: box-shadow 0.3s; }
.top.scrolled { box-shadow: 0 6px 24px -14px rgba(13, 59, 102, 0.35); }

/* Accueil : le titre apparaît mot par mot, le fort suit la souris et le défilement */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i) * 70ms + 250ms); }
.hero.on h1 .w { opacity: 1; transform: none; }
.montage { perspective: 1200px; }
.montage img { transform-origin: 50% 70%; will-change: transform; transition: transform 0.25s ease-out; }
.hero-actions .btn-primary { position: relative; }
.btn-primary { transition: background 0.15s, transform 0.2s var(--ease), box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(242, 169, 59, 0.9); }
.btn-primary:active { transform: translateY(0); }

/* Apparition douce des blocs au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* Cartes des 4 domaines : se soulèvent et révèlent un exemple à Kélibia */
.area { position: relative; overflow: hidden; cursor: default; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.area:hover, .area:focus-visible, .area.open { transform: translateY(-8px); box-shadow: 0 24px 40px -22px rgba(13, 59, 102, 0.55); }
.area:focus-visible { outline: 3px solid var(--port); outline-offset: 3px; }
.area dd b { transition: transform 0.35s var(--ease); display: block; }
.area:hover dd b, .area.open dd b { transform: translateX(6px); }
[dir="rtl"] .area:hover dd b, [dir="rtl"] .area.open dd b { transform: translateX(-6px); }
.area-ex { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; font-size: 0.92rem; padding-top: 0; border-top: 1px solid transparent; transition: max-height 0.45s var(--ease), opacity 0.3s, margin 0.4s, padding 0.4s, border-color 0.3s; }
.area-ex b { display: block; font-size: 0.78rem; color: var(--soft); margin-bottom: 2px; }
.area-ex span { color: var(--fg); font-weight: 600; }
.area:hover .area-ex, .area:focus-visible .area-ex, .area.open .area-ex { max-height: 140px; opacity: 1; margin-top: 16px; padding-top: 14px; border-top-color: rgba(255, 255, 255, 0.35); }
.area-ind:hover .area-ex, .area-ind:focus-visible .area-ex, .area-ind.open .area-ex { border-top-color: rgba(19, 38, 58, 0.25); }
@media (hover: none) { .area { cursor: pointer; } }

/* Vitrine des actions */
.showcase { display: grid; grid-template-columns: minmax(240px, 0.85fr) 2fr; gap: 24px; align-items: stretch; }
.show-tabs { display: flex; flex-direction: column; gap: 8px; }
.show-tabs button { position: relative; overflow: hidden; text-align: start; border: 1.5px solid var(--trait); background: #fff; border-radius: var(--radius); padding: 16px 18px; cursor: pointer; display: grid; gap: 2px; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.show-tabs button span { font-weight: 700; color: var(--port); font-size: 1.02rem; }
.show-tabs button small { color: var(--gris); font-size: 0.85rem; }
.show-tabs button:hover { border-color: var(--port); transform: translateX(4px); }
[dir="rtl"] .show-tabs button:hover { transform: translateX(-4px); }
.show-tabs button[aria-selected="true"] { border-color: var(--port); background: var(--brume); }
.tab-timer { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--barque); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .tab-timer { transform-origin: right; }
.show-tabs button[aria-selected="true"] .tab-timer { animation: timer var(--auto, 6s) linear forwards; }
.showcase.paused .tab-timer { animation: none !important; transform: scaleX(0); }
@keyframes timer { to { transform: scaleX(1); } }
.show-panel { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--show-bg, var(--port)); color: #fff; min-height: 380px; transition: background 0.5s var(--ease); }
.show-visual { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 240px; }
.show-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.show-big { font-weight: 800; font-size: clamp(4rem, 9vw, 7.5rem); letter-spacing: -0.05em; line-height: 0.9; color: rgba(255, 255, 255, 0.95); }
.show-text { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.show-text .meta { color: rgba(255, 255, 255, 0.8); }
.show-text h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.show-text p:last-child { color: rgba(255, 255, 255, 0.88); }
.show-panel.dark-text { color: var(--encre); }
.show-panel.dark-text h3, .show-panel.dark-text .show-big { color: var(--port); }
.show-panel.dark-text .meta, .show-panel.dark-text p:last-child { color: rgba(19, 38, 58, 0.8); }
.show-anim { animation: showIn 0.55s var(--ease); }
@keyframes showIn { from { opacity: 0; transform: translateY(14px); } }

/* Frise cliquable */
.timeline { position: relative; }
.tl-track { position: relative; height: 4px; background: #d0dde4; border-radius: 4px; margin: 0 10px; }
.tl-track i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--port); border-radius: 4px; transition: width 0.7s var(--ease); }
.tl-years { display: flex; justify-content: space-between; margin-top: -14px; }
.tl-years button { position: relative; background: none; border: 0; cursor: pointer; padding: 26px 4px 6px; font: inherit; font-weight: 800; font-size: 1.25rem; color: var(--gris); transition: color 0.2s, transform 0.2s var(--ease); }
.tl-years button::before { content: ""; position: absolute; top: 2px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 3px solid #b9cbd6; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.tl-years button.passed::before { border-color: var(--port); }
.tl-years button[aria-selected="true"] { color: var(--port); transform: translateY(-2px); }
.tl-years button[aria-selected="true"]::before { background: var(--barque); border-color: var(--barque); transform: scale(1.4); }
.tl-years button:hover { color: var(--port); }




/* Bureau : les membres réagissent au survol */
.member { transition: background 0.2s, padding 0.25s var(--ease); border-radius: var(--radius); }
.member:hover { background: #fff; padding-inline: 12px; }
.member .avatar { transition: transform 0.3s var(--ease); }
.member:hover .avatar { transform: scale(1.12) rotate(-4deg); }
.lead-photo { transition: transform 0.4s var(--ease); }
.lead-member:hover .lead-photo { transform: scale(1.04) rotate(2deg); }

/* Actualités : la vignette s'anime au survol */
.post img { transition: transform 0.5s var(--ease); }
.post:hover img { transform: scale(1.03); }

/* Formulaire : coche verte quand un champ est bien rempli */
.field { position: relative; }
.field.valid input { border-color: var(--mansoura); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313a09a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; }
[dir="rtl"] .field.valid input { background-position: left 12px center; }
.form-done { animation: showIn 0.6s var(--ease); }

/* Bouton retour en haut */
.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--port); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease), background 0.2s; }
.to-top svg { width: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--jci); }

/* Galerie « En images » : mosaïque filtrable */
.gallery { background: var(--brume); }





.gal-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: #fff; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; break-inside: avoid; transition: opacity 0.35s, transform 0.35s var(--ease); }
.gal-item img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease), filter 0.4s; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.05); }
.gal-item figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; text-align: start; color: #fff; font-size: 0.88rem; font-weight: 600; line-height: 1.35; background: linear-gradient(transparent, rgba(10, 35, 60, 0.82)); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.gal-item:hover figcaption, .gal-item:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gal-item figcaption { opacity: 1; transform: none; } }






/* Visionneuse plein écran */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(8, 24, 42, 0.94); color: #fff; display: none; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(8, 24, 42, 0.6); }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100vh; padding: 56px 0 24px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: var(--radius); animation: showIn 0.4s var(--ease); }
.lb-fig figcaption { text-align: center; display: grid; gap: 4px; max-width: 70ch; padding: 0 12px; }
.lb-fig figcaption span { font-weight: 600; font-size: 1.02rem; }
.lb-fig figcaption small { color: #9fb4c9; font-size: 0.8rem; }
.lb-fig figcaption b { color: var(--barque); font-size: 0.82rem; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; display: grid; place-items: center; justify-self: center; transition: background 0.2s; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn svg { width: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .lb-prev svg, [dir="rtl"] .lb-next svg { transform: scaleX(-1); }
.lb-close { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 1.8rem; line-height: 1; }
@media (max-width: 560px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { inset-inline-start: 18px; } .lb-next { inset-inline-end: 18px; }
  .lb-fig { padding-bottom: 90px; }
  
  .gal-item { margin-bottom: 10px; }
}

/* Ruban de vraies photos (défile en continu, s'arrête au survol) */
.ribbon { padding: 0 0 clamp(48px, 7vw, 80px); overflow: hidden; }



@keyframes ribbon { to { transform: translateX(-50%); } }






/* « Notre année 2026 » : carrousel qu'on fait glisser */
.news-head h2 { margin-bottom: 0; }
.news-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-tools .link { margin-inline-end: 10px; }
.news-sub { color: var(--gris); margin: 6px 0 24px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--trait); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.round-btn:hover { background: var(--port); border-color: var(--port); }
.round-btn svg { width: 20px; fill: none; stroke: var(--port); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover svg { stroke: #fff; }
.round-btn:disabled { opacity: 0.35; cursor: default; background: #fff; border-color: var(--trait); }
.round-btn:disabled svg { stroke: var(--port); }
[dir="rtl"] .round-btn svg { transform: scaleX(-1); }
.news-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 12px; scrollbar-width: thin; }
.news-grid .post { scroll-snap-align: start; background: #fff; border-radius: var(--radius); padding: 10px 10px 18px; border: 1px solid var(--trait); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.news-grid .post:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(13, 59, 102, 0.6); }
.news-grid .post > *:not(img):not(.post-ph) { padding-inline: 6px; }
.news-grid .post img { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.news-grid .post time { color: var(--mansoura); font-weight: 700; }

/* Menu : lien de la section visible */
.menu a.on { color: var(--port); border-bottom-color: var(--barque); }

/* Barre d'action fixe (téléphone) + bouton Messenger (partout) */
.dock { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 0 20px 20px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-join { display: none; }
.dock-msg { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: #fff; color: var(--port); font-weight: 700; text-decoration: none; border: 1.5px solid var(--trait); box-shadow: 0 10px 24px -14px rgba(13, 59, 102, 0.6); transition: transform 0.2s var(--ease), border-color 0.2s; }
.dock-msg:hover { transform: translateY(-2px); border-color: #0084ff; }
.dock-msg svg { width: 22px; fill: #0084ff; }
.to-top { bottom: 80px; }
@media (max-width: 760px) {
  .dock { justify-content: stretch; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--trait); transform: translateY(110%); transition: transform 0.35s var(--ease); pointer-events: auto; }
  .dock.show { transform: none; }
  .dock-join { display: flex; flex: 1; }
  .dock-msg { height: 46px; padding: 0 14px; box-shadow: none; }
  .dock-msg span { display: none; }
  .to-top { bottom: 84px; }
  body { padding-bottom: 70px; }
  .news-grid { grid-auto-columns: 82%; }
}

/* Mobile : vitrine sur une colonne, onglets qui défilent à l'horizontale */
@media (max-width: 820px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .show-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .show-tabs::-webkit-scrollbar { display: none; }
  .show-tabs button { flex: 0 0 auto; scroll-snap-align: start; min-width: 210px; }
  .show-tabs button:hover { transform: none; }
  .show-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .show-visual { min-height: 180px; }
  .tl-years button { font-size: 0.95rem; padding-inline: 0; }
  
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tab-timer { display: none; }
}




