/* Marrakech Coffee & Tea Festival — feuille de style unique
   Palette : expresso, crème, safran (l'étoile du logo), vert menthe (le thé), terre cuite (l'affiche) */

:root {
  --espresso: #22150F;
  --torref: #3B241A;
  --creme: #F8F2E7;
  --creme-2: #F1E7D6;
  --sable: #E4D3B7;
  --safran: #C9952F;
  --safran-clair: #E7B856;
  --menthe: #2E5B4B;
  --terre: #B4532F;
  --encre: #1D1611;
  --gris: #6F6256;
  --trait: #E2D5C1;

  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Amiri", serif;
  --kufi: "Reem Kufi", "Amiri", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: clamp(16px, .4vw + 14.5px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--safran); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--safran); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--espresso); color: var(--creme); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }
[lang="ar"] { font-family: var(--arabic); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.2vw, 72px); }
h2 { font-size: clamp(30px, 3.4vw, 48px); }
h3 { font-size: clamp(21px, 1.6vw, 25px); }
p { margin: 0 0 1em; }
.lead { font-size: 1.15em; }
.eyebrow {
  font-weight: 700; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terre); margin-bottom: 18px;
}
.eyebrow sup { font-size: .7em; }

/* ---------- Boutons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--safran);
  background: var(--safran); color: var(--espresso);
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--safran-clair); border-color: var(--safran-clair); }
.btn.ghost { background: transparent; color: inherit; }
.btn.ghost:hover { background: var(--safran); color: var(--espresso); }
.btn.small { padding: 9px 20px; font-size: 14px; }
.link { font-weight: 700; color: var(--terre); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.topbar { background: var(--espresso); color: var(--sable); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.langs { display: flex; gap: 14px; }
.langs a { text-decoration: none; opacity: .75; }
.langs a[aria-current] { opacity: 1; color: var(--safran-clair); font-weight: 700; }

.site-header { background: var(--creme); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-family: var(--display); font-size: 18px; font-weight: 600; }
.brand em { font-style: normal; font-size: 15px; color: var(--gris); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current] { border-color: var(--safran); }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn {
    display: inline-block; background: none; border: 1.5px solid var(--encre); border-radius: 999px;
    padding: 8px 18px; font: 600 14px var(--sans); color: var(--encre); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--creme); border-bottom: 1px solid var(--trait);
    flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--trait); font-size: 17px; }
  .nav .btn { margin-top: 14px; }
}
@media (max-width: 520px) {
  .brand strong { font-size: 15px; }
  .brand em { font-size: 13px; }
  .brand img { width: 42px; }
  .topbar span { font-size: 12px; }
}

/* ---------- Héros ---------- */
.hero { background: var(--espresso); color: var(--creme); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero .eyebrow { color: var(--safran-clair); }
.hero-date { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); color: var(--safran-clair); margin: 0 0 20px; }
.hero .lead { color: var(--sable); max-width: 34em; }
.hero-visual { margin: 0; }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.45); max-height: 640px; width: auto; margin-inline: auto; }
.countdown { display: flex; gap: 12px; margin-top: 28px; }
.countdown div { background: var(--torref); border: 1px solid rgba(231,184,86,.25); border-radius: 10px; padding: 10px 16px; min-width: 86px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--creme); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--sable); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual img { max-height: 420px; }
}

.notice { background: var(--safran); color: var(--espresso); font-size: 15px; }
.notice .wrap { padding-block: 14px; }
.notice a { font-weight: 700; color: var(--espresso); }

/* ---------- Sections ---------- */
.sec { padding-block: var(--section); }
.sec.dark { background: var(--torref); color: var(--creme); }
.sec.dark .eyebrow { color: var(--safran-clair); }
.sec.dark p { color: var(--sable); }

.stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--radius); overflow: hidden; }
.stats li { background: var(--creme); padding: 28px 24px; }
.stats b { display: block; font-family: var(--display); font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--menthe); }
.stats span { color: var(--gris); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.pays { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pays li { border: 1px solid var(--trait); border-radius: 999px; padding: 4px 14px; font-size: 14px; background: var(--creme-2); }

.publics { background: var(--creme-2); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.card p { flex: 1; color: var(--gris); }
.card.accent { background: var(--menthe); color: var(--creme); border-color: var(--menthe); }
.card.accent p { color: #D7E4DC; }
.card.accent .link { color: var(--safran-clair); }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

.exp-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.exp-grid li { border-top: 2px solid var(--safran); padding-top: 18px; }
.exp-grid .num { font-family: var(--display); color: var(--terre); font-size: 15px; }
.exp-grid h3 { margin-top: 6px; }
.exp-grid p { color: var(--gris); font-size: .95em; margin: 0; }
@media (max-width: 960px) { .exp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .exp-grid { grid-template-columns: 1fr; } }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-grid figure { margin: 0; }
.split-grid img { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.split-grid.reverse figure { order: 2; }
@media (max-width: 860px) { .split-grid { grid-template-columns: 1fr; } .split-grid.reverse figure { order: 0; } }

.newsletter { background: var(--menthe); color: var(--creme); text-align: center; }
.newsletter p { color: #D7E4DC; }
.nl-form { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 0; }
.nl-form input { flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: none; font: 16px var(--sans); }
@media (max-width: 520px) { .nl-form { flex-direction: column; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--espresso); color: var(--sable); padding-top: 64px; font-size: 15px; }
.site-footer .wrap:first-child { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--safran-clair); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--creme); text-decoration: underline; }
.foot-brand .logo-clair { width: 84px; filter: invert(1) sepia(.35) brightness(.95); margin-bottom: 16px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(228,211,183,.15); margin-top: 48px; padding-block: 20px; font-size: 13px; opacity: .8; }
@media (max-width: 860px) { .site-footer .wrap:first-child { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .wrap:first-child { grid-template-columns: 1fr; } }

/* ---------- Vidéos ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.sec-head > div { max-width: 640px; min-width: 0; }
.sec.dark .link { color: var(--safran-clair); }
.video-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.video-grid a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--creme); }
.thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--espresso); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-grid a:hover .thumb img { transform: scale(1.04); }
.play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(34,21,15,.78); border: 2px solid var(--safran-clair); }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--safran-clair); }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.v-title { font-weight: 500; line-height: 1.4; }
.video-grid a:hover .v-title { text-decoration: underline; text-decoration-color: var(--safran); }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Arabe (de droite à gauche) ---------- */
[dir="rtl"] body { font-family: var(--arabic); font-size: clamp(18px, .4vw + 16.5px, 20px); line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .hero-date { font-family: var(--kufi); line-height: 1.45; letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .site-footer h4, [dir="rtl"] .countdown span { letter-spacing: 0; text-transform: none; font-family: var(--kufi); font-size: 14px; }
[dir="rtl"] .brand strong { font-family: var(--kufi); }
[dir="rtl"] .brand em { font-family: var(--sans); }
[dir="rtl"] .btn, [dir="rtl"] .nav ul a, [dir="rtl"] .menu-btn { font-family: var(--kufi); }
[dir="rtl"] .skip { left: auto; right: 8px; }
[dir="rtl"] .dur { right: auto; left: 8px; }
[dir="rtl"] .play::after { left: 22px; }
:lang(en) .brand em, [lang="en"].brand em { font-family: var(--sans); }
.site-footer a.num { white-space: nowrap; unicode-bidi: isolate; }

/* ================= Pages intérieures ================= */
.page-hero { background: var(--espresso); color: var(--creme); padding-block: clamp(40px, 6vw, 80px); }
.page-hero .eyebrow { color: var(--safran-clair); }
.page-hero h1 { max-width: 18em; text-wrap: balance; }
.page-hero .lead { color: var(--sable); max-width: 40em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: 14px; color: var(--sable); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.crumbs a { text-decoration: none; opacity: .8; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

.subnav { background: var(--creme-2); border-bottom: 1px solid var(--trait); position: sticky; top: 82px; z-index: 40; }
.subnav ul { list-style: none; display: flex; gap: 6px 26px; margin: 0; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--gris); }
.subnav a:hover { color: var(--encre); text-decoration: underline; }
[id] { scroll-margin-top: 150px; }

.sec.alt { background: var(--creme-2); }
.sec-intro { max-width: 46em; margin-bottom: 32px; }
.sec-intro h2 { text-wrap: balance; }
.sec-intro .lead { color: var(--gris); }
.sec.dark .sec-intro .lead { color: var(--sable); }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.more { margin-top: 24px; }
.narrow-sec .wrap { max-width: 860px; }

.grid { display: grid; gap: 20px; }
.grid.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.cols3, .grid.cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols2, .grid.cols3, .grid.cols4 { grid-template-columns: 1fr; } }
.grid .card h3 { font-size: 21px; }
.sec.alt .card { background: var(--creme); }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 28px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--menthe); border-bottom: 2px solid var(--menthe); transform: rotate(-45deg); }
.sec.dark .checks li::before { border-color: var(--safran-clair); }
.checks.cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 28px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; margin: 0; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--creme); padding: 20px 22px; }
.facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--terre); font-weight: 700; margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--display); font-size: 20px; }
[dir="rtl"] .facts dt { letter-spacing: 0; text-transform: none; font-family: var(--kufi); }
[dir="rtl"] .facts dd { font-family: var(--arabic); }

