/* Met un peu d’espace autour du form */
form {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
/* Styles personnalisés pour les boutons Auth0 */
#auth0-login-btn, #auth0-logout-btn {
  padding: 0.25rem 0.75rem;
  margin: 0 0.5rem;
  border-radius: 4px;
}

#auth0-login-btn {
  background-color: #7f569b;
  border-color: #007bff;
  color: white;
}

#auth0-login-btn:hover {
  background-color: #e31ecc73;
  border-color: #dbdee1;
}


/* Styles pour le bouton de déconnexion avec nom d'utilisateur */
#auth0-logout-btn {
  background-color: #7f569b;
  border-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
}
#auth0-logout-btn:hover {
  background-color: #e31ecc73;
  border-color: #dbdee1;
}
#auth0-logout-btn .user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 5px;
  font-weight: bold;
}

#auth0-logout-btn .logout-text {
  margin-left: 5px;
}

@media (max-width: 767.98px) {
  #auth0-logout-btn .user-name {
    max-width: none;
  }
}
/* keyframes pour faire passer l’opacité de 0 à 1 */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* par défaut, les petites lignes sont cachées */
.animated-icon .fade-line {
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.2s;
  animation-fill-mode: forwards;
}

/* on répartit les délais pour reproduire ton stagger */
.animated-icon .fade-line:nth-of-type(1) { animation-delay: 0.15s; }
.animated-icon .fade-line:nth-of-type(2) { animation-delay: 0.30s; }
.animated-icon .fade-line:nth-of-type(3) { animation-delay: 0.45s; }
.animated-icon .fade-line:nth-of-type(4) { animation-delay: 0.60s; }

/* optionnel : relancer l’anim au survol */
.animated-icon:hover .fade-line {
  animation-name: fadeIn;
}
/* Commun à toutes les icônes */
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0.5rem;
  color: inherit;
}
.icon svg {
  display: block;
}

/* 1) Telescope icon : incline le scope */
@keyframes scope-swing {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}
.telescope-icon .scope {
  transform-origin: 12px 13px;
  animation: scope-swing 1s ease-in-out infinite;
}

/* 2) Dollar icon : trace le signe en deux temps */
@keyframes draw-main {
  from { stroke-dashoffset: 100%; }
  to   { stroke-dashoffset:   0%; }
}
@keyframes draw-sec {
  from { stroke-dashoffset: 100%; }
  to   { stroke-dashoffset:   0%; }
}
.dollar-icon .dollar-main,
.dollar-icon .dollar-sec {
  stroke-dasharray: 100%;
  stroke-dashoffset: 100%;
}
.dollar-icon .dollar-main {
  animation: draw-main 0.6s ease forwards;
}
.dollar-icon .dollar-sec {
  animation: draw-sec 0.6s ease forwards 0.5s;
}

/* 3) Chat icon : clignote les trois points */
@keyframes chat-blink {
  0%, 20%, 100% { opacity: 1; }
  10%, 30%      { opacity: 0.2; }
}
.chat-icon .chat-dot:nth-of-type(1) { animation: chat-blink 1.5s infinite 0s; }
.chat-icon .chat-dot:nth-of-type(2) { animation: chat-blink 1.5s infinite 0.2s; }
.chat-icon .chat-dot:nth-of-type(3) { animation: chat-blink 1.5s infinite 0.4s; }
/* Position fixe en bas‑gauche */
.contact-floating {
  position: fixed;
  bottom: 1.25rem;   /* 20 px */
  left: 1.25rem;
  z-index: 1050;     /* au‑dessus du contenu */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 50%;
  background: #966dd5;          /* violet de ta charte */
  color: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0,0,0,.35);
}

/* Animation "tap‑tap" des trois points */
@keyframes chat-blink {
  0%, 20%, 100% { opacity: 1; }
  10%, 30%      { opacity: 0.2; }
}
.contact-floating .chat-dot:nth-of-type(1){animation: chat-blink 1.5s infinite 0s;}
.contact-floating .chat-dot:nth-of-type(2){animation: chat-blink 1.5s infinite .2s;}
.contact-floating .chat-dot:nth-of-type(3){animation: chat-blink 1.5s infinite .4s;}

/* Option : masquer sur très petits écrans (<= 360 px) */
@media (max-width: 360px){
  .contact-floating{display:none;}
}

/* Language selector styling */
#lang-select {
  margin: 0.5rem;
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 4px;
  padding: 0.25rem;
}
#lang-select option { color: #000; }

/* Responsive container for embedded iframes */
.embed-container {
  position: relative;
  height: 0;
  padding-bottom: 75%;
  overflow: hidden;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 600px) {
  .embed-container {
    padding-bottom: 120%;
  }
}
