/* Site public. Les couleurs viennent de /theme.css (réglages de l'administration). */
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dmsans.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("/assets/fonts/archivo-black.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --gold: #d4af37;
  --gold-light: #f3d06b;
  /* Haut des dégradés des boutons (clair pour que le texte foncé reste lisible). */
  --gold-hi: color-mix(in srgb, var(--gold) 55%, #fff4c2);
  --bg: #070709;
  --surface: #121317;
  --text: #f3f4f6;
  --on-gold: #111014;
  --muted: color-mix(in srgb, var(--text) 78%, var(--bg));
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --field: color-mix(in srgb, var(--text) 5%, var(--bg));
  --danger: #ef5b5b;
  --ok: #3fbf7f;
  --radius: 14px;
  --display: "Archivo Black", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); }
p, li, dd, blockquote { text-wrap: pretty; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Arabe : polices système et aucun resserrement des lettres. */
:root:lang(ar) { --display: system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-weight: 800; letter-spacing: 0; line-height: 1.35; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { max-width: 780px; }
.wrap.tiny { max-width: 460px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 32px 0; }
.note { color: var(--muted); font-size: .875rem; margin: 10px 0 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--on-gold); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--on-gold); font: 700 .95rem/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer; transition: filter .15s, transform .15s; }
.btn:hover { color: var(--on-gold); filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .875rem; }
.btn-block { display: flex; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { max-height: 52px; max-width: 190px; width: auto; }
.brand-name { font-family: var(--display); font-size: 1.35rem; color: var(--gold-light); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; }
.site-menu { margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.main-nav ul, .dropdown ul, .socials, .contact-list, .breadcrumbs ol, .highlights, .car-grid, .specs, .agency-strip, .agency-grid, .card-grid, .feature-grid, .price-grid, .review-rail, .stats, .thumbs, .review-list, .option-list, .radio-list, .pagination ol { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; color: var(--text); text-decoration: none; font-weight: 500; padding: 10px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.header-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dropdown { position: relative; }
.dropdown summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: .8rem; font-weight: 700; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.dropdown[open] summary { border-color: var(--gold); }
.dropdown ul { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 0; z-index: 30; min-width: 150px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgb(0 0 0 / .35); }
.dropdown a { display: block; padding: 9px 11px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.dropdown a:hover { color: var(--gold-light); }
.dropdown a[aria-current="true"] { background: var(--gold); color: var(--on-gold); }
.header-phone { white-space: nowrap; gap: 8px; }
.i-phone { flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("/assets/img/phone.svg") center / contain no-repeat; mask: url("/assets/img/phone.svg") center / contain no-repeat; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1239.98px) {
  .site-menu:popover-open { display: flex; flex-direction: column; align-items: stretch; gap: 20px; position: fixed; inset: 73px 0 auto 0; width: 100%; max-width: none; height: auto; max-height: calc(100dvh - 73px); overflow: auto; background: var(--surface); padding: 16px 20px 24px; border-bottom: 2px solid var(--gold); }
  .main-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 1240px) {
  .menu-toggle { display: none; }
  .site-menu { display: flex; position: static; inset: auto; width: auto; height: auto; overflow: visible; flex: 1; align-items: center; justify-content: space-between; gap: 16px; }
  .main-nav { margin-inline: auto; }
  .main-nav ul { display: flex; gap: 15px; }
  .main-nav a { font-size: .9rem; }
  .dropdown ul { inset-inline: auto 0; }
  .header-tools { flex-wrap: nowrap; gap: 10px; }
}

/* Fil d'Ariane et messages */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.breadcrumbs a { color: var(--muted); }
.flash-wrap { position: sticky; top: 84px; z-index: 15; }
.flash { margin: 14px 0 0; padding: 14px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--ok); border-inline-start-width: 5px; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.flash-error { border-color: var(--danger); }

/* Accueil */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0; background: radial-gradient(80% 90% at 85% 10%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 65%), var(--bg); }
.hero > picture { position: absolute; inset: 0; z-index: -2; }
.hero-media { width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--bg) 94%, transparent) 10%, color-mix(in srgb, var(--bg) 62%, transparent) 60%, color-mix(in srgb, var(--bg) 50%, transparent)); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--gold) 0 44px, transparent 44px 72px); opacity: .8; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); margin-bottom: .35em; }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: var(--muted); max-width: 34em; }
.highlights { display: grid; gap: 10px; margin: 24px 0; }
.highlights li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.highlights li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); }
.hero-phone span { display: block; font-size: .85rem; color: var(--muted); }
.hero-phone a { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); text-decoration: none; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

