/* Camille Sourget - Consentement : bandeau, panneau et pages legales, aux couleurs du site */

/* ---------- Bandeau ---------- */
.lcsc-banner {
  position: fixed;
  z-index: 99990;
  left: 24px;
  bottom: 24px;
  width: 440px;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  padding: 26px 28px 22px 28px;
  background: #fff;
  border: 1px solid #E4E6E7;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(5, 25, 38, 0.12);
  color: #1F3E51;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 21px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms ease-in-out, transform 250ms ease-in-out;
}

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

.lcsc-banner.is-open {
  opacity: 1;
  transform: none;
}

.lcsc-banner *,
.lcsc-panel * {
  box-sizing: border-box;
}

.lcsc-title {
  display: block;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.lcsc-text {
  margin: 0 0 18px 0;
  font-size: 14px;
  line-height: 21px;
  color: #1F3E51;
}

.lcsc-banner a,
.lcsc-panel a {
  color: #1F3E51;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lcsc-banner a:hover,
.lcsc-panel a:hover {
  opacity: .6;
}

.lcsc-actions {
  display: flex;
  gap: 10px;
}

/* Memes gabarits que le bouton "Acheter" : refuser et accepter ont exactement le meme poids */
.lcsc-btn {
  flex: 1 1 0;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #1F3E51;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1em;
  white-space: nowrap;
  color: #fff;
  background: #1F3E51;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  -webkit-appearance: none;
  appearance: none;
}

.lcsc-btn:hover,
.lcsc-btn:focus-visible {
  background: #051926;
  border-color: #051926;
  color: #fff;
}

.lcsc-btn-ghost {
  background: #fff;
  color: #1F3E51;
}

.lcsc-btn:focus-visible,
.lcsc-link:focus-visible,
.lcsc-close:focus-visible,
.lcsc-switch input:focus-visible + .lcsc-slider {
  outline: 2px solid #1F3E51;
  outline-offset: 2px;
}

.lcsc-link {
  display: inline-block;
  margin: 14px 0 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1F3E51;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: opacity 200ms ease-in-out;
}

.lcsc-link:hover {
  opacity: .6;
}

/* ---------- Panneau de choix ---------- */
.lcsc-overlay {
  position: fixed;
  z-index: 100001;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.lcsc-overlay[hidden] {
  display: none;
}

.lcsc-overlay.is-open {
  opacity: 1;
}

.lcsc-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 100%;
  overflow-y: auto;
  padding: 40px 40px 32px 40px;
  background: #fff;
  border-radius: 2px;
  color: #1F3E51;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 23px;
}

.lcsc-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lcsc-close svg {
  fill: #1F3E51;
}

.lcsc-close:hover {
  opacity: .5;
}

.lcsc-panel-title {
  display: block;
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  padding-right: 30px;
  margin-bottom: 8px;
}

.lcsc-panel-intro {
  margin: 0 0 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid #F9F4EE;
  font-size: 15px;
  line-height: 23px;
}

.lcsc-cat {
  padding: 0 0 18px 0;
  margin: 0 0 18px 0;
  border-bottom: 1px solid #F9F4EE;
}

.lcsc-cat p {
  margin: 6px 0 0 0;
  font-size: 14px;
  line-height: 21px;
  color: #4E5A62;
}

.lcsc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lcsc-cat-title {
  font-weight: 600;
  font-size: 16px;
}

.lcsc-always {
  font-size: 13px;
  color: #80888D;
  white-space: nowrap;
}

.lcsc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}

.lcsc-switch input {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

.lcsc-slider {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #80888D;
  transition: all 200ms ease-in-out;
}

.lcsc-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #80888D;
  transition: all 200ms ease-in-out;
}

.lcsc-switch input:checked + .lcsc-slider {
  background: #1F3E51;
  border-color: #1F3E51;
}

.lcsc-switch input:checked + .lcsc-slider::after {
  left: 23px;
  background: #fff;
}

.lcsc-state {
  min-width: 72px;
  font-size: 13px;
  color: #80888D;
}

.lcsc-actions-panel {
  margin-top: 26px;
  flex-wrap: wrap;
}

.lcsc-actions-panel .lcsc-btn-ghost {
  flex-basis: 100%;
}

body.lcsc-lock {
  overflow: hidden;
}

/* ---------- Mentions sous les formulaires ---------- */
.lcsc-form-notice {
  clear: both;
  margin: 12px 0 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 12px !important;
  line-height: 18px !important;
  color: #80888D;
}

.lcsc-form-notice a {
  color: inherit;
  text-decoration: underline;
}

/* Liens du pied de page : retour a la ligne si l'ecran est etroit */
#copyright .wrapperlarge > div {
  flex-wrap: wrap;
  row-gap: 8px;
}

/* ---------- Pages legales ---------- */
.lcsc-legal {
  color: #1F3E51;
  font-size: 15px;
  line-height: 25px;
  margin-bottom: 120px;
}

.lcsc-legal .lcsc-updated {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 28px;
  color: #80888D;
  margin: -20px 0 40px 0;
}

.lcsc-legal h2 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 22px !important;
  line-height: 30px !important;
  font-weight: 600 !important;
  margin: 46px 0 14px 0 !important;
  padding-top: 26px;
  border-top: 1px solid #F9F4EE;
}

.lcsc-legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0 !important;
}

.lcsc-legal h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin: 26px 0 8px 0;
}

.lcsc-legal p,
.lcsc-legal li {
  font-size: 15px;
  line-height: 25px;
}

.lcsc-legal p {
  margin: 0 0 14px 0;
}

.lcsc-legal ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.lcsc-legal li {
  margin-bottom: 6px;
}

.lcsc-legal a {
  color: #1F3E51;
  font-weight: 600;
}

.lcsc-legal dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 20px;
  margin: 0 0 16px 0;
}

.lcsc-legal dt {
  color: #80888D;
}

.lcsc-legal dd {
  margin: 0;
}

.lcsc-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px 0;
}

.lcsc-legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.lcsc-legal th,
.lcsc-legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #E4E6E7;
}

.lcsc-legal th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #80888D;
}

.lcsc-legal td code {
  font-size: 13px;
  background: #F9F4EE;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
}

.lcsc-legal .lcsc-btn {
  flex: 0 0 auto;
  margin: 6px 0 18px 0;
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 600px) {
  .lcsc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    padding: 20px 16px 16px 16px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .lcsc-overlay {
    padding: 0;
    align-items: stretch;
  }

  .lcsc-panel {
    max-width: none;
    padding: 30px 20px 24px 20px;
    border-radius: 0;
  }

  .lcsc-actions-panel {
    flex-direction: column;
  }

  .lcsc-legal dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .lcsc-legal dd {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lcsc-banner,
  .lcsc-overlay,
  .lcsc-slider,
  .lcsc-slider::after {
    transition: none;
  }
}
