/* =========================================================================
   Basalte Consulting — style.css
   Registre : premium mineral. Inspiration premium immobilier / agence (Webflow),
   palette minerale de la charte v3, typographie Manrope + Inter.
   ========================================================================= */

/* ============================= TOKENS ============================= */
:root {
  --basalte: #1A1D1F;
  --basalte-deep: #0F1112;
  --scorie: #3F3F3F;
  --scorie-light: #5F5E5A;
  --cendre: #A8A6A1;
  --cendre-dark: #888780;
  --cendre-light: #D3D1C7;
  --calcaire: #F4F1EC;
  --calcaire-light: #F8F7F1;
  --calcaire-pure: #FFFFFF;
  --ferreux: #5C4A3D;
  --ferreux-dark: #3F3327;
  --ferreux-light: #8A7866;
  --tropical-green: #2E3A30;
  --tropical-water: #5E6B6E;

  --bg: var(--calcaire);
  --ink: var(--basalte);
  --ink-soft: var(--scorie);
  --ink-muted: var(--scorie-light);
  --accent: var(--ferreux);
  --accent-hover: var(--ferreux-dark);
  --line: #E5E1D8;
  --line-dark: #2A2D2F;

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1240px;
  --maxw-narrow: 780px;
  --pad-x: 24px;
  --section-y: 112px;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --pill: 999px;

  --shadow-sm: 0 2px 10px -4px rgba(26,29,31,0.12);
  --shadow-md: 0 22px 50px -28px rgba(26,29,31,0.40);
  --shadow-lg: 0 40px 90px -40px rgba(26,29,31,0.45);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================= RESET ============================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--basalte); color: var(--calcaire);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 10px 0; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ============================= LAYOUT ============================= */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section-tight { padding: 76px 0; }
.section-dark { background: var(--basalte); color: var(--calcaire); }
.section-deep { background: var(--basalte-deep); color: var(--calcaire); }

/* ============================= TYPOGRAPHIE ============================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--calcaire-pure);
  border: 1px solid var(--line);
  padding: 7px 15px 7px 13px;
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.section-dark .eyebrow {
  color: var(--ferreux-light);
  background: rgba(255,255,255,0.04);
  border-color: var(--line-dark);
  box-shadow: none;
}
.section-dark .eyebrow::before { background: var(--ferreux-light); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; }
.display { font-size: clamp(46px, 7.4vw, 92px); letter-spacing: -0.045em; line-height: 1.0; }
h1, .h1 { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -0.04em; line-height: 1.03; }
h2, .h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h3, .h3 { font-size: clamp(21px, 2.5vw, 29px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
/* marge basse de base : evite que le titre colle au paragraphe hors .prose
   (les contextes carte/profil/section-head/cta/prose la redefinissent) */
h2 { margin-bottom: 18px; }
h3 { margin-bottom: 12px; }

.lead {
  font-family: var(--font-body);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink-soft);
}
.section-dark .lead { color: var(--cendre-light); }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-muted); }
.section-dark .muted { color: var(--cendre); }
strong, .strong { font-weight: 600; }
.caption { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-muted); }
.guide-byline { font-size: 14px; color: var(--ink-muted); margin-top: 22px; }
.guide-byline strong { color: var(--ink); font-weight: 600; }

.prose p { margin-bottom: 20px; max-width: 68ch; }
.prose h1 { margin: 0 0 12px; }
.prose h2 { margin: 64px 0 20px; }
.prose h3 { margin: 40px 0 14px; }
/* rythme unifie : l'eyebrow porte deja l'espace, le 1er titre ne rajoute rien au-dessus */
.prose > .eyebrow + h1, .prose > .eyebrow + h2, .prose > .eyebrow + h3 { margin-top: 0; }
.prose ul.list { margin: 0 0 22px; max-width: 68ch; }
.prose ul.list li { position: relative; padding-left: 26px; margin-bottom: 12px; line-height: 1.55; }
.prose ul.list li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 50%;
}
.prose a.inline-link { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--cendre-light); transition: border-color 0.2s var(--ease); }
.prose a.inline-link:hover { border-color: var(--accent); }

