/* Palette de couleurs inspirée de Destinaslow */
:root {
  /* Couleurs principales */
  --color-primary: #92B5A8; /* Vert sauge */
  --color-secondary: #C46A3B;
  
  /* Couleurs d'arrière-plan */
  --color-bg-warm: #F2E6D9;
  --color-bg-white: #FFFFFF;
  
  /* Couleurs de texte */
  --color-text-primary: #22292E;
  --color-text-secondary: #5A6066;
  
  /* Couleurs d'accent */
  --color-accent-coral: #E27D6A;
  --color-accent-green: #8AA08B;
  --color-accent-gold: #E0B15B;
  
  /* Espacement */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Bordures arrondies */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Ombres */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Alice', serif;
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Brittany Signature', cursive;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
}

h2 {
  font-size: 2rem;
  color: var(--color-primary);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

/* Menu latéral */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-green) 100%);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.sidebar.open {
  left: 0;
}

.sidebar-content {
  padding: var(--spacing-lg) var(--spacing-md);
}

.sidebar-logo {
  color: white;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: var(--spacing-sm);
}

.sidebar-nav a {
  color: white;
  text-decoration: none;
  display: block;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: var(--spacing-md);
}

.sidebar-nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Bouton menu hamburger */
.menu-toggle {
  position: fixed;
  top: var(--spacing-md);
  left: var(--spacing-md);
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  position: relative;
  transition: all 0.3s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

.menu-toggle span::before {
  top: -8px;
}

.menu-toggle span::after {
  bottom: -8px;
}

.menu-toggle.active span {
  background-color: transparent;
}

.menu-toggle.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active span::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Container principal */
.main-container {
  margin-left: 0;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
}

/* Section Hero */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  filter: brightness(1.2) contrast(1.08);
  /* Fallback : ancienne photo pour "Qui suis-je" */
  background-image: url('/static/images/hero-background.webp');
}

/* Hero backgrounds - Responsive par défaut (mobile) */
.hero-home {
  background-image: url('/static/images/hero-home-400.webp');
}

.hero-voyage-sur-mesure {
  background-image: url('/static/images/hero-voyage-sur-mesure-400.webp?v=3');
}

.hero-formules {
  background-image: url('/static/images/hero-formules-400.webp');
}

.hero-destinations {
  background-image: url('/static/images/hero-destinations-400.webp');
}

.hero-faq {
  background-image: url('/static/images/hero-faq-400.webp');
}

.hero-blog {
  background-image: url('/static/images/hero-blog-400.webp');
}

.hero-contact {
  background-image: url('/static/images/hero-contact-400.webp');
}

/* Optimisation mobile : réduire la hauteur hero pour éviter le crop latéral */
@media (max-width: 767px) {
  .hero {
    min-height: 40vh !important;
    background-position: center center !important;
    background-size: cover !important;
    padding: 2.5rem 1.5rem !important;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
}

/* Tablet (800px) */
@media (min-width: 768px) {
  .hero-home {
    background-image: url('/static/images/hero-home-800.webp');
  }
  
  .hero-voyage-sur-mesure {
    background-image: url('/static/images/hero-voyage-sur-mesure-800.webp?v=3');
  }
  
  .hero-formules {
    background-image: url('/static/images/hero-formules-800.webp');
  }
  
  .hero-destinations {
    background-image: url('/static/images/hero-destinations-800.webp');
  }
  
  .hero-faq {
    background-image: url('/static/images/hero-faq-800.webp');
  }
  
  .hero-blog {
    background-image: url('/static/images/hero-blog-800.webp');
  }
  
  .hero-contact {
    background-image: url('/static/images/hero-contact-800.webp');
  }
}

/* Desktop (1200px) */
@media (min-width: 1200px) {
  .hero-home {
    background-image: url('/static/images/hero-home-1200.webp');
  }
  
  .hero-voyage-sur-mesure {
    background-image: url('/static/images/hero-voyage-sur-mesure-1200.webp?v=3');
  }
  
  .hero-formules {
    background-image: url('/static/images/hero-formules-1200.webp');
  }
  
  .hero-destinations {
    background-image: url('/static/images/hero-destinations-1200.webp');
  }
  
  .hero-faq {
    background-image: url('/static/images/hero-faq-1200.webp');
  }
  
  .hero-blog {
    background-image: url('/static/images/hero-blog-1200.webp');
  }
  
  .hero-contact {
    background-image: url('/static/images/hero-contact-1200.webp');
  }
}

/* Overlay sombre pour lisibilité */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Texte au-dessus de l'overlay */
.hero * {
  position: relative;
  z-index: 2;
  color: white !important;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  color: white !important;
  font-weight: normal;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: white !important;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1.2s ease;
}

/* Titre et sous-titre en noir sur la homepage uniquement */
/* On cible le hero qui contient le bouton "Je crée mon voyage" */
.hero-homepage .hero-title,
.hero-homepage .hero-subtitle {
  color: #000000 !important;
}

/* Sections */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-warm {
  background-color: var(--color-bg-warm);
}

/* Grille des formules */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}


