/* =========================================================================
   Page « Notre méthode » — reprise d'Æquo (frontend/css/accueil.css).

   Seules les règles dont la page a besoin : les jetons de l'accueil
   d'Æquo, le lien d'évitement, le folio et la section « Méthode », copiée
   telle quelle. Les règles de base d'Æquo sur les balises (titres,
   paragraphes, liens) sont limitées à .methode : le bandeau et le pied
   RentaLab gardent les leurs (/charte.css).
   ========================================================================= */


:root {
  --paper: #f7f2e7;
  --yellow: #f3da78;
  --ink: #312c43;
  --purple: #605073;
  --lavender: #ded8ed;
  --orange: #b7472c;
  --line: #b9ae96;
  --white: #fffaf0;
  --muted: #625c66;
  --serif: 'Instrument Serif',Georgia,serif;
  --sans: 'DM Sans','Segoe UI',sans-serif;
  --mono: 'DM Mono',monospace;
  --hand: 'Caveat',cursive;
}

/* Base d'Æquo, limitée au contenu de la page. :where() garde la
   spécificité d'origine (une simple balise) : sans lui, « .methode a »
   l'emporterait sur les classes de la section, comme .methode__bouton. */
.methode {
  font-size: 16px;
  line-height: 1.6;
}
:where(.methode) h1,
:where(.methode) h2,
:where(.methode) h3,
:where(.methode) p {
  margin: 0;
}
:where(.methode) h1,
:where(.methode) h2,
:where(.methode) h3 {
  font-weight: 400;
}
:where(.methode) a {
  color: inherit;
  text-decoration: none;
}
:where(.methode) a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 6px;
}

.skip {
  position: fixed;
  top: -100px;
  background: var(--white);
  padding: 14px;
  z-index: 20;
}

.skip:focus {
  top: 0;
}

.folio {
  font: 10px/1.6 var(--mono);
  letter-spacing: 1px;
}

/* ============================================================== Méthode
   /methode (01/11/2026). Une page à lire, comme les pages légales, mais
   longue : une tête jaune centrée, comme la couverture de l'accueil, puis une
   seule colonne de lecture d'environ 70 caractères. Pas de sommaire (essayé
   le 01/11/2026, retiré par Lucas : il n'apportait rien). Les tableaux sont
   des feuilles de papier comme celle de la règle du jeu, sans l'inclinaison :
   un tableau incliné se lit mal. */

.methode__tete {
  background: var(--yellow);
  padding: 64px 8% 54px;
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.methode__tete>* {
  max-width: 900px;
  margin-inline: auto;
}

.methode h1 {
  font: clamp(44px, 5.6vw, 80px)/1 var(--serif);
  letter-spacing: -2px;
  margin-block: 16px 26px;
}

.methode h1 em {
  display: block;
  color: var(--purple);
}

.methode__chapeau {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
}

.methode__chapeau+.methode__chapeau {
  margin-top: 14px;
}

.methode__chapeau strong {
  font-weight: 600;
}

/* Le bouton de l'aperçu, avec une ombre claire : la jaune disparaîtrait
   sur la tête jaune. */
.methode__bouton {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  margin-top: 32px;
  padding: 13px 26px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--white);
  transition: translate .2s, box-shadow .2s;
}

.methode__bouton span {
  font-size: 20px;
}

.methode__bouton:hover {
  translate: 2px 2px;
  box-shadow: 2px 2px 0 var(--white);
}

.methode__maj {
  margin-top: 30px;
}

.methode__corps {
  box-sizing: content-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 8% 100px;
}

.methode__texte section+section {
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px dashed var(--line);
}

.methode__texte h2 {
  font: 40px/1.08 var(--serif);
  letter-spacing: -.5px;
  margin-bottom: 18px;
}

.methode__texte h3 {
  font: 28px/1.15 var(--serif);
  margin: 36px 0 12px;
}

.methode__texte p+p,
.methode__texte p+ul,
.methode__texte ul+p {
  margin-top: 14px;
}

.methode__texte strong {
  font-weight: 600;
}

/* Dans le texte, un lien doit se voir comme tel (même règle que .document). */
.methode__texte a:not(.methode__bouton) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.methode__liste {
  margin: 0;
  padding-left: 1.2em;
}

.methode__liste li+li {
  margin-top: 6px;
}

.methode__renvoi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
}

/* --- Les tableaux ------------------------------------------------------ */

.methode__feuille {
  position: relative;
  margin: 30px 0;
  padding: 26px 28px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 8px 9px 0 var(--lavender);
}

/* Le ruban adhésif de la règle du jeu. */
.methode__feuille:before {
  content: '';
  position: absolute;
  top: -16px;
  left: 45%;
  width: 84px;
  height: 32px;
  background: rgb(243 218 120 / .7);
  transform: rotate(-5deg);
}

.methode__tableau {
  width: 100%;
  border-collapse: collapse;
}

