/* ===== CHEIK COACH — Styles ===== */
/* Palette dérivée de logos_documentation.md */

:root {
  --primary-blue: #5B8EC4;      /* Bleu assombri */
  --secondary-blue: #4A7AB0;    /* Bleu secondaire */
  --light-blue: #E8F0F8;
  --border-blue: #B8D4E8;
  --text: #1f2937;
  --text-muted: #6b7280;
  --radius: .75rem;
  --radius-full: 9999px;
}

/* === Background image === */
.bg {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  height: 65vh;
  background-image: url('../im/cheik-bg.webp'); /* Chemin relatif corrigé */
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.88);
  z-index: -1;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff; /* Pour éviter le fond transparent */
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 10; /* Header au-dessus du .bg */
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: .8rem 0;
}
.header .container {
  display: flex;
  justify-content: center; /* Centré */
  align-items: center;
  gap: 1rem;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
/* === Logo court (header) === */
.logo-img {
  width: 36px; /* Plus petit */
  height: 36px;
  object-fit: contain;
}

/* === Badge région === */
.region-badge {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* === Logo long (footer) === */
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
}
.footer-logo {
  width: 180px;
  height: auto;
}
.footer-text {
  font-size: .85rem;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}

.cta-reserver {
  background: var(--primary-blue);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
  z-index: 11; /* Au-dessus du header */
}
.cta-reserver:hover {
  background: var(--secondary-blue);
}

/* === Hero (photo à gauche) === */
.hero-grid {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-direction: row; /* Photo ← texte */
}
.hero-image {
  flex: 0 0 320px;
}
.photo-coach {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* === Cards spécialités === */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop : 2 rangées de 3 */
  gap: 1.2rem;
}
.cards-container {
  max-width: 900px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--primary-blue);
  font-size: 1rem;
}
.card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

/* === Footer === */
.footer {
  background: #fff;
  border-top: 1px solid var(--border-blue);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
}
.footer a {
  color: var(--primary-blue);
}

/* === A propos === */
.hero-apropos {
  margin-top: 1rem;
}
.apropos-section {
  padding: 3rem 0;
}
.apropos-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.apropos-block h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-blue);
}
.diplomes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.diplomes li {
  font-size: .95rem;
}

/* === Services coaching === */
.services-section {
  padding: 3rem 0;
}

/* === Tarifs === */
.hero-tarifs {
  text-align: center;
}
.tarifs-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: .5rem;
}
.tarifs-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.tarif-card {
  background: #fff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.tarif-card h3 {
  color: var(--primary-blue);
  margin-top: 0;
  font-family: 'Poppins', sans-serif;
}
.tarif-card .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: .5rem 0 1rem;
}
.tarif-card .price .small {
  font-size: .5em;
  color: var(--text-muted);
}
.tarif-card ul {
  list-style: none;
  padding: 0;
  font-size: .9rem;
}
.tarif-card ul li {
  margin-bottom: .3rem;
}
.tarifs-note {
  background: var(--light-blue);
  border-left: 4px solid var(--primary-blue);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
}

/* === Bouton retour === */
.btn-back-home-wrapper {
  text-align: center;
  margin-top: 2rem;
}

/* === Bouton Retour au site === */
.btn-back-home {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .8rem 1.6rem;
  background: var(--primary-blue);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(91, 142, 196, .4);
  transition: all .2s ease;
}
.btn-back-home:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(91, 142, 196, .5);
}
/* === RGPD === */
.rgpd-section {
  padding: 3rem 0;
}
.rgpd-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.rgpd-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-top: 0;
  margin-bottom: 1rem;
}
.rgpd-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.rgpd-content p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.rgpd-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}
.rgpd-list li {
  font-size: .95rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}
.rgpd-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
}
.contact-section {
  padding: 4rem 0;
  text-align: center;
}
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.contact-title-link h1 {
  cursor: pointer;
  transition: opacity .2s ease;
}
.contact-title-link:hover h1 {
  opacity: 0.7;
}

/* Style du h1 dans la section contact */
.contact-section h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: .5rem;
}
.contact-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.contact-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: 1rem;
}
.email-link {
  color: var(--primary-blue);
  font-weight: 600;
  word-break: break-all;
}

/* === Background image === */
.bg {
  position: fixed;
  top: 100px;       /* ↓ Baisse de 100px */
  left: 0;
  width: 100%;
  height: 70vh;
  background-image: url('../im/cheik-bg.webp');
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.9);
  z-index: -1;
}

.header-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.logo-img-mobile {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header-center {
  flex: 1;
  text-align: center;
}
.header-center .logo-text,
.header-center .region-badge {
  display: block;         /* Chaque span sur une ligne */
  text-align: center;
}

.region-badge {
  font-size: 0.75rem;
  display: block;
}

.cta-reserver {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  header.header {
    padding: 0.3rem 0.5rem !important; /* Encore plus compact */
  }
  .header-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem; /* Moins d'espace entre éléments */
  }
  .logo-img-mobile {
    width: 30px;
    height: 30px;
  }
  .header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column; /* Contrôle strict de la hauteur */
  }
  .header-center .logo-text,
  .header-center .region-badge {
    display: block;
    font-size: 0.7rem;      /* Plus petit */
    line-height: 1;         /* Pas d’espacement vertical */
    margin: 0;
    padding: 0;
  }
  header.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.3rem 0.5rem !important;
  }
  .header-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.3rem;
  }
  .logo-img-mobile {
    width: 30px;
    height: 30px;
  }
  .header-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  .header-center .logo-text,
  .header-center .region-badge {
    display: block;
    font-size: 0.7rem;
    line-height: 1;
    margin: 0;
    padding: 0;
  }
  .bg {
    top: 100px;
    height: 60vh;
    background-size: 60%;
    background-position: 35% center;
  }
  .hero-grid { flex-direction: column; text-align: center; }
  .hero-image { flex: 0 0 auto; }
  .photo-coach {
    max-width: 220px;
    border-radius: var(--radius);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.6rem; }
  .cta-group { justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .region-badge,
  .footer-text {
    font-size: .75rem;
    white-space: normal;
    text-align: center;
  }
  .logo-text { font-size: 1.1rem; }
}
