/* ===== Variables de couleurs et de typographie ===== */
:root {
  --azur-light: #87ceeb;
  --azur: #4682b4; /* Bleu principal du thème */
  --azur-dark: #2c4a6b;
  --blue: #1e90ff; /* Bleu plus vif pour accents et dégradés */
  --bg: #f0f8ff; /* Couleur de fond générale */
  --white: #ffffff; /* Fond des cartes, texte clair */
  --muted: #6a88a8; /* Texte discret, éléments secondaires */
  --max-width: 1100px;
  font-family: "Poppins", system-ui, sans-serif;
  
  /* Nouvelles couleurs pour les boutons de coachs */
  --coach-btn-bg: #e6f2fa; /* Fond des boutons coach inactifs */
  --coach-btn-border: #a2d2ee; /* Bordure des boutons coach inactifs */
  --coach-btn-text: var(--azur-dark); /* Texte des boutons coach inactifs */
  --coach-btn-selected-bg: #3c8dbc; /* Fond des boutons coach sélectionnés (un bleu distinct) */
  --coach-btn-selected-text: var(--white); /* Texte des boutons coach sélectionnés */
  --coach-btn-hover-bg: #cfe9fb; /* Fond au survol des boutons coach */
}

/* ===== Reset de base & Style général ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--azur-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ===== Conteneur principal & Sections ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

.section {
  padding: 40px 0;
}

.alt-bg {
  background: var(--white);
}

/* ===== Header / Hero ===== */
.hero {
  position: relative;
  background-image: linear-gradient(135deg, var(--azur-light), var(--blue));
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
}

.hero p.lead {
  margin-top: 10px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.logo svg {
  margin: 0 auto 15px;
  display: block;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Boutons d'appel à l'action dans l'en-tête */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

/* ===== Boutons ===== */
.btn-primary, .btn-secondary {
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: 0.3s;
  padding: 10px 16px;
}

/* Style de base pour TOUS les boutons principaux */
.btn-primary {
  background: var(--azur);
  color: var(--white);
  border: none;
  text-align: center;
}

/* Style STICKY appliqué UNIQUEMENT au bouton avec l'ID */
#bouton-hero-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  z-index: 1000;
}



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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  margin-left: 10px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.form-actions .btn-primary {
  margin-top: 0;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--azur);
  color: var(--azur);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: var(--azur-light);
  color: var(--azur-dark);
}


/* Style du bouton "Espace Coach" */
.fixed-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.fixed-top-right .btn-secondary {
    padding: 8px 12px;
    border: 1px solid var(--white);
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.fixed-top-right .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.4);
}


/* ===== Cartes (Services & Tarifs) ===== */
h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 600;
    color: var(--azur-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cards, .price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card, .price {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .price:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}
.card h3, .price h3 {
    color: var(--azur);
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.price p.big {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 10px;
}


/* ===== Images ===== */
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Style du calendrier d'affluence */
.affluence-graph-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ===== Formulaire de Réservation ===== */
.form {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 250px;
  font-weight: 500;
  color: var(--azur-dark);
}
.form input[type="text"], 
.form input[type="prenom"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="number"],
.form textarea {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  border: 1px solid var(--azur-light);
  border-radius: 8px;
  background: var(--bg);
  color: var(--azur-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-size: 1rem;
}
.form textarea {
  min-height: 120px;
  resize: vertical;
}
.form input:focus, .form textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}
.form .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.form .form-actions .btn-primary, .form .form-actions .btn-ghost {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Styles pour le sélecteur de coachs (boutons cliquables améliorés) */
#coachs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  border: 1px solid var(--azur-light);
  border-radius: 8px;
  padding: 15px;
  background-color: var(--bg);
}

#coachs-list input[type="checkbox"] {
  display: none;
}

#coachs-list label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid var(--coach-btn-border);
  border-radius: 25px;
  background-color: var(--coach-btn-bg);
  color: var(--coach-btn-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  flex: 0 1 auto;
  margin-top: 0;
  flex-direction: row;
  font-size: 0.95rem;
}

#coachs-list label:hover {
  background-color: var(--coach-btn-hover-bg);
  border-color: var(--azur);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#coachs-list input[type="checkbox"]:checked + label {
  background-color: var(--coach-btn-selected-bg);
  color: var(--coach-btn-selected-text);
  border-color: var(--coach-btn-selected-bg);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}