.table-wrap { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--radius); background: var(--creme); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: start; padding: 16px 20px; border-bottom: 1px solid var(--trait); vertical-align: top; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); background: var(--creme-2); }
tbody th { font-family: var(--display); font-weight: 600; font-size: 18px; }
tbody tr:last-child > * { border-bottom: none; }
[dir="rtl"] thead th { letter-spacing: 0; text-transform: none; }
.note { font-size: 14px; color: var(--gris); margin-top: 14px; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 32px; }
.tier { background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: 30px 26px; }
.tier h3 { font-size: 28px; margin: 0; }
.tier-sub { color: var(--gris); margin-bottom: 20px; }
.tier.featured { background: var(--espresso); color: var(--creme); border-color: var(--espresso); }
.tier.featured h3 { color: var(--safran-clair); }
.tier.featured .tier-sub { color: var(--sable); }
.tier.featured .checks li::before { border-color: var(--safran-clair); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.halls { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.halls li { display: flex; gap: 20px; align-items: flex-start; }
.hall-letter { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--terre); color: var(--creme); display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 600; }
.halls h3 { margin-bottom: 6px; }
.halls p { color: var(--gris); margin: 0; }
@media (max-width: 760px) { .halls { grid-template-columns: 1fr; } }

.schedule { margin-bottom: 28px; min-width: 0; }
.schedule ol { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--safran); }
.schedule li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.schedule time { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terre); padding-top: 3px; }
.schedule strong { display: block; }
.schedule span { color: var(--gris); }
@media (max-width: 480px) { .schedule li { grid-template-columns: 1fr; gap: 2px; } }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; background: var(--menthe); color: var(--creme); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.callout > div:first-child { flex: 1 1 360px; min-width: 0; }
.callout h2 { font-size: clamp(26px, 2.6vw, 36px); }
.callout p { color: #D7E4DC; margin: 0; }
.callout .btns { margin-top: 0; }
.callout.inline { background: var(--espresso); }
.callout.inline p { color: var(--sable); }

.contact-box { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; min-width: min(100%, 300px); }
.contact-box li { display: flex; flex-direction: column; }
.contact-box span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
[dir="rtl"] .contact-box span { letter-spacing: 0; }
.contact-box a { font-weight: 700; font-size: 18px; text-decoration: none; word-break: break-word; }
.contact-box a:hover { text-decoration: underline; }
a.num { white-space: nowrap; unicode-bidi: isolate; }

.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ticket { background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: 30px 26px; min-width: 0; }
.ticket h2 { font-size: 30px; margin: 0; }
.ticket-sub { color: var(--gris); }
.ticket.featured { background: var(--espresso); color: var(--creme); }
.ticket.featured h2 { color: var(--safran-clair); }
.ticket.featured .ticket-sub { color: var(--sable); }
.prices { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--trait); padding-bottom: 8px; }
.ticket.featured .prices li { border-color: rgba(228,211,183,.25); }
.prices b { font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .tickets { grid-template-columns: 1fr; } }

.release { background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); max-width: 860px; }
.release-meta { font-size: 14px; color: var(--terre); font-weight: 700; }
.release h3 { font-size: clamp(24px, 2.4vw, 32px); }
blockquote { margin: 1.4em 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--safran); font-family: var(--display); font-style: italic; font-size: 1.1em; }
blockquote footer { font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--gris); margin-top: 8px; }
[dir="rtl"] blockquote { font-family: var(--arabic); font-style: normal; }

