/* CSS Variables - Auction House Design System */
:root {
  /* Couleurs de base Auction House */
  --gold-pils-50: 252, 248, 240;
  --gold-pils-100: 249, 240, 225;
  --gold-pils-200: 243, 225, 195;
  --gold-pils-300: 237, 210, 165;
  --gold-pils-400: 231, 195, 135; /* #e7c387 */
  --gold-pils-500: 226, 191, 144; /* #e2bf90 - couleur doré signature */
  --gold-pils-600: 221, 156, 90; /* #dd9c5a */
  --gold-pils-700: 200, 135, 63; /* #c8873f */
  --gold-pils-800: 179, 114, 36; /* #b37224 */
  --gold-pils-900: 158, 93, 9; /* #9e5d09 */
  --gold-pils-950: 58, 27, 16; /* #3A1B10 - pour le texte des boutons */

  --black-haze-50: 248, 249, 251;
  --black-haze-100: 241, 243, 247;
  --black-haze-200: 227, 231, 239;
  --black-haze-300: 213, 219, 231;
  --black-haze-400: 199, 207, 223;
  --black-haze-500: 185, 195, 215;
  --black-haze-600: 171, 183, 207;
  --black-haze-700: 26, 30, 46; /* #1a1e2e */
  --black-haze-800: 21, 25, 38; /* #151926 */
  --black-haze-900: 16, 20, 30; /* #10141e */

  /* Gradients de la landing originale */
  --gradient-dark-primary: linear-gradient(135deg, #1f2438 0%, #1a1e2e 100%);
  --gradient-gold-primary: linear-gradient(
    135deg,
    rgb(var(--gold-pils-400)) 0%,
    rgb(var(--gold-pils-600)) 100%
  );
  --gradient-gold-500-600: linear-gradient(
    135deg,
    rgb(var(--gold-pils-500)) 0%,
    rgb(var(--gold-pils-600)) 100%
  );
  --gradient-gold-vertical: linear-gradient(
    180deg,
    rgb(var(--gold-pils-500)) 0%,
    rgb(var(--gold-pils-600)) 100%
  );
  --gradient-form-bg: linear-gradient(135deg, #ffffff 0%, #f2f6fa 100%);

  /* Typographie - Design System Auction House */
  --font-display: 'Sora', system-ui, -apple-system, sans-serif;
  --font-primary:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
    sans-serif;

  /* Autres couleurs */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border-gray: #bfbfbf;
  --color-border-gold: #c76b2f;
  --color-button-border: #854427;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Protection générale contre les débordements */
* {
  max-width: 100%;
}

html {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-white);
  background: var(--gradient-dark-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Formes décoratives appliquées à toute la page */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -15%;
  width: 60%;
  height: 120%;
  background: var(--gradient-form-bg);
  transform: rotate(9deg);
  opacity: 0.1;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 100%;
  background: var(--gradient-gold-primary);
  transform: rotate(15deg);
  opacity: 0.05;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: -1;
}

/* Container principal */
.main-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Décalage vers la gauche sur desktop pour équilibrer avec les illustrations */
@media (min-width: 1024px) {
  .main-container {
    margin-left: -5%;
  }
}

/* Content wrapper */
.content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

/* Desktop content wrapper */
@media (min-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .main-content {
    text-align: center;
  }
}

/* Logo section */
.logo-section {
  text-align: center;
  margin-bottom: 0;
}

.logo-section .logo-svg {
  max-width: 300px;
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-section .tagline {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--gold-pils-400));
  opacity: 0.9;
  margin-top: 20px;
  margin-bottom: 25px;
}

/* Main content */
.main-content {
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.hero-title strong {
  font-weight: 700;
  color: rgb(var(--gold-pils-500));
}

.hero-highlight {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--color-white);
  margin: 0.75rem 0;
}

.hero-highlight strong {
  font-weight: 700;
  color: rgb(var(--gold-pils-500));
}

.announcement {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-white);
  margin: 2rem 0 0.75rem 0;
  font-weight: 400;
}

.announcement strong {
  font-weight: 700;
  color: rgb(var(--gold-pils-500));
}

.values-text {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-white);
  margin-top: 0.75rem;
  font-weight: 400;
}