/* Style pour les paragraphes de conditions */
.data-privacy-notice {
  background-color: #e0f7fa;
  border-left: 5px solid var(--blue);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: var(--azur-dark);
}
.data-privacy-notice strong {
    color: var(--blue);
}

/* ===== Footer ===== */
.footer {
  background: var(--azur-dark);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}
.footer h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 25px auto;
    color: rgba(255,255,255,0.8);
}
.footer nav a {
    color: var(--azur-light);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { padding: 10px; }
  .container { padding: 15px; margin: 1rem auto; }
  .section { padding: 25px 0; }
  
  .hero {
    padding: 40px 15px;
  }
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    order: -1;
  }
  .hero h1 {
      font-size: 2rem;
  }
  .hero p.lead {
      font-size: 1rem;
  }
  .cta-row {
      flex-direction: column;
      gap: 10px;
  }
  .cta-row .btn-primary, .cta-row .btn-secondary {
      width: 100%;
      margin-left: 0;
  }
  
  .fixed-top-right {
      top: 10px;
      right: 10px;
  }

  h2 { font-size: 1.6rem; margin-bottom: 1rem; }

  .cards, .price-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .card, .price {
      padding: 20px;
  }

  .form .row {
    flex-direction: column;
    gap: 1rem;
  }
  .form label {
      min-width: unset;
  }
  .form input, .form textarea, .form select {
      padding: 0.75rem;
  }
  .form .form-actions {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }
  .form .form-actions .btn-primary, .form .form-actions .btn-ghost {
      width: 100%;
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
  }
    
  #coachs-list {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      padding: 10px;
      gap: 8px;
  }
  #coachs-list label {
      width: auto;
      font-size: 0.95rem;
      padding: 10px 18px;
      border-radius: 25px;
  }

  .data-privacy-notice {
      padding: 15px;
      margin-bottom: 20px;
  }
  .footer {
      padding: 20px 15px;
      margin-top: 40px;
  }
  .footer nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 20px;
  }
  .footer nav a {
      margin: 0;
  }
}

/* Alignement des titres de sections */
.section h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* Centre les éléments du header sur desktop */
@media (min-width: 769px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
  }
  .hero-text {
      margin: 0;
  }
  .hero-image {
      margin-left: auto;
  }
  .cta-row {
      justify-content: flex-start;
  }
}

/* Style pour la page de connexion */
.login-body {
  background: linear-gradient(135deg, var(--azur-light), var(--blue));
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.login-card {
  max-width: 400px;
  width: 100%;
  padding: 40px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.login-card h1 {
  color: var(--azur);
  border-bottom: 2px solid var(--azur-light);
  padding-bottom: 10px;
}

.login-form {
  margin-top: 20px;
}

.login-form label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--azur-dark);
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--azur-light);
  border-radius: 8px;
  background: #f9fdfd;
}

.login-form button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: var(--azur);
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.error-message {
  color: #f44336;
  margin-top: 15px;
}
/* Style pour la page de confirmation */
.confirmation-body {
  background: var(--azur);
  background: linear-gradient(135deg, var(--azur-light), var(--blue));
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.confirmation-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 600px;
  margin: auto;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.confirmation-card:hover {
  transform: scale(1.02);
}

.icon-success {
  color: var(--azur);
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--azur);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-border 1.5s infinite ease-in-out;
}

.icon-success svg {
  width: 40px;
  height: 40px;
}

.confirmation-card h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--azur-dark);
  margin-bottom: 10px;
}

.confirmation-card p {
  color: var(--muted);
  margin-bottom: 30px;
}

/* Animation pour l'icône */
@keyframes pulse-border {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
/* Cache les éléments avec la classe 'hidden' */
.hidden {
  display: none;
}
