/* ==========================================================================
   Supporter Malin (Dakar Sans Stress) — feuille de style unique, sans build.
   Direction : les panneaux peints des « cars rapides » de Dakar
   (jaune vif, bleu océan, lettrage franc), sur une base claire et lisible
   pensée pour le mobile et les connexions lentes.
   ========================================================================== */

:root {
  --ocean: #0E3B5C;
  --ocean-2: #17537F;
  --jaune: #F2B705;
  --jaune-pale: #FFF4CC;
  --lagune: #E6F0F6;
  --encre: #13202B;
  --gris: #5A6772;
  --trait: #D5DEE5;
  --fond: #FFFFFF;
  --rouge: #B42318;
  --vert: #146C43;
  --vert-pale: #E3F4EA;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 6px;
  --r-m: 12px;
  --mesure: 68ch;
  --page: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 17px/1.6 var(--texte);
}
img { max-width: 100%; height: auto; }
a { color: var(--ocean-2); text-underline-offset: 3px; }
a:hover { color: var(--ocean); }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ocean);
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 48px 0; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.section--tint { background: var(--lagune); }
.muted { color: var(--gris); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: 1.15rem; max-width: var(--mesure); }

/* ------------------------------------------------------------ Bandeaux */
.notice {
  background: var(--ocean);
  color: #fff;
  font-size: .88rem;
  text-align: center;
  padding: 7px 16px;
}
.notice a { color: var(--jaune); }
.notice--sim { background: var(--rouge); }

/* ------------------------------------------------------------ En-tête */
.header {
  border-bottom: 1px solid var(--trait);
  background: #fff;
  position: sticky; top: 0; z-index: 20;
}
.header__row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ocean);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0;
  line-height: 1.05;
}
.brand__mark {
  width: 34px; height: 34px; flex: none;
  background: var(--jaune);
  border: 3px solid var(--ocean);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: .9rem; color: var(--ocean);
}
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--encre); text-decoration: none; white-space: nowrap;
  padding: 8px 8px; border-radius: var(--r-s); font-weight: 700; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--lagune); color: var(--ocean); }
.nav form { margin: 0; }
.nav__menu { display: none; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .nav__menu { display: block; margin-left: auto; }
  .nav__menu summary {
    list-style: none; cursor: pointer;
    font-weight: 700; padding: 8px 12px; border: 2px solid var(--ocean); border-radius: var(--r-s);
    color: var(--ocean);
  }
  .nav__menu summary::-webkit-details-marker { display: none; }
  .nav__menu[open] .nav__panel { display: flex; }
  .nav__panel {
    display: none; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 64px;
    background: #fff; border-bottom: 2px solid var(--ocean);
    padding: 8px 16px 16px;
  }
  .nav__panel a, .nav__panel button { padding: 12px 4px; border-bottom: 1px solid var(--trait); text-align: left; }
}

/* ------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1.2 var(--texte);
  padding: 13px 20px;
  border-radius: var(--r-s);
  border: 2px solid var(--ocean);
  background: var(--ocean); color: #fff;
  text-decoration: none; cursor: pointer;
  min-height: 48px;
}
.btn:hover { background: var(--ocean-2); border-color: var(--ocean-2); color: #fff; }
.btn--jaune { background: var(--jaune); border-color: var(--jaune); color: var(--ocean); }
.btn--jaune:hover { background: #FFC933; border-color: #FFC933; color: var(--ocean); }
.btn--ghost { background: transparent; color: var(--ocean); }
.btn--ghost:hover { background: var(--lagune); color: var(--ocean); }
.btn--small { white-space: nowrap; padding: 8px 14px; min-height: 38px; font-size: .92rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ocean-2); cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------ Hero : panneau de car rapide */
.hero { padding: 40px 0 0; }
.hero__grid { display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: end; }
.hero h1 { margin-bottom: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }

