/* ============================================================
   Carats Limousine — styles communs à toutes les pages
   ============================================================ */
:root {
  --nuit: #0E0F11;       /* fond principal */
  --asphalte: #17191C;   /* surfaces */
  --trait: #2A2D31;      /* filets et bordures */
  --ivoire: #ECE8E1;     /* texte principal */
  --brume: #9C9FA4;      /* texte secondaire */
  --champagne: #C9B28A;  /* accent, utilisé avec parcimonie */
  --champagne-vif: #DCC7A0;
  --pierre: #EFECE6;     /* section claire */
  --encre: #141517;      /* texte sur fond clair */
  --encre-douce: #5E6166;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-bg: rgba(14, 15, 17, .92);
  --menu-bg: rgba(14, 15, 17, .97);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--ivoire);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: inherit; color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
::selection { background: var(--champagne); color: var(--nuit); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ivoire); color: var(--nuit); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.section-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-solid { background: var(--ivoire); color: var(--nuit); }
.btn-solid:hover { background: var(--champagne-vif); }
.btn-line { background: transparent; border-color: rgba(236, 232, 225, .32); color: var(--ivoire); }
.btn-line:hover { border-color: var(--champagne); color: var(--champagne-vif); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header:not(.is-solid)::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,15,17,.55), rgba(14,15,17,0));
}
.site-header.is-solid {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--trait);
  padding-block: calc(12px + env(safe-area-inset-top, 0px)) 12px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--serif); font-size: 21px; letter-spacing: .01em;
  white-space: nowrap;
}
.wordmark .gem { width: 20px; height: 20px; color: var(--champagne); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ivoire); opacity: .82; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 2px; }
.lang-btn {
  background: none; border: 0; cursor: pointer;
  font: 500 13px/1 var(--sans); color: var(--brume);
  padding: 8px 6px; min-width: 32px; min-height: 32px;
}
.lang-btn.active { color: var(--ivoire); }
.lang-btn:hover { color: var(--ivoire); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 12px 10px; }
.menu-toggle .bar { display: block; height: 1.5px; background: var(--ivoire); margin: 5px 0; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Contact final ---------- */
.closing { padding: clamp(80px, 11vw, 150px) 0; background: var(--asphalte); }
.closing-inner { text-align: center; display: grid; justify-items: center; gap: 18px; }
.closing h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.015em; }
.closing p { color: var(--brume); max-width: 46ch; }
.closing .phone {
  font-family: var(--serif); color: var(--ivoire); font-size: clamp(26px, 3vw, 36px);
  letter-spacing: .02em; font-variant-numeric: lining-nums; user-select: all;
}
.closing-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--trait); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-name { font-family: var(--serif); font-size: 22px; }
.footer-muted { margin-top: 8px; color: var(--brume); font-size: 14.5px; max-width: 34ch; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; font-size: 14.5px; color: var(--brume); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--ivoire); }
.copyright { margin-top: 44px; font-size: 13px; color: #6d7075; }

/* ---------- Bouton WhatsApp flottant ---------- */
.float-wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1F8F5F; color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.float-wa svg { width: 27px; height: 27px; }
.float-wa:hover { transform: translateY(-3px); }

/* ---------- Mouvements ---------- */
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123,197,154,.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(123,197,154,0); } }
@keyframes flash { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Champs de formulaire (partagés) ---------- */
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field > span { font-size: 13px; color: var(--brume); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], textarea {
  width: 100%; min-height: 48px;
  background: var(--asphalte); color: var(--ivoire);
  border: 1px solid var(--trait); border-radius: 10px;
  font: 15px var(--sans); padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #6f7277; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(201,178,138,.22); }
input[type="date"], input[type="time"] { color-scheme: dark; cursor: pointer; }

/* ---------- En-tête de page intérieure ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 72vh, 720px);
  display: flex; align-items: flex-end;
  background-color: var(--asphalte);
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,15,17,.6) 0%, rgba(14,15,17,0) 30%),
    linear-gradient(90deg, rgba(14,15,17,.85) 0%, rgba(14,15,17,.35) 55%, rgba(14,15,17,.05) 100%),
    linear-gradient(0deg, rgba(14,15,17,1) 0%, rgba(14,15,17,0) 45%);
}
.page-hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) clamp(44px, 7vh, 80px); animation: rise 1.1s .15s var(--ease) both; }
.page-kicker { display: block; font-size: 15px; color: var(--champagne); margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.02em; max-width: 16ch;
}
.page-hero p { margin-top: 22px; max-width: 52ch; font-size: 18px; color: rgba(236,232,225,.86); }
.page-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero.is-plain { min-height: 0; background: var(--nuit); }
.page-hero.is-plain::after { display: none; }
.page-hero.is-plain .page-hero-inner { padding-bottom: 40px; }

/* ---------- Processus (partagé) ---------- */
.process { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--trait); }
.process-steps { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); counter-reset: step; }
.process-steps li { counter-increment: step; border-top: 1px solid var(--champagne); padding-top: 22px; }
.process-steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--champagne); margin-bottom: 18px; font-variant-numeric: lining-nums; }
.process-steps h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.process-steps p { margin-top: 10px; color: var(--brume); }
.process-privacy { margin-top: clamp(32px, 4vw, 52px); display: flex; gap: 14px; align-items: flex-start; color: var(--brume); font-size: 14.5px; max-width: 70ch; }
.process-privacy svg { width: 20px; height: 20px; flex: none; color: var(--champagne); margin-top: 2px; }
.process-privacy a { color: var(--ivoire); }

/* ---------- Menu mobile & pied de page responsives ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; z-index: -1;
    flex-direction: column; gap: 0; margin: 0;
    padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gutter) 24px;
    background: var(--menu-bg); border-bottom: 1px solid var(--trait);
    transform: translateY(-100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility .45s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-family: var(--serif); font-size: 28px; opacity: 1; padding: 12px 0; border-bottom: 1px solid var(--trait); }
  .header-actions { margin-left: auto; gap: 8px; }
  .process-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { gap: 12px; }
  .wordmark { font-size: 18px; }
  .wordmark .gem { display: none; }
  .header-actions .btn-small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 520px; }
  .page-hero::after {
    background: linear-gradient(180deg, rgba(14,15,17,.65) 0%, rgba(14,15,17,.25) 30%, rgba(14,15,17,.8) 62%, rgba(14,15,17,1) 88%);
  }
  .page-hero p { font-size: 16.5px; }
}
[id] { scroll-margin-top: 84px; }
