/* =========================================================================
   Change Abdelmoumen — styles du site
   Direction : fidèle à la boutique. Bleu roi et jaune très présents, comme
   l'enseigne et le totem (panneaux bleus encadrés de jaune).
   Tokens issus de BRAND.md. Propriétés logiques (inline/block) pour que la
   version arabe (dir="rtl") s'inverse d'elle-même.
   ========================================================================= */

:root {
  --color-blue: #0B5CD5;
  --color-blue-dark: #0848A8;
  --color-blue-light: #2F78E4;
  --color-navy: #0F2F6B;
  --color-navy-deep: #0A2252;
  --color-yellow: #FFB800;
  --color-yellow-dark: #F0AA00;
  --color-yellow-soft: #FFF4D1;
  --color-white: #FFFFFF;
  --color-bg: #F5F7FB;
  --color-muted: #5B6577;
  --color-line: #E2E7F0;
  --color-on-blue: #DCE7FB;
  --color-on-navy-muted: #A9B8D9;
  --color-on-navy-line: rgba(255, 255, 255, .12);
  --color-up: #0E8A4F;
  --color-down: #C62828;
  --color-whatsapp: #128C4A;
  --color-whatsapp-dark: #0E7340;

  --font-display: "Montserrat", "Cairo", "Segoe UI", Arial, sans-serif;
  --font-body: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-gap: var(--space-8);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 47, 107, .05), 0 10px 30px -8px rgba(15, 47, 107, .12);
  --shadow-lift: 0 2px 4px rgba(15, 47, 107, .06), 0 18px 40px -10px rgba(15, 47, 107, .22);
  --shadow-board: 0 2px 6px rgba(10, 34, 82, .2), 0 30px 60px -18px rgba(10, 34, 82, .55);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 64px;
}

@media (min-width: 900px) { :root { --section-gap: var(--space-9); } }

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-5);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 17px; } }

body.has-modal { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }

h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }
a { color: var(--color-blue); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .reviews :focus-visible, .site-footer :focus-visible, .board :focus-visible, .topbar :focus-visible { outline-color: var(--color-yellow); }

.icon { width: 20px; height: 20px; flex: none; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-yellow);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 600px) { .wrap { padding-inline: var(--space-5); } }

/* Le losange de l'emblème, réutilisé comme repère. */
.diamond {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--color-yellow);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Surfaces du navigateur, aux couleurs de la marque. */
::selection { background: var(--color-yellow); color: var(--color-navy); }
input, select, textarea { caret-color: var(--color-blue); accent-color: var(--color-blue); }
html { scrollbar-color: var(--color-blue) var(--color-bg); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--sm { min-height: 44px; padding: var(--space-2) var(--space-5); font-size: 15px; }
.btn--lg { min-height: 56px; padding: var(--space-3) var(--space-6); font-size: 17px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--color-yellow); color: var(--color-navy); box-shadow: 0 6px 16px -6px rgba(240, 170, 0, .6); }
.btn--primary:hover { background: var(--color-yellow-dark); }

.btn--ghost { background: var(--color-white); color: var(--color-navy); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--color-navy); }

.btn--on-blue { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, .45); }
.btn--on-blue:hover { border-color: var(--color-white); background: rgba(255, 255, 255, .08); }

.btn--whatsapp { background: var(--color-whatsapp); color: var(--color-white); }
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); }

/* ---------------------------------------------------------------- topbar */

.topbar { display: none; background: var(--color-navy-deep); color: var(--color-on-navy-muted); font-size: 14px; }
@media (min-width: 960px) { .topbar { display: block; } }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 40px; }
.topbar__hint { display: flex; align-items: center; gap: var(--space-2); }
.topbar__hint .icon { width: 16px; height: 16px; color: var(--color-yellow); }
.topbar__links { display: flex; align-items: center; gap: var(--space-5); }
.topbar__links a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; color: var(--color-white); font-weight: 600; text-decoration: none; }
.topbar__links a:hover { color: var(--color-yellow); }
.topbar__links .icon { width: 15px; height: 15px; color: var(--color-yellow); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 68px; }

.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 34px; width: auto; }
@media (min-width: 600px) { .brand img { height: 42px; } }

.site-nav { display: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-3); margin-inline-start: auto; }
/* Sur mobile, « Réserver » est dans la barre d'action du bas. */
@media (max-width: 599px) { .site-header__actions .btn { display: none; } }

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-2);
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}
.lang-switch:hover { color: var(--color-blue); }

@media (min-width: 960px) {
  .site-header__inner { min-height: 76px; }
  .site-nav { display: flex; gap: var(--space-1); margin-inline-start: var(--space-5); }
  .site-nav a {
    position: relative;
    padding: var(--space-2) var(--space-3);
    color: var(--color-navy);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    inset-inline: var(--space-3);
    bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: var(--color-yellow);
    transform: scaleX(0);
    transition: transform .2s var(--ease);
  }
  .site-nav a:hover::after { transform: scaleX(1); }
  .site-header .lang-switch { display: none; }
}

/* ------------------------------------------------------------------ hero */

