/* Conteneur principal */
.text-flip {
  position: relative;
  font-size: 1em;
  height: 1.2em;
  overflow: hidden;
  width: 800px; /* Ajuste cette largeur si nécessaire */
  text-align: left;
}

/* Style des mots */
.word {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: flex-start; /* Aligne à gauche */
  transition: opacity 1.0s ease, transform 0.5s ease;
  backface-visibility: hidden;
  transform-origin: center bottom; /* Point d'origine de la rotation */
  transform: rotateX(90deg); /* Commence hors du champ de vision */
  background: linear-gradient(90deg, #635DCD  0%,#F98F93  100%);
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Style pour le mot visible */
.word.visible {
  opacity: 1;
  transform: rotateX(0deg); /* Mot affiché */
}

@media (max-width: 768px) {
  .text-flip {
    text-align: center; /* Centre le texte sur mobile */
    width: 100%; /* Adapte la largeur du conteneur */
	height:200px;
  }
  
  .word {
    justify-content: center; /* Centre horizontalement les mots sur mobile */
  }
  
  #homepage_feature_api_terminal { 
	position:relative;
	width: 100%;
	display: flex;
	padding:0;
	margin:0 auto;
  }
  
  #homepage_feature_widget_image_container { 
	position:relative;
	width: 100%;
	margin-top:100px;
	display: flex;
	max-height:300px;
	text-align:center;
	align-items: center; /* Centre verticalement */
	justify-content: center;
  }
  
  #homepage_features h2{
	  margin-left:-5%;
  }
}


#homepage_hero_chat {
    width: 400px;
    padding: 20px;
}

#chat-form, #image-form {
	padding: 20px;
	display: flex;
    flex-direction: column;
	width: 100%;
    max-width: 400px; /* Limite la largeur du formulaire */
    text-align: left;
    justify-content: center;
}

#chat-form label, #image-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
	width: 100%;
	margin-bottom:-10px;
}

#chat-form input, #image-form input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #6366F1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#generated-article, #generated-image {
    display: none;
    padding: 10px;
    font-style: italic;
	padding-top: 20px;
}

#generate-btn, #generate-image-btn {
	margin-top:20px;
	width:60%;
	display: flex;
    align-items: center;
    justify-content: center;
}

/* Style de base pour les divs */



.animated-div {
  width: 250px;
  position: fixed; /* Nécessaire pour les animations de déplacement */
  animation: va-et-vient 2s ease-in-out infinite; /* Animation en continu */
  top: -150px; /* Ajuste la position verticale de départ */
  left: 10px; /* Ajuste la position horizontale de départ */
  
}

.animated-div2 {
  width: 250px;
  position: fixed; /* Nécessaire pour les animations de déplacement */
  animation: va-et-vient2 2s ease-in-out infinite; /* Animation en continu */
  top: -200px; /* Ajuste la position verticale de départ */
  left: 150px; /* Ajuste la position horizontale de départ */
}

/* Animation de va-et-vient */
@keyframes va-et-vient {
  0%, 100% {
    transform: translateX(0); /* Position de départ et d'arrivée */
  }
  50% {
    transform: translateX(10px); /* Légère translation horizontale */
  }
}
@keyframes va-et-vient2 {
  0%, 100% {
    transform: translateY(0); /* Position de départ et d'arrivée */
  }
  60% {
    transform: translateY(12px); /* Légère translation horizontale */
  }
}

 .faqs div > div:last-child {
      display: none; /* Cacher uniquement la réponse par défaut */
    }
    .faqs div.is-open > div:last-child {
      display: block; /* Afficher la réponse lorsque la question est active */
      margin-top: 5px;
    }
    .faqs div > div:first-child {
      font-weight: normal;
    }
    .faqs div.is-open > div:first-child {
      font-weight: bold;
    }
	
	
	.calendar-container {
      text-align: center;
      background-color: #ffffff;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 20px;
      max-width: 500px;
    }
    .month {
      font-size: 1.5em;
      font-weight: bold;
      margin-bottom: 10px;
      color: #333;
    }
    .days-of-week {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      margin-bottom: 10px;
      color: #666;
      font-weight: bold;
    }
    .calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
    }
    .calendar-day {
      background-color: #f9f9f9;
      border: 1px solid #ddd;
      padding: 10px;
      border-radius: 5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      height: 80px;
      position: relative;
    }
    .calendar-day .date {
      font-weight: bold;
      margin-bottom: 5px;
    }
    .icon {
      font-size: 1.5em;
    }
    .icon.wordpress::before {
      content: \"\\f19a\";
    }
    .icon.instagram::before {
      content: \"\\f16d\";
    }
    .icon.newsletter::before {
      content: \"✉️\";
    }
    .highlight {
      background-color: #e0f7fa;
    }


