/* ==========================================================================
   SLAM — Smart Luxury Auto Mobility
   Design system : bleu nuit / or / blanc (identité de l'affiche)
   Structure : 1 tokens · 2 base · 3 layout · 4 composants · 5 pages · 6 utilitaires
   ========================================================================== */

/* Police hébergée sur le site (aucune requête vers Google) — Montserrat, sans empattements, licence SIL OFL 1.1 (assets/fonts/LICENSE.txt) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Polices de secours calibrées (limite le décalage de mise en page pendant le chargement des polices) */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); size-adjust: 113%; ascent-override: 85%; descent-override: 22%; line-gap-override: 0%; }

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Couleur de marque sombre : bordeaux, en 4 niveaux (triplets RVB, utilisables aussi avec transparence).
     Les noms --navy-* sont conservés pour ne pas réécrire tout le fichier. */
  --d950: 30, 7, 16; --d900: 52, 12, 27; --d800: 78, 18, 40; --d700: 122, 31, 61;
  --navy-950: rgb(var(--d950));
  --navy-900: rgb(var(--d900));
  --navy-800: rgb(var(--d800));
  --navy-700: rgb(var(--d700));
  --gold-300: #f2d27a;
  --gold-400: #e4b948;
  --gold-500: #d9a93a;
  --gold-700: #8a6410;        /* or lisible sur fond blanc (contraste ≥ 5:1) */
  --white: #ffffff;
  --grey-50: #faf5f3;
  --grey-100: #efe5e2;
  --grey-300: #d6c8c4;
  --grey-600: #5e4a4e;        /* texte secondaire sur blanc (contraste ≥ 7:1) */
  --ink: #2a1219;
  --danger: #b3261e;
  --ok: #1d6b3a;

  --font-title: var(--font-body);
  --font-body: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(var(--d900), .12);
  --shadow-gold: 0 8px 24px rgba(217, 169, 58, .35);
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 1180px;
  --header-h: 68px;
  --bar-h: 64px;              /* barre d'actions mobile */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.015em; color: var(--navy-900); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
