* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
  }  body {
    background-color: white;
    color: #122954;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 1.5rem;
  }
  
  .container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
  }
  
  h1 {
    margin-bottom: 2rem;
    color: #AD833c;
  }
  
  .form-group {
    margin-bottom: 1rem;
    text-align: left;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #122954;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
  }
  
  button {
    background-color: #AD833c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
  }

  /* Bouton itinéraire (lien stylisé) */
  .btn-itineraire {
    display: inline-block;
    background-color: #f8f9fa;
    color: #122954 !important;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 6px #0001;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #dee2e6;
  }
  .btn-itineraire:hover, .btn-itineraire:focus {
    background-color: #e2e3e5;
    color: #AD833c !important;
    text-decoration: none;
    border-color: #AD833c;
  }
  
  button:hover {
    background-color: #d6a248;
  }
  
  .hidden {
    display: none;
  }
  
  #error-message {
    color: #AD833c;
    margin-top: 1rem;
    font-weight: bold;
  }
  
    .spinner {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .spinner-border {
    position: absolute;
    top: 0; left: 0;
    width: 150px;
    height: 150px;
    border: 8px solid #AD833c;
    border-radius: 50%;
    border-top: 8px solid #d6a248;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
    }

    .spinner-logo {
    position: absolute;
    width: 120px;
    height: 120px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    animation: none;
    z-index: 1;
    }

    @keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
    }
  
  #success-container {
    font-size: 1.2rem;
    font-weight: bold;
  }

  #loading-message {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .label-with-tooltip {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #122954;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  user-select: none;
  vertical-align: middle;
  position: relative;
  top: -4px;
}

.tooltip-icon:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 109, 228, 0.3);
}

.tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: white;
  color: #122954;
  text-align: center;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #122954;
  font-weight: normal;
  font-size: 14px;
}

/* Ajustements mobile pour la tooltip */
@media (max-width: 768px) {
  .tooltip-text {
    width: 240px;
    left: -200px;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .tooltip-text {
    width: 220px;
    left: -180px;
    font-size: 13px;
  }
}

/* Supprimer la flèche de la tooltip */
.tooltip-text::after {
  display: none;
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2em;
}

.logo-mariage {
  max-width: 110px;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .logo-mariage {
    max-width: 70px;
  }
  .container {
    padding: 1.2rem 6px 1.2rem 6px;
  }
}

@media (max-width: 400px) {
  .logo-mariage {
    max-width: 60px;
    width: 36vw;
    min-width: 40px;
  }
}

.bottom-center-buttons {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.bottom-center-buttons button {
  /* Hérite du style global button */
  border-radius: 4px; /* même arrondi que le bouton principal */
  margin-top: 0;      /* enlève le margin-top pour l'alignement horizontal */
}

.bottom-center-buttons button:hover,
.bottom-center-buttons button:focus {
  background: #d6a248;
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

.button-row {
  display: flex;
  gap: 10px;
}

.notif-info {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 12px auto;
  max-width: 400px;
  text-align: center;
  font-size: 1.1em;
  box-shadow: 0 2px 8px #0001;
}

#notif-unsubscribe {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 12px 20px;
  display: none;
  white-space: nowrap;
  font-size: 0.9rem;
  min-width: 200px;
  text-align: center;
}

/* Amélioration pour mobile */
@media (max-width: 768px) {
  #notif-unsubscribe {
    bottom: 80px;
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    min-width: auto;
    max-width: calc(100vw - 20px);
    padding: 14px 16px;
    font-size: 1rem;
  }
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden { display: none; }
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 90vw;
  max-height: 90%; /* Limite la hauteur */
  overflow-y: auto; /* Ajoute le scroll vertical */
}
.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

#recaptcha-container
{
  transform: scale(0.77);
  -webkit-transform: scale(0.77);
  transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
}
.g-recaptcha-bubble-arrow
{
  display: none;
}
.g-recaptcha-bubble-arrow + div
{
  position: fixed !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}


 /* =================================
   RECAPTCHA MOBILE RESPONSIVENESS
   ================================= */

/* Styles mobiles pour reCAPTCHA - Ne s'appliquent que sur mobile */
@media (max-width: 768px) {
  /* Wrapper du reCAPTCHA initial */
  .g-recaptcha {
    transform: scale(0.9) !important;
    transform-origin: 0 0 !important;
    margin-bottom: -8px !important;
  }
  
  /* Conteneur blanc autour du captcha */
  .form-group div[style*="background-color: white"] {
    padding: 5px !important;
    border-radius: 6px !important;
  }
  
  /* Cibler spécifiquement les popups de challenge Google avec z-index très élevé */
  body > div[style*="position: fixed"][style*="z-index: 2000000000"] {
    max-width: 95vw !important;
    left: 2.5vw !important;
    right: 2.5vw !important;
    margin: 0 !important;
  }
  
  /* Popups de challenge avec largeur fixe 410px */
  body > div[style*="width: 410px"] {
    width: 95vw !important;
    max-width: 95vw !important;
    left: 2.5vw !important;
    margin-left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  
  /* Overlay semi-transparent des popups */
  body > div[style*="background-color: rgba(0, 0, 0, 0.5)"] {
    background-color: rgba(0, 0, 0, 0.7) !important;
  }
  
  /* iframes des challenges */
  iframe[src*="recaptcha"][src*="bframe"] {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Styles pour très petits écrans */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.8) !important;
    transform-origin: 0 0 !important;
    margin-bottom: -12px !important;
  }
  
  .form-group div[style*="background-color: white"] {
    padding: 3px !important;
  }
  
  /* Popups encore plus petits sur très petits écrans */
  body > div[style*="position: fixed"][style*="z-index: 2000000000"],
  body > div[style*="width: 410px"] {
    width: 90vw !important;
    max-width: 90vw !important;
    left: 5vw !important;
    right: 5vw !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
  
  /* Réduire la taille des iframes sur petits écrans */
  iframe[src*="recaptcha"][src*="bframe"] {
    transform: scale(0.9) !important;
    transform-origin: top left !important;
  }
}

/***********************
** FIN CAPTCHA le bordel...
********************/

 /* Barres de notification en haut de la page */
.notification-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-size: 14px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  line-height: 1.4;
  min-height: 42px; /* Hauteur minimale fixe */
}

.notification-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Positionnement spécifique par classe pour éviter les confusions */
.notification-bar.install-bar {
  top: 0; /* Par défaut, en haut si seule */
  z-index: 1000;
}

.notification-bar.notif-bar {
  top: 0; /* Par défaut, en haut si seule */
  z-index: 1000;
}

/* Quand les deux barres sont présentes, ajuster les positions */
body.two-notification-bars-visible .notification-bar.install-bar {
  top: 42px; /* Barre d'installation (texte long) en bas quand les deux sont présentes */
}

body.two-notification-bars-visible .notification-bar.notif-bar {
  top: 0; /* Barre de notifications (texte court) en haut quand les deux sont présentes */
}

.notification-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 10px;
}

