/* Kantaoui Sailing Week — site public
   Palette : bleu marine, turquoise, blanc, sable. Typo : Barlow Condensed (numéros de voile) + IBM Plex Sans / Plex Sans Arabic.
   Les propriétés logiques (inline-start / inline-end) assurent l'affichage de droite à gauche en arabe. */

:root {
  --navy: #0A2342;
  --navy-2: #133B66;
  --sea: #14A3A8;
  --sea-dark: #0B6F78;
  --sea-light: #CDEFF0;
  --sand: #E9DCC3;
  --sand-light: #F6F1E7;
  --mist: #EEF3F6;
  --white: #FFFFFF;
  --ink: #0A2342;
  --muted: #4A5B70;
  --line: #D5DEE6;
  --ok: #1B7F4B;
  --warn: #9A5B00;
  --danger: #B42318;
  --brass: #B8893A;

  --f-display: "Barlow Condensed", "IBM Plex Sans Arabic", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --wrap: 1180px;
  --r: 4px;
  --shadow: 0 1px 2px rgba(10, 35, 66, .08), 0 8px 24px -12px rgba(10, 35, 66, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white);
}
.lang-ar body, body.lang-ar { font-family: "IBM Plex Sans Arabic", var(--f-body); line-height: 1.75; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-dark); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; color: var(--navy); letter-spacing: .005em; }
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.45rem; }
.lang-ar h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.fineprint { font-size: .875rem; color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1.2 var(--f-body); padding: .8em 1.4em; border-radius: var(--r);
  border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { font-size: .9rem; padding: .55em 1em; }
.btn-lg { font-size: 1.1rem; padding: .95em 1.6em; }
.btn-sea { background: var(--sea); color: var(--navy); border-color: var(--sea); }
.btn-sea:hover { background: #1BB8BD; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: var(--danger); color: #fff; }
.btn.is-disabled { opacity: .7; cursor: default; }
.btn-link { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.link-strong { font-weight: 600; color: var(--navy); text-decoration-color: var(--sea); text-decoration-thickness: 2px; }

/* ---------- En-tête ---------- */
.notice-bar { background: var(--sand); color: var(--navy); font-size: .875rem; text-align: center; padding: .45rem 16px; }
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; max-width: 1440px; }
.site-nav .btn, .nav-tools .btn { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; margin-inline-end: auto; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; color: var(--sea); }
.brand-logo { height: 44px; width: auto; }
.brand-text { font-family: var(--f-display); font-size: 1.35rem; line-height: 1; letter-spacing: .01em; }
.brand-text strong { font-weight: 700; }
.brand-text span { font-weight: 500; color: var(--sea-light); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: #fff; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; margin: auto; transition: transform .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; }
.site-nav ul a { color: #DCE6F0; text-decoration: none; font-size: .9rem; padding: .45rem .5rem; border-radius: var(--r); display: block; }
.site-nav ul a:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-nav ul a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--sea); border-radius: 0; }
.nav-tools { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r); overflow: hidden; }
.lang-switch a { color: #DCE6F0; text-decoration: none; font-size: .8rem; font-weight: 600; padding: .35rem .5rem; }
.lang-switch a[aria-current="true"] { background: var(--sea); color: var(--navy); }
@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .site-nav ul { flex-wrap: wrap; white-space: normal; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 1rem 16px 1.5rem; border-top: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { font-size: 1.05rem; padding: .7rem .4rem; }
  .nav-tools { justify-content: space-between; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Messages ---------- */
.flashes { padding-top: 1rem; }
.flash { padding: .85rem 1rem; border-radius: var(--r); margin-bottom: .5rem; border-inline-start: 4px solid; }
.flash-success { background: #E7F5EE; border-color: var(--ok); }
.flash-error { background: #FDECEA; border-color: var(--danger); }
.flash-info { background: var(--mist); border-color: var(--sea); }

/* ---------- Héro ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 0; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,35,66,.92) 0%, rgba(10,35,66,.65) 55%, rgba(10,35,66,.35) 100%); }
[dir="rtl"] .hero.has-photo::before { background: linear-gradient(270deg, rgba(10,35,66,.92) 0%, rgba(10,35,66,.65) 55%, rgba(10,35,66,.35) 100%); }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sea); opacity: .35; z-index: -1; }
.hero.has-photo .hero-chart { display: none; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: end; }
.hero-edition { color: var(--sea-light); font-weight: 500; margin-bottom: .75rem; }
.hero-title { font-size: clamp(3.4rem, 10vw, 7.6rem); line-height: .86; color: #fff; margin-bottom: 1.25rem; letter-spacing: -.01em; }
.lang-ar .hero-title { font-family: var(--f-display); line-height: .9; } /* le nom reste en caractères latins */
.hero-when { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: 1rem; color: var(--sand); }
.lang-ar .hero-when { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1.35rem; }
.hero-lead { max-width: 52ch; color: #DCE6F0; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-deadline { margin-top: .9rem; font-size: .92rem; color: var(--sea-light); }
.hero-sail { align-self: end; justify-self: center; width: min(100%, 340px); animation: sail-in 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero-sail svg { width: 100%; }
.sail-main { fill: #fff; }
.sail-jib { fill: var(--sand); }
.hull { fill: var(--sea); }
.sail-num { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 58px; fill: var(--navy); letter-spacing: 1px; }
@keyframes sail-in { from { opacity: 0; transform: translateX(-40px) rotate(-2deg); } to { opacity: 1; transform: none; } }
[dir="rtl"] .hero-sail { animation-name: sail-in-rtl; }
@keyframes sail-in-rtl { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sail { display: none; }
}

/* Compte à rebours façon tableau de départ */
.countdown { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid rgba(255,255,255,.18); }
.countdown-label { margin: 0; color: var(--sea-light); font-size: .95rem; max-width: 16ch; }
.countdown-cells { display: flex; gap: .5rem; }
.countdown-cells div { background: #fff; color: var(--navy); min-width: 4.6rem; padding: .4rem .5rem .35rem; text-align: center; border-top: 4px solid var(--sea); border-radius: 2px; }
.countdown-cells span { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-cells small { font-size: .72rem; color: var(--muted); }
.countdown-done { margin: 0; font-weight: 600; color: var(--sand); }
@media (max-width: 480px) { .countdown-cells div { min-width: 0; flex: 1; } .countdown-cells span { font-size: 1.9rem; } .countdown-cells { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sand { background: var(--sand-light); }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--navy); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; }

/* Programme (aperçu) */
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.day { border-top: 3px solid var(--navy); padding-top: .9rem; }
.day-date { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .75rem; color: var(--muted); }
.day-num { font-family: "Barlow Condensed", sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.day li { padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.day time { font-weight: 600; color: var(--sea-dark); margin-inline-end: .35rem; font-variant-numeric: tabular-nums; }

/* Podium des prix */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; }
.podium-step { background: var(--navy); color: #fff; padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--r) var(--r) 0 0; position: relative; }
.podium-step.rank-1 { order: 2; min-height: 21rem; background: var(--navy); border-top: 6px solid var(--brass); }
.podium-step.rank-2 { order: 1; min-height: 18rem; background: var(--navy-2); border-top: 6px solid #A9B4C0; }
.podium-step.rank-3 { order: 3; min-height: 16rem; background: #1D4C7C; border-top: 6px solid #B07A4E; }
.podium-rank { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 4.5rem; line-height: .9; color: var(--sea); display: block; margin-bottom: .5rem; }
.podium-step h3 { color: #fff; font-size: 1.35rem; }
.podium-amount { font-family: "Barlow Condensed", sans-serif; font-size: 2.3rem; font-weight: 700; line-height: 1; margin: .6rem 0 .3rem; color: var(--sand); }
.podium-kind { font-size: 1.6rem; }
.podium-eur { color: #BFD0E0; font-size: .92rem; }
.podium-desc { color: #DCE6F0; font-size: .95rem; margin-top: .75rem; }
.podium + .fineprint { margin-top: 1rem; }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; } .podium-step { order: 0 !important; min-height: 0 !important; border-radius: var(--r); } }

/* Actualités */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card a { display: flex; flex-direction: column; height: 100%; background: #fff; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.news-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--sea); }
.news-card img, .news-placeholder { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.news-placeholder { background: var(--navy-2); color: var(--sea); display: grid; place-items: center; padding: 1.5rem 3rem; }
.news-body { padding: 1.1rem 1.2rem 1.4rem; }
.news-body time { font-size: .85rem; color: var(--muted); }
.news-body h3 { margin: .35rem 0 .5rem; font-size: 1.4rem; }
.news-body p { font-size: .97rem; color: var(--muted); margin: 0; }

/* Partenaires */
.logo-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.logo-row img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; }
.logo-row img:hover { filter: none; opacity: 1; }
.logo-row span { font-weight: 600; color: var(--muted); }

/* Bandeau d'appel */
.cta-band { background: var(--sea); color: var(--navy); padding: 2.5rem 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band .btn-sea { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta-band .btn-sea:hover { background: var(--navy-2); }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--navy); color: #fff; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.75rem); background-image: linear-gradient(transparent calc(100% - 6px), var(--sea) 0); }
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head .lead { color: #C9D7E4; margin: .5rem 0 0; }
.back-link { color: var(--sea-light); }
.page-body { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.narrow { max-width: 760px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; text-align: start; }
.prose th { background: var(--mist); }
.prose blockquote { margin: 1.25em 0; padding: .9em 1.1em; background: var(--sand-light); border-inline-start: 4px solid var(--sand); }
.prose-extra { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.empty { padding: 2rem; background: var(--mist); border-radius: var(--r); color: var(--muted); }
.callout { background: var(--sand-light); border-inline-start: 4px solid var(--brass); padding: 1.25rem 1.4rem; border-radius: var(--r); margin: 2rem 0; }
.callout h2 { font-size: 1.6rem; }
.callout-ok { background: #E7F5EE; border-color: var(--ok); }
.eligibility { margin-top: 2.5rem; padding: 1.5rem; border: 2px solid var(--navy); border-radius: var(--r); max-width: 72ch; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { padding: .4rem 0; padding-inline-start: 1.8rem; position: relative; }
.check-list li::before { position: absolute; inset-inline-start: 0; font-weight: 700; }
.check-list .yes::before { content: "✓"; color: var(--ok); }
.check-list .no::before { content: "✕"; color: var(--danger); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .5rem; border-radius: 2px; background: var(--mist); color: var(--navy); }
.tag-req { background: #FDECEA; color: var(--danger); }

/* Programme détaillé */
.day-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; position: sticky; top: 68px; background: #fff; padding: .6rem 0; z-index: 5; border-bottom: 1px solid var(--line); }
.day-tabs a { text-decoration: none; color: var(--navy); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: var(--r); display: flex; align-items: baseline; gap: .35rem; font-size: .9rem; }
.day-tabs .day-num { font-size: 1.4rem; }
.day-tabs a:hover { border-color: var(--navy); }
.timeline-day { margin-bottom: 3rem; scroll-margin-top: 140px; }
.timeline { border-inline-start: 2px solid var(--line); margin-inline-start: .4rem; }
.tl-item { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0 1rem 1.25rem; padding-inline: 1.25rem 0; position: relative; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -7px; top: 1.45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--sea); }
.tl-item.cat-ceremony::before, .tl-item.cat-social::before { border-color: var(--brass); }
.tl-item.cat-race::before { background: var(--sea); }
.tl-time { white-space: nowrap; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--navy); margin: 0; font-variant-numeric: tabular-nums; }
.tl-body h3 { margin-bottom: .3rem; }
.tl-body p { margin-bottom: .4rem; }
.tl-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .9rem; color: var(--muted); align-items: center; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: .2rem; } }

/* Documents */
.doc-list { display: grid; gap: 0; border-top: 2px solid var(--navy); }
.doc-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.doc-icon { width: 32px; color: var(--danger); }
.doc-info h2 { font-size: 1.45rem; margin-bottom: .25rem; }
.doc-info p { margin: .25rem 0 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--muted); align-items: center; }
@media (max-width: 600px) { .doc-item { grid-template-columns: 32px 1fr; } .doc-item .btn, .doc-item > .muted { grid-column: 2; justify-self: start; } }

/* Galerie */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter-chips a { text-decoration: none; color: var(--navy); padding: .4rem .9rem; border-radius: 99px; border: 1px solid var(--line); font-size: .92rem; }
.filter-chips a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r); }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding-top: .4rem; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--r); }

/* Infos pratiques */
.map { margin: 2.5rem 0 0; max-width: 72ch; }
.map iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--r); }
.map figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }

/* Partenaires (page) */
.partner-tier { margin-bottom: 3rem; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.partner { border-top: 2px solid var(--navy); padding-top: 1rem; }
.partner-logo { height: 90px; display: flex; align-items: center; margin-bottom: .75rem; }
.partner-logo img { max-height: 80px; width: auto; }
.partner-logo span { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.partner h3 { font-size: 1.25rem; }
.partner p { font-size: .95rem; color: var(--muted); }

/* FAQ */
.faq section { max-width: 80ch; margin-bottom: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sea-dark); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 0 1.2rem; color: var(--muted); max-width: 70ch; }

/* ---------- Formulaires ---------- */
.form .field { margin-bottom: 1.15rem; }
.form label, .form .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1.5px solid #AEBBC8; border-radius: var(--r); background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--sea-dark); outline: 3px solid var(--sea-light); outline-offset: 0; }
.form input[type=file] { font: inherit; font-size: .95rem; padding: .6rem; border: 1.5px dashed #AEBBC8; border-radius: var(--r); width: 100%; background: var(--mist); }
.form .is-invalid, .form [aria-invalid="true"] { border-color: var(--danger) !important; }
.hint { font-size: .86rem; color: var(--muted); margin: .3rem 0 0; }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; margin: .35rem 0 0; }
.req { color: var(--danger); }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; margin-bottom: .75rem !important; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--sea-dark); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.inline-field { display: flex; gap: .5rem; }
.inline-field input { flex: 1; min-width: 0; }
.error-summary { background: #FDECEA; border: 2px solid var(--danger); padding: 1rem 1.25rem; border-radius: var(--r); margin-bottom: 1.5rem; }
.error-summary ul { margin: .25rem 0 0; padding-inline-start: 1.2rem; }

.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list li { display: grid; gap: .1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* Formulaire d'inscription en étapes */
.reg-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.reg-aside { position: sticky; top: 90px; font-size: .95rem; }
.reg-aside h2 { font-size: 1.5rem; }
@media (max-width: 900px) { .reg-layout { grid-template-columns: 1fr; gap: 1.5rem; } .reg-aside { position: static; } }
.reg-form fieldset { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.reg-form legend { font-family: var(--f-display); font-weight: 700; font-size: 2rem; color: var(--navy); padding: 0; margin-bottom: .5rem; }
.lang-ar .reg-form legend { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1.6rem; }
.step-help { color: var(--muted); margin-bottom: 1.25rem; max-width: 65ch; }
.subhead { margin-top: 2rem; font-size: 1.5rem; }
.wizard-on .step { display: none; }
.wizard-on .step.is-active { display: block; }
.wizard-on [data-submit-row] { display: none; }
.wizard-on.on-last [data-submit-row] { display: flex; }
.step-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.wizard-on .step-nav { display: flex; }
.on-last [data-next] { display: none; }
.on-first [data-prev] { visibility: hidden; }
.submit-row { justify-content: flex-end; margin-top: 1rem; }
.stepper { display: flex; gap: .25rem; margin-bottom: 2rem; counter-reset: s; }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; color: var(--muted); padding-top: .55rem; border-top: 4px solid var(--line); cursor: pointer; }
.stepper li.is-done { border-color: var(--sea); color: var(--navy); }
.stepper li.is-active { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.stepper-n { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1; }
@media (max-width: 600px) { .stepper-l { display: none; } .stepper li.is-active .stepper-l { display: block; } }
.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 1rem; }
.radio-card { position: relative; display: block !important; margin: 0 !important; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card-body { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem; border: 2px solid var(--line); border-radius: var(--r); color: var(--navy-2); font-weight: 600; }
.radio-card-body svg { width: 70px; }
.radio-card input:checked + .radio-card-body { border-color: var(--sea-dark); background: var(--sea-light); }
.radio-card input:focus-visible + .radio-card-body { outline: 3px solid var(--sea); outline-offset: 2px; }
.crew-row { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.25rem .25rem; margin-bottom: 1rem; background: var(--mist); }
.crew-row-head { display: flex; justify-content: space-between; align-items: baseline; }
.crew-row-head h4 { font-size: 1.2rem; }
.file-field { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.note { background: var(--sand-light); padding: .9rem 1rem; border-radius: var(--r); font-size: .95rem; }
.recap { background: var(--mist); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1.5rem; }
.recap h4 { font-size: 1.2rem; margin: 1rem 0 .3rem; }
.recap h4:first-child { margin-top: 0; }
.recap dl { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .2rem 1rem; margin: 0; font-size: .95rem; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; overflow-wrap: anywhere; }
.consents { border-top: 1px solid var(--line); padding-top: 1rem; }

/* Reçu & suivi */
.receipt { border: 2px dashed var(--navy); padding: 1.5rem; border-radius: var(--r); text-align: center; margin-bottom: 1.5rem; background: var(--sand-light); }
.receipt p { margin: 0; }
.receipt-ref { font-family: "Barlow Condensed", sans-serif; font-size: 2.8rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); margin: .2rem 0 !important; }
.status { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--mist); color: var(--navy); }
.status-lg { font-size: 1rem; padding: .35rem .9rem; }
.status-pending { background: #FFF4DB; color: #7A4B00; }
.status-corrections { background: #FDE7D4; color: #8A3B00; }
.status-approved { background: #DDF3E6; color: #135C36; }
.status-waitlist { background: #E3E8F7; color: #2A3E7A; }
.status-rejected { background: #FBE0DD; color: #8E1B12; }
.status-withdrawn { background: #ECEEF1; color: #4A5B70; }
.track-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.track-head .receipt-ref { text-align: start; }
@media (max-width: 760px) { .track-head { grid-template-columns: 1fr; } }
.track-status p { margin: 0 0 .4rem; }
.status-explain { color: var(--muted); max-width: 50ch; }
.track-section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.doc-status { margin-bottom: 1.5rem; max-width: 640px; }
.doc-status li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.docstate { font-weight: 600; font-size: .9rem; }
.docstate-missing, .docstate-rejected { color: var(--danger); }
.docstate-to_verify { color: var(--warn); }
.docstate-verified { color: var(--ok); }
.doc-note { flex-basis: 100%; font-size: .88rem; color: var(--danger); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 2rem; margin: 0 0 1rem; }
.summary-grid dt { font-size: .86rem; color: var(--muted); }
.summary-grid dd { margin: 0; font-weight: 600; }
.history li { display: flex; gap: 1rem; align-items: center; padding: .4rem 0; font-size: .95rem; }
.history time { color: var(--muted); min-width: 12rem; }
.withdraw { margin-top: 2rem; }
.withdraw summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.withdraw form { padding: 1rem 0; max-width: 60ch; }

.pager { display: flex; gap: .4rem; margin-top: 2rem; }
.pager a { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--navy); color: #fff; }
.article-date { color: var(--sea-light); margin: 0; }
.article-image { border-radius: var(--r); margin-bottom: 1.5rem; }
.share { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #C9D7E4; font-size: .95rem; padding-top: 3.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: .6rem; }
.lang-ar .footer-title { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1.1rem; }
.site-footer li { margin-bottom: .35rem; }
.socials { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .75rem; }
.newsletter label { font-size: .9rem; margin-bottom: .5rem; display: block; }
.newsletter input { padding: .6rem .7rem; border-radius: var(--r); border: 1px solid #3A5C83; background: var(--navy-2); color: #fff; font: inherit; font-size: .95rem; }
.footer-partners { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 1.5rem 16px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-partners img { max-height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .75; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

@media print {
  .site-header, .site-footer, .notice-bar, .step-nav, .btn { display: none !important; }
  .wizard-on .step { display: block !important; }
}

/* Pied de page : les adresses e-mail longues ne doivent jamais élargir la page sur téléphone */
.footer-grid > * { min-width: 0; }
.site-footer a, .contact-list a { overflow-wrap: anywhere; }
.inline-field { flex-wrap: wrap; }
.inline-field input { flex: 1 1 12rem; }

/* ---------- Page d'accueil : logos, informations clés, catégories, conditions, venue, organisateur ---------- */
.brand-club { display: none; padding-inline-start: .9rem; margin-inline-start: .3rem; border-inline-start: 1px solid rgba(255,255,255,.25); }
.brand-club { flex: none; }
.brand-club img { height: 44px; width: auto; max-width: none; background: #fff; border-radius: 3px; padding: 2px; }
.brand { flex: none; }
@media (min-width: 900px) {
  .brand-club { display: block; margin-inline-end: auto; }
  .brand:has(+ .brand-club) { margin-inline-end: 0; }
}

.hero-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.hero-logo-event { height: 84px; width: auto; }
.hero-logo-club { display: flex; align-items: center; gap: .6rem; padding-inline-start: 1.5rem; border-inline-start: 1px solid rgba(255,255,255,.3); }
.hero-logo-club small { color: var(--sea-light); font-size: .8rem; max-width: 6rem; line-height: 1.2; }
.hero-logo-club img { height: 64px; width: auto; background: #fff; border-radius: 4px; padding: 4px; }

.keyinfo { background: var(--sand-light); border-bottom: 1px solid var(--sand); }
.keyinfo-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.keyinfo-grid > div { padding: 1.1rem 1rem 1.2rem; border-inline-start: 1px solid var(--sand); }
.keyinfo-grid > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.keyinfo-grid dt { font-size: .85rem; color: var(--muted); }
.keyinfo-grid dd { margin: .15rem 0 0; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: var(--navy); }
.lang-ar .keyinfo-grid dd { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1.1rem; }
@media (max-width: 560px) { .keyinfo-grid { grid-template-columns: 1fr 1fr; } .keyinfo-grid > div { padding-inline: .75rem; border-inline-start: 0; border-top: 1px solid var(--sand); } .keyinfo-grid > div:nth-child(odd) { padding-inline-start: 0; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }
.category-list { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.category-list li { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 2px solid var(--navy); border-radius: var(--r); }
.category-list svg { width: 56px; flex: none; color: var(--navy-2); }
.small-note { font-size: .92rem; }
.conditions li { padding-block: .5rem; border-bottom: 1px solid var(--line); }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.25rem; }

.venue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 820px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-card { display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sea); border-radius: var(--r); padding: 1.25rem 1.3rem 1.4rem; text-decoration: none; color: var(--ink); }
.venue-card:hover { border-color: var(--navy); border-top-color: var(--sea); }
.venue-card svg { width: 30px; height: 30px; color: var(--sea-dark); }
.venue-card h3 { margin: .2rem 0 0; font-size: 1.4rem; }
.venue-card p { color: var(--muted); font-size: .97rem; margin: 0 0 .4rem; flex: 1; }

.organizer { border-top: 1px solid var(--line); }
.organizer-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 700px) { .organizer-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.organizer-logo { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; color: var(--sea); background: #fff; max-width: 200px; }
.organizer-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.organizer-logo svg { width: 70%; }
.organizer-name { font-weight: 600; font-size: 1.15rem; margin-bottom: .4rem; }
.organizer-contacts { margin: 1rem 0 1.25rem; max-width: 40rem; }
.organizer-contacts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.organizer-contacts li > span:first-child { color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { .organizer-contacts li { grid-template-columns: 1fr; gap: 0; } }
.footer-club-logo { height: 56px; width: auto; background: #fff; border-radius: 3px; padding: 3px; margin: .25rem 0 .9rem; }

/* Statut des activités du programme */
.pstatus { display: inline-block; font-size: .74rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.pstatus-confirmed { background: #DDF3E6; color: #135C36; }
.pstatus-provisional { background: #FFF1D6; color: #7A4B00; border: 1px dashed #D9A441; }
.programme-legend { color: var(--muted); font-size: .92rem; margin: -1rem 0 1.5rem; max-width: 70ch; }
.programme-legend-box { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1.1rem; background: var(--sand-light); border-radius: var(--r); margin-bottom: 1.5rem; }
.programme-legend-box p { margin: 0; flex: 1 1 28rem; font-size: .93rem; color: var(--muted); }
.tl-status { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; margin: 0 0 .4rem !important; }
.tl-status-note { font-size: .88rem; color: #7A4B00; font-style: italic; }
.tl-item.is-provisional::before { border-style: dashed; }
.tl-item.is-provisional h3 { color: var(--navy-2); }
@media (max-width: 560px) {
  .hero-logo-club { padding-inline-start: 0; border-inline-start: 0; }
  .hero-logo-event { height: 64px; }
}

.notice-preview { background:#0A2342; color:#fff; }

/* Visuel de l'événement dans l'accueil */
.hero-grid.has-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.hero-visual { margin: 0; justify-self: end; width: 100%; max-width: 640px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.35); transform: rotate(1.2deg); animation: visual-in 1s cubic-bezier(.2,.7,.2,1) both; }
[dir="rtl"] .hero-visual { justify-self: start; transform: rotate(-1.2deg); }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 10px; }
@keyframes visual-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.hero-grid.has-visual .hero-title { font-size: clamp(3.2rem, 7.5vw, 6.4rem); }
@media (max-width: 900px) {
  .hero-grid.has-visual { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 560px; transform: none; order: -1; margin-bottom: .5rem; }
  [dir="rtl"] .hero-visual { justify-self: center; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-visual { animation: none; } }

/* Photo de fond + visuel : on laisse la photo bien visible autour du visuel */
.hero.has-photo.with-visual::before { background: linear-gradient(90deg, rgba(10,35,66,.9) 0%, rgba(10,35,66,.6) 42%, rgba(10,35,66,.12) 100%); }
[dir="rtl"] .hero.has-photo.with-visual::before { background: linear-gradient(270deg, rgba(10,35,66,.9) 0%, rgba(10,35,66,.6) 42%, rgba(10,35,66,.12) 100%); }
.hero.has-photo.with-visual .hero-visual { max-width: 540px; }
@media (max-width: 900px) {
  .hero.has-photo.with-visual::before, [dir="rtl"] .hero.has-photo.with-visual::before { background: linear-gradient(180deg, rgba(10,35,66,.25) 0%, rgba(10,35,66,.75) 38%, rgba(10,35,66,.92) 100%); }
}

/* Inscription : liste d'équipage remplie sur place */
.notice-box { background: #e8f6f6; border-inline-start: 4px solid var(--sea, #14A3A8); border-radius: 6px; padding: .9rem 1.1rem; margin: 0 0 1.2rem; }
.notice-box p { margin: 0 0 .4rem; } .notice-box p:last-child { margin: 0; }
.field-narrow { max-width: 22rem; }
