/* T.P FINANCE — feuille de style du site vitrine
   Polices hébergées localement (aucune requête vers un service tiers). */
@font-face { font-family: "Playfair Display"; src: url("polices/playfair-display.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("polices/public-sans.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("polices/public-sans-italique.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --marine: #293041;
  --marine-profond: #1E2433;
  --bleu: #205EFF;
  --bleu-clair: #8FB0FF;
  --encre: #161B27;
  --ardoise: #5A6375;
  --papier: #F7F9FC;
  --blanc: #FFFFFF;
  --filet: #D9DFEA;
  --filet-sombre: #3A4358;
  --titre: "Playfair Display", Georgia, "Times New Roman", serif;
  --texte: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --largeur: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
.cadre { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--blanc); padding: 8px 12px; z-index: 10; }
.evitement:focus { left: 8px; }

/* En-tête */
.entete { background: var(--marine); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.entete .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanc); }
.entete .logo img { height: 100px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #C9D2E6; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--blanc); }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; background: var(--bleu); color: var(--blanc); font-weight: 600; font-size: 16px; text-decoration: none; border: 0; }
.bouton { transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.bouton:hover { background: #1A4FE0; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(32,94,255,.35); }
.bouton.secondaire { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 1px #5C6782; }
.bouton.secondaire:hover { box-shadow: inset 0 0 0 1px var(--blanc); }
.nav .bouton { color: var(--blanc); min-height: 42px; padding: 0 18px; font-size: 15px; }

.ancres-mobile { display: none; }

/* Ouverture : promesse à gauche, relevé d'écarts à droite */
.ouverture { background: var(--marine); color: var(--blanc); padding: 48px 0 88px; position: relative; overflow: hidden; }
.ouverture .motif { position: absolute; right: -140px; top: -120px; width: 720px; height: auto; fill: var(--blanc); opacity: 0.035; pointer-events: none; }
.ouverture .cadre { position: relative; }
.signature { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.signature strong { display: block; font-size: 16px; font-weight: 700; }
.signature span { display: block; font-size: 14px; color: #A9B3CA; margin-top: 2px; }
.ouverture .cadre { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.devise { margin: 0 0 22px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--bleu-clair); }
.ouverture h1 { font-family: var(--titre); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 24px; }
.ouverture .chapeau { font-size: 18px; line-height: 1.55; color: #D3DAEA; max-width: 32em; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.precision { margin: 18px 0 0; font-size: 14px; color: #A9B3CA; }

.releve { background: var(--marine-profond); border: 1px solid var(--filet-sombre); border-radius: 8px; padding: 26px 26px 18px; }
.releve h2 { font-family: var(--titre); font-weight: 600; font-size: 22px; margin: 0 0 4px; }
.releve .sous { margin: 0 0 18px; font-size: 14px; color: #A9B3CA; }
.releve table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.releve th { text-align: left; font-size: 13px; font-weight: 500; color: #A9B3CA; padding: 0 0 10px; border-bottom: 1px solid var(--filet-sombre); }
.releve th.ecart, .releve td.ecart { text-align: right; }
.releve td { padding: 14px 0; border-bottom: 1px solid var(--filet-sombre); vertical-align: top; }
.releve tr:last-child td { border-bottom: 0; }
.releve .indicateur { font-weight: 600; font-size: 16px; padding-right: 16px; }
.releve .contexte { display: block; font-weight: 400; font-size: 13.5px; color: #A9B3CA; margin-top: 2px; }
.releve td.ecart .unite { display: block; font-family: var(--texte); font-size: 13px; font-weight: 600; color: #A9B3CA; margin-top: 6px; letter-spacing: 0.02em; }
.releve td.ecart { font-family: var(--titre); font-weight: 700; font-size: 34px; color: var(--bleu-clair); white-space: nowrap; letter-spacing: -0.01em; line-height: 1; }

.portrait { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blanc); box-shadow: 0 4px 16px rgba(0,0,0,.35); flex: none; }
.ouverture .probleme { font-weight: 600; font-size: 19px; color: var(--blanc); margin: 0 0 10px; }

/* Cas concrets */
.cas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cas article { background: var(--papier); color: var(--encre); border-radius: 8px; padding: 30px; border-top: 4px solid var(--bleu); transition: transform .25s ease, box-shadow .25s ease; }
.cas article:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.cas-etiquette { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--bleu); letter-spacing: 0.01em; }
.cas dl { margin: 0; }
.cas dt { font-family: var(--titre); font-size: 18px; font-weight: 600; color: var(--marine); margin-top: 14px; }
.cas dd { margin: 4px 0 0; color: var(--ardoise); font-size: 16px; }
.cas dd strong { color: var(--encre); }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: etape; }
.etapes li { position: relative; padding-top: 6px; }
.etapes .num { display: inline-flex; width: 44px; height: 44px; background: var(--bleu); color: var(--blanc); font-weight: 700; font-size: 18px; align-items: center; justify-content: center; margin-bottom: 16px; clip-path: polygon(0 32%, 32% 0, 100% 0, 100% 68%, 68% 100%, 0 100%); }
.etapes h3 { font-family: var(--titre); font-size: 22px; margin: 0 0 8px; color: var(--marine); }
.etapes p { margin: 0; color: var(--ardoise); }

/* FAQ */
.sous-titre { font-family: var(--titre); font-size: 26px; color: var(--marine); margin: 56px 0 16px; }
.faq details { border-top: 1px solid var(--filet); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--encre); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bleu); font-weight: 700; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ardoise); max-width: 46em; }

/* Sections */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--filet); }
section.blanc { background: var(--blanc); }
section.sombre { background: var(--marine); color: var(--blanc); border-top: 0; }
section.sombre + section { border-top: 0; }
section.sombre .titre-section { color: var(--blanc); }
section.sombre .intro { color: #D3DAEA; }
.titre-section::before { content: ""; display: block; width: 34px; height: 33px; margin: 0 0 18px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 568 552'><g transform='translate(-48 -2)'><path fill='%23293041' d='M55.5 179.4v359.3h189.7l175.9-179.7H238.3V1Z'/><path fill='%23205EFF' d='M608.4 365V5.7H418.8L242.9 185.3h182.8v358Z'/></g></svg>") no-repeat center / contain; }
section.sombre .titre-section::before, .contact .titre-section::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 568 552'><g transform='translate(-48 -2)'><path fill='%23ffffff' d='M55.5 179.4v359.3h189.7l175.9-179.7H238.3V1Z'/><path fill='%23205EFF' d='M608.4 365V5.7H418.8L242.9 185.3h182.8v358Z'/></g></svg>"); }
.titre-section { font-family: var(--titre); font-weight: 700; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.1; margin: 0 0 14px; color: var(--marine); letter-spacing: -0.01em; }
.intro { font-size: 18px; color: var(--ardoise); max-width: 40em; margin: 0 0 48px; }

.offre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.offre article { border-top: 3px solid var(--bleu); padding-top: 22px; }
.offre h3 { font-family: var(--titre); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 12px; color: var(--marine); }
.offre p { margin: 0 0 14px; color: var(--ardoise); }
.offre ul { margin: 0; padding-left: 18px; }
.offre li { margin: 4px 0; }

/* Parcours : vraie chronologie */
.parcours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.frise { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--filet); }
.frise li { position: relative; padding: 0 0 30px 28px; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--papier); border: 2px solid var(--marine); }
.frise li.actuel::before { background: var(--bleu); border-color: var(--bleu); }
.frise .periode { font-size: 14px; font-weight: 600; color: var(--bleu); font-variant-numeric: tabular-nums; }
.frise h3 { font-size: 18px; font-weight: 700; margin: 2px 0 4px; color: var(--encre); }
.frise p { margin: 0; color: var(--ardoise); font-size: 16px; }
.encart.collant { position: sticky; top: 24px; }
.encart { background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: 28px; }
.encart h3 { font-family: var(--titre); font-size: 22px; margin: 0 0 12px; color: var(--marine); }
.encart p { margin: 0 0 16px; color: var(--ardoise); }
.encart p:last-child { margin-bottom: 0; }
.outils { margin: 0 0 16px; }
.outils dt { font-weight: 700; font-size: 15px; color: var(--encre); margin-top: 12px; }
.outils dd { margin: 2px 0 0; color: var(--ardoise); font-size: 16px; }

/* Témoignages */
.temoignages { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.temoignages figure { margin: 0; background: var(--papier); border: 1px solid var(--filet); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; transition: transform .25s ease, box-shadow .25s ease; }
.temoignages figure:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(41,48,65,.12); }
.temoignages figure.client { background: var(--marine); color: var(--blanc); border-color: var(--marine); }
.temoignages blockquote { margin: 0; font-family: var(--titre); font-size: 19px; line-height: 1.5; }
.temoignages figure.client blockquote { font-size: 21px; }
.temoignages figcaption { font-size: 15px; line-height: 1.45; }
.temoignages figcaption strong, .temoignages figcaption span { display: block; }
.temoignages figcaption span { color: var(--ardoise); }
.temoignages figure.client figcaption span { color: #A9B3CA; }
.temoignages figcaption .lien-relation { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--bleu); }
.temoignages figure.client .lien-relation { color: var(--bleu-clair); }

/* Modalités */
.modalites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--filet); border-radius: 8px; background: var(--blanc); }
.modalites div { padding: 26px 28px; }
.modalites div + div { border-left: 1px solid var(--filet); }
.modalites dt { font-size: 15px; color: var(--ardoise); margin: 0 0 6px; }
.modalites dd { margin: 0; font-family: var(--titre); font-size: 28px; font-weight: 600; color: var(--marine); line-height: 1.2; }

/* Contact */
.contact { background: var(--marine); color: var(--blanc); border-top: 0; }
.contact .cadre { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.contact .titre-section { color: var(--blanc); }
.contact .intro { color: #D3DAEA; margin-bottom: 28px; }
.coordonnees { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--filet-sombre); }
.coordonnees li { padding: 10px 0 10px 24px; }
.coordonnees span { display: block; font-size: 14px; color: #A9B3CA; }
.coordonnees a { color: var(--blanc); font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }

/* Pied de page */
.pied { background: var(--marine-profond); color: #A9B3CA; font-size: 14px; }
.pied a { color: #C9D2E6; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied-colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--filet-sombre); }
.pied-colonnes strong { display: block; color: var(--blanc); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.pied-colonnes nav, .pied-colonnes > div:not(.pied-marque) { display: flex; flex-direction: column; gap: 8px; }
.pied-colonnes nav a, .pied-colonnes > div:not(.pied-marque) a { font-size: 15px; }
.pied-marque img { height: 80px; width: auto; margin-bottom: 14px; }
.pied-marque p { margin: 0; max-width: 30em; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; }
.pied-bas nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Apparition au défilement */
.a-reveler { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.a-reveler.revele { opacity: 1; transform: none; }

/* Pages légales */
.page-legale { padding: 64px 0 88px; }
.page-legale .cadre { max-width: 780px; }
.page-legale h1 { font-family: var(--titre); font-size: 40px; color: var(--marine); margin: 0 0 8px; }
.page-legale .maj { color: var(--ardoise); margin: 0 0 40px; font-size: 15px; }
.page-legale h2 { font-family: var(--titre); font-size: 24px; color: var(--marine); margin: 40px 0 10px; }
.page-legale p, .page-legale li { color: var(--encre); }
.a-completer { background: #FFF2C4; padding: 0 4px; border-radius: 3px; }

/* Tablette et mobile */
@media (max-width: 960px) {
  .ouverture .cadre, .parcours, .contact .cadre { grid-template-columns: 1fr; gap: 44px; }
  .offre { grid-template-columns: 1fr; gap: 36px; }
  .cas { grid-template-columns: 1fr; }
  .pied-colonnes { grid-template-columns: 1fr; gap: 28px; }
  .ouverture .motif { width: 420px; right: -120px; top: -80px; }
  .etapes { grid-template-columns: 1fr; gap: 28px; }
  .temoignages { grid-template-columns: 1fr; }
  .nav a:not(.bouton) { display: none; }
  .ancres-mobile { display: flex; gap: 6px 18px; flex-wrap: wrap; padding: 0 24px 14px; }
  .ancres-mobile a { color: #C9D2E6; text-decoration: none; font-size: 14px; font-weight: 500; }
  .encart.collant { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cadre { padding: 0 16px; }
  .ancres-mobile { padding: 0 16px 12px; }
  .entete .logo img { height: 76px; }
  .portrait { width: 56px; height: 56px; }
  .releve td.ecart { font-size: 28px; }
  .nav .bouton { white-space: nowrap; padding: 0 16px; }
  .nav .suite { display: none; }
  .ouverture { padding: 36px 0 60px; }
  section { padding: 60px 0; }
  .releve { padding: 20px 16px 10px; }
  .releve td.ecart { font-size: 20px; }
  .modalites { grid-template-columns: 1fr; }
  .modalites div + div { border-left: 0; border-top: 1px solid var(--filet); }
  .actions .bouton { width: 100%; }
}

/* Section consultants (2026-10-23) */
.precision-consultants { margin: 40px 0 0; }

/* Page « Réseau de consultants » : formulaires */
.page-reseau .choix-formulaires { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.bouton-clair { background: var(--blanc); color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.bouton-clair:hover { background: #EEF3FF; color: var(--bleu); }
.formulaire { display: flex; flex-direction: column; gap: 16px; background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: 28px; margin: 16px 0 8px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--encre); }
.formulaire input, .formulaire select, .formulaire textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 12px; border: 1px solid #B9C2D3; border-radius: 6px; background: var(--blanc); color: var(--encre); width: 100%; }
.formulaire input[type="file"] { padding: 9px; background: var(--papier); }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 3px solid var(--bleu-clair); border-color: var(--bleu); }
.formulaire .champs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.formulaire .case { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; }
.formulaire .case input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.formulaire .aide { font-weight: 400; font-size: 14px; color: var(--ardoise); margin: 0; }
.formulaire .bouton { align-self: flex-start; cursor: pointer; }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .formulaire { padding: 20px; } .formulaire .champs-2 { grid-template-columns: 1fr; } }