.sign {
  background: var(--jaune);
  border: 4px solid var(--ocean);
  border-radius: 14px;
  padding: 18px 20px 16px;
  color: var(--ocean);
  box-shadow: 6px 6px 0 var(--ocean);
  position: relative;
}
.sign__route { font-weight: 700; font-size: .95rem; display: flex; justify-content: space-between; gap: 8px; border-bottom: 3px solid var(--ocean); padding-bottom: 8px; }
.sign__count { font-family: var(--display); font-weight: 800; line-height: .95; display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.sign__days { font-size: clamp(4.2rem, 13vw, 6.6rem); letter-spacing: -0.03em; }
.sign__unit { font-size: 1.4rem; }
.sign__detail { font-size: .98rem; font-variant-numeric: tabular-nums; }
.sign--live .sign__days { font-size: clamp(2.6rem, 8vw, 3.8rem); }

.stops {
  display: flex; gap: 0; margin-top: 36px;
  border-top: 4px solid var(--ocean);
}
.stops a {
  flex: 1; text-decoration: none; color: var(--ocean);
  padding: 14px 12px 18px; position: relative; font-weight: 700;
}
.stops a::before {
  content: ""; position: absolute; top: -12px; left: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--ocean);
}
.stops a:hover::before { background: var(--jaune); }
.stops small { display: block; font-weight: 400; color: var(--gris); }

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .sign { order: -1; }
}

/* ------------------------------------------------------------ Offres */
.offers { display: grid; gap: 18px; grid-template-columns: 1.3fr 1fr; align-items: start; }
.offer { border: 2px solid var(--trait); border-radius: var(--r-m); padding: 22px; background: #fff; }
.offer--main { border: 3px solid var(--ocean); position: relative; }
.offer--main .offer__flag {
  position: absolute; top: -14px; left: 18px;
  background: var(--jaune); color: var(--ocean); font-weight: 700; font-size: .85rem;
  padding: 3px 10px; border: 2px solid var(--ocean); border-radius: 999px;
}
.offer__price { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--ocean); margin: 4px 0 2px; }
.offer__note { color: var(--gris); font-size: .92rem; margin-bottom: 14px; }
.offer ul { padding-left: 0; list-style: none; margin: 0 0 18px; }
.offer li { padding: 6px 0 6px 28px; position: relative; border-top: 1px solid var(--trait); }
.offer li::before { content: "✓"; position: absolute; left: 4px; color: var(--vert); font-weight: 700; }
.offers__side { display: grid; gap: 18px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Listes de guides (lignes, pas cartes) */
.rows { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ocean); }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px;
  padding: 16px 2px; border-bottom: 1px solid var(--trait);
}
.row a.row__title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ocean); text-decoration: none; }
.row a.row__title:hover { text-decoration: underline; }
.row__meta { color: var(--gris); font-size: .9rem; }
.row__excerpt { grid-column: 1 / -1; margin: 0; color: var(--encre); max-width: var(--mesure); }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--lagune); color: var(--ocean); white-space: nowrap; align-self: start;
}
.tag--lock { background: var(--jaune-pale); color: #7A5800; }
.tag--open { background: var(--vert-pale); color: var(--vert); }
.tag--free { background: #fff; border: 1px solid var(--trait); color: var(--gris); }

/* ------------------------------------------------------------ Grille villes */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ocean); border-radius: var(--r-m); overflow: hidden; }
.city { padding: 20px; text-decoration: none; color: var(--encre); background: #fff; }
.city + .city { border-left: 2px solid var(--ocean); }
.city:hover { background: var(--jaune-pale); }
.city h3 { margin-bottom: 4px; }
@media (max-width: 760px) {
  .cities { grid-template-columns: 1fr; }
  .city + .city { border-left: 0; border-top: 2px solid var(--ocean); }
}

/* ------------------------------------------------------------ Contenu éditorial */
.prose { max-width: var(--mesure); font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--trait); padding: 8px 10px; text-align: left; }
.prose th { background: var(--lagune); }
.prose blockquote { margin: 1em 0; padding: 12px 16px; border-left: 5px solid var(--jaune); background: var(--jaune-pale); }
.prose blockquote p:last-child { margin: 0; }

.article-head { padding: 36px 0 12px; }
.crumbs { font-size: .9rem; color: var(--gris); margin-bottom: 10px; }
.crumbs a { color: var(--gris); }