/* ============================= HEADER / NAV ============================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 241, 236, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(244, 241, 236, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(26,29,31,0.4);
}
.nav { display: flex; align-items: center; height: 76px; transition: height 0.3s var(--ease); }
.logo { display: inline-flex; flex-direction: column; line-height: 1; margin-right: 52px; }
.logo .logo-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.logo .logo-word + .logo-word { margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  padding: 9px 9px; border-radius: var(--pill); transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(26,29,31,0.05); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
/* Bouton CTA du menu : texte blanc lisible (override de la regle generique .nav-links a) */
.nav-links a.btn-primary { color: var(--calcaire-pure); background: var(--accent); box-shadow: 0 10px 24px -14px rgba(92,74,61,0.8); }
.nav-links a.btn-primary:hover { color: var(--calcaire-pure); background: var(--accent-hover); }
.nav-login { margin-left: auto; }
.nav-cta { padding-left: 8px; }
.nav-links a.btn-ghost { color: var(--ink); border: 1px solid var(--cendre); background: rgba(255,255,255,0.5); }
.nav-links a.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.85); }
.menu-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; }
.menu-toggle span { display: block; width: 22px; height: 1.6px; background: var(--ink); position: relative; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.6px; background: var(--ink); transition: transform 0.25s var(--ease);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================= BUTTONS ============================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: var(--pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.18s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--calcaire-pure); box-shadow: 0 14px 30px -16px rgba(92,74,61,0.7); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 20px 38px -18px rgba(92,74,61,0.8); }
.btn-ghost { color: var(--ink); border: 1px solid var(--cendre); background: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--ink); background: var(--calcaire-pure); transform: translateY(-2px); }
.section-dark .btn-ghost { color: var(--calcaire); border-color: var(--scorie-light); background: rgba(255,255,255,0.03); }
.section-dark .btn-ghost:hover { border-color: var(--cendre); background: rgba(255,255,255,0.07); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--accent); }
.text-link .arrow { transition: transform 0.2s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ============================= HERO ============================= */
.hero { padding: clamp(72px, 12vh, 150px) 0 clamp(64px, 9vh, 110px); }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 15ch; margin-bottom: 28px; }
.hero .lead { max-width: 58ch; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.page-hero { padding: clamp(56px, 8vh, 104px) 0 0; }
.page-hero h1 { max-width: 19ch; }
.page-hero .lead { max-width: 62ch; }
.hero-banner { margin-top: 52px; }

.hero-meta { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 48px; }
.hero-meta .stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.hero-meta .stat .lbl { font-size: 13px; color: var(--ink-muted); margin-top: 8px; max-width: 24ch; }
/* bandeau chiffres accueil : centre */
.section-tight .hero-meta { justify-content: center; text-align: center; }
.section-tight .hero-meta .stat .lbl { margin-left: auto; margin-right: auto; }

/* ============================= SECTION HEAD ============================= */
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { margin-left: auto; margin-right: auto; }

/* ============================= GRID / CARDS ============================= */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--calcaire-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cendre-light); }
.card .card-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 18px; }
.card > .icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--calcaire); color: var(--ink); margin-bottom: 22px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; }
.card .text-link { margin-top: auto; }
.section-dark .card { background: rgba(255,255,255,0.025); border-color: var(--line-dark); box-shadow: none; }
.section-dark .card:hover { border-color: var(--scorie); }
.section-dark .card h3 { color: var(--calcaire); }
.section-dark .card p { color: var(--cendre); }
.section-dark .card > .icon { background: rgba(255,255,255,0.05); color: var(--cendre-light); }

/* carte avec image en tete */
.card-media { padding: 0; overflow: hidden; }
.card-media > .media-slot, .card-media > img { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; width: 100%; }
.card-media > img.media-img { border: 0; box-shadow: none; border-radius: 0; }
.card-media .card-body { padding: 30px 32px; display: flex; flex-direction: column; flex: 1; }
.card-media .card-body .text-link { margin-top: auto; padding-top: 16px; }
.card-media .card-body .btn { margin-top: auto; align-self: stretch; justify-content: center; }
.card-media .icon {
  width: 48px; height: 48px; border-radius: 13px; margin: -54px 0 18px 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--calcaire-pure);
  position: relative; z-index: 2; box-shadow: var(--shadow-sm);
}
.icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.card-media .icon svg { width: 22px; height: 22px; }

/* ============================= SPLIT ============================= */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split .media { background: var(--basalte); border-radius: var(--radius-lg); aspect-ratio: 4/3; overflow: hidden; }
.hero-split { align-items: center; }
.hero-split .media-slot { min-height: 360px; }

/* ============================= VALUE LIST ============================= */
.value-list { display: grid; gap: 2px; }
.value-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row .vnum { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); padding-top: 4px; }
.value-row h3 { margin-bottom: 8px; }
.value-row p { color: var(--ink-soft); font-size: 16px; max-width: 64ch; }
.section-dark .value-row { border-color: var(--line-dark); }
.section-dark .value-row p { color: var(--cendre); }