/* Le hero tient dans l'écran, bandeau jaune compris, quelle que soit la taille :
   hauteurs calculées sur 100svh moins l'en-tête (--chrome-h) et le bandeau (--band-h). */
.hero {
  --hero-pad: clamp(20px, 5vh, 64px);
  --chrome-h: 68px;
  --band-h: 64px;
  position: relative;
  overflow: hidden;
  background: var(--color-blue);
  color: var(--color-white);
  padding-block: var(--hero-pad);
}
@media (min-width: 960px) { .hero { --chrome-h: 116px; --band-h: 72px; } }
/* Grand losange en filigrane, comme le totem de la boutique. */
.hero::before {
  content: "";
  position: absolute;
  width: 820px;
  height: 820px;
  inset-inline-start: -360px;
  top: -260px;
  border: 64px solid var(--color-blue-light);
  border-radius: 96px;
  transform: rotate(45deg);
  opacity: .5;
  pointer-events: none;
}

.hero__grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: clamp(16px, 3vh, 32px); }
@media (max-width: 599px) {
  .hero__actions .btn { flex: 1 1 100%; }
  /* Sur mobile, « Voir les cours » est inutile : le tableau suit directement le bandeau. */
  .hero__actions .btn--on-blue { display: none; }
}
/* Très petits écrans (320 × 568) : titre et texte resserrés pour garder le bandeau visible. */
@media (max-width: 360px) and (max-height: 620px) {
  .hero { --hero-pad: 16px; }
  .hero h1 { font-size: 27px; }
  .hero__lead { font-size: 15px; line-height: 1.5; }
  .trust li:nth-child(2) { display: none; }
  .trust { margin-top: var(--space-2); }
  .trust__pill { font-size: 12px; white-space: nowrap; padding-inline: var(--space-3); gap: 6px; }
  .hero__actions { margin-top: var(--space-3); }
  .hero__lead { margin-top: var(--space-2); }
}
/* Écrans bas (iPhone SE, petits portables) : tout un peu plus compact. */
@media (max-height: 720px) {
  .trust { margin-top: var(--space-3); }
  .trust__pill { min-height: 34px; font-size: 13px; padding-inline: var(--space-3); }
  .hero__lead { margin-top: var(--space-3); }
}

.hero h1 {
  max-width: 13em;
  font-size: clamp(32px, min(5vw, 7vh), 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
[dir="rtl"] .hero h1 { font-size: clamp(30px, min(4.6vw, 6.4vh), 56px); }

.hero__lead { max-width: 34em; margin-top: var(--space-4); color: var(--color-on-blue); font-size: clamp(16px, 2.2vh, 19px); }

/* Faits de confiance : agrément et note Google. */
.trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.trust__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-1) var(--space-4);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s var(--ease);
}
a.trust__pill:hover { border-color: var(--color-white); }
.trust__pill .icon { width: 18px; height: 18px; color: var(--color-yellow); }

/* Visuel du hero : la façade, et l'aperçu des cours posé dessus comme un petit afficheur.
   Sa hauteur suit celle de l'écran pour que le bandeau reste visible. Masqué sous 1100 px. */
.hero__visual { display: none; }
@media (min-width: 1100px) {
  .hero__visual {
    --photo-h: min(540px, calc(100svh - var(--chrome-h) - var(--band-h) - 2 * var(--hero-pad) - 48px));
    position: relative;
    display: block;
    padding-bottom: 40px;
  }
}
.hero__photo {
  display: block;
  height: max(300px, var(--photo-h));
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 4px solid var(--color-yellow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-board);
}
.ticker {
  position: absolute;
  inset-inline-start: -56px;
  bottom: 0;
  display: grid;
  gap: 2px;
  min-width: 300px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
  border: 3px solid var(--color-yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-board);
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.ticker:hover { transform: translateY(-2px); }
.ticker__head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.ticker__cols, .ticker__row { display: grid; grid-template-columns: 1fr 84px 84px; align-items: center; gap: var(--space-2); }
.ticker__cols { color: var(--color-on-navy-muted); font-size: 11px; white-space: nowrap; }
.ticker__cols span:not(:first-child), .ticker__num { text-align: end; }
.ticker__row { padding-block: 3px; border-top: 1px solid var(--color-on-navy-line); }
.ticker__code { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.ticker__code img { width: 20px; height: 20px; border-radius: 50%; }
.ticker__num { color: var(--color-yellow); font-family: var(--font-display); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- tableau des cours */
/* L'élément signature : un panneau bleu nuit encadré de jaune, comme le totem. */

.board {
  --board-pad: var(--space-5);
  background: var(--color-navy);
  color: var(--color-white);
  border: 4px solid var(--color-yellow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-board);
  overflow: hidden;
  scroll-margin-top: 96px;
}

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-5) var(--board-pad) var(--space-4);
  background: var(--color-navy-deep);
}
.board__title { display: flex; align-items: center; gap: var(--space-3); font-size: 20px; font-weight: 800; letter-spacing: 0; }
.board__title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-yellow);
  border-radius: 2px;
  transform: rotate(45deg);
}
.board__date { color: var(--color-on-navy-muted); font-size: 13px; }

