/* =====================================================================
   Maître Quentin MAGHIA — Avocat à Toulouse
   Concept : bandeaux pleine largeur alternant lin / blanc / encre,
   photographie en noir et blanc, typographie géométrique (écho au logo).
   ===================================================================== */

@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Couleurs de la charte (site Canva d'origine) */
  --lin: #E9E2DA;        /* fond beige/lin */
  --lin-fonce: #DCD2C6;  /* lin soutenu, survols */
  --encre: #151414;      /* noir du logo */
  --encre-2: #3A3633;    /* texte secondaire */
  --gris: #6F675F;       /* légendes */
  --papier: #FFFFFF;
  --filet: #D2C7BA;      /* filets et bordures */
  --succes: #2F6B4F;
  --alerte: #8A5A12;
  --alerte-fond: #F6EEDC;

  /* Typographie */
  --f-titre: "Jost", "Futura", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --f-texte: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-xxl: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);

  --largeur: 1180px;
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));
  --gouttiere-d: max(16px, env(safe-area-inset-right, 0px));
  --rayon: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--t-xxl); font-weight: 300; }
h2 { font-size: var(--t-xl); font-weight: 300; }
h3 { font-size: var(--t-l); }
p { margin: 0; }
.prose { display: grid; gap: 1em; max-width: 68ch; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 0.45em; }
.prose h3 { margin-top: 0.6em; }

.sur-titre {
  font-family: var(--f-titre);
  font-weight: 500;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gris);
}
.ref { font-size: var(--t-xs); color: var(--gris); font-variant-numeric: tabular-nums; }

/* ---------- Bandeaux et conteneur ---------- */
.bande { padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); padding-block: clamp(56px, 8vw, 104px); }
.bande--lin { background: var(--lin); }
.bande--encre { background: var(--encre); color: var(--papier); }
.bande--encre .sur-titre { color: #BDB3A8; }
.bande--serre { padding-block: clamp(40px, 5vw, 64px); }
.conteneur { max-width: var(--largeur); margin-inline: auto; width: 100%; }
.entete-section { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.entete-section p { color: var(--encre-2); }
.bande--encre .entete-section p { color: #D9D1C8; }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--f-titre); font-weight: 500; font-size: var(--t-xs);
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--encre); border-radius: var(--rayon);
  background: var(--encre); color: var(--papier); cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--encre-2); text-decoration: none; }
.btn--ligne { background: transparent; color: var(--encre); }
.btn--ligne:hover { background: var(--encre); color: var(--papier); }
.bande--encre .btn { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.bande--encre .btn:hover { background: var(--lin); }
.bande--encre .btn--ligne { background: transparent; color: var(--papier); }
.bande--encre .btn--ligne:hover { background: var(--papier); color: var(--encre); }
.lien-fleche { font-family: var(--f-titre); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.lien-fleche::after { content: "→"; transition: transform .2s; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--papier); }
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--papier); border-bottom: 1px solid var(--filet);
  padding-left: var(--gouttiere); padding-right: var(--gouttiere-d);
}
.entete__in { max-width: var(--largeur); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marque img { width: 74px; height: auto; }
.marque span { display: grid; line-height: 1.2; }
.marque strong { font-family: var(--f-titre); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em; }
.marque small { font-size: var(--t-xs); color: var(--gris); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav__groupe > button {
  font-family: var(--f-titre); font-size: 0.95rem; font-weight: 400; text-decoration: none;
  padding: 10px 12px; background: none; border: 0; color: var(--encre); cursor: pointer; border-radius: var(--rayon);
}
.nav > a:hover, .nav__groupe > button:hover, .nav > a[aria-current="page"] { background: var(--lin); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 10px 16px; }
.nav .btn:hover { background: var(--encre-2); }
.nav__groupe { position: relative; }
.nav__groupe > button::after { content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sous-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: var(--papier); border: 1px solid var(--filet); box-shadow: 0 16px 40px rgba(21,20,20,.10);
  padding: 8px; display: none;
}
.nav__groupe:hover .sous-menu, .nav__groupe:focus-within .sous-menu, .nav__groupe.ouvert .sous-menu { display: grid; }
.sous-menu a { padding: 10px 12px; text-decoration: none; display: grid; gap: 2px; }
.sous-menu a:hover { background: var(--lin); }
.sous-menu a small { color: var(--gris); font-size: var(--t-xs); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--filet); background: var(--papier); cursor: pointer; border-radius: var(--rayon); }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--encre); margin: 5px auto; transition: transform .2s; }