/* ============================= STEPS ============================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { background: var(--calcaire-pure); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.step .step-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--accent); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.step h4 { margin-bottom: 8px; font-size: 17px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.section-dark .step { background: rgba(255,255,255,0.025); border-color: var(--line-dark); box-shadow: none; }
.section-dark .step .step-num { border-color: var(--line-dark); }
.section-dark .step p { color: var(--cendre); }

/* ============================= TABLE ============================= */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--calcaire-pure); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
table.data th, table.data td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data thead th { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--calcaire-light); }
table.data tbody td { color: var(--ink-soft); }
table.data tbody td:first-child { color: var(--ink); font-weight: 500; }

/* ============================= FAQ ============================= */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2vw, 21px); letter-spacing: -0.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-muted); border-bottom: 1.5px solid var(--ink-muted);
  transform: translateY(-65%) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq .faq-body { padding: 0 44px 26px 0; }
.faq .faq-body p { color: var(--ink-soft); font-size: 16px; max-width: 70ch; }

/* ============================= CTA BAND ============================= */
.cta-band { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-band .eyebrow { margin-bottom: 22px; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 20px; }
.cta-band .lead { max-width: 54ch; margin: 0 auto 38px; }
.cta-band .hero-actions { justify-content: center; }

/* ============================= BREADCRUMB ============================= */
.breadcrumb { padding: 24px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-muted); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--cendre); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li[aria-current] { color: var(--ink-soft); }

/* ============================= FORM ============================= */
.form-card { background: var(--calcaire-pure); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--calcaire-light); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--cendre-dark); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--calcaire-pure); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13px; color: var(--ink-muted); margin-top: 16px; }
.form-success { background: #EAF0EA; color: var(--tropical-green); padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 20px; }
.form-error { background: #F3E7E3; color: var(--ferreux-dark); padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 20px; }
.contact-aside .contact-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-aside .contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-aside .contact-item .lbl { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.contact-aside .contact-item a, .contact-aside .contact-item p { font-size: 17px; font-weight: 500; color: var(--ink); }

/* ============================= PROFILE / PORTRAITS ============================= */
.profile { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.profile .avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--basalte); color: var(--calcaire); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; }
.profile h3 { margin-bottom: 4px; }
.profile .role { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.profile p { color: var(--ink-soft); font-size: 16px; max-width: 64ch; }

/* ============================= MEDIA SLOTS ============================= */
.media-slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--calcaire-light) 0%, #EBE6DC 100%);
  border: 1px dashed var(--cendre); border-radius: var(--radius-lg); overflow: hidden; margin: 0; color: var(--ink-muted);
}
.media-slot::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 75% 12%, rgba(92,74,61,0.07), transparent 60%),
              radial-gradient(50% 60% at 12% 92%, rgba(26,29,31,0.06), transparent 60%);
  pointer-events: none;
}
.media-slot .media-tag { position: relative; z-index: 1; text-align: center; font-size: 13px; letter-spacing: 0.01em; line-height: 1.5; padding: 16px 22px; max-width: 36ch; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.media-slot .media-tag svg { width: 28px; height: 28px; stroke: var(--cendre-dark); stroke-width: 1.5; fill: none; margin-bottom: 8px; }
.media-slot .media-tag b { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ferreux-light); }
.media-slot .media-fmt { font-size: 12px; color: var(--cendre-dark); margin-top: 2px; }
.ratio-16x9 { aspect-ratio: 16/9; } .ratio-4x3 { aspect-ratio: 4/3; } .ratio-3x2 { aspect-ratio: 3/2; }
.ratio-1x1 { aspect-ratio: 1/1; } .ratio-3x4 { aspect-ratio: 3/4; } .ratio-banner { aspect-ratio: 1600/560; }
.section-dark .media-slot { background: linear-gradient(135deg, #23272b 0%, #15181a 100%); border-color: var(--scorie); color: var(--cendre); }
.section-dark .media-slot .media-tag svg { stroke: var(--cendre); }
/* vraie image occupant un emplacement media (recadrage cover, coins arrondis) */
.media-img { display: block; width: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hero-split .media-img { min-height: 360px; }

/* ============================= REASSURANCE ============================= */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.trust-item { background: var(--calcaire-pure); padding: 34px 28px; }
.trust-item .ti-ico { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--calcaire); color: var(--accent); margin-bottom: 18px; }
.trust-item .ti-ico svg { width: 24px; height: 24px; }
.trust-item h4 { font-size: 16px; margin-bottom: 7px; }
.trust-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.section-dark .trust-grid { background: var(--line-dark); border-color: var(--line-dark); box-shadow: none; }
.section-dark .trust-item { background: #1f2326; }
.section-dark .trust-item .ti-ico { background: rgba(255,255,255,0.05); color: var(--ferreux-light); }
.section-dark .trust-item h4 { color: var(--calcaire); }
.section-dark .trust-item p { color: var(--cendre); }

/* ============================= PARTENAIRES (strip) ============================= */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.partner-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: var(--calcaire-pure); border: 1px solid var(--line); border-radius: var(--pill);
  padding: 11px 20px; box-shadow: var(--shadow-sm);
}
.partner-chip svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 1.5; fill: none; }
.section-dark .partner-chip { background: rgba(255,255,255,0.03); border-color: var(--line-dark); color: var(--cendre-light); box-shadow: none; }

/* ============================= FOOTER ============================= */
.site-footer { background: var(--basalte); color: var(--cendre); padding: 80px 0 36px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo-word { color: var(--calcaire); font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; display: block; line-height: 1.15; }
.footer-brand p { color: var(--cendre); font-size: 15px; max-width: 40ch; margin-top: 18px; line-height: 1.6; }
.footer-col h4 { color: var(--calcaire); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; font-family: var(--font-body); }
.footer-col h4 a { color: inherit; transition: color 0.2s var(--ease); }
.footer-col h4 a:hover { color: var(--ferreux-light); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 15px; color: var(--cendre); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--calcaire); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 32px; padding-top: 32px; font-size: 13px; color: var(--cendre-dark);
}
.footer-bottom .legal-line { max-width: 72ch; line-height: 1.7; }
.footer-bottom a { color: var(--cendre); transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--calcaire); }

