/* EC2M – feuille de style unique. Couleurs reprises du logo. */
:root {
  --nuit: #1C1D3B;
  --nuit-2: #262850;
  --accent: #6ADBD0;
  --turquoise: #6ADBD0;
  --vert: #7DEB3B;
  --gris: #8E9497;
  --gris-fonce: #4A4F57;
  --fond: #F4F6F8;
  --blanc: #FFFFFF;
  --texte: #1C1D3B;
  --rayon: 10px;
  --largeur: 1120px;
  --police: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; text-wrap: balance; }

/* Éléments natifs du navigateur, aux couleurs du cabinet */
::selection { background: var(--accent); color: var(--nuit); }
html { accent-color: var(--accent); caret-color: var(--nuit); scrollbar-color: var(--gris) var(--fond); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

.evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--nuit); padding: 10px 16px; z-index: 100; font-weight: 700;
}
.evitement:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid #E3E7EC;
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { width: 54px; height: 54px; }
.marque span { font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.marque small { display: block; font-weight: 500; font-size: .78rem; color: var(--gris-fonce); letter-spacing: .04em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .97rem;
}
.nav a:hover { background: var(--fond); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav .bouton { margin-left: 8px; }
.nav .bouton[aria-current="page"] { box-shadow: none; border-radius: 999px; }

.menu-bouton {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--nuit);
}
.menu-bouton svg { width: 28px; height: 28px; }

/* Sur téléphone : les pages restent visibles sous forme de boutons, sans menu replié */
@media (max-width: 760px) {
  .entete .conteneur { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .marque img { width: 44px; height: 44px; }
  .nav { width: 100%; }
  .nav ul { gap: 6px; justify-content: space-between; flex-wrap: wrap; }
  .nav li { flex: 1 1 auto; }
  .nav a {
    padding: 8px 4px; text-align: center; font-size: .85rem; white-space: nowrap;
    background: var(--fond); border-radius: 999px;
  }
  .nav a[aria-current="page"] { background: var(--nuit); color: var(--blanc); box-shadow: none; border-radius: 999px; }
  .nav .bouton { margin-left: 0; padding: 8px 4px; justify-content: center; display: block; background: var(--accent); }
  .nav .bouton[aria-current="page"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc) !important; }
}
@media (max-width: 360px) {
  .nav ul { gap: 4px; }
  .nav a, .nav .bouton { font-size: .8rem; padding: 7px 4px; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--nuit) !important;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--accent);
  transition: transform .15s ease, background .15s ease;
}
.bouton:hover { transform: translateY(-2px); background: #8CE5DC; }
.bouton.secondaire { background: transparent; color: var(--blanc) !important; border-color: rgba(255,255,255,.45); }
.bouton.secondaire:hover { border-color: var(--blanc); background: rgba(255,255,255,.06); }
.bouton.sombre { background: var(--nuit); border-color: var(--nuit); color: var(--blanc) !important; }
.bouton.sombre:hover { background: var(--nuit-2); }
.nav .bouton { padding: 9px 18px; }

/* ---------- Héros ---------- */
.heros {
  background: var(--nuit); color: var(--blanc);
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
}
.heros .conteneur { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.heros h1 span { color: var(--accent); }
.heros .chapeau { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #D7DAE6; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.surtitre {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vert); margin-bottom: 18px;
}

.barres { display: flex; align-items: flex-end; gap: 14px; height: 300px; justify-content: center; }
.barres i {
  display: block; width: 22px; border-radius: 2px;
  transform-origin: bottom;
  animation: monte 1.1s cubic-bezier(.2,.7,.2,1) both, respire 5s ease-in-out 1.2s infinite alternate;
}
.barres i:nth-child(1)  { height: 52%; background: var(--gris); animation-delay: 0s, 1.2s; }
.barres i:nth-child(2)  { height: 38%; background: var(--blanc); animation-delay: .06s, 1.6s; }
.barres i:nth-child(3)  { height: 50%; background: var(--vert); animation-delay: .12s, 1.3s; }
.barres i:nth-child(4)  { height: 64%; background: var(--turquoise); animation-delay: .18s, 2s; }
.barres i:nth-child(5)  { height: 52%; background: var(--gris); animation-delay: .24s, 1.5s; }
.barres i:nth-child(6)  { height: 48%; background: var(--blanc); animation-delay: .3s, 2.2s; }
.barres i:nth-child(7)  { height: 40%; background: var(--gris); animation-delay: .36s, 1.4s; }
.barres i:nth-child(8)  { height: 46%; background: var(--blanc); animation-delay: .42s, 1.9s; }
.barres i:nth-child(9)  { height: 55%; background: var(--gris); animation-delay: .48s, 1.7s; }
.barres i:nth-child(10) { height: 74%; background: var(--blanc); animation-delay: .54s, 2.4s; }
.barres i:nth-child(11) { height: 92%; background: var(--turquoise); animation-delay: .6s, 1.8s; }
@keyframes monte { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes respire { from { transform: scaleY(1); } to { transform: scaleY(.86); } }

.heros-page { padding: clamp(52px, 8vw, 88px) 0; }
.heros-page .conteneur { display: block; }

@media (max-width: 860px) {
  .heros .conteneur { grid-template-columns: 1fr; }
  .barres { height: 150px; gap: 9px; justify-content: flex-start; }
  .barres i { width: 14px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.claire { background: var(--fond); }
.section.sombre { background: var(--nuit); color: var(--blanc); }
.intro-section { margin-bottom: 40px; }
.intro-section p { color: var(--gris-fonce); font-size: 1.1rem; }
.sombre .intro-section p { color: #D7DAE6; }

.grille { display: grid; gap: 22px; }
.grille.deux { grid-template-columns: repeat(2, 1fr); }
.grille.quatre { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grille.quatre { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grille.deux, .grille.quatre { grid-template-columns: 1fr; } }

.carte {
  background: var(--blanc); border-radius: var(--rayon); padding: 28px 26px;
  border: 1px solid #E3E7EC; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.carte { text-decoration: none; }
a.carte:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(28,29,59,.45); }
.carte p { color: var(--gris-fonce); font-size: .98rem; }
.carte .lien { margin-top: auto; font-weight: 700; font-size: .95rem; }
.carte .lien::after { content: " →"; }
.pictogramme {
  width: 48px; height: 48px; border-radius: 12px; background: var(--nuit);
  display: grid; place-items: center; margin-bottom: 18px;
}
.pictogramme svg { width: 26px; height: 26px; }

.atouts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.atouts li { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.atouts strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.atouts span { color: #D7DAE6; }
@media (max-width: 620px) { .atouts { grid-template-columns: 1fr; } }

/* ---------- Liste des métiers (accueil) ---------- */
.metiers { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #D5DAE1; }
.metier {
  display: grid; grid-template-columns: 48px minmax(200px, 280px) 1fr 24px; gap: 28px; align-items: center;
  padding: 26px 18px; border-top: 1px solid #D5DAE1; text-decoration: none;
  transition: background .25s ease;
}
.metier .pictogramme { margin: 0; }
.metier h3 { margin: 0; font-size: 1.25rem; }
.metier p { margin: 0; color: var(--gris-fonce); }
.metier .fleche { width: 24px; height: 24px; color: var(--nuit); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.metier:hover { background: var(--blanc); }
.metier:hover .fleche { transform: translateX(6px); }
@media (max-width: 760px) {
  .metier { grid-template-columns: 48px 1fr; gap: 6px 18px; padding: 22px 4px; }
  .metier .pictogramme { grid-row: span 2; align-self: start; }
  .metier .fleche { display: none; }
}

/* ---------- Étapes illustrées (accueil) ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .etapes { grid-template-columns: 1fr; gap: 14px; }
  .etape { display: grid; grid-template-columns: 110px 1fr; column-gap: 16px; align-items: start; padding: 16px; }
  .etape .scene { grid-row: span 3; margin: 4px 0 0; }
  .etape h3 { margin-top: 2px; }
}
.etape {
  background: var(--fond); border-radius: var(--rayon); padding: 22px 22px 26px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.etape:hover { transform: translateY(-4px); background: var(--blanc); box-shadow: 0 16px 34px -20px rgba(28,29,59,.5); }
.etape .numero { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--gris); }
.etape h3 { margin: 4px 0 8px; }
.etape p { color: var(--gris-fonce); font-size: .97rem; margin: 0; }
.scene { width: 100%; height: auto; margin-bottom: 14px; overflow: visible; }
.scene * { transition: transform .45s cubic-bezier(.3,.7,.3,1), opacity .3s ease, stroke-dashoffset .7s ease; }

/* 1 · premier échange : salut de la main, bulle, interlocuteur à l'écran */
.bras-salut { transform-origin: 80px 108px; }
.bulle { opacity: 0; transform: translateY(6px); }
.etape:hover .bulle { opacity: 1; transform: none; }
.etape:hover .bras-salut { animation: salut .5s ease-in-out 2; }
.client-ecran { transform-origin: 168px 117px; }
.etape:hover .client-ecran { transform: rotate(-6deg); }
@keyframes salut { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }

/* 2 · analyse : les barres montent, le bras désigne le graphique */
.barre { transform-box: fill-box; transform-origin: bottom; transform: scaleY(.55); }
.etape:hover .barre { transform: scaleY(1); }
.etape:hover .barre:nth-of-type(2) { transition-delay: .06s; }
.etape:hover .barre:nth-of-type(3) { transition-delay: .12s; }
.etape:hover .barre:nth-of-type(4) { transition-delay: .18s; }
.bras-pointe { transform-origin: 88px 108px; }
.etape:hover .bras-pointe { transform: rotate(-18deg); }
.etape:hover .tete { transform: translateX(2px); }

/* 3 · restitution : le document passe de l'un à l'autre, les têtes acquiescent */
.etape:hover .document { transform: translateX(36px); }
.etape:hover .tete-a, .etape:hover .tete-b { animation: acquiesce .45s ease-in-out .35s 2; }
@keyframes acquiesce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* 4 · suivi : l'anneau se complète, la coche se trace, le bras se lève */
.anneau { stroke-dasharray: 226; stroke-dashoffset: 120; }
.etape:hover .anneau { stroke-dashoffset: 0; }
.coche { stroke-dasharray: 50; stroke-dashoffset: 50; }
.etape:hover .coche { stroke-dashoffset: 0; transition-delay: .35s; }
.bras-leve { transform-origin: 88px 108px; }
.etape:hover .bras-leve { transform: rotate(-70deg); }

/* ---------- Appartenances ---------- */
.logo-reseau { width: 88px; height: 88px; object-fit: contain; border-radius: 8px; margin-bottom: 18px; }
.reseau a.lien::after { content: " ↗"; }
.devise { margin: 4px 0 14px; font-style: italic; font-size: 1.08rem; line-height: 1.5; color: var(--nuit); }
.valeurs { display: flex; flex-wrap: wrap; gap: 8px; }
.valeurs span { background: var(--fond); color: var(--nuit); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }

/* ---------- Page Services ---------- */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid #E3E7EC; scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service .numero { font-size: .85rem; font-weight: 800; letter-spacing: .12em; color: var(--gris); }
.service h2 { margin-top: 8px; }
.service .etiquette {
  display: inline-block; background: var(--accent); color: var(--nuit);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.liste-coches { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.liste-coches li { padding-left: 28px; position: relative; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 3px solid var(--vert); border-bottom: 3px solid var(--vert); transform: rotate(-45deg);
}
.exemple { background: var(--fond); border-radius: var(--rayon); padding: 20px 22px; margin-bottom: 14px; }
.exemple strong { display: block; margin-bottom: 4px; }
.exemple p { margin: 0; color: var(--gris-fonce); font-size: .97rem; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
  .liste-coches { grid-template-columns: 1fr; }
}

/* ---------- À propos ---------- */
.profil { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.profil figure { margin: 0; }
.profil img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profil figcaption { font-size: .85rem; color: var(--gris-fonce); margin-top: 10px; }
.profil .mention { margin-top: 24px; font-size: .9rem; color: var(--gris-fonce); }
@media (max-width: 820px) { .profil { grid-template-columns: 1fr; gap: 28px; } .profil figure { max-width: 300px; } }

.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #D5DAE1; }
.frise li { position: relative; padding: 0 0 36px 44px; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blanc); border: 3px solid var(--vert);
}
.frise .dates { font-weight: 800; font-size: .9rem; color: var(--gris-fonce); letter-spacing: .04em; }
.frise h3 { margin: 4px 0 2px; }
.frise .lieu { color: var(--gris-fonce); font-size: .95rem; margin-bottom: 8px; }
.frise ul { list-style: none; margin: 0; padding: 0; color: var(--gris-fonce); font-size: .97rem; }
.frise ul li { padding: 0 0 4px 18px; }
.frise ul li::before {
  left: 0; top: .62em; width: 7px; height: 7px; border: 0; border-radius: 1px; background: var(--vert);
}

/* ---------- Contact ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contacts .carte h2 { font-size: 1.15rem; margin-bottom: 6px; }
.contacts .valeur { font-size: 1.15rem; font-weight: 700; word-break: break-word; margin-bottom: 18px; }
.contacts .bouton { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- Appel à l'action ---------- */
.appel { background: var(--accent); color: var(--nuit); }
.appel .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.appel h2 { margin: 0 0 6px; }
.appel p { margin: 0; font-size: 1.1rem; }

/* ---------- Simulateur d'emprunt ---------- */
.simulateur {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--blanc); border: 1px solid #E3E7EC; border-radius: var(--rayon); overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(28,29,59,.45);
}
.simulateur > * { min-width: 0; }
.sim-saisie { padding: 0 32px 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.sim-cible { grid-column: 1 / -1; border: 0; margin: 32px 32px 24px; padding: 0; min-width: 0; }
.sim-cible legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.segments { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--fond); border-radius: 999px; padding: 4px; gap: 4px; }
.segments label { position: relative; }
.segments input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segments span {
  display: block; text-align: center; padding: 9px 6px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.segments input:checked + span { background: var(--nuit); color: var(--blanc); }
.segments input:focus-visible + span { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.segments label:hover input:not(:checked) + span { background: #E6EAEF; }

.champ label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.saisie {
  display: flex; align-items: center; border: 1.5px solid #CDD3DA; border-radius: 8px; background: var(--blanc);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.saisie:focus-within { border-color: var(--nuit); box-shadow: 0 0 0 3px rgba(106,219,208,.45); }
.saisie input {
  flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; padding: 12px 14px;
  font: inherit; font-size: 1.1rem; font-weight: 600; color: var(--nuit); font-variant-numeric: tabular-nums;
}
.saisie input:focus { outline: none; }
.unite { padding: 0 14px; color: var(--gris-fonce); font-size: .92rem; white-space: nowrap; }
.aide { margin: 0 0 6px; font-size: .88rem; color: var(--gris-fonce); }
.aide:empty { display: none; }
/* La valeur à calculer n'est pas saisie : elle n'apparaît que dans le panneau de résultat */
.champ.calcule { display: none; }
@media (min-width: 861px) {
  .sim-saisie { grid-auto-rows: 1fr; align-content: stretch; }
  .champ { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 16px; align-items: center; align-content: center; }
  .champ label { grid-column: 1; margin-bottom: 0; }
  .champ .aide { grid-column: 1; margin: 0; }
  .champ .saisie { grid-column: 2; grid-row: 1 / span 2; }
}

.sim-resultat {
  background: var(--nuit); color: var(--blanc); padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.res-libelle { margin: 0 0 6px; color: #C9CCDA; font-weight: 600; }
.res-valeur {
  margin: 0; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.res-note { margin: 10px 0 0; color: #D7DAE6; min-height: 1.6em; }
.res-details { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 10px; }
.res-details div { display: flex; justify-content: space-between; gap: 16px; }
.res-details dt { color: #C9CCDA; }
.res-details dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-resultat:has(.res-erreur:not([hidden])) .res-note,
.sim-resultat:has(.res-erreur:not([hidden])) .res-details { display: none; }
.res-erreur { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--blanc); font-size: .95rem; }

/* Sur PC, le bloc garde la même hauteur quel que soit le résultat : deux lignes réservées à la note */
@media (min-width: 861px) {
  .res-note { min-height: 3.3em; }
  .sim-resultat { min-height: 356px; }
}

.tableau-amortissement { margin-top: 22px; background: var(--blanc); border: 1px solid #E3E7EC; border-radius: var(--rayon); }
.tableau-amortissement summary { cursor: pointer; padding: 16px 22px; font-weight: 700; }
.tableau-amortissement summary:hover { color: #2A8F86; }
.tableau-defile { overflow-x: auto; padding: 0 22px 18px; }
.tableau-amortissement table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; min-width: 560px; }
.tableau-amortissement th, .tableau-amortissement td { padding: 9px 10px; text-align: right; border-bottom: 1px solid #EEF1F4; white-space: nowrap; }
.tableau-amortissement thead th { color: var(--gris-fonce); font-weight: 600; font-size: .85rem; }
.tableau-amortissement th:first-child { text-align: left; }
.avertissement { margin: 18px 0 0; font-size: .85rem; color: var(--gris-fonce); }

@media (max-width: 860px) {
  .simulateur { grid-template-columns: 1fr; }
  .sim-cible { margin: 22px 18px 20px; }
  .sim-saisie { padding: 0 18px 22px; }
  .sim-resultat { padding: 26px 18px; }
}
@media (max-width: 420px) {
  .segments { grid-template-columns: repeat(2, 1fr); border-radius: 14px; }
  .segments span { border-radius: 10px; }
}

/* ---------- Texte légal ---------- */
.texte-legal { }
.texte-legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0 0 1em; }
.texte-legal dt { font-weight: 700; }
.texte-legal dd { margin: 0; }
@media (max-width: 620px) { .texte-legal dl { grid-template-columns: 1fr; } .texte-legal dd { margin-bottom: 8px; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: #C9CCDA; font-size: .93rem; padding: 56px 0 28px; }
.pied .colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.pied h2 { color: var(--blanc); font-size: 1rem; letter-spacing: .02em; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 6px; }
.pied a { color: #E6E8F0; text-decoration: none; }
.pied a:hover { color: var(--vert); text-decoration: underline; }
.pied .marque img { width: 64px; height: 64px; }
.pied .marque span { color: var(--blanc); }
.pied .marque small { color: #A9ADC0; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #A9ADC0; }
@media (max-width: 760px) { .pied .colonnes { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
