/* En-tête et pied de page (surcharge de stylecandidat.css) */
header{position:sticky;top:0;z-index:1100;box-sizing:border-box;height:64px;padding:0 20px;background:linear-gradient(90deg,#17701d 0%,#228B22 55%,#2fa12f 100%);box-shadow:0 2px 8px rgba(0,0,0,.25);gap:12px}
header .logo{min-width:0}
header .logo img{height:40px;margin-right:12px;border-radius:6px;background:#fff;padding:2px}
.hd-titre{display:flex;flex-direction:column;line-height:1.15;min-width:0}
header .logo h1{font-size:19px;font-weight:700;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-titre small{font-size:11px;color:#d6f0d0;letter-spacing:.4px;white-space:nowrap}
header .user-info{position:relative;gap:12px;flex-wrap:nowrap}
header .user-info span{margin-right:0}
.hd-pastille{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize;color:#fff}
.hd-nom{font-size:14px;font-weight:600;color:#fff;white-space:nowrap}
.hd-enligne{font-size:12px;color:#eaffd6;white-space:nowrap}
.hd-enligne i{font-size:8px;color:#7CFC8A;vertical-align:middle;margin-right:2px}
header .notification-icon{margin-left:0;font-size:18px;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);color:#fff;transition:background .2s}
header .notification-icon:hover,header .notification-icon:focus-visible{background:rgba(255,255,255,.28);outline:none}
header .notification-count{top:-4px;right:-4px;min-width:18px;height:18px;box-sizing:border-box;padding:0 5px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;background:#e53935;border:2px solid #1e7d1e}
header .notifications-container{position:absolute;top:calc(100% + 10px);right:0;width:340px;max-width:92vw;max-height:70vh;padding:14px;border:0;border-radius:12px;color:#333;box-shadow:0 10px 30px rgba(0,0,0,.28)}
header .notifications-container h2{margin:0 0 10px;font-size:16px;text-align:left;color:#17701d}
header .notifications-container ul{list-style:none;margin:10px 0 0;padding:0}
header .notifications-container .notification-item{display:flex;align-items:flex-start;gap:8px;padding:10px;margin-bottom:6px;border-radius:8px;border-left:3px solid;font-size:13px}
header .notifications-container .notification-item small{display:block;color:#666}
header .notifications-container .notification-item a{color:#005bb5;font-size:12px;white-space:nowrap;margin-left:auto}
header .notifications-container #deleteAllNotifications{width:100%;padding:7px;border:1px solid #e0c3c0;background:#fff5f4;color:#b3261e;border-radius:8px;cursor:pointer;font-size:12.5px}
header .notifications-container #deleteAllNotifications:hover{background:#b3261e;color:#fff}
header .user-info a.hd-btn,.hd-btn{display:inline-flex;align-items:center;gap:7px;margin-left:0;padding:8px 14px;border-radius:8px;background:rgba(255,255,255,.16);color:#fff;font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .2s}
header .user-info a.hd-btn:hover{background:rgba(255,255,255,.3);text-decoration:none}
header .user-info a.hd-sortie{background:#fff;color:#17701d}
header .user-info a.hd-sortie:hover{background:#fff3e0;color:#b3261e}
header .user-info a.hd-reinscr{background:#f5a623;color:#fff}
header .user-info a.hd-reinscr:hover{background:#e0961a}
.hd-ferme{background:#fff3cd;color:#8a3324;padding:7px 12px;border-radius:8px;font-size:13px;font-weight:600}
header .menu-icon{display:none}

/* Pied de page */
footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 16px;box-sizing:border-box;padding:7px 18px;background:#14532d;color:#d9eadf;font-size:12px;line-height:1.3;border-top:2px solid #f5a623;z-index:1050}
footer a{color:#fff;font-weight:600;text-decoration:none}
footer a:hover{text-decoration:underline}

/* Adaptations */
@media (max-width:1100px){.hd-enligne{display:none}}
@media (max-width:900px){.hd-nom{display:none}}
@media (max-width:768px){
  header .menu-icon{display:block;order:3;padding:6px;border-radius:8px;cursor:pointer}
  header .menu-icon:hover{background:rgba(255,255,255,.18)}
  header .menu-icon span{margin:4px 0;border-radius:2px}
  header .user-info{margin-left:auto}
  .sidebar{position:fixed!important;top:64px!important;left:0;bottom:0;max-height:none!important}
  footer{justify-content:center;text-align:center}
}
@media (max-width:480px){
  header{padding:0 12px}
  header .user-info{display:flex!important;gap:8px}
  .hd-pastille,.hd-nom{display:none}
  header .logo h1{font-size:16px}
  .hd-titre small{display:none}
  header .user-info a.hd-btn span{display:none}
  .hd-ferme{display:none}
  footer .ft-credit{display:none}
}
@media (max-width:768px){
  header .user-info{position:static}
  header .notifications-container{position:fixed;top:70px;left:8px;right:8px;width:auto;max-width:none}
  header .user-info a.hd-btn{padding:8px 11px}
}
