/* 74RentCar — refonte 2026
   Direction : « Carnet de route fassi » — éditorial chaleureux, sable + pétrole + rouge 74 */
:root {
  --ink: #0e2f38;
  --petrole: #0f3d4a;
  --petrole-2: #145566;
  --rouge: #c8102e;
  --rouge-2: #a50d26;
  --sable: #f5ede1;
  --sable-2: #ebdfcc;
  --creme: #fffaf3;
  --muted: #5b6b70;
  --line: rgba(14, 47, 56, 0.14);
  --ok: #1f8a4c;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(14, 47, 56, 0.45);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sable);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 800 .98rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.btn-red { background: var(--rouge); color: #fff; box-shadow: 0 12px 24px -12px rgba(200, 16, 46, .8); }
.btn-red:hover { background: var(--rouge-2); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 61, 74, .96); backdrop-filter: blur(8px);
  color: #fff;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; opacity: .86; position: relative; }
.nav a:hover { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--rouge); transition: right .25s ease; }
.nav a:hover::after { right: 0; }
.topbar .btn { padding: .7em 1.1em; font-size: .9rem; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; min-height: min(calc(100vh - 72px), 780px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--petrole); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 36, 44, .9) 0%, rgba(10, 36, 44, .6) 42%, rgba(10, 36, 44, .05) 75%), linear-gradient(0deg, rgba(10, 36, 44, .75), transparent 45%); }
.hero-inner { position: relative; z-index: 2; padding: 88px 0 56px; display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 40px; align-items: end; }
.hero .eyebrow { color: #ffb4bf; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); margin-bottom: .35em; max-width: 13em; }
.hero h1 em { font-style: normal; color: #fff; background: linear-gradient(transparent 62%, var(--rouge) 62%, var(--rouge) 92%, transparent 92%); }
.hero-lead { font-size: 1.15rem; max-width: 34em; opacity: .92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; font-size: .92rem; }
.hero-proof b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.stars { color: #ffc940; letter-spacing: 2px; }

.price-tag {
  justify-self: end; align-self: end;
  background: var(--creme); color: var(--ink); border-radius: var(--radius);
  padding: 22px 26px; width: 250px; box-shadow: var(--shadow); position: relative;
  transform: rotate(-3deg);
}
.price-tag::before { content: ""; position: absolute; top: 14px; right: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--sable-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.price-tag small { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }
.price-tag strong { display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--rouge); margin: 6px 0; }
.price-tag span { font-size: .9rem; color: var(--muted); }

/* Bande de réassurance */
.strip { background: var(--ink); color: #f1e6d6; }
.strip ul { list-style: none; margin: 0; padding: 18px 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-weight: 700; font-size: .95rem; }
.strip li { display: flex; align-items: center; gap: 10px; }
.strip svg { width: 20px; height: 20px; color: #ff8a9b; }

/* Sections */
section { padding: clamp(72px, 9vw, 120px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 40px; align-items: end; margin-bottom: 48px; }
.sec-head p { color: var(--muted); margin: 0; }

/* Flotte */
.fleet { display: grid; gap: 26px; }
.car {
  display: grid; grid-template-columns: 1.1fr 1fr; background: var(--creme); border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.car:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.car:nth-child(even) .car-media { order: 2; }
.car-media { background: #fff; position: relative; display: grid; place-items: center; padding: 28px; min-height: 300px; }
.car-media img { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1181 / 580; object-fit: contain; transition: opacity .3s ease; }
.swatches { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 700; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.car-cat { position: absolute; top: 20px; left: 24px; background: var(--sable); padding: .35em .8em; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.car-body { padding: 34px 36px; display: flex; flex-direction: column; }
.car-body h3 { font-size: 2rem; margin-bottom: .2em; }
.car-body .sub { color: var(--muted); margin-bottom: 18px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.specs li { background: var(--sable); border-radius: 12px; padding: 10px; text-align: center; font-size: .82rem; color: var(--muted); }
.specs b { display: block; color: var(--ink); font-size: .95rem; }
.equip { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .92rem; }
.equip li::before { content: "✓"; color: var(--ok); font-weight: 900; margin-right: 6px; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.car-price small { display: block; color: var(--muted); font-size: .82rem; }
.car-price strong { font-family: var(--display); font-size: 2rem; color: var(--rouge); }
.car-price strong span { font-size: 1rem; color: var(--muted); font-family: var(--body); font-weight: 700; }
.fleet-note { margin-top: 22px; color: var(--muted); font-size: .92rem; }

/* Services */
.services { background: var(--petrole); color: #f4ebde; position: relative; overflow: hidden; }
.services .eyebrow { color: #ff9aaa; }
.services .sec-head p { color: rgba(244, 235, 222, .75); }
.zellige { position: absolute; right: -120px; top: -120px; width: 460px; opacity: .08; pointer-events: none; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.svc { padding: 34px 30px 34px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.svc:not(:nth-child(3n)) { border-right: 1px solid rgba(255, 255, 255, .15); }
.svc:not(:nth-child(3n+1)) { padding-left: 30px; }
.svc-ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; margin-bottom: 18px; color: #ff9aaa; }
.svc-ico svg { width: 26px; height: 26px; }
.svc p { color: rgba(244, 235, 222, .78); font-size: .96rem; margin: 0; }

/* Engagements */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-media { position: relative; }
.why-media img { border-radius: 26px; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: var(--shadow); background: var(--sable-2); }
.why-badge { position: absolute; right: -18px; bottom: -22px; background: var(--rouge); color: #fff; border-radius: 20px; padding: 18px 22px; font-weight: 800; box-shadow: var(--shadow); max-width: 220px; line-height: 1.3; }
.why-badge b { font-family: var(--display); font-size: 2.2rem; display: block; line-height: 1; }
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.promises li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.promises .n { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--rouge); }
.promises h3 { font-size: 1.12rem; margin-bottom: .2em; }
.promises p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Avis */
.reviews { background: var(--sable-2); }
.rating { display: flex; align-items: center; gap: 18px; background: var(--creme); padding: 16px 22px; border-radius: 16px; border: 1px solid var(--line); }
.rating b { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.rating .stars { color: #f2a900; font-size: 1.2rem; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev { background: var(--creme); border-radius: 22px; padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.rev:nth-child(2) { transform: translateY(26px); }
.rev blockquote { margin: 14px 0 20px; font-size: 1rem; }
.rev footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--petrole); color: #fff; display: grid; place-items: center; font-weight: 800; }
.rev footer b { color: var(--ink); display: block; }
.rev-cta { margin-top: 56px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Réservation */
.booking { background: var(--ink); color: #f4ebde; }
.booking .eyebrow { color: #ff9aaa; }
.book-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.book-aside p { color: rgba(244, 235, 222, .78); }
.book-aside img { border-radius: 22px; margin-top: 28px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--petrole-2); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; color: #ff9aaa; min-width: 20px; }
form.book { background: var(--creme); color: var(--ink); border-radius: 26px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label, legend { font-weight: 800; font-size: .86rem; }
input, select, textarea {
  font: 600 1rem var(--body); color: var(--ink); width: 100%;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .8em .9em;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrole-2); box-shadow: 0 0 0 4px rgba(20, 85, 102, .15); }
textarea { min-height: 90px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; cursor: pointer; background: #fff; transition: all .15s ease; }
.opt input:checked + span { background: var(--petrole); color: #fff; border-color: var(--petrole); }
.opt input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 6px; }
.form-foot small { color: var(--muted); max-width: 300px; }
.form-error { grid-column: 1 / -1; color: var(--rouge); font-weight: 700; margin: 0; min-height: 1.2em; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 20px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--rouge); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* Contact */
.contact { padding-top: 0; }
.contact-card { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--creme); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-info { padding: 44px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--sable); display: grid; place-items: center; color: var(--rouge); }
.contact-list svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a { font-weight: 800; text-decoration: none; }
.map { min-height: 420px; background: var(--sable-2); }
.map-facade { height: 100%; min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 30px;
  background: radial-gradient(circle at 30% 30%, rgba(200,16,46,.08), transparent 40%), repeating-linear-gradient(45deg, var(--sable-2) 0 2px, transparent 2px 22px), var(--sable); }
.map-facade svg { width: 44px; height: 44px; color: var(--rouge); }
.map-facade p { margin: 0; color: var(--muted); }
.map-facade a { font-size: .9rem; color: var(--muted); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Pied de page */
.footer { background: var(--petrole); color: rgba(244, 235, 222, .8); padding: 64px 0 28px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }

/* WhatsApp flottant */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Pages légales */
.legal-hero { background: var(--petrole); color: #fff; padding: 72px 0 56px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal-hero p { opacity: .8; margin: 0; }
.legal { padding: 56px 0 96px; }
.legal article { background: var(--creme); border-radius: 24px; padding: clamp(28px, 5vw, 56px); max-width: 860px; border: 1px solid var(--line); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal .todo { background: #fff3c4; padding: 0 .3em; border-radius: 4px; }

/* Animations d'apparition */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::after { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--petrole); flex-direction: column; align-items: flex-start; padding: 20px; gap: 18px; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .topbar .btn-red { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .price-tag { justify-self: start; transform: rotate(-2deg); }
  .sec-head, .why-grid, .book-grid, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .car, .car:nth-child(even) { grid-template-columns: 1fr; }
  .car:nth-child(even) .car-media { order: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc, .svc:not(:nth-child(3n+1)) { padding: 28px 20px; border-right: 0 !important; }
  .rev-grid { grid-template-columns: 1fr; }
  .rev:nth-child(2) { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .why-badge { right: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-inner { padding: 96px 0 40px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .car-body { padding: 26px 22px; }
  .svc-grid { grid-template-columns: 1fr; }
  form.book { grid-template-columns: 1fr; padding: 24px; }
  .contact-info { padding: 28px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .strip ul { justify-content: flex-start; }
}
.nav .lang-switch { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .2em .7em; font-size: .85em; letter-spacing: .04em; }
/* Photos réelles de la flotte */
.car-media.photo { background: var(--sable); padding: 26px; }
.car-media.photo img { width: min(100%, 440px); max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px -18px rgba(10, 36, 44, .45); }
.car-media.photo .car-cat { z-index: 1; }
.car-media.photo .swatches { left: 50%; transform: translateX(-50%); bottom: 12px; background: rgba(255, 255, 255, .92); padding: 6px 10px; border-radius: 999px; }
/* Hero : photo réelle (portrait) à droite sur grand écran */
@media (min-width: 981px) {
  .hero-media { left: 48%; }
  .hero-media img { object-position: center 60%; }
  .hero::after { background: linear-gradient(90deg, var(--petrole) 0%, var(--petrole) 48%, rgba(15, 61, 74, .6) 56%, rgba(15, 61, 74, .15) 68%, rgba(10, 36, 44, 0) 78%), linear-gradient(0deg, rgba(10, 36, 44, .6), transparent 40%); }
}

/* Encart appartement */
.stay { padding: clamp(48px, 6vw, 72px) 0 0; }
.stay-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; background: var(--sable); border: 1px solid var(--line); border-radius: 26px; padding: 40px 44px; }
.stay-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.stay-card p { color: var(--muted); margin: 0; }
.stay-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.stay-cta .btn { justify-content: center; text-align: center; }
@media (max-width: 980px) { .stay-card { grid-template-columns: 1fr; padding: 30px 24px; } }
.form-error.ok { color: var(--ink); }
.form-error.ok a { color: #128c4a; text-decoration: underline; }
/* Flotte en 3 fiches */
.fleet.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fleet.three .car, .fleet.three .car:nth-child(even) { grid-template-columns: 1fr; }
.fleet.three .car:nth-child(even) .car-media { order: 0; }
.fleet.three .car-media.photo { padding: 18px 18px 30px; min-height: 0; }
.fleet.three .car-media.photo img { width: 100%; }
.fleet.three .car-body { padding: 24px 24px 26px; }
.fleet.three .car-body h3 { font-size: 1.55rem; }
.car-v { display: block; font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--rouge); letter-spacing: 0; margin-top: .2em; }
.fleet.three .specs { grid-template-columns: repeat(2, 1fr); }
.fleet.three .car-price strong { font-size: 1.7rem; }
.fleet-strip { margin-top: 34px; }
.fleet-strip p { margin: 0 0 14px; color: var(--muted); }
.fleet-strip p b { color: var(--ink); margin-right: .3em; }
.fleet-strip ul { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.fleet-strip li { scroll-snap-align: start; }
.fleet-strip img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
@media (max-width: 1100px) { .fleet.three { grid-template-columns: 1fr; } .fleet.three .car { grid-template-columns: 1fr 1fr; } .fleet.three .car-media.photo { padding: 22px 22px 34px; } }
@media (max-width: 760px) { .fleet.three .car { grid-template-columns: 1fr; } }
/* Page appartement */
.apt-hero { background: var(--petrole); color: #fff; padding: clamp(48px, 7vw, 96px) 0; }
.apt-hero .eyebrow { color: #ffb4bf; }
.apt-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.apt-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); margin-bottom: .4em; }
.apt-lead { font-size: 1.1rem; opacity: .9; max-width: 34em; }
.apt-hero .btn-ghost { color: #fff; }
.apt-price { margin: 6px 0 0; opacity: .9; }
.apt-price small { display: block; font-size: .8rem; opacity: .75; }
.apt-price b { font-family: var(--display); font-size: 1.5rem; margin-right: .3em; }
.apt-main { margin: 0; }
.apt-main img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); display: block; }
.apt-feats h2, .apt-gallery h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 26px; }
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat-grid li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.feat-grid b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.feat-grid span { color: var(--muted); font-size: .95rem; }
.apt-gallery { padding-top: 0; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gal figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--sable); }
.gal figure { aspect-ratio: 4 / 3; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .82rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; }
.apt-combo { padding-top: 0; }
@media (max-width: 980px) { .apt-hero-grid { grid-template-columns: 1fr; } .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
/* Sélecteur de langue mobile (à côté du burger) */
.topbar .lang-mobile { display: none; }
@media (max-width: 980px) {
  .topbar .lang-mobile { display: inline-flex; align-items: center; margin-left: auto; margin-right: -8px; min-height: 36px; color: #fff; text-decoration: none; font-weight: 700; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .2em .8em; font-size: .85rem; letter-spacing: .04em; }
  .nav .lang-switch { display: none; }
}
/* Le « + » tourné à 45° ne doit pas déborder sur mobile */
details summary { padding-right: 4px; }
/* Pages aéroport : lien vers la fiche véhicule sur sa propre ligne */
.feat-grid li a { display: block; width: fit-content; margin-top: 10px; font-weight: 700; color: var(--rouge); }

/* ===== Améliorations du 23/11 ===== */
/* Prix en ligne dans le bandeau : visible seulement sur mobile (la carte prix est masquée) */
.hero-price-m { display: none; margin: -8px 0 22px; font-size: 1rem; opacity: .92; }
.hero-price-m b { color: #fff; font-family: var(--display); }

/* Section « agence locale » : photo verticale de la façade */
.why-media img[src*="agence-"] { aspect-ratio: 1 / 1; object-position: center 45%; }

/* Encart appartement avec vignette */
.stay-card.with-img { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, 1fr); }
.stay-img { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.stay-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.stay-img:hover img { transform: scale(1.04); }
@media (max-width: 980px) { .stay-card.with-img { grid-template-columns: 1fr; } .stay-img { aspect-ratio: 16 / 9; } }

/* Bloc carte : façade de l'agence en fond, avant le chargement de la carte */
.map-facade[style*="--facade"] { position: relative; isolation: isolate; color: #fff;
  background: linear-gradient(180deg, rgba(10, 36, 44, .25), rgba(10, 36, 44, .82)), var(--facade) center 35% / cover no-repeat, var(--petrole); }
.map-facade[style*="--facade"] p, .map-facade[style*="--facade"] a { color: rgba(255, 255, 255, .9); }
.map-facade[style*="--facade"] p b { color: #fff; }
.map-facade[style*="--facade"] svg { color: #ff8a9b; }
.map-facade[style*="--facade"] .btn-ghost { color: #fff; background: rgba(10, 36, 44, .35); }

/* Barre fixe mobile : Réserver + WhatsApp */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 61, 74, .96); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
  .mobile-bar .btn { justify-content: center; min-height: 48px; padding-inline: 12px; }
  .wa-float { display: none; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* Bandeau plus court */
  .price-tag { display: none; }
  .hero-price-m { display: block; }
  .hero-inner { padding: 72px 0 32px; gap: 0; }
  .hero-lead { font-size: 1.02rem; }
  .hero-cta { margin: 18px 0 20px; gap: 10px; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; font-size: .8rem; }
  .hero-proof b { font-size: 1.3rem; }
}

/* ===== Effets visuels (23/11) — tous coupés si l'appareil demande moins d'animations ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Bandeau : lent zoom de la photo + apparition en cascade du texte */
  .hero-media img { animation: fx-zoom 16s cubic-bezier(.2, .6, .2, 1) both; transform-origin: 60% 55%; }
  @keyframes fx-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
  .js .hero-inner > div:first-child > :not(h1):not(.hero-lead) { animation: fx-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-inner > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .js .hero-inner > div:first-child > :nth-child(3) { animation-delay: .18s; }
  .js .hero-inner > div:first-child > :nth-child(4) { animation-delay: .28s; }
  .js .hero-inner > div:first-child > :nth-child(5) { animation-delay: .36s; }
  .js .hero-inner > div:first-child > :nth-child(6) { animation-delay: .44s; }
  @keyframes fx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  /* Étiquette de prix : se balance comme une vraie étiquette accrochée */
  .price-tag { transform-origin: 85% 6%; animation: fx-swing 2.2s cubic-bezier(.3, .6, .3, 1) .5s both; }
  @keyframes fx-swing { 0% { transform: rotate(-14deg); opacity: 0; } 15% { opacity: 1; } 40% { transform: rotate(4deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(-2deg); } 100% { transform: rotate(-3deg); } }

  /* Apparition en cascade des fiches, services et avis */
  .fleet.three .car:nth-child(2), .svc-grid .svc:nth-child(2), .rev-grid .rev:nth-child(2) { transition-delay: .12s; }
  .fleet.three .car:nth-child(3), .svc-grid .svc:nth-child(3), .rev-grid .rev:nth-child(3) { transition-delay: .24s; }
  .svc-grid .svc:nth-child(5) { transition-delay: .12s; }
  .svc-grid .svc:nth-child(6) { transition-delay: .24s; }

  /* Fiches voitures : la carte se soulève, la photo avance légèrement */
  .fleet.three .car { transition: opacity .7s ease, transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
  .fleet.three .car.in:hover { transition-delay: 0s; transform: translateY(-8px); box-shadow: 0 30px 60px -28px rgba(10, 36, 44, .45); }
  .car-media.photo img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
  .car:hover .car-media.photo img { transform: scale(1.04); }

  /* Boutons rouges : reflet qui traverse au survol */
  .btn-red { position: relative; overflow: hidden; isolation: isolate; }
  .btn-red::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
  .btn-red:hover::after { transform: translateX(120%); transition: transform .7s ease; }

  /* Bande « Nos voitures, en vrai » : défilement continu, pause au survol */
  .fleet-strip.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .fleet-strip.marquee p { padding-inline: 6%; }
  .fleet-strip.marquee ul { display: flex; width: max-content; overflow: visible; scroll-snap-type: none; animation: fx-marquee 48s linear infinite; }
  .fleet-strip.marquee li { width: clamp(150px, 16vw, 200px); flex: none; }
  .fleet-strip.marquee:hover ul { animation-play-state: paused; }
  @keyframes fx-marquee { to { transform: translateX(-50%); } }
}

/* ===== Effets « waou » (23/11, 2e série) ===== */
.scroll-progress { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* Fine barre rouge de progression de lecture en haut de l'écran (CSS pur, navigateurs récents) */
  @supports (animation-timeline: scroll()) {
    .scroll-progress { display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: var(--rouge);
      transform-origin: 0 50%; transform: scaleX(0); animation: fx-progress linear both; animation-timeline: scroll(root); }
    @keyframes fx-progress { to { transform: scaleX(1); } }
  }
  /* Le surlignage rouge sous « Fès » se dessine de gauche à droite */
  .js .hero h1 em { background-repeat: no-repeat; background-size: 0% 100%; animation: fx-underline .9s cubic-bezier(.6, 0, .2, 1) .5s forwards; }
  @keyframes fx-underline { to { background-size: 100% 100%; } }
  /* Bandeau : la photo glisse plus lentement que la page (parallaxe, piloté par app.js) */
  .hero-media { will-change: transform; }
  /* Photos des fiches et de l'agence : dévoilement par rideau */
  .js .fleet.three .car .car-media.photo img, .js .why-media img { clip-path: inset(0 0 0 0 round 20px); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
  .js .fleet.three .car:not(.in) .car-media.photo img, .js .why-media:not(.in) img { clip-path: inset(0 0 100% 0 round 20px); }
  .js .fleet.three .car:nth-child(2) .car-media.photo img { transition-delay: .15s, 0s, 0s; }
  .js .fleet.three .car:nth-child(3) .car-media.photo img { transition-delay: .3s, 0s, 0s; }
  /* Fiches : inclinaison 3D qui suit la souris (ordinateur seulement, piloté par app.js) */
  @media (hover: hover) and (pointer: fine) {
    .fleet.three .car.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
    .fleet.three .car.in:hover { transform: perspective(1000px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
    .fleet.three .car.tilting { transition: transform .12s linear, box-shadow .4s ease; }
    .fleet.three .car::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
      background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 45%); }
    .fleet.three .car:hover::after { opacity: 1; }
  }
  .fleet.three .car { position: relative; }
  /* Étoiles des avis qui s'allument une à une */
  .stars.lit .star { display: inline-block; animation: fx-star .5s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes fx-star { 0% { color: rgba(10, 36, 44, .18); transform: scale(.4); } 60% { transform: scale(1.35); text-shadow: 0 0 12px rgba(255, 201, 64, .9); } 100% { transform: none; } }
  /* Rosace des services qui tourne lentement */
  .zellige { animation: fx-turn 90s linear infinite; }
  @keyframes fx-turn { to { transform: rotate(360deg); } }
  /* Icônes des services : petit rebond à l'apparition */
  .svc.in .svc-ico { animation: fx-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: inherit; }
  @keyframes fx-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

.hero-proof b, .price-tag strong, .rating > b, .why-badge b { font-variant-numeric: tabular-nums; }
