/* Beauclair & Co — site vitrine. Jetons du design system de la marque (thème clair). */
:root {
  --papier: #FFFFFF;
  --calque: #EEF2EF;
  --encre: #15201C;
  --encre-douce: #4F5E57;
  --vert: #1E4A3D;
  --foret: #12302A;
  --sauge: #B9CEC2;
  --filet: #D3DCD6;
  --filet-fort: #7C8E86;
  --sur-foret-doux: #C9D8D0;

  --f-titre: "Jost", Futura, "Century Gothic", sans-serif;
  --f-texte: "Libre Franklin", "Franklin Gothic Book", Arial, sans-serif;
  --f-amp: "Libre Baskerville", Baskerville, Georgia, serif;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 104px;
  --largeur: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 17px/1.65 var(--f-texte);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--vert); }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; }

.wrap {
  max-width: calc(var(--largeur) + 2 * 32px); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* ---------- typographie ---------- */
h1, h2, h3 { font-family: var(--f-titre); font-weight: 500; color: var(--encre); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.17; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
.amp { font-family: var(--f-amp); font-weight: 700; }
.chapo { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--encre-douce); max-width: 40em; }
.texte { max-width: 38em; }
.texte p + p { margin-top: var(--s3); }
.source { font-size: 13px; line-height: 1.5; color: var(--encre-douce); }

.surtitre {
  display: flex; align-items: flex-start; gap: var(--s2);
  font: 600 12px/16px var(--f-titre); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--vert); margin: 0 0 var(--s3);
}
.surtitre::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; margin-top: 4px; }

/* ---------- en-tête ---------- */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--papier); z-index: 21; }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }
.entete .logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav a { font: 500 15px/1 var(--f-titre); color: var(--encre); text-decoration: none; padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--filet-fort); }
.nav a[aria-current="page"] { border-bottom-color: var(--vert); color: var(--vert); }
.nav .btn { padding: 0 var(--s4); border-bottom-width: 2px; }
.menu { display: none; }
@media (max-width: 899px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font: 500 15px/1 var(--f-titre); color: var(--encre); padding: 12px 0 12px 14px; display: flex; align-items: center; gap: 10px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--vert); }
  .menu[open] summary::before { background: var(--vert); }
  .menu .panneau { position: absolute; right: 0; top: 100%; width: min(86vw, 320px); background: var(--papier); border: 1px solid var(--filet-fort); display: flex; flex-direction: column; padding: var(--s2) 0; }
  .menu .panneau a { padding: 12px var(--s4); font: 500 16px/1.2 var(--f-titre); color: var(--encre); text-decoration: none; }
  .menu .panneau a[aria-current="page"] { color: var(--vert); }
  .menu .panneau a.btn { margin: var(--s2) var(--s4) var(--s3); justify-content: center; color: var(--papier); }
}

/* ---------- boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 var(--s4);
  border: 2px solid var(--vert); background: var(--vert); color: var(--papier) !important;
  font: 500 15px/1 var(--f-titre); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--foret); border-color: var(--foret); }
.btn--trait { background: transparent; color: var(--vert) !important; }
.btn--trait:hover { background: var(--calque); border-color: var(--vert); }
.btn--clair { background: var(--papier); border-color: var(--papier); color: var(--foret) !important; }
.btn--clair:hover { background: var(--calque); border-color: var(--calque); }
.lien { font: 500 16px/1.4 var(--f-titre); color: var(--vert); text-decoration: none; border-bottom: 1px solid var(--vert); padding-bottom: 2px; }
.lien:hover { border-bottom-width: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; margin-top: var(--s5); }

/* ---------- sections ---------- */
.section { padding-block: var(--s6); }
@media (min-width: 900px) { .section { padding-block: 88px; } }
.section + .section { border-top: 1px solid var(--filet); }
.section--calque { background: var(--calque); border-top: none !important; }
.section--calque + .section { border-top: none; }
.entete-section { max-width: 48em; margin-bottom: var(--s5); }
.entete-section .chapo { margin-top: var(--s3); }

