/* =========================================================
   N&S Auto Service — feuille de style
   Palette reprise du flyer : bleu nuit + or + blanc cassé
   ========================================================= */
:root {
  --navy-900: #0b1526;
  --navy-800: #0f1d33;
  --navy-700: #14263f;
  --navy-600: #1d3352;
  --gold-300: #ecd29b;
  --gold-400: #d9b471;
  --gold-500: #c49a55;
  --gold-600: #a87a3a;
  --cream: #f7f4ee;
  --white: #ffffff;
  --text: #1a2436;
  --muted: #5d6779;
  --line: #e6dfd2;

  --gold-grad: linear-gradient(100deg, var(--gold-600) 0%, var(--gold-300) 45%, var(--gold-500) 75%, var(--gold-600) 100%);
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(11, 21, 38, .35);
  --ff: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ff-script: "Kaushan Script", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.gold { color: var(--gold-400); }
.gold-grad {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.script { font-family: var(--ff-script); font-weight: 400; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s, color .25s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--gold-grad); background-size: 200% 100%;
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(196, 154, 85, .8);
}
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 14px 30px -10px rgba(196, 154, 85, .9); }
.btn--ghost { border-color: rgba(236, 210, 155, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(236, 210, 155, .12); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.header.is-scrolled {
  background: rgba(11, 21, 38, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; flex-direction: column; line-height: 1; color: var(--white); }
.brand__mark { font-weight: 900; font-size: 1.7rem; letter-spacing: -.03em; }
.brand__sub { font-size: .62rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-400); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .92rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: .3s; border-radius: 2px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 940px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 55%, rgba(236, 180, 100, .35), transparent 70%),
    radial-gradient(50% 40% at 10% 10%, rgba(64, 104, 160, .35), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 60%, #2a3a52 100%);
}
.hero__bg::after { /* route dorée stylisée */
  content: ""; position: absolute; left: -10%; right: -10%; top: 46%; height: 220px;
  border-top: 2px solid rgba(236, 210, 155, .35);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero__content { text-align: center; padding-bottom: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); margin: 0 0 1.25rem;
}
.eyebrow .line { width: 48px; height: 1px; background: var(--gold-400); }
.hero__title { display: flex; flex-direction: column; align-items: center; }
.hero__brand { font-size: clamp(4.5rem, 14vw, 9.5rem); font-weight: 900; letter-spacing: -.05em; line-height: .9; }
.hero__name { font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero__tagline { font-size: clamp(1.5rem, 3.6vw, 2.4rem); color: var(--gold-300); margin: 1.25rem 0 2rem; line-height: 1.3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero__photo {
  position: relative; width: min(1160px, 100% - 32px); margin: 1.5rem auto 0;
  border-radius: 28px 28px 0 0; overflow: hidden;
  box-shadow: 0 -20px 60px -20px rgba(236, 180, 100, .35);
}
.hero__photo::after { /* liseré doré + fondu bas vers le bandeau */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(236, 210, 155, .35);
  background: linear-gradient(180deg, transparent 75%, rgba(15, 29, 51, .55) 100%);
}
.hero__photo img { width: 100%; height: auto; aspect-ratio: 922 / 340; object-fit: cover; }

/* ---------- Bandeau public ---------- */
.audience { background: var(--navy-800); color: var(--white); border-top: 1px solid rgba(236, 210, 155, .25); }
.audience__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.4rem;
}
.audience__list { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.audience__list i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }
.audience__motto { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.audience__motto strong { color: var(--gold-300); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--dark { background: var(--navy-800); color: var(--white); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.kicker {
  display: inline-block; margin: 0 0 .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-500);
}
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 1rem 0 0; }
.section--dark .lead { color: rgba(255, 255, 255, .7); }

/* ---------- Cartes services ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.card { grid-column: span 2; }
.card:nth-child(4) { grid-column: 2 / span 2; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy-800); margin-bottom: 1.25rem;
}
.card__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-400); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--navy-800); }
.card p { color: var(--muted); margin: .6rem 0 0; font-size: .95rem; }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step {
  position: relative; padding: 2.2rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(236, 210, 155, .18);
}
.step__num { display: block; font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 1rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.2rem; font-weight: 700; }
.step p { color: rgba(255, 255, 255, .7); margin: .6rem 0 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--gold-grad); color: var(--navy-900); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-band__text { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; color: var(--navy-800); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.coords { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.coords li { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.05rem; }
.coords a:hover { color: var(--gold-600); }
.coords__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--navy-900); }
.coords__icon svg { width: 20px; height: 20px; fill: currentColor; }

.form {
  background: var(--white); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow); border-top: 4px solid var(--gold-500);
  display: grid; gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--navy-700); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .8rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fbfaf7;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(196, 154, 85, .18);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent a { color: var(--gold-600); text-decoration: underline; }
.consent input { margin-top: .25rem; accent-color: var(--gold-500); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; min-height: 1.4em; text-align: center; font-weight: 600; font-size: .92rem; }
.form__status.ok { color: #1e7b4f; }
.form__status.err { color: #c0392b; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(236, 210, 155, .2); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; padding-block: 3rem; }
.brand--footer .brand__mark { font-size: 2.2rem; }
.footer__tagline { margin: 0; color: var(--gold-300); font-size: 1.35rem; }
.footer__copy { margin: 0; font-size: .82rem; }
.footer__copy a { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy a:hover { color: var(--gold-300); }

/* ---------- Accessibilité ---------- */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold-400); color: var(--navy-900); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
body.menu-open { overflow: hidden; }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.fab-call {
  display: none;
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  place-items: center;
  background: var(--gold-grad); color: var(--navy-900);
  box-shadow: 0 10px 25px -6px rgba(0, 0, 0, .45);
  transition: transform .3s ease, opacity .3s ease;
}
.fab-call svg { width: 26px; height: 26px; fill: currentColor; }
.fab-call.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(4) { grid-column: auto; }
  .card:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .fab-call { display: grid; }
  .hero { min-height: 0; padding-top: 104px; }
  .hero__content { padding-bottom: 1rem; }
  .hero__tagline { margin: 1rem 0 1.5rem; }
  .hero__photo { width: 100%; border-radius: 0; box-shadow: none; }
  .hero__photo::after { border-radius: 0; box-shadow: none; }
  .hero__photo img { aspect-ratio: 2.1 / 1; object-position: 42% 70%; }
  .hero__bg::after { display: none; }
  .footer__tagline { font-size: 1.2rem; }
  .section { padding: 3.5rem 0; }
  .section__head { margin-bottom: 2rem; }
  .nav {
    position: fixed; inset: 0 0 auto; top: 0; padding: 90px 24px 32px;
    flex-direction: column; align-items: stretch; gap: 1.2rem; text-align: center;
    background: rgba(11, 21, 38, .98);
    transform: translateY(-100%); transition: transform .35s ease;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { font-size: 1.1rem; padding: .3rem 0; }
  .eyebrow { letter-spacing: .16em; font-size: .68rem; gap: .6rem; }
  .eyebrow .line { width: 22px; }
  .audience__inner { justify-content: center; text-align: center; }
  .audience__list { justify-content: center; font-size: .72rem; letter-spacing: .08em; gap: .5rem .7rem; }
  .eyebrow .line { display: none; }
  .cta-band__inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: .9rem; }
  .card { display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; padding: 1.25rem; align-items: start; }
  .card__icon { width: 52px; height: 52px; border-radius: 14px; margin: 0; grid-row: span 2; }
  .card__icon svg { width: 28px; height: 28px; }
  .card h3 { font-size: .98rem; align-self: center; }
  .card p { margin-top: .3rem; font-size: .92rem; }
  .step { padding: 1.6rem 1.4rem; }
  .step__num { font-size: 2.4rem; margin-bottom: .6rem; }
  .form { border-radius: var(--radius); }
  .coords li { font-size: .98rem; word-break: break-word; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}
.br-mobile { display: none; }
@media (max-width: 560px) { .br-mobile { display: inline; } }

/* ---------- Accessibilité ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ---------- Formulaire : erreurs ---------- */
.field.is-invalid select { border-color: #c0392b; }
.consent.is-invalid { color: #c0392b; }
.consent.is-invalid input { outline: 2px solid #c0392b; outline-offset: 2px; }

/* ---------- FAQ ---------- */
.section--faq { background: var(--white); }
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .9rem; }
.faq__item {
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: var(--gold-400); box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 700; color: var(--navy-800);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--gold-600); transition: transform .25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0; padding: 0 1.4rem 1.25rem; color: var(--muted); }
.faq__item a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pied de page : liens ---------- */
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .88rem; font-weight: 600; }
.footer__nav a { color: rgba(255, 255, 255, .8); }
.footer__nav a:hover { color: var(--gold-300); }