.booking-card { background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow, 0 24px 60px rgb(0 0 0 / .3)); }
.booking-card h2 { font-size: 1.35rem; padding-bottom: 14px; border-bottom: 2px dashed var(--line); margin-bottom: 18px; }
.booking-empty { text-align: center; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); color: var(--text); font: 400 1rem/1.4 var(--body); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--gold); flex: none; }
.search-form, .form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.field-wide { grid-column: 1 / -1; }
.form { display: grid; gap: 14px; align-content: start; }
.form h1, .form h2 { margin-bottom: 4px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
fieldset.panel legend { float: inline-start; width: 100%; font-family: var(--display); font-size: 1.15rem; margin-bottom: 16px; padding: 0; }
fieldset.panel legend + * { clear: both; }

/* Sections */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section-top { padding-top: 28px; }
.section-alt { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
.section-intro { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }
.section-head :is(h1, h2)::before, .page-head h1::before { content: ""; display: block; width: 66px; height: 5px; margin-bottom: 14px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 24px); }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: .3em; }

/* Voitures */
.car-grid { display: grid; gap: 22px; }
/* Listes : 1 colonne sur mobile, 2 sur tablette, « Éléments par ligne » (réglage, 3 par défaut) sur ordinateur. */
:is(.car-grid, .card-grid, .feature-grid, .price-grid, .agency-grid, .review-rail) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { :is(.car-grid, .card-grid, .feature-grid, .price-grid, .agency-grid, .review-rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { :is(.car-grid, .card-grid, .feature-grid, .price-grid, .agency-grid, .review-rail) { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.car-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.car-card:hover { border-color: color-mix(in srgb, var(--gold) 70%, transparent); transform: translateY(-3px); }
.car-card.is-new { animation: appear .45s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(18px); } }
.car-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--field); }
.car-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.car-category { color: var(--gold-light); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.car-body h3 a { color: var(--text); text-decoration: none; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.specs li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; color: var(--muted); }
.car-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--line); }
.price { margin: 0; }
.price strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--gold-light); white-space: nowrap; }
.price span { color: var(--muted); font-size: .85rem; }
.price-large strong { font-size: 2.1rem; }
.load-more { display: flex; flex-direction: column; align-items: center; margin-top: 32px; }
.load-status { min-height: 1.6em; margin: 10px 0 0; color: var(--muted); font-size: .9rem; }

.agency-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.agency-strip li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.agency-strip li { border-inline-start: 3px solid var(--gold); }
.agency-strip span { display: block; color: var(--muted); font-size: .9rem; }

.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(45%, 165px), 1fr)); align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 28px; }
.filter-actions { display: flex; align-items: center; gap: 14px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; }
.pagination ol { display: flex; gap: 6px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--gold); color: var(--on-gold); font-weight: 700; }

