/* Moryal Car — bleu roi de la façade, bleu nuit et or de la couronne du logo */
:root {
  --fond: #f4f6fb;
  --blanc: #ffffff;
  --nuit: #0c1c3a;      /* texte, bandeaux */
  --roi: #1f4fb0;       /* bleu de l'enseigne */
  --roi-fonce: #173d8a;
  --or: #c9a35a;
  --or-clair: #e3c98f;
  --trait: rgba(12, 28, 58, .12);
  --doux: #4a5873;
  --wa: #25d366;

  --display: "Jost", "Segoe UI", system-ui, sans-serif;
  --text: "Jost", "Segoe UI", system-ui, sans-serif;
  --brand: "Cinzel", Georgia, serif;

  --page: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --block: clamp(56px, 7vw, 104px);
}
[lang="ar"] { --display: "Tajawal", system-ui, sans-serif; --text: "Tajawal", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--nuit);
  font: 400 1rem/1.65 var(--text); -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 500; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: #fff; padding: 10px 16px; }
.skip:focus { top: 8px; }

/* ---------- Bandeau ---------- */
.infobar {
  background: #07122a; color: rgba(255,255,255,.8);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 36px;
  padding: 8px var(--gutter); font-size: .82rem; letter-spacing: .04em;
}
.infobar a { text-decoration: none; color: var(--or-clair); }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: rgba(12,28,58,.97); backdrop-filter: blur(8px); color: #fff;
  border-bottom: 1px solid rgba(201,163,90,.25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; color: #fff; }
.brand-mark { width: 36px; height: 52px; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font: 500 1.3rem/1.1 var(--brand); letter-spacing: .06em; white-space: nowrap; background: linear-gradient(135deg, #f3dca6, #c9a35a 45%, #a7823f 75%, #e6c98d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-family: "Jost", sans-serif; font-size: .58rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--or); margin-top: 4px; }

.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .25s, color .25s;
}
.nav a:hover { border-color: var(--or); color: var(--or-clair); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font: 500 .74rem/1 "Jost", sans-serif; letter-spacing: .06em; color: rgba(255,255,255,.72);
  background: none; border: 0; border-radius: 999px; padding: 8px 11px; cursor: pointer; transition: .25s;
}
.lang-switch button[lang="ar"] { font: 500 .95rem/1 "Tajawal", sans-serif; padding-block: 5px; }
.lang-switch button[aria-pressed="true"] { background: var(--or); color: var(--nuit); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 500 .92rem/1 var(--text); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .25s, color .25s, border-color .25s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-blue { background: var(--roi); color: #fff; }
.btn-blue:hover { background: var(--roi-fonce); }
.btn-gold { background: var(--or); color: var(--nuit); }
.btn-gold:hover { background: var(--or-clair); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--nuit); }
.btn-outline { border-color: var(--nuit); color: var(--nuit); }
.btn-outline:hover { background: var(--nuit); color: #fff; }
.btn-wa { background: var(--wa); color: #06260f; width: 100%; font-size: 1rem; min-height: 54px; }
.btn-wa:hover { filter: brightness(1.05); }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.top-cta { min-height: 40px; padding: 0 20px; }

.link {
  display: inline-block; margin-top: 12px; padding-bottom: 2px;
  font-size: .85rem; font-weight: 500; text-decoration: none;
  color: var(--roi); border-bottom: 1px solid var(--or); transition: color .2s;
}
.link:hover { color: var(--nuit); }
.link-light { color: #fff; }
.link-light:hover { color: var(--or-clair); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(88px, 9vw, 128px);
  background: radial-gradient(90% 120% at 0% 0%, #1b3f8f 0%, var(--nuit) 60%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgba(201,163,90,.22), transparent); pointer-events: none;
}
.hero-text { max-width: 600px; justify-self: end; animation: appear 1s ease both; }
.eyebrow { font: 500 1.15rem/1 "Tajawal", sans-serif; color: var(--or-clair); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.06; font-weight: 600; letter-spacing: -.02em; }
.hero-lead { margin-top: 20px; max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 300; color: rgba(255,255,255,.86); }
[lang="ar"] .hero-lead { font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { justify-self: start; width: min(100%, 440px); animation: appear 1s .15s ease both; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12);
}
@keyframes appear { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Engagements ---------- */
.facts {
  max-width: var(--page); margin: -52px auto 0; position: relative; z-index: 2;
  width: calc(100% - 2 * var(--gutter));
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px;
  box-shadow: 0 24px 48px -30px rgba(12,28,58,.45);
}
.facts > div { padding: 22px 14px; text-align: center; display: grid; gap: 2px; }
.facts > div + div { border-inline-start: 1px solid var(--trait); }
.facts strong { font: 600 1.45rem/1.15 var(--display); color: var(--roi); }
.facts span { font-size: .84rem; color: var(--doux); }

/* ---------- Blocs ---------- */
.block { padding: var(--block) var(--gutter); }
.block > * { max-width: var(--page); margin-inline: auto; }
.block-white { background: var(--blanc); }
.block-deep { background: var(--nuit); color: #fff; }
.block-head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.block-head h2::after { content: ""; display: block; width: 48px; height: 3px; margin: 16px auto 0; background: var(--or); border-radius: 2px; }
.block-head p { max-width: 38em; margin: 16px auto 0; color: var(--doux); }

/* ---------- Flotte ---------- */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.car {
  background: var(--blanc); border-radius: 18px; overflow: hidden; border: 1px solid var(--trait);
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
}
.car:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(12,28,58,.5); }
.car-media { display: block; aspect-ratio: 1; overflow: hidden; background: #dfe5f0; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.car:hover .car-media img { transform: scale(1.04); }
/* photo Instagram avec bandes noires en haut et en bas */
.car-media .crop-bars { transform: scale(1.75); }
.car:hover .car-media .crop-bars { transform: scale(1.8); }
.car-body { padding: 16px 18px 20px; }
.car-cat { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
[lang="ar"] .car-cat { letter-spacing: 0; font-size: .85rem; }
.car h3 { margin-top: 4px; }
.car-spec { font-size: .88rem; color: var(--doux); }
.car-premium .car-cat { color: var(--roi); }
.car-more { background: var(--roi); color: #fff; border: 0; justify-content: center; }
.car-more-body { padding: 28px 24px; display: grid; gap: 12px; justify-items: start; }
.car-more h3 { font-size: 1.4rem; font-weight: 600; }
.car-more p { color: rgba(255,255,255,.85); font-size: .92rem; }
.car-more .btn { margin-top: 6px; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; overflow: hidden;
  padding: 28px 24px; border-radius: 18px; background: var(--fond); border: 1px solid var(--trait);
  transition: background-color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
/* filet or qui se déploie au survol */
.service::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
[dir="rtl"] .service::after { transform-origin: right; }
.service-icon {
  width: 44px; height: 44px; margin-bottom: 16px; fill: none; stroke: var(--roi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .45s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.service h3 { transition: color .45s ease; }
.service p { margin-top: 6px; color: var(--doux); font-size: .93rem; transition: color .45s ease; }
.service:hover, .service:focus-within {
  background: var(--roi); border-color: var(--roi);
  transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(31,79,176,.7);
}
.service:hover::after { transform: scaleX(1); }
.service:hover h3 { color: #fff; }
.service:hover p { color: rgba(255,255,255,.82); }
.service:hover .service-icon { stroke: var(--or-clair); transform: scale(1.12) rotate(-6deg); }
[dir="rtl"] .service:hover .service-icon { transform: scale(1.12) rotate(6deg); }

/* ---------- Réservation ---------- */
.book > *, .house > *, .contact > *, .book-form > *, .book-form .row > * { min-width: 0; }
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.book-text h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 16px; background: var(--or); border-radius: 2px; }
.steps { margin-top: 32px; display: grid; gap: 20px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; counter-increment: s; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--or); color: var(--or-clair); font-weight: 600;
}
.steps b { font-weight: 600; font-size: 1.05rem; }
.steps span { color: rgba(255,255,255,.75); font-size: .95rem; }
.book-docs { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .88rem; color: rgba(255,255,255,.8); }

.book-form {
  background: var(--blanc); color: var(--nuit); border-radius: 22px; padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 14px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.book-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--doux); }
.book-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form input, .book-form select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--trait); background: var(--fond); color: var(--nuit);
  font: 400 1rem var(--text);
}
.book-form input:focus, .book-form select:focus { outline: 2px solid var(--roi); outline-offset: 0; border-color: transparent; }
.form-note { text-align: center; font-size: .8rem; color: var(--doux); }

/* ---------- Agence ---------- */
.house { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.house-text { display: grid; gap: 18px; justify-items: start; }
.house-text h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 16px; background: var(--or); border-radius: 2px; }
.house-text p { color: var(--doux); }
.house-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.house-photos figure:nth-child(2) { margin-top: 48px; }
.house-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; }
.house-photos figcaption { margin-top: 10px; font-size: .82rem; color: var(--doux); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.contact-list { display: grid; gap: 16px; align-content: start; }
.contact-list > div:not(.contact-actions) { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--trait); }
.contact-list dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--or); padding-top: 2px; }
[lang="ar"] .contact-list dt { letter-spacing: 0; font-size: .9rem; }
.contact-list dd a { text-decoration: none; border-bottom: 1px solid var(--trait); }
.contact-list dd a:hover { color: var(--roi); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-map { min-height: 380px; border-radius: 18px; overflow: hidden; border: 1px solid var(--trait); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Pied ---------- */
.foot { background: var(--nuit); color: rgba(255,255,255,.75); text-align: center; padding: 48px var(--gutter) 96px; display: grid; gap: 18px; justify-items: center; }
.brand-light { color: #fff; flex-direction: column; gap: 14px; justify-self: center; }
.brand-light .brand-mark { width: 64px; height: 92px; }
.brand-light .brand-text { text-align: center; }
.brand-light .brand-text b { font-size: 1.9rem; }
.brand-light .brand-text small { font-size: .72rem; margin-top: 8px; }
.brand-light .brand-text small { color: var(--or-clair); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--or-clair); }
.foot-legal { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Boutons flottants ---------- */
.wa-float, .ig-float {
  position: fixed; inset-inline-end: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); transition: transform .2s;
}
.wa-float:hover, .ig-float:hover { transform: scale(1.06); }
.wa-float { bottom: calc(20px + env(safe-area-inset-bottom)); background: var(--wa); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.ig-float { bottom: calc(88px + env(safe-area-inset-bottom)); width: 48px; height: 48px; inset-inline-end: 24px; background: linear-gradient(45deg, #f9b233, #e1306c 50%, #833ab4); }
.ig-float svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.ig-float .dot { fill: #fff; stroke: none; }
/* avis Google, à l'opposé de WhatsApp */
.avis-float {
  position: fixed; inset-inline-start: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 8px 22px -6px rgba(12,28,58,.4); transition: transform .2s;
}
.avis-float:hover { transform: scale(1.06); }
.avis-float svg { width: 28px; height: 28px; fill: #fbbc04; }

/* ---------- Apparition au défilement ---------- */
.js .car, .js .service { opacity: 0; transform: translateY(18px); }
.js .is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.js .car.is-in:hover { transform: translateY(-4px); }
.js .service.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 96px; }
  .hero-text { justify-self: center; }
  .hero-actions { justify-content: center; }
  .hero-photo { justify-self: center; width: min(100%, 360px); }
  .hero-photo img { aspect-ratio: 1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { border-inline-start: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .book, .house, .contact { grid-template-columns: 1fr; }
  .contact-map, .contact-map iframe { min-height: 300px; }
}
@media (max-width: 560px) {
  .infobar p:first-child { display: none; }
  .brand-mark { width: 30px; height: 44px; }
  .brand-text b { font-size: 1.05rem; }
  .brand-text small { font-size: .5rem; letter-spacing: .24em; }
  .brand-text small { font-size: .56rem; }
  .top-cta { display: none; }
  .fleet { grid-template-columns: 1fr 1fr; gap: 12px; }
  .car-body { padding: 12px 12px 16px; }
  .car h3 { font-size: 1rem; }
  .car-spec { font-size: .8rem; }
  .car-more-body { padding: 18px 14px; }
  .car-more h3 { font-size: 1.1rem; }
  .car-more p { font-size: .82rem; }
  .car-more .btn { padding: 0 14px; min-height: 42px; font-size: .82rem; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-list > div:not(.contact-actions) { grid-template-columns: 1fr; gap: 2px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .house-photos figure:nth-child(2) { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .car, .js .service { opacity: 1; transform: none; }
}