.exhibitors summary { cursor: pointer; font-weight: 700; color: var(--terre); padding: 14px 0; list-style-position: inside; }
.ex-groups { columns: 3 260px; column-gap: 40px; margin-top: 16px; }
.ex-group { break-inside: avoid; margin-bottom: 26px; }
.ex-group h3 { font-size: 19px; border-bottom: 2px solid var(--safran); padding-bottom: 6px; display: flex; justify-content: space-between; }
.ex-group h3 span { font-family: var(--sans); font-size: 14px; color: var(--gris); font-weight: 500; }
.ex-group ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.ex-group li { padding: 3px 0; }

.organisateur figure img { max-width: 260px; margin-inline: auto; object-fit: contain; }

/* Vidéos : quatre reportages en grand format */
.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.video-grid .play { width: 72px; height: 72px; }
.video-grid .play::after { left: 27px; top: 22px; border-width: 13px 0 13px 21px; }
.v-source { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--safran-clair); margin-bottom: -6px; }
[dir="rtl"] .v-source { letter-spacing: 0; }
.v-title { font-family: var(--display); font-size: 21px; font-weight: 400; }
[dir="rtl"] .v-title { font-family: var(--arabic); }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

/* Programme 2025 : jours, artistes, jury */
.days .schedule h3 { font-size: 20px; }
.schedule small { font-weight: 400; color: var(--gris); font-size: .85em; }
.sec.dark .schedule ol { border-color: var(--safran-clair); }
.sec.dark .schedule li { border-color: rgba(228,211,183,.18); }
.sec.dark .schedule span, .sec.dark .schedule small { color: var(--sable); }
.sec.dark .schedule time { color: var(--safran-clair); }
.artists { gap: 28px; }
.artist { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px; align-items: start; background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: 22px; }
.artist figure { margin: 0; }
.artist img { border-radius: 8px; width: 100%; }
.artist figure.logo img { background: #fff; padding: 14px; object-fit: contain; }
.artist h3 { margin-bottom: 2px; }
.artist .role { color: var(--terre); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.artist p { font-size: .95em; }
.artists + .callout { margin-top: 32px; }
@media (max-width: 520px) { .artist { grid-template-columns: 1fr; } .artist figure { max-width: 220px; } }
h3.sub { margin-top: 8px; margin-bottom: 18px; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.people li { background: var(--creme-2); border-radius: var(--radius); padding: 20px 22px; border-top: 3px solid var(--safran); }
.people strong { font-family: var(--display); font-size: 19px; font-weight: 600; }
.people p { margin: 6px 0 0; color: var(--gris); font-size: .93em; }
.price-soon { margin: 18px 0 22px; padding: 12px 0; border-block: 1px dashed var(--trait); font-weight: 500; }
.ticket.featured .price-soon { border-color: rgba(228,211,183,.25); }
.days .schedule li { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
.artist { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid.cols2.artists { grid-template-columns: 1fr; } }

/* Conférences : onglets par jour, trois scènes */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tablist button { font: 600 15px var(--sans); padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--trait); background: var(--creme); color: var(--encre); cursor: pointer; }
.tablist button[aria-selected="true"] { background: var(--espresso); color: var(--creme); border-color: var(--espresso); }
[dir="rtl"] .tablist button { font-family: var(--kufi); }
.day-panel + .day-panel { margin-top: 40px; }
.day-title { font-size: 26px; }
.schedule.stacked li { grid-template-columns: 1fr; gap: 2px; }
.schedule.stacked time { padding-top: 0; }
.schedule.stacked span { color: var(--encre); }
.panel-names { display: block; margin-top: 6px; color: var(--gris); font-size: .85em; line-height: 1.5; }

/* Remerciements : logos des sponsors et partenaires */
.thanks h3.sub { margin-top: 36px; font-size: 20px; }
.logos { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.logos.big { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.logos.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.logos li { background: #fff; border: 1px solid var(--trait); border-radius: 12px; display: grid; place-items: center; padding: 16px; aspect-ratio: 3 / 2; max-width: 100%; }
.logos.small li { padding: 12px; }
.logos img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.logos.big img { max-height: 90px; }
.logos.small img { max-height: 54px; }
.logos.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.logos.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 960px) { .logos.big { grid-template-columns: repeat(6, minmax(0, 1fr)); } .logos.small { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos.big, .logos.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= En-tête sans bande noire : langues dans l'en-tête ================= */
.topbar { display: none; }
.site-header .wrap { gap: 16px; }
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border: 1.5px solid var(--trait); border-radius: 999px; background: var(--creme-2); }
.langs a { opacity: 1; text-decoration: none; font: 700 13px var(--sans); color: var(--gris); padding: 5px 11px; border-radius: 999px; line-height: 1.2; }
.langs a[lang="ar"] { font-family: var(--kufi); font-weight: 600; font-size: 14px; }
.langs a:hover { color: var(--encre); background: var(--creme); }
.langs a[aria-current] { background: var(--espresso); color: var(--creme); }
@media (min-width: 1081px) { .header-tools .menu-btn { display: none; } }
@media (max-width: 1080px) { .site-header .wrap { flex-wrap: nowrap; } .nav { order: 3; } }
@media (max-width: 420px) {
  .brand em { display: none; }
  .langs a { padding: 5px 8px; font-size: 12px; }
  .menu-btn { padding: 7px 13px; }
}
.subnav { top: 82px; }

/* Stands */
.stands { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.stand { background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: 22px 20px; min-width: 0; }
.stand h3 { font-size: 20px; margin-bottom: 2px; }
.stand-sub { color: var(--terre); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.stand .checks { font-size: .93em; }
.stand-extra { margin-top: 36px; align-items: start; }
.stand-extra h3 { font-size: 21px; }
.stand-extra table { min-width: 0; }

/* Billets : early bird */
.early { margin-top: 28px; padding: 22px 26px; border-radius: var(--radius); background: var(--creme-2); border-inline-start: 4px solid var(--safran); }
.early h3 { font-size: 21px; margin-bottom: 4px; }
.early p { margin: 0; color: var(--gris); }

/* Plan 2025 */
.plan { margin: 28px 0 0; }
.plan img { width: 100%; border-radius: var(--radius); border: 1px solid var(--trait); background: #fff; }
.plan figcaption { font-size: 14px; color: var(--gris); margin-top: 10px; }

/* Hackathon */
.stats.mini { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.stats.mini b { font-size: clamp(30px, 3vw, 42px); }
.hack-intro .split-grid img { max-height: 620px; object-fit: contain; }
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.steps li { display: flex; gap: 14px; background: var(--creme-2); border-radius: var(--radius); padding: 20px; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--terre); color: var(--creme); display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--gris); font-size: .94em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.apply-list { margin-top: 24px; }

/* Remerciements par niveau */
.tier-groups { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.tier-group h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--terre); margin-bottom: 10px; }
[dir="rtl"] .tier-group h4 { letter-spacing: 0; font-family: var(--kufi); font-size: 14px; }
.tier-group .logos.big { display: flex; flex-wrap: wrap; gap: 12px; }
.tier-group .logos.big li { width: 170px; }
.tier-gold .logos.big li { width: 210px; border-color: var(--safran); }

/* Billets tout à droite sur ordinateur ; dans le menu sur mobile. Arabe plus lisible. */
.langs a[lang="ar"] { font-size: 18px; line-height: 1; padding-block: 4px 6px; }
@media (min-width: 1081px) { .nav .tickets-menu { display: none; } }
@media (max-width: 1080px) { .header-tools .tickets-top { display: none; } }

/* Qui peut exposer : 10 catégories */
.sectors { columns: 3 300px; column-gap: 20px; }
.sector { break-inside: avoid; background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: 20px 20px 8px; margin-bottom: 20px; }
.sector h3 { font-size: 19px; display: flex; gap: 10px; align-items: baseline; }
.sector-n { flex: none; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--terre); min-width: 1.6em; }
.sector .checks { font-size: .92em; gap: 7px; }
.sectors { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; align-items: start; }
.sector { margin-bottom: 0; }

/* En-tête plus large : logo plus à gauche, la page respire */
.site-header .wrap { max-width: 1480px; }

/* Pays invité d'honneur */
.guest { align-items: start; margin-bottom: 32px; }
.guest-years { display: grid; gap: 14px; }
.guest-year { background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: 22px 24px; }
.guest-year.next { border-style: dashed; background: transparent; }
.g-year { font: 700 13px var(--sans); letter-spacing: .14em; color: var(--terre); }
.guest-year h3 { font-size: 28px; margin: 4px 0 6px; }
.guest-year p { margin: 0; color: var(--gris); }
.guest-year.past { border-inline-start: 4px solid var(--menthe); }

/* Formulaire de contact */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; max-width: 860px; background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.contact-form .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; }
.field small { font-weight: 400; color: var(--gris); }
.field input, .field select, .field textarea { font: 16px var(--sans); color: var(--encre); background: #fff; border: 1.5px solid var(--trait); border-radius: 10px; padding: 12px 14px; width: 100%; }
[dir="rtl"] .field input, [dir="rtl"] .field select, [dir="rtl"] .field textarea { font-family: var(--arabic); font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--safran); box-shadow: 0 0 0 3px rgba(201,149,47,.2); }
.field textarea { resize: vertical; min-height: 140px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gris); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--menthe); flex: none; }
.form-end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 600; }
.form-status[data-kind="ok"] { color: var(--menthe); padding: 10px 14px; background: #E6F0EA; border-radius: 10px; }
.form-status[data-kind="info"] { color: var(--gris); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }
/* Sept entrées dans le menu : on passe au menu mobile un peu plus tôt */
@media (max-width: 1240px) and (min-width: 1081px) { .nav ul { gap: 16px; } .nav ul a { font-size: 14px; } }

/* Liste déroulante : flèche plus grande et plus foncée */
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 52px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%2322150F' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 20px 12px; }
[dir="rtl"] .field select { background-position: left 18px center; }

/* Menu à 8 entrées : sur les écrans moyens, le logo seul à gauche */
@media (min-width: 1081px) and (max-width: 1300px) { .brand span { display: none; } .brand img { width: 56px; } }
@media (min-width: 1301px) { .brand strong { white-space: nowrap; } }

/* Arabe : langues et Billets restent à droite, dans le même ordre qu'en français */
[dir="rtl"] .site-header .wrap { flex-direction: row-reverse; }
[dir="rtl"] .header-tools { flex-direction: row-reverse; }
[dir="rtl"] .langs { direction: ltr; }

/* Logo de l'en-tête identique dans les trois langues : nom arabe en coufique, nom latin dessous */
.brand strong[lang="ar"] { font-family: var(--kufi); font-weight: 600; font-size: 20px; line-height: 1.3; }
.brand em[lang="en"] { font-family: var(--sans); font-size: 15px; color: var(--gris); }
@media (max-width: 520px) { .brand strong[lang="ar"] { font-size: 16px; } .brand em[lang="en"] { font-size: 12px; } }
.brand strong[lang="ar"] .l1, .brand strong[lang="ar"] .l2 { white-space: nowrap; }
@media (max-width: 520px) {
  .brand strong[lang="ar"] .l1, .brand strong[lang="ar"] .l2 { display: block; }
  .brand strong[lang="ar"] { font-size: 15px; line-height: 1.25; }
}

/* Logo de l'en-tête : première ligne = langue de la page, deuxième ligne = l'autre écriture (sur une seule ligne chacune) */
.brand .b-ar, .brand .b-la { white-space: nowrap; display: block; font-style: normal; }
.brand strong.b-ar { font-family: var(--kufi); font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--encre); }
.brand strong.b-la { font-family: var(--sans); font-weight: 500; font-size: 19px; line-height: 1.25; color: var(--encre); }
.brand em.b-ar { font-family: var(--kufi); font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--gris); }
.brand em.b-la { font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.3; color: var(--gris); }
@media (max-width: 520px) {
  .brand strong.b-ar { font-size: 14px; } .brand strong.b-la { font-size: 13px; }
  .brand em.b-ar { font-size: 12px; } .brand em.b-la { font-size: 11px; }
  .brand em { display: block; }
}
/* Téléphones : pas de place pour les deux lignes complètes à côté des langues et du menu → logo rond seul */
@media (max-width: 560px) { .brand > span { display: none; } .brand img { width: 48px; } }

/* Menu à 9 entrées : un peu plus compact, et logo seul tant que l'écran est trop étroit pour le nom complet */
@media (min-width: 1081px) and (max-width: 1560px) { .nav ul { gap: 16px; } .nav ul a { font-size: 14px; } .nav { gap: 16px; } }
@media (min-width: 1081px) and (max-width: 1400px) { .brand > span { display: none; } .brand img { width: 56px; } }

/* Participants des tables rondes : un nom par ligne */
.panel-names { list-style: none; padding: 10px 0 0; margin: 8px 0 0; border-top: 1px dashed var(--trait); display: grid; gap: 6px; font-size: .88em; }
.panel-names li strong { display: block; color: var(--encre); font-weight: 700; }
.panel-names li span { color: var(--gris); }
.schedule.stacked time { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Ateliers : heure au-dessus quand elle comporte un début et une fin */
.days .schedule li { grid-template-columns: 1fr; gap: 2px; }

/* Formulaires détaillés (contact, accréditation presse) : carte d'informations à côté du formulaire, comme l'ancien site */
.form-intro { margin-bottom: 36px; }
.form-intro.centered { text-align: center; max-width: 52em; margin-inline: auto; margin-bottom: clamp(36px, 5vw, 64px); }
.form-intro .note-it { font-style: italic; color: var(--gris); }
.form-intro .strong { font-weight: 700; }
.form-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form-layout .contact-form { max-width: none; }
.info-card { background: var(--creme-2); border: 1px solid var(--sable); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); position: sticky; top: 110px; }
.info-card h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 0; }
.info-card dl { margin: 0; display: grid; gap: 16px; }
.info-card dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--terre); font-weight: 700; }
.info-card dd { margin: 2px 0 0; font-size: 17px; }
.info-card a { font-weight: 700; text-decoration: none; color: var(--encre); word-break: break-word; }
.info-card a:hover { text-decoration: underline; }
.terms-card { background: var(--torref); color: var(--creme); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); text-align: center; position: sticky; top: 110px; }
.terms-card h2 { color: var(--creme); font-size: clamp(20px, 1.8vw, 24px); text-transform: uppercase; letter-spacing: .04em; margin-top: 0; }
.terms-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.terms-card li { font-size: 17px; }
.terms-card h3 { color: var(--creme); font-size: 21px; margin: 0 0 14px; }
.terms-card h4 { color: var(--safran-clair); font-size: 15px; margin: 18px 0 4px; font-family: var(--sans); }
.terms-card p { color: var(--sable); margin: 0; font-size: 15px; }
.terms-card .terms-foot { margin-top: 22px; color: var(--creme); font-weight: 700; }
[dir="rtl"] .terms-card h2 { letter-spacing: 0; text-transform: none; font-family: var(--kufi); }
[dir="rtl"] .info-card dt { letter-spacing: 0; text-transform: none; font-family: var(--kufi); }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.field-grid, .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field-grid .wide { grid-column: 1 / -1; }
.field-group .field label { font-weight: 500; font-size: 13.5px; }
.consent.check { color: var(--encre); font-size: 15px; }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .info-card, .terms-card { position: static; }
}
@media (max-width: 560px) { .field-grid, .field-pair { grid-template-columns: 1fr; } }
.card-social { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.card-social a { font-size: 15px; }
.field-group[data-show-for] { background: var(--creme-2); border: 1px solid var(--sable); border-radius: 12px; padding: 16px 18px 18px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.checks-group .consent.check { font-size: 14.5px; }
.links-group { display: grid; gap: 14px; }
.links-hint { margin: 0; font-size: 14px; color: var(--gris); font-weight: 600; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.champ-day h3 { margin-bottom: 4px; }
.champ-phase { color: var(--terre); font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.champ-day time { letter-spacing: 0; }
.people.photos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.people li.with-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.people li.with-photo img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: center top; display: block; }
.people li.with-photo > div { padding: 16px 18px 20px; }
.practical-photo { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; position: relative; }
.practical-photo img { width: 100%; height: clamp(240px, 38vw, 460px); object-fit: cover; display: block; }
.practical-photo figcaption { position: absolute; inset-inline-start: 16px; bottom: 14px; background: rgba(34,21,15,.72); color: var(--creme); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.practical-group { margin-bottom: 36px; }
.practical-group h3 { margin-bottom: 14px; }
.facts.compact { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.facts.compact dd { font-family: var(--sans); font-size: 16px; line-height: 1.5; }
[dir="rtl"] .facts.compact dd { font-family: var(--arabic); font-size: 18px; }
.facts.compact { background: transparent; border: 0; gap: 0; border-radius: 0; overflow: visible; }
.facts.compact div { box-shadow: 0 0 0 .5px var(--trait); border: .5px solid var(--trait); }
.logos .logo-caption { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--encre); margin-top: 6px; }
.tier-hotel .logos li { flex-direction: column; }
/* Histoire de Marrakech */
.history-intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 48px; }
.history-photo { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.history-photo img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; }
.history-photo figcaption { position: absolute; inset-inline-start: 14px; bottom: 12px; background: rgba(34,21,15,.72); color: var(--creme); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.timeline { list-style: none; padding: 0; margin: 0 0 48px; border-inline-start: 2px solid var(--safran); }
.timeline li { position: relative; padding: 0 0 22px; padding-inline-start: 28px; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--safran); }
.timeline .year { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--terre); }
.timeline p { margin: 0; }
@media (max-width: 860px) { .history-intro { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Chatbot Amina (Jotform) : fenêtre plus compacte sur ordinateur (410 × 720 px par défaut) */
@media (min-width: 600px) {
  [id^="JotformAgent-"] .ai-agent-chat-animation-container.isOpened { width: 340px !important; height: min(520px, 70vh) !important; max-height: min(520px, 70vh) !important; }
  [id^="JotformAgent-"] .ai-agent-chat-animation-container.isOpened .ai-agent-chat-cover,
  [id^="JotformAgent-"] .ai-agent-chat-animation-container.isOpened iframe { width: 100% !important; height: 100% !important; }
}
.nl-status { margin: 14px 0 0; font-weight: 600; min-height: 1em; }
.nl-status[data-kind="ok"] { color: var(--menthe); background: #E6F0EA; padding: 10px 14px; border-radius: 10px; }
.nl-status[data-kind="error"] { color: var(--terre); }
.nl-note { font-size: 13.5px; opacity: .75; margin: 10px 0 0; }
/* Pendant le chargement, la fenêtre d'Amina reste cachée (voir site.js) */
.amina-boot [id^="JotformAgent-"] .ai-agent-chat-animation-container { visibility: hidden !important; }
.history-more { margin-top: 8px; }
.history-more > summary { cursor: pointer; font-weight: 700; color: var(--terre); padding: 12px 0; list-style-position: inside; }
.history-more[open] > summary { margin-bottom: 24px; }
/* Les colonnes des blocs photo + texte peuvent rétrécir (sinon débordement à 360 px sur la page Hackathon) */
.split-grid > * { min-width: 0; }
.split-grid h2, .split-grid h3 { overflow-wrap: anywhere; }

/* ---- Téléphone : contenu centré (demande de l'organisateur, 23 oct. 2026).
   Restent alignés au début de ligne : formulaires, listes à puces, tableaux, horaires, frise et mentions légales. */
@media (max-width: 640px) {
  .hero, .hero-grid > div, .page-hero, .sec-intro, .sec-head, .form-intro, .callout, .callout > div,
  .card, .stand, .tier, .ticket, .people li, .artist, .guest, .sector, .halls li, .hall-letter + div,
  .release, .notice, .newsletter, .history-intro, .practical-group h3, .info-card, .terms-card,
  .champ-day h3, .champ-phase, .v-title, .v-source, .exp-grid > *, .stats li, .facts div, .site-footer, .legal,
  .prose:not(.narrow-sec .prose), .more, .note, .lead, .eyebrow, h1, h2, h3 { text-align: center; }
  .sec-intro, .lead, .form-intro { margin-left: auto; margin-right: auto; }
  .btns, .crumbs ol, .pays, .countdown, .stats, .card-social, .logos, .publics, .nl-form, .form-end,
  .tier-group, .tier-groups, .hero-date { justify-content: center; }
  .btns { display: flex; flex-wrap: wrap; }
  .halls li { flex-direction: column; align-items: center; }
  .info-card dl div, .site-footer ul { text-align: center; }
  .site-footer ul { padding: 0; }
  .card .link, .callout .btns { margin-left: auto; margin-right: auto; }
  /* exceptions : lecture plus confortable alignée */
  .contact-form, .contact-form *, .checks li, .table-wrap, .schedule, .timeline, .ex-groups, .panel-names,
  .narrow-sec .prose, .history-more .card { text-align: start; }
  .contact-form .form-end { justify-content: center; }
}
