/* Site vitrine + espace client de Prestation Service 76 (style « Avant / Après »).
   Ajouté par Noah le 2026-12-03. Police Schibsted Grotesk hébergée chez nous (pas de Google Fonts). */
@font-face { font-family: "Schibsted"; src: url(/static/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
             font-weight: 400 900; font-display: swap; }

:root {
  --encre: #13203B; --bleu: #2F5BEA; --bleu-fonce: #2448C4; --ciel: #EEF2FD; --vert: #1B9A68;
  --gris: #5B6478; --trait: #DFE4EE; --fond: #FFFFFF; --fond-doux: #F6F8FC;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { font-family: "Schibsted", system-ui, sans-serif; color: var(--encre); background: var(--fond); line-height: 1.55;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
.boite { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* --- Barre du haut --- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
       border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.ombre { border-bottom-color: var(--trait); }
.nav .boite { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.marque { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; text-decoration: none; }
.marque i { width: 36px; height: 36px; border-radius: 10px; background: var(--encre); color: #fff; display: grid;
            place-items: center; font-style: normal; font-weight: 800; }
.nav .liens { display: flex; gap: 30px; font-size: 15px; color: var(--gris); }
.nav .liens a { text-decoration: none; }
.nav .liens a:hover { color: var(--encre); }
.nav .acces { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
       font: 600 14.5px/1 "Schibsted", sans-serif; border: 1.5px solid var(--trait); background: #fff; color: var(--encre);
       text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--encre); }
.btn.fonce { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn.bleu { background: var(--bleu); border-color: var(--bleu); color: #fff; padding: 16px 26px; font-size: 16px; }
.btn.bleu:hover { background: var(--bleu-fonce); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* --- Haut de page : le comparateur avant / après --- */
.hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; padding: 56px 0 88px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.03; font-weight: 800; letter-spacing: -0.022em; }
.hero .chapo { font-size: 19px; color: var(--gris); margin: 22px 0 32px; max-width: 30em; }
.preuves { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--gris); font-size: 14.5px; }
.preuves b { color: var(--encre); }

.comparateur { position: relative; aspect-ratio: 1.42; border-radius: 20px; overflow: hidden; border: 1px solid var(--trait);
               box-shadow: 0 40px 80px -40px rgba(19,32,59,.45); --pos: 30%; user-select: none; touch-action: pan-y; }
.comparateur .vue { position: absolute; inset: 0; }
.comparateur input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.comparateur .apres { clip-path: inset(0 0 0 var(--pos)); background: #fff; }
.poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--bleu); z-index: 4; pointer-events: none; }
.poignee span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
                background: var(--bleu); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(47,91,234,.45); }
.comparateur:focus-within .poignee span { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--bleu); }
.etiquette { position: absolute; bottom: 14px; z-index: 3; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; pointer-events: none; }
.etiquette.g { left: 14px; background: rgba(19,32,59,.82); color: #fff; }
.etiquette.d { right: 14px; background: var(--bleu); color: #fff; }

/* Le « vieux site » (volontairement daté) */
.vieux { background: #d7e8c8; font-family: "Times New Roman", serif; color: #222; }
.vieux .bandeau { background: linear-gradient(#7fa65a, #4f7a2e); color: #ff0; font: italic 30px "Times New Roman", serif;
                  text-align: center; padding: 16px; text-shadow: 2px 2px #333; white-space: nowrap; }
.vieux .menu { background: #333; color: #fff; font-size: 12px; padding: 6px; text-align: center; letter-spacing: .02em; white-space: nowrap; }
.vieux .texte { padding: 16px 22px; font-size: 14px; }
.vieux .defile { color: #d10000; font-weight: bold; font-family: "Comic Sans MS", cursive; margin-bottom: 10px; }
.vieux .compteur { margin-top: 14px; display: inline-block; background: #000; color: #0f0; font: 13px monospace; padding: 3px 8px; }
/* Le « nouveau site » */
.neuf .haut { display: flex; justify-content: flex-end; gap: 14px; align-items: center; padding: 16px 22px; font-weight: 700; border-bottom: 1px solid #eef1f6; }
.neuf .haut span:last-child { background: var(--vert); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; }
.neuf .visuel { margin: 16px; border-radius: 14px; height: 52%; background: linear-gradient(135deg, #1d3c2e, #2f7a55); color: #fff;
                padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; }
.neuf .visuel small { font-size: 13px; opacity: .85; }
.neuf .visuel b { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.08; }
.neuf .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px; }
.neuf .services div { background: #f2f6f3; border-radius: 10px; padding: 12px; font-size: 13px; font-weight: 600; height: 70px; }

/* --- Sections --- */
section.bloc { padding: 96px 0; }
section.bloc.doux { background: var(--fond-doux); }
.bloc h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.018em; font-weight: 800; max-width: 18em; }
.bloc .intro { color: var(--gris); font-size: 18px; margin-top: 14px; max-width: 36em; }

.services-liste { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.service { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--trait); }
.service .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ciel); color: var(--bleu); display: grid; place-items: center; }
.service h3 { font-size: 21px; font-weight: 700; }
.service p { color: var(--gris); margin-top: 6px; }

.etapes { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: etape; position: relative; }
.etapes::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--trait); }
.etape { position: relative; counter-increment: etape; }
.etape::before { content: counter(etape); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
                 background: #fff; border: 2px solid var(--bleu); color: var(--bleu); font-weight: 800; font-size: 18px; position: relative; }
.etape h3 { font-size: 19px; margin: 20px 0 8px; }
.etape p { color: var(--gris); font-size: 15.5px; }
.etape.gratuit::after { content: "Gratuit"; position: absolute; top: 10px; left: 58px; background: var(--vert); color: #fff;
                        font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

.espace { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.espace ul { list-style: none; margin: 26px 0 30px; display: grid; gap: 12px; }
.espace li { display: flex; gap: 12px; align-items: flex-start; }
.espace li svg { flex: none; color: var(--vert); margin-top: 3px; }
.apercu-suivi { background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px -40px rgba(19,32,59,.35); }
.apercu-suivi .titre { font-weight: 700; display: flex; justify-content: space-between; }
.apercu-suivi .titre span { color: var(--gris); font-weight: 500; font-size: 14px; }

/* Barre d'avancement (utilisée aussi dans l'espace client) */
.avancement { list-style: none; display: grid; gap: 0; margin-top: 18px; }
.avancement li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding-bottom: 16px; position: relative; color: var(--gris); }
.avancement li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--trait); }
.avancement li:last-child::before { display: none; }
.avancement .pt { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--trait); background: #fff; display: grid; place-items: center; z-index: 1; }
.avancement li.fait { color: var(--encre); }
.avancement li.fait .pt { background: var(--vert); border-color: var(--vert); color: #fff; }
.avancement li.fait::before { background: var(--vert); }
.avancement li.actuel { color: var(--encre); font-weight: 700; }
.avancement li.actuel .pt { border-color: var(--bleu); box-shadow: 0 0 0 5px var(--ciel); }
.avancement li.actuel .pt::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); }
.avancement small { display: block; font-weight: 400; color: var(--gris); font-size: 13.5px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.formulaire .large { grid-column: 1 / -1; }
.champ label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.champ input, .champ textarea { width: 100%; font: 16px "Schibsted", sans-serif; color: var(--encre); padding: 13px 15px;
                                border: 1.5px solid var(--trait); border-radius: 12px; background: #fff; }
.champ input:focus, .champ textarea:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 4px var(--ciel); }
.champ textarea { min-height: 130px; resize: vertical; }
.piege { position: absolute; left: -9999px; }
.message-form { grid-column: 1 / -1; font-size: 15px; padding: 12px 14px; border-radius: 12px; }
.message-form.ok { background: #e7f6ef; color: #126b48; }
.message-form.ko { background: #fdecec; color: #a12626; }
.coordonnees { background: var(--encre); color: #fff; border-radius: 20px; padding: 34px; align-self: start; margin-top: 32px; }
.coordonnees h3 { font-size: 20px; margin-bottom: 18px; }
.coordonnees a, .coordonnees div { display: flex; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none;
                                   border-top: 1px solid rgba(255,255,255,.14); color: #e4e9f5; }
.coordonnees svg { color: #8fa9ff; flex: none; }

footer { border-top: 1px solid var(--trait); padding: 30px 0; color: var(--gris); font-size: 14px; }
footer .boite { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer nav { display: flex; gap: 22px; }

/* --- Pages simples (mentions légales, connexion client, espace client) --- */
.page-simple { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }
.page-simple h1 { font-size: 38px; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px; }
.page-simple h2 { font-size: 21px; margin: 34px 0 8px; }
.page-simple p, .page-simple li { color: #34405a; }
.page-simple ul { padding-left: 20px; }
.a-completer { background: #fff7e0; border-radius: 6px; padding: 1px 6px; color: #7a5600; }

.connexion-client { min-height: calc(100vh - 77px); display: grid; place-items: center; padding: 40px 20px; background: var(--fond-doux); }
.carte-connexion { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 36px;
                   box-shadow: 0 30px 60px -40px rgba(19,32,59,.35); }
.carte-connexion h1 { font-size: 28px; letter-spacing: -0.015em; }
.carte-connexion .sous { color: var(--gris); margin: 8px 0 24px; }
.carte-connexion form { display: grid; gap: 16px; }
.carte-connexion .btn.bleu { width: 100%; }
.carte-connexion .bas { margin-top: 20px; font-size: 14px; color: var(--gris); text-align: center; }
.erreur { background: #fdecec; color: #a12626; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; }

@media (max-width: 960px) {
  .nav .liens { display: none; }
  .hero, .espace, .contact { grid-template-columns: 1fr; gap: 40px; }
  .services-liste { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .etapes::before { display: none; }
}
@media (max-width: 600px) {
  .boite { padding: 0 20px; }
  .nav .acces .btn:first-child { display: none; }
  .etapes, .formulaire { grid-template-columns: 1fr; }
  section.bloc { padding: 72px 0; }
  .comparateur { aspect-ratio: 1.05; }
  .neuf .services { grid-template-columns: 1fr 1fr; }
}

/* --- Espace client --- */
.espace-client { background: var(--fond-doux); }
.qui-connecte { align-self: center; font-weight: 600; margin-right: 6px; }
.ec { padding: 40px 32px 80px; }
.ec-titre h1 { font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; }
.ec-titre p { color: var(--gris); margin-top: 8px; }
.ec-vide { max-width: 560px; margin: 60px auto; text-align: center; }
.ec-vide h1 { font-size: 30px; margin-bottom: 12px; }
.ec-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; margin-top: 28px; align-items: start; }
.ec-col { display: grid; gap: 24px; }
.ec-carte { background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 26px; }
.ec-carte h2 { font-size: 19px; margin-bottom: 4px; }
.ec-carte .aide { color: var(--gris); font-size: 14.5px; margin-bottom: 14px; }
.liens-site { display: grid; gap: 10px; margin-top: 14px; }
.liens-site .btn { justify-content: flex-start; }
.liens-site p { color: var(--gris); font-size: 14.5px; }
.fil { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; margin: 14px 0; padding-right: 4px; }
.bulle { max-width: 85%; padding: 12px 14px; border-radius: 16px; background: var(--fond-doux); white-space: pre-wrap; word-wrap: break-word; }
.bulle.moi { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 6px; }
.bulle.eux { border-bottom-left-radius: 6px; }
.bulle small { display: block; font-size: 12px; opacity: .75; margin-top: 4px; }
.fil .vide { color: var(--gris); font-size: 14.5px; }
.ecrire { display: grid; gap: 10px; }
.ecrire textarea { font: 15.5px "Schibsted", sans-serif; padding: 12px 14px; border: 1.5px solid var(--trait); border-radius: 12px; min-height: 90px; resize: vertical; }
.ecrire textarea:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 4px var(--ciel); }
.ecrire .btn { justify-self: start; padding: 13px 20px; font-size: 15px; }
.depot { display: grid; place-items: center; border: 2px dashed var(--trait); border-radius: 16px; padding: 26px; text-align: center; cursor: pointer; color: var(--gris); }
.depot:hover, .depot.survol { border-color: var(--bleu); background: var(--ciel); color: var(--encre); }
.depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.depot:focus-within { outline: 3px solid var(--bleu); outline-offset: 2px; }
.depot b { color: var(--bleu); }
.retour { font-size: 14px; margin-top: 10px; min-height: 1em; color: var(--gris); }
.retour.ko { color: #a12626; }
.fichiers { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.fichiers li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--trait); font-size: 14.5px; }
.fichiers a { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichiers span { margin-left: auto; color: var(--gris); font-size: 13px; white-space: nowrap; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) { .ec-grille { grid-template-columns: 1fr; } .ec { padding: 28px 20px 60px; } }

/* --- Accueil général : services et façon de travailler (ajouté par Noah le 2026-12-03) --- */
.cta-ligne { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.grand { padding: 16px 24px; font-size: 16px; }
.hero .apercu-suivi { max-width: 520px; justify-self: end; width: 100%; }
.fil-ariane { display: inline-block; margin-bottom: 14px; color: var(--gris); font-size: 14.5px; text-decoration: none; }
.fil-ariane::before { content: "← "; }
.fil-ariane:hover { color: var(--encre); }

.services-grille { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-carte { display: grid; gap: 18px; background: #fff; border: 1px solid var(--trait); border-radius: 22px; padding: 30px;
                 text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.service-carte:hover { border-color: var(--bleu); box-shadow: 0 24px 50px -36px rgba(47,91,234,.6); }
.service-carte .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--ciel); color: var(--bleu); display: grid; place-items: center; }
.service-carte h3 { font-size: 24px; letter-spacing: -0.01em; }
.service-carte p { color: var(--gris); margin-top: 8px; max-width: 34em; }
.service-carte .lien { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--bleu); }
.service-carte .lien::after { content: " ›"; }
.services-grille.seul .service-carte { grid-template-columns: 56px 1fr 300px; align-items: center; gap: 28px; padding: 36px 40px; }
.mini-comparateur { position: relative; height: 170px; border-radius: 14px; overflow: hidden; border: 1px solid var(--trait); display: grid; grid-template-columns: 1fr 1fr; }
.mini-comparateur .avant { background: #d7e8c8; color: #ff0; font: italic 18px "Times New Roman", serif; text-shadow: 1px 1px #333;
                           display: grid; place-items: center; background-image: linear-gradient(#7fa65a, #4f7a2e); background-size: 100% 46px; background-repeat: no-repeat; align-content: start; padding-top: 12px; }
.mini-comparateur .apres { background: linear-gradient(135deg, #1d3c2e, #2f7a55); color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
                           align-items: flex-start; gap: 10px; padding: 16px; border-left: 3px solid var(--bleu); }
.mini-comparateur .apres b { font-size: 17px; }
.mini-comparateur .apres span { background: var(--vert); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.principes { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.principes div { border-top: 3px solid var(--encre); padding-top: 16px; }
.principes h3 { font-size: 19px; line-height: 1.25; }
.principes p { color: var(--gris); margin-top: 8px; font-size: 15.5px; }
.champ select { width: 100%; font: 16px "Schibsted", sans-serif; color: var(--encre); padding: 13px 15px; border: 1.5px solid var(--trait);
                border-radius: 12px; background: #fff; }
.champ select:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 4px var(--ciel); }
@media (max-width: 960px) {
  .services-grille.seul .service-carte { grid-template-columns: 1fr; padding: 28px; }
  .principes { grid-template-columns: 1fr 1fr; }
  .hero .apercu-suivi { justify-self: stretch; max-width: none; }
}
@media (max-width: 600px) { .principes { grid-template-columns: 1fr; } }

/* Page de maintenance (Ajouté par Noah le 2026-12-03) */
.maintenance { min-height: calc(100vh - 77px); display: grid; place-items: center; padding: 40px 20px; background: var(--fond-doux); }
.maintenance-boite { max-width: 540px; text-align: center; background: var(--fond); border: 1px solid var(--trait);
                     border-radius: 20px; padding: 44px 36px; }
.maintenance-ic { color: var(--bleu); margin-bottom: 14px; }
.maintenance h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.maintenance p { color: var(--gris); font-size: 17px; }
.maintenance .maintenance-note { margin-top: 10px; font-size: 15px; }
.maintenance .maintenance-contact { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--trait); font-size: 15px; }
.maintenance-contact a { color: var(--encre); font-weight: 600; }

/* Bandeau vu seulement par l'équipe quand le site est en maintenance */
.bandeau-maintenance { background: #FFF4D6; color: #6B4A00; text-align: center; font-size: 14px; padding: 9px 16px;
                       border-bottom: 1px solid #F0DDA4; }
.bandeau-maintenance a { font-weight: 600; }

/* Message vert (mot de passe changé, lien envoyé) — Ajouté par Noah le 2026-12-03 */
.message-ok { background: #e7f6ef; color: #126b48; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; }

/* =====================================================================
   AMBIANCE « SITE » POUR L'ESPACE CLIENT (Modifié par Noah le 2026-12-03)
   Même style que l'espace équipe : bleu nuit avec halos bleus, nouveau logo P, titres de page en serif
   « Instrument Serif », texte en « DM Sans », sombre seulement. Ce bloc passe après tout le reste et le remplace.
   (vitrine.css ne sert plus qu'à l'espace client : le site public utilise site.css.)
   ===================================================================== */
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/static/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/static/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/static/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root { color-scheme: dark;
  --nuit: #0A1D3F; --texte: #EEF3FC; --doux: #A1B5D8; --lien: #5AA0FF; --bleu-plein: #2F7BEA; --bleu-pale: #B9D3F8;
  --verre: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)), rgba(8,23,51,.55);
  --bord: rgba(255,255,255,.1); --champ: rgba(4,14,34,.55); --serif: "Instrument Serif", "Times New Roman", serif; }
body, body.espace-client {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texte);
  background: radial-gradient(ellipse 55% 45% at 88% -5%, rgba(50,120,230,.45), transparent 70%),
              radial-gradient(ellipse 40% 50% at 15% 105%, rgba(40,110,230,.35), transparent 70%), var(--nuit);
  background-attachment: fixed; min-height: 100vh;
}
:focus-visible { outline-color: var(--lien); }

/* Barre du haut */
.nav, .nav.ombre { background: rgba(6,20,48,.82); border-bottom: 1px solid rgba(255,255,255,.08); }
.marque { font: 400 21px/1 var(--serif); color: #fff; gap: 11px; white-space: nowrap; }
.marque em { font-style: italic; }
.marque .logo-p { width: 32px; height: 32px; flex: none; }
.qui-connecte { color: var(--doux); font-weight: 500; }

/* Boutons */
.btn { background: transparent; border-color: rgba(255,255,255,.22); color: #fff; font-family: inherit; }
.btn:hover { border-color: #fff; }
.btn.fonce { background: #fff; border-color: #fff; color: var(--nuit); }
.btn.bleu { background: var(--bleu-plein); border-color: var(--bleu-plein); color: #fff; }
.btn.bleu:hover { background: #3E8BFA; border-color: #3E8BFA; }

/* Connexion, mot de passe oublié */
.connexion-client { background: transparent; }
.carte-connexion { background: var(--verre); border: 1px solid var(--bord); box-shadow: 0 30px 60px -30px rgba(2,10,30,.8); color: var(--texte); }
.carte-connexion h1 { font: 400 40px/1.02 var(--serif); letter-spacing: 0; }
.carte-connexion .sous, .carte-connexion .bas { color: var(--doux); }
.carte-connexion .bas a { color: var(--lien); }
.champ label { color: var(--texte); font-weight: 500; }
.champ input, .champ textarea, .champ select, .ecrire textarea {
  font-family: inherit; background: var(--champ); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.champ input:focus, .champ textarea:focus, .champ select:focus, .ecrire textarea:focus {
  border-color: var(--lien); box-shadow: 0 0 0 4px rgba(90,160,255,.18); }
.erreur { background: rgba(255,138,138,.14); color: #FFA3A3; }
.message-ok { background: rgba(74,222,155,.14); color: #7BE8B6; }

/* Mon espace */
.espace-client .ec-titre h1 { font: 400 clamp(40px, 5vw, 60px)/1.02 var(--serif); letter-spacing: -0.01em; }
.ec-titre p, .ec-vide p { color: var(--doux); }
.ec-vide h1 { font: 400 44px/1.05 var(--serif); }
.ec-carte { background: var(--verre); border: 1px solid var(--bord); }
.ec-carte h2 { font-weight: 600; font-size: 18px; }
.ec-carte .aide, .liens-site p, .fil .vide, .retour { color: var(--doux); }
.avancement li { color: var(--doux); }
.avancement li::before { background: rgba(255,255,255,.14); }
.avancement .pt { background: var(--nuit); border-color: rgba(255,255,255,.22); }
.avancement li.fait, .avancement li.actuel { color: var(--texte); }
.avancement li.fait .pt { background: var(--bleu-plein); border-color: var(--bleu-plein); }
.avancement li.fait::before { background: var(--bleu-plein); }
.avancement li.actuel .pt { border-color: var(--lien); box-shadow: 0 0 0 5px rgba(90,160,255,.18); }
.avancement li.actuel .pt::after { background: var(--lien); }
.avancement small { color: var(--doux); }
.bulle { background: rgba(255,255,255,.07); color: var(--texte); }
.bulle.moi { background: var(--bleu-plein); color: #fff; }
.depot { border-color: rgba(255,255,255,.2); color: var(--doux); }
.depot:hover, .depot.survol { border-color: var(--lien); background: rgba(90,160,255,.1); color: var(--texte); }
.depot b { color: var(--lien); }
.retour.ko { color: #FFA3A3; }
.fichiers li { border-top-color: rgba(255,255,255,.08); }
.fichiers a { color: var(--texte); }
.fichiers a:hover { color: var(--lien); }
.fichiers span { color: var(--doux); }
footer { border-top-color: rgba(255,255,255,.08); color: var(--doux); }

/* Sur téléphone, le bouton « Me déconnecter » doit rester visible (il était caché par la règle du site vitrine) */
@media (max-width: 680px) {
  .espace-client .nav .acces form .btn { display: inline-flex; padding: 9px 14px; font-size: 13.5px; }
  .espace-client .qui-connecte { display: none; }
  .marque { font-size: 18px; }
}

/* Bouton « Retour au site » (Ajouté par Noah le 2026-12-03) : toujours visible, raccourci sur téléphone */
.nav .acces .btn.retour-site { display: inline-flex; }
@media (max-width: 680px) {
  .retour-site .long { display: none; }
  .nav .acces { gap: 8px; }
  .nav .acces .btn { padding: 9px 13px; font-size: 13.5px; }
}
@media (max-width: 400px) { .marque span { display: none; } }

/* Prestation choisie, sous le nom de l'entreprise (Ajouté par Noah le 2026-12-03) */
.ec-prestation { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 999px; font-size: 14px;
                 background: rgba(90,160,255,.14); border: 1px solid rgba(90,160,255,.3); color: var(--doux); }
.ec-prestation b { color: #fff; font-weight: 600; }

/* Devis et factures dans l'espace client (ajouté par Noah le 2026-12-03) */
.documents .doc-statut { font-weight: 600; color: var(--doux); }
.documents .doc-statut.a-faire { color: #FFC857; }
.documents .doc-statut.ok { color: #4ADE9B; }