/* Fiche voiture */
.detail-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .detail-side .booking-card { position: sticky; top: 96px; } }
.detail-main h2 { margin-top: 36px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.gallery-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 2px; }
.thumbs a { display: block; width: 96px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.thumbs a[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); margin: 0; }
.features div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.features dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.features dd { margin: 6px 0 0; font-weight: 700; }
.deal { background: color-mix(in srgb, var(--gold) 15%, transparent); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child > * { border-bottom: 0; }

/* Contenus */
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-top { margin-top: 36px; gap: 20px; }
.rounded { margin: 0; border-radius: var(--radius); overflow: hidden; }
.rounded img { width: 100%; }
.prose { max-width: 68ch; overflow-wrap: break-word; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding-inline-start: 18px; border-inline-start: 4px solid var(--gold); color: var(--muted); }
.card-grid { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 1.25rem; }
.card .actions { margin: 18px 0 0; }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.contact-large { font-size: 1.12rem; gap: 16px; margin-bottom: 24px; }
.badge { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-light); font-size: .75rem; font-weight: 700; }
.badge-confirmed, .badge-completed { border-color: var(--ok); color: var(--ok); }
.badge-cancelled { border-color: var(--danger); color: var(--danger); }
td .badge { margin: 0; }
.accordion { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.accordion summary { cursor: pointer; padding: 16px 20px; font-weight: 700; }
.accordion[open] summary { color: var(--gold-light); }
.accordion p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
.rating-summary strong { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--gold-light); margin-inline-end: 10px; }
.review-list .card { display: flex; flex-direction: column; }
.review-list .card > p:last-child { margin-top: auto; }
.form-review { max-width: 720px; margin: 40px auto 0; }
.review-list blockquote { margin: 0; }
.stars { color: var(--gold-light); letter-spacing: 3px; margin-bottom: 8px; }

/* Réservation */
.checkout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .checkout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .summary { position: sticky; top: 96px; } }
.option-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.option-list li:last-child { border-bottom: 0; }
.option-list p { margin: 0; }
.option-price { text-align: end; font-weight: 700; }
.option-price span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.option-check { justify-self: center; width: 26px !important; height: 26px !important; }
@media (max-width: 520px) { .option-list li { grid-template-columns: minmax(0, 1fr) 76px; } .option-list li > div { grid-column: 1 / -1; } .option-price { text-align: start; } }
.radio-list { display: grid; gap: 10px; }
.radio-list label { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-list label:has(:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.summary-car img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.summary .btn { margin-top: 18px; }
.quote { margin: 0; }
.quote > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.quote dt { color: var(--muted); }
.quote dd { margin: 0; text-align: end; font-weight: 500; }
.quote > .quote-sub { font-size: .86rem; padding: 5px 0; }
.quote > .quote-discount dd { color: var(--ok); }
.quote > .quote-total { border-top: 2px dashed var(--gold); align-items: baseline; }
.quote-total dt { color: var(--text); font-weight: 700; }
.quote-total dd { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--gold-light); }
[data-quote-output].is-loading { opacity: .5; }
.quote-error { color: var(--danger); }
.terms { margin-top: 14px; font-size: .9rem; }
.terms summary { cursor: pointer; }
.reference span { display: block; color: var(--muted); font-size: .85rem; }
.reference strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); color: var(--gold-light); letter-spacing: .03em; }

