/* Pages produit Crelis (gabarit private/partials/product.php, maquette LP-06 « Un prêt personnel, à votre mesure. »).
   Chargée après app.css et home.css (en-tête .nav, surlignage .u, simulateur #simbox, repères .trust y sont définis).
   Mobile d'abord. Budget du premier écran à 390 × 844 : bas de « Continuer ma demande » ≤ 700 px et exemple
   représentatif entier dans l'écran. Pas de bandeau supérieur (.topbar) : le fil d'Ariane prend sa place. */

/* Accroche : même dégradé ciel → crème que l'accueil */
.pp-hero{background:linear-gradient(180deg,var(--sky),var(--bg) 85%);padding:4px 0 24px}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;font-size:.8rem;line-height:1.2;color:var(--muted);min-height:32px}
.crumbs li{display:flex;align-items:center}
.crumbs li+li::before{content:"";width:6px;height:6px;margin:0 10px 0 2px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg)}
/* Cible tactile de 44 px sans élargir la ligne : marges négatives (la ligne garde 32 px) */
.crumbs a{display:inline-flex;align-items:center;min-height:44px;margin:-6px 0;padding:0 4px 0 0;color:var(--brand);font-weight:600;text-underline-offset:3px}
.crumbs [aria-current]{color:var(--fg);font-weight:600}
.pp-hero h1{font-size:clamp(1.95rem,8.6vw,2.8rem);letter-spacing:-.04em;line-height:1.08;color:var(--brand);margin-top:2px}
.pp-answer{margin-top:8px;font-size:1rem;line-height:1.45;color:var(--fg);max-width:60ch}

/* Choix entre variantes d'un produit (clé switch, ex. voiture neuve / d'occasion) : deux pastilles-liens de 44 px,
   la page en cours en jaune (The Marker Rule : texte bleu nuit sur jaune, clair comme sombre). */
.pp-switch{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:12px;max-width:420px}
.pp-switch a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--brand);font-weight:600;font-size:.92rem;line-height:1.2;text-align:center;text-decoration:none;hyphens:auto;overflow-wrap:anywhere}
.pp-switch a:hover{border-color:var(--brand)}
.pp-switch a[aria-current=page]{background:var(--hl);border-color:var(--hl);color:var(--hl-fg)}

/* Simulateur : remonte sur l'accroche comme sur l'accueil */
.pp .formwrap{margin-top:-14px}
/* Encart de mensualité bleu nuit (maquette LP-06) ; le chiffre reste sur le badge jaune */
.simbox-encart .est{background:var(--hero-bg);border-radius:14px;padding:8px 8px 8px 14px;margin-top:8px}
.simbox-encart .est span{color:var(--hero-muted)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .simbox-encart .est{background:var(--brand-soft)}}
:root[data-theme="dark"] .simbox-encart .est{background:var(--brand-soft)}

/* Repères : pictogrammes dessinés (trait bleu nuit sur carré jaune) */
.pp-facts b{font-size:.8rem}
.pp-answer,.pp-updated,.pp-steps p,.pp-tablehead p,.pp details>p{text-wrap:pretty}
.pp-facts .ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Sections */
.pp .s{padding-block:32px}
.pp .s h2,.pp-night h2{font-size:1.6rem;letter-spacing:-.03em}
.pp .s h2{color:var(--brand)}
/* Étapes : pastilles jaunes numérotées (maquette), liste et non cartes */
.pp-steps .steps{margin-top:18px;gap:16px}
.pp-steps .steps li::before{background:var(--hl);color:var(--hl-fg);font-family:var(--font-display)}
.pp-steps .steps h3{color:var(--brand)}

