/* ==========================================================
   SEPCAB 2027 — feuille de style (version 4, charte graphique v1.0, décembre 2026)
   Palette de la charte : Bleu Patrimoine #02509D, Vert Émeraude #008C39, Vert Prairie #54A932,
   Bleu nuit #012650, Sable #C9B48A, Crème #F7F2E8, Encre #1A202C, blanc.
   Contrastes (WCAG 2.1, relevés de la charte) :
   - Bleu Patrimoine sur blanc ou crème : texte courant (7,96 / 7,14) ;
   - Vert Émeraude : texte blanc ou vert seulement en gras ≥ 14 pt (18,7 px) ;
   - Vert Prairie : décoratif sur fond clair ; en texte seulement sur Bleu nuit (5,09).
   Polices : Montserrat (titres), Open Sans (texte), Anton (chiffres et dates).
   ========================================================== */
:root {
  --navy: #012650; --navy-2: #02509D; --blue: #02509D;
  --cream: #F7F2E8; --cream-2: #e9e0cd; --paper: #ffffff; --ink: #1A202C; --muted: #4f5868;
  --green: #008C39; --green-2: #54A932; --sand: #C9B48A;
  --gold: #54A932; --gold-2: #ffffff; --gold-text: #02509D;
  --line: #e4dccb; --red: #b42318;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(1, 38, 80, .10);
  --shadow-lg: 0 26px 60px rgba(1, 38, 80, .24);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gold-grad: linear-gradient(180deg, #54A932 0 7px, #008C39 7px 100%);
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: Montserrat, Arial, system-ui, sans-serif;
  --serif: var(--head);
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --arabic: "Noto Naskh Arabic", Amiri, "Geeza Pro", "Times New Roman", serif;
  --arcs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M20 200 A180 180 0 0 1 380 200' stroke='%23ffffff' stroke-opacity='.22' stroke-width='3'/%3E%3Cpath d='M58 200 A142 142 0 0 1 342 200' stroke='%23ffffff' stroke-opacity='.14' stroke-width='1.2'/%3E%3Cpath d='M96 200 A104 104 0 0 1 304 200' stroke='%2354A932' stroke-opacity='.35' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
  --measure: 68ch;
}
html[lang="ar"] { --sans: "Noto Naskh Arabic", Cairo, var(--arabic); --head: Cairo, var(--arabic); --serif: Cairo, var(--arabic); --display: Cairo, var(--arabic); }
html[lang="ar"] .stat-n, html[lang="ar"] .cd-grid span, html[lang="ar"] .day b, html[lang="ar"] .hero-date { font-family: Anton, Cairo, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.85; }
img, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
::selection { background: var(--navy); color: #fff; }
input, textarea { caret-color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.section-dark :focus-visible, .section-blue :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-2); font-family: var(--head); }
h1 { font: 800 clamp(2rem, 4.6vw, 3.1rem)/1.12 var(--serif); }
h2 { font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1.15 var(--serif); letter-spacing: -.01em; color: var(--navy-2); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: calc(var(--measure) + 2.5rem); }
.narrow p, .narrow li { max-width: var(--measure); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { top: .5rem; }
.preview-bar { background: #fff6e5; color: #8a4b00; text-align: center; padding: .4rem; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.5rem; border: 2px solid var(--navy); border-radius: 999px;
  font: 700 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; background: var(--navy); color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: #fff; color: var(--navy); }
.btn-gold { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 6px 6px 18px 6px; text-transform: uppercase; letter-spacing: .03em; font-family: var(--head); font-weight: 800; }
.btn-gold:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
html[dir="rtl"] .btn-gold { border-radius: 6px 6px 6px 18px; }
html[lang="ar"] .btn-gold { text-transform: none; letter-spacing: 0; }
/* Sur fond bleu : bandeau Vert Émeraude, texte blanc en grand corps gras (charte : 14 pt gras minimum) */
.hero .btn-gold, .section-blue .btn-gold, .partner-cta .btn-gold, .btn-gold.btn-big { background: var(--gold-grad); border: 0; padding-top: calc(.8rem + 5px); font-size: 1.17rem; min-height: 52px; }
.hero .btn-gold:hover, .section-blue .btn-gold:hover, .partner-cta .btn-gold:hover, .btn-gold.btn-big:hover { background: linear-gradient(180deg, #54A932 0 7px, #00752f 7px 100%); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }
html[dir="rtl"] .link-arrow::after { content: " ←"; }
.official-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; color: var(--navy-2); border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.official-link:hover { color: var(--navy); }
.official-link .arrow { transition: transform .3s var(--ease); display: inline-block; }
.official-link:hover .arrow { transform: translateX(5px); }
html[dir="rtl"] .official-link .arrow { transform: scaleX(-1); }
html[dir="rtl"] .official-link:hover .arrow { transform: scaleX(-1) translateX(5px); }

/* ---------- Bandeau défilant ---------- */
.ticker { background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600; text-align: center; }
.ticker p { margin: 0; padding-block: .45rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(1, 38, 80, .12); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; transition: min-height .3s; }
.scrolled .header-inner { min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; min-width: 0; color: var(--navy-2); text-decoration: none; padding-block: .45rem; }
.brand:hover { color: var(--navy-2); }
.brand-mark { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; padding-inline-start: .8rem; border-inline-start: 4px solid var(--green); }
.brand-mark b { font: 800 1.05rem/1.2 var(--head); letter-spacing: .025em; color: var(--navy-2); white-space: nowrap; }
.brand-mark small { font: 600 .78rem/1.3 var(--sans); color: var(--muted); }
@media (min-width: 1241px) { .brand-mark small { display: none; } }
html[lang="ar"] .brand-mark b { letter-spacing: 0; }
.footer-logo { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-bottom: 2.4rem; margin-bottom: 2.6rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-logo a { text-decoration: none !important; display: block; }
/* Logo officiel (image) : zone de protection = hauteur du bandeau du logo (≈ 7,5 % de sa largeur), largeur ≥ 200 px. */
.logo-img { display: block; width: 100%; height: auto; }
.logo-footer { width: 260px; max-width: 100%; padding: 20px 0; }
.footer-tag { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, .8); }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.nav-main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: .5rem 0; display: inline-block; white-space: nowrap; position: relative; }
.nav-main a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: .2rem; height: 2px; width: 0; background: var(--green); transition: width .3s var(--ease); }
.nav-main a:hover, .nav-main a.active { color: var(--navy-2); }
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }
.nav-side { display: flex; align-items: center; gap: .9rem; }
.nav-side .btn { white-space: nowrap; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { color: var(--navy-2); text-decoration: none; font-weight: 700; font-size: .8rem; padding: .5rem .6rem; min-width: 44px; text-align: center; border-radius: 999px; line-height: 1.2; }
.lang a:hover { background: var(--cream); color: var(--navy-2); }
.lang a[aria-current] { background: var(--navy-2); color: #fff; }
.lang a[lang="ar"] { font-family: Cairo, var(--arabic); font-size: .9rem; }
.nav-toggle { display: none; flex: none; margin-inline-start: auto; min-height: 44px; padding: .5rem 1rem; background: #fff; color: var(--navy-2); border: 1px solid var(--navy-2); border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; }

/* ---------- Annonce ---------- */
.announcement { margin: 0; background: var(--cream); color: var(--navy-2); padding: .8rem 0; font-weight: 700; border-bottom: 3px solid var(--green); }

/* ---------- Héro ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 1.5rem 0 2rem; background: var(--navy-2); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 1100px; aspect-ratio: 2; inset-inline-end: -330px; bottom: -60px; background: var(--arcs) no-repeat center / contain; pointer-events: none; }
.hero-context { display: flex; align-items: center; justify-content: space-between; gap: .5rem 2rem; margin-bottom: .75rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 3rem; align-items: center; animation: rise .6s var(--ease) both; }
.hero-verse-ar { font: 400 clamp(1.1rem, 1.65vw, 1.5rem)/1.8 Amiri, var(--arabic); color: #fff; margin: 0; }
html[dir="ltr"] .hero-verse-ar { text-align: left; }
.hero-verse { font: italic 400 clamp(.95rem, 1.3vw, 1.05rem)/1.6 var(--sans); color: rgba(255, 255, 255, .88); max-width: 58ch; margin: .2rem 0 1.2rem; }
.authority { display: inline-flex; align-items: center; gap: .6rem; font: 700 .85rem/1.3 var(--head); letter-spacing: .04em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; padding: .45rem 1rem; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; }
html[lang="ar"] .authority { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.authority .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); flex: none; }
.hero .authority { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0; border: 0; border-radius: 0; font-size: .75rem; letter-spacing: .03em; max-width: 46ch; }
/* Logo négatif : posé sur le même Bleu Patrimoine que son fichier ; marges ≥ zone de protection X */
.hero-logo { margin: 0; padding-block: 24px; width: 320px; max-width: calc(100% - 48px); } /* zone de protection X ≈ 7,5 % de la largeur du logo */
.hero-logo img { display: block; width: 100%; height: auto; }
.hero-date { font: 400 clamp(2rem, 3.3vw, 3rem)/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #fff; margin: 0 0 .75rem; }
.hero-date sup { font-size: .45em; vertical-align: .9em; text-transform: lowercase; margin-inline-start: .04em; }
.hero-lead { font-size: 1.0625rem; max-width: 48ch; color: #fff; margin-bottom: 1.25rem; }
.hero-meta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .9rem 1.5rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .3); }
.meta-item { display: flex; flex-direction: column; gap: .25rem; min-width: 0; margin: 0; }
.meta-item dt { font: 700 .72rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }
html[lang="ar"] .meta-item dt { letter-spacing: 0; font-size: .85rem; }
.meta-item dd { margin: 0; font-weight: 600; font-size: .9375rem; }
.meta-hl { grid-column: 1 / -1; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin: 0; }
.hero-poster { position: relative; margin: 0; justify-self: center; text-align: center; max-width: 310px; width: 100%; }
.frame { position: relative; display: block; padding: 8px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); }
.frame img { border-radius: 4px; width: 100%; }
.hero-poster figcaption { position: relative; margin-top: 1rem; font: 700 .8rem/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
html[lang="ar"] .hero-poster figcaption { letter-spacing: 0; font-size: .9rem; }
/* Mouvement seul, sans opacité : le texte du haut de page reste lisible même si l'animation ne démarre pas. */
@keyframes rise { from { transform: translateY(18px); } }

.countdown { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-radius: var(--radius); background: var(--navy); }
.countdown[hidden] { display: none; }
.cd-title { margin: 0; font-weight: 600; font-size: .95rem; }
.cd-grid { display: flex; gap: .7rem; direction: ltr; }
.cd-grid div { min-width: 72px; text-align: center; padding: .2rem .4rem; }
.cd-grid span { display: block; font: 400 2rem/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.cd-grid small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .8); margin-top: .2rem; }
html[lang="ar"] .cd-grid small { letter-spacing: 0; font-size: .8rem; }

/* ---------- Chiffres ---------- */
.stats { background: #fff; color: var(--ink); padding: 2.6rem 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { margin: 0; text-align: center; padding: .3rem .5rem; border-inline-end: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-n { display: block; font: 400 clamp(2.6rem, 5vw, 3.8rem)/1 var(--display); color: var(--navy-2); }
.stat-l { display: block; font-size: .9rem; color: var(--muted); margin-top: .4rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section-alt, .section-tint { background: #fff; }
.section-dark { background: var(--arcs) no-repeat right -240px top -120px / 900px auto, var(--navy); color: #fff; }
html[dir="rtl"] .section-dark { background-position: left -240px top -120px, 0 0; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark a { color: #fff; }
.section-blue { background: var(--arcs) no-repeat left -260px bottom -160px / 860px auto, var(--navy-2); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-blue .reg-intro a { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head .lead { max-width: 46ch; margin: 0; }
.event-date { margin-bottom: .75rem; color: var(--muted); font-weight: 600; }
.lead { color: var(--muted); font-size: 1.05rem; }
.lead-light { color: rgba(255, 255, 255, .86); font-size: 1.08rem; }
.note { color: var(--muted); border-inline-start: 1px solid var(--sand); padding-inline-start: 1rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.two-col p { max-width: var(--measure); }

/* À propos : publics */
.pillars { display: grid; }
.pillars-title { font: 700 1.35rem var(--serif); color: var(--navy-2); margin: 0 0 .3rem; }
.pillar { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: 0; }
.pillar-ico { flex: none; width: 40px; height: 48px; display: grid; place-items: center; }
.pillar-ico svg, .card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--navy-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h4 { margin: 0 0 .2rem; color: var(--navy-2); }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Programme */
.days { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .6rem; }
.day small { overflow-wrap: anywhere; hyphens: auto; }
.day { border: 1px solid var(--cream-2); background: var(--paper); border-radius: 12px; padding: .85rem .3rem; text-align: center; position: relative; }
.day-w { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.day b { display: block; font: 400 2rem/1.1 var(--display); color: var(--blue); }
.day small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.day-on { background: var(--navy-2); border-color: transparent; box-shadow: var(--shadow); }
.day-on:hover { background: var(--navy); }
.day-on .day-w, .day-on small { color: rgba(255, 255, 255, .85); }
.day-on b { color: #fff; }
html[lang="ar"] .day-w { letter-spacing: 0; }
.prog-card { background: var(--paper); border-radius: var(--radius); padding: 1.2rem 2rem 1.4rem; box-shadow: var(--shadow); }
.programme { list-style: none; margin: 0 0 1rem; padding: 0; }
.session { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.session:first-child { border-top: 0; }
.session-when { margin: 0; font-weight: 700; color: var(--navy); }
.session-when time { display: block; text-transform: capitalize; }
.session-when span { display: block; color: var(--navy-2); font: 400 1.5rem/1.3 var(--display); }
.session-body h3 { margin-bottom: .4rem; font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--serif); color: var(--navy-2); }
.session .meta { margin: 0 0 .75rem; display: grid; gap: .35rem; }
.session .meta div { display: flex; flex-wrap: wrap; gap: .15rem .5rem; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.session .meta dt { color: var(--muted); font-weight: 600; }
.session .meta dt::after { content: " :"; }
.session .meta dd { margin: 0; }
.session .actions { margin: .8rem 0 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.session.is-cancelled h3 { text-decoration: line-through; }
.prog-card .note { margin: 0; }

/* Intervenants : cartes (accueil) et page dédiée */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.6rem; }
.person { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.person-link { display: block; text-decoration: none; color: inherit; }
.person-photo { display: block; aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; }
.person-photo img, .person-photo .monogram { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.person-link:hover .person-photo img { transform: scale(1.04); }
.monogram { display: grid; place-items: center; background: var(--navy-2); color: #fff; font: 800 2.6rem/1 var(--head); letter-spacing: .04em; }
.person-body { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem 0; border-top: 4px solid var(--green-2); }
.person-name { font: 700 1.15rem/1.25 var(--head); color: var(--navy-2); }
.person-role { font-size: .92rem; font-weight: 600; color: var(--ink); }
.person-place { font-size: .85rem; color: var(--muted); margin: 0; }
.person-bio { font-size: .92rem; color: var(--muted); margin: .6rem 1.2rem 0; }
.person-more { margin: auto 1.2rem 1.1rem; padding-top: .8rem; font-size: .92rem; }
.draft-tag { margin: .5rem 1.2rem 0; font-weight: 700; color: var(--red); font-size: .85rem; }
.credit { font-size: .8rem; color: var(--muted); }
.crumbs { margin-bottom: 1.4rem; }
.link-back { font-weight: 600; }
.link-back::before { content: "← "; }
html[dir="rtl"] .link-back::before { content: "→ "; }
.speaker-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.speaker-photo { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-bottom: 5px solid var(--green-2); }
.speaker-photo img, .speaker-photo .monogram { width: 100%; height: 100%; object-fit: cover; }
.speaker-head h1 { margin-bottom: .3rem; }
.speaker-role { font-size: 1.1rem; font-weight: 600; margin: 0 0 .3rem; }
.speaker-bio { font-size: 1.05rem; }
.speaker .programme { background: #fff; border-radius: var(--radius); padding: .4rem 1.6rem; box-shadow: var(--shadow); }
@media (max-width: 640px) { .speaker-head { grid-template-columns: 1fr; gap: 1.2rem; } .speaker-photo { max-width: 220px; } }

/* Ambassadeurs : carte du monde et fiches */
.section-amb { background: var(--cream); }
.amb-map { margin: 0 0 2.4rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(.8rem, 2vw, 1.6rem); }
.map-box { position: relative; }
.map-box img { width: 100%; height: auto; }
.map-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-on { fill: var(--navy-2); opacity: .9; stroke: #fff; stroke-width: .6; }
.map-halo { fill: var(--green-2); opacity: .2; }
.map-pin { fill: var(--green); stroke: #fff; stroke-width: 2.2; }
.map-n { font: 800 13px var(--head); fill: var(--navy); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.map-over a:focus-visible { outline: none; }
.map-over a:focus-visible .map-pin, .map-over a:hover .map-pin { fill: var(--navy); }
.amb-map figcaption { margin-top: .9rem; font-size: .92rem; color: var(--muted); }
.amb-map figcaption b { color: var(--navy-2); }
.ambs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.2rem; }
.session-body h3 a { color: inherit; text-decoration: none; }
.session-body h3 a:hover, .session-body h3 a:focus-visible { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.day-link { display: block; color: inherit; text-decoration: none; border-radius: inherit; }
.day-link:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }
/* Page d'un événement */
.event h1 { margin: .2rem 0 .6rem; }
.event .lead { color: var(--muted); font-size: 1.1rem; }
.event-cancelled { background: #fdecea; color: var(--red); font-weight: 700; padding: .7rem 1rem; border-radius: 8px; }
.event.is-cancelled h1 { text-decoration: line-through; }
.event-desc { margin: 1.6rem 0; font-size: 1.05rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0; }
.people-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.event-others { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.event-others a { display: block; background: #fff; border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
/* Archives et médias */
.media-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; }
.media-nav a { padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy-2); }
.media-nav a:hover, .media-nav a:focus-visible { border-color: var(--navy-2); }
.edition { margin-top: 3rem; scroll-margin-top: 6rem; }
.edition h2 { border-bottom: 3px solid var(--green-2); padding-bottom: .4rem; display: inline-block; }
.edition h3, .latest-t { font-size: 1.1rem; margin: 1.6rem 0 .8rem; color: var(--navy-2); }
.media-empty { background: #fff; border: 1px dashed #c7bfae; border-radius: 14px; padding: 1.2rem 1.4rem; color: var(--muted); max-width: 70ch; }
.gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .7rem; }
.gal-item a { display: block; border-radius: 12px; overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gal-item a:hover img, .gal-item a:focus-visible img { transform: scale(1.04); }
.gal-item a:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; }
.vids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.2rem; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-decoration: none; }
.vid-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-ph { position: absolute; inset: 0; background: var(--arcs) right center / auto 140% no-repeat, linear-gradient(135deg, var(--navy-2), var(--navy)); }
.vid-btn { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); padding-inline-start: 5px; }
.vid-play:hover .vid-btn, .vid-play:focus-visible .vid-btn { transform: scale(1.08); }
.vid-play:focus-visible { outline: 3px solid var(--green-2); outline-offset: -3px; }
.vid-title { font-weight: 700; margin: .6rem 0 .2rem; color: var(--navy-2); }
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(1, 20, 45, .92); }
.lb-fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4rem 1.5rem; gap: .8rem; }
.lb-img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 6px; }
.lb-cap { color: #fff; text-align: center; max-width: 70ch; font-size: .95rem; }
.lb-btn { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .25); outline: 2px solid #fff; }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev { top: 50%; inset-inline-start: 1rem; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-end: 1rem; transform: translateY(-50%); }
[dir="rtl"] .lb-prev, [dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }
@media (max-width: 640px) { .lb-fig { padding: 3.5rem .5rem 1rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } [dir="rtl"] .lb-prev, [dir="rtl"] .lb-next { transform: scaleX(-1); } }
.see-all { margin: 1.6rem 0 0; text-align: center; }
.page .section-head { margin-bottom: 1.6rem; }
.page .section-head h1 { margin: .3rem 0 0; }
.amb-anchor { position: absolute; top: 0; scroll-margin-top: 6rem; }
.amb { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; border-top: 4px solid var(--green-2); scroll-margin-top: 6rem; }
.amb:target { box-shadow: 0 0 0 3px var(--navy-2), var(--shadow); }
.amb-head { display: flex; gap: 1rem; align-items: center; }
.amb-photo { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--green-2); }
.amb-photo img, .amb-photo .monogram { width: 100%; height: 100%; object-fit: cover; font-size: 1.5rem; }
.amb-name { margin: 0; font: 700 1.1rem/1.25 var(--head); color: var(--navy-2); }
.amb-role { margin: .1rem 0 0; font-size: .9rem; font-weight: 600; }
.amb-place { margin: .15rem 0 0; font-size: .88rem; color: var(--muted); }
.amb-place::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--green); margin-inline-end: .4em; vertical-align: .05em; }
.amb-msg { margin: 1rem 0 0; padding-inline-start: 1rem; border-inline-start: 3px solid var(--sand); }
.amb-msg p { margin: 0; font-style: italic; color: var(--ink); }
html[lang="ar"] .amb-msg p { font-style: normal; }
.amb .credit { margin: .7rem 0 0; }
.amb .draft-tag { margin: .6rem 0 0; }

/* Patrimoine */
.her-head { max-width: 46rem; margin-bottom: 2rem; }
.her-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; margin-bottom: 3rem; }
.her-text h3 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--serif); color: #fff; }
.illustration { margin: 0; }
.illustration img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-lg); }
.illustration figcaption { color: rgba(255, 255, 255, .8); font-size: .9rem; margin-top: .9rem; }
.section-dark .illustration .credit, .section-dark .illustration .credit a { color: rgba(255, 255, 255, .78); }
.illustration .credit { display: block; margin-top: .2rem; }
.chrono-title { font: 700 1.3rem var(--serif); color: #fff !important; }
.chronology { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 980px) { .chronology { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .chronology { grid-template-columns: 1fr; } }
.chronology li { position: relative; padding: 1.3rem 1.3rem 1.2rem; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .3s, transform .3s var(--ease), background .3s; }
.chronology li::before { content: ""; position: absolute; top: 0; inset-inline: 1.3rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--green-2); }
.chronology li:hover { border-color: rgba(84, 169, 50, .6); background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.chronology .year { display: block; font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); color: var(--green-2); margin-bottom: .4rem; }
.chrono-text { color: rgba(255, 255, 255, .86); font-size: .96rem; }
.verse { margin: 3.5rem auto 0; max-width: 860px; text-align: center; padding: 0; background: none; color: #fff; }
.verse blockquote { margin: 0; }
.verse-ar { font: 400 clamp(1.6rem, 3.5vw, 2.6rem)/1.9 Amiri, var(--arabic); color: #fff; margin: 0 0 .6rem; }
.verse-tr { font: italic 400 1.1rem/1.6 var(--sans); margin: 0 auto; color: rgba(255, 255, 255, .88); max-width: 60ch; }
.verse figcaption { color: rgba(255, 255, 255, .7); font-size: .85rem; margin-top: .8rem; }
.documents { list-style: none; padding: 0; }

/* Médias */
.section-film { background: linear-gradient(180deg, var(--cream), #fff); }
.media-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.film { margin: 0; }
.film figcaption { margin-top: .8rem; color: var(--muted); font-size: .92rem; }
.film-frame { position: relative; background: #000; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; width: 100%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, rgba(1, 38, 80, .1), rgba(1, 38, 80, .6)); font: inherit; }
.film-play[hidden] { display: none; }
.fp-ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid #fff; top: calc(50% - 60px - 18px); left: calc(50% - 60px); }
.fp-ico { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; padding-inline-start: 6px; background: var(--navy-2); color: #fff; box-shadow: 0 15px 40px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); direction: ltr; }
.film-play:hover .fp-ico, .film-play:focus-visible .fp-ico { transform: scale(1.08); }
.fp-txt { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
html[lang="ar"] .fp-txt { letter-spacing: 0; font-size: 1rem; }

/* Cartes */
.card { background: #fff; border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--navy-2); margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-thumb { width: 96px; height: auto; border-radius: 8px; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.card-ico { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem; }
.card-ico svg { width: 32px; height: 32px; stroke: var(--green); stroke-width: 1.7; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }

/* ---------- Partenaires ---------- */
.partner-group { margin-bottom: 2.2rem; }
.partner-tier { font: 700 .85rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-2); margin: 0 0 1rem; display: flex; align-items: center; gap: .8rem; }
html[lang="ar"] .partner-tier { letter-spacing: 0; font-size: 1rem; }
.partner-tier::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); gap: 1rem; }
.partners-principal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.partner { display: flex; flex-direction: column; gap: .5rem; }
.partner > a, .partner-box { display: grid; place-items: center; min-height: 120px; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(11, 42, 94, .06); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.partners-principal .partner > a, .partners-principal .partner-box { min-height: 180px; border-color: var(--sand); }
.partner > a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy-2); }
.partner img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.partners-principal .partner img { max-height: 120px; }
.partner-name { font: 700 1.05rem/1.3 var(--sans); color: var(--navy); text-align: center; }
.partner-desc { font-size: .9rem; color: var(--muted); text-align: center; }
.partner-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; padding: 1.8rem 2rem; border-radius: var(--radius); background: var(--navy-2); color: #fff; box-shadow: var(--shadow); }
.partner-cta h3 { color: #fff; margin-bottom: .3em; }
.partner-cta p { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .88); }
.partner-cta :focus-visible { outline-color: #fff; }
@media (max-width: 640px) { .partner-cta { padding: 1.4rem; } .partner-cta .btn { width: 100%; justify-content: center; } }

/* Infos pratiques et FAQ */
.venue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.venue-info { background: #fff; border-radius: 24px; padding: 1.6rem 2rem; box-shadow: var(--shadow); border-top: 5px solid var(--green-2); }
.facts { margin: 0; }
.facts div { padding: .8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--navy-2); font-family: var(--head); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; padding-top: .2rem; }
html[lang="ar"] .facts dt { letter-spacing: 0; font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }
.facts-list dd { font-weight: 500; }
.facts-compact div { grid-template-columns: 7rem 1fr; }
.faq h3 { font: 700 1.5rem var(--serif); color: var(--navy-2); }
.faq details { border-bottom: 1px solid var(--cream-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; min-height: 48px; font-weight: 700; color: var(--navy-2); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy-2); font-size: 1.2rem; box-shadow: 0 2px 8px rgba(7, 26, 59, .08); transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--navy-2); color: #fff; }
.faq details p { color: var(--muted); margin: 0; padding-bottom: 1.1rem; }

/* Inscription */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "intro form" "recover form"; grid-template-rows: min-content 1fr; gap: 1.5rem 3.5rem; align-items: start; }
.reg-intro { grid-area: intro; }
.reg-intro .facts { margin-bottom: 0; }
.reg-intro p { color: rgba(255, 255, 255, .88); }
.section-blue .facts div { border-color: rgba(255, 255, 255, .15); }
.section-blue .facts dt { color: #fff; opacity: .85; }
.section-blue .facts dd { color: #fff; }
.reg-box { grid-area: form; min-width: 0; background: #fff; color: var(--ink); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-lg); }
.reg-box a { color: var(--navy-2); }
.reg-box :focus-visible, .recover input:focus-visible { outline-color: var(--blue); }
.recover { grid-area: recover; min-width: 0; border-block: 1px solid rgba(255, 255, 255, .3); }
.recover p { color: rgba(255, 255, 255, .88); }
.recover a { color: #fff; }
.recover summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; min-height: 48px; list-style: none; cursor: pointer; font-weight: 700; }
.recover summary::-webkit-details-marker { display: none; }
.recover summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.recover[open] summary::after { content: "−"; }
.recover-body { padding-block: .25rem 1rem; }
.recover [data-recover-status]:empty { margin: 0; }
.recover .inline-form input { border-color: rgba(255, 255, 255, .5); }
.seats { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy-2); background: #eaf3e6; padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.seats::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); }
.state { font-weight: 700; font-size: 1.1rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.field .req { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input:not([type=radio]):not([type=range]):not([type=file]), .field select, .field textarea, .inline-form input, .newsletter input {
  width: 100%; min-height: 48px; padding: .7rem .95rem; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #8f887a; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2, 80, 157, .14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio { display: flex !important; align-items: center; gap: .6rem; font-weight: 500 !important; min-height: 44px; margin: 0 !important; }
.radio input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choices legend { grid-column: 1 / -1; }
.choices .radio { padding: .7rem .9rem; border: 2px solid var(--cream-2); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.choices .radio:hover { border-color: var(--navy-2); }
.choices .radio:has(input:checked) { border-color: var(--navy-2); background: #eef3fa; font-weight: 700 !important; }
.hint { font-size: .88rem; color: var(--muted); margin: .3rem 0 0; }
.err { color: var(--red); font-weight: 600; font-size: .95rem; margin: .3rem 0 0; }
.privacy-box { font-size: .9rem; background: var(--cream); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.privacy-box p:last-child { margin: 0; }
.reg-result { outline: none; }
.result { border-inline-start: 4px solid var(--green-2); background: #f2f8ef; border-radius: 14px; padding: 1.1rem 1.3rem; }
.result.is-error { border-color: var(--red); background: #fdf3f2; }
.result.is-pending { border-color: var(--sand); background: #faf6ee; }
.result h3 { margin-bottom: .4rem; }
.result .code { font: 700 1.15rem ui-monospace, Menlo, monospace; letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; }
.result .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 14rem; }

/* Affiche personnalisée */
.section-maker { background: var(--cream); overflow-x: clip; }
.maker { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 4rem; align-items: center; }
.drop { padding: 1.1rem 1.2rem; border: 2px dashed var(--navy-2); border-radius: var(--radius); background: #fff; transition: background .2s; }
.drop:hover { background: #eef3fa; }
.drop label { display: flex; align-items: center; gap: .8rem; }
.drop-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--navy-2); color: #fff; flex: none; }
.drop input[type=file] { font: inherit; font-size: .9rem; margin-top: .4rem; max-width: 100%; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg legend { width: 100%; }
.seg .radio { padding: .3rem .9rem; border: 1.5px solid #ddd5c4; border-radius: 999px; background: #fff; }
.seg .radio:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2, 80, 157, .12); font-weight: 700 !important; }
input[type=range] { width: 100%; min-height: 44px; accent-color: var(--navy-2); }
.maker-preview { position: relative; }
.maker-preview::before { content: ""; position: absolute; inset: -18px; border-radius: 34px; background: var(--navy-2); opacity: .15; filter: blur(30px); z-index: -1; }
.maker-preview canvas { width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); touch-action: none; cursor: grab; background: var(--navy-2); }
.maker-preview canvas:active { cursor: grabbing; }

/* Contact */
/* Formulaire « Écrire au comité » */
.contact-form-box { margin-top: 2rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.3rem, 4vw, 2.2rem); border-top: 6px solid var(--green); max-width: 860px; }
.contact-form-box:focus { outline: none; }
.contact-form-box h3 { font-family: var(--head); color: var(--blue); font-size: 1.45rem; margin: 0 0 .3rem; }
.contact-form-box .lead-sm { color: var(--muted); margin: 0 0 1.3rem; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.ct-status { margin: .9rem 0 0; font-weight: 600; }
.ct-status:empty { display: none; }
.ct-ok { color: #0a6b33; background: #e9f5ec; border-left: 4px solid var(--green); padding: .7rem .9rem; border-radius: 4px; }
.ct-err { color: var(--red); }
@media (max-width: 640px) { .contact-form-box .field-row { grid-template-columns: 1fr; gap: 0; } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.contact-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem; border-radius: 20px; background: #fff; text-decoration: none; box-shadow: var(--shadow); border: 1px solid transparent; transition: transform .3s var(--ease), border-color .3s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--navy-2); }
.cc-label { font: 800 .74rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--navy-2); }
html[lang="ar"] .cc-label { letter-spacing: 0; font-size: .9rem; }
.cc-value { font-size: 1.05rem; font-weight: 700; color: var(--navy-2); word-break: break-word; text-align: start; }

/* Pied de page */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 4rem 0 1.5rem; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 3rem; }
.ft-h { color: var(--green-2); font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: .9rem; }
html[lang="ar"] .ft-h { letter-spacing: 0; font-size: .95rem; }
.ft-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.newsletter { display: flex; gap: .4rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 4px; }
.newsletter input { flex: 1 1 10rem; min-width: 0; background: transparent !important; border: 0 !important; color: #fff !important; border-radius: 999px !important; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .65); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; }
.footer-bottom p { margin: 0; }
.to-top { position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-2); color: #fff; font-size: 1.2rem; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--navy); }
.progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; z-index: 150; background: var(--green); pointer-events: none; }

/* Pages annexes */
.page { padding-top: 1rem; }
.page h1 { margin-top: 0; color: var(--navy-2); }
.page h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2rem; }
.page .authority { color: var(--navy-2); border-color: var(--line); }
.page .facts { background: #fff; border-radius: 18px; padding: .4rem 1.4rem; box-shadow: var(--shadow); }
.page .programme { background: #fff; border-radius: 18px; padding: .4rem 1.6rem; box-shadow: var(--shadow); }
.credits { padding-inline-start: 1.2rem; }
.credits li { margin-bottom: 1rem; }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1380px) { .nav ul { gap: 1rem; } .nav-main a { font-size: .86rem; } }
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 1rem; margin: 0; padding: 1rem 1.25rem 1.5rem; max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-bottom: 3px solid var(--green); box-shadow: 0 16px 30px rgba(1, 38, 80, .12); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav-main a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-main a::after { display: none; }
  .nav-side { flex-wrap: wrap; }
  html:not(.js) .nav { position: static; padding: 0 0 1rem; border: 0; max-height: none; width: 100%; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
}
@media (max-width: 980px) {
  .hero-context { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; }
  .hero-grid, .two-col, .reg-grid, .media-grid, .her-grid, .venue, .maker, .footer-grid { grid-template-columns: 1fr; }
  .reg-grid { grid-template-areas: "intro" "form" "recover"; grid-template-rows: auto; }
  .two-col, .reg-grid, .maker { gap: 2.5rem; }
  .hero-poster { max-width: 240px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border: 0; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr 1fr; }
  .maker-preview { max-width: 380px; width: 100%; margin-inline: auto; }
  .footer-grid { gap: 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 2rem); }
  .section { padding: 3rem 0; }
  .header-inner { gap: .75rem; min-height: 64px; }
  .brand-mark small { display: none; }
  .hero { padding: 1.25rem 0 1.5rem; }
  .hero-context { gap: .5rem; margin-bottom: .25rem; }
  .hero-grid { gap: 2rem; }
  .hero-logo { width: 240px; max-width: calc(100% - 36px); padding-block: 18px; }
  .hero-poster { max-width: 220px; }
  .hero-verse { display: none; }
  .hero-verse-ar { font-size: 1.1rem; }
  .hero .authority { font-size: .6875rem; max-width: none; }
  .hero-lead { font-size: 1rem; margin-bottom: 1rem; }
  .hero-meta { gap: .9rem 1rem; margin-top: 1rem; }
  .hero-meta dd { font-size: .875rem; }
  .hero-cta { gap: .4rem; }
  .hero-cta .btn-gold { width: 100%; }
  .hero-cta .btn-ghost { width: 100%; min-height: 44px; border: 0; background: transparent; padding: .5rem 1rem; }
  .hero-cta .btn-ghost:hover { background: #fff; }
  .countdown { justify-content: center; text-align: center; padding: 1rem; }
  .cd-grid { gap: .75rem; }
  .cd-grid div { min-width: 64px; }
  .cd-grid span { font-size: 1.5rem; }
  .facts div, .facts-compact div { grid-template-columns: 1fr; gap: .1rem; }
  .reg-intro .facts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; }
  .reg-intro .facts div { border: 0; padding-block: 0; }
  .session { grid-template-columns: 1fr; gap: .4rem; }
  .prog-card { padding: 1rem 1.2rem; }
  .field-row, .choices { grid-template-columns: 1fr; gap: 0; }
  .choices { gap: .5rem; }
  .reg-box, .venue-info { padding: 1.3rem; }
  .cards { grid-template-columns: 1fr; }
  .brand-mark b { font-size: 1rem; }
  .ticker { font-size: .6875rem; }
}

/* ---------- Impression (programme) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .skip, .ticker, .to-top, .progress { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page .programme, .page .facts { box-shadow: none; padding: 0; }
  .session { break-inside: avoid; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Bandeau de consentement (affiché seulement si un outil de mesure est activé) ---------- */
.consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 80; background: var(--navy); color: #fff; border-top: 3px solid var(--green-2); box-shadow: 0 -12px 30px rgba(1, 38, 80, .25); }
.consent[hidden] { display: none; }
.consent-in { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.6rem; flex-wrap: wrap; padding-block: 1rem; }
.consent p { margin: 0; max-width: 78ch; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.consent b { color: var(--green-2); }
.consent a { color: #fff; }
.consent-b { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent-btn { min-width: 9.5rem; justify-content: center; background: #fff; color: var(--navy); border: 2px solid #fff; }
.consent-btn:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.consent :focus-visible { outline-color: #fff; }
@media (max-width: 640px) { .consent-b { width: 100%; } .consent-btn { flex: 1; min-width: 0; } }

/* ---------- Assistant automatique ---------- */
.chat[hidden], .chat-panel[hidden], .chat-fab[hidden], .chat-sugg[hidden] { display: none; }
.chat { position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 70; font-size: 1rem; }
.has-chat .to-top { bottom: 5.6rem; }
.chat:has(.chat-panel:not([hidden])) { z-index: 160; } /* fenêtre ouverte : au-dessus de l'en-tête et du bandeau */
.chat-fab { display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid #fff; background: var(--navy-2); color: #fff; font: 700 1rem/1.2 var(--sans); cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.chat-panel { width: min(400px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 3rem)); display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: .4rem; padding: .8rem .8rem .8rem 1.1rem; background: var(--navy-2); color: #fff; border-bottom: 3px solid var(--green-2); }
.chat-head h2 { flex: 1; margin: 0; font: 700 1.02rem/1.3 var(--sans); color: #fff; }
.chat-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-x:hover { background: rgba(255, 255, 255, .22); }
.chat-x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; }
.chat-msg p { margin: 0; padding: .65rem .9rem; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.55; }
.chat-assistant p { background: #fff; border: 1px solid var(--line); color: var(--ink); border-end-start-radius: 4px; }
.chat-user { align-self: flex-end; }
.chat-user p { background: var(--blue); color: #fff; border-end-end-radius: 4px; }
.chat-msg.pending p { color: var(--muted); font-style: italic; }
.chat-msg.chat-err p { border-color: var(--red); color: var(--red); }
.chat-sugg { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chat-sugg button { border: 1px solid var(--navy-2); background: #fff; color: var(--navy-2); border-radius: 999px; padding: .4rem .75rem; font: 600 .85rem/1.3 var(--sans); cursor: pointer; min-height: 36px; }
.chat-sugg button:hover { background: var(--navy-2); color: #fff; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: .95rem; }
.chat-form textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.chat-form .btn { min-height: 44px; padding-inline: 1rem; }
.chat-form.busy .btn { opacity: .6; pointer-events: none; }
.chat-note { margin: 0; padding: .5rem 1rem .7rem; font-size: .75rem; line-height: 1.45; color: var(--muted); background: #fff; }
@media (max-width: 640px) {
  .chat { bottom: 1rem; inset-inline-end: 1rem; }
  .chat-fab { padding: .65rem 1rem; }
  .chat:has(.chat-panel:not([hidden])) { inset: 0; }
  .chat-panel { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-fab { transition: none; } }