.board__table { width: 100%; border-collapse: collapse; }
.board__table th, .board__table td {
  padding: 10px var(--board-pad);
  border-bottom: 1px solid var(--color-on-navy-line);
  text-align: start;
  vertical-align: middle;
}
.board__table tbody tr:last-child > * { border-bottom: 0; }
.board__table thead th {
  padding-block: var(--space-3) var(--space-2);
  color: var(--color-on-navy-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-on-navy-line);
}
.board__table .num { text-align: end; white-space: nowrap; }
.board__table td.num {
  color: var(--color-yellow);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.board__table tbody th { font-weight: 400; }
.board__table tbody tr { transition: background-color .15s var(--ease); }
.board__table tbody tr:hover { background: rgba(255, 255, 255, .04); }

/* Le seul mouvement de la page : les lignes de l'afficheur se posent au chargement. */
@media (prefers-reduced-motion: no-preference) {
  .board__table tbody tr { animation: row-in .6s var(--ease) backwards; }
  .board__table tbody tr:nth-child(2) { animation-delay: 0.05s; }
  .board__table tbody tr:nth-child(3) { animation-delay: 0.10s; }
  .board__table tbody tr:nth-child(4) { animation-delay: 0.15s; }
  .board__table tbody tr:nth-child(5) { animation-delay: 0.20s; }
  .board__table tbody tr:nth-child(6) { animation-delay: 0.25s; }
  .board__table tbody tr:nth-child(7) { animation-delay: 0.30s; }
  .board__table tbody tr:nth-child(8) { animation-delay: 0.35s; }
  .board__table tbody tr:nth-child(9) { animation-delay: 0.40s; }
  .board__table tbody tr:nth-child(10) { animation-delay: 0.45s; }
  .board__table tbody tr:nth-child(11) { animation-delay: 0.50s; }
  .board__table tbody tr:nth-child(12) { animation-delay: 0.55s; }
}
/* Les chiffres restent lisibles même si l'animation ne se joue pas (opacité de départ non nulle). */
@keyframes row-in { from { opacity: .45; transform: translateY(6px); } }

.currency { display: grid; grid-template-columns: 28px auto; grid-template-rows: auto auto; column-gap: var(--space-3); align-items: center; }
.currency__flag { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.currency__flag--none { display: block; background: var(--color-navy-deep); }
.currency__code { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.currency__name { color: var(--color-on-navy-muted); font-size: 12px; line-height: 1.3; }
.currency__unit { white-space: nowrap; }

.board__foot { display: grid; gap: var(--space-4); padding: var(--space-4) var(--board-pad) var(--board-pad); border-top: 1px solid var(--color-on-navy-line); }
.board__note { padding: var(--space-4) var(--board-pad) var(--board-pad); border-top: 1px solid var(--color-on-navy-line); color: var(--color-on-navy-muted); font-size: 12px; }
.board__empty { padding: var(--space-7) var(--board-pad); color: var(--color-on-navy-muted); }

@media (max-width: 520px) {
  .board { --board-pad: var(--space-4); }
  .board__table th, .board__table td { padding-inline: var(--space-2); }
  .board__table tr > :first-child { padding-inline-start: var(--board-pad); }
  .board__table tr > :last-child { padding-inline-end: var(--board-pad); }
  .board__table thead th { font-size: 12px; line-height: 1.3; }
  .board__table thead .num { white-space: normal; }
  .board__table td.num { font-size: 19px; }
  .currency { grid-template-columns: 24px auto; column-gap: var(--space-2); grid-template-rows: auto; }
  .currency__flag { grid-row: auto; width: 24px; height: 24px; }
  .currency__name { display: none; }
}

/* -------------------------------------------------------------- sections */

.section { padding-block: var(--section-gap); }
.section__head { max-width: 640px; }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); max-width: none; }
.section__lead { margin-top: var(--space-3); color: var(--color-muted); font-size: 18px; }

/* Trait jaune sous les titres de section, comme le bandeau de l'enseigne. */
.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: var(--space-4);
  border-radius: 5px;
  background: var(--color-yellow);
}

/* ------------------------------------------------------- bandeau vitrine */

.band { overflow: hidden; background: var(--color-yellow); color: var(--color-navy); border-block: 4px solid var(--color-navy); }
.band__track {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: max-content;
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  white-space: nowrap;
}
.band__track [lang="ar"] { font-family: var(--font-body); }
.band__repeat { display: contents; }
.band .diamond { width: 10px; height: 10px; background: var(--color-navy); }
/* Défilement lent et continu, désactivé si l'utilisateur limite les animations. */
@media (prefers-reduced-motion: no-preference) {
  .band__track { animation: band-scroll 40s linear infinite; }
  [dir="rtl"] .band__track { animation-name: band-scroll-rtl; }
  .band:hover .band__track { animation-play-state: paused; }
}
@keyframes band-scroll { to { transform: translateX(-50%); } }
@keyframes band-scroll-rtl { to { transform: translateX(50%); } }

/* --------------------------------------------------------- cours du jour */

