/* Styles principaux pour Sevrage Multitechnique */

:root {
  --primary: #4a7c59;
  --primary-dark: #3a6449;
  --secondary: #e8b44f;
  --accent: #6b9ac4;
  /* Couleur utilisée au survol des boutons outline */
  --accent-hover: #EB9666;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --amber-700: #b45309;
  --amber-800: #92400e;
  /* Hauteur estimée du header sticky — utilisée pour décaler les ancres */
  --header-offset: 4.5rem;
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
}

/* Conteneur principal */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 2.5rem;
  width: 2.5rem;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

nav a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.1) 0%, rgba(232, 180, 79, 0.1) 100%);
  padding: 5rem 1rem;
  text-align: center;
  /* Permettre au contenu en-dessous de se positionner au-dessus lors des animations */
  position: relative;
  z-index: 0;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h2 {
    font-size: 3.75rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.hero-features {
  max-width: 64rem;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
}

.feature-card .emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875em;
  text-align: center;
}

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

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

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

.btn-outline:hover {
  /* Fond coloré et texte blanc pour un effet plus visible */
  background-color: var(--accent-hover);
  color: var(--white);
  border-color: var(--accent-hover);
}

/* Sections */
section {
  padding: 5rem 1rem;
}

/* Assurer que certaines sections (ex: services) puissent se placer au-dessus du hero
   lors d'animations (cards qui glissent). Le header sticky garde son z-index élevé. */
#services {
  position: relative;
  z-index: 1;
  background-color: var(--white);
}

/* Empêche les titres de section d'être masqués par le header sticky
   (filet de sécurité pour les navigateurs qui supportent scroll-margin-top) */
section[id] {
  scroll-margin-top: var(--header-offset);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  /* Bordure uniforme pour que le haut et le bas soient identiques */
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem;
  text-align: center;
}

.card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 3rem;
  height: 3rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

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

.card-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.card-content li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.check-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* About Section */
.about-section {
  background-color: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-content h2 {
    font-size: 2.5rem;
  }
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--gray-200);
  color: var(--gray-700);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.about-image-section {
  text-align: center;
}

.profile-image {
  width: 16rem;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin: 0 auto 1rem;
  display: block;
}

.profile-info {
  margin: 1rem 0 1.5rem;
}

.profile-info p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.profile-info p:last-child {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.bienveillant-card {
  background-color: rgba(74, 124, 89, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.bienveillant-card svg {
  width: 4rem;
  height: 4rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.bienveillant-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.bienveillant-card p {
  color: var(--gray-600);
  margin: 0;
}

/* Testimonials */
.testimonial-card {
  text-align: center;
  padding: 1.5rem;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: #fbbf24;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--gray-900);
}

/* Tarifs Section */
.tarifs-section {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.tarifs-card {
  background-color: rgba(74, 124, 89, 0.05);
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.tarifs-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.tarifs-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.tarifs-card li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  color: var(--gray-700);
}

.tarifs-note {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 1rem;
}

/* Disclaimer */
.disclaimer {
  background-color: var(--amber-50);
  border-left: 4px solid var(--amber-400);
  padding: 3rem 1rem;
}

.disclaimer-content {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.disclaimer-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--amber-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.disclaimer-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--amber-800);
  margin-bottom: 0.5rem;
}

.disclaimer-text p {
  color: var(--amber-700);
  margin: 0;
}

/* Contact Section */
.contact-section {
  background-color: rgba(74, 124, 89, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.qr-code {
  width: 9rem;
  height: 8rem;
  margin-top: 1rem;
}

.horaires {
  margin-top: 2rem;
}

.horaires h4 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.horaires p {
  color: var(--gray-600);
  margin: 0.25rem 0;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Indicateur visuel pour les champs obligatoires */
.form-group.required label::after {
  content: " *";
  color: var(--amber-700);
  margin-left: 0.25rem;
  font-weight: 600;
}

/* Lorsque le champ est invalide, colorer le label et accentuer l'astérisque */
.form-group.field-invalid label {
  color: var(--amber-800);
}
.form-group.field-invalid label::after {
  color: var(--amber-800);
}

/* Inline field message (validation) */
.field-message {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--amber-800);
  min-height: 1rem; /* reserve space to avoid layout shift */
}

/* Input highlight when invalid */
.form-group.field-invalid input,
.form-group.field-invalid textarea,
.form-group.field-invalid select {
  border-color: var(--amber-700);
  box-shadow: 0 0 0 3px rgba(235, 150, 102, 0.08);
}

/* Banner de feedback (succès / erreur) */
.form-banner {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin: 1rem 0 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16,24,40,0.06);
}
.form-banner[hidden] { display: none; }
.form-banner.success {
  background-color: rgba(74,124,89,0.08);
  color: var(--primary);
  border: 1px solid rgba(74,124,89,0.18);
}
.form-banner.error {
  background-color: rgba(235,150,102,0.08);
  color: var(--amber-800);
  border: 1px solid rgba(235,150,102,0.18);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* reCAPTCHA styles */
.grecaptcha-badge {
  position: fixed !important;
  bottom: 14px !important;
  right: -186px !important;
  width: 256px !important;
  height: 60px !important;
  display: block !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1) !important;
  z-index: 1000;
}

/* État hover - slide in */
.grecaptcha-badge:hover {
  right: 0 !important;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2) !important;
}

/* Logo et iframe */
.grecaptcha-badge .grecaptcha-logo {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.grecaptcha-badge:hover .grecaptcha-logo {
  opacity: 1;
}

/* Masquer les éléments non nécessaires */
.grecaptcha-badge .grecaptcha-error,
.grecaptcha-badge textarea {
  display: none !important;
}

/* Ajustements mobile */
@media (max-width: 768px) {
  .grecaptcha-badge {
    bottom: 10px !important;
    right: -186px !important;
    transform: scale(0.85);
    transform-origin: right bottom;
  }
}

/* Ajustements spécifiques pour très petits écrans */
@media (max-width: 375px) {
  .grecaptcha-badge {
    right: -176px !important;
    transform: scale(0.75);
  }
  
  .grecaptcha-badge:hover,
  .grecaptcha-badge:active {
    right: 0 !important;
    transform: scale(0.75);
  }
}

/* Footer */
footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.footer-section p {
  color: var(--gray-400);
  margin: 0.5rem 0;
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.w-full {
  width: 100%;
}

/* Responsive */
@media (max-width: 767px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .about-content h2 {
    font-size: 1.75rem;
  }
}

