/*
 * Inspiration : Card cookies by ilkhoeri, Uiverse.io
 * https://uiverse.io/ilkhoeri/thin-bobcat-83
 * Mise en page, illustration SVG et code adaptés pour OOZWEB.
 *
 * MIT License — Copyright (c) 2026 ilkhoeri (ilkhoeri)
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to
 * do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

.cookie-information,
.cookie-information *,
.cookie-information-settings {
  box-sizing: border-box;
}

.cookie-information {
  position: fixed;
  z-index: 1200;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: var(--max, 1280px);
  max-height: calc(100dvh - 32px);
  min-height: 76px;
  overflow: auto;
  margin: 0 auto;
  padding: 12px 24px;
  border: 1px solid var(--line, #d8e0f2);
  border-radius: 14px;
  background: var(--nav-bg, #f8f9fff2);
  box-shadow: 0 7px 28px #6476ad09;
  backdrop-filter: blur(18px);
  color: var(--text, #102d63);
  font: 400 13px/1.65 var(--font-body, "Segoe UI", sans-serif);
  text-align: left;
}

.cookie-information[hidden] {
  display: none;
}

.cookie-information__illustration {
  width: 76px;
  height: 64px;
  pointer-events: none;
}

.cookie-information__illustration svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 2px #6b442416);
}

.cookie-information__biscuit-back { fill: #b98a58; stroke: #a77646; stroke-width: 2; }
.cookie-information__chips-back { fill: #66442e; }
.cookie-information__biscuit-front { fill: #e7bd8b; stroke: #c8955f; stroke-width: 2; stroke-linejoin: round; }
.cookie-information__chips-front { fill: #775138; }
.cookie-information__crumbs { fill: #c99965; }

.cookie-information__content {
  min-width: 0;
}

.cookie-information .cookie-information__title {
  margin: 0 0 3px;
  color: var(--text, #102d63);
  font: 750 14px/1.5 var(--font-body, "Segoe UI", sans-serif);
  letter-spacing: -0.01em;
}

.cookie-information__description,
.cookie-information__description p {
  max-width: none;
  margin: 0;
  color: var(--muted, #52678c);
  font: inherit;
}

.cookie-information .cookie-information__privacy {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-information .cookie-information__privacy:hover {
  color: var(--accent, #6045df);
}

.cookie-information__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-information__status {
  margin: 6px 0 0;
  color: var(--muted, #52678c);
  font: inherit;
  font-size: 12px;
}

.cookie-information__status:empty { display: none; }

.cookie-information .cookie-information__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 128px;
  min-height: 44px;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid var(--accent, #6045df);
  border-radius: 8px;
  background: var(--button-gradient, linear-gradient(115deg, #6348e9, #5843cc));
  color: #fff;
  font: 600 13px/1.5 var(--font-body, "Segoe UI", sans-serif);
  text-decoration: none;
  cursor: pointer;
}

.cookie-information .cookie-information__button:hover {
  background: var(--button-gradient-hover, #4f3dbd);
}

.cookie-information-settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted, #52678c);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.cookie-information-settings:hover {
  color: var(--accent, #6045df);
}

.cookie-settings-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.main-footer .footer-links.cookie-settings-links { max-width: none; }

.cookie-settings-links .cookie-information-settings {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.cookie-information-settings--floating {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 1100;
  max-width: calc(100vw - 32px);
  min-height: 44px;
  border: 1px solid var(--line, #d8e0f2);
  background: var(--nav-bg, #f8f9fff2);
  box-shadow: 0 4px 18px #24243a12;
}

.cookie-information button:focus-visible,
.cookie-information a:focus-visible,
.cookie-information-settings:focus-visible {
  outline: 3px solid var(--text, #102d63);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .cookie-information {
    width: calc(100% - 32px);
    gap: 16px;
    padding: 14px 16px;
    border-radius: 22px;
  }
}

@media (max-width: 699px) {
  .cookie-information {
    display: block;
    width: calc(100% - 32px);
    max-width: 380px;
    max-height: calc(100dvh - 80px);
    min-height: 0;
    overflow: visible;
    padding: 20px;
    border-color: #ececf1;
    background: #fff;
    box-shadow: 0 8px 28px #24243a1a, 0 1px 4px #24243a0a;
    backdrop-filter: none;
  }

  .cookie-information__illustration {
    position: absolute;
    top: -42px;
    left: 50%;
    width: 96px;
    height: 80px;
    transform: translateX(-50%);
  }

  .cookie-information__content {
    max-height: max(3rem, calc(100dvh - 200px));
    overflow: auto;
    padding-top: 30px;
  }

  .cookie-information .cookie-information__title {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
  }

  .cookie-information .cookie-information__privacy {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 12px;
  }

  .cookie-information__actions {
    justify-content: stretch;
    margin-top: 16px;
  }

  .cookie-information .cookie-information__button {
    flex: 1;
    min-width: 0;
    padding-inline: 16px;
  }
}