.paywall {
  border: 3px solid var(--ocean); border-radius: var(--r-m);
  padding: 24px; margin: 28px 0; max-width: var(--mesure);
  background: linear-gradient(var(--jaune-pale), #fff 70%);
}
.paywall h2 { margin-top: 0; }
.paywall ol { padding-left: 1.2em; color: var(--gris); }
.paywall__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.official {
  display: flex; gap: 12px; align-items: flex-start;
  border: 2px solid var(--ocean); border-radius: var(--r-m); padding: 14px 16px; margin: 24px 0;
  max-width: var(--mesure); background: #fff;
}
.official strong { color: var(--ocean); }

/* ------------------------------------------------------------ Agenda */
.day { border-top: 2px solid var(--ocean); padding: 18px 0 8px; }
.day__date { font-family: var(--display); font-weight: 800; color: var(--ocean); font-size: 1.25rem; }
.day--today { background: var(--jaune-pale); border-top-color: var(--jaune); padding: 18px 16px 8px; border-radius: 0 0 var(--r-m) var(--r-m); }

/* ------------------------------------------------------------ Formulaires */
.form { display: grid; gap: 14px; max-width: 460px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 11px 12px;
  border: 2px solid var(--trait); border-radius: var(--r-s); background: #fff; color: var(--encre);
  min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ocean); outline: none; box-shadow: 0 0 0 3px var(--jaune); }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; }