/* Pied de page */
.site-footer { margin-top: 40px; padding: 52px 0 24px; background: var(--surface); border-top: 3px solid var(--gold); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand { font-family: var(--display); font-size: 1.4rem; color: var(--gold-light); margin-bottom: 8px; }
.footer-title { font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; color: var(--muted); }
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); padding-bottom: 48px; }
.whatsapp-fab { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 18; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 99px; background: #25d366; color: #06240f; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgb(0 0 0 / .35); }
.whatsapp-fab:hover { color: #06240f; }
@media (max-width: 699.98px) { .whatsapp-fab { display: none; } }

/* Erreurs */
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; }
.error-code { font-family: var(--display); font-size: clamp(5rem, 22vw, 10rem); line-height: 1; color: var(--gold); margin: 0; }
.error-detail { text-align: left; white-space: pre-wrap; font-size: .8rem; max-width: 90vw; overflow: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .whatsapp-fab, .actions { display: none !important; } body { background: #fff; color: #000; } }
/* Contenu pas encore traduit (latin) affiché dans une page arabe : ponctuation correcte. */
[dir="rtl"] :is(.hero-title, .hero-copy .lead, .prose p, .prose li) { unicode-bidi: plaintext; text-align: right; }
[data-copy] { margin-top: 10px; }
/* Demande de réservation */
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.steps-mini { margin: 16px 0 0; padding-inline-start: 1.2em; color: var(--muted); font-size: .85rem; display: grid; gap: 4px; }
.steps-mini li::marker { color: var(--gold-light); font-weight: 700; }
.next-steps { display: grid; gap: 10px; margin: 0; padding-inline-start: 1.3em; }
.next-steps li::marker { color: var(--gold-light); font-weight: 700; }

/* ===== Accueil modulable ===== */
.eyebrow { margin: 0 0 6px; color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lead-text { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

/* Apparition douce au défilement (seulement pour les éléments hors écran au chargement). */
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.feature-grid .reveal:nth-child(2), .price-grid .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3), .price-grid .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: .16s; }
.feature-grid .reveal:nth-child(4), .price-grid .reveal:nth-child(4), .stats .reveal:nth-child(4) { transition-delay: .24s; }

/* Onglets de catégories */
.tabs-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 18px; scrollbar-width: thin; }
.tabs-pills a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s, border-color .2s; }
.tabs-pills a small { color: var(--muted); font-weight: 500; }
.tabs-pills a:hover { border-color: var(--gold); }
.tabs-pills a[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.tabs-pills a[aria-current="true"] small { color: inherit; opacity: .75; }
.car-grid.is-loading { opacity: .45; transition: opacity .2s; }
.car-similar { margin: -.4em 0 12px; color: var(--muted); font-size: .85rem; }

/* Promotion */
.promo-band { background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 26%, var(--bg)), color-mix(in srgb, var(--gold) 8%, var(--bg)) 70%); border-block: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.promo-inner { display: grid; gap: 20px; align-items: center; padding-block: clamp(24px, 4vw, 40px); }
.promo-title { margin-bottom: .3em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); }
.promo-inner p { margin-bottom: .4em; }
.promo-until { color: var(--muted); font-size: .9rem; }
.promo-code { display: grid; gap: 8px; justify-items: start; }
.promo-code label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.promo-code input { width: auto; max-width: 100%; min-width: 8ch; padding-inline: 18px; font: 400 1.6rem/1 var(--display); letter-spacing: .08em; color: var(--gold-light); text-align: center; border: 2px dashed var(--gold); background: transparent; }
@media (min-width: 820px) { .promo-inner { grid-template-columns: 1fr auto; } }

/* Chiffres clés */
.stats-band { border-block: 1px solid var(--line); background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 180px), 1fr)); gap: 8px; padding-block: 26px; }
.stats li { display: grid; gap: 4px; padding: 10px 14px; text-align: center; }
.stats strong { font: 400 clamp(1.8rem, 1.3rem + 2vw, 2.8rem)/1.05 var(--display); color: var(--gold-light); }
.stats span { color: var(--muted); font-size: .95rem; }

/* Cartes d'avantages, de services et d'étapes */
.feature-grid { display: grid; gap: 18px; }
.feature { position: relative; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); transform: translateY(-2px); }
.feature h3 { font-size: 1.15rem; margin-bottom: .45em; }
.feature p { margin: 0; color: var(--muted); }
.feature-grid:not(.is-numbered) .feature::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--gold); margin-bottom: 16px; }
.feature-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--on-gold); font: 400 1.2rem/1 var(--display); }
@media (min-width: 1000px) { .section-steps .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Tarifs par catégorie */
.price-grid { display: grid; gap: 16px; }
.price-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); }
.price-card h3 { margin: 0; font-size: 1.15rem; }
.price-from { margin: 4px 0; }
.price-from span { color: var(--muted); font-size: .88rem; }
.price-from strong { font: 400 1.7rem/1.1 var(--display); color: var(--gold-light); white-space: nowrap; }
.price-card .muted { font-size: .92rem; }
.price-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* Agences */
.agency-grid { display: grid; gap: 14px; }
.agency-card { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: var(--radius); }
.agency-card .link-arrow { margin-top: 6px; font-size: .92rem; }

