/*
Theme Name: Investonaute
Theme URI: https://forestgreen-swallow-770859.hostingersite.com/
Author: LUCAS SASU
Description: Thème WordPress autonome pour le site Investonaute.
Version: 4.0.0-rc.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: investonaute
*/

body.investonaute-wp-fallback {
  margin: 0;
  color: #0b1d3a;
  background: #f6f8fc;
  font-family: Arial, sans-serif;
}

.investonaute-wp-fallback__header,
.investonaute-wp-fallback__main,
.investonaute-wp-fallback__footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.investonaute-wp-fallback__header,
.investonaute-wp-fallback__footer {
  padding-block: 24px;
}

.investonaute-wp-fallback__main {
  min-height: 60vh;
  padding-block: 64px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.cookie-banner {
  position: fixed;
  z-index: 500;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(740px, calc(100% - 32px));
  margin-inline: auto;
  border: 1px solid #b9c7d8;
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 24px 70px rgb(7 23 40 / 20%);
}

.cookie-banner h2,
.cookie-dialog h2 {
  margin: 0;
}

.cookie-banner h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.cookie-banner p,
.cookie-dialog p {
  color: #3f4f63;
}

.cookie-banner p {
  margin: 4px 0 0;
  font-size: .8rem;
  line-height: 1.45;
}

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

.cookie-banner .cookie-actions {
  justify-content: flex-end;
}

.cookie-actions .button,
.cookie-policy-link,
.icon-button {
  min-height: 44px;
  border: 1px solid #285fe7;
  border-radius: 999px;
  background: #285fe7;
  color: #fff;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions .button--secondary,
.cookie-policy-link,
.icon-button {
  background: #fff;
  color: #0b1d3a;
}

.cookie-banner .cookie-policy-link {
  border: 0;
  min-height: 44px;
  padding: 12px 4px;
  color: #285fe7;
  font-size: .75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #b9c7d8;
  border-radius: 18px;
  background: #fff;
  color: #0b1d3a;
  padding: 0;
}

.cookie-dialog::backdrop {
  background: rgb(7 23 40 / 74%);
}

.cookie-dialog__inner {
  padding: 24px;
}

.cookie-dialog__header,
.preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.preference-row {
  border-top: 1px solid #d9e0e8;
  padding-block: 14px;
}

@media (max-width: 760px) {
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 12px;
    width: auto;
    padding: 15px;
  }

  .cookie-banner .cookie-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .cookie-banner .cookie-actions .button {
    flex: 1 1 auto;
  }

  .cookie-dialog__inner {
    padding: 20px;
  }
}

.switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 28px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch > span[aria-hidden] {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #a8b4c3;
}

.switch > span[aria-hidden]::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.switch input:checked + span[aria-hidden] {
  background: #285fe7;
}

.switch input:checked + span[aria-hidden]::after {
  transform: translateX(22px);
}