/* ============================= EFFETS ============================= */
/* Zoom doux de l'image au survol des cartes a image */
.card-media .media-slot, .card-media img { transition: transform 0.7s var(--ease); will-change: transform; }
.card-media:hover .media-slot, .card-media:hover img { transform: scale(1.06); }

/* Entree en cascade des grilles (cartes + reassurance) */
.grid > .reveal:nth-child(2), .trust-grid > .reveal:nth-child(2) { transition-delay: 0.07s; }
.grid > .reveal:nth-child(3), .trust-grid > .reveal:nth-child(3) { transition-delay: 0.14s; }
.grid > .reveal:nth-child(4), .trust-grid > .reveal:nth-child(4) { transition-delay: 0.21s; }
.grid > .reveal:nth-child(5), .trust-grid > .reveal:nth-child(5) { transition-delay: 0.28s; }
.grid > .reveal:nth-child(6), .trust-grid > .reveal:nth-child(6) { transition-delay: 0.35s; }

/* Ken Burns lent sur le hero plein ecran (photo qui respire) */
.hero-full .hero-bg .media-slot, .hero-full .hero-bg img { animation: kenburns 22s ease-out both; transform-origin: 50% 55%; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.09); } }

/* Soulignement anime des liens de prose */
.prose a.inline-link { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; border-bottom: 0; transition: background-size 0.3s var(--ease); padding-bottom: 1px; }
.prose a.inline-link:hover { background-size: 100% 1px; }

/* Lien de pied de page : leger glissement */
.footer-col a, .footer-bottom a { display: inline-block; }

/* --- Header qui se condense au scroll --- */
.logo .logo-word { transition: font-size 0.3s var(--ease); }
.site-header.scrolled .nav { height: 60px; }
.site-header.scrolled .logo .logo-word { font-size: 17px; }

/* --- Hero : baseline en fondu sequence --- */
.hero-full .container .eyebrow.reveal { transition-delay: 0.05s; }
.hero-full .container h1.reveal { transition-delay: 0.16s; }
.hero-full .container .lead.reveal { transition-delay: 0.30s; }
.hero-full .container .hero-actions.reveal { transition-delay: 0.44s; }
.hero-full .container .hero-trust.reveal { transition-delay: 0.56s; }