ul { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-300); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold-500); color: var(--navy-900); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--grey { background: var(--grey-50); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #f4ece8; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .9rem; }
.section--navy .eyebrow, .on-dark .eyebrow { color: var(--gold-400); }
.rule { display: block; width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); border-radius: 2px; margin: 0 0 1.4rem; }
.center .rule { margin-inline: auto; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* 4. COMPOSANTS ------------------------------------------------------------ */
/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn--gold:hover { color: var(--navy-900); box-shadow: 0 12px 30px rgba(217, 169, 58, .5); }
.btn--outline { border-color: var(--gold-500); color: var(--white); background: transparent; }
.btn--outline:hover { background: rgba(217, 169, 58, .15); color: var(--white); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); color: var(--white); }
.btn--outline-dark { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn--outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn--sm { min-height: 44px; padding: .6rem 1.2rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(var(--d900), .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(217, 169, 58, .25); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .6rem .85rem; color: #efe6e1; text-decoration: none; font-size: .9rem; font-weight: 500; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--gold-300); }
.nav a[aria-current="page"] { color: var(--gold-300); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.lang-switch { display: flex; gap: .1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; color: #cdbdb7; text-decoration: none; border-radius: 8px; }
.lang-switch [aria-current="true"] { color: var(--gold-300); background: rgba(217, 169, 58, .14); }
.lang-switch a:hover { color: var(--white); }
.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; background: transparent; border: 1px solid rgba(217, 169, 58, .5); border-radius: 10px; color: var(--gold-300); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1020px) {
  /* backdrop-filter créerait un bloc conteneur pour le menu en position fixed : on le retire en mobile */
  .site-header { backdrop-filter: none; background: var(--navy-900); }
  .menu-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 1.5rem var(--gutter) calc(var(--bar-h) + 2rem); background: var(--navy-900); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 1rem .4rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-extra { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
  .nav .nav-extra .lang-switch { justify-content: flex-start; }
}
@media (min-width: 1021px) { .nav .nav-extra { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #f4ece8; background:
  radial-gradient(900px 480px at 82% 8%, rgba(217, 169, 58, .22), transparent 60%),
  linear-gradient(90deg, rgba(var(--d950), .97) 0%, rgba(var(--d900), .9) 42%, rgba(var(--d800), .55) 100%),
  url("/assets/img/photos/route-dades-hero.webp") center right / cover no-repeat,
  linear-gradient(165deg, var(--navy-950), var(--navy-800)); }
@media (max-width: 959px) { .hero { background:
  radial-gradient(700px 400px at 82% 8%, rgba(217, 169, 58, .2), transparent 60%),
  linear-gradient(180deg, rgba(var(--d950), .94), rgba(var(--d900), .9)),
  url("/assets/img/photos/route-dades-hero.webp") center / cover no-repeat,
  var(--navy-900); } }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; border: 2px solid transparent; }
.hero::before { width: 720px; height: 720px; right: -260px; top: -140px; border-color: rgba(217, 169, 58, .5); box-shadow: 0 0 0 18px rgba(217, 169, 58, .06), inset 0 0 0 18px rgba(217, 169, 58, .04); }
.hero::after { width: 520px; height: 520px; left: -240px; bottom: -300px; border-color: rgba(217, 169, 58, .4); }
.hero .container { position: relative; z-index: 1; padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p { max-width: 58ch; font-size: 1.08rem; color: #e8dcd6; }
.hero .btn-row { margin-top: 2rem; }
.hero-strip { position: relative; z-index: 1; border-top: 1px solid rgba(217, 169, 58, .3); background: rgba(var(--d950), .55); }
.hero-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hero-strip li { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1rem; color: var(--white); font-weight: 500; font-size: .95rem; line-height: 1.35; }
.hero-strip li + li { border-left: 1px solid rgba(217, 169, 58, .25); }
.hero-strip .icon { width: 2rem; height: 2rem; color: var(--gold-400); stroke-width: 1.5; }
@media (max-width: 720px) { .hero-strip li + li { border-left: 0; border-top: 1px solid rgba(217, 169, 58, .18); } .hero-strip ul { grid-template-columns: 1fr 1fr; } .hero-strip li:nth-child(odd) { border-right: 1px solid rgba(217, 169, 58, .18); } .hero-strip li { padding: 1rem .8rem; font-size: .85rem; gap: .6rem; } .hero-strip .icon { width: 1.6rem; height: 1.6rem; } }

/* En-tête de page interne */
.page-hero { position: relative; overflow: hidden; color: #f4ece8; background:
  radial-gradient(700px 340px at 90% 0%, rgba(217, 169, 58, .2), transparent 60%),
  linear-gradient(165deg, var(--navy-950), var(--navy-800)); }
.page-hero .container { padding-block: clamp(2.8rem, 7vw, 5rem); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: .4em; }
.page-hero p { max-width: 62ch; color: #e8dcd6; font-size: 1.05rem; margin-bottom: 0; }
.page-hero::after { content: ""; position: absolute; right: -140px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(217, 169, 58, .45); pointer-events: none; }
.breadcrumb { font-size: .82rem; margin-bottom: 1.2rem; color: #cdbdb7; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--gold-500); }
.breadcrumb a { color: #e8dcd6; }
.breadcrumb a:hover { color: var(--gold-300); }

/* Cartes */
.card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 2px 0 rgba(217, 169, 58, .0); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(217, 169, 58, .55); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(145deg, var(--navy-800), var(--navy-900)); color: var(--gold-400); margin-bottom: 1.1rem; }
.card .icon-badge .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.card--offer { border-top: 4px solid var(--gold-500); }
.card ul.check { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.card ul.check li, ul.check li { position: relative; padding-left: 1.7rem; margin-bottom: .45rem; }
ul.check { list-style: none; padding: 0; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a93a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* Texte + visuel */
.split { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }
.quote-panel { border-left: 4px solid var(--gold-500); padding: 1.6rem 1.8rem; background: var(--grey-50); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-title); font-weight: 500; font-size: 1.3rem; line-height: 1.45; color: var(--navy-900); }

/* Flotte */
.fleet-grid { min-height: 440px; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.vehicle { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.vehicle:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(217, 169, 58, .55); }
.vehicle-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); display: grid; place-items: center; overflow: hidden; }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-media .placeholder { width: 100%; color: var(--gold-400); text-align: center; padding: 1rem; }
.vehicle-media .placeholder svg { width: 62%; height: auto; max-width: 230px; margin: 0 auto .5rem; stroke-width: 1.2; }
.vehicle-media .placeholder span { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #cdbdb7; }
.vehicle-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.vehicle-body h3 { margin-bottom: .2rem; }
.vehicle-cat { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .6rem; }
.vehicle-body p { color: var(--grey-600); }
.specs { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.specs li { font-size: .82rem; font-weight: 500; padding: .3rem .75rem; border-radius: 999px; background: var(--grey-50); border: 1px solid var(--grey-100); color: var(--navy-900); }
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.status--available { background: #e3f4e9; color: var(--ok); }
.status--unavailable { background: #fbe6e4; color: var(--danger); }
.vehicle-cta { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.note { font-size: .88rem; color: var(--grey-600); border-left: 3px solid var(--gold-500); padding-left: 1rem; margin-top: 2rem; }

/* Bandeau d'appel à l'action */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .container { max-width: 800px; }
.cta-band p { font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* Contact */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1fr 1.5fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; min-height: 64px; border-radius: var(--radius); border: 1px solid var(--grey-100); background: var(--white); color: var(--navy-900); text-decoration: none; font-weight: 600; transition: border-color .2s, box-shadow .2s, transform .2s; overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-list .icon-badge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-900); color: var(--gold-400); }
.contact-list small { display: block; font-weight: 500; color: var(--grey-600); font-size: .8rem; }

/* Formulaire */
.form-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: clamp(1.3rem, 3.5vw, 2.2rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }
.form-grid { display: grid; gap: 1.1rem 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--grey-300); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(217, 169, 58, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .help { font-size: .8rem; color: var(--grey-600); }
.field .error { font-size: .82rem; color: var(--danger); font-weight: 500; min-height: 0; }
.field .error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; accent-color: var(--navy-700); flex: none; }
.optional { border: 1px dashed var(--grey-300); border-radius: var(--radius-sm); padding: .2rem 1.1rem 1.1rem; }
.optional summary { cursor: pointer; font-weight: 600; padding: .9rem 0; min-height: 44px; color: var(--navy-700); }
.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e3f4e9; color: #144d29; border: 1px solid #a5d8b5; }
.form-status.is-err { background: #fbe6e4; color: #7e1a14; border: 1px solid #efb3ae; }
.form-status strong { display: block; font-size: 1.1rem; }
.form-status a { color: inherit; font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .4rem; }

/* Tableaux (conditions) */
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-100); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
th { background: var(--grey-50); font-weight: 600; width: 38%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.pending { color: var(--grey-600); font-style: italic; }

/* Pages de texte (légal) */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose .todo { background: #fff6dc; border: 1px solid #ecd48b; border-radius: 6px; padding: .05rem .45rem; font-weight: 600; color: #6b4e08; white-space: nowrap; }
.callout { border: 1px solid #ecd48b; background: #fff9e8; border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.8rem; color: #5a4208; }

/* Pied de page */
.site-footer { background: var(--navy-950); color: #cfc0ba; padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 3px solid var(--gold-500); }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .2rem; }
.site-footer a { color: #e8dcd6; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 36px; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-block: 1.4rem calc(1.4rem + var(--bar-h)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
@media (min-width: 768px) { .footer-bottom { padding-bottom: 1.4rem; } }

/* Barre d'actions mobile + WhatsApp flottant */
.action-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy-900); border-top: 1px solid rgba(217, 169, 58, .45); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: var(--bar-h); color: #f4ece8; text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .03em; }
.action-bar a .icon { width: 22px; height: 22px; }
.action-bar a:last-child { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-900); }
.wa-float { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: none; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: var(--white); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.wa-float .icon { width: 28px; height: 28px; }
@media (min-width: 768px) { .action-bar { display: none; } .wa-float { display: inline-flex; } }
@media (max-width: 767px) { body { padding-bottom: var(--bar-h); } }

/* Animations discrètes (révélation au défilement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 6. DIRECTION (prévu pour l'arabe, v2) ---------------------------------- */
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] ul.check li { padding-left: 0; padding-right: 1.7rem; }
[dir="rtl"] ul.check li::before { left: auto; right: 0; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* 7. UTILITAIRES (remplacent les styles en ligne : CSP stricte) ------------- */
.rule--center { margin-inline: auto; }
.center-row { margin-top: 2rem; text-align: center; }
.mt-lg { margin-top: 2rem; }
.lead { font-size: 1.1rem; }
.narrow { max-width: 820px; }
.narrow-form { max-width: 860px; }
.text-center { text-align: center; }
.h2-sm { font-size: 1.5rem; }
.pro-fields { display: contents; }
.pro-fields[hidden] { display: none; }
.consent-error { display: block; color: var(--danger); font-size: .82rem; font-weight: 500; }
.consent-error:empty { display: none; }

/* Ajustements en-tête (éviter les retours à la ligne dans le menu) */
.nav a { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1200px) {
  .nav a { padding-inline: .55rem; font-size: .85rem; }
  .header-actions { gap: .4rem; }
  .header-actions .btn { padding-inline: 1rem; }
}

/* Hero : bloc de contact rapide */
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr .95fr; } }
.hero-card { background: rgba(var(--d950), .55); border: 1px solid rgba(217, 169, 58, .45); border-radius: var(--radius); padding: 1.6rem; backdrop-filter: blur(6px); }
.hero-card h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.hero-card a { font-size: .9rem; display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: .7rem .9rem; border-radius: 10px; color: var(--white); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, background .2s; }
.hero-card a:hover { border-color: var(--gold-500); background: rgba(217, 169, 58, .1); color: var(--white); }
.hero-card .icon { width: 1.5rem; height: 1.5rem; color: var(--gold-400); }
.hero-card small { display: block; font-weight: 500; font-size: .76rem; color: #cdbdb7; }
@media (max-width: 959px) { .hero-card { display: none; } }

/* Bouton d'action dans le menu (priorité sur .nav a) */
.nav .btn { white-space: normal; text-align: center; border-bottom: 2px solid transparent; font-size: .95rem; }
.nav .btn--gold { color: var(--navy-900); }
.nav .btn--gold:hover { color: var(--navy-900); }

/* Photos */
.photo { position: relative; margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-900); }
.photo img { width: 100%; height: auto; display: block; }
.photo figcaption, .photo-credit { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: .25rem .6rem; font-size: .7rem; line-height: 1.4; background: rgba(var(--d950), .78); border-top-left-radius: 8px; }
.photo figcaption a, .photo-credit { color: #f4ece8; text-decoration: none; }
.photo figcaption a:hover, .photo-credit:hover { color: var(--gold-300); text-decoration: underline; }
.narrow-photo { max-width: 980px; }
.section-head-split { align-items: center; margin-bottom: 2.5rem; }
.section-head-split .photo { margin-bottom: 0; }
.footer-bottom a { min-height: 0; }
