/* IndabaX Chad 2026 – Amdjarass
   Palette : nuit de l'Ennedi, sable, ocre et brique des cases du Village touristique, or. */
@font-face { font-family: "Noto Naskh Arabic"; src: url("fonts/noto-naskh-arabic-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
:root {
  --nuit: #14183d; --nuit-2: #1f2560; --sable: #f6ecdc; --sable-2: #ecdcc2;
  --ocre: #c8662b; --brique: #a8352a; --or: #f2b134; --oasis: #2f7d5b;
  --encre: #1f1b17; --doux: #5c544b; --blanc: #fffdf9;
  --r: 14px; --ombre: 0 10px 30px -12px rgba(20, 24, 61, .35);
  --police: "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--police); color: var(--encre); background: var(--blanc); }
html[lang="ar"] body { font-family: var(--police-ar); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brique); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--nuit); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
sup { font-size: .65em; line-height: 0; }
.enveloppe { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.etroit { width: min(820px, 100% - 2.5rem); }
.saut { position: fixed; top: .5rem; inset-inline-start: .5rem; background: var(--or); color: var(--nuit); padding: .6em 1em; z-index: 99; transform: translateY(-200%); }
.saut:focus { transform: none; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.btn-or { background: var(--or); color: var(--nuit); }
.btn-or:hover { background: #ffc24d; }
.btn-clair { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-contour { background: transparent; border-color: var(--nuit); color: var(--nuit); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-petit { padding: .55em 1.1em; font-size: .92rem; }
.btn-large { width: 100%; padding: 1.05em; font-size: 1.1rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.lien { background: none; border: 0; color: var(--brique); text-decoration: underline; cursor: pointer; font: inherit; padding: .5em 0; }

/* ---------- en-tête ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.entete.plein { background: rgba(20, 24, 61, .94); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.entete-in { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.marque { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; margin-inline-end: auto; }
.marque img { border-radius: 50%; background: #fff; }
.marque span { display: flex; flex-direction: column; line-height: 1.1; }
.marque small { color: var(--or); font-size: .78rem; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a { color: #fff; text-decoration: none; font-size: .95rem; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--or); }
.nav a.btn { color: var(--nuit); background: var(--or); opacity: 1; }
.langues { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.langues button { background: none; border: 0; color: #fff; padding: .35em .7em; font: 600 .82rem/1 var(--police); cursor: pointer; }
.langues button[lang="ar"] { font-family: var(--police-ar); font-size: .95rem; }
.langues button[aria-pressed="true"] { background: var(--or); color: var(--nuit); }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 9px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------- héros ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; padding: 128px 0 96px; isolation: isolate; }
.hero-fond, .hero-fond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-fond img { animation: zoom 30s ease-out both; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-voile { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(100deg, rgba(20,24,61,.96) 0%, rgba(20,24,61,.85) 42%, rgba(20,24,61,.45) 75%, rgba(168,53,42,.35) 100%),
              linear-gradient(0deg, rgba(20,24,61,.9), transparent 40%); }
html[dir="rtl"] .hero-voile { background: linear-gradient(260deg, rgba(20,24,61,.96) 0%, rgba(20,24,61,.85) 42%, rgba(20,24,61,.45) 75%, rgba(168,53,42,.35) 100%), linear-gradient(0deg, rgba(20,24,61,.9), transparent 40%); }
.reseau { position: absolute; top: 64px; bottom: 0; right: 0; width: min(50vw, 800px); height: calc(100% - 64px); z-index: -1; opacity: .75; pointer-events: none; direction: ltr; overflow: visible; }
html[dir="rtl"] .reseau { right: auto; left: 0; }
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; }
  .reseau, html[dir="rtl"] .reseau { position: relative; order: 2; top: auto; left: auto; right: auto; width: min(100%, 560px); height: auto; aspect-ratio: 1000 / 690; margin: 1.6rem auto 0; opacity: .95; z-index: 0; }
}
.hero-in { max-width: none; width: min(1360px, 100% - 2.5rem); }
.surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-size: .95rem; letter-spacing: .02em; opacity: .95; }
.pastille { background: var(--brique); padding: .25em .8em; border-radius: 999px; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 8vw, 5.8rem); font-weight: 800; margin: .2em 0 .25em; }
.h1-b { color: var(--or); }
.h1-c { display: block; font-size: .36em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: .45em; color: #f3d9b8; }
html[lang="ar"] .h1-c { letter-spacing: 0; }
.theme { font-size: clamp(1.1rem, 2.2vw, 1.45rem); max-width: 40ch; opacity: .95; }
.theme em { color: var(--or); font-style: normal; }
.hero-infos { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero-infos li { display: flex; align-items: center; gap: .5rem; }
.hero-infos li:nth-child(3) { flex-basis: 100%; }
.hero-infos svg { width: 22px; height: 22px; fill: none; stroke: var(--or); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.compte { display: flex; gap: .7rem; margin: 1.6em 0; }
.compte div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r); padding: .55em .5em; min-width: 78px; text-align: center; backdrop-filter: blur(4px); }
.compte b { display: block; font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.compte span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
html[lang="ar"] .compte span { letter-spacing: 0; font-size: .85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-badge a { color: var(--or); }

/* frise de triangles, motif des murs des cases */
.motif { height: 18px; background:
  linear-gradient(135deg, var(--brique) 25%, transparent 25%) 0 0 / 24px 18px,
  linear-gradient(225deg, var(--brique) 25%, transparent 25%) 0 0 / 24px 18px,
  var(--sable); }
.hero .motif { position: absolute; inset: auto 0 0; }

/* ---------- chiffres ---------- */
.chiffres { background: var(--sable); padding: 2.2rem 0; }
.chiffres-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; text-align: center; }
.chiffres b { display: block; font-size: 2.6rem; color: var(--brique); line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffres span { color: var(--doux); font-size: .95rem; }
.ch-live b { color: var(--oasis); }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.sable { background: var(--sable); }
.nuit { background: radial-gradient(ellipse at 80% 20%, var(--nuit-2), var(--nuit) 60%); color: #e9e6f5; }
.nuit h2 { color: #fff; }
.etiquette { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre); margin-bottom: .6em; }
html[lang="ar"] .etiquette { letter-spacing: 0; font-size: .95rem; }
.nuit .etiquette { color: var(--or); }
.chapeau { font-size: 1.1rem; color: var(--doux); max-width: 62ch; }
.deux-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.note { color: var(--doux); font-size: .95rem; margin-top: 1.5rem; }

/* frise des éditions */
.frise { list-style: none; padding: 0; margin: 0; position: relative; }
.frise::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 31px; width: 2px; background: var(--sable-2); }
.frise li { display: flex; gap: 1.1rem; margin-bottom: 1.6rem; position: relative; }
.frise .an { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--sable); color: var(--brique); border: 2px solid var(--sable-2); z-index: 1; }
.frise .actuel .an { background: var(--brique); color: #fff; border-color: var(--brique); box-shadow: 0 0 0 6px rgba(168,53,42,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(168,53,42,0); } }
.frise b { color: var(--nuit); }
.frise p { margin: .25em 0 0; color: var(--doux); font-size: .95rem; }

/* axes */
.axes { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.axe { position: relative; display: flex; flex-direction: column; gap: .45rem; text-align: start; background: var(--blanc); border: 1px solid var(--sable-2);
  border-radius: var(--r); padding: 1.4rem 1.3rem; font: inherit; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.axe:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: var(--ocre); }
.axe-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--sable); display: grid; place-items: center; }
.axe-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--brique); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.axe-num { position: absolute; top: .9rem; inset-inline-end: 1.1rem; font-size: 2.2rem; font-weight: 800; color: var(--sable-2); }
.axe b { font-size: 1.12rem; color: var(--nuit); }
.axe-enj { color: var(--doux); font-size: .93rem; }
.axe-ia { display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s, opacity .35s, margin .35s; font-size: .93rem;
  border-inline-start: 3px solid var(--oasis); padding-inline-start: .7rem; color: var(--oasis); }
.axe-ia::before { content: "IA → "; font-weight: 700; }
.axe[aria-expanded="true"] { border-color: var(--oasis); }
.axe[aria-expanded="true"] .axe-ia { max-height: 12em; opacity: 1; margin-top: .3rem; }
.axe-final { background: var(--nuit); color: #fff; border: 0; cursor: default; justify-content: center; }
.axe-final b { color: var(--or); font-size: 1.4rem; }
.axe-final:hover { transform: none; }
.axe-final .btn { align-self: flex-start; margin-top: .5rem; background: var(--or); color: var(--nuit); }

/* programme */
.onglets { display: inline-flex; background: var(--sable); border-radius: 999px; padding: 4px; margin: 1.5rem 0 2rem; }
.onglets button { border: 0; background: none; padding: .65em 1.4em; border-radius: 999px; font: 600 1rem var(--police); cursor: pointer; color: var(--doux); }
html[lang="ar"] .onglets button { font-family: var(--police-ar); }
.onglets [aria-selected="true"] { background: var(--nuit); color: #fff; }
.jour[hidden] { display: none; }
.jour { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; animation: entree .4s; }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }
.creneau { background: var(--blanc); border: 1px solid var(--sable-2); border-radius: var(--r); padding: 1.4rem; }
.moment { display: inline-block; font-weight: 700; color: var(--ocre); margin-bottom: .8rem; text-transform: uppercase; font-size: .85rem; letter-spacing: .1em; }
.creneau ul { list-style: none; padding: 0; margin: 0; }
.creneau li { padding: .75rem 0 .75rem 1rem; border-inline-start: 3px solid var(--sable-2); margin-bottom: .4rem; display: flex; flex-direction: column; gap: .2rem; }
html[dir="ltr"] .creneau li { padding-left: 1rem; } html[dir="rtl"] .creneau li { padding: .75rem 1rem .75rem 0; }
.creneau li.panel { border-color: var(--ocre); } .creneau li.hack { border-color: var(--oasis); } .creneau li.demo { border-color: var(--nuit-2); }
.creneau li.pl, .creneau li.conf { border-color: var(--brique); } .creneau li.ligne { border-color: var(--or); } .creneau li.atelier { border-color: var(--oasis); }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2em .65em; border-radius: 6px; background: var(--sable); color: var(--brique); }
html[lang="ar"] .tag { letter-spacing: 0; font-size: .82rem; }

/* cogency : bulles de délibération */
.lien-fleche { color: var(--or); font-weight: 700; text-decoration: none; }
.lien-fleche::after { content: " →"; }
html[dir="rtl"] .lien-fleche::after { content: " ←"; }
.debat { display: flex; flex-direction: column; gap: 1rem; }
.bulle { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 1rem 1.2rem; max-width: 88%;
  opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.bulle span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.bulle p { margin: .3em 0 0; }
.b1 span { color: #8fb8ff; } .b2 { align-self: flex-end; } .b2 span { color: #ff9b8a; }
.b3 { border-color: var(--or); background: rgba(242,177,52,.1); } .b3 span { color: var(--or); }
.vu .bulle { opacity: 1; transform: none; } .vu .b2 { transition-delay: .5s; } .vu .b3 { transition-delay: 1s; }

/* amdjarass */
.inverse > :first-child { order: 0; }
.galerie { position: relative; min-height: 420px; }
.galerie figure { margin: 0; position: absolute; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); border: 5px solid #fff; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.g1 { width: 68%; inset-inline-start: 0; top: 0; aspect-ratio: 507/434; transform: rotate(-2deg); }
.g2 { width: 62%; inset-inline-end: 0; bottom: 0; aspect-ratio: 520/325; transform: rotate(2.5deg); }
.pratique { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.pratique li { padding: .7rem 0; border-top: 1px dashed var(--sable-2); font-size: .97rem; }

/* participer */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.role { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: inherit; background: var(--blanc); border-radius: var(--r); padding: 1.4rem;
  border: 1px solid var(--sable-2); transition: transform .2s, box-shadow .2s; }
.role:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.role svg { width: 38px; height: 38px; fill: none; stroke: var(--brique); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role b { font-size: 1.15rem; color: var(--nuit); }
.role span { color: var(--doux); font-size: .93rem; }
.hackathon { background: linear-gradient(120deg, var(--oasis), #1d5c42); color: #fff; border-radius: calc(var(--r) * 1.4); padding: clamp(1.5rem, 4vw, 2.5rem); }
.hackathon .tag { background: rgba(255,255,255,.18); color: #fff; }
.hackathon h3 { font-size: 1.6rem; margin-top: .6rem; }
.hackathon p { margin: 0; max-width: 70ch; }

/* ---------- formulaire ---------- */
.inscription { background: linear-gradient(180deg, var(--blanc), var(--sable)); }
.formulaire { background: #fff; border-radius: calc(var(--r) * 1.4); box-shadow: var(--ombre); padding: clamp(1.3rem, 4vw, 2.6rem); margin-top: 2rem; max-width: 900px; }
.etapes { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: .5rem; counter-reset: e; }
.etapes li { flex: 1; font-size: .82rem; font-weight: 600; color: var(--doux); padding-top: .6rem; border-top: 4px solid var(--sable-2); counter-increment: e; transition: .3s; }
.etapes li::before { content: counter(e) ". "; }
.etapes li.faite { border-color: var(--ocre); color: var(--encre); }
.bloc { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
legend { font-size: 1.3rem; font-weight: 700; color: var(--nuit); margin-bottom: 1rem; padding: 0; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.grille .large, label.large { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; font-weight: 600; color: var(--encre); }
input, select, textarea { font-family: inherit; font-size: 1rem; line-height: 1.4; padding: .75em .9em; border: 1.5px solid #d8cdbd; border-radius: 10px; background: var(--blanc); color: var(--encre); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ocre); outline: 3px solid rgba(200,102,43,.2); outline-offset: 0; }
.invalide input, input.invalide, .invalide { border-color: var(--brique) !important; }
.q { font-weight: 700; margin: 1.4rem 0 .7rem; }
.choix.deux { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.carte-choix { flex-direction: row; align-items: flex-start; gap: .7rem; border: 1.5px solid #d8cdbd; border-radius: 12px; padding: 1rem; cursor: pointer; transition: .15s; font-weight: 400; }
.carte-choix input { width: auto; margin-top: .3rem; accent-color: var(--brique); }
.carte-choix b { display: block; } .carte-choix small { color: var(--doux); }
.carte-choix:has(input:checked) { border-color: var(--brique); background: #fbf1ea; }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puces label { flex-direction: row; font-weight: 500; cursor: pointer; }
.puces input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puces span { display: inline-block; border: 1.5px solid #d8cdbd; border-radius: 999px; padding: .5em 1em; transition: .15s; user-select: none; }
.puces input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.puces input:focus-visible + span { outline: 3px solid var(--or); }
.si-intervenant, .si-presentiel { margin-top: 1.2rem; display: grid; gap: 1rem; }
.si-intervenant[hidden], .si-presentiel[hidden] { display: none; }
.interrupteur { flex-direction: row; align-items: center; gap: .8rem; margin: 1.5rem 0; cursor: pointer; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; }
.interrupteur span { width: 50px; height: 28px; border-radius: 999px; background: #d8cdbd; position: relative; transition: .2s; flex: none; }
.interrupteur span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; }
.interrupteur input:checked + span { background: var(--oasis); }
.interrupteur input:checked + span::after { inset-inline-start: 25px; }
.interrupteur input:focus-visible + span { outline: 3px solid var(--or); }
.consent { flex-direction: row; align-items: flex-start; gap: .7rem; font-weight: 400; font-size: .9rem; color: var(--doux); margin-top: 1.5rem; }
.consent input { width: auto; margin-top: .25rem; accent-color: var(--brique); flex: none; }
.pot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.erreur { background: #fde8e4; color: var(--brique); border-radius: 10px; padding: .8em 1em; font-weight: 600; }

/* ---------- badge ---------- */
.resultat { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; margin-top: 2rem; animation: entree .5s; }
.resultat[hidden] { display: none; }
.badge { width: 320px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 60px -20px rgba(20,24,61,.55); border: 1px solid var(--sable-2); }
.badge-haut { background: var(--nuit); color: #fff; display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; }
.badge-haut img { border-radius: 50%; background: #fff; }
.badge-haut b { display: block; } .badge-haut small { color: var(--or); }
.badge-haut .badge-cp { margin-inline-start: auto; flex-shrink: 0; box-shadow: 0 0 0 2px var(--or); }
.badge-haut { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.badge-motif { height: 12px; background: linear-gradient(135deg, var(--brique) 25%, transparent 25%) 0 0/16px 12px, linear-gradient(225deg, var(--brique) 25%, transparent 25%) 0 0/16px 12px, var(--sable); }
.badge-corps { padding: 1.3rem 1.2rem .8rem; text-align: center; }
.badge-nom { font-size: 1.5rem; font-weight: 800; color: var(--nuit); margin: 0; line-height: 1.2; }
.badge-org { color: var(--doux); margin: .2rem 0 .6rem; min-height: 1.2em; }
.badge-type { display: inline-block; background: var(--brique); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .3em .9em; border-radius: 999px; margin: 0 0 1rem; }
.badge-type.enligne { background: var(--oasis); }
.badge-type.orga { background: var(--or); color: var(--nuit); }
.badge-qr { display: grid; place-items: center; }
.badge-qr img, .badge-qr canvas { width: 168px !important; height: 168px !important; image-rendering: pixelated; }
.badge-code { font: 700 1.05rem/1 ui-monospace, "DejaVu Sans Mono", monospace; letter-spacing: .08em; margin: .8rem 0 0; color: var(--nuit); }
.badge-pied { background: var(--sable); font-size: .8rem; text-align: center; padding: .6rem; color: var(--doux); }
.resultat-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

/* conseil provincial (province hôte) */
.marque { margin-inline-end: 0; }
.marque-cp { display: flex; align-items: center; gap: .55rem; margin-inline-end: auto; padding-inline-start: .9rem; border-inline-start: 1px solid rgba(255,255,255,.28);
  color: #fff; text-decoration: none; font-size: .74rem; line-height: 1.2; }
.marque-cp img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--or); }
.marque-cp b { display: block; font-size: .8rem; }
.marque-cp span { opacity: .92; }
@media (max-width: 1500px) { .marque-cp span { display: none; } }
.nav a, .marque b, .marque small { white-space: nowrap; }
.entete-in { width: min(1360px, 100% - 2.5rem); }
.marque, .marque-cp, .langues { flex-shrink: 0; }
.nav { gap: clamp(.7rem, 1.4vw, 1.3rem); }
@media (min-width: 961px) and (max-width: 1180px) { .nav a { font-size: .88rem; } .marque small { display: none; } }
.hero-hote { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding: .55rem 1.4rem .55rem .55rem; border-radius: 999px;
  background: rgba(255,253,249,.94); color: var(--nuit); text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: transform .15s; }
.hero-hote:hover { transform: translateY(-2px); }
.hero-hote img { border-radius: 50%; }
.hero-hote span { display: flex; flex-direction: column; line-height: 1.2; }
.hero-hote small { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ocre); font-weight: 700; }
html[lang="ar"] .hero-hote small { letter-spacing: 0; }
.hero-hote b { font-size: 1.05rem; }
.conseil { position: relative; color: #f3efe6; padding-bottom: calc(clamp(4rem, 9vw, 6.5rem) + 18px);
  background: radial-gradient(ellipse at 15% 10%, rgba(242,177,52,.22), transparent 55%), linear-gradient(160deg, #2a5f45 0%, #1d4733 55%, #173a2a 100%); }
.conseil .motif { position: absolute; inset: auto 0 0; }
.conseil h2 { color: #fff; }
.conseil .etiquette { color: var(--or); }
.conseil-tete { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.conseil-sceau { width: clamp(150px, 22vw, 230px); aspect-ratio: 1; border-radius: 50%; background: #fffdf9; padding: 6px;
  box-shadow: 0 0 0 6px rgba(242,177,52,.85), 0 0 0 14px rgba(242,177,52,.18), 0 20px 50px -10px rgba(0,0,0,.55); }
.conseil-sceau img { width: 100%; height: 100%; border-radius: 50%; }
.conseil-lead { font-size: 1.12rem; max-width: 42em; }
.conseil-pres { display: inline-block; background: rgba(255,255,255,.1); border-inline-start: 4px solid var(--or); padding: .55em 1em; border-radius: 6px; margin: 0; }
.conseil-sous { color: var(--or); margin: 3rem 0 1.2rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .12em; }
html[lang="ar"] .conseil-sous { letter-spacing: 0; }
.chantiers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.chantiers li { background: rgba(255,253,249,.97); color: var(--encre); border-radius: var(--r); padding: 1.3rem 1.3rem 1.1rem; box-shadow: var(--ombre); border-top: 5px solid var(--oasis); }
.chantiers li.ch-indabax { border-top-color: var(--or); background: #fff8e8; }
.chantiers h4 { margin: .5rem 0 .5rem; font-size: 1.08rem; color: var(--nuit); line-height: 1.25; }
.chantiers p { margin: 0; font-size: .93rem; color: var(--doux); }
.ch-date { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--oasis); background: rgba(47,125,91,.1); padding: .2em .7em; border-radius: 999px; }
.ch-indabax .ch-date { color: var(--brique); background: rgba(242,177,52,.25); }
.conseil-pont { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding: 1.3rem 1.5rem; border: 1px dashed rgba(242,177,52,.6); border-radius: var(--r); }
.conseil-pont p { margin: 0; flex: 1 1 28em; }
.conseil-sources { margin: 1.4rem 0 0; font-size: .82rem; opacity: .75; }
.conseil-sources a { color: #f3efe6; }
.orga-hote { padding-bottom: 1.5rem; border-bottom: 1px solid var(--sable-2); }
.orga-hote img { border-radius: 50%; }
.pied-hote { display: flex; align-items: center; gap: .6rem; font-size: .9rem; margin: 0; }
.pied-hote img { border-radius: 50%; background: #fff; }
@media (max-width: 760px) {
  .conseil-tete { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .conseil-pres { border-inline-start: 0; border-top: 3px solid var(--or); }
  .marque-cp { padding-inline-start: .6rem; }
}

/* partenaires */
.partenaires { text-align: center; }
.orga { display: flex; align-items: center; justify-content: center; gap: 1.2rem; max-width: 640px; margin: 1.5rem auto; text-align: start; }
.orga p { margin: 0; }
.logos-txt { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2rem 0 0; }
.logos-txt li { border: 1.5px solid var(--sable-2); border-radius: 12px; padding: .9em 1.4em; font-weight: 700; color: var(--nuit); background: #fff; }

/* partenaires : bande défilante */
.bloc-partenaires { margin: 2.5rem 0 1.5rem; }
.bloc-partenaires h3 { color: var(--nuit); margin-bottom: 1.2rem; }
.bande { overflow: hidden; padding: .6rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.bande-piste { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: defile var(--duree, 30s) linear infinite; }
.bande:hover .bande-piste, .bande:focus-within .bande-piste { animation-play-state: paused; }
.bande-piste li { flex: none; display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 190px; margin-inline-end: 1.6rem;
  padding: 1.1rem .9rem .9rem; background: #fff; border: 1px solid var(--sable-2); border-radius: var(--r); box-shadow: 0 6px 18px -12px rgba(20,24,61,.4); }
.bande-piste li:has(> a) { padding: 0; transition: border-color .2s, transform .2s; }
.bande-piste li > a { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 100%; padding: 1.1rem .9rem .9rem; color: inherit; text-decoration: none; border-radius: var(--r); }
.bande-piste li:has(> a:hover), .bande-piste li:has(> a:focus-visible) { border-color: var(--or); transform: translateY(-3px); }
.bande-piste li > a:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.bande-piste picture { height: 84px; display: flex; align-items: center; }
.bande-piste img { max-height: 84px; width: auto; max-width: 160px; object-fit: contain; }
.bande-piste small { display: block; font-weight: 600; color: var(--ocre); font-size: .78rem; margin-top: .15rem; }
.bande-piste span { font-size: .85rem; font-weight: 700; color: var(--nuit); text-align: center; line-height: 1.25; }
.bande.fixe { -webkit-mask-image: none; mask-image: none; }
.bande.fixe .bande-piste { width: auto; justify-content: center; flex-wrap: wrap; gap: 1.6rem; animation: none; }
.bande.fixe .bande-piste li { margin: 0; }
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes defile-rtl { to { transform: translateX(50%); } }
html[dir="rtl"] .bande-piste { animation-name: defile-rtl; }
@media (prefers-reduced-motion: reduce) {
  .bande { -webkit-mask-image: none; mask-image: none; }
  .bande-piste { width: auto; flex-wrap: wrap; justify-content: center; gap: 1rem; animation: none; }
  .bande-piste li { margin: 0; } .bande-piste li.copie { display: none; }
}

/* galerie des éditions passées */
.frise .an-photos { cursor: pointer; position: relative; font: inherit; font-weight: 800; transition: transform .15s, box-shadow .15s; }
.frise .an-photos:hover { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(242,177,52,.35); }
.an-cam { position: absolute; inset-block-end: -4px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--or); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--blanc); }
.an-cam svg, .voir-photos svg { width: 15px; height: 15px; fill: none; stroke: var(--nuit); stroke-width: 2; stroke-linejoin: round; }
.voir-photos { display: inline-flex; align-items: center; gap: .4em; margin-top: .5rem; background: none; border: 0; padding: .2em 0; font: inherit; font-size: .9rem; font-weight: 700; color: var(--brique); cursor: pointer; }
.voir-photos svg { stroke: var(--brique); }
.voir-photos:hover span { text-decoration: underline; }
.galerie-ed { width: min(1100px, 100vw - 1.5rem); max-height: calc(100vh - 1.5rem); padding: 0; border: 0; border-radius: var(--r); background: var(--nuit); color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.galerie-ed[open] { display: flex; flex-direction: column; }
.galerie-ed::backdrop { background: rgba(10,12,32,.82); backdrop-filter: blur(3px); }
.gal-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.gal-tete h2 { color: #fff; font-size: clamp(1.05rem, 2.4vw, 1.4rem); margin: 0; }
.gal-fermer { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: none; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.gal-fermer:hover { background: rgba(255,255,255,.12); }
.galerie-ed [hidden] { display: none !important; }
.gal-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-content: start; gap: .5rem; padding: 1rem 1.3rem; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.gal-grille button { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #000; }
.gal-grille img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s, opacity .3s; }
.gal-grille button:hover img, .gal-grille button:focus-visible img { transform: scale(1.05); opacity: .9; }
.gal-vue { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .8rem 3.6rem .6rem; min-height: 0; flex: 1; overflow-y: auto; }
.gal-vue figure { margin: 0; text-align: center; min-height: 0; }
.gal-vue img { max-width: 100%; max-height: calc(100vh - 13rem); margin: 0 auto; border-radius: 8px; object-fit: contain; }
.gal-vue video { display: block; max-width: 100%; max-height: calc(100vh - 13rem); margin: 0 auto; border-radius: 8px; background: #000; }
.gal-yt { width: min(960px, 100%); aspect-ratio: 16 / 9; max-height: calc(100vh - 21rem); margin: 0 auto; }
.gal-yt iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }
.voir-jt { margin-inline-start: 1rem; }
.gal-grille .gal-vid { position: relative; }
.gal-grille .gal-vid::after { content: ""; position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(242,177,52,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l10 6-10 6z' fill='%2314183d'/%3E%3C/svg%3E") center / 30px no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.gal-vue figcaption { font-size: .85rem; margin-top: .5rem; max-width: 52em; margin-inline: auto; display: flex; flex-direction: column; gap: .15rem; align-items: center; }
.gal-vue figcaption b { font-size: 1rem; color: var(--or); }
.gal-vue figcaption .gal-fonction { opacity: .85; }
.gal-vue figcaption q { font-style: italic; opacity: .95; }
.gal-vue figcaption small { opacity: .6; font-size: .78rem; }
.gal-vue img, .gal-vue video { max-height: calc(100vh - 21rem) !important; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.gal-nav:hover { background: var(--or); color: var(--nuit); }
.gal-prec { inset-inline-start: .6rem; } .gal-suiv { inset-inline-end: .6rem; }
html[dir="rtl"] .gal-nav span { display: inline-block; transform: scaleX(-1); }
.gal-retour { margin-top: .7rem; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: .4em 1.1em; font: inherit; font-size: .88rem; cursor: pointer; }
.gal-credit { margin: 0; padding: .6rem 1.3rem .9rem; font-size: .78rem; opacity: .6; text-align: start; }
body.gal-ouverte { overflow: hidden; }
@media (max-width: 620px) { .gal-grille { grid-template-columns: repeat(2, 1fr); } .gal-vue { padding: .5rem .5rem .6rem; } .gal-nav { top: 30%; } .gal-vue img, .gal-vue video { max-height: calc(100vh - 24rem) !important; } }

/* faq */
details { background: #fff; border-radius: 12px; margin-bottom: .7rem; border: 1px solid var(--sable-2); }
summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--nuit); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ocre); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--doux); }

/* pied */
.pied { background: var(--nuit); color: #d9d6ea; font-size: .95rem; }
.pied-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding: 3rem 0 1.5rem; }
.pied-marque { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; font-size: 1.1rem; }
.pied-marque img { border-radius: 50%; background: #fff; }
.contacts { display: flex; flex-direction: column; gap: .4rem; }
.pied a { color: var(--or); text-decoration: none; }
.mention { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 2rem; margin-top: 0; font-size: .85rem; opacity: .7; }

/* apparition au défilement */
.reveler { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveler.vu { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--nuit); padding: .5rem 1.25rem 1.2rem;
    transform: translateY(-120%); transition: transform .3s; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
  .nav.ouvert { transform: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.btn { margin-top: .8rem; border: 0; }
  .entete { background: rgba(20,24,61,.94); }
  .deux-col, .jour, .resultat { grid-template-columns: 1fr; }
  .resultat .badge { margin-inline: auto; }
  .galerie { min-height: 0; aspect-ratio: 1 / .82; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grille, .choix.deux { grid-template-columns: 1fr; }
  .compte div { min-width: 0; flex: 1; }
  .compte b { font-size: 1.6rem; }
  .marque small { display: none; }
  .badge { width: 100%; max-width: 320px; }
  .hero { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveler, .bulle { opacity: 1; transform: none; }
}
@media print {
  body * { visibility: hidden; }
  #badge, #badge * { visibility: visible; }
  #badge { position: absolute; left: 0; top: 0; box-shadow: none; }
}

/* ---------- texte justifié (demande du comité, 26/11/2026) ---------- */
main p, .pied p, .axe-enj, .axe-ia, .role span, .creneau li, .bulle, details p {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* éléments d'interface sur une ligne : on garde leur alignement */
main p.etiquette, main p.surtitre, main p.hero-badge, main p.q, main p.erreur, main .badge p,
main p.conseil-pres, main p.conseil-sources, .pied p.pied-marque, .pied p.pied-hote { text-align: inherit; hyphens: manual; }
/* blocs centrés : justifiés, dernière ligne centrée */
.partenaires p.note, .badge-corps p { text-align-last: center; }
@media (max-width: 760px) { .conseil-tete p.conseil-lead { text-align: justify; text-align-last: center; } }
