/* =====================================================================
   EasyWash — bandeau de consentement aux cookies (CNIL / RGPD)
   Aucun traceur non essentiel avant le choix de l’utilisateur.
   ===================================================================== */

/* ---------- Bandeau ---------- */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:200;
  padding:14px;
  color:var(--navy);
  font-family:var(--font-body);
}
.cookie-banner[hidden],
.cookie-panel[hidden]{display:none!important}
.cookie-banner-inner{
  width:min(1160px,100%);
  margin:0 auto;
  padding:22px 26px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 28px 80px rgba(15,42,68,.3);
}
.cookie-panel-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:26px;
  align-items:center;
}
.cookie-kicker{
  margin:0 0 5px;
  font-size:11px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--teal);
}
.cookie-title{
  margin:0 0 8px;
  font-family:var(--font-display);
  font-size:22px;
  line-height:1.2;
  color:var(--navy);
}
.cookie-title:focus{outline:none}
.cookie-desc{
  max-width:760px;
  margin:0;
  font-size:13.5px;
  line-height:1.65;
  color:var(--muted);
}
.cookie-inline-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  margin:12px 0 0;
  font-size:13px;
  font-weight:700;
}
.cookie-inline-links a,
.cookie-link-btn{
  color:var(--teal);
  text-decoration:underline;
  text-underline-offset:2px;
}
.cookie-link-btn{
  padding:0;
  border:0;
  background:none;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.cookie-inline-links a:hover,
.cookie-link-btn:hover{color:var(--navy)}

.cookie-banner-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.cookie-btn{
  min-height:46px;
  padding:10px 22px;
  border:1.5px solid var(--navy);
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
  transition:background .2s,color .2s,border-color .2s,transform .15s;
}
.cookie-btn:hover{background:var(--cream);transform:translateY(-1px)}
.cookie-btn:active{transform:translateY(0)}
.cookie-btn:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
.cookie-btn-accept{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff;
}
.cookie-btn-accept:hover{
  background:var(--teal);
  border-color:var(--teal);
  color:#fff;
}

/* ---------- Panneau de personnalisation ---------- */
.cookie-settings-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.cookie-close{
  flex:none;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  transition:background .2s,border-color .2s;
}
.cookie-close:hover{background:var(--cream);border-color:var(--steel)}
.cookie-close:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.cookie-cat{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
  border-top:1px solid var(--line);
}
.cookie-cat:first-of-type{margin-top:14px}
.cookie-cat strong{display:block;font-size:14px;color:var(--navy)}
.cookie-cat p,
.cookie-cat-desc{
  display:block;
  max-width:660px;
  margin:3px 0 0;
  font-size:12.5px;
  line-height:1.6;
  color:var(--muted);
}
.cookie-cat-copy{display:block}
.cookie-cat-state{
  flex:none;
  font-size:12px;
  font-weight:700;
  color:var(--teal);
  white-space:nowrap;
}
.cookie-settings-actions{
  justify-content:flex-start;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

/* Interrupteur */
.cookie-switch{
  position:relative;
  display:inline-flex;
  flex:none;
  width:48px;
  height:28px;
  cursor:pointer;
}
.cookie-switch input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.cookie-switch-track{
  position:relative;
  width:100%;
  height:100%;
  border-radius:999px;
  background:#c8d6dd;
  transition:background .2s;
}
.cookie-switch-track::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(15,42,68,.3);
  transition:transform .2s;
}
.cookie-switch input:checked + .cookie-switch-track{background:var(--teal)}
.cookie-switch input:checked + .cookie-switch-track::after{transform:translateX(20px)}
.cookie-switch input:focus-visible + .cookie-switch-track{outline:3px solid var(--teal);outline-offset:3px}

/* Statut lecteur d’écran */
.cookie-sr{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ---------- Carte Google Maps bloquée ---------- */
.access-map-off{
  background:
    radial-gradient(circle at 72% 38%,rgba(192,240,247,.15),transparent 44%),
    linear-gradient(135deg,#0f2a44 0%,#123752 58%,#0c6980 140%);
}
.access-map-off::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(circle at 70% 50%,#000,transparent 76%);
  mask-image:radial-gradient(circle at 70% 50%,#000,transparent 76%);
}
.access-map-off-badge{
  position:absolute;
  right:max(24px,calc((100% - 1160px) / 2));
  bottom:30px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#dff0f3;
  font-size:12px;
  font-weight:700;
  pointer-events:none;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
.access-map-off-badge .ico{font-size:15px;color:var(--accent)}
.map-consent-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  padding:0;
  border:0;
  background:none;
  color:var(--accent);
  font-size:14px;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.map-consent-link:hover{color:#fff}
.map-consent-link .ico{font-size:16px}
.map-consent-link[hidden]{display:none!important}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  .cookie-panel-main{grid-template-columns:1fr;gap:16px}
  .cookie-banner-actions{justify-content:flex-start}
}
@media(max-width:760px){
  .cookie-banner{padding:10px}
  .cookie-banner-inner{
    max-height:calc(100vh - 20px);
    padding:18px;
    border-radius:16px;
    overflow:auto;
  }
  .cookie-title{font-size:20px}
  .cookie-desc{font-size:13px}
  .cookie-banner-actions{flex-direction:column;gap:8px;width:100%}
  .cookie-btn{width:100%;min-height:48px}
  .cookie-settings-actions{flex-direction:column}
  .cookie-cat{gap:14px}
  .cookie-cat p{font-size:12px}
  .cookie-cat-desc{font-size:12px}
  .cookie-settings-actions .cookie-btn{width:100%}
  .access-map-off-badge{
    right:auto;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    white-space:nowrap;
  }
  .map-consent-link{font-size:13.5px}
}
