/* Bannière de consentement — Scellia Development */
.cookie-banner[hidden],
.cookie-preferences[hidden] { display: none !important; }

.cookie-banner,
.cookie-preferences { box-sizing: border-box; }

.cookie-banner *,
.cookie-preferences * { box-sizing: border-box; }

.cookie-banner {
  position: fixed;
  z-index: 99999;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: min(1480px, calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.45fr) minmax(250px, 0.85fr);
  grid-template-areas:
    "visual copy actions"
    "reassurance reassurance reassurance";
  gap: 22px 30px;
  align-items: center;
  overflow: hidden;
  padding: 0 26px 14px 0;
  color: #f7f4ec;
  background:
    radial-gradient(circle at 9% 20%, rgba(214, 171, 69, .16), transparent 24%),
    linear-gradient(120deg, #0b0b0b 0%, #111 52%, #080808 100%);
  border: 1px solid #c49a35;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .58), 0 0 28px rgba(189, 143, 41, .10);
  font-family: inherit;
}

.cookie-visual {
  grid-area: visual;
  align-self: stretch;
  min-height: 270px;
  overflow: hidden;
  border-radius: 23px 0 0 0;
  background: #0a0a0a;
}

.cookie-visual img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cookie-copy { grid-area: copy; padding: 25px 0 10px; }
.cookie-eyebrow {
  margin: 0 0 6px;
  color: #cba241;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
  font-weight: 800;
}

.cookie-banner h2,
.cookie-preferences-card h2 {
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.05;
  font-size: clamp(1.55rem, 2.25vw, 2.45rem);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

.cookie-banner h2 em { color: #d3aa4a; font-style: normal; }
.cookie-title-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: 10px;
  border: 2px solid #c99d32;
  border-radius: 50%;
  font-size: 1.5rem;
  vertical-align: middle;
}

.cookie-banner p {
  margin: 0;
  color: #e8e6df;
  line-height: 1.6;
  font-size: .98rem;
}

.cookie-control-note { margin-top: 12px !important; }
.cookie-control-note strong { color: #d6aa43; font-weight: 700; }

.cookie-actions {
  grid-area: actions;
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.cookie-actions button,
.cookie-preferences-actions button {
  min-height: 50px;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.cookie-actions button:hover,
.cookie-preferences-actions button:hover { transform: translateY(-1px); }
.cookie-actions button:focus-visible,
.cookie-preferences-actions button:focus-visible,
.cookie-close:focus-visible,
.cookie-toggle:focus-visible,
.cookie-learn-more:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid rgba(226, 187, 91, .7);
  outline-offset: 3px;
}

.cookie-accept,
.cookie-primary {
  border: 1px solid #e2bb5b;
  background: linear-gradient(135deg, #efd078, #bd8c2f);
  color: #090909;
}
.cookie-reject,
.cookie-customize,
.cookie-secondary {
  border: 1px solid #bc8e2c;
  background: #0d0d0d;
  color: #f8f8f8;
}
.cookie-customize { background: linear-gradient(135deg, #171717, #0a0a0a); }

.cookie-learn-more {
  display: inline-block;
  justify-self: center;
  margin-top: 2px;
  color: #dfb653;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: .83rem;
}

.cookie-reassurance {
  grid-area: reassurance;
  min-height: 38px;
  margin-left: 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(211, 170, 74, .28);
  color: #ddd9cf;
  text-align: center;
  font-size: .86rem;
}
.cookie-reassurance span { color: #deb24c; margin-right: 8px; }

.cookie-settings-link {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Fenêtre de personnalisation */
.cookie-preferences {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

.cookie-preferences-card {
  position: relative;
  width: min(690px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 30px;
  color: #f4f1e8;
  background: linear-gradient(145deg, #121212, #080808);
  border: 1px solid #be922f;
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .65);
}
.cookie-preferences-intro { margin: 0 0 18px; line-height: 1.55; color: #dcd8cd; }
.cookie-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #8e6b26;
  background: #0b0b0b;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(197, 153, 54, .28);
  border-radius: 14px;
  background: #101010;
}
.cookie-category div { min-width: 0; }
.cookie-category strong { display: block; margin-bottom: 5px; color: #f5e4b9; }
.cookie-category span { display: block; color: #c9c5ba; font-size: .87rem; line-height: 1.45; }
.cookie-required-badge { flex: none; color: #d6aa43 !important; font-weight: 700; }
.cookie-toggle { width: 22px; height: 22px; accent-color: #c79b36; flex: none; }
.cookie-preferences-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 980px) {
  .cookie-banner {
    grid-template-columns: 190px 1fr;
    grid-template-areas:
      "visual copy"
      "visual actions"
      "reassurance reassurance";
    padding-right: 20px;
    gap: 8px 22px;
  }
  .cookie-visual { min-height: 100%; }
  .cookie-visual img { min-height: 100%; }
  .cookie-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 12px; }
  .cookie-customize, .cookie-learn-more { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    display: block;
    padding: 0 14px 14px;
    border-radius: 20px;
  }
  .cookie-visual {
    height: 138px;
    min-height: 0;
    margin: 0 -14px;
    border-radius: 19px 19px 0 0;
  }
  .cookie-visual img { min-height: 0; height: 100%; object-position: center 58%; }
  .cookie-copy { padding: 16px 2px 8px; }
  .cookie-eyebrow { font-size: .63rem; }
  .cookie-banner h2 { font-size: 1.45rem; margin-bottom: 10px; }
  .cookie-title-icon { width: 38px; height: 38px; font-size: 1.15rem; margin-right: 7px; }
  .cookie-banner p { font-size: .88rem; line-height: 1.45; }
  .cookie-control-note { margin-top: 8px !important; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
  .cookie-actions button { min-height: 46px; padding: 9px 8px; font-size: .72rem; }
  .cookie-customize, .cookie-learn-more { grid-column: 1 / -1; }
  .cookie-reassurance { margin-left: 0; padding: 10px 2px 0; font-size: .75rem; }
  .cookie-preferences-card { padding: 24px 16px 18px; border-radius: 18px; }
  .cookie-category { align-items: flex-start; }
  .cookie-preferences-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-preferences-actions button { width: 100%; }
}

@media (max-width: 390px) {
  .cookie-visual { height: 112px; }
  .cookie-banner h2 { font-size: 1.25rem; }
  .cookie-banner p { font-size: .82rem; }
  .cookie-actions { grid-template-columns: 1fr; }
  .cookie-customize, .cookie-learn-more { grid-column: auto; }
}

/* Ajustement compact — 29/08/2026 */
@media (min-width: 801px) {
  .cookie-banner {
    width: min(1280px, calc(100% - 48px));
    grid-template-columns: minmax(170px, .72fr) minmax(360px, 1.5fr) minmax(235px, .82fr);
    gap: 12px 24px;
    padding: 0 22px 10px 0;
    border-radius: 20px;
  }
  .cookie-visual,
  .cookie-visual img { min-height: 205px; max-height: 235px; }
  .cookie-copy { padding: 16px 0 4px; }
  .cookie-eyebrow { font-size: 11px; margin-bottom: 4px; }
  .cookie-banner h2 { font-size: clamp(25px, 1.8vw, 34px); margin-bottom: 9px; }
  .cookie-title-icon { width: 40px; height: 40px; font-size: 20px; }
  .cookie-banner p { font-size: 14px; line-height: 1.45; }
  .cookie-control-note { margin-top: 7px !important; }
  .cookie-actions { gap: 7px; padding-top: 10px; }
  .cookie-actions button { min-height: 42px; padding: 8px 12px; font-size: 12px; }
  .cookie-learn-more { font-size: 12px; }
  .cookie-reassurance { min-height: 30px; margin-left: 22px; padding-top: 7px; font-size: 12px; }
}

/* Tablettes + mobiles : format réellement compact */
@media (max-width: 800px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    display: block;
    padding: 0 12px 12px;
    border-radius: 18px;
  }
  .cookie-visual {
    height: 96px;
    min-height: 0;
    margin: 0 -12px;
    border-radius: 17px 17px 0 0;
  }
  .cookie-visual img { height: 100%; min-height: 0; object-position: center 56%; }
  .cookie-copy { padding: 11px 2px 5px; }
  .cookie-eyebrow { margin-bottom: 3px; font-size: 9px; letter-spacing: .1em; }
  .cookie-banner h2 { margin-bottom: 7px; font-size: 22px; line-height: 1.05; }
  .cookie-title-icon { width: 32px; height: 32px; margin-right: 6px; font-size: 16px; }
  .cookie-banner p { font-size: 13px; line-height: 1.35; }
  .cookie-control-note { margin-top: 5px !important; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 7px; }
  .cookie-actions button { min-height: 39px; padding: 7px 6px; border-radius: 10px; font-size: 10px; }
  .cookie-customize, .cookie-learn-more { grid-column: 1 / -1; }
  .cookie-learn-more { margin-top: 0; font-size: 11px; }
  .cookie-reassurance { min-height: 0; margin-left: 0; padding: 7px 2px 0; font-size: 10px; }
}

@media (max-width: 430px) {
  .cookie-visual { height: 82px; }
  .cookie-banner h2 { font-size: 19px; }
  .cookie-banner p { font-size: 12px; }
  .cookie-actions { grid-template-columns: 1fr 1fr; }
  .cookie-actions button { font-size: 9px; }
  .cookie-customize, .cookie-learn-more { grid-column: 1 / -1; }
}


/* Illustration cookies détourée sur fond transparent */
.cookie-visual {
  background: transparent !important;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 4px 12px;
}
.cookie-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
}
@media (max-width: 800px) {
  .cookie-visual {
    margin: 0;
    padding: 4px 0 0;
    height: 105px;
  }
  .cookie-visual img {
    max-width: 280px;
    margin-inline: auto;
  }
}
@media (max-width: 430px) {
  .cookie-visual { height: 92px; }
  .cookie-visual img { max-width: 235px; }
}