.rates { background: var(--color-bg); }
.rates__grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1000px) { .rates__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: var(--space-8); } }
.rates__intro .btn { margin-top: var(--space-6); }
.rates__legend { display: grid; gap: var(--space-4); margin: var(--space-6) 0 0; }
.rates__legend div { padding-inline-start: var(--space-4); border-inline-start: 0; position: relative; }
.rates__legend div::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--color-yellow); transform: rotate(45deg); }
.rates__legend dt { font-family: var(--font-display); font-weight: 700; }
.rates__legend dd { margin: 2px 0 0; color: var(--color-muted); max-width: 44ch; }
.rates .board { scroll-margin-top: 96px; }
.board .board__title::after { content: none; }

/* --------------------------------------------------------------- pour qui */

.profiles {
  display: grid;
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--color-navy);
}
.profile {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-line);
}
@media (min-width: 900px) {
  .profile {
    grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.25fr) 220px;
    align-items: center;
    column-gap: var(--space-6);
  }
}
.profile__mark { display: flex; }
.profile__mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(15, 47, 107, .2);
}
.profile__mark img + img { margin-inline-start: -12px; }
.profile__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-yellow);
}
.profile h3 { font-size: clamp(19px, 1.8vw, 22px); }
.profile p { color: var(--color-muted); max-width: 52ch; }
.profile__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-pill);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.profile__link:hover { background: var(--color-navy); color: var(--color-white); }
@media (min-width: 900px) { .profile__link { justify-self: end; } }

/* ------------------------------------------------------------ réserver */

.howto { background: var(--color-bg); }
.howto__grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .howto__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); } }

.steps { display: grid; gap: var(--space-5); margin: var(--space-6) 0 var(--space-6); padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  gap: var(--space-1);
  padding-inline-start: 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-yellow);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 48px;
  bottom: calc(var(--space-5) * -1 + 4px);
  width: 2px;
  background: var(--color-line);
}
.steps h3 { font-size: 19px; }
.steps p { color: var(--color-muted); max-width: 52ch; }

/* iPhone 14 Pro (devices.css, MIT) et interface WhatsApp iOS : le vrai message que le site prépare.
   L'appareil mesure 428 × 868 px ; il est réduit par transform dans un cadre à la bonne taille. */
.phone { --phone-scale: .78; justify-self: center; margin: 0; }
.phone__scale { width: calc(428px * var(--phone-scale)); height: calc(868px * var(--phone-scale)); }
.phone .device { transform: scale(var(--phone-scale)); transform-origin: top left; filter: drop-shadow(0 30px 40px rgba(10, 34, 82, .35)); }
[dir="rtl"] .phone .device { transform-origin: top right; }
@media (max-width: 420px) { .phone { --phone-scale: .7; } }