@media (max-width: 1020px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--papier);
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    padding: 16px var(--gouttiere-d) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gouttiere);
    display: none; border-top: 1px solid var(--filet);
  }
  .nav.ouvert { display: flex; }
  .nav > a, .nav__groupe > button { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid var(--filet); text-align: left; width: 100%; border-radius: 0; }
  .sous-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .nav__groupe > button::after { display: none; }
  .nav .btn { margin: 18px 0 0; }
  .marque small { display: none; }
}

/* ---------- Héros accueil ---------- */
.heros { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--lin); }
.heros__texte { padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 72px) clamp(48px, 7vw, 96px) max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)); display: grid; align-content: center; gap: 22px; }
.heros__texte p.chapo { font-size: 1.125rem; color: var(--encre-2); max-width: 52ch; }
.heros__texte h1 { max-width: 18ch; }
.heros__image { position: relative; min-height: 420px; }
.heros__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.reperes { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 10px; border-top: 1px solid var(--filet); margin-top: 6px; }
.reperes span { font-size: var(--t-s); color: var(--encre-2); display: inline-flex; align-items: center; gap: 8px; }
.reperes span::before { content: ""; width: 5px; height: 5px; background: var(--encre); border-radius: 50%; }
@media (max-width: 860px) {
  .heros { grid-template-columns: 1fr; }
  .heros__texte { padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); }
  .heros__image { min-height: 300px; order: -1; }
}

/* ---------- Présentation ---------- */
.presentation { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.presentation figure { margin: 0; display: grid; gap: 10px; }
.presentation figure img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.presentation figcaption { font-size: var(--t-xs); color: var(--gris); }
.signature { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 10px; }
.reseaux { display: flex; gap: 10px; }
.reseaux a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: background .2s, color .2s; }
.reseaux a:hover { background: var(--encre); color: var(--papier); }
.reseaux svg { width: 18px; height: 18px; fill: currentColor; }
.pied .reseaux a:hover { background: var(--papier); color: var(--encre); }
.faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--filet); border: 1px solid var(--filet); margin-top: 8px; }
.faits div { background: var(--papier); padding: 18px; display: grid; gap: 4px; }
.faits strong { font-family: var(--f-titre); font-weight: 400; font-size: 1.15rem; }
.faits span { font-size: var(--t-s); color: var(--gris); }
@media (max-width: 860px) { .presentation { grid-template-columns: 1fr; } .presentation figure { max-width: 380px; } .faits { grid-template-columns: 1fr; } }

/* ---------- Domaines ---------- */
.domaines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.domaine { background: var(--papier); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; text-decoration: none; transition: background .2s; }
.domaine:hover { background: #FBF9F6; text-decoration: none; }
.domaine__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.domaine .ref { white-space: nowrap; }
.domaine ul { margin: 0; padding-left: 1.1em; color: var(--encre-2); display: grid; gap: 4px; font-size: var(--t-s); }
.domaine .lien-fleche { margin-top: 6px; }
@media (max-width: 760px) { .domaines { grid-template-columns: 1fr; } }

/* ---------- Méthode (étapes réelles) ---------- */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: etape; list-style: none; margin: 0; padding: 0; }
.etapes li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--encre); counter-increment: etape; }
.etapes li::before { content: "Étape " counter(etape); font-family: var(--f-titre); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gris); }
.etapes p { color: var(--encre-2); font-size: var(--t-s); }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .etapes { grid-template-columns: 1fr; } }

