/* =============================================================
   MERCANTOUR EXPÉRIENCE — Design System v2 « Premium Nature »
   DMC vélo haut de gamme · Mercantour & Côte d'Azur
   Typographie : Fraunces (display) + Inter (texte)
   ============================================================= */

:root {
  /* Palette — pin maritime, or patiné, pierre, papier */
  --pine-950: #0b1a11;
  --pine-900: #102317;
  --pine-800: #163122;
  --pine-700: #1f4530;
  --pine-600: #2c5f43;
  --pine-500: #3f7d5c;
  --sage: #8fa898;
  --gold-700: #8f6f24;
  --gold-600: #a8842e;
  --gold-500: #c19a43;
  --gold-400: #d9bc72;
  --paper: #faf8f2;
  --sand: #f1ecdf;
  --stone: #e4dcc9;
  --ink: #1c211c;
  --muted: #636e60;
  --white: #ffffff;

  /* Alias rétro-compatibilité (utilisés dans le HTML) */
  --green-900: var(--pine-950);
  --green-800: var(--pine-800);
  --green-700: var(--pine-700);
  --green-600: var(--pine-600);
  --green-500: var(--pine-500);
  --green-400: var(--sage);
  --cream: var(--paper);
  --cream-dark: var(--stone);

  --shadow-sm: 0 1px 2px rgba(11,26,17,.06), 0 4px 14px rgba(11,26,17,.06);
  --shadow-md: 0 6px 18px rgba(11,26,17,.10), 0 18px 44px rgba(11,26,17,.10);
  --shadow-lg: 0 12px 30px rgba(11,26,17,.16), 0 40px 90px rgba(11,26,17,.22);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1240px;
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  font-weight: 400;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-500); color: var(--pine-950); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 480;
  font-variation-settings: "opsz" 110;
  line-height: 1.04;
  color: var(--pine-800);
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.5vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
h1 em, h2 em { font-style: italic; font-weight: 420; color: inherit; }
p { margin-bottom: 1rem; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold-600);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 1.2rem;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.section-head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: 1.16rem; line-height: 1.75; color: var(--muted); max-width: 60ch; font-weight: 400; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: clamp(72px, 10vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .02em;
  padding: 16px 32px; border-radius: 100px; cursor: pointer; border: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold-500); color: var(--pine-950); box-shadow: 0 6px 20px rgba(193,154,67,.35); }
.btn-primary:hover { background: var(--gold-400); box-shadow: 0 10px 28px rgba(193,154,67,.45); }
.btn-dark { background: var(--pine-800); color: var(--paper); }
.btn-dark:hover { background: var(--pine-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--pine-800); border: 1px solid rgba(22,49,34,.35); }
.btn-ghost:hover { background: var(--pine-800); color: var(--paper); border-color: var(--pine-800); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn-light:hover { background: #fff; color: var(--pine-950); border-color: #fff; }
.btn-lg { padding: 19px 42px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 26px 0;
  transition: background .5s var(--ease), box-shadow .5s, padding .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(250,248,242,.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(22,49,34,.08), var(--shadow-sm);
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; font-family: var(--serif); font-size: 1.42rem; font-weight: 520; color: #fff; transition: color .4s; line-height: 1.05; }
.scrolled .brand, .header-solid .brand { color: var(--pine-800); }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600; opacity: .75; margin-top: -1px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; letter-spacing: .03em; color: rgba(255,255,255,.92); position: relative; transition: color .3s; }
.scrolled .nav-links a, .header-solid .nav-links a { color: var(--pine-800); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -7px; width: 0; height: 1.5px; background: var(--gold-500); transition: width .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle { display: flex; gap: 4px; align-items: center; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); }
.scrolled .lang-toggle, .header-solid .lang-toggle { color: var(--pine-800); }
.lang-toggle button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; opacity: .5; padding: 2px 4px; transition: opacity .2s; }
.lang-toggle button.active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold-500); }
.lang-toggle span { opacity: .35; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 1.8px; background: #fff; transition: .3s; }
.scrolled .burger span, .header-solid .burger span { background: var(--pine-800); }

/* ---------- Héros ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  animation: kenburns 22s var(--ease) both;
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,26,17,.42) 0%, rgba(11,26,17,0) 30%),
    linear-gradient(100deg, rgba(11,26,17,.78) 0%, rgba(11,26,17,.38) 55%, rgba(11,26,17,.12) 100%),
    linear-gradient(0deg, rgba(11,26,17,.55) 0%, rgba(11,26,17,0) 32%);
}
.hero .container { padding-top: 130px; padding-bottom: 90px; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 30px rgba(11,26,17,.3); }
.hero .lead { color: rgba(255,255,255,.92); margin: 28px 0 40px; font-size: clamp(1.1rem, 1.6vw, 1.32rem); text-shadow: 0 1px 16px rgba(11,26,17,.35); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll::after { content: ''; width: 1px; height: 44px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: scrollpulse 2.2s infinite; }
@keyframes scrollpulse { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

.page-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.page-hero .hero-bg { animation: kenburns 18s var(--ease) both; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,26,17,.9) 0%, rgba(11,26,17,.35) 55%, rgba(11,26,17,.55) 100%); }
.page-hero .container { padding-top: 170px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 26px rgba(11,26,17,.3); }
.page-hero .lead { color: rgba(255,255,255,.92); }
.breadcrumb { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 16px; font-weight: 600; }

/* ---------- Bandeau chiffres ---------- */
.stats { background: var(--pine-800); color: var(--paper); padding: clamp(48px, 6vw, 76px) 0; position: relative; }
.stats::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,188,114,.5), transparent); }
.stats .grid { gap: 0; }
.stat { text-align: center; padding: 12px 26px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: rgba(250,248,242,.14); }
.stat .num { font-family: var(--serif); font-weight: 420; font-size: clamp(2.6rem, 4.4vw, 3.8rem); color: var(--gold-400); line-height: 1; font-variation-settings: "opsz" 90; }
.stat .label { font-size: .82rem; letter-spacing: .06em; opacity: .8; margin-top: 10px; }

