/* CinéClimat — charte : noir, blanc, vert genette, bleu mer ; Anton + Montserrat */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --green: #6CC24A;
  --green-dark: #2E7D1A;
  --blue: #4FC3F7;
  --ink-2: #404040;
  --grey: #A3A3A3;
  --grey-2: #D4D4D4;
  --card: #111111;
  --line: #262626;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Montserrat', 'Noto Sans Arabic', Arial, sans-serif;
  --arabic: 'Montserrat', 'Noto Sans Arabic', Arial, sans-serif;
  --display-ar: 'Anton', 'Noto Kufi Arabic', 'Noto Sans Arabic', sans-serif;
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--sans); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: #8FD872; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
section, footer { scroll-margin-top: 76px; }
.ar { font-family: var(--arabic); }
.bw { filter: grayscale(1); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.self-start { align-self: flex-start; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--green); color: var(--black); padding: 12px 16px; z-index: 100; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Sections */
.light { background: var(--white); color: var(--black); }
.dark { background: var(--black); color: var(--white); }
.green { background: var(--green); color: var(--black); }
.light > .wrap, .dark > .wrap, .green > .wrap { padding-top: 96px; padding-bottom: 96px; }

.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; }
.eyebrow--blue { color: var(--blue); }
.eyebrow--green { color: var(--green-dark); }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; }
.lead { margin: 0; font-size: 18px; line-height: 1.65; }
.lead--sm { font-size: 17px; }
.muted { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.head { display: flex; flex-wrap: wrap; gap: 16px 56px; align-items: flex-end; justify-content: space-between; }
.head__aside { flex: 0 1 460px; margin: 0; font-size: 16px; color: var(--grey-2); }
.head__aside--dark { color: var(--ink-2); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--green { background: var(--green); color: var(--black); }
.btn--green:hover { background: #7ED35B; color: var(--black); }
.btn--outline { border-color: var(--white); color: var(--white); font-weight: 600; }
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #222; color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--black); border-bottom: 1px solid #1F1F1F; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); font-family: var(--display); font-size: 24px; line-height: 1; }
.brand:hover { color: var(--white); }
.brand__logo { width: 64px; height: 20px; color: var(--green); }
.logo-spots { fill: var(--black); }
.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.menu a { color: var(--white); text-decoration: none; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; }
.menu a:hover { color: var(--green); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.topbar__end { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border: 1px solid #333; border-radius: 999px; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 999px; color: var(--white); text-decoration: none; font-size: 13px; font-weight: 700; }
.langs a:hover { color: var(--green); }
.langs a[aria-current] { background: var(--white); color: var(--black); }
.langs a[lang=ar] { font-family: 'Noto Sans Arabic', var(--sans); font-size: 15px; line-height: 1; }

/* Bannière */
.hero__in { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero__text { flex: 1.3 1 520px; min-width: 0; display: flex; flex-direction: column; }
.hero__logo { width: min(100%, 460px); height: auto; color: var(--green); margin-top: 8px; }
.hero__title { margin: 12px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 10vw, 136px); line-height: .95; }
.hero__sub { margin: 6px 0 0; font-weight: 500; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .9em; text-transform: uppercase; }
.hero__dates { margin: 36px 0 0; font-family: var(--display); font-size: clamp(32px, 4vw, 52px); line-height: 1.05; color: var(--green); }
.hero__place { margin: 4px 0 0; font-weight: 600; font-size: 16px; letter-spacing: 6px; text-transform: uppercase; color: var(--blue); }
.hero__ar { margin: 20px 0 0; font-size: 18px; color: var(--grey-2); text-align: left; }
.hero__media { flex: 1 1 440px; min-width: 0; margin: 0; position: relative; }
.hero__media img { width: 100%; height: clamp(320px, 48vw, 560px); object-fit: cover; border-radius: var(--radius); }
.hero__media figcaption { position: absolute; inset-inline-start: 16px; bottom: 16px; background: var(--black); padding: 10px 16px; border-radius: 12px; font-size: 13px; color: var(--grey-2); }
.stripes { height: 18px; margin: 0 24px; background: repeating-linear-gradient(90deg, var(--green) 0 12px, var(--black) 12px 22px); }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.light > .stats { padding-top: 64px; padding-bottom: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--black); padding-top: 20px; }
.stat__value { align-self: flex-start; font-family: var(--display); font-size: clamp(44px, 4.6vw, 64px); line-height: 1; }
.stat__label { font-weight: 700; }
.stat__text { font-size: 14px; color: var(--ink-2); }

/* Texte + image */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split__media { flex: 1 1 380px; min-width: 0; width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); }
.split__media--tall { height: 580px; }
.split--even > * { flex: 1 1 420px; }
.quote { margin: 8px 0 0; padding: 20px 24px; background: #F4F4F4; border-radius: 16px; font-size: 17px; line-height: 1.8; }

/* Grilles */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }

.card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card__body p { margin: 0; font-size: 15px; color: var(--grey-2); }
.card__title { margin: 0; font-size: 18px; color: var(--green); }

/* Objectifs */
.objectives { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.objectives li { padding: 24px; padding-inline-start: 0; border-top: 2px solid var(--black); display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.num { font-family: var(--display); font-size: 28px; font-weight: 400; }

/* Programme */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab { min-height: 64px; padding: 10px 24px; border-radius: 16px; border: 1.5px solid #333; background: var(--black); color: var(--white); font-family: var(--sans); cursor: pointer; text-align: start; display: flex; flex-direction: column; }
.tab:hover { border-color: var(--green); }
.tab__num { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.tab__label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); }
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--black); }
.tab[aria-selected="true"] .tab__label { color: var(--black); font-weight: 700; }
.day { background: var(--card); border-radius: 24px; padding: 12px 32px 24px; }
.day__title { margin: 20px 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.event { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event__time { flex: 0 0 96px; font-family: var(--display); font-size: 26px; line-height: 1.2; color: var(--blue); }
.event__main { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.event__title { font-size: 18px; font-weight: 700; }
.event__who { font-size: 15px; color: var(--grey); }
.pill { align-self: center; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border: 1px solid #333; border-radius: 999px; color: var(--grey-2); }

/* Compétition */
.box { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.box p, .box ul { margin: 0; font-size: 15px; }
.box ul { padding: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
.box--dark { background: var(--black); color: var(--white); }
.box__title { margin: 0; font-size: 15px; color: var(--green); letter-spacing: 1px; text-transform: uppercase; }
.box--line { border: 1px solid #333; font-size: 16px; }
.box__kicker { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); }
.prizes-wrap { padding-bottom: 96px; gap: 28px; }
.prize { border-radius: var(--radius); padding: 28px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.prize__name { font-family: var(--display); font-size: clamp(24px, 2.5vw, 32px); line-height: 1.1; }
.prize__second { align-self: flex-start; font-size: 16px; font-weight: 600; }
.prize__second.ar { font-family: 'Noto Sans Arabic', var(--sans); }
.prize--green { background: var(--green); }
.prize--black { background: var(--black); color: var(--white); }
.prize--black .prize__second { color: var(--grey-2); font-weight: 400; }
.prize--white { background: var(--white); border: 2px solid var(--black); }

/* Jury */
.person { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.person img, .person__ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.person__ph { background: var(--card); display: flex; align-items: center; justify-content: center; color: #333; }
.person__ph svg { width: 70%; }
.person figcaption { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--green); padding-top: 14px; }
.person__name { font-size: 20px; font-weight: 700; }
.person__role { font-size: 14px; color: var(--grey); }

/* Ateliers */
.workshop { background: var(--black); color: var(--white); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.workshop__num { align-self: flex-start; background: var(--green); color: var(--black); font-family: var(--display); font-size: 24px; padding: 4px 14px; border-radius: 10px; }
.workshop__title { margin: 8px 0 0; font-size: 22px; line-height: 1.3; }
.workshop__who { margin: 0; font-size: 15px; color: var(--green); font-weight: 600; }
.workshop__when { margin: auto 0 0; font-size: 15px; color: var(--blue); font-weight: 600; }

/* Rencontres */
.meetings { display: flex; flex-direction: column; gap: 12px; }
.meeting { background: var(--card); border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.meeting__when { flex: 0 0 150px; font-weight: 700; color: var(--green); }
.meeting__text { flex: 1 1 280px; min-width: 0; color: #E5E5E5; }
.note { margin: 8px 0 0; font-size: 15px; color: var(--grey); }

/* Pays */
.countries { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.green > .countries { padding-top: 72px; padding-bottom: 72px; }
.countries__count { flex: 1 1 280px; }
.countries__count h2 { margin: 4px 0 0; font-size: 22px; }
.big { font-family: var(--display); font-size: 96px; line-height: 1; }
.chips { flex: 999 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border: 1.5px solid var(--black); border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip--fill { background: var(--black); color: var(--white); }

/* Actualités */
.news { text-decoration: none; color: var(--black); border: 1.5px solid #E5E5E5; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; transition: border-color .15s ease; }
a.news:hover { color: var(--black); border-color: var(--black); }
.news__img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 4px; height: 200px; object-fit: cover; border-radius: 18px 18px 0 0; }
.news__date { font-size: 13px; font-weight: 700; color: var(--green-dark); letter-spacing: 1px; text-transform: uppercase; }
.news__title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.news__more { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: underline; }

/* Partenaires */
.partner { background: var(--card); color: var(--white); text-decoration: none; border-radius: var(--radius); padding: 28px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
a.partner:hover { color: var(--white); outline: 1.5px solid var(--green); }
.partner__type { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.partner__name { font-family: var(--display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.1; overflow-wrap: anywhere; }
.partner__logo { max-height: 80px; width: auto; object-fit: contain; background: var(--white); border-radius: 10px; padding: 8px; }

/* Équipe */
.team { margin: 0; }
.team > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid #E5E5E5; }
.team dt { color: var(--ink-2); }
.team dd { margin: 0; font-weight: 700; }
.assoc { background: #F4F4F4; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.assoc .eyebrow { margin: 0; }
.assoc__img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-top: auto; }

/* Pied de page */
.footer { background: var(--black); }
.dots { height: 18px; margin: 0 24px; background: radial-gradient(circle, var(--black) 3px, transparent 3.5px) 0 0 / 22px 18px, var(--green); border-radius: 6px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.footer__brand { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__logo { width: 200px; height: 64px; color: var(--green); }
.footer__name { font-family: var(--display); font-size: 44px; line-height: 1; }
.footer__sub { font-weight: 500; font-size: 13px; letter-spacing: .9em; text-transform: uppercase; }
.footer__text { margin: 8px 0 0; font-size: 15px; color: var(--grey); max-width: 380px; }
.social { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.footer__col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col address { font-style: normal; color: #E5E5E5; }
.footer__col > a { align-self: flex-start; }
.footer__col label { color: #E5E5E5; }
.footer__h { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.nl { display: flex; gap: 8px; flex-wrap: wrap; }
.nl input[type=email] { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #404040; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 15px; }
.nl input[type=email]:focus { border-color: var(--green); outline: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.nl__msg { margin: 0; font-size: 14px; font-weight: 600; }
.nl__msg--ok { color: var(--green); }
.nl__msg--exists { color: var(--blue); }
.nl__msg--error { color: #FF8A80; }
.footer__bottom { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid #1F1F1F; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--grey); }

/* ------------------------------------------------------------------ Multipage */
.menu a[aria-current="page"] { color: var(--green); }
.menu a[aria-current="page"]::after { content: ''; display: block; height: 2px; background: var(--green); margin-top: 2px; }
.wrap--narrow { max-width: 860px; }
.light--top > .wrap { padding-top: 64px; }

/* Raccourcis de la page Festival */
.subnav { background: var(--black); border-top: 1px solid #1F1F1F; border-bottom: 1px solid #1F1F1F; position: relative; }
.subnav__in { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0 auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #333; border-radius: 999px; color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.subnav a:hover { border-color: var(--green); color: var(--green); }

/* En-tête des pages intérieures */
.page-hero__in { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-end; padding-top: 72px; padding-bottom: 56px; }
.page-hero__in--media { align-items: center; }
.page-hero__text { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.page-hero__text .eyebrow { margin: 0; }
.page-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8vw, 104px); line-height: .98; }
.page-hero__intro { margin: 0; font-size: 18px; color: var(--grey-2); max-width: 680px; }
.page-hero__img { flex: 1 1 360px; min-width: 0; width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); }
[dir=rtl] .page-title { font-family: var(--display-ar); font-weight: 800; font-synthesis: none; font-size: clamp(40px, 6vw, 72px); line-height: 1.3; }

/* Texte enrichi */
.prose { font-size: 17px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--green-dark); }
.prose h2, .prose h3 { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.35; margin: 1.6em 0 .6em; }
[dir=rtl] .prose { line-height: 2; font-size: 18px; }

/* À propos */
.story { display: flex; flex-direction: column; gap: 0; }
.story__block { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 40px 0; border-top: 2px solid var(--black); }
.story__block:first-child { border-top: 0; padding-top: 0; }
.story__num { flex: 0 0 96px; font-family: var(--display); font-size: 56px; line-height: 1; color: var(--green-dark); }
.story__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.objectives--wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.objectives--wide li { font-weight: 500; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 18px 20px; font-size: 16px; }
.checks svg { flex: none; color: var(--green); margin-top: 1px; }
.person--light figcaption { border-top-color: var(--black); }
.person--light .person__role { color: var(--ink-2); }
.person--light .person__ph { background: #F4F4F4; color: #D4D4D4; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.logos li > a, .logos li > img, .logos li > span { display: flex; align-items: center; justify-content: center; height: 120px; background: var(--white); border-radius: 16px; padding: 16px; }
.logos img { width: 100%; height: 100%; object-fit: contain; }
.logos li > a > img { width: 100%; height: 100%; object-fit: contain; }
.logos__name { color: var(--black); font-weight: 700; text-align: center; }
.logos a:hover { outline: 3px solid var(--green); outline-offset: 2px; }

/* Activités */
.act-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--black); color: var(--white); text-decoration: none; aspect-ratio: 4 / 5; }
.act-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; opacity: .85; }
.act-card:hover img { transform: scale(1.04); opacity: .7; }
.act-card__body { position: absolute; inset: auto 0 0 0; padding: 20px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.act-card__title { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.act-card__count { font-size: 13px; font-weight: 600; color: var(--green); }
.act-card:hover { color: var(--white); }
[dir=rtl] .act-card__title { font-family: var(--display-ar); font-weight: 800; font-size: 28px; line-height: 1.4; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery__item { display: flex; flex-direction: column; gap: 8px; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.gallery__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__cap { font-size: 14px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.lightbox__fig figcaption { color: var(--grey-2); font-size: 15px; text-align: center; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #444; background: #111; color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn:hover { border-color: var(--green); color: var(--green); }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
[dir=rtl] .lightbox__prev, [dir=rtl] .lightbox__next { transform: translateY(-50%) scaleX(-1); }

/* Actualités */
.news__summary { font-size: 15px; color: var(--ink-2); }
.feature { display: flex; flex-wrap: wrap; gap: 0; border-radius: 24px; overflow: hidden; background: var(--black); color: var(--white); text-decoration: none; }
.feature:hover { color: var(--white); }
.feature:hover .feature__title { text-decoration: underline; }
.feature__img { flex: 1.2 1 420px; min-width: 0; width: 100%; height: 400px; object-fit: cover; }
.feature__body { flex: 1 1 360px; min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature__body .news__date { color: var(--green); }
.feature__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.3; }
.feature__summary { color: var(--grey-2); font-size: 16px; }
.feature .news__more { margin-top: 8px; }

/* Article */
.article { background: var(--white); color: var(--black); padding-bottom: 72px; }
.article__head { background: var(--black); color: var(--white); padding: 56px 0 120px; }
.article__head .wrap { display: flex; flex-direction: column; gap: 16px; }
.article__head .eyebrow { margin: 0; }
.article__back { color: var(--grey-2); text-decoration: none; font-size: 14px; font-weight: 600; align-self: flex-start; }
.article__back:hover { color: var(--green); }
.arrow { display: inline-block; }
[dir=rtl] .arrow { transform: scaleX(-1); }
.article__title { margin: 0; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.2; font-weight: 700; }
.article__lead { margin: 0; font-size: 19px; color: var(--grey-2); }
.article__img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); margin-top: -80px; margin-bottom: 40px; }
.prose--article { font-size: 18px; }
.article__source { margin-top: 24px; font-size: 14px; color: var(--ink-2); }
[dir=rtl] .article__title { line-height: 1.5; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.contact__info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__item { display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.contact__item p, .contact__item address { margin: 0; font-style: normal; }
.contact__item a { color: var(--black); font-weight: 600; align-self: flex-start; }
.contact__item a:hover { color: var(--green-dark); }
.contact__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green-dark); }
[dir=rtl] .contact__label { letter-spacing: 0; font-size: 14px; }
.form-card { flex: 2 1 480px; min-width: 0; background: #F4F4F4; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ffield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ffield--wide { grid-column: 1 / -1; }
.ffield label { font-size: 14px; font-weight: 600; }
.ffield input, .ffield textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #CFCFCF; border-radius: 12px; background: var(--white); font-family: var(--sans); font-size: 16px; color: var(--black); }
.ffield textarea { resize: vertical; }
.ffield input:focus, .ffield textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(108, 194, 74, .35); }
.form-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.form-msg { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-msg--ok { background: #E7F6E0; color: #1D5410; }
.form-msg--error { background: #FDECEA; color: #B42318; }

/* Réseaux sociaux */
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #333; color: var(--white); }
.social a:hover { border-color: var(--green); color: var(--green); }
.social--dark a { border-color: #CFCFCF; color: var(--black); }
.social--dark a:hover { border-color: var(--black); color: var(--green-dark); }
.footer__link { color: #E5E5E5; text-decoration: none; align-self: flex-start; }
.footer__link:hover { color: var(--green); }

@media (max-width: 600px) {
  .page-hero__in { padding-top: 40px; padding-bottom: 40px; }
  .page-hero__img { height: 260px; }
  .story__num { flex-basis: 100%; font-size: 40px; }
  .feature__img { height: 240px; }
  .feature__body { padding: 24px; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .article__head { padding: 40px 0 96px; }
  .article__img { margin-top: -64px; }
  .lightbox { padding: 56px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  [dir=rtl] .lightbox__prev, [dir=rtl] .lightbox__next { transform: scaleX(-1); }
}

/* ------------------------------------------------- Toutes tailles d'écran */
img, video { height: auto; }
h1, h2, h3, .news__title, .event__title, .feature__title { overflow-wrap: break-word; }

/* Grands écrans (iMac, écrans 2K/4K) */
@media (min-width: 1600px) {
  .wrap { max-width: 1440px; }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  .wrap { max-width: 1600px; }
}

/* Portables et tablettes paysage */
@media (max-width: 1279px) {
  .objectives--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .objectives:not(.objectives--wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split__media, .split__media--tall { height: clamp(300px, 52vw, 480px); }
  .light > .wrap, .dark > .wrap, .green > .wrap { padding-top: 80px; padding-bottom: 80px; }
}
/* Tablettes portrait */
@media (max-width: 820px) {
  .hero__in { gap: 32px; }
  .head__aside { flex-basis: 100%; }
  .feature__img { flex-basis: 100%; height: clamp(220px, 50vw, 360px); }
}
/* Téléphones */
@media (max-width: 599px) {
  .objectives, .objectives--wide { grid-template-columns: minmax(0, 1fr); }
  .objectives li { padding-inline-end: 0; }
  .act-card { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .event__time { flex-basis: 100%; }
  .meeting__when { flex-basis: 100%; }
  .story__block { padding: 28px 0; }
}
/* Petits téléphones (iPhone SE, 320 px) */
@media (max-width: 380px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .stripes, .dots { margin: 0 12px; }
  .topbar__in { gap: 6px; }
  .brand { font-size: 19px; }
  .langs { padding: 2px; }
  .langs a { min-width: 32px; padding: 0 6px; min-height: 34px; font-size: 12px; }
  .menu-btn { width: 40px; }
  .hero__title { font-size: 52px; }
  .hero__sub { letter-spacing: .55em; font-size: 12px; }
  .footer__sub { letter-spacing: .55em; }
  .page-title { font-size: 44px; }
  .h2 { font-size: 34px; }
  .day { padding: 6px 14px 14px; }
  .tab { padding: 8px 14px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 18px; }
}
/* Écrans peu hauts (portables 13", téléphones à l'horizontale) */
@media (max-height: 560px) and (orientation: landscape) {
  .topbar { position: static; }
  .lightbox__fig img { max-height: calc(100vh - 80px); }
}

/* ---------------------------------------------------------- Application */
.topbar { padding-top: env(safe-area-inset-top); }
.footer__bottom { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 601px) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
}
[data-install][hidden] { display: none !important; }
.install-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 8px; margin-top: 8px; border: 1px solid #333; border-radius: 16px; background: #111; color: var(--white); font-family: var(--sans); cursor: pointer; text-align: start; }
.install-btn:hover { border-color: var(--green); }
.install-btn img { width: 36px; height: 36px; border-radius: 9px; }
.install-btn span { display: flex; flex-direction: column; line-height: 1.3; }
.install-btn strong { font-size: 15px; }
.install-btn small { font-size: 12px; color: var(--grey); }
.install-btn--menu { margin: 0; min-height: 48px; padding: 0 14px; gap: 10px; width: 100%; border-color: var(--green); color: var(--green); font-size: 15px; font-weight: 700; }
.menu__install { display: none; }
.ios-help { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.8); display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.ios-help[hidden] { display: none; }
.ios-help__box { width: 100%; max-width: 440px; background: var(--white); color: var(--black); border-radius: 24px; padding: 28px 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ios-help__box img { border-radius: 16px; }
.ios-help__box h2 { margin: 0; font-size: 20px; }
.ios-help__box ol { margin: 0; padding: 0; padding-inline-start: 22px; text-align: start; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.ios-share { vertical-align: -5px; color: #0A84FF; }
.ios-help__box .btn { width: 100%; }
@media (display-mode: standalone) {
  [data-install] { display: none !important; }
}

/* ------------------------------------------------------- Page d'accueil */
.home-hero__in { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: 64px; padding-bottom: 40px; }
.home-hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-hero__text .eyebrow { margin: 0; }
.home-hero__text .actions { margin-top: 12px; }
.home-hero__title { font-size: clamp(44px, 6vw, 84px); }
.vplayer-wrap { flex: 1.3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vplayer { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #111; }
.vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; }
.vplayer__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.vplayer__poster:hover img { opacity: 1; }
.vplayer__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--black); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: transform .15s; }
.vplayer__poster:hover .vplayer__play { transform: translate(-50%, -50%) scale(1.08); }
.vplayer__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--grey-2); }
.vthumbs__h { margin: 8px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
[dir=rtl] .vthumbs__h { letter-spacing: 0; font-size: 15px; }
.vthumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.vthumb { width: 100%; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; text-align: start; display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); }
.vthumb__img { position: relative; display: block; aspect-ratio: 16 / 9; background: #1A1A1A; border-radius: 12px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; }
.vthumb__img img { width: 100%; height: 100%; object-fit: cover; }
.vthumb__play { position: absolute; inset-inline-start: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.75); color: var(--white); display: flex; align-items: center; justify-content: center; }
.vthumb:hover .vthumb__img, .vthumb.is-current .vthumb__img { outline-color: var(--green); }
.vthumb.is-current .vthumb__play { background: var(--green); color: var(--black); }
.vthumb__title { font-size: 14px; font-weight: 600; }
.vthumbs__more { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 32px; color: var(--white); font-weight: 600; text-decoration: none; }
.vthumbs__more:hover { color: var(--green); }
.home-hero .stripes { margin-top: 8px; }
.fest-banner { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.fest-banner__img { flex: 1 1 380px; min-width: 0; width: 100%; height: clamp(260px, 36vw, 440px); object-fit: cover; border-radius: var(--radius); }
.fest-banner__text { flex: 1.2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.fest-banner__logo { width: 180px; height: auto; color: var(--black); }
.fest-banner__logo .logo-spots { fill: var(--green); }
.fest-banner__eyebrow { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
[dir=rtl] .fest-banner__eyebrow { letter-spacing: 0; font-size: 15px; }
.btn--line-dark { border-color: var(--black); color: var(--black); }
.btn--line-dark:hover { background: var(--black); color: var(--white); }
@media (max-width: 599px) {
  .home-hero__in { padding-top: 36px; }
  .vplayer__play { width: 60px; height: 60px; }
  .vthumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Version arabe (de droite à gauche) */
[dir=rtl] body { font-family: var(--arabic); line-height: 1.85; }
[dir=rtl] .h2, [dir=rtl] .h3, [dir=rtl] .hero__dates, [dir=rtl] .tab__num, [dir=rtl] .event__time,
[dir=rtl] .prize__name, [dir=rtl] .partner__name, [dir=rtl] .countries__count h2 {
  font-family: var(--display-ar); font-weight: 800; font-synthesis: none;
}
[dir=rtl] .h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.4; }
[dir=rtl] .h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.4; }
[dir=rtl] .hero__dates { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.4; }
[dir=rtl] .tab__num { font-size: 22px; line-height: 1.5; }
[dir=rtl] .event__time { font-size: 20px; line-height: 1.6; }
[dir=rtl] .prize__name, [dir=rtl] .partner__name { font-size: 26px; line-height: 1.4; }
[dir=rtl] .eyebrow, [dir=rtl] .hero__place, [dir=rtl] .tab__label, [dir=rtl] .pill, [dir=rtl] .day__title,
[dir=rtl] .box__title, [dir=rtl] .box__kicker, [dir=rtl] .partner__type, [dir=rtl] .news__date, [dir=rtl] .footer__h {
  letter-spacing: 0; text-transform: none;
}
[dir=rtl] .eyebrow { font-size: 15px; }
[dir=rtl] .hero__place { font-size: 18px; }
[dir=rtl] .tab__label, [dir=rtl] .pill, [dir=rtl] .partner__type { font-size: 13px; }
[dir=rtl] .event__title, [dir=rtl] .workshop__title { line-height: 1.6; }

/* Téléphone */
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .topbar__in { flex-wrap: wrap; gap: 12px; }
  .topbar__end { order: 2; margin-inline-start: auto; }
  .menu { display: none; order: 4; width: 100%; flex-direction: column; gap: 0; padding: 8px 0; }
  .menu.is-open { display: flex; }
  .menu a { display: block; padding: 12px 0; font-size: 16px; border-top: 1px solid #1F1F1F; }
  .menu__install { display: block; padding: 12px 0; border-top: 1px solid #1F1F1F; }
}
@media (max-width: 600px) {
  .light > .wrap, .dark > .wrap, .green > .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero__in { padding-top: 40px; }
  .hero__media img { height: 380px; }
  .split__media, .split__media--tall { height: 340px; }
  .day { padding: 8px 18px 16px; }
  .topbar__cta { display: none !important; }
  .brand__logo { display: none; }
  .brand { font-size: 22px; }
  .langs a { min-width: 34px; padding: 0 8px; }
  .stripes, .dots { margin: 0 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .prizes-wrap { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
