/* css/guides.css (08.11.2026, MARQUEUR-GUIDES-WEB) : styles communs des guides « web + PDF à télécharger »
   (devenir-independant-geneve, differences-3a-3b, epargner-tot, epargne-reguliere, chiffres-cles-2026, checklist-hypotheque).
   Chargé par ces pages seules, via partials/guide-outils.php. Cache 1 an : toute modification -> changer ?v= dans
   partials/guide-outils.php (constante GI_CSS_V), un seul endroit. */

/* Bandeau */
.gi-hero{background:linear-gradient(120deg,#0E2A47 0%,#12365C 45%,#2E6FB0 100%);color:#fff;padding:4.5rem 0 4.25rem;position:relative;overflow:hidden}
.gi-hero::before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-170px;top:-230px;background:rgba(78,157,63,.2)}
.gi-hero::after{content:"";position:absolute;width:760px;height:760px;border-radius:50%;right:-280px;bottom:-560px;background:rgba(255,255,255,.05)}
.gi-hero .container{position:relative;z-index:1}
.gi-badge{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:.3rem .9rem;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.gi-hero h1{color:#fff;font-weight:800;font-size:clamp(2rem,4vw,3.1rem);line-height:1.1;margin:1.1rem 0 1rem;letter-spacing:-.02em}
.gi-hero h1 em{font-style:normal;color:#9BD48C}
.gi-hero .lead{color:#CBDDEE;max-width:40rem;font-size:1.15rem}
.gi-hero .lead b{color:#fff}
.gi-meta{color:#a9c4df;font-size:.88rem;margin:1rem 0 0}
.gi-couv{display:block;position:relative;width:230px;margin:0 2rem 0 auto;transform:rotate(3deg);transition:transform .25s}
.gi-couv:hover{transform:rotate(0) translateY(-6px)}
.gi-couv img{width:230px;height:auto;border-radius:8px;box-shadow:0 24px 50px rgba(0,0,0,.4);display:block;background:#fff}
.gi-couv span{position:absolute;left:50%;bottom:-16px;transform:translateX(-50%);white-space:nowrap;background:#fff;color:#12365C;font-weight:700;font-size:.82rem;border-radius:999px;padding:.4rem 1rem;box-shadow:0 6px 18px rgba(0,0,0,.25)}

/* Sections */
.gi-sec{padding:4rem 0}
.gi-gris{background:#f6f8fb}
.gi-kicker{display:block;font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#2E6FB0;margin-bottom:.5rem}
.gi-sec h2{font-weight:800;color:#0b2a4a;letter-spacing:-.01em}
.gi-chapo{color:#5A6B7C;max-width:46rem;font-size:1.05rem}
.gi-frise{list-style:none;padding:0;margin:1.75rem 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}
.gi-frise a{display:flex;align-items:center;gap:.65rem;height:100%;padding:.8rem .9rem;background:#fff;border:1px solid #E6EBF1;border-radius:.8rem;text-decoration:none;color:#101F2E;font-weight:600;font-size:.92rem;line-height:1.25;transition:border-color .15s,box-shadow .15s}
.gi-frise a:hover{border-color:var(--c);box-shadow:0 6px 18px rgba(16,31,46,.08);color:#101F2E}
.gi-frise .n{flex:0 0 2rem;height:2rem;border-radius:50%;background:var(--c);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.9rem}
.gi-verite{height:100%;background:#fff;border:1px solid #E6EBF1;border-top:4px solid var(--c);border-radius:1rem;padding:1.5rem}
.gi-verite .num{font-size:2.2rem;font-weight:800;color:var(--c);line-height:1}
.gi-verite h3{font-size:1.12rem;font-weight:800;margin:.6rem 0;color:#101F2E}
.gi-verite p{color:#5A6B7C;margin:0}
.gi-verite b{color:#101F2E}

/* Étapes (ligne de temps) */
.gi-etapes{position:relative;margin-top:2rem}
.gi-etapes::before{content:"";position:absolute;left:27px;top:10px;bottom:10px;width:2px;background:#dbe3ee}
.gi-groupe{position:relative;padding:1rem 0 1.25rem 80px}
.gi-groupe-t{font-size:1.25rem;font-weight:800;color:#0b2a4a;margin:0 0 .25rem}
.gi-groupe .gi-chapo{font-size:1rem;margin:0}
.gi-etape{position:relative;display:flex;gap:1.5rem;margin-bottom:1.75rem;scroll-margin-top:calc(var(--nav-h) + 20px)}
.gi-num{flex:0 0 56px;height:56px;border-radius:50%;background:var(--c);color:#fff;font-weight:800;font-size:1.15rem;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 6px #f6f8fb;position:relative;z-index:1}
.gi-carte{flex:1;min-width:0;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1.5rem 1.75rem;box-shadow:0 4px 16px rgba(16,31,46,.04)}
.gi-carte-tete{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}
.gi-carte h3{font-size:1.3rem;font-weight:800;color:#101F2E;margin:0}
.gi-tag{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:.25rem .7rem}
.gi-tag.oblig{background:#FBE9E7;color:#B42318}
.gi-tag.selon{background:#FDF3E7;color:#B45309}
.gi-quand{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5b6880;margin:.5rem 0 .75rem}
.gi-lignes{margin:0}
.gi-lignes>div{display:grid;grid-template-columns:190px 1fr;gap:1rem;padding:.7rem 0;border-top:1px solid #EEF2F7}
.gi-lignes dt{font-weight:700;color:#2E6FB0;font-size:.92rem}
.gi-lignes dd{margin:0;color:#45566a}
.gi-lignes dd b,.gi-lignes dd strong{color:#101F2E}
.gi-reco,.gi-att{border-radius:.75rem;padding:.9rem 1.1rem;margin-top:1rem;font-size:.95rem}
.gi-reco{background:#F3FAF1;border:1px solid #CDE8C6;color:#3E5C38}
.gi-att{background:#FDF3E7;border:1px solid #F2DDC0;color:#7A4A12}
.gi-reco b,.gi-att b{color:inherit}
.gi-lbl{display:block;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.3rem}
.gi-reco .gi-lbl{color:#15803D}.gi-att .gi-lbl{color:#B45309}

/* Bande « Télécharger notre guide » */
.gi-pdf{display:flex;align-items:center;gap:1.5rem;background:#fff;border:1px solid #dbe3ee;border-radius:1rem;padding:1.25rem 1.5rem;box-shadow:0 8px 24px rgba(16,31,46,.06)}
.gi-pdf img{width:74px;height:auto;border-radius:4px;box-shadow:0 4px 12px rgba(16,31,46,.2);transform:rotate(-3deg);flex:none;background:#fff}
.gi-pdf .txt{flex:1}
.gi-pdf .t{font-size:1.1rem;font-weight:800;margin:0 0 .25rem;color:#0b2a4a}
.gi-pdf p{margin:0;color:#5A6B7C;font-size:.95rem}
.gi-pdf .btn{white-space:nowrap}

/* Tableaux */
.gi-table{background:#fff;border-radius:1rem;overflow:hidden;border:1px solid #E6EBF1}
.gi-table table{margin:0}
.gi-table thead th{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#5b6880;background:#f6f8fb;padding:.85rem 1rem;vertical-align:bottom}
.gi-table td,.gi-table tbody th,.gi-table tfoot th{padding:.85rem 1rem;vertical-align:top}
.gi-table tbody th{font-weight:700;color:#101F2E;min-width:11rem}
.gi-table td.taux{font-weight:800;color:#12365C;font-size:1.1rem;white-space:nowrap}
.gi-table td.num,.gi-table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Préfixe .gi-table : Bootstrap colore toutes les cellules de .table avec une règle plus forte qu'une simple classe. */
.gi-rouge,.gi-table td.gi-rouge{color:#B42318;font-weight:700}.gi-table td.gi-orange{color:#B45309;font-weight:600}
.gi-table td.gi-vert{color:#15803D;font-weight:700}.gi-table td.gi-gris-t{color:#5A6B7C}
.gi-table .gi-total td,.gi-table .gi-total th,.gi-table tfoot td,.gi-table tfoot th{background:#EEF3F9;color:#12365C;font-weight:800}
.gi-table tr.marque td{background:#FFF7E6}
.gi-details{margin-top:1.25rem;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;overflow:hidden}
.gi-details summary{cursor:pointer;padding:1rem 1.25rem;font-weight:700;color:#0b2a4a;list-style:none;display:flex;align-items:center;gap:.7rem}
.gi-details summary::-webkit-details-marker{display:none}
.gi-details summary::before{content:"+";flex:none;width:1.6rem;height:1.6rem;border-radius:50%;background:#EEF3F9;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:#12365C}
.gi-details[open] summary::before{content:"\2212"}
.gi-details .gi-table{border:0;border-top:1px solid #E6EBF1;border-radius:0}
/* Comparatif 3a / 3b : sur téléphone, une carte par ligne avec le nom de la colonne au-dessus de chaque valeur */
.gi-comparatif thead th{text-transform:none;letter-spacing:0;font-size:.85rem;color:#fff;background:#12365C}
.gi-comparatif thead th:first-child{background:#f6f8fb}
.gi-comparatif tbody th{color:#12365C}
@media (max-width:767.98px){
  .gi-comparatif table,.gi-comparatif tbody,.gi-comparatif tr,.gi-comparatif th,.gi-comparatif td{display:block;width:100%}
  .gi-comparatif thead{display:none}
  .gi-comparatif tbody tr{border-top:1px solid #E6EBF1;padding:.4rem 0}
  .gi-comparatif tbody tr:first-child{border-top:0}
  .gi-comparatif tbody th{padding-bottom:.2rem;border:0}
  .gi-comparatif td{border:0!important;padding-top:.35rem;padding-bottom:.35rem}
  .gi-comparatif td::before{content:attr(data-col);display:block;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#5b6880;margin-bottom:.1rem}
}

/* Encadrés */
.gi-alerte{border:2px solid #B42318;background:#FEF4F3;border-radius:1rem;padding:1.4rem 1.6rem;margin-top:1.75rem}
.gi-alerte h3{color:#B42318;font-size:1.15rem;font-weight:800}
.gi-alerte p{color:#7A2E28}
.gi-alerte p:last-child{margin-bottom:0}
.gi-alerte b{color:#5C1F1A}
.gi-place{background:#fff;border:1px solid #dbe3ee;border-radius:1rem;padding:1.5rem;margin-top:1.75rem}
.gi-place h3{font-size:1.1rem;font-weight:800;color:#0b2a4a}
.gi-info{background:#EEF4FF;border:1px solid #c9dbf5;border-radius:1rem;padding:1.3rem 1.5rem;color:#1d3d66}
.gi-info h3{font-size:1.1rem;font-weight:800;color:#12365C}
.gi-info p:last-child{margin-bottom:0}
.gi-info b{color:#0b2a4a}
.gi-verdict{background:#F3FAF1;border:1px solid #CDE8C6;border-radius:1rem;padding:1.3rem 1.5rem;color:#2f4a2a;font-size:1.05rem}
.gi-verdict b{color:#1d3a18}
.gi-verdict p:last-child{margin-bottom:0}
.gi-note{color:#5A6B7C;font-size:.9rem;max-width:52rem}
.gi-piege{height:100%;background:#fff;border:1px solid #E6EBF1;border-left:4px solid #b4540a;border-radius:1rem;padding:1.4rem}
.gi-piege h3{font-size:1.05rem;font-weight:800;color:#101F2E}
.gi-piege p{color:#5A6B7C;margin:0}
.gi-piege b{color:#101F2E}

/* Duel chiffré (deux épargnants) */
.gi-duo{height:100%;background:#fff;border:1px solid #E6EBF1;border-top:5px solid var(--c);border-radius:1rem;padding:1.5rem 1.6rem}
.gi-duo.gagne{box-shadow:0 14px 34px rgba(16,31,46,.10)}
.gi-duo .gi-gagne{display:inline-block;background:#e8f5e4;color:#23651b;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:.2rem .65rem;margin-bottom:.6rem}
.gi-duo h3{font-size:1.2rem;font-weight:800;margin:0 0 .2rem;color:#101F2E;display:flex;align-items:center;gap:.55rem}
.gi-duo h3::before{content:"";width:.8rem;height:.8rem;border-radius:50%;background:var(--c);flex:none}
.gi-duo .qui{color:#5A6B7C;font-size:.95rem;margin-bottom:1rem}
.gi-duo dl{margin:0}
.gi-duo dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.65rem 0;border-top:1px solid #EEF2F7}
.gi-duo dt{font-weight:500;color:#5A6B7C}
.gi-duo dd{margin:0;font-weight:800;font-size:1.2rem;color:#101F2E;font-variant-numeric:tabular-nums;text-align:right}
.gi-duo dd.fort{font-size:1.65rem}

/* Chiffres clés */
.gi-stat{height:100%;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1.2rem 1.3rem}
.gi-stat .v{font-size:1.7rem;font-weight:800;color:#0b2a4a;line-height:1.1;font-variant-numeric:tabular-nums}
.gi-stat .l{color:#5A6B7C;font-size:.9rem;margin-top:.4rem}
.gi-bloc{height:100%;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1.3rem 1.4rem}
.gi-bloc h3{font-size:1.05rem;font-weight:800;color:#0b2a4a;display:flex;gap:.6rem;align-items:center;margin-bottom:.6rem}
.gi-bloc h3 i{color:#2E6FB0}
.gi-mini{width:100%;font-size:.95rem;border-collapse:collapse}
.gi-mini td{padding:.5rem 0;border-top:1px solid #EEF2F7;vertical-align:top;color:#45566a}
.gi-mini td:last-child{text-align:right;font-weight:700;color:#101F2E;white-space:nowrap;padding-left:1rem;font-variant-numeric:tabular-nums}

/* Adresses, check-list, suite */
.gi-contact{height:100%;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1.1rem 1.2rem;display:flex;gap:.9rem}
.gi-contact>i{color:#2E6FB0;font-size:1.1rem;margin-top:.2rem;width:1.3rem;text-align:center;flex:none}
.gi-contact h3{font-size:.98rem;font-weight:800;margin:0 0 .25rem;color:#101F2E}
.gi-contact p{font-size:.9rem;color:#5A6B7C;margin:0 0 .35rem}
.gi-contact .co{color:#2E6FB0;font-weight:600;margin:0}
.gi-cl{height:100%;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1.3rem 1.4rem}
.gi-cl h3{display:flex;align-items:center;gap:.6rem;font-size:.85rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--c);margin-bottom:.6rem}
.gi-cl h3::before{content:"";width:.7rem;height:.7rem;border-radius:50%;background:var(--c);flex:none}
.gi-cl label{display:flex;gap:.75rem;align-items:flex-start;padding:.55rem 0;border-top:1px solid #EEF2F7;cursor:pointer;color:#101F2E}
.gi-cl input{width:1.15rem;height:1.15rem;margin-top:.2rem;flex:none;accent-color:#2f7a23}
.gi-cl input:checked+span{color:#8a96a6;text-decoration:line-through}
.gi-cl em,.gi-cl .opt{color:#5A6B7C;font-style:normal}
.gi-progres{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1rem 1.25rem;margin-bottom:1.5rem}
.gi-progres .barre{flex:1;height:10px;border-radius:999px;background:#EEF2F7;overflow:hidden}
.gi-progres .barre i{display:block;height:100%;width:0;background:#2f7a23;border-radius:999px;transition:width .25s}
.gi-progres .txt{font-weight:700;color:#0b2a4a;white-space:nowrap;font-variant-numeric:tabular-nums}
.gi-suite a{display:flex;align-items:flex-start;gap:.8rem;height:100%;background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1rem 1.1rem;text-decoration:none;color:#101F2E;transition:border-color .15s,box-shadow .15s}
.gi-suite a:hover{border-color:#2E6FB0;box-shadow:0 6px 18px rgba(16,31,46,.08);color:#101F2E}
.gi-suite i{color:#2E6FB0;margin-top:.2rem;width:1.2rem;text-align:center;flex:none}
.gi-suite strong{display:block;color:#0b2a4a}
.gi-suite span{font-size:.9rem;color:#5A6B7C}

/* Bandeau final */
.gi-fin{background:linear-gradient(120deg,#0E2A47,#12365C 50%,#2E6FB0);color:#fff;padding:4rem 0}
.gi-fin h2{color:#fff;font-weight:800}
.gi-fin .lead{color:#C6D9EC;max-width:44rem;margin:0 auto 1.75rem}
.gi-fin .lead b{color:#9BD48C}
.gi-fin a.lien{color:#fff}
.gi-legal{font-size:.8rem;color:#9fbbd6;border-top:1px solid rgba(255,255,255,.16);padding-top:1rem;margin-top:2rem;max-width:52rem;margin-left:auto;margin-right:auto}

/* Graphiques : le tracé est en SVG étiré, les textes en HTML (nets et lisibles à toutes les largeurs). */
.gi-graph{background:#fff;border:1px solid #E6EBF1;border-radius:1rem;padding:1.25rem 1.25rem 1rem}
.gi-graph-titre{font-weight:800;color:#0b2a4a;margin:0 0 .2rem;font-size:1.05rem}
.gi-graph-sous{color:#5A6B7C;font-size:.88rem;margin:0 0 .8rem}
.gi-legende{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;font-size:.88rem;color:#45566a;margin-bottom:.9rem}
.gi-legende span{display:inline-flex;align-items:center;gap:.45rem}
.gi-legende i{display:inline-block;width:18px;height:3px;border-radius:2px;background:var(--c)}
.gi-plot{position:relative;height:280px;margin:.4rem 150px 2rem 64px}
.gi-plot.court{height:220px;margin-right:12px}
.gi-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.gi-plot .grille{stroke:#E6EBF1;stroke-width:1;vector-effect:non-scaling-stroke}
.gi-plot .base{stroke:#c3cedb;stroke-width:1;vector-effect:non-scaling-stroke}
.gi-plot .serie{fill:none;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.gi-plot .y{position:absolute;left:-10px;transform:translate(-100%,-50%);font-size:.75rem;color:#6b7a90;white-space:nowrap}
.gi-plot .x{position:absolute;top:100%;transform:translateX(-50%);margin-top:.45rem;font-size:.75rem;color:#6b7a90;white-space:nowrap}
.gi-plot .pt{position:absolute;width:10px;height:10px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px #fff;transform:translate(-50%,-50%);pointer-events:none}
.gi-plot .fin-lbl{position:absolute;left:100%;margin-left:14px;transform:translateY(-50%);font-size:.82rem;color:#101F2E;line-height:1.25;white-space:nowrap}
.gi-plot .fin-lbl b{display:block}
.gi-plot .fin-lbl small{color:#5A6B7C;font-size:.78rem}
.gi-plot .barre{position:absolute;bottom:0;background:var(--c);border-radius:4px 4px 0 0}
.gi-plot .barre.bas{background:var(--c2,var(--c))}
.gi-plot .guide{position:absolute;top:0;bottom:0;width:1px;background:#9fb0c4;opacity:0;pointer-events:none}
.gi-plot.survol .guide{opacity:1}
.gi-plot .h{display:none}
.gi-plot.survol .h{display:block}
.gi-plot .zone{position:absolute;top:-10px;bottom:-10px;left:0;right:0;cursor:crosshair;z-index:2}
.gi-bulle{position:absolute;z-index:3;pointer-events:none;background:#fff;border:1px solid #dbe3ee;border-radius:.6rem;box-shadow:0 8px 24px rgba(16,31,46,.14);padding:.5rem .7rem;font-size:.85rem;color:#101F2E;white-space:nowrap;opacity:0;transition:opacity .1s}
.gi-plot.survol .gi-bulle{opacity:1}
.gi-bulle .t{font-weight:700;margin-bottom:.15rem}
.gi-bulle .l{display:flex;align-items:center;gap:.45rem;color:#45566a}
.gi-bulle .l b{color:#101F2E;margin-left:auto;padding-left:.8rem;font-variant-numeric:tabular-nums}
.gi-bulle .l i{width:10px;height:10px;border-radius:50%;background:var(--c);flex:none}

@media (max-width:767.98px){
  .gi-hero{padding:3rem 0}
  .gi-sec{padding:3rem 0}
  .gi-etapes::before{left:19px}
  .gi-num{flex-basis:40px;height:40px;font-size:.95rem}
  .gi-etape{gap:.9rem}
  .gi-groupe{padding-left:58px}
  .gi-carte{padding:1.2rem}
  .gi-lignes>div{grid-template-columns:1fr;gap:.2rem}
  .gi-pdf{flex-direction:column;text-align:center}
  .gi-plot{height:220px;margin-right:12px;margin-left:52px}
  .gi-plot .fin-lbl{display:none}
}
@media (prefers-reduced-motion:reduce){.gi-couv,.gi-progres .barre i{transition:none}}
@media print{.gi-hero,.gi-fin{-webkit-print-color-adjust:exact;print-color-adjust:exact}.gi-plot .zone{display:none}}