/* Spécificité renforcée : devices.css impose un écran noir (.device .device-screen). */
.phone .device .wa {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #EFEAE2;
  color: #111B21;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, var(--font-body);
}
.wa__status { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 18px 30px 0 34px; background: #F6F6F6; font-weight: 600; font-size: 16px; }
.wa__sys { display: flex; align-items: center; gap: 6px; }
.wa__sysicon { width: 17px; height: 17px; }
.wa__battery { width: 26px; height: 26px; }
.wa__bar { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px 8px; background: #F6F6F6; border-bottom: 1px solid #DADADA; }
.wa__back { width: 30px; height: 30px; color: #007AFF; stroke-width: 2.4; }
[dir="rtl"] .wa__back { transform: scaleX(-1); }
.wa__avatar { width: 38px; height: 38px; padding: 3px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px #E5E5E5; }
.wa__who { flex: 1; min-width: 0; }
.wa__name { font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__presence { color: #667781; font-size: 12.5px; line-height: 1.3; }
.wa__actions { display: flex; gap: 20px; color: #007AFF; }
.wa__actions .icon { width: 24px; height: 24px; }
.wa__chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  /* Motif discret du fond de conversation. */
  background-image: radial-gradient(rgba(0, 0, 0, .045) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.wa__day { align-self: center; padding: 5px 12px; border-radius: 8px; background: #FFFFFF; color: #54656F; font-size: 12.5px; font-weight: 500; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa__notice {
  align-self: center;
  margin-bottom: auto;
  display: flex;
  gap: 6px;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 8px;
  background: #FFEECD;
  color: #54656F;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wa__lock { width: 13px; height: 13px; margin-top: 2px; flex: none; }
.wa__bubble { position: relative; max-width: 82%; padding: 7px 9px 6px; border-radius: 8px; font-size: 14.5px; line-height: 1.38; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa__bubble p + p { margin-top: 3px; }
.wa__bubble--out { align-self: flex-end; background: #D9FDD3; border-start-end-radius: 0; }
.wa__bubble--out::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: -8px;
  border-top: 10px solid #D9FDD3;
  border-inline-end: 8px solid transparent;
}
.wa__bubble--in { align-self: flex-start; background: #FFFFFF; border-start-start-radius: 0; }
.wa__bubble--in::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -8px;
  border-top: 10px solid #FFFFFF;
  border-inline-start: 8px solid transparent;
}
.wa__meta { display: flex; justify-content: flex-end; align-items: center; margin-top: 2px; color: #667781; font-size: 11px; }
.wa__tick { width: 15px; height: 15px; color: #53BDEB; stroke-width: 2.6; }
.wa__tick + .wa__tick { margin-inline-start: -10px; }
.wa__typing { display: flex; gap: 4px; padding: 12px 14px; }
.wa__typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; }
@media (prefers-reduced-motion: no-preference) {
  .wa__typing span { animation: wa-typing 1.2s infinite ease-in-out; }
  .wa__typing span:nth-child(2) { animation-delay: .15s; }
  .wa__typing span:nth-child(3) { animation-delay: .3s; }
}
@keyframes wa-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wa__input { display: flex; align-items: center; gap: 12px; padding: 8px 14px 30px; background: #F6F6F6; border-top: 1px solid #DADADA; color: #007AFF; }
.wa__inicon { width: 25px; height: 25px; flex: none; }
.wa__field { flex: 1; padding: 7px 14px; border: 1px solid #DADADA; border-radius: 18px; background: #FFFFFF; color: #8696A0; font-size: 15px; }
.wa__home { position: absolute; bottom: 9px; left: 50%; width: 134px; height: 5px; border-radius: 3px; background: #111B21; transform: translateX(-50%); }

/* -------------------------------------------------------------- atouts */

.strengths { background: var(--color-yellow); color: var(--color-navy); }
.strengths h2::after { background: var(--color-navy); }
.strengths__list {
  display: grid;
  gap: 0;
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .strengths__list { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); } }
.strengths__list li { padding-block: var(--space-5); border-top: 2px solid var(--color-navy); }
.strengths__list h3 { display: flex; align-items: center; gap: var(--space-3); font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; }
.strengths__list p { margin-top: var(--space-2); max-width: 46ch; color: var(--color-navy); }
.diamond--navy { background: var(--color-navy); }
.strengths :focus-visible { outline-color: var(--color-navy); }

/* ------------------------------------------------- intérieur du bureau */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-7);
}
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--space-4); height: min(620px, 52vw); }
}
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg); aspect-ratio: 4 / 5; }
.gallery__item--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; border: 4px solid var(--color-yellow); }
@media (min-width: 900px) {
  .gallery__item { aspect-ratio: auto; }
  .gallery__item--main { grid-column: auto; grid-row: 1 / span 2; }
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------- boutique */

.shop__grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) {
  .shop__grid { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); column-gap: var(--space-8); row-gap: var(--space-7); align-items: start; }
}

.shop__photos { position: relative; padding-bottom: 18%; padding-inline-end: 22%; }
.shop__photos img { display: block; border: 4px solid var(--color-yellow); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.shop__facade { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.shop__sign { position: absolute; inset-inline-end: 0; bottom: 0; width: 52%; height: auto; aspect-ratio: 1; object-fit: cover; }

.shop__address { display: grid; gap: var(--space-1); margin-top: var(--space-5); font-style: normal; }
.shop__street { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.shop__city { color: var(--color-muted); font-size: 18px; }
.shop__missing { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-yellow-soft); font-weight: 600; }

.hours { margin-top: var(--space-5); max-width: 460px; padding: var(--space-5); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.hours__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.hours__head h3 { font-size: 17px; }
.hours .status { font-size: 15px; }
.hours__list { margin: var(--space-3) 0 0; }
.hours__list div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); border-bottom: 1px solid var(--color-line); font-size: 15px; }
.hours__list div:last-child { border-bottom: 0; }
.hours__list dt, .hours__list dd { margin: 0; }
.hours__list dd { font-variant-numeric: tabular-nums; color: var(--color-muted); }
.hours__list .is-today { font-weight: 700; }
.hours__list .is-today dd { color: var(--color-navy); }

.status { font-weight: 700; }
.status--open { color: var(--color-up); }

.shop__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #E9EEF7;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}
@media (min-width: 960px) { .map { grid-column: 1 / -1; min-height: 400px; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: var(--space-5);
  border: 0;
  background: rgba(10, 34, 82, .08);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.map__lock:hover { background: rgba(10, 34, 82, .16); }
.map__lock[hidden] { display: none; }
.map__lock span {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

/* ---------------------------------------------------------- appel final */

.cta { position: relative; overflow: hidden; background: var(--color-navy-deep); color: var(--color-white); padding-block: var(--space-8); }
.cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  inset-inline-end: -160px;
  top: 50%;
  border: 48px solid var(--color-navy);
  border-radius: 72px;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.cta__inner { position: relative; display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.cta p { margin-top: var(--space-3); color: var(--color-on-navy-muted); font-size: 18px; max-width: 40ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 599px) { .cta__actions .btn, .shop__actions .btn { flex: 1 1 100%; } }
.cta :focus-visible { outline-color: var(--color-yellow); }

/* ------------------------------------------------------------------ avis */

.reviews { background: var(--color-blue); color: var(--color-white); }
.reviews h2::after { background: var(--color-yellow); }

.reviews__source { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); color: var(--color-on-blue); font-size: 15px; }
.reviews__source .icon { width: 16px; height: 16px; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rating { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.rating__value { font-family: var(--font-display); font-size: clamp(48px, 6vw, 64px); font-weight: 800; line-height: 1; color: var(--color-yellow); }
.rating__detail { display: grid; gap: var(--space-1); color: var(--color-on-blue); font-size: 15px; }
.rating__detail > span:last-child { display: inline-flex; align-items: center; gap: var(--space-2); }
.rating__detail .icon { width: 16px; height: 16px; }
.rating .star { width: 22px; height: 22px; }
.rating .stars { color: rgba(255, 255, 255, .3); }

.reviews__demo {
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border: 1px dashed rgba(255, 255, 255, .6);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 14px;
}

.reviews__grid {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-white);
  color: var(--color-navy);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -20px rgba(10, 34, 82, .5);
}
/* Guillemet décoratif jaune. */
.review::before {
  content: "\201C";
  position: absolute;
  top: var(--space-2);
  inset-inline-end: var(--space-5);
  color: var(--color-yellow);
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
}
[dir="rtl"] .review::before { content: "\201D"; }
.review blockquote { flex: 1; margin: 0; }
.review blockquote p { font-size: 17px; line-height: 1.6; }
.review--featured blockquote p { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.5; }
.review blockquote[lang="ar"] p { font-family: var(--font-body); }

.stars { display: inline-flex; gap: 2px; color: #D5DBE6; }
.star { width: 18px; height: 18px; }
.star--on { color: var(--color-yellow); }

.review__meta { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-line); font-size: 14px; color: var(--color-muted); }
.review__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-yellow);
  font-family: var(--font-display);
  font-weight: 800;
}
.review__author { color: var(--color-navy); font-weight: 700; }
.review__meta time { margin-inline-start: auto; }

/* ------------------------------------------------------------------- FAQ */

.faq__grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .faq__grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--space-9); align-items: start; } }
.faq__intro .btn { margin-top: var(--space-5); }

.faq__list { border-top: 1px solid var(--color-line); }
.faq__item { border-bottom: 1px solid var(--color-line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-blue); }
.faq__toggle {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--color-yellow-soft);
  color: var(--color-navy);
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--color-yellow); }
.faq__item p { padding-bottom: var(--space-5); max-width: 62ch; color: var(--color-muted); }

/* ----------------------------------------------------------- formulaire */

.reserve-form { display: grid; gap: var(--space-5); }

.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--space-2); align-content: start; }
.field__label { padding: 0; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--color-navy); }

