/* =============================================================================
   portail.css — portail client (front-office public et espace client)
   S'appuie sur tokens.css, base.css et components.css. Aucune ressource externe.
   ============================================================================= */

/* ------------------------------------------------------------------ Gabarit */
.p-conteneur { width: 1180px; max-width: calc(100% - 2rem); margin: 0 auto; }
.p-etroit    { width: 880px;  max-width: calc(100% - 2rem); margin: 0 auto; }

.p-section { padding: 4rem 0; }
.p-section--gris { background: var(--fond); }
.p-section-titre { text-align: center; max-width: 64ch; margin: 0 auto 2.5rem; }
.p-section-titre .sur {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bgfi-vert); margin-bottom: .6rem;
}
.p-section-titre h2 { font-family: var(--titre); font-size: 2rem; color: var(--bgfi-bleu-nuit); margin-bottom: .6rem; }
.p-section-titre p { color: var(--txt-clair); }

/* ------------------------------------------------------------------ En-tête */
.p-microbarre {
  background: var(--bgfi-bleu-nuit); color: rgba(255, 255, 255, .8);
  font-size: .74rem;
}
.p-microbarre .p-conteneur { display: flex; align-items: center; gap: 1.25rem; padding: .45rem 0; flex-wrap: wrap; }
.p-microbarre a { color: rgba(255, 255, 255, .88); }
.p-microbarre a:hover { color: #fff; }
.p-microbarre .droite { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; }
.p-microbarre svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: .3rem; }

