.portal-page{background:var(--paper);min-height:100vh}.portal-header{height:82px;padding:0 max(5vw,24px);background:var(--surface);border-bottom:1px solid #e4e8ee;display:flex;align-items:center;justify-content:space-between}.portal-header>a:first-child{display:flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 145px;padding:10px 0}.portal-header img{display:block;width:100%;height:100%;max-height:60px;object-fit:contain}.portal-header>a:last-child{color:#40536c;font-size:16px;font-weight:700}.portal-main{max-width:1160px;margin:auto;padding:58px 24px 80px}.portal-intro{max-width:710px;margin-bottom:35px}.portal-intro h1{font-size:clamp(43px,6vw,68px);margin-bottom:16px}.portal-intro>p:last-child{color:var(--muted);max-width:600px}.portal-card{background:var(--surface);border:1px solid #e3e8ef;border-radius:6px;padding:28px;box-shadow:0 8px 24px #132b4810}.portal-card h2,.portal-welcome h2{font-size:25px;margin-bottom:9px}.portal-card>p{font-size:16px;color:var(--muted)}.portal-card form{display:grid;gap:14px}.portal-card label{display:grid;gap:6px;color:#344760;font-size:16px;font-weight:700}.portal-card input,.portal-card select,.portal-card textarea{width:100%;border:1px solid #d8dee7;border-radius:3px;background:var(--surface);padding:11px 12px;color:#172539;font-size:16px}.portal-card textarea{resize:vertical}.portal-card input:focus,.portal-card select:focus,.portal-card textarea:focus{border-color:#0c478e}.portal-card .button{justify-self:start;margin-top:2px}.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.portal-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.portal-welcome{display:flex;align-items:center;justify-content:space-between;margin:0 0 23px}.portal-welcome .eyebrow{margin-bottom:7px}.portal-register{margin-top:20px}.portal-list{display:grid;gap:10px}.portal-entry{border:1px solid #e4e8ef;border-left:3px solid #0c478e;padding:14px 16px;background:var(--surface)}.portal-entry h3{font-size:16px;margin:0 0 5px;color:#193554}.portal-entry p{font-size:16px;line-height:1.6;color:var(--muted);margin:2px 0}.portal-entry .entry-meta{font-size:16px;color:var(--muted)}.entry-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.entry-actions button{font:inherit;font-size:16px;font-weight:700;color:#fff;background:#0c478e;border:0;border-radius:3px;padding:8px 10px;cursor:pointer}.entry-actions button.secondary{background:#53657a}.portal-empty{padding:16px;background:var(--paper);color:var(--muted);font-size:16px}.portal-error{margin:0;color:#b4232b;background:#fff3f3;padding:9px 11px;font-size:16px}.portal-success{margin:0;color:#12603b;background:#edf8f1;padding:9px 11px;font-size:16px}.portal-note{font-size:16px;color:var(--muted);margin:17px 0 0}.portal-footer{border-top:1px solid #e2e7ed;background:var(--surface);display:flex;justify-content:center;gap:10px;padding:23px;font-size:16px;color:#64748a}.portal-footer a:hover,.portal-header>a:last-child:hover{color:#eb292f}@media(max-width:760px){.portal-main{padding:38px 18px 55px}.portal-grid{grid-template-columns:1fr}.portal-card{padding:21px}.portal-fields{grid-template-columns:1fr}.portal-header{height:70px}.portal-header>a:first-child{flex-basis:125px;padding:8px 0}.portal-header img{max-height:52px}}

.portal-card>p,.portal-empty{color:var(--muted)}.portal-welcome{gap:16px;flex-wrap:wrap}.portal-entry{overflow-wrap:anywhere}.portal-footer{flex-wrap:wrap}

@media(max-width:760px){.portal-card input,.portal-card select,.portal-card textarea{font-size:16px}}

/* Dossier terrain : documents privés, équipements et conditions contractuelles. */
.portal-page [hidden]{display:none!important}.portal-page button,.portal-page input,.portal-page select,.portal-page textarea{font-family:inherit}.portal-tabs{display:flex;gap:6px;padding:6px;background:var(--surface-soft);border:1px solid #dce3ed;border-radius:9px;margin:0 0 24px;max-width:720px}.portal-tabs button{flex:1;min-width:0;padding:12px 14px;border:0;border-radius:6px;background:transparent;color:#52657f;font-size:16px;line-height:1.4;font-weight:700;cursor:pointer}.portal-tabs button[aria-selected=true]{background:var(--surface);color:#0c478e;box-shadow:0 2px 7px #17345113}.portal-tabs button:hover{color:#0c478e;background:var(--surface)}.portal-page button:focus-visible,.portal-page a:focus-visible,.portal-page select:focus-visible,.portal-page input:focus-visible,.portal-page textarea:focus-visible{outline:3px solid #4787cf;outline-offset:3px}.terrain-icon{width:20px;height:20px;flex:0 0 20px}.terrain-panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 22px}.terrain-panel-heading h2{font-size:30px;line-height:1.25;color:#183455;margin:0 0 9px}.terrain-panel-heading .eyebrow{font-size:16px;margin:0 0 9px}.terrain-panel-heading p:not(.eyebrow){font-size:16px;line-height:1.6;color:var(--muted);max-width:610px;margin:0}.terrain-filter{display:grid;flex:0 1 265px;gap:6px;font-size:16px;color:#475d7a;font-weight:700}.terrain-filter select{width:100%;min-width:0;padding:11px 32px 11px 12px;border:1px solid #d1dce9;border-radius:5px;background:var(--surface);color:#233e61;font:inherit;font-size:16px;min-height:43px}.terrain-info{display:flex;align-items:flex-start;gap:11px;padding:15px 17px;border:1px solid #d6e3f3;background:var(--surface-soft);border-radius:6px;margin:0 0 22px;color:#375d86}.terrain-info .terrain-icon{margin-top:1px}.terrain-info p{font-size:16px;line-height:1.65;margin:0}.terrain-info-amber{background:#fff8ea;border-color:#f1d69d;color:#795b28}.terrain-report-groups{display:grid;gap:21px}.terrain-report-group{padding:0;overflow:hidden}.terrain-group-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;border-bottom:1px solid #e4eaf2;background:var(--surface)}.terrain-group-heading h3{font-size:18px;line-height:1.4;color:#193c68;margin:0 0 3px}.terrain-group-heading p{font-size:16px;line-height:1.5;color:var(--muted);margin:0}.terrain-group-amount{display:grid;gap:2px;text-align:right;flex-shrink:0}.terrain-group-amount span{font-size:16px;color:var(--muted)}.terrain-group-amount strong{font-size:20px;line-height:1.3;color:#1c3f69}.terrain-document{display:flex;align-items:flex-start;gap:15px;padding:23px 25px;min-width:0}.terrain-document+.terrain-document{border-top:1px solid #e9edf3}.terrain-file-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:44px;border-radius:8px;background:var(--surface-soft);color:#2d64a1}.terrain-document-detail{flex:1;min-width:0}.terrain-document h4{font-size:16px;line-height:1.5;color:#1b385e;margin:0 0 3px}.terrain-document-detail>p{margin:0;font-size:16px;color:var(--muted)}.terrain-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:11px}.terrain-badge{display:inline-flex;align-items:center;padding:4px 8px;background:var(--surface-soft);color:#53657b;border-radius:4px;font-size:16px;line-height:1.45;font-weight:700}.terrain-badge-green{background:#e5f3eb;color:#216246}.terrain-badge-amber{background:#fff2d9;color:#80571b}.terrain-document-detail>.terrain-lock-message{font-size:16px;line-height:1.65;color:var(--muted);margin-top:10px;max-width:550px}.terrain-document-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;flex-shrink:0}.terrain-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 13px;background:#124b8d;color:#fff;border:1px solid #124b8d;border-radius:5px;font-family:inherit;font-size:16px;line-height:1.4;font-weight:700;text-decoration:none;cursor:pointer;text-align:center}.terrain-button:hover{background:#0b3b73;border-color:#0b3b73;color:#fff}.terrain-button-secondary{background:var(--surface);color:#1e508c;border-color:#ccd9e9}.terrain-button-secondary:hover{background:var(--surface-soft);color:#173f70;border-color:#9eb8d9}.terrain-button:disabled{opacity:.6;cursor:wait}.terrain-button .terrain-icon{width:17px;height:17px;flex-basis:17px}.terrain-group-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e4eaf2;background:var(--surface);padding:16px 25px}.terrain-group-footer p{font-size:16px;line-height:1.6;color:var(--muted);margin:0;max-width:430px}.terrain-alerts{padding:20px 23px;border:1px solid #eac6a5;border-left:4px solid #b96a2c;border-radius:6px;background:#fff8ef;margin:0 0 24px;color:#744423}.terrain-alert-heading{display:flex;align-items:center;gap:9px}.terrain-alert-heading h3{font-size:16px;margin:0;color:#744423}.terrain-alerts>p{font-size:16px;line-height:1.6;margin:7px 0 15px}.terrain-alerts article{border-top:1px solid #ecd8c4;padding:12px 0 0;margin-top:12px}.terrain-alerts article strong{font-size:16px}.terrain-alerts article p{font-size:16px;line-height:1.65;margin:4px 0}.terrain-feedback{margin:0 0 22px}.terrain-policies{margin-top:28px}.terrain-policies>h3,.terrain-plans h3{font-size:19px;line-height:1.4;color:#203f69;margin:0 0 8px}.terrain-policies>p{color:var(--muted);line-height:1.7;font-size:16px;margin:0 0 18px;max-width:860px}.terrain-plan-list{display:grid;gap:0}.terrain-plan-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid #e8edf3}.terrain-plan-list article strong{font-size:16px;color:#2b466a}.terrain-plan-list article p{font-size:16px;color:var(--muted);margin:3px 0 0}.terrain-plan-list article .terrain-button{flex-shrink:0}.terrain-equipment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.terrain-equipment-card{padding:23px;min-width:0}.terrain-equipment-title{display:flex;align-items:center;gap:12px}.terrain-equipment-title>div{flex:1;min-width:0}.terrain-equipment-title h3{font-size:17px;color:#1b3e69;line-height:1.4;margin:0 0 3px;overflow-wrap:anywhere}.terrain-equipment-title p{font-size:16px;color:var(--muted);line-height:1.6;margin:0}.terrain-equipment-card>.terrain-site-name{margin:18px 0 4px;color:#314f75;font-size:16px;font-weight:700}.terrain-equipment-card>p{font-size:16px;color:var(--muted);line-height:1.7;margin:0}.terrain-equipment-dates{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:15px 0;margin:15px 0 0;border-top:1px solid #e7edf4}.terrain-equipment-dates dt{font-size:16px;color:var(--muted);margin-bottom:4px}.terrain-equipment-dates dd{font-size:16px;color:#314e72;line-height:1.5;margin:0}.terrain-equipment-card>.terrain-serial{font-size:16px;color:var(--muted);padding-top:8px;overflow-wrap:anywhere}.terrain-plans{margin-top:23px}.terrain-section-heading{display:flex;gap:13px;align-items:flex-start;margin-bottom:15px}.terrain-section-heading h3{margin:0 0 4px}.terrain-section-heading p{font-size:16px;line-height:1.6;color:var(--muted);margin:0}.terrain-empty{grid-column:1/-1;padding:32px}.terrain-empty h3{font-size:18px;color:#2e496d;margin:0 0 8px}.terrain-empty p{font-size:16px;color:var(--muted);margin:0}.terrain-load-error>p{line-height:1.7}.terrain-load-error .portal-error{margin:15px 0}.terrain-dialog{width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid #d6dfeb;border-radius:10px;padding:0;color:#233d60;background:var(--surface);box-shadow:0 25px 100px #10243e50;overflow:auto}.terrain-dialog::backdrop{background:#142b48a3;backdrop-filter:blur(3px)}.terrain-dialog-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 25px;border-bottom:1px solid #e3eaf3;background:var(--surface)}.terrain-dialog-heading h2{font-size:21px;line-height:1.35;margin:0;color:#1e3c64}.terrain-close{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:1px solid #dbe4ef;border-radius:5px;background:var(--surface);font-size:25px;color:#526a88;cursor:pointer}.terrain-dialog-body{padding:23px 25px 25px}.terrain-dialog form{display:grid;gap:17px}.terrain-dialog label{display:grid;gap:7px;font-size:16px;color:#3c5270;font-weight:700}.terrain-dialog input,.terrain-dialog select,.terrain-dialog textarea{width:100%;min-width:0;min-height:43px;border:1px solid #cfdae8;border-radius:4px;padding:11px 12px;background:var(--surface);color:#233f64;font-family:inherit;font-size:16px;line-height:1.5}.terrain-dialog textarea{resize:vertical}.terrain-dialog .terrain-info{margin:0 0 1px}.terrain-dialog .portal-fields{gap:14px}.terrain-dialog .terrain-checkbox{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:16px;line-height:1.7}.terrain-checkbox input{appearance:auto;width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:2px 0 0;accent-color:#124b8d}.terrain-fieldset{min-width:0;border:1px solid #dce4ed;border-radius:5px;padding:17px;display:grid;gap:15px;margin:0}.terrain-fieldset legend{font-size:16px;font-weight:700;padding:0 5px;color:#3c5779}.terrain-form-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:7px}.terrain-form-site{font-size:16px;font-weight:700;margin:0;color:#2f5079}.terrain-plan-context{font-size:16px;color:var(--muted);margin:0 0 17px}.terrain-private-image{display:block;width:100%;height:auto;border:1px solid #e1e7ef;border-radius:4px}.terrain-document,.terrain-group-heading,.terrain-policies,.terrain-plan-list article,.terrain-alerts{overflow-wrap:anywhere}
@media(max-width:900px){.terrain-document{flex-wrap:wrap}.terrain-document-actions{flex-direction:row;flex-wrap:wrap;padding-left:55px;width:100%}.terrain-panel-heading{align-items:flex-start}.terrain-filter{flex-basis:230px}}
@media(max-width:760px){.portal-tabs{gap:3px;padding:4px;margin-bottom:23px}.portal-tabs button{font-size:16px;padding:11px 7px;min-height:48px}.terrain-panel-heading{flex-direction:column;gap:18px;align-items:stretch}.terrain-panel-heading h2{font-size:26px}.terrain-panel-heading p:not(.eyebrow){font-size:16px}.terrain-filter{flex-basis:auto}.terrain-filter select{font-size:16px}.terrain-group-heading{padding:18px;align-items:flex-start}.terrain-group-heading h3{font-size:16px}.terrain-group-heading p{font-size:16px}.terrain-group-amount{max-width:125px}.terrain-group-amount strong{font-size:18px}.terrain-group-amount span{font-size:16px}.terrain-document{padding:19px 18px;gap:12px}.terrain-document h4{font-size:16px}.terrain-file-icon{width:35px;height:40px;flex-basis:35px}.terrain-document-actions{padding-left:47px;gap:8px}.terrain-button{font-size:16px;padding:10px 11px;min-height:42px}.terrain-group-footer{padding:16px 18px;flex-direction:column;align-items:flex-start;gap:12px}.terrain-group-footer .terrain-button{width:100%}.terrain-alerts{padding:17px 18px}.terrain-alert-heading h3{font-size:16px}.terrain-alerts article strong{font-size:16px}.terrain-equipment-grid{grid-template-columns:1fr;gap:15px}.terrain-equipment-card{padding:20px}.terrain-equipment-dates{gap:12px}.terrain-plan-list article{align-items:flex-start;flex-wrap:wrap;gap:10px}.terrain-plan-list article .terrain-button{margin-left:0}.terrain-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.terrain-dialog-heading{padding:17px 18px}.terrain-dialog-heading h2{font-size:19px}.terrain-dialog-body{padding:20px 18px}.terrain-dialog input,.terrain-dialog select,.terrain-dialog textarea{font-size:16px}.terrain-form-actions .terrain-button{flex:1}.terrain-fieldset{padding:13px}.terrain-policies{margin-top:22px}.terrain-policies>h3,.terrain-plans h3{font-size:17px}.terrain-policies>p{font-size:16px}.terrain-info{padding:13px 14px}.terrain-info p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.terrain-dialog::backdrop{backdrop-filter:none}}
.terrain-equipment-selected{border-color:#2e70b6;box-shadow:0 0 0 3px #2e70b61f,0 8px 24px #132b4810}

/* Même confort de lecture dans la connexion et les dossiers privés. */
.portal-page{font-size:18px;background:var(--paper);color:var(--ink)}
.portal-card,.portal-header,.portal-footer,.terrain-dialog,.terrain-dialog-heading{background:var(--surface);border-color:var(--line)}
.portal-card input,.portal-card select,.portal-card textarea,.terrain-dialog input,.terrain-dialog select,.terrain-dialog textarea,.terrain-filter select{background:var(--surface-soft);border-color:var(--line);font-size:18px;min-height:48px}
.portal-page input::placeholder,.portal-page textarea::placeholder{color:var(--muted);opacity:1}
.portal-tabs{flex-wrap:wrap}.portal-tabs button{flex:1 1 150px;font-size:16px;line-height:1.5}
.portal-header{height:auto;min-height:82px;gap:20px}.portal-header>a:last-child{text-align:right}
.portal-entry,.terrain-document,.terrain-group-heading,.terrain-panel-heading,.portal-welcome{min-width:0;overflow-wrap:anywhere}
.terrain-group-heading,.terrain-panel-heading{flex-wrap:wrap}.terrain-group-amount{max-width:100%;flex-shrink:1}
.terrain-button,.entry-actions button{font-size:16px;min-height:48px;white-space:normal;overflow-wrap:anywhere}
.terrain-equipment-dates{grid-template-columns:repeat(2,minmax(0,1fr))}.terrain-equipment-dates dd{overflow-wrap:anywhere}
@media(max-width:760px){.terrain-document-actions{padding-left:0}.terrain-group-amount{text-align:left}.terrain-equipment-dates{grid-template-columns:minmax(0,1fr)}.portal-header{padding-block:8px}.portal-header>a:first-child{flex-basis:110px}.portal-card{padding:22px 18px}}

/* Repli des dossiers privés à 200 % de texte. */
.portal-grid>*,.portal-card,.portal-fields>label,.terrain-section-heading>div,.terrain-plan-list article>div{min-width:0;overflow-wrap:anywhere}
.portal-card .button{min-width:0;max-width:100%;white-space:normal;flex-wrap:wrap}
.terrain-section-heading{min-width:0;flex-wrap:wrap}