.field input, .field select {
  width: 100%;
  min-height: 50px;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-navy);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder { color: #8A93A6; }
.field input:hover, .field select:hover { border-color: #C7D0E0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 4px rgba(11, 92, 213, .15); }
.field input[aria-invalid="true"] { border-color: var(--color-down); }
.field select {
  appearance: none;
  padding-inline-end: var(--space-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F2F6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
}
[dir="rtl"] .field select { background-position: left var(--space-4) center; }
.field__error { color: var(--color-down); font-size: 14px; font-weight: 600; }

.choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: var(--space-2); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-md); background: var(--color-bg); }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.segmented input:checked + span { background: var(--color-blue); color: var(--color-white); box-shadow: 0 4px 12px -4px rgba(11, 92, 213, .6); }
.segmented input:focus-visible + span { outline: 3px solid var(--color-yellow); outline-offset: 1px; }

.estimate { display: grid; gap: 2px; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-navy); color: var(--color-white); }
.estimate__label { color: var(--color-on-navy-muted); font-size: 13px; font-weight: 600; }
.estimate__value { color: var(--color-yellow); font-family: var(--font-display); font-size: clamp(26px, 4vw, 32px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; text-align: start; }
[dir="rtl"] .estimate__value { text-align: end; }
.estimate__detail { color: var(--color-on-navy-muted); font-size: 13px; }

/* ----------------------------------------------------------------- popup */

.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: 0 40px 80px -20px rgba(10, 34, 82, .5);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(10, 34, 82, .62); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .28s var(--ease); }
.modal[open]::backdrop { animation: fade-in .28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__panel { padding: var(--space-6); border-top: 6px solid var(--color-yellow); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.modal__title { font-size: 26px; font-weight: 800; }
.modal__lead { margin-top: var(--space-2); color: var(--color-muted); font-size: 15px; }
.modal__head form { margin: 0; }
.modal__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-navy);
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.modal__close:hover { background: var(--color-line); }

/* Sur mobile : panneau qui glisse depuis le bas. */
@media (max-width: 599px) {
  .modal {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .modal[open] { animation: sheet-in .3s var(--ease); }
  .modal__panel { padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}

/* Page de réservation autonome (sans JavaScript). */
.page-reserve { padding-block: var(--space-8); background: var(--color-bg); }
.page-reserve__inner { max-width: 640px; }
.page-reserve h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.page-reserve__card { margin-top: var(--space-6); padding: var(--space-6); background: var(--color-white); border-radius: var(--radius-lg); border-top: 6px solid var(--color-yellow); box-shadow: var(--shadow-card); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--color-navy); color: var(--color-white); border-top: 6px solid var(--color-yellow); font-size: 15px; }
.site-footer__grid { display: grid; gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); } }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__brand p { margin-top: var(--space-4); max-width: 30em; color: var(--color-on-navy-muted); font-size: 14px; }
.site-footer__agreement { display: flex; align-items: center; gap: var(--space-2); color: var(--color-white) !important; font-weight: 600; }
.site-footer__agreement .icon { width: 18px; height: 18px; color: var(--color-yellow); }
.site-footer__brand .site-footer__note { margin-top: var(--space-2); font-size: 13px; opacity: .85; }
.site-footer__title { margin-bottom: var(--space-3); color: var(--color-yellow); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.site-footer__list { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.site-footer__list a { display: inline-flex; align-items: flex-start; gap: var(--space-2); min-height: 44px; padding-block: var(--space-1); color: var(--color-on-navy-muted); text-decoration: none; transition: color .15s var(--ease); }
.site-footer__list a:hover { color: var(--color-white); }
.site-footer__list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--color-yellow); }
.site-footer__hours { margin: 0; }
.site-footer__hours div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: 3px; color: var(--color-on-navy-muted); }
.site-footer__hours dt, .site-footer__hours dd { margin: 0; }
.site-footer__hours dt { white-space: nowrap; }
.site-footer__hours dd { display: grid; justify-items: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-block: var(--space-5); border-top: 1px solid var(--color-on-navy-line); color: var(--color-on-navy-muted); font-size: 13px; }
/* Crédit technique discret : même ton que la note, simple soulignement. */
.board__credit { display: block; margin-top: var(--space-1); opacity: .8; }
.board__credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.board__credit a:hover { color: var(--color-white); text-decoration-color: currentColor; }