/* Styles spécifiques à la page tutoriel */
.tutorial {
	background-color: #f9f9f9;
}
.tutorial .page-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #4A90E2;
}

.tutorial .toc {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.tutorial .toc h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #4A90E2; /* Ligne sous le titre */
    padding-bottom: 5px;
}

.tutorial .toc ul {
    list-style: none;
    padding-left: 0;
	margin: 0;
	display: block !important;
}

.tutorial .toc ul li {
    margin-bottom: 10px;
	display: block !important;
}

.tutorial .toc ul li a {
    display: inline-block; /* Change de block à inline-block */
    color: #4A90E2;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: color 0.3s ease;
    width: auto; /* Permet au lien de s'ajuster à son contenu */
    position: relative; /* Pour positionner la bordure */
    padding-left: 10px; /* Espace pour la bordure */
}

.tutorial .toc ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.tutorial .toc ul li a:hover::before {
    background-color: #4A90E2; /* Couleur de la bordure au survol */
}

.tutorial .toc ul li a:hover {
    color: #4A90E2; /* Maintenir la couleur du texte */
}

.tutorial .toc ul li a i {
    margin-right: 8px;
    color: #4A90E2;
}

.tutorial-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 40px;
	scroll-margin-top: 120px;
}

.tutorial-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4A90E2;
    position: relative;
}

.tutorial-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #4A90E2;
    margin-top: 10px;
    border-radius: 2px;
}

.tutorial-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.tutorial-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.tutorial-section ol li {
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
}

.tutorial-section ol li strong {
    color: #333;
}

.tutorial-section img.tutorial-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tutorial-section .btn {
    display: inline-block;
    background-color: #4A90E2;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tutorial-section .btn:hover {
    background-color: #0073e6;
    transform: translateY(-2px);
}

/* FAQ Styles */
.faq-item {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 1em;
    color: #555;
}

/* Bouton Retour en Haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4A90E2;
    color: #fff;
    padding: 10px 10px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.6em;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #0073e6;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
    position: relative;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Le conteneur de la modale */
.modal2 {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond sombre transparent */
    justify-content: center;
    align-items: center;
}

/* Contenu de la modale */
.modal-content2 {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Boutons */
.modal-buttons2 {
    margin-top: 20px;
}

.modal-buttons2 .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 16px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-buttons2 .btn:hover {
    opacity: 0.8;
}

#confirmYes {
    background-color: #28a745;
    color: white;
}

#confirmNo {
    background-color: #dc3545;
    color: white;
}

/* Page Fonctionnalités */

.fonctionnalites .page-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.fonctionnalites a {
    background: linear-gradient(90deg, #635DCD 0%, #F98F93 100%);
	background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-decoration: none;
}

.fonctionnalites .intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

.fonctionnalite {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fonctionnalite-icon {
    flex: 0 0 60px;
    margin-right: 20px;
    color: #5bc0de;
    font-size: 2em;
    text-align: center;
}

.fonctionnalite-content {
    flex: 1;
}

.fonctionnalite-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.fonctionnalite-content p {
    color: #555;
    line-height: 1.6;
}