/* ---------- Outils (bandeau encre) ---------- */
.outils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #3A3633; border: 1px solid #3A3633; }
.outil { background: var(--encre); padding: 28px; display: grid; gap: 12px; align-content: start; text-decoration: none; transition: background .2s; }
.outil:hover { background: #211F1E; text-decoration: none; }
.outil p { color: #D9D1C8; font-size: var(--t-s); }
.outil .lien-fleche { color: var(--papier); }
@media (max-width: 860px) { .outils { grid-template-columns: 1fr; } }

/* ---------- Image pleine largeur ---------- */
.bandeau-photo { position: relative; min-height: 340px; display: grid; align-items: end; color: var(--papier); padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); padding-block: 48px; overflow: hidden; background: var(--encre); }
.bandeau-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55); }
.bandeau-photo .conteneur { position: relative; }
.bandeau-photo blockquote { margin: 0; font-family: var(--f-titre); font-weight: 300; font-size: var(--t-xl); max-width: 22ch; line-height: 1.2; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.coordonnees { display: grid; gap: 22px; }
.coordonnees dl { margin: 0; display: grid; gap: 18px; }
.coordonnees dt { font-family: var(--f-titre); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.coordonnees dd { margin: 0; font-size: 1.1rem; }
.coordonnees dd a { text-decoration: none; }
.coordonnees dd a:hover { text-decoration: underline; }
.contact__photos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; min-height: 420px; }
.contact__photos img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 540px) { .contact__photos { min-height: 280px; } }

.rdv-direct { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.rdv-direct figure { margin: 0; }
.rdv-direct img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1); }
@media (max-width: 760px) { .rdv-direct { grid-template-columns: 1fr; } .rdv-direct figure { max-width: 420px; } }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.tete-page { background: var(--lin); padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); padding-block: clamp(44px, 6vw, 80px); }
.tete-page .conteneur { display: grid; gap: 16px; }
.tete-page p.chapo { font-size: 1.125rem; color: var(--encre-2); max-width: 62ch; }
.fil { font-size: var(--t-xs); color: var(--gris); display: flex; gap: 8px; flex-wrap: wrap; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.mise-en-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.aside { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; padding: 24px; background: var(--lin); }
.aside h3 { font-size: 1.15rem; }
.aside p { font-size: var(--t-s); color: var(--encre-2); }
.aside nav { display: grid; gap: 2px; border-top: 1px solid var(--filet); padding-top: 12px; }
.aside nav a { font-size: var(--t-s); padding: 6px 0; text-decoration: none; }
.aside nav a:hover, .aside nav a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 900px) { .mise-en-page { grid-template-columns: 1fr; } .aside { position: static; } }

.bloc { display: grid; gap: 16px; padding-block: 28px; border-top: 1px solid var(--filet); }
.bloc:first-child { border-top: 0; padding-top: 0; }
.bloc h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.bloc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--encre-2); }
.bloc p { color: var(--encre-2); max-width: 70ch; }
.bloc strong { color: var(--encre); font-weight: 600; }

.tableau-defile { overflow-x: auto; border: 1px solid var(--filet); }
table { border-collapse: collapse; width: 100%; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--filet); vertical-align: top; }
thead th { background: var(--lin); font-family: var(--f-titre); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td.nombre, th.nombre { text-align: right; white-space: nowrap; }

.faq { display: grid; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-family: var(--f-titre); font-size: 1.15rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--encre-2); display: grid; gap: 10px; max-width: 70ch; }

.appel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.appel h2 { max-width: 24ch; }