/* ---------- héros ---------- */
.heros { padding-block: var(--s6) var(--s6); overflow: hidden; }
.heros .wrap { display: grid; gap: var(--s5); align-items: center; }
.heros h1 { max-width: 15em; }
.heros .chapo { margin-top: var(--s4); }
@media (min-width: 1000px) {
  .heros { padding-block: 96px 104px; }
  .heros .wrap { grid-template-columns: minmax(0, 1fr) 336px; gap: var(--s6); }
}
.heros--page { padding-block: var(--s6) var(--s5); border-bottom: 1px solid var(--filet); }
@media (min-width: 1000px) { .heros--page { padding-block: 88px 72px; } }
.heros--page .wrap { display: block; }
.heros--page h1 { font-size: clamp(32px, 4.4vw, 50px); max-width: 17em; }

/* ---------- chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--vert); }
.chiffre { padding: var(--s4) var(--s4) var(--s3) 0; display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
@media (min-width: 700px) { .chiffre + .chiffre { padding-left: var(--s4); border-left: 1px solid var(--filet); } }
@media (max-width: 699px) { .chiffre + .chiffre { border-top: 1px solid var(--filet); } }
.chiffre__valeur { font: 500 44px/1.05 var(--f-titre); color: var(--encre); font-variant-numeric: lining-nums; }
.chiffre__unite { font-size: 22px; color: var(--encre-douce); }
.chiffre__libelle { font-size: 15px; line-height: 1.45; color: var(--encre-douce); max-width: 18em; }

/* ---------- colonnes ---------- */
.colonnes { display: grid; gap: var(--s5); }
@media (min-width: 800px) { .colonnes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }
@media (min-width: 900px) { .colonnes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bloc d'offre : filet vert au-dessus, sans carte. */
.offre { border-top: 2px solid var(--vert); padding-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.offre h3 { font-size: 26px; }
.offre p { color: var(--encre); }
.offre .lien { align-self: flex-start; margin-top: var(--s2); }
.offre ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }

/* Liste à puces carrées */
.liste { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s4); }
.liste li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.liste li::before { content: ""; width: 10px; height: 10px; background: var(--vert); margin-top: 8px; }
.liste strong { font-family: var(--f-titre); font-weight: 500; font-size: 18px; display: block; margin-bottom: 2px; color: var(--encre); }
.liste--serree { gap: var(--s2); }
.liste--serree li::before { width: 8px; height: 8px; margin-top: 9px; }

/* Duo associé / méthode */
.duo { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; } .duo > div + div { border-left: 1px solid var(--filet); padding-left: var(--s5); } .duo > div:first-child { padding-right: var(--s5); } }
.duo h3 { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.duo h3::before { content: ""; width: 16px; height: 16px; flex: none; }
.duo .plein h3::before { background: var(--vert); }
.duo .ouvert h3::before { border: 2px solid var(--vert); }
.encadre { margin-top: var(--s5); border-top: 2px solid var(--vert); padding-top: var(--s4); font: 500 20px/1.45 var(--f-titre); max-width: 40em; }

/* ---------- étapes ---------- */
.etapes { display: grid; gap: var(--s4) var(--s2); list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .etapes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.etape { border-top: 2px solid var(--vert); padding-top: var(--s3); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.etape::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--vert); }
.etape__nom { font: 500 19px/1.3 var(--f-titre); }
.etape__duree { font: 600 12px/16px var(--f-titre); letter-spacing: 0.1em; text-transform: uppercase; color: var(--vert); }
.etape p { font-size: 15px; line-height: 1.55; }
.etape .role { margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--filet); font-size: 14px; color: var(--encre-douce); }
.etape .role b { font-weight: 600; color: var(--encre); display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- tableau ---------- */
.tableau-wrap { overflow-x: auto; }
.tableau { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 15px; line-height: 1.5; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 14px var(--s3); border-bottom: 1px solid var(--filet); }
.tableau th:first-child, .tableau td:first-child { padding-left: 0; }
.tableau thead th { background: var(--calque); font: 500 13px/1.3 var(--f-texte); color: var(--encre-douce); border-bottom: none; padding-top: 10px; padding-bottom: 10px; }
.tableau thead th:first-child { padding-left: var(--s3); }
.tableau tbody td:first-child { font-family: var(--f-titre); font-weight: 500; font-size: 17px; white-space: nowrap; }
.implication { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.implication i { width: 10px; height: 10px; border: 2px solid var(--vert); display: inline-block; }
.implication i.on { background: var(--vert); }
.implication span { margin-left: 6px; font-size: 14px; color: var(--encre-douce); }

/* ---------- références (tombstones) ---------- */
.tombstones { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tombstone { aspect-ratio: 1; border: 1px solid var(--filet-fort); padding: var(--s4); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); background: var(--papier); min-width: 0; }
.tombstone--marque { background: var(--foret); border-color: var(--foret); color: var(--papier); }
.tombstone__type { font: 600 11px/16px var(--f-titre); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vert); }
.tombstone--marque .tombstone__type { color: var(--sauge); }
.tombstone__cible { font: 500 19px/1.25 var(--f-titre); }
.tombstone__verbe { display: block; font-size: 14px; font-style: italic; color: var(--encre-douce); margin: 6px 0 4px; }
.tombstone--marque .tombstone__verbe { color: var(--sur-foret-doux); }
.tombstone__acq { font: 500 16px/1.3 var(--f-titre); }
.tombstone__pied { display: flex; justify-content: space-between; gap: var(--s2); border-top: 1px solid var(--filet); padding-top: var(--s2); font-size: 13px; color: var(--encre-douce); }
.tombstone--marque .tombstone__pied { border-top-color: #2B5446; color: var(--sur-foret-doux); }
@media (max-width: 520px) { .tombstone { aspect-ratio: auto; min-height: 220px; } }
.note-refs { margin-top: var(--s4); }

/* ---------- personne ---------- */
.personne { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .personne { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s6); } }
.monogramme { aspect-ratio: 1; max-width: 280px; background: var(--foret); color: var(--papier); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s4); }
.monogramme b { font: 500 64px/1 var(--f-titre); letter-spacing: -0.02em; }
.monogramme span { font-size: 14px; color: var(--sur-foret-doux); margin-top: var(--s2); }
.parcours { list-style: none; margin: var(--s5) 0 0; padding: 0; border-top: 2px solid var(--vert); }
.parcours li { display: grid; grid-template-columns: 1fr; gap: 2px var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--filet); }
@media (min-width: 640px) { .parcours li { grid-template-columns: 150px minmax(0, 1fr); } }
.parcours time, .parcours .periode { font: 500 15px/1.6 var(--f-titre); color: var(--vert); font-variant-numeric: tabular-nums; }

