/* Porte client (portail L2, 01.10.2026) — tout le style de l'espace client est ici :
   la politique de sécurité du contenu de cette porte interdit les styles en ligne. */
:root { --encre: #0F1F33; --doux: #667085; --fond: #F4F6FA; --carte: #FFFFFF;
        --bord: #E4E9F0; --bleu: #2563EB; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
       Helvetica, Arial, sans-serif; background-color: var(--fond); color: var(--encre);
       font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex;
       flex-direction: column; align-items: center; }
/* Le fond : une image par jour parmi celles de la saison, fournies par Paul le
   01.10.2026 (views/portail.py, FONDS et fond_du). Sans image (fichier absent), la
   couleur de fond reste. */
body[class*="fond-"] { background-size: cover; background-position: center center;
                       background-repeat: no-repeat; }
.fond-printemps-geneve { background-image: url("portail/printemps-geneve.jpg"); }
.fond-ete-geneve { background-image: url("portail/ete-geneve.jpg"); }
.fond-ete-crique { background-image: url("portail/ete-crique.jpg"); }
.fond-automne-geneve { background-image: url("portail/automne-geneve.jpg"); }
.fond-automne-melezes { background-image: url("portail/automne-melezes.jpg"); }
.fond-hiver-geneve { background-image: url("portail/hiver-geneve.jpg"); }
.fond-hiver-chalets { background-image: url("portail/hiver-chalets.jpg"); }
.entete { width: 100%; background: rgba(15, 31, 51, .78); color: #fff; padding: 12px 20px;
          display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
          margin-bottom: 24px; }
.entete .marque { font-weight: 700; font-size: 17px; }
/* « Portail client » : le client sait qu'il n'est pas sur la connexion des conseillers. */
.entete .porte { margin-left: auto; background: #fff; color: var(--encre); font-weight: 700;
                 font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
                 padding: 5px 12px; border-radius: 999px; }
/* Centrée verticalement, comme le formulaire de Redox : le haut et le bas de l'image
   (ciel, soleil, premier plan) restent visibles. */
.carte { width: calc(100% - 32px); max-width: 560px; margin: auto; background: rgba(255, 255, 255, .97);
         border: 1px solid var(--bord); border-radius: 16px; padding: 28px 26px;
         box-shadow: 0 18px 50px rgba(16, 32, 64, .22); }
.carte .surtitre { color: var(--bleu); font-size: 12px; font-weight: 700; letter-spacing: .12em;
                   text-transform: uppercase; margin: 0 0 6px; }
.carte h1 { font-size: 22px; margin: 0 0 12px; line-height: 1.25; }
.carte p { color: var(--doux); margin: 0 0 12px; }
/* La référence d'une erreur (journal du portail, L3) : se lit et se dicte sans hésiter. */
.carte .reference { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--encre);
                    letter-spacing: .1em; }
a { color: var(--bleu); }
.pied { margin-top: 24px; padding: 0 16px 24px; text-align: center; }
.pied span { display: inline-block; background: rgba(255, 255, 255, .92); color: var(--encre);
             font-size: 13px; padding: 6px 14px; border-radius: 999px; }