/* ---------- Widgets Avocat.fr ---------- */
.widget-cadre { background: var(--papier); border: 1px solid var(--filet); padding: clamp(16px, 3vw, 32px); display: grid; gap: 16px; }
.widget-cadre iframe { width: 100%; border: 0; min-height: 950px; display: block; }
.avocat-consultingwidget { font-family: var(--f-titre); }
.apercu-widget { border: 1px dashed var(--gris); background: var(--lin); padding: 28px; display: grid; gap: 10px; text-align: left; }
.apercu-widget strong { font-family: var(--f-titre); font-weight: 500; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.modes div { background: var(--papier); padding: 20px; display: grid; gap: 6px; align-content: start; }
.modes strong { font-family: var(--f-titre); font-weight: 500; }
.modes span { font-size: var(--t-s); color: var(--gris); }

/* ---------- Simulateurs ---------- */
.onglets { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--encre); margin-bottom: 32px; }
.onglets button {
  font-family: var(--f-titre); font-size: 1.05rem; padding: 14px 22px; background: transparent; border: 1px solid transparent; border-bottom: 0;
  cursor: pointer; color: var(--encre-2); margin-bottom: -1px;
}
.onglets button[aria-selected="true"] { background: var(--papier); border-color: var(--encre); color: var(--encre); border-bottom: 1px solid var(--papier); }
.simu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .simu { grid-template-columns: 1fr; } }
.formulaire { display: grid; gap: 20px; }
.champ { display: grid; gap: 6px; }
.champ label, .champ legend { font-weight: 600; font-size: var(--t-s); }
.champ .aide { font-size: var(--t-xs); color: var(--gris); }
.champ input[type="number"], .champ input[type="text"], .champ select {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--filet); background: var(--papier);
  border-radius: var(--rayon); width: 100%; color: var(--encre); font-variant-numeric: tabular-nums;
}
.champ input:focus, .champ select:focus { outline: 2px solid var(--encre); outline-offset: 0; border-color: var(--encre); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .deux { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.segments { display: flex; flex-wrap: wrap; border: 1px solid var(--encre); border-radius: var(--rayon); overflow: hidden; }
.segments label { flex: 1 1 auto; text-align: center; cursor: pointer; font-weight: 500; font-size: var(--t-s); }
.segments input { position: absolute; opacity: 0; pointer-events: none; }
.segments span { display: block; padding: 10px 12px; border-right: 1px solid var(--encre); }
.segments label:last-child span { border-right: 0; }
.segments input:checked + span { background: var(--encre); color: var(--papier); }
.segments input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: -4px; box-shadow: inset 0 0 0 3px var(--papier); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); cursor: pointer; }
.case input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--encre); flex: none; }

.resultat { background: var(--lin); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .resultat { position: static; } }
.resultat__principal { display: grid; gap: 4px; }
.resultat__principal .montant { font-family: var(--f-titre); font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.resultat__lignes { display: grid; gap: 0; border-top: 1px solid var(--filet); }
.resultat__lignes div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--filet); font-size: var(--t-s); }
.resultat__lignes div span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.formule { font-size: var(--t-s); background: var(--papier); padding: 12px 14px; border: 1px solid var(--filet); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pastille { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--papier); border: 1px solid var(--filet); width: fit-content; }
.pastille--hausse { color: var(--alerte); }
.pastille--baisse { color: var(--succes); }
.alertes { display: grid; gap: 10px; }
.alerte { background: var(--alerte-fond); border-left: 3px solid var(--alerte); padding: 12px 14px; font-size: var(--t-s); color: var(--encre-2); }
.alerte strong { color: var(--encre); }
.note { font-size: var(--t-xs); color: var(--gris); }
.courbe { background: var(--papier); border: 1px solid var(--filet); padding: 12px; }
.courbe svg { width: 100%; height: auto; display: block; }
.courbe text { font-family: var(--f-texte); font-size: 11px; fill: var(--gris); }
.exemple { display: inline-block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gris); border: 1px solid var(--filet); padding: 2px 8px; }
.mention-simu { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--filet); font-size: var(--t-xs); color: var(--gris); max-width: 90ch; display: grid; gap: 8px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #D9D1C8; padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); padding-top: 64px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); font-size: var(--t-s); }
.pied__grille { max-width: var(--largeur); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.pied h4 { font-family: var(--f-titre); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; color: #9D948A; margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { text-decoration: none; color: #EFE9E2; }
.pied a:hover { text-decoration: underline; }
.pied__logo { width: 96px; margin-bottom: 18px; }
.pied__bas { max-width: var(--largeur); margin: 48px auto 0; padding-top: 20px; border-top: 1px solid #3A3633; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: var(--t-xs); color: #9D948A; }
.pied .reseaux a { color: #EFE9E2; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Mentions ---------- */
.mentions { display: grid; gap: 8px; }
.mentions section { display: grid; gap: 12px; padding-block: 26px; border-top: 1px solid var(--filet); }
.mentions h2 { font-size: 1.5rem; font-weight: 400; }
.mentions p, .mentions li { color: var(--encre-2); max-width: 75ch; }
.mentions ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.mentions address { font-style: normal; color: var(--encre-2); }

.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--encre); color: var(--papier); padding: 12px 16px; z-index: 100; }
.lien-evitement:focus { left: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); }
