/* Sych.Alx V2.1.0 — Portail client */
.portal-auth-body,.portal-app-body{min-height:100vh;background:radial-gradient(circle at 20% 10%,rgba(185,137,100,.10),transparent 34%),#0b0b0a;color:#f4efe9}
.portal-auth-shell{min-height:100vh;display:grid;place-items:center;padding:32px 20px}.portal-auth-brand,.portal-top-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.portal-auth-brand{position:fixed;left:28px;top:24px}.portal-auth-brand img,.portal-top-brand img{width:42px;height:42px;object-fit:contain}.portal-auth-brand span,.portal-top-brand span{display:grid}.portal-auth-brand small,.portal-top-brand small{font-size:.64rem;letter-spacing:.22em;color:var(--copper);text-transform:uppercase}.portal-auth-card{width:min(100%,460px);padding:34px;border:1px solid rgba(255,255,255,.10);border-radius:26px;background:rgba(22,21,19,.94);box-shadow:0 30px 80px rgba(0,0,0,.32)}.portal-auth-card h1{font-size:clamp(2rem,6vw,3.4rem);margin:.25rem 0 .8rem}.portal-auth-card p{color:rgba(255,255,255,.66);line-height:1.7}.portal-form{display:grid;gap:15px;margin-top:22px}.portal-form label,.portal-message-form label{display:grid;gap:7px;font-size:.85rem;color:rgba(255,255,255,.78)}.portal-form input,.portal-message-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);background:#11110f;color:#fff;border-radius:13px;padding:13px 14px;outline:none}.portal-form input:focus,.portal-message-form textarea:focus{border-color:var(--copper)}.portal-primary{border:0;border-radius:13px;background:linear-gradient(135deg,var(--copper),var(--copper-2));color:#130e0b;font-weight:800;padding:12px 16px;cursor:pointer}.portal-button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.portal-auth-links{display:flex;justify-content:space-between;gap:16px;margin-top:18px;font-size:.82rem}.portal-auth-links a{color:rgba(255,255,255,.64);text-decoration:none}.portal-flash{margin:16px 0;padding:12px 14px;border:1px solid rgba(86,190,128,.26);background:rgba(86,190,128,.08);border-radius:13px}.portal-flash.is-error{border-color:rgba(220,105,96,.32);background:rgba(220,105,96,.10)}
.portal-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px clamp(18px,4vw,54px);background:rgba(10,10,9,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.07)}.portal-topbar nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.portal-topbar nav a{color:rgba(255,255,255,.68);text-decoration:none;font-size:.8rem}.portal-topbar nav a:hover{color:#fff}.portal-topbar nav b{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--copper);color:#111;margin-left:5px;font-size:.65rem}.portal-shell{max-width:1180px;margin:0 auto;padding:48px 22px 80px}.portal-hero{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}.portal-hero h1{margin:.3rem 0;font-size:clamp(2.4rem,6vw,5rem);line-height:.95}.portal-hero p{max-width:720px;color:rgba(255,255,255,.64);font-size:1.02rem}.portal-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.portal-secure-chip,.portal-action-chip{display:inline-flex;padding:7px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.1);font-size:.72rem;font-weight:700}.portal-secure-chip{color:#9ce0b1;background:rgba(88,190,122,.08)}.portal-action-chip{color:var(--copper);background:rgba(185,137,100,.1)}
.portal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.portal-kpis>div{padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.028)}.portal-kpis small,.portal-card-head small{display:block;color:var(--copper);font-size:.64rem;font-weight:800;letter-spacing:.16em}.portal-kpis strong{display:block;font-size:2rem;margin:5px 0}.portal-kpis span{font-size:.74rem;color:rgba(255,255,255,.5)}.portal-notice{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:16px 18px;margin-bottom:14px;border:1px solid rgba(185,137,100,.22);background:rgba(185,137,100,.07);border-radius:18px}.portal-notice p{margin:.25rem 0 0;color:rgba(255,255,255,.58)}.portal-notice button{border:1px solid rgba(255,255,255,.14);background:transparent;color:#fff;padding:9px 12px;border-radius:10px;cursor:pointer}
.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.portal-card{padding:22px;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:linear-gradient(160deg,rgba(255,255,255,.035),rgba(255,255,255,.018));margin-bottom:14px}.portal-wide{grid-column:1/-1}.portal-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.portal-card-head h2{margin:3px 0 0;font-size:1.45rem}.portal-card-head>span{display:grid;place-items:center;min-width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.05);color:rgba(255,255,255,.6)}.portal-list{display:grid}.portal-list article,.portal-payment-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid rgba(255,255,255,.07)}.portal-list article:first-child,.portal-payment-list article:first-child{border-top:0}.portal-list small,.portal-payment-list small,.portal-doc-card small{display:block;color:rgba(255,255,255,.49);margin-top:3px}.portal-empty,.portal-section-note{color:rgba(255,255,255,.5);line-height:1.6}.portal-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(185,137,100,.11);color:var(--copper);font-size:.7rem;font-weight:750;white-space:nowrap}.portal-status-ok,.portal-payment-ok{background:rgba(75,178,110,.1);color:#9ce0b1}.portal-payment-warn{background:rgba(220,164,76,.1);color:#e9bd79}.portal-payment-attention{background:rgba(185,137,100,.11);color:var(--copper)}.portal-payment-muted{background:rgba(255,255,255,.06);color:rgba(255,255,255,.5)}
.portal-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.portal-gallery-card{display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:18px;background:#11110f;border:1px solid rgba(255,255,255,.07)}.portal-gallery-card h3{font-size:1.35rem;margin:10px 0 5px}.portal-gallery-card p{color:rgba(255,255,255,.55);line-height:1.5}.portal-gallery-meta{display:flex;flex-wrap:wrap;gap:6px}.portal-gallery-meta span{font-size:.68rem;padding:5px 8px;border:1px solid rgba(255,255,255,.08);border-radius:999px;color:rgba(255,255,255,.55)}.portal-protection-note{color:rgba(255,255,255,.38);font-size:.67rem;line-height:1.4}.portal-doc-grid{display:grid;gap:10px}.portal-doc-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;background:#11110f;border:1px solid rgba(255,255,255,.07);border-radius:16px}.portal-doc-card>div:first-child{display:flex;align-items:center;gap:13px}.portal-doc-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(185,137,100,.1);color:var(--copper)}.portal-doc-card h3{margin:0 0 4px}.portal-doc-card p{margin:0;color:rgba(255,255,255,.55)}.portal-doc-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.portal-doc-actions>a{color:var(--copper);text-decoration:none;font-weight:700}.portal-payment-list{display:grid}.portal-payment-list article>div:nth-child(2){text-align:right;display:grid;justify-items:end;gap:5px}.portal-payment-list .portal-button-link{min-width:130px}
.portal-thread{display:grid;gap:8px;max-height:560px;overflow:auto;padding:4px}.portal-message{max-width:78%;padding:13px 15px;border-radius:17px;background:#151512;border:1px solid rgba(255,255,255,.07)}.portal-message.is-client{margin-left:auto;background:rgba(185,137,100,.10);border-color:rgba(185,137,100,.18)}.portal-message>div{display:flex;justify-content:space-between;gap:18px}.portal-message small{font-size:.67rem;color:rgba(255,255,255,.4)}.portal-message p{margin:7px 0 0;line-height:1.55}.portal-message-form{display:grid;gap:10px;margin-top:15px;padding-top:15px;border-top:1px solid rgba(255,255,255,.07)}.portal-message-form .portal-primary{justify-self:start}.portal-timeline{display:grid;gap:9px}.portal-timeline>div{display:flex;gap:11px;align-items:flex-start}.portal-timeline i{width:8px;height:8px;border-radius:50%;background:var(--copper);margin-top:6px;box-shadow:0 0 0 4px rgba(185,137,100,.08)}.portal-timeline span{display:grid}.portal-timeline small{color:rgba(255,255,255,.45)}.portal-footer{display:flex;justify-content:flex-end;gap:18px;flex-wrap:wrap;margin-top:28px;padding-top:18px;border-top:1px solid rgba(255,255,255,.07);font-size:.75rem;color:rgba(255,255,255,.42)}.portal-footer span{margin-right:auto}.portal-footer a{color:rgba(255,255,255,.55);text-decoration:none}
@media(max-width:900px){.portal-kpis{grid-template-columns:repeat(2,1fr)}.portal-gallery-grid{grid-template-columns:1fr 1fr}.portal-grid{grid-template-columns:1fr}.portal-topbar nav a:not(:last-child){display:none}}
@media(max-width:640px){.portal-auth-brand{position:static;margin-bottom:24px}.portal-auth-shell{display:flex;flex-direction:column;justify-content:center}.portal-auth-card{padding:24px}.portal-topbar{padding:11px 14px}.portal-top-brand img{width:36px;height:36px}.portal-shell{padding:32px 14px 60px}.portal-hero{align-items:flex-start;flex-direction:column}.portal-hero-actions{justify-content:flex-start}.portal-kpis{grid-template-columns:1fr 1fr}.portal-kpis>div{padding:14px}.portal-gallery-grid{grid-template-columns:1fr}.portal-doc-card,.portal-list article,.portal-payment-list article{align-items:flex-start;flex-direction:column}.portal-doc-actions{justify-content:flex-start}.portal-payment-list article>div:nth-child(2){text-align:left;justify-items:start}.portal-message{max-width:92%}.portal-notice{align-items:flex-start;flex-direction:column}.portal-footer{justify-content:flex-start}.portal-footer span{width:100%;margin-right:0}}

/* V2.1.1 — raffinement du portail client public */
.portal-app-body{background:radial-gradient(circle at 12% -8%,rgba(185,137,100,.10),transparent 26%),#0a0a09}.portal-topbar{box-shadow:0 12px 30px rgba(0,0,0,.14)}.portal-shell{max-width:1240px}.portal-hero{padding:24px 0 8px}.portal-hero h1{max-width:900px}.portal-kpis>div,.portal-card{transition:border-color .16s ease,background .16s ease,transform .16s ease}.portal-kpis>div:hover,.portal-gallery-card:hover,.portal-doc-card:hover{border-color:rgba(185,137,100,.2)}.portal-card{box-shadow:0 18px 48px rgba(0,0,0,.08)}.portal-empty{padding:26px 18px;border:1px dashed rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.012);text-align:center}.portal-gallery-card{min-height:245px}.portal-gallery-card .portal-button-link{margin-top:auto}.portal-doc-card,.portal-payment-list article{transition:border-color .16s ease,background .16s ease}.portal-doc-card:hover,.portal-payment-list article:hover{background:rgba(255,255,255,.028);border-color:rgba(185,137,100,.16)}
@media(max-width:640px){.portal-hero{padding-top:8px}.portal-card{padding:18px}.portal-kpis>div{border-radius:15px}.portal-topbar nav{gap:10px}}

/* V2.1.6.3 — entrée vitrine du portail */
.portal-auth-note{margin:15px 0 0;padding:13px 14px;border:1px solid rgba(197,154,132,.16);border-radius:12px;background:rgba(197,154,132,.045);color:#a99d95;font-size:.78rem;line-height:1.6}

/* V2.5.0 — tâches & compte */
.portal-profile-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:24px}.portal-profile-form{display:grid;gap:14px}.portal-profile-form label{display:grid;gap:7px;font-size:.9rem}.portal-profile-form input{width:100%;box-sizing:border-box;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:inherit}.portal-profile-form input:disabled{opacity:.7}.portal-profile-form small{opacity:.68;line-height:1.4}.portal-data-actions{padding:20px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:12px}.portal-data-actions h3,.portal-data-actions p{margin:0}.portal-data-actions p{opacity:.75;line-height:1.55}@media(max-width:780px){.portal-profile-grid{grid-template-columns:1fr}.portal-card .portal-list article{align-items:flex-start;gap:12px;flex-wrap:wrap}}


/* ================================================================
   Sych.Alx V2.8.0-AW / #72 — Contraste élevé automatique espace client
   ================================================================ */
@media (prefers-contrast: more){
  .portal-auth-body,.portal-app-body{background:#050505;color:#fff}
  .portal-auth-card,.portal-card,.portal-gallery-card,.portal-doc-card,.portal-message,.portal-data-actions,.portal-kpis>div{background:#0d0d0c;border-color:#81766d}
  .portal-auth-card p,.portal-auth-links a,.portal-hero p,.portal-kpis span,.portal-notice p,.portal-list small,.portal-payment-list small,.portal-doc-card small,
  .portal-empty,.portal-section-note,.portal-gallery-card p,.portal-gallery-meta span,.portal-protection-note,.portal-doc-card p,.portal-message small,.portal-timeline small,.portal-footer,.portal-footer a{color:#e4dcd4;opacity:1}
  .portal-form label,.portal-message-form label{color:#f5eee8}
  .portal-form input,.portal-message-form textarea,.portal-profile-form input,.portal-review-form :is(textarea,select,input){border-color:#91857b;border-width:2px;background:#080807;color:#fff}
  .portal-primary{background:#ffd0b8;color:#090706;border:2px solid #ffd0b8}
  .portal-button-link,.portal-action-chip,.portal-secure-chip,.portal-status,.portal-gallery-meta span{border:1px solid currentColor}
}
@media (forced-colors: active){
  .portal-auth-body,.portal-app-body,.portal-auth-card,.portal-card,.portal-gallery-card,.portal-doc-card,.portal-message,.portal-data-actions,.portal-kpis>div,.portal-topbar{
    background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important;backdrop-filter:none!important;forced-color-adjust:auto;
  }
  .portal-auth-body a,.portal-app-body a{color:LinkText}
  .portal-primary,.portal-button-link,.portal-notice button{background:ButtonFace!important;color:ButtonText!important;border:2px solid ButtonText!important}
  .portal-primary{background:Highlight!important;color:HighlightText!important;border-color:Highlight!important}
  .portal-form input,.portal-message-form textarea,.portal-profile-form input,.portal-review-form :is(textarea,select,input){background:Canvas!important;color:CanvasText!important;border:2px solid CanvasText!important}
  .portal-status,.portal-action-chip,.portal-secure-chip,.portal-gallery-meta span{background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText!important}
}
.portal-app-body{background:#0e0e0c}
.portal-app-body .portal-topbar,
.portal-app-body .portal-topbar :is(a,span,strong,small,p){color:#f7f2eb!important}
.portal-app-body .portal-shell{display:flex;flex-direction:column;background:#f2ede6;color:#3f3a36;border-radius:28px 28px 0 0;margin-top:0}
.portal-app-body .portal-shell>*{order:5}
.portal-app-body .portal-hero{order:1}
.portal-app-body .portal-flash{order:2}
.portal-app-body #galleries{order:3}
.portal-app-body .portal-kpis{display:none}
.portal-app-body .portal-hero h1{font-family:Georgia,serif;font-weight:400;color:#2c241e}
.portal-app-body .portal-hero p,
.portal-app-body .portal-card,
.portal-app-body .portal-card p,
.portal-app-body .portal-card small,
.portal-app-body .portal-empty{color:#3f3a36}
.portal-app-body .portal-card,
.portal-app-body .portal-gallery-card{background:#faf6f1;border-color:rgba(44,36,30,.08);color:#3f3a36}
.portal-app-body .portal-section-note{display:none}
.portal-app-body .portal-primary{background:#2c241e;color:#f7f2eb}
.portal-app-body .portal-action-chip{background:#2c241e;color:#f7f2eb;text-decoration:none;border-radius:999px;padding:8px 12px}
.portal-app-body .portal-pro-card,
.portal-app-body .portal-review-card{background:#faf6f1!important;color:#3f3a36!important;border-color:rgba(44,36,30,.1)!important}
.portal-app-body .portal-pro-card :is(p,small,h3),
.portal-app-body .portal-review-card :is(p,small,h3){color:#3f3a36!important}
.portal-app-body .portal-pro-priority{border-color:#c9a48e!important}
.portal-app-body :is(.portal-review-form,.portal-pro-form) :is(textarea,select,input){background:#fffdf9!important;color:#2c241e!important;border-color:rgba(44,36,30,.16)!important}
