/* ==========================================================================
   FICHES CSE — VUE AFFICHE PREMIUM
   Structure compatible avec affiche.php actuel
   ========================================================================== */

/* ==========================================================================
   1. CONTENEUR PRINCIPAL
   ========================================================================== */

.cse-prestation-affiche {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
}

/* ==========================================================================
   2. MEDIA 16:9
   ========================================================================== */

.cse-prestation-affiche-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 24px;
}

.cse-prestation-affiche-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   3. BADGE STATUT
   ========================================================================== */

.cse-prestation-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 16px 0 26px;
  padding: 20px 26px;
  border-radius: 18px;
  font-family: "Open Sans", Arial, sans-serif;
  text-align: left;
  gap: 18px;
  box-sizing: border-box;
}

/* États */

.cse-prestation-badge.cse-ouvert {
  background: rgba(111, 210, 45, 0.88);
}

.cse-prestation-badge.cse-prochainement {
  background: #2b74d8;
}

.cse-prestation-badge.cse-ferme {
  background: rgba(255, 0, 34, 0.78);
}

/* Bloc gauche */

.cse-prestation-badge-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cse-prestation-badge-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.cse-prestation-badge-meta {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
}

/* Bloc droit */

.cse-prestation-badge-right {
  flex: 0 0 auto;
}

/* Bouton badge */

.cse-prestation-badge-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #353535;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 14px 28px;
  padding-right: 42px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
  white-space: nowrap;
}

.cse-prestation-badge-btn::after {
  content: "›";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  font-size: 1.25em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cse-prestation-badge-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.cse-prestation-badge-btn:hover {
  background: #1f1f1f;
  color: #ffffff;
}

.cse-prestation-badge-btn.disabled {
  background: #d1d5db;
  color: #555555;
  cursor: not-allowed;
  pointer-events: none;
}
.cse-prestation-badge-info {
  font-family: var(--pp-font-text);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
}
/* ==========================================================================
   4. TITRE PRINCIPAL
   ========================================================================== */

.cse-prestation-affiche-title {
  margin: 0 0 18px;
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2937;
}

/* ==========================================================================
   5. ACTIONS PRINCIPALES
   ========================================================================== */

.cse-prestation-affiche-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

/* Boutons principaux */

.cse-prestation-affiche-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: #ff5c00;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 16px 46px 16px 28px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.cse-prestation-affiche-btn::after {
  content: "›";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  font-size: 1.3em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cse-prestation-affiche-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.cse-prestation-affiche-btn:hover {
  opacity: 0.95;
  color: #ffffff;
}

/* Variante outline */

.cse-prestation-affiche-btn.is-outline {
  background: transparent;
  color: #111827;
  border: 1px solid #111827;
}

.cse-prestation-affiche-btn.is-outline:hover {
  color: #111827;
  border-color: transparent;
}

/* Boutons désactivés */

.cse-prestation-affiche-btn.disabled {
  background: #d1d5db;
  color: #6b7280;
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.cse-prestation-affiche-btn.is-outline.disabled {
  background: #e5e7eb;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* ==========================================================================
   6. CIBLAGE CHAMPS INDIVIDUELLEMENT
   ========================================================================== */
   
   /* Champ Résumé */
   
   .cse-fiche-resume strong {
  color: #ff5c00;
}
   /* Grille tarifaire */
   
   .cse-grille-tarifs {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cse-grille-tarifs td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.cse-grille-label {
    font-weight: 500;
}

.cse-grille-value {
    text-align: right;
    font-weight: 600;
}

/* ========================================================================== 
   7. MULTI-PÉRIODES (2 COLONNES)
   ========================================================================== */

.cse-prestations-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Ajustement titre pour période */

.cse-prestation-affiche .cse-prestation-affiche-title.is-period {
  font-size: 22px;
  letter-spacing: 0.03em;
}

/* Responsive */

@media (max-width: 768px) {
  .cse-prestations-grid-2 {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   8. RESPONSIVE TABLETTE
   ========================================================================== */

@media (max-width: 768px) {
  .cse-prestation-affiche {
    padding: 0 12px;
  }

  .cse-prestation-badge {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 20px;
    padding: 22px 20px;
  }

  .cse-prestation-badge-left {
    align-items: center;
  }

  .cse-prestation-badge-title {
    font-size: 34px;
  }

  .cse-prestation-badge-meta {
    font-size: 16px;
  }

  .cse-prestation-badge-right {
    width: 100%;
  }

  .cse-prestation-badge-btn {
    width: 100%;
    text-align: center;
    padding-right: 36px;
  }

  .cse-prestation-affiche-title {
    font-size: 26px;
  }

  .cse-prestation-affiche-btn {
    padding: 14px 40px 14px 26px;
  }
}


/* ==========================================================================
   9. RESPONSIVE MOBILE
   ========================================================================== */

@media (max-width: 480px) {
  .cse-prestation-badge {
    margin: 14px 0 22px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .cse-prestation-badge-title {
    font-size: 28px;
  }

  .cse-prestation-badge-meta {
    font-size: 15px;
    line-height: 1.45;
  }

  .cse-prestation-affiche-title {
    font-size: 22px;
    letter-spacing: 0.03em;
  }

  .cse-prestation-affiche-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cse-prestation-affiche-btn {
    width: 100%;
    text-align: center;
    padding: 14px 44px 14px 24px;
  }

  .cse-prestation-affiche-btn::after {
    right: 18px;
  }
}

