/* =============================================================
   LVP — Léo Vonderscher Prestations
   Feuille de style — mobile-first, vanilla CSS
   -------------------------------------------------------------
   Palette construite à partir de :
     primaire  #020749  (bleu nuit)
     accent    #caa437  (doré)
   ============================================================= */

:root {
  /* Bleus */
  --navy-900: #020749;
  --navy-800: #0a1470;
  --navy-700: #1b2a8a;
  --navy-600: #33409e;
  --navy-400: #8a92c4;

  /* Dorés */
  --gold-600: #a8862a;
  --gold-500: #caa437;
  --gold-400: #dcbc63;
  --gold-100: #f3e9cf;

  /* Neutres chauds */
  --paper:    #f6f4ef;
  --paper-2:  #ece8dd;
  --white:    #ffffff;
  --ink:      #16171f;
  --ink-soft: #4a4c5a;

  /* Fonctions UI */
  --line:        rgba(2, 7, 73, 0.14);
  --line-strong: rgba(2, 7, 73, 0.32);
  --focus:       var(--gold-500);
  --shadow:      0 18px 40px -24px rgba(2, 7, 73, 0.45);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }

em { font-style: italic; color: var(--gold-500); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy-900); color: var(--white);
  padding: 0.6rem 1rem; z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(2.75rem, 7vw, 5rem); }

.section-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-note { margin-top: 0.9rem; color: var(--ink-soft); max-width: 46ch; font-size: 0.95rem; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 0.9rem;
}

h2 { font-size: clamp(1.8rem, 5vw, 2.75rem); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-primary:hover { background: var(--gold-400); border-color: var(--gold-400); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn-navy { background: var(--navy-900); color: var(--paper); border-color: var(--navy-900); }
.btn-navy:hover { background: var(--navy-800); border-color: var(--navy-800); }
.btn-navy-ghost { background: var(--paper); color: var(--navy-900); border-color: var(--paper); }
.btn-navy-ghost:hover { background: var(--white); border-color: var(--white); }

/* CTA centré en pied de section */
.section-cta { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }

/* Bandeau CTA pleine largeur */
.cta-band { background: var(--gold-500); color: var(--navy-900); }
.cta-band-inner {
  padding-block: clamp(1.9rem, 5vw, 2.8rem);
  display: flex; flex-direction: column; align-items: center; gap: 1.15rem;
  text-align: center;
}
.cta-band p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
  line-height: 1.15; max-width: 24ch;
}
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}

.logo { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.logo-mark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; letter-spacing: 0.04em; color: var(--navy-900);
}
.logo-img { height: auto; width: auto; }
.logo-sub { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; }
.nav-list { display: none; list-style: none; gap: 1.6rem; }
.nav-list a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  padding-block: 0.4rem; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold-500); transition: width 0.2s ease;
}
.nav-list a:hover::after, .nav-list a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent; border: 1px solid var(--line-strong);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.phone-link { display: none; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.phone-link:hover { color: var(--gold-600); }
.header-actions .btn-sm { display: none; }

/* Menu mobile ouvert */
.nav-list.open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.25rem;
}
.nav-list.open li { border-top: 1px solid var(--line); }
.nav-list.open a { display: block; padding: 0.9rem 0; font-size: 1rem; }
.nav-list.open a::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-900);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(202,164,55,0.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}
.hero-text .eyebrow { color: var(--gold-400); }
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: rgba(246,244,239,0.82);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}
.hero-zone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--gold-400);
  border: 1px solid rgba(202,164,55,0.35); padding: 0.45rem 0.9rem;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
.hero-cta .btn { width: 100%; }

/* Mascotte du hero */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}
.hero-mascot {
  position: relative;
  width: min(66%, 260px);
  height: auto;
}

/* ---------- Prestations ---------- */
.services { background: var(--paper); }
.services-grid {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  position: relative;
  background: var(--paper);
  padding: 1.25rem 1.05rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.service-num {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--font-display); color: var(--gold-600);
  font-size: 0.75rem; letter-spacing: 0.02em; opacity: 0.75;
}
.service-icon { color: var(--navy-800); margin-bottom: 0.5rem; }
.service-icon svg { width: 34px; height: 34px; }
.service-card h3 { font-size: 1.02rem; }
.service-card p { font-size: 0.84rem; color: var(--ink-soft); }

.service-card:hover { background: var(--navy-900); color: var(--paper); }
.service-card:hover .service-icon { color: var(--gold-400); }
.service-card:hover .service-num { color: var(--gold-400); opacity: 1; }
.service-card:hover p { color: rgba(246,244,239,0.7); }

/* ---------- Comment ça se passe ---------- */
.process { background: var(--navy-900); color: var(--paper); }
.process .eyebrow { color: var(--gold-400); }
.steps {
  list-style: none;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  counter-reset: none;
}
.step { position: relative; padding-left: 3.75rem; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-500); color: var(--navy-900);
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.92rem; color: rgba(246,244,239,0.72); max-width: 34ch; }