/* ---------- Cartes ---------- */
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4/3; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.card-img::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; background-size: cover; background-position: center;
  transition: transform 1.1s var(--ease);
}
.card:hover .card-img::before { transform: scale(1.07); }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,26,17,.22), transparent 45%); pointer-events: none; }
.card-tag {
  position: absolute; z-index: 2; top: 16px; left: 16px;
  background: rgba(11,26,17,.68); color: var(--gold-400);
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px; backdrop-filter: blur(6px);
  border: 1px solid rgba(217,188,114,.25);
}
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; font-size: 1.45rem; }
.card-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; align-items: center; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.card-link { color: var(--gold-700); font-weight: 600; font-size: .92rem; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 7px; transition: gap .35s var(--ease), color .3s; }
.card-link:hover { gap: 13px; color: var(--pine-700); }
.difficulty { display: inline-flex; gap: 4px; }
.difficulty i { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); }
.difficulty i.on { background: var(--gold-500); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 5/4; background-size: cover; background-position: center; position: relative;
}
.split-img::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(11,26,17,.08); border-radius: inherit; }
.feature-list { list-style: none; margin-top: 24px; }
.feature-list li { display: flex; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.feature-list .ic { flex: none; width: 26px; height: 26px; color: var(--gold-600); }
.feature-list strong { color: var(--pine-800); display: block; }
.feature-list span { color: var(--muted); font-size: .94rem; }

/* ---------- Étapes ---------- */
body { counter-reset: step; }
.steps { counter-reset: step; gap: 0; border-top: 1px solid var(--stone); }
.step { position: relative; padding: 36px 30px 30px; background: transparent; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--stone); }
.step + .step { border-left: 1px solid var(--stone); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: .12em;
  color: var(--gold-600); display: block; margin-bottom: 18px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Bandes ---------- */
.band-dark { background: var(--pine-950); color: var(--paper); position: relative; }
.band-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1000px 500px at 85% -10%, rgba(63,125,92,.22), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(193,154,67,.10), transparent 60%); pointer-events: none; }
.band-dark > .container { position: relative; }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark .lead { color: rgba(250,248,242,.75); }
.band-dark .card { background: #12271a; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, var(--shadow-md); }
.band-dark .card h3 { color: var(--paper); }
.band-dark .card p { color: rgba(250,248,242,.68); }
.band-green { background: var(--pine-700); color: var(--paper); position: relative; }
.band-green::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 400px at 100% 0%, rgba(217,188,114,.12), transparent 55%); pointer-events: none; }
.band-green > .container { position: relative; }
.band-green h2 { color: var(--paper); }
.band-green .lead { color: rgba(250,248,242,.8); }
.band-cream { background: var(--sand); }

