/* Hiérarchie des actions : recherche verte, inscription bordée, découverte claire. */
.compact-header .header-actions > a.button,
.compact-header nav .header-actions > a.button[aria-current=page]{background:#fff;color:#174c3b;box-shadow:0 3px 10px #173d3210;border:1px solid #9fb9ad;transition:background-color .18s ease;}
.compact-header nav .header-actions > a.button:hover,
.compact-header nav .header-actions > a.button:focus-visible{background:#edf5f0;color:#174c3b;border-color:#366951;}
main .hero-choices > a.button:first-child{background:#fff;color:#174c3b;border:1px solid #9fb9ad;box-shadow:0 3px 10px #173d3210;}
main .hero-choices > a.button:first-child:hover{background:#edf5f0;border-color:#366951;}
main .hero-choices > a.light-button{background:transparent;color:#174c3b;border:1px solid transparent;box-shadow:none;}
main .hero-choices > a.light-button:hover{background:#ffffffb8;border-color:#b4cabe;}
main .primary-search > .button{background:#086448;color:#fff;box-shadow:0 4px 12px #064d3220;}
main .primary-search > .button:hover{background:#034e37;}
.mobile-header-actions,.header-backdrop{display:none;}
.menu-icon{display:grid;gap:5px;width:20px;}
.menu-icon i{height:2px;background:currentColor;border-radius:2px;transition:transform .2s,opacity .2s;}
.menu-open .menu-icon i:first-child{transform:translateY(7px) rotate(45deg);}
.menu-open .menu-icon i:nth-child(2){opacity:0;}
.menu-open .menu-icon i:last-child{transform:translateY(-7px) rotate(-45deg);}

@media(max-width:1000px){
  html.mobile-menu-open,html.mobile-menu-open body{overflow:hidden;}
  body > header.topbar.compact-header{min-height:72px;padding-block:12px;gap:12px;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;z-index:100;}
  .compact-header .brand{font-size:25px;gap:7px;}
  .compact-header .mobile-header-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto;}
  .compact-header .mobile-auth{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #cbdad2;border-radius:10px;background:#fff;color:#204c3c;text-decoration:none;font-size:14px;font-weight:650;}
  .compact-header.js-header .header-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #dce7e1;border-radius:10px;background:#f3f7f5;color:#174c3b;}
  .compact-header nav{flex-basis:100%;flex-direction:column;align-items:stretch;gap:20px;}
  /* Position fixe : le panneau ne participe jamais à la hauteur de la page. */
  .compact-header.js-header #header-navigation{display:flex;position:fixed;inset-block-start:var(--menu-top,72px);inset-inline-end:max(12px,env(safe-area-inset-right));width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - var(--menu-top,72px) - 16px);overflow-y:auto;overscroll-behavior:contain;padding:20px;box-sizing:border-box;background:#fff;border:1px solid #dce7e1;border-radius:16px;box-shadow:0 18px 50px #12372c26;z-index:2;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .2s,transform .2s,visibility .2s;}
  .compact-header.js-header.menu-open #header-navigation{opacity:1;visibility:visible;transform:translateY(0);}
  .compact-header.js-header .header-backdrop{display:block;position:fixed;inset:var(--menu-top,72px) 0 0;background:#102f284d;z-index:1;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;}
  .compact-header.menu-open .header-backdrop{opacity:1;visibility:visible;}
  .compact-header .header-primary,.compact-header .header-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;}
  .compact-header .header-actions{border-inline-start:0;border-top:1px solid #e4eae6;padding:16px 0 0;}
  .compact-header nav a,.compact-header summary{white-space:normal;font-size:15px;min-height:44px;box-sizing:border-box;}
  .compact-header .header-primary > a,.compact-header .header-actions > a:not(.button),.compact-header summary{padding:12px 8px;}
  .compact-header .header-dropdown-panel,.compact-header .header-primary .header-dropdown-panel{position:static;min-width:0;margin:4px 0;box-shadow:none;background:#f7f9f8;}
  .compact-header .header-actions .header-dropdown{flex:auto;}
  .compact-header .language-form select{min-height:44px;width:100%;font-size:16px;}
}
@media(max-width:600px){
  .compact-header .brand{font-size:22px;letter-spacing:-1px;}
  .compact-header .brand-icon{width:32px;height:32px;font-size:24px;}
  .compact-header .mobile-auth{font-size:13px;padding-inline:9px;}
  main .landing-hero{padding-inline:18px;padding-top:22px;padding-bottom:32px;}
  main .landing-hero h1{font-size:clamp(27px,7.5vw,36px);letter-spacing:-1px;line-height:1.12;}
  main .hero-description{font-size:15px;line-height:1.6;}
  main .hero-badge{font-size:11px;line-height:1.5;}
  main .hero-choices{gap:8px;}
  main .hero-choices .button{font-size:13px;padding:10px 13px;}
  main .hero-search-wrap{margin-top:-12px;padding-inline:8px;}
  main .search,main .primary-search{display:flex;flex-direction:column;gap:10px;}
  main .search > div,main .search .search-key{min-width:0;width:100%;flex:auto;box-sizing:border-box;border-inline:0;}
  main .button{min-height:44px;white-space:normal;gap:10px;text-align:center;box-sizing:border-box;}
  main input:not([type=checkbox]):not([type=radio]),main select,main textarea{font-size:16px;min-width:0;}
  main .search label{font-size:12px;}
  main .dashboard,main .detail-shell{padding:28px 8px;}
  main .form-shell{margin-block:28px;}
  main .panel,main .form-card,main .job-card{padding:18px;min-width:0;}
  main .page-title{font-size:28px;line-height:1.2;overflow-wrap:anywhere;}
  main .section-heading{gap:14px;}
  main .status-form,main .recruitment-actions{align-items:stretch;}
  main .status-form > *,main .recruitment-actions > *{max-width:100%;}
  main .panel,main .application-record,main .saved-offer-record{overflow-wrap:anywhere;}
  main .dashboard-tabs{gap:8px;}
  main .dashboard-tabs a{min-height:44px;display:flex;align-items:center;}
  .footer-main{grid-template-columns:1fr 1fr;gap:24px 16px;}
  .footer-main > *{min-width:0;}
  .footer-bottom{flex-wrap:wrap;gap:14px;}
}
@media(prefers-reduced-motion:reduce){
  .compact-header nav .header-actions > a.button{transition:none;}
  .compact-header.js-header #header-navigation,.compact-header.js-header .header-backdrop,.menu-icon i{transition:none;}
}
