/* BM CONSULTING : feuille de style du site vitrine (v3, présentation par situations clients)
   Mise en page : grille asymétrique 5/7, filets fins plutôt que cartes, un seul élément bleu fort par page.
   Charte : Poppins, bleu #341FFF. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --ink: #14132B;       /* texte principal */
  --muted: #5B5A72;     /* texte secondaire */
  --brand: #341FFF;     /* bleu BM CONSULTING */
  --brand-dark: #2412D6;
  --wash: #F5F5F8;      /* fond très léger, utilisé avec parcimonie */
  --line: #E3E2EC;      /* filets */
  --line-strong: #14132B;
  --paper: #FFFFFF;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-small: .875rem;
  --t-body: 1.03rem;
  --t-lead: clamp(1.1rem, 1.6vw, 1.28rem);
  --t-situation: clamp(1.25rem, 2.2vw, 1.6rem);
  --t-h2: clamp(1.6rem, 3vw, 2.2rem);
  --t-h1: clamp(2.1rem, 5.2vw, 3.7rem);
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.7; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--t-h1); letter-spacing: -.025em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: 1.1rem; letter-spacing: -.005em; }
p { margin: 0; max-width: 64ch; }
ul, ol { margin: 0; padding-left: 1.15em; }
li { margin-block: .35em; }
li::marker { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 14px; z-index: 20; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; padding-block: 20px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; font-size: var(--t-small); }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; }
.nav .lang { color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }

/* Blocs génériques */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.wash { background: var(--wash); }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 44px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.split > * { min-width: 0; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--ink); font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.eyebrow { font-size: var(--t-small); color: var(--muted); }

/* Ouverture */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .split { margin-top: 36px; align-items: end; }
.page-hero { padding-block: clamp(48px, 7vw, 92px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 22ch; margin-top: 12px; }
.page-hero .lead { margin-top: 20px; }

/* Liens d'action */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn { display: inline-block; font: inherit; font-size: var(--t-small); font-weight: 600; padding: 13px 22px; border-radius: 2px; text-decoration: none; border: 1.5px solid var(--brand); cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--wash); }
.link-more { font-size: var(--t-small); font-weight: 600; text-decoration: underline; }

/* Liste des situations (accueil) */
.situations { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--line-strong); }
.situations li { margin: 0; border-bottom: 1px solid var(--line); }
.situations a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 6px 40px; align-items: baseline; padding-block: 22px; color: var(--ink); text-decoration: none; }
.situations .q { font-size: var(--t-situation); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.situations .r { font-size: var(--t-small); color: var(--muted); }
.situations a:hover .q, .situations a:focus-visible .q { color: var(--brand); }
.situations a:hover .r { color: var(--ink); }

/* Situation détaillée */
.situation { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; padding-block: 52px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.situation:first-child { border-top: 0; padding-top: 0; }
.situation > * { min-width: 0; }
.situation .q { font-size: var(--t-situation); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.situation .offer { margin-top: 18px; font-size: var(--t-small); color: var(--muted); }
.situation .offer strong { color: var(--ink); font-weight: 600; }
.situation .body { display: grid; gap: 16px; }
.situation h3 { font-size: var(--t-small); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.situation ul { color: var(--ink); }
.defs { display: grid; gap: 0; margin: 4px 0 0; border-top: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: var(--muted); }

/* Références */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--line-strong); }
.rows li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 6px 40px; padding-block: 22px; margin: 0; border-bottom: 1px solid var(--line); }
.rows .k { font-weight: 600; }
.rows .v { display: grid; gap: 6px; }
.rows .v strong { font-weight: 500; font-size: 1.08rem; }
.rows .v span { color: var(--muted); }

/* Étapes d'orientation (séquence réelle) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; padding-top: 16px; border-top: 1.5px solid var(--line-strong); }
.steps .n { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); font-size: .96rem; }

/* Mention et note */
.note { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; max-width: 64ch; }

/* Appel de fin de page */
.closing { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.closing .split { align-items: end; }
.closing h2 { max-width: 20ch; }

/* Parcours */
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); margin: 0; }
.timeline .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--t-small); }
.timeline .what { font-size: .96rem; color: var(--muted); }
.timeline .what strong { color: var(--ink); font-weight: 600; }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 64px; align-items: start; }
.form-grid > * { min-width: 0; }
form { display: grid; gap: 20px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
label { display: grid; gap: 6px; font-size: var(--t-small); font-weight: 500; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid #C9C8D6; border-radius: 2px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
textarea { min-height: 160px; resize: vertical; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400; color: var(--muted); }
.check input { width: 17px; height: 17px; margin-top: 4px; padding: 0; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { border-top: 1.5px solid var(--line-strong); padding-top: 20px; display: grid; gap: 18px; }
.contact-card h2 { font-size: 1.1rem; }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-size: var(--t-small); color: var(--muted); }
.contact-card dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }

/* Textes juridiques */
.legal { display: grid; gap: 30px; max-width: 70ch; }
.legal section { display: grid; gap: 10px; }
.legal h2 { font-size: 1.15rem; }
.legal p, .legal li { color: var(--muted); }

/* Pied de page */
.site-footer { border-top: 1.5px solid var(--line-strong); font-size: var(--t-small); color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 28px 48px; padding-block: 44px 28px; }
.site-footer img { height: 26px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font-size: var(--t-small); font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-block: .2em; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .78rem; max-width: none; }

@media (max-width: 900px) {
  .split, .situation, .form-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .situations a, .rows li, .defs > div, .timeline li { grid-template-columns: minmax(0, 1fr); }
  .steps, .row-2 { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 4px 18px; }
  .nav .lang { padding-left: 0; border-left: 0; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Photographies : bandeau pleine largeur sous l'ouverture de page */
.photo { margin: 0; width: 100%; }
.photo img { width: 100%; max-width: 100%; height: clamp(220px, 38vw, 520px); object-fit: cover; }
.hero + .photo img { height: clamp(240px, 44vw, 600px); }
