/* Accueil de contestation.ch : codes d'une banque en ligne, en rouge suisse et anthracite. Le rouge porte l'action, l'anthracite le sérieux. */
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
:root { --fond: #F6F4F2; --blanc: #fff; --encre: #1D1B1C; --doux: #4B4748; --filet: #E3DEDA; --contour: #8C8686; --rouge: #C8102E; --rouge-texte: #B90F27; --rouge-fort: #8A0B1D; --rouge-clair: #FBE7E8; --doux-clair: #D8D3D1; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body.accueil { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.55 Manrope, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--rouge-texte); text-underline-offset: 3px; }
a:hover { color: var(--rouge-fort); }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }
.cadre { max-width: 1240px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 32px) 0; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 60; background: #fff; padding: 8px 12px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-weight: 700; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.015em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 18px; border-radius: 14px; font-weight: 700; text-align: center; text-decoration: none; transition: background .2s; }
.btn-petit { min-height: 44px; padding: 8px 18px; border-radius: 12px; font-size: .88rem; white-space: nowrap; }
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-rouge:hover { background: #A50D26; color: #fff; }
.btn-sombre { background: var(--encre); color: #fff; }
.btn-sombre:hover { background: #000; color: #fff; }

.barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 10px 12px 10px 18px; border-radius: 18px; background: var(--blanc); box-shadow: 0 1px 2px rgba(29, 27, 28, .06); }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--encre); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none; }
.barre nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; font-size: .88rem; }
.barre nav a { color: var(--encre); text-decoration: none; }
.barre nav a:hover { color: var(--rouge-texte); }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 32px clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); }
.hero-texte { min-width: 0; }
.pastille { display: inline-block; margin: 0 0 20px; padding: 6px 12px; border-radius: 999px; background: var(--rouge-clair); color: var(--rouge-fort); font-size: .82rem; font-weight: 700; }
.chapeau { margin: 18px 0 0; max-width: 30em; font-size: 1.18rem; color: var(--doux); }