.values-text strong {
  font-weight: 700;
  color: rgb(var(--gold-pils-500));
}

/* Newsletter disclaimer text */
.newsletter-disclaimer {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  text-align: left;
}

/* Illustrations - Desktop uniquement */
.illustrations-container {
  position: absolute;
  max-width: 100vw;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  margin-left: 600px;
}

.laptop-illustration {
  width: 740px;
  height: auto;
  max-width: none;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  margin-top: 105px;
}

.smartphone-illustration {
  position: absolute;
  bottom: 25px;
  right: 560px;
  width: 180px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.25));
}

/* Inline Newsletter Form */
.inline-newsletter {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  padding-left: 0;
}

.inline-email-input {
  font-family: var(--font-primary);
  padding: 13px 16px;
  height: 50px;
  border: 1px solid var(--color-border-gray);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-black);
  background: #ffffff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
  width: 364px;
  min-width: 312px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.inline-email-input::placeholder {
  color: #6b7280;
  font-family: var(--font-primary);
}

.inline-email-input:focus {
  border-color: rgb(var(--gold-pils-500));
  box-shadow: 0 0 0 3px rgba(226, 191, 144, 0.1);
}

.inline-submit-button {
  font-family: var(--font-primary);
  padding: 13px 20px;
  height: 50px;
  background: var(--gradient-gold-500-600);
  color: rgb(var(--gold-pils-950));
  border: 1px solid var(--color-button-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
  white-space: nowrap;
  min-width: fit-content;
}

.inline-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.inline-submit-button:active {
  transform: translateY(0);
}

/* Styles personnalisés pour Brevo Form */
#sib-form-container {
  font-family: var(--font-primary) !important;
}

/* Neutralisation des styles Brevo qui décalent l'input */
.sib-input {
  margin: 0 !important;
  padding: 0 !important;
}

.sib-form-block {
  margin: 0 !important;
  padding: 0 !important;
}

/* Masquer définitivement le message d'erreur générique */
#error-message {
  display: none !important;
}

/* Message de succès qui se superpose au formulaire sans créer de décalage */
#success-message {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: none !important;
  height: 50px !important;
  box-sizing: border-box !important;
  font-size: 0.875rem !important;
  color: #ffffff !important;
  background: #16a34a !important;
  border: 1px solid #15803d !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  word-wrap: break-word !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
  transition: all 0.3s ease !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  z-index: 10 !important;
}

/* Message de succès visible - prend la place du formulaire */
#success-message.sib-form-message-panel--active {
  display: flex !important;
  opacity: 1 !important;
}

/* Supprimer le triangle - plus nécessaire */
#success-message:before {
  display: none !important;
}

/* S'assurer que le conteneur parent a position relative pour le message de succès absolu */
.inline-newsletter,
#sib-form-container,
#sib-form {
  position: relative !important;
}

/* Repositionner le captcha hors du flux pour éviter les déformations */
.sib-captcha.sib-form-block {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 0.5rem !important;
  z-index: 10 !important;
}

/* S'assurer que le conteneur parent a position relative */
.inline-newsletter,
#sib-form-container {
  position: relative !important;
}

/* Badge d'erreur flottant qui tombe de l'input */
.entry__error.entry__error--primary {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  max-width: 364px !important;
  width: auto !important;
  min-width: 200px !important;
  box-sizing: border-box !important;
  font-size: 0.875rem !important;
  color: #ffffff !important;
  background: #ef4444 !important;
  border: 1px solid #dc2626 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  margin-top: 4px !important;
  word-wrap: break-word !important;
  z-index: 20 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
  transform: translateY(-10px) !important;
  opacity: 0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
}

/* Badge d'erreur visible - animation de chute */
.entry__error.entry__error--primary[style*='block'] {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Petit triangle pointant vers l'input */
.entry__error.entry__error--primary:before {
  content: '' !important;
  position: absolute !important;
  top: -4px !important;
  left: 16px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-bottom: 4px solid #ef4444 !important;
}

/* Assurer que le conteneur input a position relative */
.sib-input .form__entry {
  position: relative !important;
}

#sib-container {
  transition: opacity 0.3s ease;
  background: transparent !important;
  border: none !important;
  max-width: none !important;
  padding: 0 !important;
}