/* Bloc bleu nuit avec le tableau des mensualités par durée (vrai <table>) */
.pp-night{background:var(--hero-bg);color:var(--hero-fg);padding:32px 0}
.pp-night h2 em{font-style:normal;color:var(--hl);white-space:nowrap}
.pp-tablehead p{color:var(--hero-muted);margin-top:10px}
.pp-tablecard{margin-top:18px;background:var(--surface);color:var(--fg);border-radius:16px;overflow:hidden;box-shadow:0 4px 14px rgba(8,14,40,.18)}
.pp-tablecard table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:.88rem}
.pp-tablecard caption{caption-side:bottom;text-align:left;padding:10px 12px 12px;font-size:.76rem;line-height:1.4;color:var(--muted);border-top:1px solid var(--line)}
.pp-tablecard th,.pp-tablecard td{padding:11px 8px;text-align:right;vertical-align:middle}
.pp-tablecard th:first-child{text-align:left;padding-left:12px}
.pp-tablecard tr>:last-child{padding-right:12px}
.pp-tablecard thead th{background:var(--brand-soft);color:var(--fg);font-size:.7rem;font-weight:700;line-height:1.25}
.pp-tablecard tbody tr+tr>*{border-top:1px solid var(--line)}
.pp-tablecard tbody th{font-weight:600;white-space:nowrap}
.pp-tablecard td{white-space:nowrap}
.pp-tablecard td:nth-child(2){font-family:var(--font-display);font-weight:600;font-size:1rem;color:var(--brand)}

/* Exemples de projets (clé chips, ex. types de travaux) : étiquettes NON cliquables, donc ni pilule ni bordure
   (les pastilles-liens .pp-switch et les durées du simulateur gardent la pilule) ; fond lavande, texte bleu nuit. */
.pp .pp-chips{padding-block:28px 4px}
.pp-chips p{margin-top:8px;color:var(--muted);text-wrap:pretty}
/* Revue 1 (22/11) : exemples en liste à coches sur deux colonnes (plus de pastilles, qui ressemblaient à des boutons). */
.pp-chips ul{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}
.pp-chips li{position:relative;padding-left:22px;color:var(--fg);font-size:.95rem;line-height:1.4}
.pp-chips li::before{content:"";position:absolute;left:3px;top:.38em;width:10px;height:5px;border-left:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(-45deg)}
.pp-chips .pp-chips-note{margin-top:14px;color:var(--fg);max-width:60ch}
.pp-chips-note a{color:var(--brand);font-weight:600;text-underline-offset:3px;display:inline-block;padding-block:11px;margin-block:-11px}

/* Teinte de page facultative (clé tint = 'sauge', maquette LP-08 regroupement) : l'accroche passe du ciel au vert
   sauge très clair, le bloc compare prend un fond sauge. Le reste de la charte ne change pas (crème, bleu nuit,
   jaune, rose réservé à l'action). Contrastes calculés (tâche 6) : bleu nuit #17186b sur #d9eadf 12,2:1, ardoise
   #566079 sur #d9eadf 5,0:1 et sur #e8f1ea 5,4:1, bleu nuit sur jaune pâle #fff6c7 14,0:1 ; en sombre, #e8ecf8 sur
   #16302a 11,9:1, #a2adc9 sur #16302a 6,3:1 et sur #0f1f1c 7,6:1, #9db4ff sur #16302a 7,0:1. */