/* ---------- Bande CTA ---------- */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; padding: clamp(100px, 13vw, 190px) 0; }
.cta-band .hero-bg { animation: kenburns 20s var(--ease) both; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11,26,17,.82), rgba(11,26,17,.68)); }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 20px; }
.cta-band .lead { color: rgba(255,255,255,.9); margin: 0 auto 36px; }

/* ---------- Témoignages ---------- */
.quote { background: transparent; border-radius: 0; padding: 8px 26px 0; box-shadow: none; position: relative; border-left: 1px solid var(--stone); }
.quote::before { content: '“'; font-family: var(--serif); font-size: 4.4rem; line-height: 1; color: var(--gold-500); display: block; margin-bottom: 2px; }
.quote p { font-family: var(--serif); font-size: 1.32rem; font-weight: 440; color: var(--pine-800); line-height: 1.45; font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.quote .who img, .quote .who .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--pine-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--serif); }
.quote .who strong { display: block; font-size: .94rem; }
.quote .who span { font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.stars { color: var(--gold-500); font-size: .82rem; margin-bottom: 10px; letter-spacing: 3px; }

/* ---------- Équipe ---------- */
.team-card { text-align: center; }
.team-card .av { aspect-ratio: 1; border-radius: var(--radius-lg); background-size: cover; background-position: center; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.team-card h3 { font-size: 1.3rem; }
.team-card .role { color: var(--gold-600); font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.team-card p { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- Accordéon ---------- */
.acc { border-bottom: 1px solid var(--stone); }
.acc-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 480; color: var(--pine-800); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.acc-q .pm { flex: none; width: 26px; height: 26px; position: relative; }
.acc-q .pm::before, .acc-q .pm::after { content: ''; position: absolute; background: var(--gold-600); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.acc-q .pm::before { width: 15px; height: 1.5px; }
.acc-q .pm::after { width: 1.5px; height: 15px; transition: transform .3s; }
.acc.open .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-a p { color: var(--muted); padding-bottom: 24px; margin: 0; max-width: 68ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 64px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pine-800); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--stone); border-radius: 12px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(193,154,67,.15); }
.contact-info { background: var(--pine-800); color: var(--paper); border-radius: var(--radius-lg); padding: 44px; position: relative; overflow: hidden; }
.contact-info::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 110% -10%, rgba(217,188,114,.16), transparent 60%); pointer-events: none; }
.contact-info > * { position: relative; }
.contact-info h3 { color: var(--paper); margin-bottom: 6px; }
.contact-info a { color: var(--gold-400); }
.info-row { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid rgba(250,248,242,.12); align-items: baseline; }
.info-row .ic { flex: none; width: 24px; color: var(--gold-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-950); color: rgba(250,248,242,.68); padding: 90px 0 34px; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,188,114,.4), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 56px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer h4 { color: rgba(250,248,242,.95); font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; font-size: .94rem; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .78rem; letter-spacing: .02em; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .3s; }
.socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--pine-950); }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Concierge Émile (widget) ---------- */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--pine-800); color: var(--paper);
  border: 1px solid rgba(217,188,114,.35);
  cursor: pointer; padding: 16px 26px; border-radius: 100px;
  font-family: var(--sans); font-weight: 600; font-size: .93rem; letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(11,26,17,.35);
  transition: transform .35s var(--ease), box-shadow .35s, background .3s;
}
.chat-fab:hover { transform: translateY(-3px); background: var(--pine-700); box-shadow: 0 16px 40px rgba(11,26,17,.4); }
.chat-fab .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-400); position: relative; }
.chat-fab .pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--gold-400); animation: ping 1.9s infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:1} 100%{transform:scale(1.9);opacity:0} }