/* --- Trait de soulignement qui se dessine sous les titres de section --- */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: ""; display: block; height: 2px; width: 0; margin-top: 16px;
  background: var(--accent); transition: width 0.6s var(--ease) 0.15s;
}
.section-head.in h2::after { width: 54px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-dark .section-head h2::after { background: var(--ferreux-light); }

/* --- Barre de progression de lecture --- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: var(--accent); transition: width 0.1s linear; pointer-events: none;
}

/* --- Bandeau partenaires en defilement continu (marquee) --- */
.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-group { display: flex; align-items: center; gap: 14px; padding-right: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================= ANIMATIONS ============================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================= RESPONSIVE ============================= */
/* Menu : bascule en hamburger des que la barre devient trop serree (libelles longs) */
@media (max-width: 1260px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--calcaire); border-bottom: 1px solid var(--line); padding: 14px var(--pad-x) 26px;
    transform: translateY(-135%); transition: transform 0.34s var(--ease);
    box-shadow: var(--shadow-md); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 15px 6px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav-links a:hover { background: none; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent); }
  .nav-login { margin-left: 0; }
  .nav-links .nav-login { margin: 18px 0 0; }
  .nav-links .nav-cta { margin: 10px 0 0; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-links { flex: none; }
}
@media (max-width: 1024px) {
  :root { --section-y: 88px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-split .media-slot { min-height: 300px; }
}
@media (max-width: 768px) {
  :root { --section-y: 68px; --pad-x: 20px; }
  body { font-size: 16px; }
  /* aere le passage titre / sous-titre -> paragraphe sur mobile */
  h2 { margin-bottom: 22px; }
  h3 { margin-bottom: 14px; }
  .prose h2 { margin-top: 46px; margin-bottom: 22px; }
  .prose h3 { margin-top: 32px; margin-bottom: 16px; }
  .section-head h2 { margin-bottom: 22px; }
  .lead { margin-bottom: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .hero-meta { gap: 28px 36px; }
  .hero-meta .stat .num { font-size: 34px; }
  .trust-grid { grid-template-columns: 1fr; }
  .ratio-banner { aspect-ratio: 3/2; }
  .profile { grid-template-columns: 1fr; gap: 16px; }
  .profile .avatar { width: 64px; height: 64px; font-size: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding: 56px 0 32px; }
}
@media (max-width: 440px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================= HERO PLEIN ECRAN ============================= */
.hero-full {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  color: var(--calcaire);
  overflow: hidden;
  background: var(--basalte-deep);
}
.hero-full .hero-bg { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero-full .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full .hero-bg .media-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0;
  background: linear-gradient(140deg, #2c3033 0%, #16191b 70%);
}
.hero-full .hero-bg .media-slot .media-tag { opacity: 0.5; }
.hero-full .hero-bg .media-slot .media-tag svg { stroke: var(--cendre); }
.hero-full::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,17,18,0.55) 0%, rgba(15,17,18,0.25) 38%, rgba(15,17,18,0.92) 100%);
}
.hero-full .container { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(96px, 11vh, 124px); }
.hero-full .eyebrow {
  margin-bottom: 26px;
  color: var(--calcaire);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.hero-full .eyebrow::before { background: var(--ferreux-light); }
.hero-full h1 { color: var(--calcaire); max-width: 16ch; margin-bottom: 26px; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero-full .lead { color: var(--cendre-light); max-width: 56ch; margin-bottom: 38px; }
.hero-full .hero-actions { margin-bottom: 26px; }
.hero-full .btn-ghost { color: var(--calcaire); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.hero-full .btn-ghost:hover { border-color: var(--calcaire); background: rgba(255,255,255,0.12); }

/* micro-reassurance sous les CTA */
.hero-trust, .cta-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--cendre-light);
}
.hero-trust span, .cta-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before, .cta-trust span::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--ferreux-light);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-10'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-10'/></svg>") center/contain no-repeat;
}
.cta-trust { justify-content: center; margin-top: 26px; color: var(--cendre); }

/* scroll cue */
.hero-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%); color: var(--cendre-light); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.8; }
.hero-cue::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--cendre-light), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: scaleY(0.3); transform-origin: top; } 50% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); transform-origin: top; } }

@media (max-width: 768px) {
  .hero-full { min-height: 88vh; }
  .hero-full .container { padding-top: 110px; }
  .hero-cue { display: none; }
}

/* ============================= JUSTIFICATION DU TEXTE ============================= */
p { text-align: justify; -webkit-hyphens: none; hyphens: none; }
/* on garde centré ce qui est conçu centré */
.cta-band p, .section-head.center p, [style*="text-align:center"] p { text-align: center; }
/* on garde aligné à gauche ce qui n'est pas du texte courant */
.footer-bottom p, .contact-aside .contact-item p, .form-note, .breadcrumb, .hero-trust, .cta-trust { text-align: left; }
.cta-trust { justify-content: center; }

/* ============================= PORTRAITS (vraies photos) ============================= */
.portrait-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; display: block; }