#sib-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

/* Style pour l'input email Brevo */
#sib-container .input {
  font-family: var(--font-primary) !important;
  padding: 13px 16px !important;
  height: 50px !important;
  border: 1px solid var(--color-border-gray) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: var(--color-black) !important;
  background: #ffffff !important;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
  outline: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  margin: 0 !important;
}

#sib-container .input:focus {
  border-color: rgb(var(--gold-pils-500)) !important;
  box-shadow: 0 0 0 3px rgba(226, 191, 144, 0.1) !important;
}

#sib-container .input::placeholder {
  color: #6b7280 !important;
  font-family: var(--font-primary) !important;
}

/* Style pour le bouton Brevo */
.sib-form-block__button {
  font-family: var(--font-primary) !important;
  padding: 13px 32px 13px 20px !important;
  height: 50px !important;
  background: var(--gradient-gold-vertical) !important;
  color: rgb(var(--gold-pils-950)) !important;
  border: 2px solid var(--color-button-border) !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  outline: none !important;
  position: relative !important;
  white-space: nowrap !important;
  margin: 0 !important;
  box-shadow: 0 4px 15px rgba(226, 191, 144, 0.4) !important;
}

.sib-form-block__button:hover {
  box-shadow: 0 6px 25px rgba(226, 191, 144, 0.7) !important;
  transform: scale(1.03) !important;
}

.sib-form-block__button:active {
  box-shadow: 0 2px 8px rgba(226, 191, 144, 0.3) !important;
  transform: scale(0.98) !important;
}

/* État désactivé du bouton pendant le chargement des ressources */
.sib-form-block__button.disabled,
.sib-form-block__button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  background: #d1d5db !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
}

.sib-form-block__button.disabled:hover,
.sib-form-block__button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* État de chargement - conserver les couleurs originales */
.sib-form-block__button.loading {
  opacity: 0.9 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: var(--gradient-gold-vertical) !important;
  color: rgb(var(--gold-pils-950)) !important;
  border-color: var(--color-button-border) !important;
}

/* Bouton comme conteneur relatif pour l'icône absolue */
.sib-form-block__button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

/* Icône de chargement positionnée absolument pour éviter la déformation */
.sib-form-block__button .progress-indicator__icon {
  width: 16px !important;
  height: 16px !important;
  fill: white !important;
  display: none !important;
  animation: spin 1s linear infinite !important;
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Le texte du bouton */
.sib-form-block__button {
  color: rgb(var(--gold-pils-950)) !important;
}

/* Afficher l'icône pendant le chargement */
.sib-form-block__button.loading .progress-indicator__icon {
  display: inline-block !important;
}

/* Animation de rotation pour l'icône */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Masquer l'icône par défaut (classe Brevo) */
.sib-form-block__button .sib-hide-loader-icon {
  display: none !important;
}

/* Newsletter container */
.newsletter-container {
  margin-top: 3rem;
  position: relative;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.newsletter-subtitle {
  font-size: 1rem;
  color: var(--color-white);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* Loading and success states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.newsletter-feedback {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  z-index: 20;
  margin-top: 0.5rem;
}

.newsletter-feedback.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.newsletter-feedback.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Animation pour le feedback */
.newsletter-feedback {
  transform: translateY(-10px);
  opacity: 0;
}

.newsletter-feedback.show {
  transform: translateY(0);
  opacity: 1;
}

/* Masquer complètement le badge reCAPTCHA v3 */
.grecaptcha-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Footer */
.footer {
  margin-top: 2rem;
  text-align: center;
  opacity: 0.8;
}

.footer p {
  color: var(--color-white);
  font-size: 0.875rem;
  margin: 0;
}

.footer a {
  color: rgb(var(--gold-pils-500));
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: rgb(var(--gold-pils-400));
  text-decoration: underline;
}