.methode__tableau caption {
  padding-bottom: 14px;
  text-align: left;
  font: 10px/1.6 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.methode__tableau th,
.methode__tableau td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.methode__tableau thead th {
  font: 24px/1.1 var(--serif);
  border-bottom-color: var(--ink);
}

.methode__tableau thead .methode__vide {
  border-bottom-color: var(--ink);
}

.methode__tableau tbody th {
  font-weight: 500;
  font-size: 14px;
}

/* Le terme que l'on cherche (« rendement locatif brut »), sous la formule
   qui l'explique : discret, mais écrit en toutes lettres. */
.methode__terme {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.methode__tableau tbody td {
  font-size: 14px;
  line-height: 1.55;
}

.methode__tableau tbody tr:last-child>* {
  border-bottom: 0;
}

.methode__tableau--chiffres th[scope="col"],
.methode__tableau--chiffres td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.methode__resultats>* {
  padding-top: 18px;
}

.methode__resultat strong {
  font-weight: 500;
}

/* Les deux écarts : ce que la section veut montrer. Couleurs de série de
   l'accueil — achat en brique, location en violet (aperçu, 02). */
.methode__montant {
  display: block;
  margin: 4px 0;
  font: 40px/1.05 var(--serif);
  letter-spacing: -1px;
  white-space: nowrap;
}

.methode__resultat--location {
  color: var(--purple);
}

.methode__resultat--achat,
.methode__col--achat {
  color: var(--orange);
}

.methode__col--location {
  color: var(--purple);
}

.methode__fin .methode__bouton {
  box-shadow: 4px 4px 0 var(--yellow);
}

.methode__fin .methode__bouton:hover {
  box-shadow: 2px 2px 0 var(--yellow);
}

.methode__mention {
  margin-top: 14px;
  font: 10px/1.6 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Téléphone : chaque rangée de tableau devient une petite grille — son
   intitulé sur toute la largeur, puis les deux colonnes côte à côte, sous
   leurs en-têtes. Trois colonnes de texte ne tiennent pas en 320 px, et un
   défilement horizontal cacherait la moitié de la comparaison. Les rôles
   ARIA du HTML gardent la sémantique de tableau. */
@media (max-width:700px) {
  .methode__tete {
    padding: 40px 20px 36px;
  }
  .methode h1 {
    font-size: clamp(36px, 10.5vw, 52px);
    letter-spacing: -1px;
  }
  .methode__chapeau {
    font-size: 16px;
  }
  .methode__corps {
    padding: 36px 20px 60px;
  }
  .methode__texte h2 {
    font-size: 31px;
  }
  .methode__texte h3 {
    font-size: 24px;
  }
  .methode__feuille {
    padding: 22px 16px 10px;
    box-shadow: 5px 6px 0 var(--lavender);
  }
  .methode__tableau,
  .methode__tableau caption,
  .methode__tableau thead,
  .methode__tableau tbody {
    display: block;
  }
  .methode__tableau tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
  }
  .methode__tableau .methode__vide {
    display: none;
  }
  .methode__tableau th,
  .methode__tableau td {
    padding: 10px 0;
  }
  .methode__tableau thead th {
    font-size: 21px;
  }
  .methode__tableau tbody th {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-bottom: 0;
    font-size: 11px;
    font-family: var(--mono);
    font-weight: 400;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .methode__tableau tbody td {
    font-size: 13px;
  }
  .methode__tableau tbody tr:last-child>td {
    border-bottom: 0;
  }
  .methode__tableau--chiffres th[scope="col"],
  .methode__tableau--chiffres td {
    text-align: left;
  }
  .methode__montant {
    font-size: 28px;
  }
}

/* ===================================================== Référence technique
   (29/11/2026) Les pages méthode servent aussi de documentation : chaque
   champ du simulateur (valeur par défaut, rôle dans le calcul) et chaque
   calcul, formule comprise. Une fiche par champ plutôt qu'un tableau à
   quatre colonnes, qui ne tiendrait pas sur téléphone ; les formules en
   police à chasse fixe, sur une feuille blanche. */

.methode__partie {
  margin: 0 0 10px;
  font: 11px/1.6 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.champs {
  margin: 18px 0 0;
  border-top: 1px solid var(--ink);
}

.champ-ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.champ-ref dt {
  font-weight: 600;
}

.champ-ref__unite {
  font-weight: 400;
  color: var(--muted);
}

.champ-ref dd {
  margin: 0;
}

.champ-ref__defaut {
  font: 12px/1.9 var(--mono);
  text-align: right;
  white-space: nowrap;
}

.champ-ref__role {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--ink);
}

.champ-ref__mode {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  font: 10px/1.7 var(--mono);
  letter-spacing: .5px;
  text-transform: uppercase;
  vertical-align: 2px;
  background: var(--yellow);
  border-radius: 3px;
}

.formule {
  margin: 16px 0;
  padding: 14px 16px;
  font: 13.5px/1.7 var(--mono);
  white-space: pre-wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
}

.methode__texte .formule + p,
.methode__texte p + .formule {
  margin-top: 14px;
}

.methode__exemple {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width:700px) {
  .champ-ref {
    grid-template-columns: minmax(0, 1fr);
  }
  .champ-ref__defaut {
    text-align: left;
  }
  .formule {
    font-size: 12.5px;
  }
}
