/* ════════════════════════════════════════════════════════════════════
   Cabinet Maître Anne-Sophie PETIT — Design System
   Reconstruction LMD Site Intelligence Engine.
   Objectifs : premium & crédible, ultra-rapide (0 police externe, 0 dépendance).
   Palette : nuit (navy) + or/laiton + ivoire. Titres serif, corps sans-serif.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --navy-950: #0b1733;
  --navy-900: #0f1e3d;
  --navy-800: #16294f;
  --navy-700: #1f3865;
  --gold-600: #b8893b;
  --gold-500: #c79a4e;
  --gold-400: #d8b06a;
  --gold-100: #f3e7cf;
  --ivory: #fbf9f4;
  --paper: #ffffff;
  --ink: #1c2436;
  --muted: #5a6478;
  --line: #e7e2d6;
  --line-soft: #eee9df;
  --ok: #1f7a52;

  --serif: Georgia, "Times New Roman", "Iowan Old Style", Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 30, 61, .06), 0 6px 18px rgba(15, 30, 61, .06);
  --shadow-md: 0 8px 30px rgba(15, 30, 61, .12);
  --shadow-gold: 0 10px 30px rgba(184, 137, 59, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy-800); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--paper { background: var(--paper); }
.section--ivory { background: var(--ivory); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.center .kicker::after { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }

/* ── Boutons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 650; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #fff; box-shadow: var(--shadow-gold); }
.btn--gold:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(184, 137, 59, .42); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-600); background: #fff; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 244, .9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; color: var(--navy-900); }
.brand__sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 14px; font-size: .96rem; font-weight: 550; color: var(--navy-800); border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-600); background: rgba(184,137,59,.08); }
.main-nav a[aria-current="page"] { font-weight: 700; }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 11px 14px; border-radius: 9px; font-weight: 550; }
.dropdown a:hover { background: var(--ivory); }

.header-cta { margin-left: 8px; flex-shrink: 0; }
.mobile-only-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 46px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900); position: relative; transition: .25s var(--ease); }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-950); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(199,154,78,.30), transparent 60%),
    radial-gradient(820px 520px at 8% 108%, rgba(31,56,101,.85), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.hero h1 { color: #fff; }
.hero .kicker { color: var(--gold-400); }
.hero-sub { font-size: 1.2rem; color: #cdd6ea; max-width: 54ch; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .92rem; color: #d7deef; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--gold-400); }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h2 { color: #fff; font-size: 1.3rem; }
.hero-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-rating .score { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold-400); }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-400); line-height: 1; }
.stars svg { width: 1.05em; height: 1.05em; }
.hero-rating .stars { font-size: 1.4rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; gap: 11px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); color: #e7ecf7; font-size: .96rem; }
.hero-card li:first-child { border-top: 0; }
.hero-card li svg { color: var(--gold-400); flex-shrink: 0; margin-top: 3px; }

/* ── Bandeau confiance ─────────────────────────────────────────────── */
.trustbar { background: var(--navy-900); color: #fff; }
.trustbar .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px; padding: 26px 22px; text-align: center; }
.trustbar .stat .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold-400); display: block; }
.trustbar .stat .lab { font-size: .86rem; color: #c2cbe0; }

/* ── Grilles & cartes ──────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-100), #fff); border: 1px solid var(--line); color: var(--gold-600); margin-bottom: 16px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
.card__link { font-weight: 650; font-size: .95rem; color: var(--gold-600); display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }

/* Étapes process */
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step__num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold-400); line-height: 1; }

/* ── Article (corps de texte service / blog / légal) ───────────────── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose .check-list { list-style: none; padding-left: 0; }
.prose .check-list li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.prose .check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-600); font-weight: 700; background: var(--gold-100); width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }

.layout-2col { display: grid; grid-template-columns: 1fr 332px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
.sidebar .card { padding: 24px; }
.sidebar h3 { font-size: 1.1rem; }
.sidebar .navy-card { background: var(--navy-900); color: #fff; border: 0; }
.sidebar .navy-card h3 { color: #fff; }
.sidebar .navy-card p { color: #c7d0e4; }

/* ── FAQ (accordéon + FAQPage) ─────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--serif); font-weight: 700; font-size: 1.08rem; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--gold-600); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-item .faq-body p { margin: 0; }

/* ── Avis clients ──────────────────────────────────────────────────── */
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .stars { font-size: 1.05rem; margin-bottom: 12px; }
.review p { font-size: 1rem; color: var(--ink); font-style: italic; }
.review .who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.review .who strong { display: block; color: var(--navy-900); font-family: var(--serif); }
.review .who span { font-size: .88rem; color: var(--muted); }

/* ── Bandeau CTA ───────────────────────────────────────────────────── */
.cta-band { position: relative; background: var(--navy-950); color: #fff; border-radius: 24px; padding: clamp(36px, 5vw, 60px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 88% 0%, rgba(199,154,78,.32), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd6ea; max-width: 56ch; }

/* ── Coordonnées / contact ─────────────────────────────────────────── */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; flex-shrink: 0; }
.info-list .lab { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-list .val { font-weight: 600; color: var(--navy-900); }
.info-list a.val:hover { color: var(--gold-600); }

.map-frame { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); display: block; filter: grayscale(.15); }

/* ── Formulaire ────────────────────────────────────────────────────── */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--ivory); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(199,154,78,.18); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ── Breadcrumb ────────────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 16px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-600); }

/* ── Page header (interne) ─────────────────────────────────────────── */
.page-hero { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 85% -20%, rgba(199,154,78,.28), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-800)); }
.page-hero .container { position: relative; z-index: 1; padding: clamp(40px, 6vw, 72px) 22px; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .kicker { color: var(--gold-400); }
.page-hero .lead { color: #cdd6ea; }
.page-hero .breadcrumb { color: #aeb9d4; }
.page-hero .breadcrumb a { color: #cdd6ea; }
.page-hero .breadcrumb li::after { color: rgba(255,255,255,.3); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: #c2cbe0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .foot-h { color: #fff; font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c2cbe0; font-size: .94rem; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .92rem; color: #9aa6c2; margin-top: 14px; max-width: 34ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.footer-contact svg { color: var(--gold-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; color: #8d99b6; }
.footer-bottom a { color: #8d99b6; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; }

/* ── Barre d'appel mobile (conversion) ─────────────────────────────── */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.mobile-cta .btn { padding: 13px; font-size: .95rem; }

/* ── Notice preview ────────────────────────────────────────────────── */
.preview-flag { background: var(--gold-100); color: var(--gold-600); text-align: center; font-size: .78rem; padding: 6px 12px; font-weight: 600; letter-spacing: .02em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 76px 0 0; background: var(--ivory); margin: 0; padding: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); border-top: 1px solid var(--line); }
  body.nav-open .main-nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--gold-400); border-radius: 0; margin: 2px 0 6px 12px; min-width: 0; padding: 0; background: transparent; }
  .dropdown a { padding: 11px 12px; }
  .has-dropdown > a::after { display: none; }
  .main-nav .mobile-only-cta { display: block; margin-top: 14px; }
  .mobile-cta { display: grid; }
  .site-footer { padding-bottom: 86px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .trustbar .container { gap: 22px 14px; }
  .trustbar .stat { flex: 1 1 40%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
