.tally-embed {
  border: 0;
  display: block;
  min-height: 680px;
  width: 100%;
}

.form-config-notice {
  background: #ffffff;
  border-radius: 12px;
  color: #0b2a4a;
  line-height: 1.5;
  margin: 0;
  padding: 1rem;
}

.cookie-consent {
  align-items: stretch;
  background: #ffffff;
  bottom: auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  color: #0b2a4a;
  display: flex;
  flex-direction: column;
  left: 50%;
  max-width: 49rem;
  padding: 2.5rem 2.25rem 1.5rem;
  position: fixed;
  right: auto;
  z-index: 2147483647;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
}

.cookie-consent::before {
  background: rgba(6, 22, 42, 0.72);
  content: "";
  inset: 0;
  position: fixed;
  z-index: -1;
}

.cookie-consent__continue {
  align-self: flex-start;
  background: none;
  border: 0;
  color: #111923;
  cursor: pointer;
  font: inherit;
  margin: 0 0 1.75rem;
  padding: 0;
  text-decoration: underline;
}

.cookie-consent__logo {
  height: 4rem;
  margin-bottom: 1.5rem;
  object-fit: contain;
  object-position: left center;
  width: 14rem;
}

.cookie-consent__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.cookie-consent__text {
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 0 0 1.5rem;
}

.cookie-consent__text p {
  margin: 0;
}

.cookie-consent__text p + p {
  margin-top: 1rem;
}

.cookie-consent__text a,
.cookie-consent__preferences a {
  color: inherit;
  text-decoration: underline;
}

.cookie-consent__preferences {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.cookie-consent__preferences summary {
  cursor: pointer;
  border: 1px solid #0b2a4a;
  font-weight: 400;
  padding: 0.75rem 2rem;
  text-align: center;
}

.cookie-consent__option {
  align-items: flex-start;
  display: flex;
  gap: 0.5rem;
  margin: 0.65rem 0;
}

.cookie-consent__option input {
  margin-top: 0.25rem;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d8dce2;
}

.cookie-consent__button,
.cookie-settings-link {
  background: #0b2a4a;
  border: 1px solid #0b2a4a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0.75rem 2rem;
}

.cookie-consent__button--secondary,
.cookie-settings-link {
  background: #ffffff;
  color: #0b2a4a;
}

.cookie-settings-link {
  margin: 0.5rem;
  text-decoration: underline;
}

.footer__social {
  color: var(--muted-on-navy);
}

.footer__social a {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 3px;
}

.footer__social a:first-of-type {
  margin-left: 12px;
  margin-right: 15px;
}

.footer__social-links {
  align-items: center;
  display: inline-flex;
  gap: 15px;
}

.footer__social-links a:first-of-type {
  margin-left: 0;
  margin-right: 0;
}

.footer__social img {
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.details__time {
  color: var(--white) !important;
}

.brand__logo {
  display: none !important;
}

.heritage {
  margin-inline: auto;
  max-width: 1920px;
  padding-block: clamp(48px, 6vw, 80px);
}

.heritage__years {
  width: clamp(220px, 28vw, 360px);
}

@media (min-width: 761px) {
  .footer__inner {
    grid-template-areas:
      "legal brand"
      "links brand"
      "social brand";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer__legal {
    grid-area: legal;
  }

  .footer__links {
    grid-area: links;
  }

  .footer__social {
    grid-area: social;
    align-self: start;
    justify-self: start;
    text-align: left;
  }

  .footer__social-label {
    margin-right: 12px;
  }

  .footer__b {
    grid-area: brand;
    justify-self: end;
  }
}

.reasons,
.faq {
  padding-block: clamp(40px, 5vw, 72px);
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .brand__visual {
    display: none;
  }

  #video > .container {
    width: calc(100% - 16px);
  }

  .footer__social-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .reasons {
    padding-top: 32px;
  }
}

@media (max-width: 520px) {
  .cookie-consent {
    bottom: 0;
    left: 0;
    max-width: none;
    right: 0;
    top: auto;
    transform: none;
    width: 100%;
  }

  .cookie-consent__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__button {
    flex: 0 0 auto;
    font-size: 0.9rem;
    line-height: 1.25;
    padding: 0.5rem 1.25rem;
    width: 100%;
  }

  .cookie-consent__text {
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .cookie-consent__quick-reject {
    font-size: 0.5rem;
  }

  .cookie-consent__brand {
    align-self: center;
    object-position: center;
  }

  .footer__social {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: left;
  }

  .footer__social-links {
    gap: 0.75rem;
    justify-content: center;
  }

  .footer__social a {
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .topbar {
    gap: 8px;
    padding: 6px 8px 6px 12px;
    width: calc(100% - 32px);
  }

  .topbar__brand img {
    width: 82px;
  }

  .topbar .btn {
    flex: 0 1 auto;
    gap: 4px;
    max-width: 165px;
    min-width: 0;
    padding: 6px 7px;
    font-size: 0.64rem;
    white-space: nowrap;
  }
}

/* Cookie modal aligned with the Vins Primeurs landing. */
.cookie-consent::before { display: none; }
.cookie-consent__backdrop {
  background: rgba(8, 25, 42, 0.52);
  inset: 0;
  position: fixed;
  z-index: 2147483646;
}
body.cookie-consent-open { overflow: hidden; touch-action: none; }
.cookie-consent {
  border: 2px solid #17212a;
  bottom: 1rem;
  left: 1rem;
  max-width: 43rem;
  padding: 2rem;
  right: 1rem;
  top: auto;
  transform: none;
  width: auto;
}
.cookie-consent__quick-reject {
  background: transparent;
  border: 0;
  color: #17212a;
  cursor: pointer;
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}
.cookie-consent__brand {
  align-self: center;
  display: block;
  height: auto;
  margin: 0 0 1.5rem;
  max-width: 12rem;
  object-fit: contain;
  object-position: center;
  width: 45%;
}
.cookie-consent__title { font-size: 1.5rem; }
.cookie-consent__details-text { color: #5c6670; font-size: 0.78rem; line-height: 1.45; margin: -0.35rem 0 1rem; }
.cookie-consent__preferences summary { display: none; }
.cookie-consent__option { background: #f5f6f7; border: 1px solid #d8dde2; border-radius: 0.5rem; padding: 0.9rem 1rem; }
.cookie-consent__actions { border-top: 0; justify-content: flex-start; margin-top: 0; padding-top: 0; }
.cookie-consent__actions .cookie-consent__button { font-weight: 700; }

@media (max-width: 520px) {
  .cookie-consent__quick-reject {
    font-size: 0.5rem;
  }
}

@media (min-width: 761px) {
  .cookie-consent {
    bottom: auto;
    left: 50%;
    max-height: 90vh;
    overflow-y: auto;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(52rem, calc(100vw - 4rem));
  }
  .cookie-consent__text { font-size: 0.7rem; line-height: 1.45; }
  .cookie-consent__actions {
    border-top: 1px solid #d8dde2;
    justify-content: center;
    margin: 1.5rem -2rem -2rem;
    padding: 1.5rem 2rem;
  }
  .cookie-consent__button { min-width: 13rem; }
}

.form-honeypot {
  left: -9999px;
  position: absolute;
}

.video-player {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.hero__event-des[hidden] {
  display: none !important;
}

.hero__event-before {
  margin-bottom: 0.8em;
}

.hero__event {
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
}

.hero__question {
  line-height: 1.6;
}

.brand .kicker {
  text-transform: none;
}

.cta-band__inner {
  justify-content: center;
}

#invitation .invitation__intro > p.kicker {
  display: none;
}

#invitation .form-field > label {
  display: none !important;
}

/* Le formulaire est la destination des CTA : il doit être visible dès l'arrivée sur l'ancre. */
#invitation form.form-card,
#invitation form.lb-invitation-form {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (min-width: 861px) {
  #invitation .invitation__intro {
    margin-top: -120px;
  }
}

@media (max-width: 767px) {
  /* Le CTA mobile doit arriver immédiatement à la section du formulaire. */
  html {
    scroll-behavior: auto;
  }

  #invitation .invitation__grid {
    row-gap: 16px;
  }

  #invitation .details--stack {
    margin-bottom: 16px;
  }

  .hero__art {
    display: none !important;
  }
}

/* Formulaire isolé de la landing page. */
.lb-invitation-form {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  font-family: Tahoma, Arial, sans-serif;
  gap: 1.5rem;
  margin: auto;
  max-width: 1200px;
  padding: 2rem;
  width: 100%;
}

.lb-invitation-form .form-field label,
.lb-invitation-form .checkbox-row label {
  color: #082c50;
  display: block;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0;
}

.lb-invitation-form .checkbox-row label {
  color: #606060;
  font-size: 11px;
}

.lb-invitation-form input:not([type="checkbox"]),
.lb-invitation-form textarea {
  background-color: #ffffff;
  border: 1px solid #dcdde1;
  border-radius: 8px;
  color: #082c50;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1rem;
  height: auto;
  line-height: 1.4;
  margin-top: 0;
  min-height: 0;
  padding: 0.9rem;
}

.lb-invitation-form textarea {
  min-height: 8rem;
}

.lb-invitation-form input:not([type="checkbox"]):focus,
.lb-invitation-form textarea:focus {
  background-color: #ffffff;
  border-color: #082c50;
  box-shadow: 0 0 0 3px rgba(8, 44, 80, 0.16);
  outline: 0;
}

.lb-invitation-form .form-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  width: 100%;
}

