/*
 Theme Name:   Phare Fitness
 Theme URI:    https://pharefitness.fr
 Description:  Child theme Phare Fitness — basé sur Kadence
 Author:       Phare Fitness
 Template:     kadence
 Version:      1.0.0
 Text Domain:  phare-fitness
*/

/* ─────────────────────────────────────────────────────────────────────────────
   VARIABLES DE MARQUE
   À mettre à jour quand le client fournit sa charte graphique
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Couleurs principales (placeholder — à remplacer) */
  --pf-primary:       #1a1a2e;   /* Bleu nuit */
  --pf-secondary:     #e94560;   /* Rouge/rose dynamique */
  --pf-accent:        #f5a623;   /* Or/soleil */
  --pf-light:         #f8f8f8;
  --pf-dark:          #1a1a1a;
  --pf-text:          #333333;

  /* Typographies (placeholder) */
  --pf-font-heading:  'Montserrat', sans-serif;
  --pf-font-body:     'Open Sans', sans-serif;

  /* Espacements */
  --pf-section-padding: 80px 0;
  --pf-border-radius:   8px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BASE
   ───────────────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--pf-font-body);
  color: var(--pf-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pf-font-heading);
  color: var(--pf-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BOUTONS CTA
   ───────────────────────────────────────────────────────────────────────────── */
.pf-btn-primary {
  background-color: var(--pf-secondary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--pf-border-radius);
  font-family: var(--pf-font-heading);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.1s ease;
}
.pf-btn-primary:hover {
  background-color: #c73652;
  transform: translateY(-2px);
  color: #fff;
}

.pf-btn-secondary {
  background-color: transparent;
  color: var(--pf-primary);
  border: 2px solid var(--pf-primary);
  padding: 12px 30px;
  border-radius: var(--pf-border-radius);
  font-family: var(--pf-font-heading);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.pf-btn-secondary:hover {
  background-color: var(--pf-primary);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────────────────── */
.pf-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--pf-primary) 0%, #16213e 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.pf-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.pf-hero p {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.pf-hero .pf-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARTES DE RUBRIQUES (teasers accueil)
   ───────────────────────────────────────────────────────────────────────────── */
.pf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: var(--pf-section-padding);
  max-width: 1100px;
  margin: 0 auto;
}

.pf-card {
  background: #fff;
  border-radius: var(--pf-border-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.pf-card .pf-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.pf-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.pf-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABLEAU DES TARIFS
   ───────────────────────────────────────────────────────────────────────────── */
.pf-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 40px auto;
}

.pf-pricing-card {
  background: #fff;
  border-radius: var(--pf-border-radius);
  padding: 40px 32px;
  text-align: center;
  border: 2px solid #eee;
  position: relative;
}
.pf-pricing-card.featured {
  border-color: var(--pf-secondary);
  transform: scale(1.02);
}
.pf-pricing-card .pf-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pf-secondary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.pf-pricing-card .pf-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pf-primary);
  font-family: var(--pf-font-heading);
}
.pf-pricing-card .pf-price sup {
  font-size: 1.5rem;
  vertical-align: top;
  margin-top: 8px;
}
.pf-pricing-card .pf-price-period {
  color: #888;
  font-size: 0.9rem;
}
.pf-pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}
.pf-pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 24px;
  position: relative;
}
.pf-pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pf-secondary);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ESPACE MEMBRE — DASHBOARD
   ───────────────────────────────────────────────────────────────────────────── */
.pf-member-header {
  background: linear-gradient(135deg, var(--pf-primary), #16213e);
  color: #fff;
  padding: 40px;
  border-radius: var(--pf-border-radius);
  margin-bottom: 32px;
}
.pf-member-header h2 {
  color: #fff;
  margin: 0 0 8px;
}
.pf-member-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pf-member-nav a {
  padding: 10px 20px;
  background: #f0f0f0;
  border-radius: 20px;
  text-decoration: none;
  color: var(--pf-dark);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.pf-member-nav a:hover,
.pf-member-nav a.active {
  background: var(--pf-primary);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   VIDÉOS — GRILLE
   ───────────────────────────────────────────────────────────────────────────── */
.pf-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.pf-video-item {
  background: #fff;
  border-radius: var(--pf-border-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pf-video-item .pf-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
}
.pf-video-item .pf-video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.pf-video-item .pf-video-info {
  padding: 16px;
}
.pf-video-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.pf-video-item .pf-video-meta {
  font-size: 0.8rem;
  color: #888;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pf-hero {
    min-height: 70vh;
    padding: 60px 20px;
  }
  .pf-cards {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .pf-pricing {
    grid-template-columns: 1fr;
  }
  .pf-pricing-card.featured {
    transform: none;
  }
  .pf-member-nav {
    flex-direction: column;
  }
}