/* -------------------------------------------------- barre d'action mobile */

.action-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -6px 20px rgba(15, 47, 107, .1);
}
.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--bar-h);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.action-bar .icon { width: 22px; height: 22px; color: var(--color-blue); }
.action-bar .action-bar__main { background: var(--color-yellow); }
.action-bar .action-bar__main .icon { color: var(--color-navy); }
body:has(.action-bar) { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .action-bar { display: none; }
  body:has(.action-bar) { padding-bottom: 0; }
}

/* ----------------------------------------------------- pages simples */

.page-simple { padding-block: var(--space-9); background: var(--color-bg); }
.page-simple h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.page-simple p { margin-top: var(--space-4); color: var(--color-muted); }
.page-simple .btn { margin-top: var(--space-6); }

/* ------------------------------------------------------- maintenance */

.maint-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: var(--space-5) var(--space-4); background: var(--color-blue); border-bottom: 8px solid var(--color-yellow); }
.maint { width: 100%; max-width: 520px; padding: var(--space-7) var(--space-6); background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-board); text-align: center; }
.maint__logo { width: 220px; max-width: 70%; height: auto; margin: 0 auto var(--space-6); }
.maint h1 { font-size: 26px; font-weight: 800; }
.maint p { margin-top: var(--space-2); color: var(--color-muted); }
.maint hr { margin: var(--space-5) 0; border: 0; border-top: 1px solid var(--color-line); }
.maint .btn { margin-top: var(--space-5); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-5); }
.countdown__part { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-1) var(--space-3); border-radius: var(--radius-md); background: var(--color-navy); color: var(--color-white); }
.countdown__value { color: var(--color-yellow); font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown__label { display: grid; color: var(--color-on-navy-muted); font-size: 12px; line-height: 1.3; }
.maint__agreement { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5) !important; color: var(--color-navy) !important; font-size: 14px; font-weight: 600; }
.maint__agreement .icon { width: 18px; height: 18px; color: var(--color-blue); }

/* ------------------------------------------------------------------ blog */

.site-nav a[aria-current="page"] { color: var(--color-blue); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: 14px; color: var(--color-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--color-muted); opacity: .5; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-blue); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--color-navy); font-weight: 600; }
.post-hero .breadcrumb [aria-current] { display: none; }
@media (min-width: 900px) { .post-hero .breadcrumb [aria-current] { display: inline-flex; max-width: 48ch; overflow: hidden; } }

.blog-hero, .post-hero { padding-block: var(--space-7) var(--space-6); background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.blog-hero h1, .post-hero h1 { max-width: 22ch; font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
.post-hero h1 { max-width: 28ch; font-size: clamp(28px, 3.8vw, 44px); }
.blog-hero__lead { max-width: 60ch; margin-top: var(--space-4); color: var(--color-muted); font-size: 18px; }
.post-hero__meta { margin-top: var(--space-4); color: var(--color-muted); font-size: 15px; }
.post-hero__meta span[aria-hidden] { margin-inline: var(--space-1); }

.post-grid { display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; }
.post-card__link {
  display: flex; flex-direction: column; width: 100%;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: inherit; text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.post-card__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--color-blue); }
.post-card__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; flex: 1; gap: var(--space-2); padding: var(--space-5); }
.post-card__meta { color: var(--color-muted); font-size: 14px; }
.post-card__title { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.post-card__excerpt { color: var(--color-muted); font-size: 16px; }
.post-card__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); color: var(--color-blue); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.post-card__more .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.post-card__link:hover .post-card__more .icon { transform: translateX(3px); }
[dir="rtl"] .post-card__more .icon { transform: scaleX(-1); }