.lb-invitation-form .form-field,
.lb-invitation-form .checkbox-row {
  width: 100%;
}

.lb-invitation-form #invitation-prenom,
.lb-invitation-form #invitation-nom,
.lb-invitation-form #invitation-etablissement,
.lb-invitation-form #invitation-ville,
.lb-invitation-form #invitation-email,
.lb-invitation-form #invitation-telephone {
  width: 100%;
}

.lb-invitation-form #invitation-message {
  width: 100%;
}

@media (max-width: 767px) {
  .lb-invitation-form #invitation-etablissement,
  .lb-invitation-form #invitation-message {
    width: 100%;
  }
}

.lb-invitation-form .checkbox-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-top: -1rem;
}

.lb-invitation-form .checkbox-row input[type="checkbox"] {
  accent-color: #00a8ff;
  flex: 0 0 auto;
  height: 1rem;
  margin: 0;
  width: 1rem;
}

.lb-invitation-form .checkbox-row a {
  color: #606060;
}

.lb-invitation-form .button {
  background-color: #082c50;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0;
  min-height: 0;
  padding: 1rem 2rem;
  width: 100%;
}

.lb-invitation-form .button:hover,
.lb-invitation-form .button:focus-visible {
  background-color: #061f3a;
}

.lb-invitation-form .form-success,
.lb-invitation-form .form-config-notice {
  background: #edf4f8;
  color: #0b3158;
}

@media (min-width: 768px) {
  .lb-invitation-form {
    padding: 3rem 4rem;
  }

  .lb-invitation-form .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #invitation {
    min-height: auto;
  }

  #invitation .invitation__intro {
    margin-top: 0;
    position: static;
  }

  #invitation .invitation__grid {
    grid-template-columns: 1fr;
  }

  .lb-invitation-form {
    padding: 2rem;
  }

  .lb-invitation-form .form-row {
    grid-template-columns: 1fr;
  }
}