/* ---------- contact ---------- */
.contact { display: grid; gap: var(--s4); max-width: 40em; }
.contact dl { margin: 0; display: grid; gap: var(--s3); }
.contact dt { font: 600 12px/16px var(--f-titre); letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-douce); }
.contact dd { margin: 4px 0 0; font: 500 22px/1.35 var(--f-titre); }
.contact dd a { color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--filet-fort); }
.contact dd a:hover { border-bottom-color: var(--vert); }

/* ---------- bandeau d'appel ---------- */
.appel { background: var(--foret); color: var(--papier); padding-block: var(--s6); }
@media (min-width: 900px) { .appel { padding-block: 88px; } }
.appel .wrap { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .appel .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s6); } }
.appel h2 { color: var(--papier); max-width: 18em; }
.appel p { color: var(--sur-foret-doux); margin-top: var(--s3); max-width: 38em; }
.appel .surtitre { color: var(--sauge); }

/* ---------- pied de page ---------- */
.pied { background: var(--foret); color: var(--sur-foret-doux); border-top: 1px solid #2B5446; padding-block: var(--s5) var(--s5); font-size: 14px; }
.pied .wrap { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .pied .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s5); } }
.pied img { height: 36px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.pied a { color: var(--papier); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .legal { color: var(--sur-foret-doux); }

/* ---------- mentions légales ---------- */
.legal-texte { max-width: 44em; }
.legal-texte h2 { font-size: 22px; margin: var(--s5) 0 var(--s2); }
.legal-texte p + p { margin-top: var(--s2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Illustration gravée (une par page au plus), cadrage carré */
.illustration { margin: 0; width: 100%; max-width: 440px; justify-self: end; }
.illustration img { width: 100%; height: auto; aspect-ratio: 1; }
@media (min-width: 1000px) { .heros .wrap { grid-template-columns: minmax(0, 1fr) 440px; } }
@media (max-width: 999px) { .illustration { justify-self: start; max-width: 360px; } }

/* En-tête de page illustré */
.heros--illustre .wrap { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1000px) { .heros--illustre .wrap { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); } }
.heros--illustre .illustration { max-width: 380px; }
@media (max-width: 999px) { .heros--illustre .illustration { max-width: 300px; } }

/* Portrait de l'associé : carré, sans arrondi ni ombre */
.portrait { margin: 0; max-width: 280px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { margin-top: var(--s2); font-size: 13px; color: var(--encre-douce); border-top: 2px solid var(--vert); padding-top: var(--s2); }