/* ---------- Zone ---------- */
.zone { background: var(--paper); }
.zone .eyebrow { color: var(--gold-600); }
.zone-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.zone-text h2 { margin-bottom: 1.1rem; }
.zone-text p { max-width: 46ch; color: var(--ink-soft); }
.zone-text strong { color: var(--ink); }
.zone-tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-top: 1.5rem;
}
.zone-tags li {
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  color: var(--navy-800);
}
.zone-visual img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
}

/* ---------- Réalisations ---------- */
.works { background: var(--navy-900); color: var(--paper); }
.works .eyebrow { color: var(--gold-400); }
.works .section-note { color: rgba(246,244,239,0.62); }
.works-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.work-tile { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.work-tile .work-ph,
.work-tile img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.4s ease;
}
.work-tile:hover .work-ph,
.work-tile:hover img { transform: scale(1.04); }
.work-ph-a { background: radial-gradient(130% 100% at 85% 0%, rgba(202,164,55,0.16), transparent 55%), linear-gradient(150deg, #0a1470, #020749); }
.work-ph-b { background: radial-gradient(130% 100% at 15% 0%, rgba(202,164,55,0.12), transparent 55%), linear-gradient(150deg, #1b2a8a, #0a1470); }
.work-ph-c { background: radial-gradient(130% 100% at 50% 110%, rgba(202,164,55,0.16), transparent 55%), linear-gradient(150deg, #08103f, #12205f); }
.work-tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem; font-weight: 500;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(2,7,73,0.82), transparent);
}

/* ---------- Pourquoi ---------- */
.why { background: var(--paper); }
.why-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.why-grid li {
  background: var(--white);
  border-top: 3px solid var(--gold-500);
  padding: 1.9rem 1.5rem;
  text-align: center;
}
.why-icon { display: inline-flex; color: var(--navy-800); margin-bottom: 0.9rem; }
.why-icon svg { width: 30px; height: 30px; }
.why-grid h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.why-grid p { font-size: 0.92rem; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body); font-size: 1.3rem; line-height: 1;
  color: var(--gold-600); flex: none;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list p { padding: 1rem 1.2rem 1.15rem; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--navy-900); color: var(--paper); }
.contact .eyebrow { color: var(--gold-400); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-intro { margin-top: 1rem; color: rgba(246,244,239,0.8); max-width: 40ch; }

.contact-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: 0.15rem; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1rem; }
.contact-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-400); }
.contact-list a:hover { color: var(--gold-400); }

.contact-badges {
  list-style: none; margin-top: 1.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1rem;
}
.contact-badges li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; color: rgba(246,244,239,0.9);
}
.contact-badges svg { color: var(--gold-400); flex: none; }

.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--gold-500); outline-offset: 1px; border-color: var(--navy-800);
}

/* Honeypot : hors écran mais pas display:none (certains bots l'ignorent) */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}

.form-status {
  margin-top: 1rem; padding: 0.8rem 1rem; font-size: 0.9rem;
  border: 1.5px solid;
}
.form-status.is-success { border-color: var(--gold-600); background: var(--gold-100); color: var(--navy-900); }
.form-status.is-error { border-color: #b23b3b; background: #f7e3e3; color: #7a1f1f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gold-500); color: var(--navy-900); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand .logo-mark { color: var(--navy-900); }
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 0.65rem 1.05rem;
  border-radius: 8px;
}
.footer-logo .logo-img { height: 36px; display: block; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(2,7,73,0.72); margin-bottom: 0.7rem; }
.footer-col p { font-size: 0.85rem; line-height: 1.9; }
.footer-col a:hover { text-decoration: underline; }
.legal-placeholder { font-style: italic; color: rgba(2,7,73,0.62); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(2,7,73,0.22);
  font-size: 0.78rem;
}
.to-top:hover { text-decoration: underline; }

/* =============================================================
   BREAKPOINTS
   ============================================================= */
@media (min-width: 560px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
  .hero-cta .btn { width: auto; }
  .cta-band-inner { flex-direction: row; justify-content: space-between; text-align: left; gap: 1.75rem; }
  .cta-band p { max-width: none; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .works-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  html { scroll-padding-top: 92px; }
  .nav-toggle { display: none; }
  .nav-list { display: flex; }
  .phone-link { display: inline-flex; }
  .header-actions .btn-sm { display: inline-flex; }

  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3.5rem; }
  .hero-visual { margin-top: 0; }
  .hero-mascot { width: min(100%, 460px); }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding: 2rem 1.75rem 2.25rem; gap: 0.3rem; }
  .service-num { top: 1.35rem; right: 1.4rem; font-size: 0.8rem; }
  .service-icon svg { width: 40px; height: 40px; }
  .service-card h3 { font-size: 1.15rem; }
  .service-card p { font-size: 0.9rem; }

  .why-grid { grid-template-columns: repeat(3, 1fr); }

  .works-grid { grid-template-columns: repeat(3, 1fr); }

  .zone-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Apparition au scroll ---------- */
.js .anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .anim.anim-in { opacity: 1; transform: none; }

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