.notification-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Styles pour le contenu HTML dans les barres de notification */
.notification-text strong {
  font-weight: 600;
  display: inline;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  flex-shrink: 0;
  margin-top: -1px;
}

.notification-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Couleurs spécifiques pour chaque type de barre - toutes en bleu pour cohérence */
.install-bar {
  background: linear-gradient(135deg, #122954 0%, #1a3a6b 100%);
}

.notif-bar {
  background: linear-gradient(135deg, #122954 0%, #1a3a6b 100%);
}

/* Ajustement du body quand les barres sont visibles */
body.notification-bar-visible {
  padding-top: calc(1.5rem + 42px);
}

body.two-notification-bars-visible {
  padding-top: calc(1.5rem + 84px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .notification-bar {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 38px;
    box-sizing: border-box;
    overflow: hidden;
  }  /* Quand les deux barres sont présentes sur mobile, ajuster les positions */
  body.two-notification-bars-visible .notification-bar.install-bar {
    top: 38px; /* Barre d'installation (texte long) en bas pour mobile quand les deux sont présentes */
  }
  body.two-notification-bars-visible .notification-bar.notif-bar {
    top: 0; /* Barre de notifications (texte court) en haut pour mobile quand les deux sont présentes */
  }
  
  .notification-content {
    gap: 8px;
    align-items: flex-start;
    min-height: 22px;
  }
  
  .notification-icon {
    font-size: 16px;
    margin-top: 1px;
  }
  
  .notification-text {
    font-size: 13px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  
  .notification-text strong {
    font-weight: 600;
    white-space: nowrap;
  }
  
  .notification-close {
    width: 22px;
    height: 22px;
    font-size: 18px;
    margin-top: -1px;
  }
  
  body.notification-bar-visible {
    padding-top: calc(1.5rem + 38px);
  }
  
  body.two-notification-bars-visible {
    padding-top: calc(1.5rem + 76px);
  }
}

@media (max-width: 480px) {
  .notification-bar {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 34px;
    box-sizing: border-box;
    overflow: hidden;
  }  /* Quand les deux barres sont présentes sur petit mobile, ajuster les positions */
  body.two-notification-bars-visible .notification-bar.install-bar {
    top: 34px; /* Barre d'installation (texte long) en bas pour petit mobile quand les deux sont présentes */
  }
  body.two-notification-bars-visible .notification-bar.notif-bar {
    top: 0; /* Barre de notifications (texte court) en haut pour petit mobile quand les deux sont présentes */
  }
  
  .notification-content {
    gap: 6px;
    align-items: flex-start;
    min-height: 22px;
  }
  
  .notification-text {
    font-size: 12px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  
  .notification-text strong {
    font-weight: 600;
    white-space: nowrap;
  }
  
  .notification-icon {
    margin-top: 1px;
  }
  
  .notification-close {
    margin-top: -1px;
  }
  
  body.notification-bar-visible {
    padding-top: calc(1.5rem + 34px);
  }
    body.two-notification-bars-visible {
    padding-top: calc(1.5rem + 68px);
  }
}

/* Styles pour l'encart RGPD compact */
.rgpd-notice-compact {
  /* Mobile first - styles compacts */
  font-size: 0.75em !important;
  padding: 8px !important;
  margin: 10px 0 5px 0 !important;
  line-height: 1.2 !important;
}

.rgpd-notice-compact p {
  margin: 0 !important;
  line-height: 1.2 !important;
}

.rgpd-notice-compact a {
  white-space: nowrap;
  display: inline-block;
  margin-top: 2px;
}

/* Pour les écrans plus grands */
@media (min-width: 480px) {
  .rgpd-notice-compact {
    font-size: 0.8em !important;
    padding: 10px !important;
    margin: 15px 0 10px 0 !important;
    line-height: 1.3 !important;
  }
  
  .rgpd-notice-compact p {
    line-height: 1.3 !important;
  }
  
  .rgpd-notice-compact a {
    margin-top: 0;
  }
}

/* Pour les écrans desktop */
@media (min-width: 768px) {
  .rgpd-notice-compact {
    font-size: 0.85em !important;
    padding: 12px !important;
    margin: 20px 0 15px 0 !important;
  }
}