.package-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.package-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.package-content {
  padding: var(--spacing-md);
}

.package-name {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.package-duration {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.package-description {
  margin-bottom: var(--spacing-md);
}

.package-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-bg-warm);
}

.price-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-secondary);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #7a9b8e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #a85830;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Section À propos */
.about-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-content {
  padding: var(--spacing-md);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: white;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
  }
}




/* ============================================
   CHATBOT WIDGET
   ============================================ */

/* Bouton flottant du chatbot */
.chat-widget-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-green) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: chatPulse 2s infinite;
}

.chat-widget-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(146, 181, 168, 0.4);
}

@keyframes chatPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(146, 181, 168, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(146, 181, 168, 0);
  }
}

/* Fenêtre du chatbot */
.chat-widget-window {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 400px;
  height: 550px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transition: all 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.chat-widget-hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

/* Header du chat */
.chat-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-green) 100%);
  color: white;
  padding: 1.2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.chat-status {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Montserrat', sans-serif;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.chat-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fafafa;
}

.chat-message {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'Alice', serif;
}

.chat-message-bot {
  background: linear-gradient(135deg, rgba(146, 181, 168, 0.15) 0%, rgba(138, 160, 139, 0.15) 100%);
  align-self: flex-start;
  color: var(--color-text-primary);
  border-left: 3px solid var(--color-primary);
}

.chat-message-user {
  background-color: #e8e8e8;
  align-self: flex-end;
  color: var(--color-text-primary);
  margin-left: auto;
}

/* Input zone */
.chat-input-container {
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
  background-color: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--color-bg-warm);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Alice', serif;
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.chat-send-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-green) 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive chatbot */
@media (max-width: 768px) {
  .chat-widget-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    left: 1rem;
    height: 500px;
  }
  
  .chat-widget-button {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}




/* ============================================
   PAGE DESTINATIONS
   ============================================ */

.destinations-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.destination-continent {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.destination-continent:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.continent-title {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bg-warm);
}

.countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.country-tag {
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, #f5ede3 100%);
  color: var(--color-text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Alice', serif;
  transition: all 0.3s ease;
  border: 1px solid var(--color-primary);
}

.country-tag:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-green) 100%);
  color: white;
  transform: scale(1.05);
  cursor: pointer;
}

