/*
Theme Name: Hello Biz Child
Template: hello-biz
*/

.fake-galerie .galerie-item img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.fake-galerie .galerie-item img:hover {
  transform: scale(1.05); /* léger zoom */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* ombre plus marquée */
}

.cm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.cm-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.cm-thumb, .comedie-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cm-card:hover .cm-thumb,
.cm-card:hover .comedie-thumbnail {
    transform: scale(1.05);
}

/* Overlay pour le titre */
.cm-card .cm-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cm-card:hover .cm-title {
    opacity: 1;
}

/* Extrait discret sous l'overlay */
.cm-card p {
    display: none;
}

/* ===== STYLES POUR LA PAGE D'ACCUEIL "À LA UNE" ===== */

.featured-comedies-section {
    margin: 50px 0;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.comedies-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards des comédies sur la page d'accueil */
.comedy-card-home {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    position: relative;
}

.comedy-card-home:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.comedy-link-home {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.comedy-thumb-home {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.comedy-card-home:hover .comedy-thumb-home {
    transform: scale(1.1) !important;
}

/* Forcer le hover même si il y a des conflits */
.comedy-item:hover .comedy-card-home,
.comedy-card-home:hover,
[class*="comedy-card"]:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.comedy-item:hover .comedy-thumb-home,
.comedy-card-home:hover .comedy-thumb-home,
[class*="comedy-card"]:hover .comedy-thumb-home {
    transform: scale(1.1) !important;
}

/* Overlay - TOUJOURS VISIBLE avec dégradé - SUR L'IMAGE */
.comedy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 15px 20px;
    transform: translateY(0);
    border-radius: 0;
}

.comedy-title-home {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    text-align: left;
}

/* Catégorie - CENTRÉE ET BLANCHE */
.comedy-category {
    padding: 15px 20px 20px;
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #2d3748;
    text-align: center;
    border-radius: 0 0 16px 16px;
}

/* Animation de chargement */
.comedy-card-home {
    animation: fadeInUp 0.6s ease-out forwards;
}

.comedy-item:nth-child(1) .comedy-card-home {
    animation-delay: 0.1s;
}

.comedy-item:nth-child(2) .comedy-card-home {
    animation-delay: 0.2s;
}

.comedy-item:nth-child(3) .comedy-card-home {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .comedies-grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .comedy-thumb-home {
        height: 220px;
    }
    
    .comedy-title-home {
        font-size: 1.2rem;
    }
    
    .comedy-overlay {
        padding: 15px;
    }
    
    .cm-thumb, .comedie-thumbnail {
        height: 180px;
    }
    
    .cm-card .cm-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .featured-comedies-section {
        margin: 30px 0;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .comedy-thumb-home {
        height: 200px;
    }
    
    .comedy-title-home {
        font-size: 1.1rem;
    }
}

/* ====== Titre de la page ====== */
.archive-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
  color: #fff;
  animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Grille (4 colonnes centrées) ====== */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* max 4 colonnes */
  gap: 2rem;
  padding: 2rem;
  justify-items: center; /* centre les cartes dans chaque colonne */
}

/* Responsive : passe en 2 colonnes sur tablette, 1 sur mobile */
@media (max-width: 1024px) {
  .cm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cm-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Carte ====== */
.cm-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  background: #000;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  max-width: 280px; /* taille fixe des cartes */
}

.cm-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* ====== Image ====== */
.cm-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.cm-card:hover img {
  transform: scale(1.1);
}

/* ====== Titre sur la carte ====== */
.cm-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2b2b2b; /* couleur titre modifiée */
  text-align: center;
  background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
}

/* ====== Animation d'apparition ====== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Description de la catégorie (archives) ====== */
.archive-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #2b2b2b; /* couleur description */
  line-height: 1.6;
}

/* ====== Styles uniquement pour les archives de type comédie ====== */
body.archive.tax-type_comedie h1 {
  color: #2b2b2b; /* titre en gris foncé */
  text-align: center; /* centrer le titre */
  margin-bottom: 1.5rem; /* espacement entre titre et description */
}

body.archive.tax-type_comedie .archive-description {
  color: #2b2b2b; /* texte de description */
  text-align: center; /* centrer le texte */
  max-width: 800px;
  margin: 0 auto 3rem; /* descendre le texte et ajouter espace avec la galerie */
  font-size: 1.1rem;
  line-height: 1.6;
}