.p-entete {
  position: sticky; top: 0; z-index: 60;
  background: var(--blanc); border-bottom: 1px solid var(--bord);
}
.p-entete .p-conteneur { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.p-marque { display: flex; align-items: center; gap: .7rem; color: inherit; }
.p-marque:hover { color: inherit; }
.p-marque img { height: 40px; }
.p-marque .nom { font-family: var(--titre); font-size: 1.15rem; font-weight: 700; color: var(--bgfi-bleu); line-height: 1.1; }
.p-marque .sous { font-size: .68rem; color: var(--txt-clair); }

.p-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.p-nav a {
  padding: .55rem .75rem; border-radius: 8px;
  font-size: .86rem; font-weight: 500; color: var(--txt-moyen);
  transition: var(--t-rapide);
}
.p-nav a:hover { background: var(--bgfi-bleu-05); color: var(--bgfi-bleu); }
.p-nav a.actif { color: var(--bgfi-bleu); font-weight: 600; background: var(--bgfi-bleu-05); }
.p-nav .p-mobile { display: none; }
.p-nav.ouvert .p-mobile { display: inline-flex; margin-top: .35rem; }

.p-actions { display: flex; align-items: center; gap: .6rem; }
.p-burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--bord);
  background: var(--blanc); border-radius: 10px; color: var(--txt-moyen); cursor: pointer;
  place-items: center;
}
.p-burger svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------------ Boutons */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: var(--t-normale); text-decoration: none; white-space: nowrap;
}
.p-btn svg { width: 16px; height: 16px; }
.p-btn--primaire { background: var(--bgfi-bleu); color: #fff; }
.p-btn--primaire:hover { background: var(--bgfi-bleu-fonce); color: #fff; box-shadow: 0 6px 18px rgba(0, 82, 150, .28); }
.p-btn--fantome { background: transparent; color: var(--bgfi-bleu); border-color: var(--bgfi-bleu-40); }
.p-btn--fantome:hover { background: var(--bgfi-bleu-05); color: var(--bgfi-bleu); }
.p-btn--clair { background: var(--blanc); color: var(--bgfi-bleu); }
.p-btn--clair:hover { background: #fff; color: var(--bgfi-bleu-fonce); box-shadow: var(--ombre-lg); }
.p-btn--contour-clair { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.p-btn--contour-clair:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.p-btn--vert { background: var(--bgfi-vert); color: #fff; }
.p-btn--vert:hover { background: #7f8a68; color: #fff; }
.p-btn--large { width: 100%; }
.p-btn[disabled] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ Bannière */
.p-heros {
  position: relative; color: #fff; overflow: hidden;
  background-image: url('../img/hero-portail.jpg');
  background-size: cover; background-position: center;
}
.p-heros::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0, 31, 63, .88) 0%, rgba(0, 45, 92, .78) 45%, rgba(0, 82, 150, .55) 100%);
}
.p-heros .p-conteneur { position: relative; z-index: 1; }
.p-heros-grille {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center;
  padding: 4.25rem 0;
}
.p-heros h1 {
  font-family: var(--titre); font-size: 3rem; line-height: 1.15;
  color: #fff; margin-bottom: 1rem;
}
.p-heros .accroche { font-size: 1.05rem; opacity: .9; max-width: 52ch; margin-bottom: 1.75rem; }
.p-heros .boutons { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.p-heros-preuves { display: flex; flex-wrap: wrap; gap: .5rem .75rem; }
.p-preuve {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; padding: .35rem .8rem;
}
.p-preuve svg { width: 13px; height: 13px; color: var(--bgfi-vert); }

/* Carte de simulation posée sur la bannière */
.p-carte-devis {
  background: var(--blanc); border-radius: 16px; padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 21, 42, .4);
}
.p-carte-devis h3 { font-family: var(--titre); font-size: 1.35rem; color: var(--bgfi-bleu-nuit); margin-bottom: .25rem; }
.p-carte-devis .sous { font-size: .8rem; color: var(--txt-clair); margin-bottom: 1.1rem; }
.p-carte-devis .duree {
  display: flex; align-items: center; gap: .4rem; justify-content: center;
  font-size: .74rem; color: var(--txt-clair); margin-top: .8rem;
}
.p-carte-devis .duree svg { width: 13px; height: 13px; color: var(--bgfi-vert); }

/* ------------------------------------------------------------------ Produits */
.p-produits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.p-produit {
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px;
  padding: 1.75rem; color: inherit; transition: var(--t-normale);
  position: relative; overflow: hidden;
}
.p-produit::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--bgfi-bleu), var(--bgfi-vert));
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.p-produit:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--ombre-lg); border-color: var(--bgfi-bleu-40); }
.p-produit:hover::after { transform: scaleY(1); }
.p-produit .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bgfi-bleu) 0%, var(--bgfi-bleu-fonce) 100%);
  color: #fff;
}
.p-produit .ico svg { width: 24px; height: 24px; }
.p-produit h3 { font-family: var(--titre); font-size: 1.4rem; color: var(--bgfi-bleu-nuit); }
.p-produit .desc { font-size: .85rem; color: var(--txt-clair); }
.p-produit ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.p-produit li { display: flex; gap: .5rem; font-size: .82rem; color: var(--txt-moyen); }
.p-produit li svg { width: 15px; height: 15px; min-width: 15px; color: var(--bgfi-vert); margin-top: .15rem; }
.p-produit .prix {
  border-top: 1px solid var(--bord); padding-top: .8rem;
  display: flex; align-items: baseline; gap: .4rem;
}
.p-produit .prix .mt { font-family: var(--chiffres); font-size: 1.35rem; font-weight: 700; color: var(--bgfi-bleu); }
.p-produit .prix .lg { font-size: .74rem; color: var(--txt-clair); }
.p-produit .lien { font-size: .84rem; font-weight: 700; color: var(--bgfi-bleu); display: flex; align-items: center; gap: .35rem; }
.p-produit .lien svg { width: 14px; height: 14px; transition: transform .25s ease; }
.p-produit:hover .lien svg { transform: translateX(4px); }
.p-produit .ruban {
  position: absolute; top: .9rem; right: .9rem;
  background: var(--bgfi-vert); color: #fff; font-size: .64rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem;
  border-radius: 999px;
}

/* ------------------------------------------------------------------ Étapes */
.p-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: pas; }
.p-pas {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px;
  padding: 1.5rem; position: relative;
}
.p-pas .num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bgfi-bleu-10); color: var(--bgfi-bleu);
  font-family: var(--chiffres); font-weight: 700; font-size: 1rem; margin-bottom: .9rem;
}
.p-pas h4 { font-size: .98rem; font-weight: 700; color: var(--txt-fonce); margin-bottom: .35rem; }
.p-pas p { font-size: .82rem; color: var(--txt-clair); }
.p-pas::after {
  content: ''; position: absolute; top: 2.55rem; right: -.75rem; width: .75rem; height: 1px;
  background: var(--bord);
}
.p-pas:last-child::after { display: none; }

