:root{--agency-ink:#172738;--agency-blue:#237fbe;--agency-sand:#f3efe7;--agency-line:#dfe5e9}
*{box-sizing:border-box}
.agency-login-page{min-height:100vh;margin:0;background:linear-gradient(135deg,rgba(23,39,56,.93),rgba(35,127,190,.72)),url('/assets/images/IMG_0703-1.jpeg') center/cover fixed;font-family:"Nunito Sans",Arial,sans-serif}
.agency-login-shell{display:flex;min-height:100vh;align-items:center;justify-content:center;padding:30px}
.agency-login-card{width:min(490px,100%);padding:42px 48px;background:rgba(255,255,255,.97);box-shadow:0 22px 70px rgba(0,0,0,.28);text-align:center}
.agency-language-switch{display:flex;justify-content:flex-end;gap:5px}.agency-language-switch a{min-width:38px;padding:6px 8px;border:1px solid var(--agency-line);color:#63717f;font-size:.74rem;font-weight:800;text-align:center;text-decoration:none}.agency-language-switch a.active,.agency-language-switch a:hover{border-color:var(--agency-ink);background:var(--agency-ink);color:#fff}
.agency-login-brand{display:flex;align-items:center;justify-content:center;gap:16px;color:var(--agency-ink);text-decoration:none}
.agency-login-brand img{width:112px;height:82px;object-fit:contain}.agency-login-brand span{font-family:"Gilda Display",serif;font-size:1.55rem}
.agency-login-card h1{margin:30px 0 13px;font-family:"Gilda Display",serif;font-size:2.15rem;font-weight:400;color:var(--agency-ink)}
.agency-login-card>p{margin:0 auto 25px;color:#596675;line-height:1.65}
.agency-login-form{display:grid;gap:9px;text-align:left}.agency-login-form label{margin-top:8px;color:var(--agency-ink);font-weight:700;font-size:.88rem}
.agency-login-form input{width:100%;min-height:50px;padding:12px 14px;border:1px solid #cfd7de;background:#fff;font-size:1rem}
.agency-login-form input:focus{border-color:var(--agency-blue);outline:2px solid rgba(35,127,190,.18)}
.agency-login-form button{min-height:50px;margin-top:14px;border:0;background:var(--agency-ink);color:#fff;font-size:.82rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
.agency-login-form button:hover{background:var(--agency-blue)}
.agency-alert{margin:0 0 18px;padding:12px;background:#fff0f0;color:#a32e2e;font-weight:700}
.agency-home-link{display:inline-block;margin-top:22px;color:#63717f;font-size:.88rem}
.agency-calendar-page{margin:0;background:#f5f7f9;color:var(--agency-ink);font-family:"Nunito Sans",Arial,sans-serif}
.agency-header{display:flex;min-height:88px;align-items:center;justify-content:space-between;gap:25px;padding:12px clamp(20px,4vw,64px);border-bottom:1px solid var(--agency-line);background:#fff;box-shadow:0 3px 14px rgba(20,36,50,.06)}
.agency-header-actions{display:flex;align-items:center;gap:14px}
.agency-header-brand{display:flex;align-items:center;gap:15px;color:var(--agency-ink);text-decoration:none}.agency-header-brand img{width:92px;height:62px;object-fit:contain}.agency-header-brand span{font-family:"Gilda Display",serif;font-size:1.55rem}
.agency-logout{padding:11px 18px;border:1px solid var(--agency-ink);color:var(--agency-ink);font-size:.82rem;font-weight:700;text-decoration:none}.agency-logout:hover{background:var(--agency-ink);color:#fff}
.agency-calendar-main{width:min(1500px,calc(100% - 48px));margin:0 auto;padding:42px 0 65px}
.agency-page-heading{margin-bottom:28px}.agency-page-heading p{margin:0 0 8px;color:#667786;font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.agency-page-heading h1{margin:0;font-family:"Gilda Display",serif;font-size:clamp(2rem,4vw,3.2rem);font-weight:400}
.agency-calendar-page .calendar-months{margin-bottom:22px}.agency-calendar-page .calendar-toolbar{margin-bottom:16px}.agency-calendar-page .calendar-event{cursor:help}
.agency-calendar-page .calendar-event:hover{transform:none;box-shadow:0 3px 8px rgba(0,0,0,.15)}
@media(max-width:700px){.agency-login-card{padding:32px 22px}.agency-login-brand{flex-direction:column;gap:3px}.agency-header{min-height:72px;padding:8px 15px}.agency-header-brand img{width:70px;height:48px}.agency-header-brand span{display:none}.agency-header-actions{gap:7px}.agency-logout{padding:9px 10px}.agency-calendar-main{width:calc(100% - 24px);padding-top:28px}}

/* Parcours de demande des agences */
.agency-page-heading-with-action{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.agency-primary-action{display:inline-flex;min-height:44px;align-items:center;padding:10px 18px;background:var(--agency-ink);color:#fff;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-decoration:none;text-transform:uppercase}
.agency-primary-action:hover{background:var(--agency-blue);color:#fff}
.agency-section-nav{display:flex;gap:8px;margin:-8px 0 24px;padding:7px;border:1px solid var(--agency-line);background:#fff}
.agency-section-nav a{padding:9px 14px;color:#4e6170;font-size:.82rem;font-weight:800;text-decoration:none}
.agency-section-nav a:hover{background:#edf4f8;color:var(--agency-ink)}
.agency-workflow{margin:0 0 26px;padding:24px 28px;border:1px solid #d7e2e8;background:#fff}
.agency-workflow h2,.agency-request-panel h2,.agency-requests-panel h2{margin:0;font-family:"Gilda Display",serif;font-size:1.65rem;font-weight:400}
.agency-workflow ol{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:18px 0 0;padding:0;list-style:none;background:#dce5ea}
.agency-workflow li{position:relative;padding:18px 20px;background:#f8fafb;color:#344958;font-size:.86rem;font-weight:800}
.agency-workflow li:not(:last-child)::after{content:"→";position:absolute;right:-10px;z-index:1;color:var(--agency-blue);font-size:1.15rem}
.agency-request-panel,.agency-requests-panel{margin:0 0 28px;padding:30px;border:1px solid var(--agency-line);background:#fff;box-shadow:0 8px 28px rgba(23,39,56,.06);scroll-margin-top:20px}
.agency-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:10px}
.agency-section-heading p{margin:0 0 4px;color:#71808d;font-size:.68rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.agency-section-heading>strong{padding:7px 11px;border-radius:20px;background:#e8f3f7;color:#23648c;font-size:.76rem}
.agency-request-panel>p{max-width:780px;color:#5d6d79}
.agency-request-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;margin-top:24px}
.agency-request-form label{display:grid;gap:7px;color:#405361;font-size:.75rem;font-weight:800;letter-spacing:.035em}
.agency-request-form input,.agency-request-form select,.agency-request-form textarea{width:100%;min-height:46px;padding:11px 12px;border:1px solid #c8d3da;background:#fff;color:var(--agency-ink);font:inherit}
.agency-request-form textarea{min-height:105px;resize:vertical}
.agency-request-form input:focus,.agency-request-form select:focus,.agency-request-form textarea:focus{border-color:var(--agency-blue);outline:3px solid rgba(35,127,190,.12)}
.agency-form-wide,.agency-form-actions,.agency-form-help{grid-column:1/-1}
.agency-form-help{margin:-6px 0 0;color:#657683;font-size:.8rem}
.agency-form-actions{display:flex;justify-content:flex-end;padding-top:4px}
.agency-form-actions button{min-height:46px;padding:11px 24px;border:0;background:var(--agency-ink);color:#fff;font-size:.78rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;cursor:pointer}
.agency-form-actions button:hover{background:var(--agency-blue)}
.agency-success{margin:15px 0;padding:14px 16px;border-left:4px solid #2f8b67;background:#eaf6ef;color:#245d47}
.agency-table-scroll{overflow-x:auto;margin-top:18px;border:1px solid var(--agency-line)}
.agency-table-scroll table{width:100%;min-width:900px;border-collapse:collapse;font-size:.84rem}
.agency-table-scroll th,.agency-table-scroll td{padding:13px 14px;border-bottom:1px solid #e5ebee;text-align:left;vertical-align:middle}
.agency-table-scroll th{background:#f3f6f7;color:#5a6b77;font-size:.67rem;letter-spacing:.07em;text-transform:uppercase}
.agency-table-scroll td small{display:block;margin-top:4px;color:#6b7b87}
.agency-status{display:inline-flex;padding:5px 9px;border-radius:20px;font-size:.7rem;font-weight:800;white-space:nowrap}
.agency-status-submitted{background:#fff0d3;color:#80550e}.agency-status-accepted{background:#dff1e6;color:#28613e}.agency-status-rejected,.agency-status-cancelled{background:#f6e2e1;color:#8e3935}
.agency-cancel-request{padding:7px 10px;border:1px solid #d5a3a0;background:#fff;color:#9c3d39;font-size:.72rem;font-weight:800;cursor:pointer}
#calendar{display:block;padding-top:18px;scroll-margin-top:20px}
@media(max-width:760px){.agency-page-heading-with-action{align-items:stretch;flex-direction:column}.agency-primary-action{justify-content:center}.agency-section-nav{overflow-x:auto}.agency-section-nav a{white-space:nowrap}.agency-workflow{padding:20px}.agency-workflow ol{grid-template-columns:1fr}.agency-workflow li:not(:last-child)::after{content:"↓";right:18px;bottom:-13px}.agency-request-panel,.agency-requests-panel{padding:22px 16px}.agency-request-form{grid-template-columns:1fr}.agency-form-wide,.agency-form-actions,.agency-form-help{grid-column:auto}.agency-section-heading{flex-direction:column}}
