/* Site public de PÉPIT' — feuille de style unique, copiée par site.mjs.

   Même palette que l'application (src/index.css), relevée sur le logo.
   Polices système : le site ne charge rien depuis un service tiers — une
   police Google appelée à distance transmet l'adresse IP du visiteur, et la
   page des mentions légales promet qu'aucune donnée ne sort. */

:root {
  --navy: #021B44;
  --navy-soft: #123361;
  --gold: #C38B2C;
  --gold-light: #DCA945;
  --gold-deep: #8F621A;
  --gold-wash: #FBF2E0;
  --cream: #F8F6F0;
  --bg: #FBFAF7;
  --card: #FFFFFF;
  --ink: #12151A;
  --muted: #5F6570;
  --line: #EAE6DD;
  --line-strong: #D9D3C6;
  --sh-card: 0 1px 2px rgba(2,27,68,.07), 0 8px 22px rgba(2,27,68,.10);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 48px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 4.2vw, 32px); }
h3 { font-size: 20px; }

.enveloppe { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Bouton ─── */
.bouton {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton--or { background: var(--gold); color: var(--navy); }
.bouton--or:hover { background: var(--gold-light); color: var(--navy); }
.bouton--clair { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.bouton--clair:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.bouton--navy { background: var(--navy); color: #fff; }
.bouton--navy:hover { background: var(--navy-soft); color: #fff; }

/* ─── En-tête : le logo reste sur fond blanc, dans ses couleurs d'origine ─── */
.entete { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.entete__logo img { display: block; height: 34px; width: auto; }
.entete nav { display: flex; gap: 22px; }
.entete nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.entete nav a:hover { color: var(--gold-deep); }

/* ─── Héros ─── */
.heros {
  background: radial-gradient(120% 90% at 85% 0%, var(--navy-soft) 0%, var(--navy) 60%);
  color: #fff;
  padding: 72px 0 80px;
}
.heros h1 { color: #fff; max-width: 17ch; }
.heros__pastille {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(195,139,44,.18);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.heros__chapo { font-size: clamp(17px, 2.4vw, 20px); max-width: 60ch; color: rgba(255,255,255,.86); margin: 0 0 28px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ─── Sections ─── */
.bloc { padding: 72px 0; }
.bloc--creme { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bloc--navy { background: var(--navy); color: rgba(255,255,255,.88); }
.bloc--navy h2 { color: #fff; }
.bloc--navy strong { color: #fff; }
.bloc__chapo { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 32px; }
.bloc--navy .bloc__chapo { color: rgba(255,255,255,.8); }

.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.etapes li { counter-increment: etape; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--sh-card); }
.etapes li::before {
  content: counter(etape);
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%;
  background: var(--gold-wash); color: var(--gold-deep);
  font-weight: 700; font-family: var(--serif);
}
.etapes strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 4px; }

/* ─── Formules ─── */
.formules { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.formule { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--sh-card); }
.formule--vedette { border: 2px solid var(--gold); }
.formule__ruban {
  position: absolute; top: -13px; left: 24px; margin: 0;
  padding: 3px 12px; border-radius: 999px;
  background: var(--gold); color: var(--navy);
  font-size: 12.5px; font-weight: 700;
}
.formule h3 { font-size: 26px; margin-bottom: 2px; }
.formule__accroche { color: var(--muted); margin: 0 0 16px; }
.formule__prix { margin: 0; font-size: 17px; color: var(--muted); }
.formule__prix strong { font-family: var(--serif); font-size: 40px; color: var(--navy); margin-right: 4px; }
.formule__annuel { margin: 2px 0 18px; font-size: 15px; color: var(--gold-deep); font-weight: 600; }
.formule ul { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.formule li { padding-left: 26px; position: relative; margin-bottom: 9px; font-size: 16px; }
.formule li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.note { margin: 22px 0 0; font-size: 15px; color: var(--muted); }

/* ─── Partenaires ─── */
.univers { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.univers li { background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 15.5px; }
.encart { background: var(--gold-wash); border-radius: 22px; padding: 28px; max-width: 640px; }
.encart p { margin: 0 0 18px; }

/* ─── Entreprises ─── */
.tarifs-entreprise { display: grid; gap: 10px; margin: 0 0 24px; }
.tarifs-entreprise p { margin: 0; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.tarifs-entreprise strong { display: inline-block; min-width: 92px; color: var(--gold-light); }
.promesse { max-width: 64ch; margin: 0 0 28px; }

.contact p { font-size: 18px; max-width: 60ch; }

/* ─── Pages de texte ─── */
.texte { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.texte h1 { margin-bottom: .4em; }
.texte h2 { font-size: 24px; margin-top: 1.8em; }
.texte h3 { font-size: 19px; margin-top: 1.4em; color: var(--gold-deep); font-family: var(--sans); }
.texte h4 { font-size: 17px; margin: 1.2em 0 .4em; }
.texte .chapo { font-size: 19px; color: var(--muted); }
.texte ol, .texte ul { padding-left: 1.3em; }
.texte li { margin-bottom: .45em; }
.texte hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.renvoi { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); color: var(--muted); }
.surtitre { color: var(--muted); margin: 0 0 .3em; }

.tableau { overflow-x: auto; margin: 1em 0 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; font-weight: 600; }
.definitions th { width: 34%; color: var(--muted); font-weight: 600; }

.encadre { background: var(--gold-wash); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 1.2em 0; }
mark.a-completer { background: #FFF1C2; color: inherit; padding: 0 2px; border-radius: 3px; }
code { font-size: .92em; background: var(--cream); padding: 1px 5px; border-radius: 4px; }

.bandeau-projet { background: #7A1F12; color: #fff; text-align: center; padding: 10px var(--gutter); font-size: 15px; }

/* ─── Pied ─── */
.pied { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 15px; color: var(--muted); }
.pied__grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pied__logo { height: 28px; width: auto; display: block; margin-bottom: 10px; }
.pied p { margin: 0; }
.pied nav { display: flex; flex-direction: column; gap: 6px; }
.pied nav a { color: var(--ink); text-decoration: none; }
.pied nav a:hover { color: var(--gold-deep); text-decoration: underline; }
.pied__prix { margin-top: 24px !important; font-size: 13.5px; }

/* ─── Téléphone ─── */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .entete nav { display: none; }
  .heros { padding: 48px 0 56px; }
  .bloc { padding: 52px 0; }
  .bouton { width: 100%; text-align: center; }
  .formule { padding: 24px; }
  .definitions th { width: 42%; }
}

/* ─── Boutons des stores ─── */
.magasins { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.magasin {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 150px; padding: 7px 16px; border-radius: 10px;
  background: #000; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px; line-height: 1.15;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.magasin small { font-size: 11px; font-weight: 500; opacity: .85; }
.magasin:hover { color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.magasin--bientot { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); cursor: default; }

/* ─── Page Entreprises ─── */
.texte--large { max-width: 1080px; padding-bottom: 8px; }
.devis { padding-bottom: 72px; }
.devis fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.devis legend { font-family: var(--serif); color: var(--navy); font-size: 22px; font-weight: 700; margin-bottom: 14px; padding: 0; }
.devis__grille { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; margin-bottom: 36px; }
.devis__simulation { background: var(--card); border: 1px solid var(--line) !important; border-radius: 22px; padding: 26px !important; box-shadow: var(--sh-card); }
.devis__question { font-weight: 600; margin: 16px 0 8px; }
.devis__question:first-of-type { margin-top: 0; }
.devis__question small { font-weight: 400; color: var(--muted); }

.choix-groupe { display: grid; gap: 10px; }
.choix-groupe--ligne { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choix { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer; background: #fff; }
.choix input { margin: 4px 0 0; accent-color: var(--navy); }
.choix small { color: var(--muted); }
.choix:has(input:checked) { border-color: var(--navy); background: #F3F6FB; }
.choix:has(input:focus-visible) { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.choix--court { align-items: center; }
.choix--court input { margin: 0; }

.devis__resultat { position: sticky; top: 84px; background: var(--navy); color: rgba(255,255,255,.85); border-radius: 22px; padding: 26px; }
.devis__etiquette { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-light); }
.devis__total { margin: 0; color: #fff; }
.devis__total strong { font-family: var(--serif); font-size: clamp(34px, 5vw, 44px); margin-right: 4px; }
.devis__detail { margin: 4px 0 14px; }
.devis__economie { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: rgba(195,139,44,.16); color: var(--gold-light); font-weight: 600; }
.devis__erreur { margin: 0 0 16px; color: #FFD7A8; font-weight: 600; }
.devis__mention { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.65); }

.champs { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.champ { margin-bottom: 14px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.champ label small { font-weight: 400; color: var(--muted); }
.champ input, .champ textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
}
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2,27,68,.12); }
.champ input[aria-invalid] { border-color: #B3261E; }
.aide { margin: 5px 0 0; font-size: 14px; color: var(--muted); }
.erreur { margin: 5px 0 0; font-size: 14px; color: #B3261E; font-weight: 600; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.devis__rgpd { font-size: 14px; color: var(--muted); max-width: 72ch; margin: 0 0 20px; }
.devis__statut { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.devis button[disabled] { opacity: .6; cursor: wait; }
.merci { max-width: 640px; margin: 0 0 72px; padding: 32px; background: var(--gold-wash); border-radius: 22px; }
.merci:focus { outline: none; }

@media (max-width: 820px) {
  .devis__grille { grid-template-columns: 1fr; }
  .devis__resultat { position: static; }
}
/* La légende d'un fieldset encadré se pose sur le bord : on la fait flotter
   pour qu'elle reste dans la carte. */
.devis__simulation legend { float: left; width: 100%; }
.devis__simulation legend + * { clear: both; }
.devis__simulation .champ { margin: 18px 0 0; }

/* ─── Page Partenaires ─── */
.atouts { list-style: none; padding: 0; margin: 8px 0 48px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.atouts li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--sh-card); color: var(--muted); font-size: 16px; }
.atouts strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.devis__titre { margin-bottom: .2em; }
.champs--espace { margin-top: 18px; }
.champ select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
}
.champ select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2,27,68,.12); }
.champ select[aria-invalid], .choix:has(input[aria-invalid]) { border-color: #B3261E; }