/* ------------------------------------------------------------------ Chiffres */
.p-bande {
  background: linear-gradient(120deg, var(--bgfi-bleu-nuit) 0%, var(--bgfi-bleu-fonce) 100%);
  color: #fff; padding: 3rem 0;
}
.p-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.p-chiffre .v { font-family: var(--chiffres); font-size: 2.25rem; font-weight: 700; color: #fff; }
.p-chiffre .l { font-size: .82rem; opacity: .78; margin-top: .2rem; }

/* ------------------------------------------------------------------ Encarts */
.p-encart {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: center;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 18px;
  padding: 2.5rem; box-shadow: var(--ombre-sm);
}
.p-encart h3 { font-family: var(--titre); font-size: 1.7rem; color: var(--bgfi-bleu-nuit); margin-bottom: .6rem; }
.p-encart p { color: var(--txt-clair); font-size: .9rem; margin-bottom: 1.25rem; }

.p-recherche { display: flex; gap: .6rem; }
.p-recherche input { flex: 1; }
@media (max-width: 560px) { .p-recherche { flex-direction: column; } }

/* Questions fréquentes */
.p-faq { display: flex; flex-direction: column; gap: .6rem; }
.p-faq details {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px;
  padding: 0 1.1rem; transition: var(--t-rapide);
}
.p-faq details[open] { border-color: var(--bgfi-bleu-40); box-shadow: var(--ombre-sm); }
.p-faq summary {
  list-style: none; cursor: pointer; padding: 1rem 0;
  font-size: .92rem; font-weight: 600; color: var(--txt-fonce);
  display: flex; align-items: center; gap: .75rem;
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after {
  content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--bgfi-bleu);
  line-height: 1; transition: transform .25s ease;
}
.p-faq details[open] summary::after { content: '−'; }
.p-faq .reponse { padding: 0 0 1.1rem; font-size: .86rem; color: var(--txt-clair); line-height: 1.75; }

/* ------------------------------------------------------------------ Pied */
.p-pied { background: var(--fond-rail); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 0; }
.p-pied-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.p-pied h5 {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; margin-bottom: 1rem;
}
.p-pied ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.p-pied a { color: rgba(255, 255, 255, .72); font-size: .85rem; }
.p-pied a:hover { color: #fff; }
.p-pied .intro { font-size: .85rem; line-height: 1.8; margin-bottom: 1.1rem; }
.p-pied .marque { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.p-pied .marque img { height: 42px; background: #fff; border-radius: 8px; padding: .25rem .4rem; }
.p-pied .marque .nom { font-family: var(--titre); font-size: 1.1rem; color: #fff; font-weight: 700; }
.p-pied-bas {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding: 1.25rem 0;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-size: .76rem;
}
.p-pied-bas img { height: 40px; }
.p-pied-bas .droite { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* =============================================================================
   Parcours en étapes (devis, souscription, paiement)
   ============================================================================= */
.p-parcours { background: var(--fond); min-height: 100vh; padding: 2.5rem 0 4rem; }
.p-parcours-grille { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; }

/* Fil d'étapes latéral */
.p-fil { position: sticky; top: 90px; }
.p-fil ol { list-style: none; display: flex; flex-direction: column; }
.p-fil li { display: flex; gap: .85rem; padding-bottom: 1.5rem; position: relative; }
.p-fil li:last-child { padding-bottom: 0; }
.p-fil li::before {
  content: ''; position: absolute; left: 15px; top: 34px; bottom: 6px; width: 2px;
  background: var(--bord);
}
.p-fil li:last-child::before { display: none; }
.p-fil .pastille {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  background: var(--blanc); border: 2px solid var(--bord); color: var(--txt-clair);
  font-family: var(--chiffres); font-weight: 700; font-size: .84rem;
}
.p-fil .t { font-size: .88rem; font-weight: 600; color: var(--txt-clair); }
.p-fil .s { font-size: .74rem; color: var(--txt-estompe); }
.p-fil li.faite .pastille { background: var(--bgfi-vert); border-color: var(--bgfi-vert); color: #fff; }
.p-fil li.faite::before { background: var(--bgfi-vert); }
.p-fil li.faite .t { color: var(--txt-moyen); }
.p-fil li.faite .pastille svg { width: 15px; height: 15px; }
.p-fil li.active .pastille { background: var(--bgfi-bleu); border-color: var(--bgfi-bleu); color: #fff; box-shadow: 0 0 0 4px var(--bgfi-bleu-10); }
.p-fil li.active .t { color: var(--bgfi-bleu); font-weight: 700; }

/* Fil horizontal (mobile et pages courtes) */
.p-fil-h { display: none; gap: .5rem; margin-bottom: 1.5rem; }
.p-fil-h .p { flex: 1; height: 4px; border-radius: 2px; background: var(--bord); }
.p-fil-h .p.faite { background: var(--bgfi-vert); }
.p-fil-h .p.active { background: var(--bgfi-bleu); }

/* Panneau de formulaire */
.p-panneau {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px;
  padding: 2rem; box-shadow: var(--ombre-sm);
}
.p-panneau > h2 { font-family: var(--titre); font-size: 1.6rem; color: var(--bgfi-bleu-nuit); margin-bottom: .35rem; }
.p-panneau > .intro { font-size: .86rem; color: var(--txt-clair); margin-bottom: 1.75rem; }
.p-groupe { margin-bottom: 1.75rem; }
.p-groupe > .titre {
  font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--bgfi-vert); margin-bottom: .9rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--bord);
}
.p-lignes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.p-lignes .plein { grid-column: 1 / -1; }
@media (max-width: 680px) { .p-lignes { grid-template-columns: minmax(0, 1fr); } }

.p-pied-panneau {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--bord);
}
.p-pied-panneau .p-btn--primaire { margin-left: auto; }

/* Cartes à cocher (garanties, moyens de paiement, choix) */
.p-choix { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.p-choix--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-choix--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .p-choix--2, .p-choix--3 { grid-template-columns: minmax(0, 1fr); } }

.p-carte-choix {
  display: flex; align-items: flex-start; gap: .8rem;
  border: 1px solid var(--bord); border-radius: 12px; padding: 1rem;
  cursor: pointer; transition: var(--t-rapide); background: var(--blanc);
  position: relative;
}
.p-carte-choix:hover { border-color: var(--bgfi-bleu-40); background: var(--bgfi-bleu-05); }
.p-carte-choix input { position: absolute; opacity: 0; width: 0; height: 0; }
.p-carte-choix.actif { border-color: var(--bgfi-bleu); background: var(--bgfi-bleu-05); box-shadow: 0 0 0 3px var(--bgfi-bleu-10); }
.p-carte-choix .ico {
  width: 38px; height: 38px; min-width: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bgfi-bleu-10); color: var(--bgfi-bleu);
}
.p-carte-choix.actif .ico { background: var(--bgfi-bleu); color: #fff; }
.p-carte-choix .ico svg { width: 18px; height: 18px; }
.p-carte-choix .corps { flex: 1; min-width: 0; }
.p-carte-choix .t { display: block; font-size: .88rem; font-weight: 600; color: var(--txt-fonce); }
.p-carte-choix .s { display: block; font-size: .76rem; color: var(--txt-clair); margin-top: .15rem; line-height: 1.6; }
.p-carte-choix .mt { font-family: var(--chiffres); font-size: .88rem; font-weight: 700; color: var(--bgfi-bleu); white-space: nowrap; }
.p-carte-choix .coche {
  width: 20px; height: 20px; min-width: 20px; border-radius: 50%;
  border: 2px solid var(--bord); display: grid; place-items: center; color: transparent;
  transition: var(--t-rapide);
}
.p-carte-choix .coche svg { width: 12px; height: 12px; }
.p-carte-choix.actif .coche { background: var(--bgfi-bleu); border-color: var(--bgfi-bleu); color: #fff; }

/* Zone de dépôt de pièce */
.p-depot {
  border: 2px dashed var(--bord); border-radius: 12px; padding: 1.5rem;
  text-align: center; cursor: pointer; transition: var(--t-rapide); background: var(--fond);
}
.p-depot:hover { border-color: var(--bgfi-bleu-40); background: var(--bgfi-bleu-05); }
.p-depot.rempli { border-style: solid; border-color: var(--vert); background: var(--vert-clair); }
.p-depot .ico { color: var(--bgfi-bleu); margin-bottom: .5rem; }
.p-depot.rempli .ico { color: var(--vert); }
.p-depot .ico svg { width: 24px; height: 24px; }
.p-depot .t { font-size: .86rem; font-weight: 600; color: var(--txt-fonce); }
.p-depot .s { font-size: .74rem; color: var(--txt-clair); margin-top: .2rem; }

/* Récapitulatif de prix */
.p-recap { position: sticky; top: 90px; }
.p-recap-carte {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px;
  overflow: hidden; box-shadow: var(--ombre-sm);
}
.p-recap-entete {
  background: linear-gradient(135deg, var(--bgfi-bleu) 0%, var(--bgfi-bleu-nuit) 100%);
  color: #fff; padding: 1.25rem;
}
.p-recap-entete .l { font-size: .76rem; opacity: .8; }
.p-recap-entete .v { font-family: var(--chiffres); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.2; }
.p-recap-entete .p { font-size: .74rem; opacity: .8; }
.p-recap-corps { padding: 1.25rem; }
.p-recap-ligne {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .82rem; padding: .45rem 0; color: var(--txt-moyen);
}
.p-recap-ligne .v { font-family: var(--chiffres); font-weight: 600; color: var(--txt-fonce); white-space: nowrap; }
.p-recap-ligne.total {
  border-top: 1px solid var(--bord); margin-top: .5rem; padding-top: .8rem;
  font-weight: 700; color: var(--txt-fonce);
}
.p-recap-ligne.total .v { color: var(--bgfi-bleu); font-size: 1rem; }
.p-recap-note {
  background: var(--ambre-clair); color: var(--ambre); border-radius: 10px;
  padding: .7rem .8rem; font-size: .74rem; line-height: 1.65; margin-top: 1rem;
  display: flex; gap: .5rem;
}
.p-recap-note svg { width: 14px; height: 14px; min-width: 14px; margin-top: .15rem; }

/* =============================================================================
   Suivi de dossier, attestation, confirmation
   ============================================================================= */
.p-resultat-entete {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--bord);
}
.p-resultat-entete .ref {
  font-family: var(--chiffres); font-size: 1.25rem; font-weight: 700; color: var(--bgfi-bleu-nuit);
}
.p-resultat-entete .meta { font-size: .78rem; color: var(--txt-clair); }
.p-resultat-entete .a-droite { margin-left: auto; }

.p-jalons { list-style: none; }
.p-jalon { display: flex; gap: 1rem; position: relative; padding-bottom: 1.75rem; }
.p-jalon:last-child { padding-bottom: 0; }
.p-jalon::before {
  content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--bord);
}
.p-jalon:last-child::before { display: none; }
.p-jalon .pt {
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  background: var(--fond); border: 2px solid var(--bord); color: var(--txt-clair);
}
.p-jalon .pt svg { width: 16px; height: 16px; }
.p-jalon.faite .pt { background: var(--vert-clair); border-color: var(--vert); color: var(--vert); }
.p-jalon.faite::before { background: var(--vert); }
.p-jalon.encours .pt { background: var(--bgfi-bleu); border-color: var(--bgfi-bleu); color: #fff; box-shadow: 0 0 0 4px var(--bgfi-bleu-10); }
.p-jalon .t { display: block; font-size: .92rem; font-weight: 600; color: var(--txt-fonce); }
.p-jalon.attente .t { color: var(--txt-clair); font-weight: 500; }
.p-jalon .d { display: block; font-size: .76rem; color: var(--txt-clair); margin-top: .1rem; }
.p-jalon .c { display: block; font-size: .82rem; color: var(--txt-moyen); margin-top: .4rem; line-height: 1.7; }

/* Attestation numérique */
.p-attestation {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.75rem; align-items: center;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px; padding: 1.75rem;
}
.p-qr {
  width: 200px; height: 200px; border-radius: 12px; padding: .75rem;
  background: #fff; border: 1px solid var(--bord);
}
.p-qr svg { width: 100%; height: 100%; display: block; }
.p-attestation .titre { font-family: var(--titre); font-size: 1.35rem; color: var(--bgfi-bleu-nuit); margin-bottom: .75rem; }
@media (max-width: 680px) { .p-attestation { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }

.p-verdict {
  display: flex; align-items: center; gap: 1rem;
  border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.p-verdict .r { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; display: grid; place-items: center; }
.p-verdict .r svg { width: 24px; height: 24px; }
.p-verdict .t { display: block; font-family: var(--titre); font-size: 1.35rem; }
.p-verdict .s { display: block; font-size: .84rem; opacity: .9; }
.p-verdict--valide { background: var(--vert-clair); color: var(--vert); }
.p-verdict--valide .r { background: var(--vert); color: #fff; }
.p-verdict--invalide { background: var(--rouge-clair); color: var(--rouge); }
.p-verdict--invalide .r { background: var(--rouge); color: #fff; }

.p-succes-rond {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: var(--vert-clair); color: var(--vert); display: grid; place-items: center;
  animation: pop .45s cubic-bezier(.16, 1, .3, 1) both;
}
.p-succes-rond svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =============================================================================
   Espace client connecté
   ============================================================================= */
.p-espace { background: var(--fond); min-height: calc(100vh - 140px); padding: 2rem 0 4rem; }
.p-espace-grille { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }

.p-menu { position: sticky; top: 90px; background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; }
.p-menu-client {
  display: flex; align-items: center; gap: .75rem; padding: 1.1rem;
  background: linear-gradient(135deg, var(--bgfi-bleu) 0%, var(--bgfi-bleu-nuit) 100%); color: #fff;
}
.p-menu-client .av {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); display: grid; place-items: center;
  font-weight: 700; font-size: .88rem;
}
.p-menu-client .n { font-size: .88rem; font-weight: 600; }
.p-menu-client .c { font-size: .72rem; opacity: .8; font-family: var(--chiffres); }
.p-menu nav { padding: .6rem; display: flex; flex-direction: column; gap: .15rem; }
.p-menu nav a {
  display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem;
  border-radius: 9px; font-size: .86rem; color: var(--txt-moyen); transition: var(--t-rapide);
}
.p-menu a svg { width: 17px; height: 17px; min-width: 17px; }
.p-menu nav a:hover { background: var(--bgfi-bleu-05); color: var(--bgfi-bleu); }
.p-menu nav a.actif { background: var(--bgfi-bleu); color: #fff; font-weight: 600; }
.p-menu nav a .pastille-nb {
  margin-left: auto; background: var(--rouge); color: #fff; font-size: .68rem; font-weight: 700;
  border-radius: 999px; padding: .1rem .4rem; min-width: 19px; text-align: center;
}
.p-menu nav a.actif .pastille-nb { background: rgba(255, 255, 255, .28); }
.p-menu .sortie { border-top: 1px solid var(--bord); padding: .6rem; }
.p-menu .sortie a { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 9px; font-size: .86rem; color: var(--rouge); transition: var(--t-rapide); }
.p-menu .sortie a:hover { background: var(--rouge-clair); color: var(--rouge); }

.p-page-titre { margin-bottom: 1.5rem; }
.p-page-titre h1 { font-family: var(--titre); font-size: 1.85rem; color: var(--bgfi-bleu-nuit); }
.p-page-titre p { font-size: .86rem; color: var(--txt-clair); margin-top: .2rem; }

/* Carte de contrat */
.p-contrats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .p-contrats { grid-template-columns: minmax(0, 1fr); } }
.p-contrat {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px;
  overflow: hidden; transition: var(--t-normale);
}
.p-contrat:hover { box-shadow: var(--ombre-lg); border-color: var(--bgfi-bleu-40); }
.p-contrat-entete {
  display: flex; align-items: center; gap: .8rem; padding: 1.1rem;
  border-bottom: 1px solid var(--bord);
}
.p-contrat-entete .ico {
  width: 42px; height: 42px; min-width: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bgfi-bleu-10); color: var(--bgfi-bleu);
}
.p-contrat-entete .ico svg { width: 20px; height: 20px; }
.p-contrat-entete .t { font-size: .95rem; font-weight: 700; color: var(--txt-fonce); }
.p-contrat-entete .n { font-size: .74rem; color: var(--txt-clair); font-family: var(--chiffres); }
.p-contrat-corps { padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.p-contrat-corps .l { display: flex; justify-content: space-between; font-size: .82rem; gap: 1rem; }
.p-contrat-corps .l span:first-child { color: var(--txt-clair); }
.p-contrat-corps .l span:last-child { font-weight: 600; color: var(--txt-fonce); text-align: right; }
.p-contrat-pied { padding: .9rem 1.1rem; background: var(--fond); display: flex; gap: .5rem; flex-wrap: wrap; }
.p-contrat-pied .p-btn { padding: .5rem .8rem; font-size: .8rem; }
.p-contrat-pied .p-btn svg { width: 14px; height: 14px; }

/* Compte à rebours d'échéance */
.p-echeance {
  display: flex; align-items: center; gap: .6rem;
  background: var(--ambre-clair); color: var(--ambre);
  border-radius: 10px; padding: .6rem .8rem; font-size: .78rem;
}
.p-echeance svg { width: 15px; height: 15px; min-width: 15px; }

/* ------------------------------------------------------------------ Adaptatif */
@media (max-width: 1150px) {
  .p-parcours-grille { grid-template-columns: 220px minmax(0, 1fr); }
  .p-recap { grid-column: 1 / -1; position: static; }
  .p-heros h1 { font-size: 2.4rem; }
  .p-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
@media (max-width: 960px) {
  .p-nav { display: none; }
  .p-nav.ouvert {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blanc); border-bottom: 1px solid var(--bord);
    padding: .75rem 1rem; box-shadow: var(--ombre-lg);
  }
  .p-burger { display: grid; }
  .p-actions .p-btn--fantome { display: none; }
  .p-marque .sous { display: none; }
  .p-marque .nom { font-size: 1.05rem; }
  .p-entete .p-conteneur { gap: .75rem; }
  .p-heros-grille { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 3rem 0; }
  .p-parcours-grille { grid-template-columns: minmax(0, 1fr); }
  .p-fil { display: none; }
  .p-fil-h { display: flex; }
  .p-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-pas::after { display: none; }
  .p-encart { grid-template-columns: minmax(0, 1fr); padding: 1.75rem; }
  .p-espace-grille { grid-template-columns: minmax(0, 1fr); }
  .p-menu { position: static; }
  .p-menu nav { flex-direction: row; overflow-x: auto; }
  .p-menu nav a { white-space: nowrap; }
}
@media (max-width: 680px) {
  .p-section { padding: 2.5rem 0; }
  .p-heros h1 { font-size: 1.95rem; }
  .p-section-titre h2 { font-size: 1.5rem; }
  .p-produits, .p-etapes { grid-template-columns: minmax(0, 1fr); }
  .p-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-panneau { padding: 1.35rem; }
  .p-pied-grille { grid-template-columns: minmax(0, 1fr); }
  .p-microbarre .droite { display: none; }
  .p-actions .p-btn--primaire { display: none; }
  .p-nav.ouvert { padding-bottom: 1rem; }
  .p-nav.ouvert::after {
    content: ''; display: block; height: 1px; background: var(--bord); margin: .5rem 0;
  }
}

/* ------------------------------------------------- Listes clé / valeur */
.p-kv { display: flex; flex-direction: column; }
.p-kv-l {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: .6rem 0; border-bottom: 1px solid var(--bord); font-size: .84rem;
}
.p-kv-l:last-child { border-bottom: none; }
.p-kv-l .k { color: var(--txt-clair); }
.p-kv-l .v { font-weight: 600; color: var(--txt-fonce); text-align: right; }