.calcul { display: flex; flex-direction: column; background: var(--blanc); border-radius: 28px; padding: clamp(22px, 2.6vw, 32px); min-width: 0; box-shadow: 0 30px 70px -32px rgba(120, 20, 30, .34); }
.onglets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: #F2EEEC; }
.onglets input { position: absolute; opacity: 0; }
.onglets span { display: grid; place-items: center; min-height: 44px; padding: 6px; border-radius: 11px; text-align: center; font-weight: 700; font-size: .88rem; cursor: pointer; }
.onglets input:checked + span { background: var(--blanc); box-shadow: 0 1px 3px rgba(29, 27, 28, .14); }
.onglets input:focus-visible + span { outline: 2px solid var(--rouge); outline-offset: 2px; }
.calcul-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.calcul-champs > div { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.calcul-champs label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .82rem; }
.calcul-champs input { width: 100%; min-height: 54px; padding: 8px 14px; border: 1px solid var(--contour); border-radius: 12px; background: var(--blanc); color: var(--encre); font: 700 1.12rem Manrope, Arial, sans-serif; }
.calcul-champs input:focus { outline: 2px solid var(--rouge); outline-offset: 0; border-color: var(--rouge); }
.calcul-resultat { margin: 18px 0; padding: 18px 20px; border-radius: 18px; background: var(--encre); color: #fff; }
.calcul-resultat p { margin: 0; font-size: .88rem; color: var(--doux-clair); }
.calcul-resultat .calcul-mois { margin: 2px 0; color: #fff; font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.04em; }
.calcul-reserve { margin: 10px 0 0; text-align: center; font-size: .82rem; color: var(--doux); }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.chiffres > div { padding: 22px; border-radius: 22px; background: var(--blanc); min-width: 0; }
.chiffres strong { display: block; font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; color: var(--rouge-texte); }
.chiffres span { font-size: .88rem; color: var(--doux); }

.bloc { padding-top: clamp(48px, 6vw, 80px); }
.bloc > h2 { margin-bottom: 24px; }
.grille-service { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.grille-service article { padding: 24px; border-radius: 22px; background: var(--blanc); min-width: 0; }
.icone { display: block; margin-bottom: 18px; color: var(--rouge); }
.grille-service h3, .grille-etapes h3 { margin-bottom: 6px; }
.grille-service p, .grille-etapes p { margin: 0; font-size: .88rem; color: var(--doux); }
.grille-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.grille-etapes li { padding: 22px; border-radius: 22px; background: var(--blanc); min-width: 0; }
.n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 28px; border-radius: 11px; background: var(--rouge-clair); color: var(--rouge-fort); font-weight: 800; }

.tarif { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--rouge); color: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px clamp(28px, 5vw, 64px); align-items: center; }
.tarif > div { min-width: 0; }
.tarif h2 { margin-bottom: 12px; }
.tarif > div > p { margin: 0; }
.tarif a { color: #fff; }
.tarif a:hover { color: #fff; text-decoration-thickness: 2px; }
.tarif-liste { padding: 8px 22px; border-radius: 20px; background: var(--blanc); color: var(--encre); }
.tarif-liste { list-style: none; margin: 0; }
.tarif-liste li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--filet); font-weight: 600; }
.tarif-liste li:last-child { border-bottom: 0; }
.tarif-liste li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tarif .btn-blanc { margin-top: 20px; background: #fff; color: var(--rouge); text-decoration: none; }
.tarif .btn-blanc:hover { color: var(--rouge); background: #fff; opacity: .92; }

details { background: var(--blanc); border-radius: 16px; margin-bottom: 8px; padding: 0 20px; }
summary { position: relative; list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 700; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 13px; font-weight: 500; font-size: 1.5rem; color: var(--rouge); transition: rotate .25s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0 0 18px; color: var(--doux); max-width: 44em; }

.territoires { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.territoires a { display: block; padding: 14px 16px; border-radius: 14px; background: var(--blanc); color: var(--encre); text-decoration: none; }
.territoires a:hover strong { color: var(--rouge-texte); }
.territoires strong { display: block; font-weight: 700; }
.territoires span { font-size: .84rem; color: var(--doux); }
.villes-titre { margin: 30px 0 12px; }
.villes { columns: 3 220px; column-gap: 24px; list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.villes li { margin-bottom: 6px; break-inside: avoid; }
.villes a { color: var(--doux); }

.pied { margin-top: clamp(48px, 6vw, 80px); padding: 28px 6px 32px; border-top: 1px solid var(--filet); font-size: .86rem; color: var(--doux); }
.pied > div { display: flex; align-items: center; gap: 8px; color: var(--encre); margin-bottom: 12px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
.pied a { color: var(--encre); }
.pied p { margin: 0; }
/* Menu du téléphone : le bouton ouvre un panneau sous l'en-tête. */
.barre { position: relative; }
.menu { display: none; }
details.menu { margin: 0; padding: 0; border-radius: 0; background: none; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: #F2EEEC; }
.menu summary::after { content: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--encre); transition: transform .2s, background .2s; }
.menu summary span { position: relative; }
.menu summary span::before, .menu summary span::after { content: ''; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.barre .menu nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; display: flex; flex-direction: column; gap: 0; padding: 6px 18px 18px; border-radius: 18px; background: var(--blanc); box-shadow: 0 22px 48px -16px rgba(29, 27, 28, .35), 0 1px 2px rgba(29, 27, 28, .08); font-size: 1.02rem; }
.barre .menu nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-bottom: 1px solid var(--filet); font-weight: 700; }
.barre .menu nav a:not(.btn)::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border-top: 2px solid var(--rouge); border-right: 2px solid var(--rouge); transform: rotate(45deg); }
.barre .menu nav .btn { display: flex; width: 100%; margin-top: 16px; color: #fff; }

@media (max-width: 960px) {
  html { scroll-padding-top: 88px; }
  .cadre > .barre { position: sticky; top: 8px; z-index: 45; flex-wrap: nowrap; padding: 8px 8px 8px 14px; box-shadow: 0 6px 20px -10px rgba(29, 27, 28, .25); }
  .barre .nav-large, .barre > .btn { display: none; }
  .menu { display: block; }
}
@media (max-width: 560px) {
  body.accueil { font-size: 16px; }
  .cadre { padding-top: 8px; }
  .hero { padding-top: 28px; gap: 24px; }
  .chapeau { font-size: 1.08rem; }
  .calcul { padding: 18px 16px; border-radius: 24px; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chiffres > div { padding: 14px 14px 16px; border-radius: 18px; }
  .chiffres strong { font-size: 1.35rem; }
  .chiffres span { display: block; font-size: .82rem; line-height: 1.4; }
  .bloc > h2 { margin-bottom: 16px; }
  .grille-service, .grille-etapes { gap: 8px; }
  .grille-service article, .grille-etapes li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 18px 16px; border-radius: 18px; }
  .grille-service article > *, .grille-etapes li > * { grid-column: 2; }
  .grille-service .icone, .grille-etapes .n { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .n { width: 32px; height: 32px; }
  .tarif { padding: 22px 16px; border-radius: 24px; }
  .tarif-liste { padding: 4px 16px; }
  .tarif-liste li { padding: 12px 0; font-size: .95rem; }
  .tarif .btn-blanc { width: 100%; justify-content: center; }
  details { padding: 0 16px; }
  summary { padding: 16px 30px 16px 0; }
  .villes { columns: 2; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Grand titre : la question, puis la promesse, dont la fin est soulignée d'un trait rouge */
.hero h1 .h1-ligne { display: block; }
.hero h1 .h1-ligne:first-child { color: var(--doux); font-size: .62em; letter-spacing: -.03em; line-height: 1.15; margin-bottom: .22em; }
.h1-accent { position: relative; color: var(--rouge); white-space: nowrap; }
.h1-accent::after { content: ''; position: absolute; left: 0; right: .12em; bottom: -.08em; height: .16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C60 3.5 150 2.5 297 7' fill='none' stroke='%23C8102E' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; opacity: .32; }
.sous-titre { margin: -14px 0 24px; max-width: 34em; font-size: 1.08rem; color: var(--doux); }
/* Téléphone : la promesse tient sur une seule ligne, à une taille calculée sur la largeur de l'écran, au lieu de deux lignes « équilibrées » qui laissaient un vide à droite. */
@media (max-width: 640px) {
  .hero h1 { font-size: min(1.85rem, 8.2vw); text-wrap: wrap; }
  .hero h1 .h1-ligne:last-child { white-space: nowrap; }
}
.hero .chapeau { margin-top: 26px; }

/* Carte « Que voulez-vous faire ? » de l'accueil : trois phrases à cocher et un bouton qui suit le choix. */
.situation { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2.6vw, 34px); border-radius: 28px; background: var(--blanc); box-shadow: 0 30px 70px -32px rgba(120, 20, 30, .34); }
.situation h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.03em; line-height: 1.15; }
.situation-sous { margin: 6px 0 18px; color: var(--doux); font-size: .95rem; }
.situation fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.situation legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.situation-choix { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; border: 1px solid var(--filet); border-radius: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.situation-choix:hover { border-color: var(--doux-clair); background: #FCFBFA; }
.situation-choix input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rouge); }
.situation-choix strong { display: block; font-size: 1rem; line-height: 1.3; }
.situation-choix small { display: block; margin-top: 2px; color: var(--doux); font-size: .86rem; }
.situation-choix:has(input:checked) { border-color: var(--rouge); background: #FFF7F7; }
.situation-choix:has(input:focus-visible) { outline: 2px solid var(--rouge); outline-offset: 2px; }
.situation .btn { width: 100%; box-sizing: border-box; margin-top: 18px; }
.situation-reserve { margin: 10px 0 0; text-align: center; color: var(--doux); font-size: .82rem; }
.chapeau-court { display: none; }
/* Téléphone d'abord : la question est visible dès l'ouverture, sans faire défiler. */
@media (max-width: 640px) {
  .hero { padding-top: 14px; gap: 14px; }
  .hero .pastille { display: none; }
  .hero .chapeau-long { display: none; }
  .hero .chapeau-court { display: block; margin-top: 10px; font-size: 1rem; }
  /* Pas de carte dans la carte : sur téléphone, la question et ses choix posent directement sur le fond de la page. */
  .situation { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .situation h2 { font-size: 1.3rem; }
  .situation-sous { margin-bottom: 12px; font-size: .88rem; }
  .situation fieldset { gap: 8px; }
  .situation-choix { padding: 11px 14px; border-radius: 16px; background: var(--blanc); }
  .situation-choix:has(input:checked) { background: #FFF7F7; }
  .chiffres { display: none; }
  .situation-choix strong { font-size: .95rem; }
  .situation .btn { margin-top: 14px; }
}
