/* LBN SignFlow - identité LBN Communications (marine, bleu, cyan ; Manrope et Inter, licence OFL) */
@font-face { font-family: Inter; src: url(../fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Manrope; src: url(../fonts/manrope-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --navy: #0B1D3A; --navy-2: #13294f; --bleu: #1F5AE0; --bleu-2: #1748b8; --cyan: #22C3E6;
  --texte: #1f262e; --gris: #5f6b7a; --gris-2: #8b96a5; --bord: #e3e8ef; --fond: #f4f6f9; --blanc: #fff;
  --vert: #18764a; --vert-f: #e6f5ec; --rouge: #b23131; --rouge-f: #fbeaea; --ambre: #945800; --ambre-f: #fff4e0;
  --bord-champ: #7a8594; --focus: #1748b8;
  --rayon: 12px; --ombre: 0 1px 2px rgba(11,29,58,.06), 0 8px 24px rgba(11,29,58,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texte); background: var(--fond); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: Manrope, Inter, sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muet { color: var(--gris); }
.petit { font-size: .85rem; }
.centre { text-align: center; }
.cache { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Boutons et formulaires */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 10px; border: 1px solid transparent; font: 600 .95rem Inter, sans-serif; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primaire { background: var(--bleu); color: #fff; box-shadow: 0 6px 16px rgba(31,90,224,.25); }
.btn-primaire:hover { background: var(--bleu-2); }
.btn-sombre { background: var(--navy); color: #fff; }
.btn-clair { background: #fff; color: var(--navy); border-color: var(--bord); }
.btn-danger { background: #fff; color: var(--rouge); border-color: #f0c9c9; }
.btn-lien { background: none; border: 0; color: var(--bleu); padding: 0; min-height: 0; font-weight: 600; }
.btn-petit { padding: .45em .8em; font-size: .85rem; min-height: 36px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3em; color: var(--navy); }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  width: 100%; padding: .7em .85em; border: 1px solid var(--bord-champ); border-radius: 10px; font: inherit; background: #fff; color: var(--texte); min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--bleu); }
.champ { margin-bottom: 1rem; }
.case { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; }
.case input { margin-top: .3em; width: 18px; height: 18px; flex: none; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grille-3, .grille-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; } }

/* Cartes, alertes, pastilles, tableaux */
.carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 1rem; }
.carte h2 { font-size: 1.15rem; }
.alerte { padding: .85em 1em; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; }
.alerte-ok { background: var(--vert-f); border-color: #bfe3cd; color: var(--vert); }
.alerte-erreur { background: var(--rouge-f); border-color: #f0c9c9; color: var(--rouge); }
.alerte-info { background: #eaf2ff; border-color: #c9dbff; color: var(--bleu-2); }
.alerte-ambre { background: var(--ambre-f); border-color: #f3d9a6; color: var(--ambre); }
.pastille { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--fond); color: var(--gris); white-space: nowrap; }
.p-brouillon { background: #eef1f5; color: var(--gris); }
.p-envoyee, .p-envoye, .p-ouvert, .p-a_envoyer { background: #eaf2ff; color: var(--bleu-2); }
.p-partiellement_signee { background: var(--ambre-f); color: var(--ambre); }
.p-signee, .p-signe { background: var(--vert-f); color: var(--vert); }
.p-refusee, .p-refuse, .p-erreur { background: var(--rouge-f); color: var(--rouge); }
.p-expiree, .p-expire, .p-annulee { background: #f1eef7; color: #6b4fa0; }
.p-archivee { background: #e9eef3; color: #44546a; }
.p-simule { background: var(--ambre-f); color: var(--ambre); }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); padding: .6em .7em; border-bottom: 1px solid var(--bord); }
.tableau td { padding: .7em; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; word-break: break-all; }

/* Indicateurs */
.kpi { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem 1.1rem; box-shadow: var(--ombre); }
.kpi .v { font: 800 1.9rem Manrope, sans-serif; color: var(--navy); }
.kpi .l { color: var(--gris); font-size: .85rem; }
.jauge { height: 8px; background: var(--fond); border-radius: 99px; overflow: hidden; margin-top: .5rem; }
.jauge span { display: block; height: 100%; background: linear-gradient(90deg, var(--bleu), var(--cyan)); border-radius: 99px; }

/* Espace connecté */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.app-nav { background: var(--navy); color: #c9d3e3; padding: 1.2rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-nav .logo img { height: 30px; }
.app-nav nav { margin-top: 1.5rem; display: grid; gap: .2rem; }
.app-nav nav a { color: #c9d3e3; padding: .6em .8em; border-radius: 8px; display: flex; gap: .6em; align-items: center; font-weight: 500; }
.app-nav nav a:hover, .app-nav nav a.actif { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.app-nav nav a.actif { box-shadow: inset 3px 0 0 var(--cyan); }
.app-nav .org { margin-top: 1.4rem; font-size: .82rem; }
.app-nav select { background: var(--navy-2); color: #fff; border-color: #5d7299; min-height: 38px; padding: .4em .6em; }
.app-main { padding: 1.6rem clamp(1rem, 3vw, 2.4rem); min-width: 0; }
.app-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.app-tete h1 { font-size: 1.6rem; margin: 0; }
.menu-mobile { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-nav { position: static; height: auto; padding: .8rem 1rem; }
  .app-nav nav, .app-nav .org { display: none; }
  .app-nav.ouvert nav, .app-nav.ouvert .org { display: grid; }
  .menu-mobile { display: inline-flex; float: right; background: none; border: 1px solid #2a3f66; color: #fff; border-radius: 8px; padding: .3em .7em; min-height: 36px; }
}

/* Site commercial */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--bord); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.entete .logo img { height: 34px; display: block; }
.entete nav { display: flex; gap: 1.3rem; align-items: center; }
.entete nav a { color: var(--navy); font-weight: 600; font-size: .93rem; }
.entete nav a.actif { color: var(--bleu); }
.burger { display: none; background: none; border: 1px solid var(--bord); border-radius: 8px; padding: .4em .7em; min-height: 40px; color: var(--navy); }
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .entete nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 16px 1.4rem; border-bottom: 1px solid var(--bord); gap: .4rem; }
  .entete nav.ouvert { display: flex; }
  .entete nav a { padding: .6em 0; }
}
.heros { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(34,195,230,.35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #12306b 60%, var(--bleu) 130%); color: #dfe8f7; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.heros h1 { color: #fff; max-width: 15ch; }
.heros p.lead { font-size: 1.15rem; max-width: 52ch; color: #c9d6ee; }
.heros .grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .heros .grille { grid-template-columns: 1fr; } }
.heros .visuel { position: relative; }
.heros .visuel img { border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.heros .etiquette-flottante { position: absolute; left: -14px; bottom: 22px; background: #fff; color: var(--navy); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--ombre); font-weight: 700; display: flex; gap: .6rem; align-items: center; animation: flotter 5s ease-in-out infinite; }
.surtitre { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-blanche { background: #fff; }
.section-tete { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.atout { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 1.5rem; transition: transform .25s, box-shadow .25s; height: 100%; }
.atout:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.atout .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(31,90,224,.12), rgba(34,195,230,.18)); color: var(--bleu); margin-bottom: 1rem; }
.etapes { counter-reset: e; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }
.etape { background: #fff; border-radius: 16px; padding: 1.4rem; border: 1px solid var(--bord); position: relative; }
.etape::before { counter-increment: e; content: counter(e); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.prix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 1000px) { .prix { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prix { grid-template-columns: 1fr; } }
.forfait { background: #fff; border: 1px solid var(--bord); border-radius: 18px; padding: 1.6rem; display: flex; flex-direction: column; }
.forfait.vedette { border: 2px solid var(--bleu); box-shadow: 0 18px 40px rgba(31,90,224,.18); position: relative; }
.forfait.vedette::before { content: attr(data-badge); position: absolute; top: -12px; left: 1.6rem; background: var(--bleu); color: #fff; font-size: .72rem; font-weight: 800; padding: .25em .7em; border-radius: 99px; letter-spacing: .05em; text-transform: uppercase; }
.forfait .montant { font: 800 2.3rem Manrope, sans-serif; color: var(--navy); }
.forfait ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .45rem; flex: 1; }
.forfait li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-right: .5em; }
.bascule { display: inline-flex; background: #fff; border: 1px solid var(--bord); border-radius: 99px; padding: 4px; gap: 4px; }
.bascule button { border: 0; background: none; border-radius: 99px; padding: .5em 1.1em; font-weight: 700; color: var(--gris); cursor: pointer; min-height: 38px; }
.bascule button.actif { background: var(--navy); color: #fff; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.bandeau-cta { background: linear-gradient(120deg, var(--navy), var(--bleu)); color: #dfe8f7; border-radius: 22px; padding: clamp(2rem, 5vw, 3.2rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.bandeau-cta h2 { color: #fff; margin: 0; }
.pied { background: var(--navy); color: #9fb0cc; padding: 3rem 0 2rem; font-size: .9rem; }
.pied a { color: #c9d6ee; }
.pied .grille { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .pied .grille { grid-template-columns: 1fr 1fr; } }
.ruban-test { background: var(--ambre-f); color: var(--ambre); text-align: center; font-size: .8rem; font-weight: 700; padding: .35em 1em; }

/* Animations légères (désactivées si l'utilisateur préfère moins de mouvement) */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.apparait.vu { opacity: 1; transform: none; }
@keyframes flotter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
.signature-anim path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace 2.6s ease forwards .4s; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } .etiquette-flottante, .signature-anim path { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }

/* Authentification */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visuel { background: radial-gradient(700px 400px at 80% 0%, rgba(34,195,230,.35), transparent 60%), linear-gradient(150deg, var(--navy), #12306b); color: #c9d6ee; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visuel h2 { color: #fff; font-size: 1.8rem; }
.auth-form { display: grid; place-items: center; padding: 2rem 16px; background: #fff; }
.auth-form > div { width: min(420px, 100%); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-visuel { display: none; } }

/* Préparation et signature des documents */
.prep { display: grid; grid-template-columns: 340px 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .prep { grid-template-columns: 1fr; } }
.pages { display: grid; gap: 1rem; }
.page-doc { position: relative; background: #fff; box-shadow: var(--ombre); border-radius: 4px; overflow: hidden; touch-action: none; user-select: none; }
.page-doc img { display: block; width: 100%; height: auto; pointer-events: none; }
.page-doc .num { position: absolute; top: 8px; right: 10px; background: rgba(11,29,58,.75); color: #fff; font-size: .72rem; padding: .15em .5em; border-radius: 6px; }
.zone { position: absolute; border: 2px dashed var(--bleu); background: rgba(31,90,224,.10); border-radius: 6px; font-size: .72rem; font-weight: 700; color: var(--bleu-2); padding: 2px 4px; overflow: hidden; cursor: move; }
.zone.autre { border-color: var(--gris-2); background: rgba(139,150,165,.10); color: var(--gris); cursor: default; }
.zone.moi { border: 2px solid var(--cyan); background: rgba(34,195,230,.14); animation: pulse 2s ease-in-out infinite; }
.zone img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,195,230,.45); } 50% { box-shadow: 0 0 0 8px rgba(34,195,230,0); } }
.signataire-ligne { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .7rem; border: 1px solid var(--bord); border-radius: 10px; margin-bottom: .5rem; cursor: pointer; }
.signataire-ligne.choisi { border-color: var(--bleu); background: #f2f6ff; }
.pastille-couleur { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: .4rem; }
.pad { width: 100%; height: 200px; border: 2px dashed var(--bord); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.text-red-700 { color: var(--rouge); } .text-emerald-700 { color: var(--vert); } .text-grey-600 { color: var(--gris); }
.hidden { display: none !important; }
.etapes-signature { display: flex; gap: .4rem; margin-bottom: 1rem; }
.etapes-signature span { flex: 1; text-align: center; font-size: .78rem; font-weight: 700; padding: .4em; border-radius: 8px; border: 1px solid var(--bord); }
.liste-def { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; font-size: .9rem; }
.liste-def dt { color: var(--gris); }
.liste-def dd { margin: 0; }

/* ===== Refonte v2 : site commercial ===== */
.ico-svg { flex: none; }
.atout .ico svg { width: 24px; height: 24px; }
.heros { padding-bottom: clamp(4rem, 8vw, 6rem); }
.heros::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 70px; background: var(--fond); clip-path: polygon(0 100%, 100% 30%, 100% 100%); }
.heros .points { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .88rem; color: #c9d6ee; }
.heros .points span { display: inline-flex; gap: .4rem; align-items: center; }
.heros .points svg { color: var(--cyan); }
.compo { position: relative; padding: 1rem 0 2rem 1.5rem; }
.compo .photo { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); transform: rotate(1.2deg); }
.compo .photo img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.carte-flottante { position: absolute; background: #fff; color: var(--texte); border-radius: 16px; box-shadow: 0 18px 40px rgba(11,29,58,.25); padding: .9rem 1rem; font-size: .85rem; }
.carte-flottante strong { color: var(--navy); display: block; font-family: Manrope, sans-serif; }
.cf-signature { left: -6px; bottom: 6px; width: 230px; animation: flotter 6s ease-in-out infinite; }
.cf-preuve { right: -10px; top: 22px; animation: flotter 7s ease-in-out infinite reverse; }
.cf-progression { right: 18px; bottom: -14px; width: 210px; animation: flotter 8s ease-in-out infinite; }
.cf-preuve .code { color: var(--gris); }
@media (max-width: 900px) { .compo { padding: 0 0 2.5rem; } .cf-preuve { right: 6px; top: -14px; } .cf-signature { left: 6px; } .cf-progression { display: none; } }
.bande-confiance { background: #fff; border-bottom: 1px solid var(--bord); }
.bande-confiance .conteneur { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.3rem 0; }
.bande-confiance div { display: flex; gap: .7rem; align-items: center; font-weight: 600; color: var(--navy); font-size: .92rem; }
.bande-confiance svg { color: var(--bleu); }
@media (max-width: 760px) { .bande-confiance .conteneur { grid-template-columns: 1fr 1fr; } }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.duo.inverse > :first-child { order: 2; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo.inverse > :first-child { order: 0; } }
.photo-cadre { position: relative; }
.photo-cadre img { border-radius: 20px; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--ombre); }
.photo-cadre::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(31,90,224,.18), rgba(34,195,230,.25)); z-index: -1; }
.liste-coches { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; }
.liste-coches li { display: flex; gap: .6rem; align-items: flex-start; }
.liste-coches svg { color: var(--vert); margin-top: .2rem; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .segments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .segments { grid-template-columns: 1fr; } }
.segment { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--bord); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.segment:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.segment img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .6s; }
.segment:hover img { transform: scale(1.04); }
.segment .txt { padding: 1.2rem 1.3rem 1.4rem; }
.section-sombre { background: radial-gradient(800px 400px at 10% 0%, rgba(34,195,230,.18), transparent 60%), var(--navy); color: #c9d6ee; }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-sombre .atout { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-sombre .atout .ico { background: rgba(34,195,230,.15); color: var(--cyan); }
.section-sombre .muet { color: #9fb0cc; }
.cta-image { position: relative; border-radius: 24px; overflow: hidden; color: #fff; padding: clamp(2.2rem, 6vw, 4rem); }
.cta-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,29,58,.95) 30%, rgba(31,90,224,.6)); }
.cta-image > * { position: relative; z-index: 1; }
.cta-image h2 { color: #fff; }
.page-tete { position: relative; overflow: hidden; color: #dfe8f7; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: linear-gradient(120deg, var(--navy), #12306b); }
.page-tete img.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.page-tete .conteneur { position: relative; }
.page-tete h1 { color: #fff; max-width: 22ch; }
.page-tete p { max-width: 60ch; color: #c9d6ee; font-size: 1.08rem; }
.comparatif td:not(:first-child), .comparatif th:not(:first-child) { text-align: center; }
.comparatif .oui { color: var(--vert); font-weight: 800; }
.fil-etapes { display: grid; gap: 1.4rem; counter-reset: f; }
.fil-etape { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; }
.fil-etape .n { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--bleu), var(--cyan)); color: #fff; display: grid; place-items: center; font: 800 1.3rem Manrope, sans-serif; box-shadow: 0 10px 24px rgba(31,90,224,.25); }
.contact-infos { display: grid; gap: 1rem; }
.contact-infos .carte { display: flex; gap: .9rem; align-items: flex-start; }
.contact-infos svg { color: var(--bleu); }
.legal-tete { background: linear-gradient(120deg, var(--navy), #12306b); color: #c9d6ee; padding: 2.6rem 0 2rem; }
.legal-tete h1 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.legal-grille { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.legal-nav { position: sticky; top: 90px; display: grid; gap: .35rem; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; }
.legal-nav a { color: var(--texte); padding: .25rem .4rem; border-radius: 6px; }
.legal-nav a.actif { background: #eaf2ff; color: var(--bleu-2); font-weight: 700; }
.legal-texte { max-width: 860px; line-height: 1.7; }
.legal-texte h2 { font-size: 1.2rem; margin-top: 1.8rem; scroll-margin-top: 90px; }
.legal-texte table { width: 100%; border-collapse: collapse; font-size: .85rem; display: block; overflow-x: auto; }
.legal-texte th, .legal-texte td { border: 1px solid var(--bord); padding: .45rem .55rem; vertical-align: top; text-align: left; }
.legal-texte th { background: var(--fond); }
@media (max-width: 900px) { .legal-grille { grid-template-columns: 1fr; } .legal-nav { position: static; } }
.pied .liens-legaux { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.auth-visuel { position: relative; overflow: hidden; }
.auth-visuel img.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.auth-visuel > *:not(img) { position: relative; }
.bienvenue { background: linear-gradient(120deg, var(--navy), var(--bleu)); color: #dfe8f7; border-radius: 18px; padding: 1.4rem 1.6rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.bienvenue h1 { color: #fff; margin: 0; font-size: 1.5rem; }
.actions-rapides { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
.actions-rapides a { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 1rem; display: flex; gap: .7rem; align-items: center; color: var(--navy); font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.actions-rapides a:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.actions-rapides svg { color: var(--bleu); }
@media (max-width: 900px) { .actions-rapides { grid-template-columns: 1fr 1fr; } }
.barre-outils { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.barre-outils input, .barre-outils select { width: auto; flex: 1 1 180px; min-height: 40px; }
@media (max-width: 640px) { .app-main { padding: 1rem 12px; } .tableau td, .tableau th { padding: .55em .45em; } .kpi .v { font-size: 1.5rem; } }

/* Entrée du haut de page : visible immédiatement, léger glissement (pas de fondu depuis l'invisible). */
@keyframes entree { from { transform: translateY(10px); } to { transform: none; } }
.entree { animation: entree .5s ease-out both; }
.entree-2 { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) { .entree { animation: none; } }
@media (max-width: 900px) { .heros { padding-bottom: 5rem; } .heros::after { height: 34px; } }

/* Accessibilité : lien d'évitement, focus visible au clavier, élément courant de la navigation. */
.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.lien-evitement:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }

/* Accessibilité WCAG 2.1 AA (audit du 2026-10-19) */
/* Contour de focus : bleu foncé sur fond clair (7,9:1), cyan sur fond sombre (8,0:1). */
:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.app-nav, .pied, .heros, .page-tete, .legal-tete, .section-sombre, .auth-visuel, .bandeau-cta, .cta-image, .bienvenue, .lien-evitement { --focus: var(--cyan); }
.lien-evitement:focus { outline: 3px solid var(--cyan); outline-offset: -3px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
/* Cibles d'au moins 24 px (2.5.5 visé au niveau AA de la 2.2 : 2.5.8) pour les boutons texte et les liens de menu. */
.btn-lien { min-height: 24px; min-width: 24px; }
.entete nav a, .legal-nav a, .pied a { display: inline-block; min-height: 24px; }
.forfait h2 { font-size: 1.1rem; font-weight: 700; }
.espace-haut { margin-top: .4rem; }
.bienvenue .bienvenue-titre { color: #fff; margin: 0; font-size: 1.5rem; }
.a-droite { text-align: right; }
.tableau th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: 400; color: inherit; padding: .7em; }
.auth-accroche { font: 800 1.8rem/1.2 Manrope, Inter, sans-serif; color: #fff; margin: 0 0 .5em; }
/* Moins de mouvement : toutes les animations continues s'arrêtent. */
@media (prefers-reduced-motion: reduce) { .cf-signature, .cf-preuve, .cf-progression, .zone.moi, .entree { animation: none; } .btn:hover, .atout:hover, .segment:hover, .actions-rapides a:hover { transform: none; } .segment:hover img { transform: none; } }

/* Logo LBN SignFlow (fond blanc) posé sur les zones sombres */
.logo-plaque { display: inline-block; align-self: flex-start; background: #fff; border-radius: 10px; padding: 6px 10px; line-height: 0; }
.entete .logo img { height: 44px; width: auto; }
.app-nav .logo.logo-plaque img { height: 40px; width: auto; }

/* Tarifs (grille du 20 octobre 2026) */
.quota-forfait { margin: .9rem 0 0; padding: .7rem .8rem; background: var(--fond); border-radius: 10px; font-size: .92rem; line-height: 1.55; }
.institution { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.institution > div { flex: 1 1 420px; }
.offres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.offre { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 1.1rem; text-align: center; box-shadow: var(--ombre); }
.offre-prix { font: 800 1.6rem Manrope, sans-serif; color: var(--navy); margin-bottom: .2rem; }
@media (max-width: 1000px) { .offres { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .offres { grid-template-columns: 1fr 1fr; } }
.paliers td:last-child, .paliers th:last-child { text-align: right; font-weight: 700; }
.regles { padding-left: 1.2rem; display: grid; gap: .5rem; }
.comparatif th[scope=row] { min-width: 180px; }

/* Mobile : les tableaux défilent dans leur cadre, les grilles ne débordent jamais de l'écran */
.defile { max-width: 100%; }
.carte, .legal-grille > *, .duo > *, .prix > *, .segments > * { min-width: 0; }
.legal-nav a, .legal-nav strong { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) { .comparatif th, .comparatif td { padding: .45rem .4rem; font-size: .85rem; } .comparatif th[scope=row] { min-width: 130px; } }