/* Responsive destinations */
@media (max-width: 768px) {
  .destinations-grid {
    gap: 1.5rem;
  }
  
  .destination-continent {
    padding: 1.5rem;
  }
  
  .continent-title {
    font-size: 1.5rem;
  }
  
  .country-tag {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

/* Effet hover sur les cartes d'étapes */
.etape-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* ============================================
   RESPONSIVE - Section 4 étapes
   ============================================ */

/* Tablette et petits écrans desktop (max 1024px) : 2 colonnes */
@media (max-width: 1024px) {
  .etapes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* Mobile (max 768px) : 1 colonne */
@media (max-width: 768px) {
  .etapes-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Ajustement padding section sur mobile */
  .etapes-grid {
    padding: 0 1rem;
  }
}

/* ============================================
   RESPONSIVE - Section "Les petits plus sur devis"
   ============================================ */

/* Desktop : Forcer 3 colonnes alignées */
@media (min-width: 769px) {
  .petits-plus-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile (max 768px) : 1 colonne */
@media (max-width: 768px) {
  .petits-plus-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   CAROUSEL ARTICLES RÉCENTS
   ============================================ */

.blog-carousel-container {
  position: relative;
  padding: 0 3rem;
}

.blog-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.blog-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.blog-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  scroll-snap-align: start;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-card-content {
  padding: 1.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  background: var(--color-accent-green);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
  .blog-card {
    flex: 0 0 calc(50% - 1rem);
  }
  
  .blog-carousel-container {
    padding: 0 2.5rem;
  }
}

@media (max-width: 768px) {
  .blog-card {
    flex: 0 0 85%;
  }
  
  .blog-carousel-container {
    padding: 0 2rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-btn-prev {
    left: -5px;
  }
  
  .carousel-btn-next {
    right: -5px;
  }
}

/* ============================================
   FORMULAIRE MODERNE - Demande de devis
   ============================================ */

/* Groupes de champs */
.form-group {
  margin-bottom: 1.75rem;
}

/* Labels modernes */
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

/* Inputs et selects - Design moderne */
.form-input,
.form-select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: 'Alice', serif;
  color: var(--color-text-primary);
  background-color: #FAFAFA;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  outline: none;
  line-height: 1.5;
}

/* Placeholder moderne */
.form-input::placeholder,
.form-select::placeholder {
  color: #9CA3AF;
  font-size: 0.95rem;
}

/* Focus state - Bordure turquoise */
.form-input:focus,
.form-select:focus {
  background-color: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(146, 181, 168, 0.1);
  transform: translateY(-1px);
}

/* Hover state */
.form-input:hover,
.form-select:hover {
  border-color: #D1D5DB;
}

/* Select - Style moderne */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2392B5A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
  padding-right: 3rem;
  cursor: pointer;
}

/* Textarea moderne */
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: 'Alice', serif;
  color: var(--color-text-primary);
  background-color: #FAFAFA;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  outline: none;
  line-height: 1.6;
  resize: vertical;
  min-height: 140px;
}

.form-textarea::placeholder {
  color: #9CA3AF;
  font-size: 0.95rem;
}

.form-textarea:focus {
  background-color: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(146, 181, 168, 0.1);
}

.form-textarea:hover {
  border-color: #D1D5DB;
}

/* Boutons du formulaire multi-étapes */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  gap: 1rem;
}

.btn-form-prev,
.btn-form-next {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-form-prev {
  background-color: #F3F4F6;
  color: var(--color-text-secondary);
}

.btn-form-prev:hover {
  background-color: #E5E7EB;
  transform: translateX(-2px);
}

.btn-form-next {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(146, 181, 168, 0.3);
}

.btn-form-next:hover {
  background-color: #7FA193;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(146, 181, 168, 0.4);
}

/* Input avec icône (optionnel) */
.form-input-icon-wrapper {
  position: relative;
}

.form-input-icon-wrapper .form-input {
  padding-left: 3rem;
}

.form-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* Grid pour inputs côte à côte */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* États de validation (optionnel) */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #EF4444;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
  border-color: #10B981;
}

/* Message d'aide */
.form-help-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.875rem 1rem;
    font-size: 16px; /* Évite le zoom sur iOS */
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .btn-form-prev,
  .btn-form-next {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   FAQ - Accordion moderne
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-family: 'Brittany Signature', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  background: white;
  transition: background-color 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background-color: rgba(146, 181, 168, 0.05);
}

.faq-icon {
  font-size: 1rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  background: #FAFAFA;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 1.5rem;
}

.faq-answer p {
  margin: 0 0 1rem 0;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0.5rem 0 1rem 0;
  padding-left: 1.5rem;
}

.faq-answer li {
  margin: 0.5rem 0;
  line-height: 1.8;
  color: var(--color-text-primary);
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-question {
    font-size: 1.1rem;
    padding: 1.25rem;
  }
  
  .faq-answer {
    padding: 0 1.25rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 1.25rem;
  }
}