.pp-sauge{--sky:#d9eadf;--tint:#e8f1ea}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pp-sauge{--sky:#16302a;--tint:#0f1f1c}}
:root[data-theme="dark"] .pp-sauge{--sky:#16302a;--tint:#0f1f1c}

/* Sections courtes (clé info) : paires sous-titre + texte séparées par un filet, sans cartes */
.pp-info-list{margin-top:14px;display:grid;gap:0}
.pp-info-list>div{padding:14px 0;border-top:1px solid var(--line)}
.pp-info-list>div:last-child{padding-bottom:0}
.pp-info-list h3{font-size:1.02rem;color:var(--brand);letter-spacing:-.01em}
.pp-info-list p{margin-top:4px;color:var(--fg);text-wrap:pretty;max-width:60ch}
.pp-info-intro{margin-top:8px;color:var(--muted);max-width:60ch;text-wrap:pretty}
.pp-info-list p a,.pp-info-intro a,.pp-info-note a{color:var(--brand);font-weight:600;text-decoration-color:var(--accent);text-underline-offset:3px}
.pp-info-note{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:.92rem;max-width:60ch;text-wrap:pretty}

/* Bloc compare (maquette LP-08) : « Vos échéances actuelles » face à « Scénario possible », statique et sans chiffre */
.pp-compare{background:var(--tint,transparent)}
.pp-compare-intro{margin-top:8px;color:var(--muted);max-width:60ch;text-wrap:pretty}
.pp-compare-grid{margin-top:18px;display:grid;gap:6px;justify-items:stretch}
.pp-cmp{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 2px 8px rgba(23,24,107,.06)}
.pp-cmp h3{font-size:1.05rem;color:var(--brand)}
.pp-cmp dl{margin:10px 0 0;display:block;font-size:.95rem}
/* 24/11 (défaut 28) : définitions empilées (terme en gras, explication dessous), sans valeur calée à droite : le bloc
   se lit comme un texte, il ne ressemble plus à un formulaire à remplir. */
.pp-cmp dl>div{display:block;padding:9px 0;border-top:1px solid var(--line)}
.pp-cmp dt{color:var(--fg);font-weight:700}
.pp-cmp dd{margin:2px 0 0;font-weight:400;color:var(--muted)}
.pp-cmp p{margin-top:10px;font-size:.9rem;line-height:1.45;color:var(--muted);text-wrap:pretty}
/* Scénario : jaune pâle, texte bleu nuit (The Marker Rule) ; en sombre, surface avec contour jaune */
.pp-cmp-then{background:#fff6c7;border-color:#f3e08a}
.pp-cmp-then h3,.pp-cmp-then dt,.pp-cmp-then dd,.pp-cmp-then p{color:#17186b}
.pp-cmp-then dl>div{border-top-color:#eadb8e}
.pp-cmp-then p{font-weight:600}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pp-cmp-then{background:var(--surface);border:2px solid var(--hl)}
  :root:not([data-theme="light"]) .pp-cmp-then h3,:root:not([data-theme="light"]) .pp-cmp-then dt,:root:not([data-theme="light"]) .pp-cmp-then dd,:root:not([data-theme="light"]) .pp-cmp-then p{color:var(--fg)}
  :root:not([data-theme="light"]) .pp-cmp-then dl>div{border-top-color:var(--line)}}
:root[data-theme="dark"] .pp-cmp-then{background:var(--surface);border:2px solid var(--hl)}
:root[data-theme="dark"] .pp-cmp-then h3,:root[data-theme="dark"] .pp-cmp-then dt,:root[data-theme="dark"] .pp-cmp-then dd,:root[data-theme="dark"] .pp-cmp-then p{color:var(--fg)}
:root[data-theme="dark"] .pp-cmp-then dl>div{border-top-color:var(--line)}
.pp-cmp-arrow{display:grid;place-items:center;height:28px;color:var(--brand)}
.pp-cmp-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Questions en accordéons (details / summary natifs, ouverts sans script) */
.pp .faq{margin-top:16px}
.pp .faq p a{color:var(--brand);font-weight:600;text-underline-offset:3px}
.pp details{border-radius:16px;box-shadow:0 2px 8px rgba(23,24,107,.06)}
.pp summary{line-height:1.3;padding-block:6px}
.pp details dl{margin:0 0 10px}
.pp details .fine{padding-bottom:14px}
/* 26/11 (lot SEO 2611) : ligne de source sous l'exemple représentatif (taeg_source_ligne()). Le lien reste dans le fil
   de la phrase (lien en ligne, toléré par le contrôle des cibles) : en bloc de 44 px, il coupait la phrase en trois. */
.pp details .pp-src{margin:0;padding-bottom:12px;font-size:.88rem;line-height:1.6;color:var(--muted)}
.pp details .pp-src a{color:var(--brand);font-weight:600;text-underline-offset:3px}

/* Liens « Pour aller plus loin » (clé related, tâche 7) : sous les questions, liens de 44 px qui se replient */
.pp-related{margin-top:18px;display:flex;flex-wrap:wrap;align-items:center;column-gap:18px;color:var(--muted);font-size:.92rem}
.pp-related span{flex-basis:100%}
.pp-related a{display:inline-flex;align-items:center;min-height:44px;color:var(--brand);font-weight:600;text-underline-offset:3px}
@media (min-width:960px){.pp-related{grid-column:2}.pp-related span{flex-basis:auto}}
/* Lien vers la demande de rappel (clé callback, tâche 9) : une ligne discrète sous les questions, lien de 44 px */
.pp-callback{margin-top:14px;color:var(--muted);font-size:.92rem}
.pp-callback a{display:inline-flex;align-items:center;min-height:44px;color:var(--brand);font-weight:600;text-underline-offset:3px}
@media (min-width:960px){.pp-callback{grid-column:2}}

/* Bloc final et date de mise à jour */
.pp-end{padding-bottom:8px}
.pp .cta{border-radius:20px;position:relative;overflow:hidden;padding:26px 20px}
.pp .cta::after{content:"";position:absolute;right:-50px;bottom:-60px;width:170px;height:170px;border-radius:50%;background:var(--hl)}
.pp .cta h2{font-size:1.4rem;position:relative;z-index:1}
.pp .cta p{position:relative;z-index:1;margin-top:-6px}
.pp .cta .btn{position:relative;z-index:1;align-self:flex-start;flex:0 0 auto}
.pp-updated{margin-top:14px}
.pp footer{padding-bottom:110px}

/* Tâche 10 : avec les vraies polices (Sora et Inter hébergées, plus larges que les replis des captures précédentes),
   le bas du bouton principal passait 700 px (voiture d'occasion 707 px à 390 × 844 ; 717 px à 360 × 740). Resserrage
   léger sous 600 px, sans rien retirer : titre un peu moins haut, réponse à 1,4 d'interligne, 4 px de moins sous
   l'accroche et dans la carte. */
@media (max-width:599px){
  .pp-hero{padding-bottom:20px}
  .pp-hero h1{font-size:clamp(1.85rem,8.2vw,2.8rem);line-height:1.06}
  .pp-answer{line-height:1.4}
  .pp #simbox .est{margin-top:4px}
  .pp #startBtn{margin-top:2px}
}
/* Reflow à 320 px (zoom 400 %, WCAG 1.4.10) : le tableau à quatre colonnes ne tenait plus dans la carte (dernière
   colonne rognée). Cellules resserrées sous 360 px ; et, en dernier recours, la carte défile à l'horizontale au lieu
   de rogner (la page, elle, ne défile jamais). */
.pp-tablecard{overflow:auto}
@media (max-width:359px){
  .pp-tablecard table{font-size:.8rem}
  .pp-tablecard th,.pp-tablecard td{padding:10px 4px}
  .pp-tablecard th:first-child{padding-left:10px}.pp-tablecard tr>:last-child{padding-right:10px}
  .pp-tablecard thead th{font-size:.66rem}
  .pp-tablecard td:nth-child(2){font-size:.9rem}
}
@media (min-width:600px){
  .pp-hero{padding:14px 0 36px}
  .pp .formwrap{margin-top:-22px}
  .pp #simbox{gap:10px;padding:20px 16px}
}

/* ==========================================================================
   Ordinateur, à partir de 960 px (même point de rupture que l'accueil) : accroche à gauche, simulateur à droite,
   premier écran complet à 1280 × 720 (bouton et exemple représentatif compris). Conteneur 1152 px, gouttières 32 px.
   ========================================================================== */
@media (min-width:960px){
  .pp .wrap{max-width:1152px;padding-left:32px;padding-right:32px}
  .pp-band{background:linear-gradient(180deg,var(--sky),var(--bg) 88%)}
  .pp-grid{max-width:1152px;margin:0 auto;padding:28px 32px 48px;display:grid;grid-template-columns:minmax(0,1fr) 440px;column-gap:64px;align-items:center}
  .pp-hero{background:none;padding:0}
  .pp-hero .wrap{padding:0;max-width:none}
  .pp-hero h1{font-size:clamp(3rem,4.6vw,4.1rem);line-height:1.04;max-width:9em;margin-top:18px}
  .pp-answer{font-size:1.15rem;line-height:1.5;margin-top:20px;max-width:40ch}
  .pp-switch{margin-top:24px}
  .pp .formwrap{margin:0;padding:0;max-width:none}
  .pp #simbox{padding:20px 22px}
  .pp #simbox .fine{text-wrap:pretty}
  /* 27/11 (lot « photos ») : page à photo (clé photo, .pp-grid-shot) : comme .hanswer-w sur l'accueil, la photo, placée
     après le simulateur dans le code, passe dans la colonne de gauche sous l'accroche ; lignes 1fr / auto / auto / 1fr :
     le groupe de gauche reste centré face au simulateur. Pages sans photo : règles ci-dessus seules, inchangées.
     Le simulateur est calé en haut (align-self:start) : avec la photo, la colonne de gauche devient la plus haute, et
     un simulateur centré descendrait de 40 à 115 px ; calé en haut, il garde la place qu'il a sur une page sans photo. */
  .pp-grid-shot{grid-template-rows:1fr auto auto 1fr}
  .pp-grid-shot>.pp-hero{grid-column:1;grid-row:2}
  .pp-grid-shot>.formwrap{grid-column:2;grid-row:1/-1;align-self:start}
  .pp-grid-shot>.pp-shot-w{grid-column:1;grid-row:3;align-self:start;margin:28px 0 0;padding:0;max-width:390px}
  .pp-grid-shot>.pp-shot-w .shot{margin:0 10px 10px 0}
  .pp.asking .pp-grid-shot{grid-template-rows:none}

  /* Demande en cours (classe posée par home.js) : l'accroche s'efface, la demande prend une colonne de 560 px */
  .pp.asking .pp-hero{display:none}
  .pp.asking .pp-grid{grid-template-columns:minmax(0,560px);justify-content:center;padding-top:32px;padding-bottom:48px}
  .pp.asking #funnel{padding:28px 32px}
  #demande{scroll-margin-top:24px}

  .pp .s{padding-block:72px}
  .pp .pp-chips{padding-block:64px 0}
  .pp-chips ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px;margin-top:20px;max-width:720px}
  .pp-chips li{font-size:1rem}
  .pp .s h2,.pp-night h2{font-size:2.3rem;line-height:1.1}
  .pp-info-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px;margin-top:28px}
  .pp-info-list>div,.pp-info-list>div:last-child{padding:18px 0 20px}
  .pp-info-list h3{font-size:1.15rem}
  .pp-info-note{margin-top:8px}
  .pp-compare-intro{font-size:1.05rem}
  .pp-compare-grid{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:center;margin-top:32px}
  .pp-cmp{padding:24px 26px;height:100%}
  .pp-cmp-arrow svg{transform:rotate(-90deg)}
  .pp-steps .steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin-top:32px}
  .pp-steps .steps li{grid-template-columns:1fr;gap:14px;align-content:start}
  .pp-steps .steps p{max-width:30ch}

  .pp-night{padding:72px 0}
  .pp-tablewrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:64px;align-items:center}
  .pp-tablehead p{font-size:1.05rem;max-width:34ch}
  .pp-tablecard{margin-top:0}
  .pp-tablecard table{font-size:1rem}
  .pp-tablecard th,.pp-tablecard td{padding:14px 16px}
  .pp-tablecard th:first-child{padding-left:24px}
  .pp-tablecard tr>:last-child{padding-right:24px}
  .pp-tablecard thead th{font-size:.78rem}
  .pp-tablecard td:nth-child(2){font-size:1.15rem}
  .pp-tablecard caption{padding:12px 24px 14px}

  .pp details{padding:0 22px}
  .pp details>p,.pp details dl{max-width:68ch}

  .pp .cta{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:48px;row-gap:8px;padding:44px 52px}
  .pp .cta h2{font-size:2.1rem;line-height:1.12;max-width:22ch;grid-column:1}
  .pp .cta p{grid-column:1;margin-top:0}
  .pp .cta .btn{grid-column:2;grid-row:1/3;align-self:center;padding:0 34px}
  .pp .cta::after{width:240px;height:240px;right:-70px;bottom:-120px}
  .pp-end{padding-bottom:16px}

  .pp footer{padding-bottom:48px;border-top:0;background:linear-gradient(var(--line),var(--line)) top center/calc(100% - 64px) 1px no-repeat}
  .pp footer p{max-width:75ch}
  .pp .sticky{display:none}
}
