:root {
  --green-100:rgba(177, 212, 212, 1);
  --fontfamilyPfamily: ZillaSlab_regular;
  --fontfamilySfamily:HostGrotesk_regular;
}

@font-face {
  font-family: HostGrotesk_regular;
  src: url("../../../../fonts/host_grotesk/font-files/HostGrotesk-Regular.ttf");
}
@font-face {
  font-family: HostGrotesk_light;
  src: url("../../../../fonts/host_grotesk/font-files/HostGrotesk-Light.ttf");
}
@font-face {
  font-family: HostGrotesk_italic;
  src: url("../../../../fonts/host_grotesk/font-files/HostGrotesk-Italic.ttf");
}
@font-face {
  font-family: ZillaSlab_regular;
  src: url("../../../../fonts/zilla_slab/font-files/ZillaSlab-Regular.ttf");
}
.js-lcc-modal-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  pointer-events: none;
}

.cookie-banner {
  pointer-events: all;
  background: #FFFFFF;
  border-top: 1.5px solid #DAFAFB;
  box-shadow: 0 -4px 32px rgba(2, 115, 115, 0.1), 0 -1px 8px rgba(0, 0, 0, 0.06);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: #DAFAFB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cookie-banner__content {
  flex: 1;
  min-width: 0;
}

.cookie-banner__text {
  font-family: "Host Grotesk", sans-serif;
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  color: #434348;
  margin: 0;
  line-height: 1.55;
}
.cookie-banner__text a {
  color: #027373;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  /*  
      example de valeur de color lors de son utilisation :
      $colors: (
          default: #007bff,
          hover: #0056b3,
          focus: #80bdff,
          disabled: #c0c0c0
      );
  */
  gap: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  min-width: -moz-fit-content;
  min-width: fit-content;
  height: 2.25rem;
  width: -moz-fit-content;
  width: fit-content;
  font-family: "HostGrotesk_regular";
  font-size: 14px;
  line-height: 100%;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0;
  vertical-align: middle;
  margin: 0px !important;
  border-radius: 5px;
  text-decoration: none;
  background-color: #f25f29;
  border: none;
  color: #FFFFFF;
}
.cookie-btn-accept:hover {
  color: #FFFFFF;
  background-color: #F57F54;
  text-decoration: none;
}
.cookie-btn-accept:focus, .cookie-btn-accept:focus-within {
  background-color: #DC5625;
  color: #FFFFFF;
  box-shadow: none !important;
  outline: none;
}
.cookie-btn-accept:disabled, .cookie-btn-accept:disabled:hover {
  background-color: #F4F4F7;
  border: 1.5px solid #F4F4F7;
  color: rgb(201, 201, 206) !important;
  cursor: not-allowed;
}
.cookie-btn-accept {
  text-decoration: none;
  white-space: nowrap;
}

.cookie-btn-essential {
  /*  
      example de valeur de color lors de son utilisation :
      $colors: (
          default: #007bff,
          hover: #0056b3,
          focus: #80bdff,
          disabled: #c0c0c0
      );
  */
  gap: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  min-width: -moz-fit-content;
  min-width: fit-content;
  height: 2.25rem;
  width: -moz-fit-content;
  width: fit-content;
  font-family: "HostGrotesk_regular";
  font-size: 14px;
  line-height: 100%;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0;
  vertical-align: middle;
  margin: 0px !important;
  border-radius: 5px;
  text-decoration: none;
  border: 1.5px solid #f25f29;
  background-color: transparent;
  color: #f25f29;
}
.cookie-btn-essential:hover {
  color: #FFFFFF;
  border: 1.5px solid #F57F54;
  background-color: #F57F54;
  text-decoration: none;
}
.cookie-btn-essential:focus, .cookie-btn-essential:focus-within {
  background-color: #DC5625;
  color: #FFFFFF;
  border: 1.5px solid #F57F54;
  box-shadow: none !important;
  outline: none;
}
.cookie-btn-essential:disabled, .cookie-btn-essential:disabled:hover {
  background-color: #FFFFFF;
  border: 1.5px solid #F0F0F4;
  color: rgb(201, 201, 206) !important;
  cursor: not-allowed;
}
.cookie-btn-essential {
  white-space: nowrap;
}

.cookie-btn-settings {
  font-family: "Host Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  background: transparent;
  color: #A2A3A8;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  transition: color 150ms ease;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  color: #027373;
  outline: none;
}

.js-lcc-modal-settings {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 32, 37, 0.55);
  backdrop-filter: blur(2px);
  padding: 1rem;
  box-sizing: border-box;
}

.cookie-settings-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 48px rgba(2, 115, 115, 0.14), 0 2px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
  position: relative;
}
.cookie-settings-card::-webkit-scrollbar {
  width: 4px;
}
.cookie-settings-card::-webkit-scrollbar-track {
  background: #F4F4F7;
}
.cookie-settings-card::-webkit-scrollbar-thumb {
  background: #B4E2E2;
  border-radius: 2px;
}

.cookie-settings-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F4F4F7;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #434348;
  cursor: pointer;
  transition: background 150ms ease;
  line-height: 1;
}
.cookie-settings-close:hover {
  background: #DAFAFB;
  color: #027373;
}

.cookie-settings-title {
  font-family: "Zilla Slab", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #202025;
  margin: 0 0 0.625rem 0;
  padding-right: 2.5rem;
}