.chat-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 1300;
  width: min(430px, calc(100vw - 32px)); height: min(660px, calc(100vh - 48px));
  background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22,49,34,.08);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s;
}
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { background: var(--pine-900); color: #fff; padding: 20px 22px; display: flex; align-items: center; gap: 13px; position: relative; }
.chat-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,188,114,.5), transparent); }
.chat-head .av { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 3px rgba(217,188,114,.25); }
.chat-head .av svg { width: 25px; height: 25px; }
.chat-head h4 { color: #fff; font-family: var(--sans); font-size: .98rem; margin: 0; }
.chat-head .status { font-size: .74rem; color: var(--sage); display: flex; align-items: center; gap: 6px; }
.chat-head .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #52b788; box-shadow: 0 0 8px #52b788; }
.chat-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer; font-size: 1.7rem; line-height: 1; transition: color .2s; }
.chat-close:hover { color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { max-width: 85%; padding: 13px 17px; border-radius: 18px; font-size: .93rem; line-height: 1.6; }
.msg.bot { background: #fff; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); border: 1px solid rgba(22,49,34,.06); }
.msg.user { background: var(--pine-700); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.bot strong { color: var(--pine-800); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 8px; }
.chat-quick button { background: #fff; border: 1px solid var(--stone); color: var(--pine-800); font: inherit; font-size: .83rem; font-weight: 500; padding: 9px 16px; border-radius: 100px; cursor: pointer; transition: .25s; }
.chat-quick button:hover { border-color: var(--gold-500); background: var(--gold-500); color: var(--pine-950); }
.chat-input { display: flex; gap: 9px; padding: 14px 16px; background: #fff; border-top: 1px solid var(--stone); }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--stone); border-radius: 14px; padding: 12px 15px; font: inherit; font-size: .93rem; max-height: 100px; }
.chat-input textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(193,154,67,.12); }
.chat-send { background: var(--pine-800); color: #fff; border: none; width: 46px; height: 46px; border-radius: 14px; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.chat-send:hover { background: var(--pine-700); transform: scale(1.04); }
.chat-send:disabled { opacity: .5; cursor: default; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 17px; background: #fff; border-radius: 18px; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: blink 1.2s infinite both; }
.typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,80%,100%{opacity:.3;transform:translateY(0)} 40%{opacity:1;transform:translateY(-3px)} }
.chat-disclaimer { font-size: .66rem; color: var(--muted); text-align: center; padding: 7px 16px 13px; background: #fff; }
.chat-quick button.sel { border-color: var(--gold-500); background: var(--gold-500); color: var(--pine-950); font-weight: 600; }
.chat-quick button.confirm { background: var(--pine-800); color: var(--paper); border-color: var(--pine-800); font-weight: 600; }
.chat-quick button.confirm:hover { background: var(--pine-700); }
.sum-card { background: var(--sand); border: 1px solid var(--stone); border-radius: 14px; padding: 14px 16px; margin: 10px 0; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--stone); font-size: .86rem; }
.sum-row:last-of-type { border-bottom: none; }
.sum-row span { color: var(--muted); flex: none; }
.sum-row strong { color: var(--pine-800); text-align: right; font-weight: 600; }
.sum-match { margin-top: 10px; padding-top: 10px; border-top: 1.5px solid var(--gold-500); font-size: .86rem; }
.sum-match span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; margin-bottom: 3px; }
.sum-match strong { font-family: var(--serif); font-size: 1.1rem; color: var(--pine-800); display: block; }
.sum-match em { color: var(--muted); font-style: normal; font-size: .82rem; }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-0{margin-bottom:0}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { background: var(--stone); color: var(--pine-800); padding: 8px 18px; border-radius: 100px; font-size: .83rem; font-weight: 500; letter-spacing: .02em; }
.band-dark .pill, .band-green .pill { background: rgba(255,255,255,.1); color: var(--paper); border: 1px solid rgba(255,255,255,.12); }

/* ---------- Accessibilité / mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .page-hero .hero-bg, .cta-band .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { border-top: none; }
  .step + .step { border-left: none; }
  .step { border-top: 1px solid var(--stone); border-bottom: none; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(84vw, 350px); background: var(--pine-900); flex-direction: column; align-items: flex-start; justify-content: center; padding: 44px; gap: 28px; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: none; }
  .nav-links a { color: #fff !important; font-size: 1.35rem; font-family: var(--serif); }
  .burger { display: flex; z-index: 1100; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .lead { font-size: 1.08rem; }
  .quote { border-left: none; border-top: 1px solid var(--stone); padding: 22px 4px 0; }
  .chat-fab span:last-child { display: none; }
  .chat-fab { padding: 18px; }
}
