/* ===== Millau Automobiles – feuille de style du site public ===== */
@import url("fonts.css");
:root {
  --ink: #1b1813;
  --ink-2: #4f493e;
  --muted: #7a7264;
  --line: #e5dfd2;
  --bg: #f5f2eb;
  --card: #ffffff;
  --navy: #0e0e0e;
  --navy-2: #1e1d1a;
  --accent: #c9a24b;
  --accent-dark: #8a6a1e;
  --accent-hover: #b38c35;
  --gold-soft: #f3ebd7;
  --ok: #157f3b;
  --ok-bg: #e7f6ec;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --err: #b42318;
  --err-bg: #fdecea;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(20, 16, 8, .06), 0 3px 12px rgba(20, 16, 8, .05);
  --font: "Barlow", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cairo", "Barlow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2, h3, .nav > a, .btn, .brand-text, .eyebrow, .footer-title, legend { font-family: var(--font-display); }
h1, h2 { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.hero h1 { line-height: 1.05; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
/* Grands écrans : en-tête sur toute la largeur (logo dans l'angle), contenu un peu plus large */
@media (min-width: 1300px) {
  .wrap { max-width: 1440px; padding-inline: 40px; }
  .site-header .wrap { max-width: none; padding-inline: 40px; }
}
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 4px; border: 2px solid transparent; font: 700 15px/1.2 var(--font-display); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-accent, .btn-primary { background: var(--accent); color: #111; }
.btn-accent:hover, .btn-primary:hover { background: var(--accent-hover); color: #111; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f0f0f0; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* En-tête */
.topbar { background: #000; color: #a9a190; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.site-header { background: var(--navy); border-bottom: 1px solid #2c271d; position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 8px; }
.brand { display: inline-grid; justify-items: center; text-decoration: none; color: #fff; line-height: 1; }
/* Logo : voiture dorée, nom et activités en blanc dessous */
.brand-car { width: 118px; height: auto; color: var(--accent); margin-bottom: 2px; }
.brand .brand-tag { font-size: 9.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #e9e4d8; margin-top: 4px; }
.footer-brand-logo { margin: 0 0 16px; }
.footer-brand-logo .brand-car { width: 150px; }
.footer-brand-logo .brand-text { font-size: 21px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { font-size: 17px; letter-spacing: .04em; font-weight: 700; }
.brand-text strong { font-weight: 800; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { padding: 10px 14px; color: #ece7dc; text-decoration: none; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; border-radius: 8px; }
.nav > a:not(.btn):hover { background: rgba(255,255,255,.06); color: #fff; }
.nav > a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav-cta { margin-left: 8px; text-transform: uppercase; letter-spacing: .03em; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav-cta { margin: 8px 0 0; }
  .brand-text { font-size: 15px; }
}

/* Sections */
.section { padding-block: 64px; }
.section-alt { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.page-head { background: var(--navy); color: #fff; padding-block: 44px 40px; border-bottom: 2px solid var(--accent); }
.page-head .eyebrow, .hero .eyebrow { color: var(--accent); }
.page-head p { color: #cfc8b8; max-width: 720px; margin: 0; }
.breadcrumb { font-size: 14px; margin-bottom: 10px; color: #8f8775; }
.breadcrumb a { color: #d8d2c4; }

/* Accueil */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Voile noir : plus dense côté texte, plus léger à droite pour laisser voir la façade */
.hero-media:not(.placeholder)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.62) 50%, rgba(0,0,0,.3) 100%); }
.hero-media.placeholder { background: radial-gradient(900px 420px at 85% 10%, rgba(201,162,75,.16) 0%, transparent 60%), linear-gradient(160deg, #0b0b0b 0%, #191713 100%); }
.hero-in { position: relative; padding-block: clamp(64px, 12vw, 140px); max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero p { font-size: 1.15rem; color: #d8d2c4; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-facts { margin-top: 34px; font-size: 15px; color: #b5ad9b; }
.hero-facts a { color: var(--accent); text-decoration: none; font-weight: 600; }
.hero-facts a:hover { text-decoration: underline; color: var(--accent); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--accent); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--accent); }
.service a { color: var(--ink); font-weight: 600; }
.service p { color: var(--ink-2); flex: 1; }
.service .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dfe3ea; aspect-ratio: 4/3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.placeholder { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }

.cta-band { background: var(--navy); color: #fff; border: 1px solid #3a3222; border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #cfc8b8; }

/* Véhicules */
.filters { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; margin-bottom: 24px; }
.filters label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: grid; gap: 4px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ink-2); flex-wrap: wrap; }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
/* Accueil, « Arrivées récentes » : une seule ligne (autant de cartes que la largeur le permet) */
.vehicle-grid.one-row { grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; clip-path: inset(-16px -16px 0 -16px); }
@media (max-width: 600px) {
  .vehicle-grid.one-row { display: flex; overflow-x: auto; clip-path: none; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
  .vehicle-grid.one-row > * { flex: 0 0 82%; scroll-snap-align: start; }
}
.vcard { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; position: relative; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(16,24,40,.12); color: inherit; }
.vcard-img { aspect-ratio: 4/3; background: #e7eaf0; position: relative; }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.vcard-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; display: inline-flex; gap: 5px; align-items: center; }
.vcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vcard-title, .vehicle-name { font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: 0; }
.vcard-title { font-size: 1.1rem; line-height: 1.3; margin: 0; }
.vcard-version { color: var(--muted); font-size: 14px; margin: -6px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-specs { display: flex; flex-wrap: wrap; gap: 4px 0; }
.vcard-specs .chip { background: none; padding: 0; border-radius: 0; font-size: 14px; color: var(--ink-2); }
.vcard-specs .chip + .chip::before { content: "·"; margin: 0 8px; color: var(--muted); }
.chip { background: var(--bg); color: var(--ink-2); border-radius: 6px; padding: 3px 9px; font-size: 13px; font-weight: 500; }
.vcard-price { margin-top: auto; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge-reserve { background: #fab219; color: #3d2a00; }
.badge-vendu { background: var(--navy); color: #fff; }
.badge-featured { background: var(--accent); color: #111; }
.empty { background: #fff; border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--ink-2); box-shadow: var(--shadow); }

/* Fiche véhicule */
.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .vehicle-layout { grid-template-columns: 1fr; } }
.gallery { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gallery-main { position: relative; aspect-ratio: 4/3; background: #111; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.65); color: #fff; padding: 3px 10px; border-radius: 6px; font-size: 13px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumbs button { flex: none; width: 84px; height: 63px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #ddd; opacity: .7; }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 92vh; max-width: 96vw; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; } .lightbox .lb-next { right: 16px; top: 50%; }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.3rem; }
.sticky-panel { position: sticky; top: 96px; }
.price-big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.key-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.key-spec { padding: 2px 0; }
.key-spec small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.key-spec strong { font-size: 15px; }
.actions-col { display: grid; gap: 10px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { color: var(--ink-2); font-weight: 500; width: 45%; padding-right: 16px; }
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 700px) { .spec-cols { grid-template-columns: 1fr; } }
.equipments { columns: 2 240px; column-gap: 32px; padding-left: 20px; margin: 0; }
.equipments li { break-inside: avoid; margin-bottom: 4px; }
.description { white-space: normal; }

/* Formulaires */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; padding: 0; display: flex; align-items: center; gap: 10px; }
legend .num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: 14px; flex: none; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.col-12 { grid-column: span 12; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-8 { grid-column: span 8; }
@media (max-width: 720px) { .col-6, .col-4, .col-3, .col-8 { grid-column: span 12; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.req { color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid #cfd4dd; border-radius: 9px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(201,162,75,.25); }
textarea { min-height: 120px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.error-text { color: var(--err); font-size: 13px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 9px 14px; border: 1.5px solid #cfd4dd; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; background: #fff; }
.choice input:checked + span { border-color: var(--accent); background: var(--gold-soft); color: var(--accent-dark); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.legal-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-info { background: var(--gold-soft); color: #5e4813; }
.alert-warning { background: var(--warn-bg); color: var(--warn); }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-box { background: var(--navy); color: #d8d2c4; border-radius: var(--radius); padding: 24px; }
.side-box h3 { color: var(--accent); }
.side-box a { color: #fff; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #111; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.success-box { text-align: center; padding: 48px 24px; }
.success-box .ref { display: inline-block; font-size: 1.4rem; font-weight: 800; letter-spacing: .06em; background: var(--bg); padding: 10px 20px; border-radius: 10px; margin: 10px 0 20px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }

/* Prise de rendez-vous */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.type-list { display: grid; gap: 10px; }
.type-option { display: flex; gap: 12px; align-items: center; border: 1.5px solid #cfd4dd; border-radius: 10px; padding: 14px; cursor: pointer; background: #fff; }
.type-option:has(input:checked) { border-color: var(--accent); background: #fbf7ec; }
.type-option input { accent-color: var(--accent); width: 18px; height: 18px; }
.type-option small { color: var(--muted); display: block; }
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-size: 1.1rem; text-transform: capitalize; }
.cal-head button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 10px; border: 0; background: transparent; font: 600 15px var(--font); color: #b4bac6; cursor: default; }
.cal-day.avail { background: var(--gold-soft); color: #5e4813; cursor: pointer; }
.cal-day.avail:hover { background: #e9dbb6; }
.cal-day.sel { background: var(--navy) !important; color: var(--accent) !important; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--navy); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { padding: 10px 0; border: 1.5px solid #cfd4dd; border-radius: 9px; background: #fff; font: 600 15px var(--font); cursor: pointer; color: var(--ink); }
.slot:hover { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--accent); }
.slots-empty { color: var(--muted); padding: 14px 0; }
.summary-line { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.loading { opacity: .5; pointer-events: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 32px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.contact-card a { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--navy); word-break: break-word; }
.map-box { border-radius: var(--radius); overflow: hidden; background: #dfe3ea; aspect-ratio: 16/9; position: relative; box-shadow: var(--shadow); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(135deg, #efe9dc, #e2dac8); }
.hours { border-collapse: collapse; width: 100%; font-size: 14px; }
.hours th, .hours td { text-align: left; padding: 4px 0; font-weight: 400; }
.hours th { padding-right: 16px; }
.hours tr.today { font-weight: 700; }
.hours tr.today th { font-weight: 700; }
.hours-note { font-size: 13px; margin-top: 8px; }

/* Pages légales */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); }
.table-scroll { overflow-x: auto; }
.todo { background: var(--warn-bg); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Suivi */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 22px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline time { font-size: 13px; color: var(--muted); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: #5e4813; font-weight: 700; font-size: 14px; }

/* Pied de page */
.site-footer { background: var(--navy); color: #a9a190; margin-top: 64px; font-size: 14px; border-top: 2px solid var(--accent); }
.footer-logo { height: 64px; width: auto; border-radius: 4px; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 48px 32px; }
.footer-brand { color: #fff; letter-spacing: .06em; font-size: 17px; }
.footer-title { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.site-footer a, .site-footer .linklike { color: #d8d2c4; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .hours th, .site-footer .hours td { color: #a9a190; }
.site-footer .hours tr.today th, .site-footer .hours tr.today td { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.staff-link { opacity: .7; }

/* Bandeau cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-in { background: #fff; color: var(--ink); max-width: 760px; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 20px 22px; font-size: 14px; }
.consent-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .btn { min-width: 130px; }

@media (max-width: 600px) {
  .section { padding-block: 44px; }
  .cta-band { padding: 28px 22px; }
  .key-specs { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .consent, .topbar, .actions-col, .thumbs { display: none !important; } body { background: #fff; } }

/* Avis clients */
.stars { color: var(--accent); letter-spacing: 2px; }
.stars-off { color: #d9d2c2; }
.reviews { columns: 3 300px; column-gap: 22px; }
.review { break-inside: avoid; margin: 0 0 22px; background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.review blockquote { margin: 10px 0 14px; color: var(--ink); }
.review figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }
.about-photo .about-logo { object-fit: contain; background: #0e0e0e; padding: 12%; }

/* Fiche d'un véhicule archivé (vendu) : visible uniquement par l'équipe connectée */
.archive-banner { background: #111; color: #f3ede0; border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; }
.archive-banner strong { color: var(--accent); margin-right: 6px; }
.archive-banner a { color: var(--accent); margin-left: 6px; }
.devis-form { max-width: 760px; margin-inline: auto; }
/* En-tête de page avec la photo du garage en fond (page Contact) */
.page-head.has-photo { position: relative; overflow: hidden; padding-block: 64px 56px; }
.page-head.has-photo::before { content: ""; position: absolute; inset: 0; background: var(--head-photo) center 12% / cover no-repeat; opacity: .45; }
@media (max-width: 900px) { .page-head.has-photo::before { background-size: cover; background-position: 85% 20%; } }
.page-head.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%); }
.page-head.has-photo > .wrap { position: relative; z-index: 1; }
/* Page Contact */
.contact-section { padding-top: 40px; }
.contact-layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 28px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { background: var(--navy); color: #cfc8b8; border-radius: var(--radius); padding: 28px 28px 24px; }
.contact-info p { margin: 0 0 6px; }
.contact-info h3 { color: #fff; font-size: 1rem; margin: 22px 0 6px; }
.contact-info a { color: #fff; }
.contact-info a:hover { color: var(--accent); }
.ci-phone { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.ci-phone a { color: var(--accent); text-decoration: none; }
.ci-mail { word-break: break-word; }
.ci-note { font-size: .9rem; color: #a9a190; }
.ci-more { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid #2a2620; font-size: .9rem; color: #6f685b; }
.ci-more a { color: #cfc8b8; }
.contact-form h2 { margin-top: 0; }
.contact-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.contact-form-foot .legal-note { margin: 0; }
.contact-map { aspect-ratio: auto; height: 340px; }

/* Page Rendez-vous */
.rdv-form { max-width: 760px; margin-inline: auto; }
.rdv-form [hidden] { display: none !important; }
.rdv-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
@media (max-width: 600px) { .rdv-types { grid-template-columns: 1fr; } }
.rdv-type { display: flex; align-items: center; gap: 10px; border: 1.5px solid #cfd4dd; border-radius: 10px; padding: 13px 14px; cursor: pointer; background: #fff; font-weight: 600; line-height: 1.3; }
.rdv-type:hover { border-color: var(--accent); }
.rdv-type:has(input:checked) { border-color: var(--accent); background: #fbf7ec; }
.rdv-type input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin: 0; }
.rdv-form fieldset { min-width: 0; }
.rdv-when { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 700px) { .rdv-when { grid-template-columns: 1fr; } }
.rdv-cal { border: 1.5px solid #e2ddd0; border-radius: 12px; padding: 12px; transition: opacity .2s; }
.rdv-cal.loading { opacity: .5; }
.rdv-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rdv-cal-head strong { text-transform: capitalize; font-size: 1rem; }
.rdv-cal-head button { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.rdv-cal-head button:disabled { opacity: .3; cursor: default; }
.rdv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.rdv-cal-grid .cal-dow { font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.rdv-cal-grid .cal-off, .rdv-day { height: 36px; display: grid; place-items: center; border-radius: 8px; font: 600 14px var(--font); }
.rdv-cal-grid .cal-off { color: #c3bfb5; }
.rdv-day { border: 0; background: var(--gold-soft); color: #5e4813; cursor: pointer; padding: 0; }
.rdv-day:hover { background: #e9dbb6; }
.rdv-day.today { box-shadow: inset 0 0 0 2px #5e4813; }
.rdv-day[aria-pressed="true"] { background: var(--navy); color: var(--accent); box-shadow: none; }
.rdv-form .slots { display: block; }
.slots-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.slots-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-bottom: 14px; }
.rdv-form .slots:empty { display: none; }
.rdv-form #slots-label { margin: 0 0 10px; }
.rdv-form #slots-label:empty { display: none; }
.rdv-form .summary-line { margin: 0 0 4px; }
