/* Page de Perrine GONDARD (perfinances.fr) : charte Plurifinances
   (plugin webapp_plurifinances, charte.md, qui fait foi). Aucune ressource tierce. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fontes/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fontes/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #230871;
  --brand-dark: #180454;
  --brand-deep: #38229e;
  --brand-50: #f3f5ff;
  --brand-100: #c6ccff;
  --accent: #ffbf3d;
  --accent-50: #fff4d5;
  --surface: #f7f8fd;
  --surface-2: #f1f2f9;
  --line-soft: #ebecf5;
  --line: #dddfea;
  --field-border: #c9cbd9;
  --muted: #737587;
  --muted-strong: #5a5c6f;
  --body: #383949;
  --ink: #20212f;
  --ombre: 0 1px 3px rgba(35, 8, 113, .06);
  --display: "Manrope", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 400 16px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid rgba(35, 8, 113, .4); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 16px; }
.ico { flex: none; }

.largeur { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.evitement { position: absolute; left: -10000px; }
.evitement:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* En-tête */
.entete { border-bottom: 1px solid var(--line-soft); background: #fff; }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marque img { display: block; width: 212px; height: auto; }
.entete-tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap;
}

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--brand); border-radius: 10px; padding: 12px 20px;
  background: var(--brand); color: #fff; font: 600 15px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--brand-dark); color: #fff; }
.bouton-second { background: #fff; color: var(--brand); }
.bouton-second:hover { background: var(--brand-50); color: var(--brand); }

/* Accueil : en-tête de page, sur le fond de la page Plurifinances (photo sous le violet
   de la charte à 90 %) */
.hero {
  background: linear-gradient(rgba(35, 8, 113, .9), rgba(35, 8, 113, .9)),
    url("/assets/fond-accueil.jpg") center / cover no-repeat var(--brand);
  color: #fff; padding: 56px 0 64px;
}
.hero h1 { color: #fff; }
.hero-in { display: grid; gap: 40px; align-items: center; }
.surtitre {
  display: inline-block; margin-bottom: 20px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 191, 61, .15); border: 1px solid var(--accent);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.chapo { font-size: 18px; color: rgba(255, 255, 255, .9); max-width: 560px; }
.engagements { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; color: rgba(255, 255, 255, .9); }
.engagements li { display: flex; gap: 10px; align-items: flex-start; }
.engagements .ico { color: var(--accent); margin-top: 4px; }

/* Le seul bloc encadré de l'écran (charte, sobriété) */
.carte-visite {
  background: #fff; border-radius: 14px; padding: 28px; color: var(--body);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.carte-photo {
  display: block; width: 120px; height: 120px; border-radius: 999px; object-fit: cover;
  border: 4px solid #fff; box-shadow: var(--ombre); margin-bottom: 16px;
}
.carte-role { color: var(--muted-strong); font-size: 14px; margin-bottom: 2px; }
.carte-nom { font: 800 22px/1.2 var(--display); color: var(--ink); margin-bottom: 20px; }
.contact-liste { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-liste li, .contact-liste a { display: flex; gap: 12px; align-items: flex-start; }
.contact-liste a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-liste a:hover { color: var(--brand); text-decoration: underline; }
.contact-liste .ico { color: var(--brand-deep); margin-top: 2px; }
.carte-visite .contact-liste { margin-bottom: 0; }

/* Estimation */
.section { padding: 72px 0; }
.estimation { max-width: 760px; }
.estimation > p { color: var(--muted-strong); margin-bottom: 32px; }
.formulaire { display: grid; gap: 18px; }
.formulaire label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--body); }
.formulaire input:not([type="checkbox"]):not([type="radio"]), .formulaire select, .formulaire textarea {
  width: 100%; border: 1px solid var(--field-border); border-radius: 10px;
  padding: 11px 12px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: #fff;
}
.formulaire textarea { resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus {
  outline: 3px solid rgba(35, 8, 113, .25); border-color: var(--brand);
}
.champs-2 { display: grid; gap: 18px; }
.formulaire .indication { font-size: 14px; color: var(--muted-strong); margin: 0 0 -8px; }
.choix { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choix legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.formulaire .choix label, .formulaire .consentement {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 400;
}
.formulaire input[type="checkbox"], .formulaire input[type="radio"] {
  width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none;
}
.rgpd { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rgpd legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.rgpd p { font-size: 12px; line-height: 1.6; color: var(--muted-strong); margin: 0; }
.consentement { font-size: 14px; color: var(--body); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton { justify-self: start; }

/* Pages de texte */
.texte { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.texte h1 { font-size: clamp(28px, 4vw, 36px); }
.texte h2 { font-size: 20px; margin-top: 36px; }
.texte ul { padding-left: 20px; }
.texte li { margin-bottom: 8px; }
.retour .contact-liste { margin: 24px 0; }

/* Pied */
.pied { background: var(--surface); border-top: 1px solid var(--line-soft); padding: 40px 0; font-size: 14px; }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pied-haut p { margin: 0; color: var(--muted-strong); }
.pied-nom { font: 700 16px/1.3 var(--display); color: var(--ink) !important; }
.pied nav { display: flex; gap: 20px; }
.pied-mentions { font-size: 12px; line-height: 1.6; color: var(--muted-strong); margin: 0; }

@media (min-width: 720px) {
  .champs-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding: 80px 0 88px; }
  .hero-in { grid-template-columns: 1.35fr 1fr; gap: 64px; }
}
@media (max-width: 520px) {
  .marque img { width: 160px; }
  .entete-tel span { display: none; }
  .entete-tel {
    width: 44px; height: 44px; justify-content: center;
    border: 1px solid var(--brand-100); border-radius: 10px; background: var(--brand-50);
  }
}