.cookie-settings-desc {
  font-family: "Host Grotesk", sans-serif;
  font-size: 0.875rem;
  color: #434348;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}
.cookie-settings-desc a {
  color: #027373;
  text-decoration: underline;
}

.cookie-settings-accept-all {
  /*  
      example de valeur de color lors de son utilisation :
      $colors: (
          default: #007bff,
          hover: #0056b3,
          focus: #80bdff,
          disabled: #c0c0c0
      );
  */
  gap: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  min-width: -moz-fit-content;
  min-width: fit-content;
  height: 2.25rem;
  width: -moz-fit-content;
  width: fit-content;
  font-family: "HostGrotesk_regular";
  font-size: 14px;
  line-height: 100%;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0;
  vertical-align: middle;
  margin: 0px !important;
  border-radius: 5px;
  text-decoration: none;
  background-color: #f25f29;
  border: none;
  color: #FFFFFF;
}
.cookie-settings-accept-all:hover {
  color: #FFFFFF;
  background-color: #F57F54;
  text-decoration: none;
}
.cookie-settings-accept-all:focus, .cookie-settings-accept-all:focus-within {
  background-color: #DC5625;
  color: #FFFFFF;
  box-shadow: none !important;
  outline: none;
}
.cookie-settings-accept-all:disabled, .cookie-settings-accept-all:disabled:hover {
  background-color: #F4F4F7;
  border: 1.5px solid #F4F4F7;
  color: rgb(201, 201, 206) !important;
  cursor: not-allowed;
}
.cookie-settings-accept-all {
  text-decoration: none;
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.cookie-section {
  border-top: 1px solid #EDEDF2;
  padding: 0.875rem 0;
}
.cookie-section:last-of-type {
  border-bottom: 1px solid #EDEDF2;
}

.cookie-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: default;
  margin: 0;
}

.cookie-section-label-text {
  font-family: "Host Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #202025;
}

.cookie-section-desc {
  font-family: "Host Grotesk", sans-serif;
  font-size: 0.8rem;
  color: #A2A3A8;
  margin: 0.375rem 0 0 0;
  line-height: 1.5;
}

.cookie-toggle-wrapper {
  flex-shrink: 0;
}
.cookie-toggle-wrapper input[type=checkbox] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 2.5rem;
  height: 1.375rem;
  background: #D0D0D4;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 200ms ease;
  outline: none;
  border: none;
}
.cookie-toggle-wrapper input[type=checkbox]:checked {
  background: #027373;
}
.cookie-toggle-wrapper input[type=checkbox]:disabled {
  background: #B4E2E2;
  cursor: not-allowed;
  opacity: 1;
}
.cookie-toggle-wrapper input[type=checkbox]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cookie-toggle-wrapper input[type=checkbox]:checked::after {
  transform: translateX(1.125rem);
}

.cookie-settings-footer {
  margin-top: 1.25rem;
}

.cookie-settings-save {
  /*  
      example de valeur de color lors de son utilisation :
      $colors: (
          default: #007bff,
          hover: #0056b3,
          focus: #80bdff,
          disabled: #c0c0c0
      );
  */
  gap: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  min-width: -moz-fit-content;
  min-width: fit-content;
  height: 2.25rem;
  width: -moz-fit-content;
  width: fit-content;
  font-family: "HostGrotesk_regular";
  font-size: 14px;
  line-height: 100%;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0;
  vertical-align: middle;
  margin: 0px !important;
  border-radius: 5px;
  text-decoration: none;
  border: 1.5px solid #027373;
  background-color: transparent;
  color: #027373;
}
.cookie-settings-save:hover {
  color: #FFFFFF;
  border: 1.5px solid #358F8F;
  background-color: #358F8F;
  text-decoration: none;
}
.cookie-settings-save:focus, .cookie-settings-save:focus-within {
  background-color: #026969;
  color: #FFFFFF;
  border: 1.5px solid #358F8F;
  box-shadow: none !important;
  outline: none;
}
.cookie-settings-save:disabled, .cookie-settings-save:disabled:hover {
  background-color: #FFFFFF;
  border: 1.5px solid #F0F0F4;
  color: rgb(201, 201, 206) !important;
  cursor: not-allowed;
}

.lcc-u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-wrap: nowrap;
  }
  .cookie-banner__actions {
    flex-wrap: nowrap;
  }
}
@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem 1rem;
  }
  .cookie-banner__icon {
    display: none;
  }
  .cookie-banner__content {
    width: 100%;
    text-align: center;
  }
  .cookie-banner__text {
    font-size: 0.8125rem;
    text-align: center;
  }
  /* Zone boutons : 2 boutons sur la 1ère ligne, lien en dessous, tout centré */
  .cookie-banner__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .cookie-btn-accept,
  .cookie-btn-essential {
    flex: 1 1 0;
    width: calc(50% - 0.25rem) !important;
    min-width: 0;
    max-width: calc(50% - 0.25rem);
    justify-content: center;
    box-sizing: border-box;
  }
  /* Lien "Personnaliser" sur sa propre ligne, centré */
  .cookie-btn-settings {
    width: 100%;
    text-align: center;
    padding: 0.25rem 0;
    order: 3;
  }
  .cookie-settings-card {
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
  }
  .js-lcc-modal-settings {
    align-items: flex-end;
    padding: 0;
  }
}
@media (max-width: 380px) {
  .cookie-banner__text {
    font-size: 0.75rem;
  }
  .cookie-btn-accept,
  .cookie-btn-essential {
    max-width: 100%;
    width: 100%;
  }
}