.field--check label { font-weight: 400; }
.field .help { font-size: .85rem; color: var(--gris); margin-top: 3px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--rouge); font-size: .9rem; font-weight: 700; }
.form-errors { background: #FDECEA; border-left: 5px solid var(--rouge); padding: 10px 14px; color: var(--rouge); }
.hp { position: absolute; left: -9999px; }
.panel { border: 2px solid var(--trait); border-radius: var(--r-m); padding: 24px; background: #fff; }
.auth { max-width: 480px; margin: 0 auto; padding: 40px 16px 60px; }

.signup-band { background: var(--ocean); color: #fff; }
.signup-band h2 { color: #fff; }
.signup-band .muted { color: #C9D9E5; }
.signup-band .field label { color: #fff; }
.signup-band .form { max-width: none; grid-template-columns: 1fr 1fr auto; align-items: end; }
@media (max-width: 760px) { .signup-band .form { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Messages */
.messages { list-style: none; padding: 0; margin: 16px auto 0; }
.message { padding: 12px 16px; border-radius: var(--r-s); margin-bottom: 8px; font-weight: 700; }
.message--success { background: var(--vert-pale); color: var(--vert); }
.message--error { background: #FDECEA; color: var(--rouge); }
.message--info, .message--warning { background: var(--jaune-pale); color: #7A5800; }

/* ------------------------------------------------------------ FAQ */
.faq details { border-bottom: 1px solid var(--trait); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ocean); font-size: 1.05rem; }
.faq details[open] summary { margin-bottom: 8px; }
.faq .prose { font-size: 1rem; }

/* ------------------------------------------------------------ Compte */
.status { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  border: 3px solid var(--ocean); border-radius: var(--r-m); padding: 20px; margin-bottom: 28px; }
.status--on { background: var(--vert-pale); border-color: var(--vert); }
.status h2 { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.table th { color: var(--gris); font-weight: 700; font-size: .85rem; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------ Paiement */
.pay { max-width: 520px; margin: 0 auto; padding: 40px 16px 64px; }
.receipt { border: 2px dashed var(--ocean); border-radius: var(--r-m); padding: 20px; margin: 18px 0; }
.receipt__line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.receipt__total { border-top: 2px solid var(--ocean); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.state-icon { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--trait); border-top-color: var(--ocean); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Tableau de bord admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border: 2px solid var(--ocean); border-radius: var(--r-m); overflow: hidden; margin-bottom: 28px; }
.kpi { padding: 16px; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.kpi__v { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ocean); font-variant-numeric: tabular-nums; }
.kpi__l { color: var(--gris); font-size: .9rem; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 70px 1fr 110px; gap: 10px; align-items: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bar__track { background: var(--lagune); height: 14px; border-radius: 3px; }
.bar__fill { background: var(--ocean); height: 100%; border-radius: 3px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }


.brand__text { display: flex; flex-direction: column; }
.brand__text small { font-family: var(--texte); font-weight: 700; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ocean-2); margin-top: 2px; }

/* ------------------------------------------------------------ Assistant (outils) */
.kicker { font-weight: 700; color: var(--ocean-2); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-bottom: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 3px solid var(--ocean); border-radius: var(--r-m); overflow: hidden; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: var(--encre); background: #fff; }
.tool-card + .tool-card { border-left: 2px solid var(--ocean); }
.tool-card:hover { background: var(--jaune-pale); color: var(--encre); }
.tool-card strong { font-family: var(--display); font-size: 1.2rem; color: var(--ocean); }
.tool-card em { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--vert); margin-top: auto; }
.tool-card__n { width: 34px; height: 34px; border-radius: 50%; background: var(--jaune); color: var(--encre);
  font-family: var(--display); font-weight: 800; display: grid; place-items: center; border: 2px solid var(--ocean); }
@media (max-width: 900px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .tool-card + .tool-card { border-left: 0; }
  .tool-card { border-bottom: 2px solid var(--ocean); }
  .tool-card:nth-child(even) { border-left: 2px solid var(--ocean); }
}
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } .tool-card:nth-child(even) { border-left: 0; } }

.facts-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; background: var(--jaune-pale);
  border-left: 6px solid var(--jaune); border-radius: var(--r-s); margin: 20px 0; }
.facts-band > div { padding: 14px 16px; }
.facts-band strong { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--ocean); font-variant-numeric: tabular-nums; }
.facts-band span { font-size: .92rem; color: var(--gris); }

/* Calculateur */
.tool { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 32px; align-items: start; margin-top: 24px; }
.tool > * { min-width: 0; }
.tool__form { display: grid; gap: 14px; position: sticky; top: 12px; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } .tool__form { position: static; } }
.choice { border: 0; padding: 0; margin: 0; }
.choice legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.choice label { display: inline-flex; align-items: center; gap: 8px; margin: 0 6px 6px 0; padding: 10px 14px; min-height: 44px;
  border: 2px solid var(--trait); border-radius: var(--r-s); cursor: pointer; font-weight: 700; }
.choice label:has(input:checked) { border-color: var(--ocean); background: var(--lagune); }
.choice input { width: 18px; height: 18px; accent-color: var(--ocean); }
.more summary { cursor: pointer; font-weight: 700; color: var(--ocean-2); padding: 6px 0; }
.more[open] { display: grid; gap: 12px; }

.total { background: var(--ocean); color: #fff; border-radius: var(--r-m); padding: 22px; box-shadow: 6px 6px 0 var(--jaune); }
.total__label { margin: 0; color: #C9D9E5; }
.total__value { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.5rem); margin: 4px 0; line-height: 1.15; }
.total__value span { font-size: 1rem; font-weight: 700; color: var(--jaune); }
.total__sub { margin: 0; color: #C9D9E5; }
.verdict { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-s); font-weight: 700; }
.verdict--ok { background: var(--vert-pale); color: var(--vert); }
.verdict--warn { background: var(--jaune-pale); color: #7A5800; }
.verdict--bad { background: #FDECEA; color: var(--rouge); }
.tool__result h2 { margin-top: 28px; }
.split { list-style: none; padding: 0; margin: 0; }
.split li { padding: 10px 0; border-bottom: 1px solid var(--trait); }
.split__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.split__bar { background: var(--lagune); height: 10px; border-radius: 3px; margin: 6px 0 4px; }
.split__bar span { display: block; height: 100%; background: var(--ocean); border-radius: 3px; }
.split p { margin: 0; }
.tips { padding-left: 1.2em; }
.tips li { margin: 6px 0; }
.placeholder { border: 2px dashed var(--trait); border-radius: var(--r-m); padding: 28px; }
.placeholder__big { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--ocean); }
.facts-mini { padding-left: 1.2em; margin: 0; }
.facts-mini li { margin: 6px 0; }

/* Épreuves */
.venue-group { margin-top: 32px; }
.venue-group h2 small { font-family: var(--texte); font-size: .95rem; font-weight: 400; color: var(--gris); }
.venue-group .row__title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ocean); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--jaune); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--trait); }
.timeline__date { font-family: var(--display); font-weight: 800; color: var(--ocean); text-transform: capitalize; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Sécurité */
.signs { padding-left: 0; list-style: none; counter-reset: s; margin: 0; }
.signs li { counter-increment: s; position: relative; padding: 12px 0 12px 52px; border-bottom: 1px solid var(--trait); max-width: var(--mesure); }
.signs li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--rouge); color: #fff; font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.analysis { background: #fff; border: 2px solid var(--ocean); border-radius: var(--r-m); padding: 18px; margin: 16px 0; }
.analysis h3 { margin-top: 0; }
.flags { padding-left: 1.2em; color: var(--rouge); font-weight: 700; }
.form--wide { max-width: 640px; }
.sources { margin-top: 32px; border-top: 1px solid var(--trait); padding-top: 12px; }


/* ------------------------------------------------------------ Formules (cartes de prix) */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; align-items: start; }
.tier { border: 2px solid var(--trait); border-radius: var(--r-m); padding: 22px; }
.tier--main { border: 3px solid var(--ocean); box-shadow: 6px 6px 0 var(--jaune); }
.tier h2, .tier h3 { margin: 0; font-size: 1.35rem; }
.tier__price { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--ocean); margin: 6px 0 12px; }
.tier ul { padding-left: 1.1em; margin: 0 0 18px; }
.tier li { margin: 5px 0; }

/* ------------------------------------------------------------ Vitrines Pro : espace pro */
.pro-head h1 { margin-bottom: 4px; }
.steps { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.steps li { counter-increment: st; font-size: .85rem; font-weight: 700; color: var(--gris); padding: 6px 10px 6px 6px;
  border: 2px solid var(--trait); border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.steps li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; background: var(--trait); color: var(--encre);
  display: grid; place-items: center; font-size: .78rem; }
.steps li.is-current { border-color: var(--ocean); color: var(--ocean); background: var(--jaune-pale); }
.steps li.is-current::before { background: var(--jaune); }
.status-pill { padding: 2px 8px; border-radius: 999px; background: var(--lagune); color: var(--ocean); font-size: .82rem; }
.status-pill--published { background: var(--vert-pale); color: var(--vert); }
.status-pill--rejected, .status-pill--suspended { background: #FDECEA; color: var(--rouge); }
.status-pill--approved, .status-pill--pending_review { background: var(--jaune-pale); color: #7A5800; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ocean); margin: 18px 0 8px; overflow-x: auto; }
.tabs a { padding: 10px 12px; font-weight: 700; text-decoration: none; color: var(--encre); white-space: nowrap; border-radius: var(--r-s) var(--r-s) 0 0; }
.tabs a[aria-current="page"] { background: var(--ocean); color: #fff; }
.reminder { background: var(--jaune-pale); border-left: 4px solid var(--jaune); padding: 8px 12px; border-radius: var(--r-s); }
.pro-card { margin-bottom: 16px; }
.pro-card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.pro-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pro-form .field textarea { min-height: 120px; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.checks legend { font-weight: 700; margin-bottom: 6px; padding: 0; width: 100%; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 44px; border: 2px solid var(--trait);
  border-radius: var(--r-s); cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--ocean); background: var(--lagune); }
.checks input { width: 18px; height: 18px; accent-color: var(--ocean); }
.thumbs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumbs li { border: 1px solid var(--trait); border-radius: var(--r-s); padding: 6px; position: relative; }
.thumbs img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; display: block; }
.thumbs .tag { position: absolute; top: 10px; left: 10px; }
.thumbs__actions { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: .88rem; }
.thumbs__actions form { margin: 0; }
.link-btn--danger { color: var(--rouge) !important; }
.upload { border: 2px dashed var(--ocean-2); border-radius: var(--r-m); padding: 16px; display: grid; gap: 10px; max-width: 560px; }
.offer-admin { list-style: none; padding: 0; margin: 0; }
.offer-admin li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); align-items: center; }
.offer-admin img, .offer-admin .noimg { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--lagune); display: grid; place-items: center; font-size: .75rem; color: var(--gris); }
.offer-admin__main { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.offer-admin__main .row__title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; width: 100%; }
.offer-admin__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.offer-admin__actions form { margin: 0; }
.offer-admin li.is-full { opacity: .75; }

/* ------------------------------------------------------------ Vitrines Pro : annuaire */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chips a { padding: 8px 14px; border: 2px solid var(--trait); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--encre); }
.chips a[aria-current="page"] { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.filters { margin: 8px 0 20px; }
.filters summary { cursor: pointer; font-weight: 700; color: var(--ocean-2); padding: 8px 0; }
.filters__form { display: grid; gap: 12px; max-width: 560px; padding: 12px 0; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cards--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { border: 2px solid var(--trait); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.card--featured { border-color: var(--jaune); box-shadow: 5px 5px 0 var(--jaune); }
.card__link { display: block; text-decoration: none; color: var(--encre); }
.card__link:hover .card__name { text-decoration: underline; }
.card img, .card__noimg { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--lagune); }
.card__body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.card__ad { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #7A5800; }
.card__name { font-family: var(--display); font-size: 1.15rem; color: var(--ocean); }
.card__where { color: var(--gris); font-size: .92rem; }
.card__price strong { color: var(--ocean); }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.card__tags span, .card__tags li { font-size: .78rem; background: var(--lagune); color: var(--ocean); padding: 2px 8px; border-radius: 999px; }
.card__tags--big li { font-size: .9rem; padding: 4px 10px; }
.cards .placeholder { grid-column: 1 / -1; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 20px; }

.notice--preview { background: var(--jaune); color: var(--encre); }
.notice--preview a { color: var(--ocean); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 230px; gap: 8px; margin: 16px 0 24px; }
.gallery:has(> a:only-child) { grid-template-columns: 1fr; grid-auto-rows: 320px; }
.gallery:has(> a:nth-child(4)) { grid-auto-rows: 150px; }
.gallery:has(> a:nth-child(4)) a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-s); display: block; }
.gallery a:nth-child(n+6) { display: none; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 90px; }
  .gallery a:first-child { grid-column: 1 / -1; grid-row: span 2; }
}
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.detail > * { min-width: 0; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail__side { order: -1; } }
.detail__desc { font-size: 1.05rem; max-width: var(--mesure); }
.detail__side { position: sticky; top: 12px; }
@media (max-width: 860px) { .detail__side { position: static; } }
.contact-box .btn { font-size: 1.05rem; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .95rem; }
.facts dt { font-weight: 700; color: var(--gris); }
.facts dd { margin: 0; }
.trust { margin-top: 12px; font-size: .9rem; background: var(--jaune-pale); border-left: 5px solid var(--jaune); padding: 10px 12px; border-radius: var(--r-s); }
.offers-list { list-style: none; padding: 0; margin: 0; }
.offers-list li { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.offers-list li:not(:has(img)) { grid-template-columns: 1fr; }
.offers-list img { width: 160px; height: 120px; object-fit: cover; border-radius: var(--r-s); }
.offers-list h3 { margin: 0 0 4px; }
.offers-list__price { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ocean); margin: 0 0 4px; }
.offers-list__price span { font-family: var(--texte); font-size: .9rem; font-weight: 400; color: var(--gris); }
.offers-list li.is-full { opacity: .7; }
@media (max-width: 560px) { .offers-list li { grid-template-columns: 110px 1fr; } .offers-list img { width: 110px; height: 85px; } }
.report { margin-top: 28px; }
.report summary { cursor: pointer; color: var(--gris); }
.lead-list { font-size: 1.1rem; }
.signs--steps li::before { background: var(--ocean); }

/* ------------------------------------------------------------ Interprète de poche */
.interp__langs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; max-width: 640px; margin: 18px 0; }
.interp__langs .field span { display: block; font-weight: 700; margin-bottom: 4px; }
.interp__langs select { width: 100%; }
.interp__swap { min-width: 52px; font-size: 1.3rem; }
.interp__input { max-width: 640px; display: grid; gap: 10px; }
.interp__input textarea { width: 100%; font: inherit; font-size: 1.15rem; padding: 12px; border: 2px solid var(--trait); border-radius: var(--r-s); }
.interp__input textarea:focus { border-color: var(--ocean); outline: none; }
.interp__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.interp__result { max-width: 640px; margin-top: 18px; background: var(--jaune-pale); border: 3px solid var(--ocean);
  border-radius: var(--r-m); padding: 18px; box-shadow: 6px 6px 0 var(--jaune); }