.post__layout { display: grid; gap: var(--space-7); padding-block: var(--space-7) var(--space-8); }
@media (min-width: 1000px) { .post__layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: var(--space-8); } }
.post__main { min-width: 0; max-width: 720px; }
.post__figure { margin: 0 0 var(--space-6); }
.post__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.post__aside { min-width: 0; }
@media (min-width: 1000px) { .post__aside { position: sticky; top: calc(76px + var(--space-5)); } }

.prose { font-size: 17px; line-height: 1.75; }
@media (min-width: 900px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: var(--space-4); }
.prose__lead { font-size: 1.15em; line-height: 1.6; color: var(--color-navy); font-weight: 600; }
.prose h2 { margin-top: var(--space-7); font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; }
.prose h3 { margin-top: var(--space-6); font-size: 20px; }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-inline-start: 1.25em; }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--color-blue); font-weight: 700; }
.prose strong { color: var(--color-navy); }
.prose a { font-weight: 600; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose__note { padding: var(--space-4) var(--space-5); border-inline-start: 4px solid var(--color-yellow); background: var(--color-yellow-soft); border-radius: var(--radius-sm); font-size: 15px; color: var(--color-navy); }

.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: var(--space-3) var(--space-4); text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.prose thead th { background: var(--color-navy); color: var(--color-white); font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; }
.prose tbody th { font-weight: 700; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: var(--color-bg); }

.shop-card { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-5); background: var(--color-blue); color: var(--color-white); border-radius: var(--radius-lg); border-bottom: 6px solid var(--color-yellow); box-shadow: var(--shadow-lift); }
.shop-card__logo { width: 48px; height: 48px; padding: 6px; background: var(--color-white); border-radius: var(--radius-sm); }
.shop-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.shop-card__lead { margin-top: calc(-1 * var(--space-3)); color: var(--color-on-blue); }
.shop-card__list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.shop-card__list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.shop-card__list .icon { margin-top: 3px; color: var(--color-yellow); }
.shop-card__list a { color: var(--color-white); font-weight: 600; text-decoration: none; }
.shop-card__list a:hover { text-decoration: underline; }
.shop-card__hours { display: grid; gap: var(--space-1); margin: 0; padding-block: var(--space-3); border-block: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.shop-card__hours div { display: flex; justify-content: space-between; gap: var(--space-3); }
.shop-card__hours dt { color: var(--color-on-blue); }
.shop-card__hours dd { margin: 0; font-weight: 700; }
.shop-card .btn { margin-top: 0; }
.shop-card :focus-visible { outline-color: var(--color-yellow); }

.post-related { background: var(--color-bg); border-top: 1px solid var(--color-line); }
.post-related h2 { margin-bottom: var(--space-6); font-size: clamp(26px, 3vw, 34px); }
.section .post-card__title::after { display: none; }

/* Menu : un lien = une ligne. Entre 960 et 1199 px, liens plus serrés pour que les 6 entrées tiennent. */
@media (min-width: 960px) {
  .site-nav a { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .site-header__inner { gap: var(--space-3); }
  .site-nav { margin-inline-start: var(--space-2); gap: 0; }
  .site-nav a { padding-inline: var(--space-2); font-size: 14px; }
  .site-nav a::after { inset-inline: var(--space-2); }
  .brand img { height: 36px; }
}

/* Encadré « Demandez une offre sur Deviz » (article partenariat) : couleur menthe de Deviz, formes du site. */
.prose .deviz-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-5); margin-top: var(--space-6); padding: var(--space-5); background: #07081A; color: var(--color-white); border-radius: var(--radius-lg); box-shadow: inset 0 -4px 0 #6DCCB4; }
.deviz-cta__text { flex: 1 1 260px; }
.deviz-cta__title { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.25; }
.deviz-cta__text p + p { line-height: 1.5; }
.deviz-cta__text p + p { margin-top: var(--space-1); color: #C9CBE0; font-size: 16px; }
.prose a.btn--deviz, .btn--deviz { flex: none; min-height: 48px; padding-inline: var(--space-5); border-radius: var(--radius-pill); background: #6DCCB4; color: #07081A; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px -6px rgba(109, 204, 180, .6); }
.btn--deviz:hover { background: #86D8C3; }
.btn--deviz .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn--deviz:hover .icon { transform: translateX(3px); }
.deviz-cta :focus-visible { outline-color: #6DCCB4; }
@media (max-width: 599px) { .btn--deviz { width: 100%; padding-inline: var(--space-4); font-size: 15px; text-align: center; } .prose .deviz-cta { padding: var(--space-5) var(--space-4); } }
@media (max-width: 379px) { .btn--deviz .icon { display: none; } }

/* « Powered by Deviz » sous le tableau des cours. */
.board__credit a { font-weight: 700; }