/* Avis : bande défilante avec aimantation */
.review-rail { display: grid; gap: 16px; }
.review-card { display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review-card blockquote { margin: 0 0 14px; font-size: 1.02rem; }
.review-meta { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .92rem; }
.review-meta strong { color: var(--text); }

/* L'essentiel */
.essentials { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.essentials div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 20px; }
.essentials div + div { border-top: 1px solid var(--line); }
.essentials dt { font-weight: 700; }
.essentials dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .essentials div { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; } }

/* Qui sommes-nous (extrait) */
.about-teaser { display: grid; gap: 32px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .about-teaser.has-image { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }

/* Bandeau d'appel */
.cta-band { padding: clamp(36px, 5vw, 60px) 0; background: radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 70%), var(--surface); border-block: 1px solid var(--line); }
.cta-inner { display: grid; gap: 20px; align-items: center; }
.cta-inner :is(h1, h2) { margin-bottom: .3em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); }
.cta-inner p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-whatsapp { background: #25d366; color: #06240f; }
.btn-whatsapp:hover { color: #06240f; }
@media (min-width: 820px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* Barre d'actions mobile : appeler, WhatsApp, réserver */
.mobile-bar { display: none; }
@media (max-width: 699.98px) {
  .mobile-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 19; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid var(--line); color: var(--text); }
  .mobile-bar .is-wa { background: #25d366; border-color: #25d366; color: #06240f; }
  .mobile-bar .is-book { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: var(--gold); color: var(--on-gold); }
  body.has-mobile-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media print { .mobile-bar, .promo-code button { display: none !important; } }

/* ===== Assistant IA ===== */
.chatbot { position: fixed; inset-inline-end: 18px; bottom: 84px; z-index: 21; display: grid; justify-items: end; gap: 10px; }
.chat-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px 0 14px; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow, 0 10px 28px rgb(0 0 0 / .35)); }
.chat-toggle:hover { border-color: var(--gold); }
.chat-bubble { position: relative; width: 22px; height: 17px; border-radius: 9px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }
.chat-bubble::after { content: ""; position: absolute; inset-inline-start: 4px; bottom: -5px; border: 5px solid transparent; border-top-color: var(--gold); border-inline-start-color: var(--gold); }
.chat-toggle[aria-expanded="true"] { display: none; }
.chat-panel { display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 130px)); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: 0 24px 60px rgb(0 0 0 / .35); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: var(--field); }
.chat-log { flex: 1; list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .97rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.chat-msg.is-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 4px; }
.chat-msg.is-user { align-self: flex-end; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--on-gold); border-end-end-radius: 4px; }
.chat-msg.is-typing { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; }
.chat-contact { display: flex; gap: 14px; justify-content: center; margin: 0; padding: 0 12px 6px; font-size: .9rem; font-weight: 600; }
.chat-contact a { display: inline-flex; align-items: center; gap: 6px; }
.chat-note { margin: 0; padding: 0 14px 12px; color: var(--muted); font-size: .75rem; text-align: center; }
@media (max-width: 699.98px) {
  .chatbot { inset-inline-end: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .chat-toggle { min-height: 46px; padding: 0 14px 0 12px; font-size: .9rem; }
  .chat-panel { height: min(520px, calc(100dvh - 150px)); }
}
@media print { .chatbot { display: none !important; } }

/* Bouton Clair / Sombre */
.theme-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.theme-switch::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-switch:hover { border-color: var(--gold); color: var(--text); }
/* Sur ordinateur : bouton rond compact (libellé lu par les lecteurs d'écran et en info-bulle). */
@media (min-width: 1240px) {
  .theme-switch { width: 36px; padding: 0; justify-content: center; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