/* Formulaires du portail (L5) : connexion, activation, « Demander mon accès ». */
.formulaire { margin: 16px 0 0; }
.formulaire > div, .formulaire .case { margin: 0 0 14px; }
.formulaire label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.formulaire input[type="text"], .formulaire input[type="email"],
.formulaire input[type="password"], .formulaire input[type="number"],
.formulaire input:not([type]) { width: 100%; font-size: 16px; padding: 10px 12px;
                                 border: 1px solid #C9D2DE; border-radius: 10px;
                                 background: #fff; color: var(--encre); }
.formulaire textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px;
                       border: 1px solid #C9D2DE; border-radius: 10px; background: #fff;
                       color: var(--encre); resize: vertical; min-height: 96px; }
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--bleu); outline-offset: 1px; }
/* Les rubriques de l'accueil (L6) : Assurances, Signaler un problème, compte. */
.rubrique { border-top: 1px solid var(--bord); margin-top: 20px; padding-top: 16px; }
.rubrique h2 { font-size: 17px; margin: 0 0 8px; }
.formulaire .case { display: flex; gap: 10px; align-items: flex-start; }
.formulaire .case input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.formulaire .case label { font-weight: 400; color: var(--encre); }
.aide, .helptext { color: var(--doux); font-size: 13px; }
.aide ul { margin: 6px 0 0; padding-left: 18px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 8px; color: #B42318; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
button.principal, button.secondaire, a.bouton { font-size: 16px; font-weight: 600; padding: 11px 18px;
                                                 border-radius: 10px; cursor: pointer; text-decoration: none;
                                                 display: inline-block; text-align: center; }
button.principal, a.bouton.principal { background: var(--bleu); color: #fff; border: 1px solid var(--bleu); }
button.secondaire, a.bouton.secondaire { background: #fff; color: var(--encre); border: 1px solid #C9D2DE; }
.formulaire-lien { margin: 12px 0 0; }
button.lien { background: none; border: 0; padding: 0; color: var(--bleu); font-size: 14px;
              text-decoration: underline; cursor: pointer; }
.liens-bas { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--bord); }
.liens-bas p { font-size: 14px; margin: 0 0 8px; }
.carte p.alerte, .alerte { color: #B42318; background: #FEF3F2; border: 1px solid #FECDCA;
                           border-radius: 10px; padding: 10px 12px; }
.carte p.confirmation { color: #05603A; background: #ECFDF3; border: 1px solid #ABEFC6;
                        border-radius: 10px; padding: 10px 12px; }
.messages { list-style: none; padding: 0; margin: 0 0 12px; color: #B42318; }
/* Le lien de l'e-mail, à l'écran — sur la copie locale d'un poste SEULEMENT. */
.copie-locale { background: #B42318; color: #fff; border-radius: 10px; padding: 10px 12px;
                margin: 12px 0; font-size: 14px; word-break: break-all; }
.copie-locale a { color: #fff; }
.conditions { max-height: 220px; overflow-y: auto; border: 1px solid var(--bord); border-radius: 10px;
              padding: 10px 14px; margin: 0 0 14px; font-size: 14px; color: var(--encre); background: #FAFBFD; }
.conditions p { color: var(--encre); }
.conditions ul { padding-left: 18px; margin: 0; }
.etapes { padding-left: 20px; color: var(--doux); }
.qr { text-align: center; }
.qr img { width: 220px; height: 220px; background: #fff; }
.cle, .codes { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--encre); }
.cle { word-break: break-all; letter-spacing: .05em; }
.codes { columns: 2; font-size: 17px; padding-left: 28px; }
.codes li { margin: 0 0 6px; }
/* Bandeau rouge de la répétition / de la copie d'un poste (middleware_repetition.py) :
   son style en ligne est bloqué ici, la règle est donc reprise. */
.c360-bandeau { position: sticky; top: 0; z-index: 99999; width: 100%; background: #B42318;
                color: #fff; font: 600 13px system-ui; padding: 6px 12px; text-align: center; }
/* Sur un téléphone, l'image est rognée : on garde son sujet dans le cadre (le Jet
   d'eau, les chalets, la crique). Sélecteurs `body.` : ils doivent l'emporter sur
   `body[class*="fond-"]`. */
@media (max-width: 600px) {
  .carte { width: calc(100% - 24px); padding: 22px 18px; }
  body.fond-printemps-geneve, body.fond-ete-geneve, body.fond-automne-geneve,
  body.fond-hiver-geneve, body.fond-hiver-chalets { background-position: 76% center; }
  body.fond-ete-crique { background-position: 62% center; }
}

/* ── L'espace fiscal du client (lot F3, 08.11.2026) — le croquis du 06.11.2026 : une carte par
   rubrique, une barre « N rubriques sur M », « Vous avez terminé ? ». Les classes `.js` ne valent
   qu'avec depot.js ; sans lui, chaque carte montre son champ de fichier et son bouton « Envoyer ». */
.carte.large { max-width: 1120px; }
.fil { margin: 0 0 10px; font-size: 14px; }
.carte .intro { max-width: 72ch; color: var(--encre); }
.annees a { margin: 0 2px; }
.carte p.info, .info { color: var(--encre); background: #EFF4FF; border: 1px solid #C7D7FE;
                       border-radius: 10px; padding: 10px 12px; }
.vos-donnees { border: 1px solid var(--bord); border-radius: 12px; padding: 10px 16px;
               margin: 0 0 16px; background: #FAFBFD; }
.vos-donnees summary { cursor: pointer; font-weight: 700; }
.vos-donnees dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px;
                  margin: 10px 0; font-size: 14px; }
.vos-donnees dt { color: var(--doux); }
.vos-donnees dd { margin: 0; overflow-wrap: anywhere; }
.consentement { border: 2px solid var(--bleu); border-radius: 12px; padding: 14px 18px;
                margin: 0 0 18px; background: #F5F8FF; }
.consentement h2 { font-size: 17px; margin: 0 0 6px; }
.avance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: #F2F5F9;
          border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.avance progress { flex: 1 1 200px; height: 10px; accent-color: #17794A; }
.avance span { color: var(--doux); font-size: 14px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rub { background: #fff; border: 2px solid var(--bord); border-radius: 14px; padding: 18px;
       display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rub.finie { border-color: #17794A; }
.rub.deposee { border-color: #9EC3F7; }
.rub.non { opacity: .65; }
.rub.survol { border-color: var(--bleu); border-style: dashed; background: #F5F8FF; }
.rub.envoi { border-color: var(--bleu); }
.rub-tete { display: flex; align-items: center; gap: 12px; }
.rub-tete h2 { font-size: 17px; margin: 0; flex: 1; min-width: 0; line-height: 1.25; }
.rub .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center;
            color: var(--bleu); }
.rub .ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.9;
                stroke-linecap: round; stroke-linejoin: round; }
.rub .ico-revenus, .rub .ico-prevoyance { color: #0F7C8C; }
.rub .ico-enfants, .rub .ico-deductions { color: #D1343F; }
.rub .ico-dettes, .rub .ico-immeubles { color: #B07A00; }
.rub .ico-autres { color: #17794A; }
.pastille { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px;
            background: #E3F4EB; color: #17794A; white-space: nowrap; }
.carte .rub p.aide { margin: 0; font-size: 13.5px; }
.attendues, .fichiers, .bilan { list-style: none; margin: 0; padding: 0; display: flex;
                                flex-direction: column; gap: 6px; }
.attendues li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: flex-start;
                font-size: 14px; }
.attendues .txt { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.coche { width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 5px;
         border: 2px solid #C9D2DE; display: grid; place-items: center; color: #fff;
         font-size: 12px; font-weight: 800; line-height: 1; }
.attendues li.recue .coche { background: #17794A; border-color: #17794A; }
.attendues li.recue .txt { color: var(--doux); }
.attendues li.manquante .coche { border-color: #B07A00; }
.rappel { display: block; font-size: 12.5px; color: #9A6200; font-weight: 700; }
.etat-ligne { display: block; font-size: 12.5px; color: var(--doux); }
.pour { color: var(--doux); }
.fichiers li { font-size: 13px; overflow-wrap: anywhere; }
.fichiers .nom { font-weight: 600; }
.fichiers .meta { color: var(--doux); }
.fichiers li.non_retenu .meta { color: #B42318; }
.gestes { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: auto; }
.depot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 auto;
         position: relative; }
.depot .choix { font-size: 14px; max-width: 100%; }
.depot .deposer { display: none; }
.js .depot .deposer { display: inline-block; border: 1.5px solid var(--bleu); color: var(--bleu);
                      background: #fff; border-radius: 99px; padding: 8px 18px; font-weight: 700;
                      cursor: pointer; }
.js .depot .deposer:hover { background: #EFF4FF; }
.js .depot:focus-within .deposer { outline: 3px solid var(--bleu); outline-offset: 2px; }
.js .depot .choix { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0;
                    overflow: hidden; }
.js .depot .envoyer { display: none; }
.bilan { width: 100%; font-size: 13px; }
.bilan li { overflow-wrap: anywhere; }
.bilan li.refusee { color: #B42318; }
.bilan li.deposee, .bilan li.doublon { color: #05603A; }
.bilan li.en-cours { color: var(--doux); }
.carte .rub p.aide-depot { font-size: 12.5px; margin: 0; }
form.mini { display: inline; margin: 0; }
.rub button.lien { font-size: 13px; color: var(--doux); }
.fin { border-top: 1px solid var(--bord); margin-top: 22px; padding-top: 16px; }
.fin h2 { font-size: 19px; margin: 0 0 8px; }
.oublis { background: #FCF1DC; border-radius: 10px; padding: 12px 16px; }
.oublis b { color: #9A6200; }
.oublis ul { margin: 6px 0 10px; padding-left: 18px; }
.carte p.merci { color: #05603A; background: #ECFDF3; border-radius: 10px; padding: 10px 12px;
                 font-weight: 600; }
@media (max-width: 600px) {
  .grille { grid-template-columns: 1fr; }
  .vos-donnees dl { grid-template-columns: 1fr; }
  .rub { padding: 14px; }
}

/* ── Les contrats du client (15.11.2026, views/portail_assurances.py) : une carte par contrat,
   ses données en deux colonnes, ses garanties, ses avenants et ses documents en listes. */
.contrat { background: #fff; border: 2px solid var(--bord); border-radius: 14px; padding: 16px 18px;
           margin: 0 0 16px; }
.contrat h2 { font-size: 18px; margin: 0 0 10px; line-height: 1.3; overflow-wrap: anywhere; }
.contrat h3 { font-size: 15px; margin: 14px 0 6px; }
.contrat-donnees { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.contrat-donnees dt { color: var(--doux); }
.contrat-donnees dd { margin: 0; overflow-wrap: anywhere; }
.garanties, .avenants, .documents { margin: 0; padding-left: 18px; }
.garanties li, .avenants li, .documents li { margin: 0 0 4px; overflow-wrap: anywhere; }
.garanties .nom { font-weight: 600; }
.garanties .meta, .documents .meta { color: var(--doux); }
/* Le lien vers les anciens contrats (22.11.2026) : « vraiment en petite option » (Paul). */
.discret { margin: 18px 0 0; font-size: 14px; }
.discret a { color: var(--doux); }
@media (max-width: 600px) {
  .contrat { padding: 14px; }
  .contrat-donnees { grid-template-columns: 1fr; }
  .contrat-donnees dd { margin-bottom: 6px; }
}