.interp__source { margin: 0 0 6px; }
.interp__text { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.1rem); color: var(--ocean); margin: 0 0 14px; line-height: 1.2; }
.phrases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.phrase { width: 100%; text-align: start; font: inherit; font-size: 1.02rem; padding: 12px 14px; min-height: 48px; cursor: pointer;
  background: #fff; border: 2px solid var(--trait); border-radius: var(--r-s); color: var(--encre); }
.phrase:hover, .phrase:focus { border-color: var(--ocean); background: var(--lagune); }
.big { position: fixed; inset: 0; z-index: 50; background: var(--ocean); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px; padding: 24px; text-align: center; }
.big[hidden] { display: none; }
.big__text { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 4.5rem); line-height: 1.15; margin: 0; max-width: 18ch; }
@media (max-width: 480px) { .interp__langs { grid-template-columns: 1fr; } .interp__swap { justify-self: center; } }

/* ------------------------------------------------------------ Langues */
.lang { margin: 0; flex-shrink: 0; }
.lang select { font: inherit; font-size: .88rem; font-weight: 700; padding: 6px 8px; min-height: 38px; border: 2px solid var(--trait);
  border-radius: var(--r-s); background: #fff; color: var(--ocean); min-width: 5.5rem; max-width: 9.5rem; }
@media (max-width: 1180px) { .lang { margin-left: auto; } .lang + .nav__menu { margin-left: 0; } .lang select { max-width: 6.5rem; } }

/* Arabe : sens de lecture de droite à gauche */
[dir="rtl"] body { font-family: "Noto Sans Arabic", var(--texte); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand, [dir="rtl"] .btn { font-family: "Noto Sans Arabic", var(--display); }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol, [dir="rtl"] .tips, [dir="rtl"] .tier ul { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .offer li { padding: 6px 28px 6px 0; }
[dir="rtl"] .offer li::before { left: auto; right: 4px; }
[dir="rtl"] .signs li { padding: 12px 52px 12px 0; }
[dir="rtl"] .signs li::before { left: auto; right: 0; }
[dir="rtl"] .facts-band { border-left: 0; border-right: 6px solid var(--jaune); }
[dir="rtl"] .timeline { border-left: 0; border-right: 4px solid var(--jaune); }
[dir="rtl"] .timeline li { padding: 10px 16px 10px 0; }
[dir="rtl"] .trust, [dir="rtl"] .reminder, [dir="rtl"] .prose blockquote { border-left: 0; border-right: 5px solid var(--jaune); }
[dir="rtl"] .tool-card + .tool-card, [dir="rtl"] .city + .city { border-left: 0; border-right: 2px solid var(--ocean); }
[dir="rtl"] .total, [dir="rtl"] .tier--main, [dir="rtl"] .interp__result { box-shadow: -6px 6px 0 var(--jaune); }
@media (max-width: 1180px) { [dir="rtl"] .nav__menu, [dir="rtl"] .lang { margin-left: 0; margin-right: auto; } }

/* ------------------------------------------------------------ Pied de page */
.footer { background: var(--encre); color: #C6D0D8; margin-top: 56px; padding: 40px 0 28px; font-size: .95rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer__legal { border-top: 1px solid #2E3D49; margin-top: 28px; padding-top: 16px; font-size: .85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
