/* ============================================================
   Taxi Richard — Bordeaux nocturne
   Palette : noir vin · or champagne · blanc chaud
   ============================================================ */

:root {
  --bg:        #0e0b0c;
  --bg-2:      #14100f;
  --bg-card:   #16110f;
  --wine:      #7b1e2b;
  --wine-deep: #4a1019;
  --gold:      #d9bd86;
  --gold-soft: #c8a86b;
  --ink:       #f3ede4;
  --muted:     #9a9089;
  --line:      rgba(217, 189, 134, 0.16);
  --line-soft: rgba(243, 237, 228, 0.08);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Trebuchet MS", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  position: relative;
}

/* Atmosphère : grain léger */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.3rem;
}
.eyebrow--center { text-align: center; }

.section {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 11vw, 9rem) clamp(1.4rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin-inline: auto;
}
.section__head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section__head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section__intro { color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn svg { flex: none; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1a1410;
  box-shadow: 0 10px 30px -12px rgba(217, 189, 134, 0.5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(217, 189, 134, 0.65); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.4rem, 5vw, 4rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease),
              border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(14, 11, 12, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand__mark { color: var(--gold); transition: transform 0.6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: 0.01em; }
.brand__sub {
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--muted); position: relative; transition: color 0.3s var(--ease);
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav a:not(.nav__cta):hover { color: var(--ink); }
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line); color: var(--ink) !important;
  padding: 0.55rem 1.3rem; border-radius: 2px; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.72rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { border-color: var(--gold); background: var(--gold); color: #1a1410 !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 1.5px; background: var(--ink); transition: 0.4s var(--ease); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem clamp(1.4rem, 5vw, 4rem) 5rem;
  max-width: var(--maxw);
  margin-inline: auto;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 110vw; height: 80vh;
  background: radial-gradient(ellipse at center top,
              rgba(123, 30, 43, 0.32), transparent 58%),
              radial-gradient(ellipse at 70% 40%,
              rgba(217, 189, 134, 0.10), transparent 55%);
  z-index: -1;
  pointer-events: none;
}
.hero__arches {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 130%; max-width: none; height: auto;
  z-index: -1; opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}
.hero__inner { max-width: 760px; position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(2.8rem, 8.5vw, 6rem);
  font-weight: 300;
  margin-bottom: 1.8rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.8rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero__tags li { display: flex; align-items: center; gap: 0.6rem; }
.hero__tags li + li::before { content: ""; }
.hero__tags li::before {
  content: ""; width: 5px; height: 5px; border: 1px solid var(--gold);
  transform: rotate(45deg); display: inline-block;
}

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1px solid var(--line); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px; z-index: 2;
}
.hero__scroll span {
  width: 3px; height: 7px; background: var(--gold); border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(10px); }
}

/* ============ SERVICES ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.card {
  background: var(--bg);
  padding: 2.6rem 2.2rem;
  position: relative;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 2px;
  background: linear-gradient(var(--gold), var(--wine));
  transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease);
}
.card:hover { background: var(--bg-card); }
.card:hover::before { transform: scaleY(1); }
.card__no {
  font-family: var(--serif); font-size: 0.95rem; color: var(--gold-soft);
  letter-spacing: 0.1em; display: block; margin-bottom: 1.4rem; opacity: 0.8;
}
.card h3 { font-size: 1.45rem; margin-bottom: 0.9rem; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card--cta { background: linear-gradient(155deg, var(--wine-deep), var(--bg)); }
.card--cta:hover { background: linear-gradient(155deg, var(--wine), var(--bg)); }
.card__link {
  display: inline-block; margin-top: 1.2rem; color: var(--gold);
  font-size: 0.9rem; letter-spacing: 0.05em; transition: gap 0.3s, transform 0.3s var(--ease);
}
.card--cta:hover .card__link { transform: translateX(4px); }

/* ============ ATOUTS ============ */
.atouts { max-width: var(--maxw); }
.atouts__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.atouts__intro h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 1.2rem; }
.atouts__intro p { color: var(--muted); }
.atouts__list { list-style: none; display: grid; gap: 0; }
.atouts__list li { padding: 1.6rem 0; border-top: 1px solid var(--line-soft); }
.atouts__list li:last-child { border-bottom: 1px solid var(--line-soft); }
.atouts__list span {
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
  display: block; margin-bottom: 0.35rem;
}
.atouts__list p { color: var(--muted); font-size: 0.96rem; }

/* ============ ZONES ============ */
.zones__list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem; max-width: 820px; margin: 0 auto;
}
.zones__list li {
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.6rem 1.4rem; font-size: 0.9rem; letter-spacing: 0.03em; color: var(--muted);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
}
.zones__list li:hover { border-color: var(--gold); color: var(--ink); background: rgba(217,189,134,0.06); }

/* ============ CONTACT ============ */
.contact { text-align: center; }
.contact__inner {
  max-width: 680px; margin-inline: auto;
  border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123,30,43,0.18), transparent 70%),
    var(--bg-2);
  position: relative;
}
.contact__inner h2 { font-size: clamp(2rem, 5vw, 3rem); }
.contact__lead { color: var(--muted); max-width: 480px; margin: 1.1rem auto 2.4rem; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============ FOOTER ============ */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.4rem, 5vw, 4rem) 2.5rem;
  max-width: var(--maxw); margin-inline: auto;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.4rem; padding-bottom: 2rem;
}
.footer__brand { display: flex; flex-direction: column; }
.footer__phone { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); transition: color 0.3s; }
.footer__phone:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  border-top: 1px solid var(--line-soft); padding-top: 1.6rem;
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em;
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1f8f4e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(31,143,78,0.6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 34px -8px rgba(31,143,78,0.75); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid #1f8f4e; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .atouts__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* Sur mobile, le backdrop-filter du header piège le menu fixed à l'intérieur
     de la barre quand on a scrollé. On le retire et on met un fond opaque. */
  .header.scrolled {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: rgba(14, 11, 12, 0.96);
  }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.8rem; padding: 2rem 2.4rem;
    background: rgba(14, 11, 12, 0.97); backdrop-filter: blur(16px);
    border-left: 1px solid var(--line-soft);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.1rem; }
  .burger { display: flex; z-index: 101; }
  .burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
