/* ==========================================================================
   Bandeau de consentement cookies (RGPD)
   ========================================================================== */

#cookieConsent{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:999;
  background:var(--navy-deep, #0E2350);
  color:#fff;
  border-top:1px solid rgba(255,255,255,0.14);
  box-shadow:0 -8px 24px rgba(14,35,80,0.25);
  transform:translateY(100%);
  transition:transform .35s ease;
}
#cookieConsent.visible{ transform:translateY(0); }

.cookie-inner{
  max-width:1160px;
  margin:0 auto;
  padding:22px 24px;
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}
.cookie-text{flex:1 1 380px;}
.cookie-text strong{
  display:block;
  font-family:'Space Grotesk', sans-serif;
  font-size:1rem;
  margin-bottom:4px;
  color:#fff;
}
.cookie-text p{
  margin:0;
  font-size:0.87rem;
  color:rgba(255,255,255,0.72);
  line-height:1.5;
}
.cookie-text a{color:#F2A93B;}

.cookie-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.cookie-btn{
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:0.86rem;
  padding:10px 18px;
  border-radius:999px;
  cursor:pointer;
  border:1.5px solid transparent;
  white-space:nowrap;
}
.cookie-btn.accept{ background:#F2A93B; color:#0E2350; }
.cookie-btn.accept:hover{ background:#D98A1F; }
.cookie-btn.reject{ background:transparent; border-color:rgba(255,255,255,0.35); color:#fff; }
.cookie-btn.reject:hover{ background:rgba(255,255,255,0.1); }
.cookie-btn.settings{
  background:none; border:none; color:rgba(255,255,255,0.65);
  text-decoration:underline; font-weight:500; padding:10px 4px;
}
.cookie-btn.settings:hover{ color:#fff; }

/* Panneau de préférences détaillé */
#cookiePrefs{
  display:none;
  border-top:1px solid rgba(255,255,255,0.12);
}
#cookiePrefs.visible{ display:block; }
.cookie-prefs-inner{
  max-width:1160px;
  margin:0 auto;
  padding:18px 24px 22px;
  display:grid;
  gap:14px;
}
.cookie-cat{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.cookie-cat:last-child{border-bottom:none;}
.cookie-cat-label{font-size:0.88rem;}
.cookie-cat-label strong{display:block; color:#fff; margin-bottom:2px;}
.cookie-cat-label span{color:rgba(255,255,255,0.6); font-size:0.82rem;}
.cookie-toggle{
  position:relative;
  width:42px; height:24px;
  flex-shrink:0;
}
.cookie-toggle input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.cookie-toggle .track{
  position:absolute; inset:0;
  background:rgba(255,255,255,0.2);
  border-radius:999px;
  transition:background .15s ease;
}
.cookie-toggle .thumb{
  position:absolute; top:3px; left:3px;
  width:18px; height:18px;
  background:#fff; border-radius:50%;
  transition:transform .15s ease;
}
.cookie-toggle input:checked + .track{ background:#F2A93B; }
.cookie-toggle input:checked + .track .thumb{ transform:translateX(18px); }
.cookie-toggle input:disabled + .track{ background:rgba(255,255,255,0.35); cursor:not-allowed; }

.cookie-prefs-actions{
  display:flex; justify-content:flex-end; gap:10px; margin-top:6px;
}

/* Lien discret pour rouvrir les préférences depuis le footer */
.cookie-reopen{
  background:none; border:none; padding:0; cursor:pointer;
  color:rgba(255,255,255,0.6); font-size:inherit; text-decoration:underline;
}
.cookie-reopen:hover{ color:#F2A93B; }

@media (max-width:640px){
  .cookie-inner{padding:18px 18px;}
  .cookie-actions{width:100%; justify-content:flex-start;}
}
