/* ==========================================================================
   🩶 RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color, #1E1E1E);
    color: var(--text-color, #ffffff);
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* ===== Liens plateformes sous le hero podcast ===== */
.podcast-platform-links img {
    height: 50px;
    width: auto;
    display: inline-block;
	margin: 20px 10px 0 0;
}
.podcast-platform-links a:hover img {
    outline: none !important;
}



/* ==========================================================================
   🎨 VARIABLES CSS pilotées par le Customizer
   ========================================================================== */

:root {
    --main-color: #cad52f;
    --hero-overlay-rgba: rgba(202, 213, 47, 0.4);
    --hero-gradient-rgba: rgba(202, 213, 47, 0.4);
    --bg-color: #1E1E1E;
    --text-color: #ffffff;
}

/* ==========================================================================
   🖋️ TYPOGRAPHIE
   ========================================================================== */

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--main-color);
}

a:visited,
a:focus {
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.3s ease;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: var(--text-color);
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
    color: var(--main-color);
}

h1 a:visited,
h2 a:visited,
h3 a:visited,
h4 a:visited,
h5 a:visited,
h6 a:visited,
h1 a:focus,
h2 a:focus,
h3 a:focus,
h4 a:focus,
h5 a:focus,
h6 a:focus {
    color: var(--text-color);
}

.site-title {
  margin: 0;
  font-size: 3rem;
}

.site-title a {
  text-transform: uppercase;
  font-size: 3rem;
  text-decoration: none;
  line-height: 1.1;
  display: inline-block;
}

/* ==========================================================================
   🖼️ IMAGES CLIQUABLES (hors badges)
   ========================================================================== */

a img:not(.badge-img):not(.badge-original img):not(.audiopictura-badge img):not(.badge-audiopictura img) {
    transition: border 0.3s ease, border-radius 0.3s ease;
    border-radius: 8px;
}

.episode-thumbnail,
.podcast-thumbnail img,
.episode-thumbnail-img,
.thumbnail-square,
.podcast-info-left img,
.episode-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.episode-thumbnail-wrapper {
    position: relative;
    display: block;
}

.badge-original img,
.audiopictura-badge img,
.badge-audiopictura img {
    border-radius: 0;
}

.badge-original {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    z-index: 2;
}

.badge-original img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}



/* ======================================================
   SEARCH FORM IN HEADER (AVEC OPACITÉ)
====================================================== */

/* Conteneur aligné à gauche dans le header */
.search-section {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
}

/* Formulaire en ligne */
.custom-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--text-color, #ffffff);
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(30, 30, 30, 0.5); /* opacité ajoutée */
}

/* Champ de recherche */
.custom-search-input {
  height: 50px;
  min-width: 220px;
  background-color: rgba(51, 51, 51, 0.5); /* opacité ajoutée */
  border: none;
  color: white;
  padding: 0 12px;
  font-size: 1rem;
  outline: none;
  flex: 1;
}

/* Bouton de recherche */
.custom-search-button {
  height: 50px;
  background-color: rgba(30, 30, 30, 0.5); /* opacité ajoutée */
  border: none;
  color: white;
  padding: 0 12px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Hover sur le bouton */
.custom-search-button:hover {
  color: var(--main-color, #cad52f);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   🚀 SECTION HERO
   ========================================================================== */

.section-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-episode-full {
    position: relative;
	height: 60vh;
	min-height: 700px;
	max-height: 1000px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end; /* aligne le contenu en bas */
    padding: 0 0 80px 0;
}

.hero-episode-background {
    position: absolute;
    top: 0;
    left: 20%;
    width: 80%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    opacity: 0.6;
    z-index: 1;
    animation: heroZoom 10s infinite alternate ease-in-out;
    pointer-events: none;
}

.hero-episode-overlay {
    background:
        linear-gradient(
            to left, /* au lieu de to right */
            transparent 0%,
            var(--curation-hero-gradient) 0%,
            var(--curation-hero-gradient) 80%,
            transparent 100%
        ),
        var(--curation-hero-overlay);
}

.hero-episode-content {
    position: relative;
    z-index: 3;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.10); }
}

/* ✅ correction ciblage grid */
.hero-episode-wrapper {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 40px;
    align-items: end;
}

.hero-episode-wrapper .episode-image {
    width: 100%;
    max-width: 100%;
}

.hero-episode-wrapper .episode-details {
    width: 100%;
}

/* ==========================================================================
   🚀 HERO ÉPISODE – MARGES INTERNES
   ========================================================================== */

/* Titre de l'épisode */
.episode-details .episode-title {
    margin-bottom: 1rem; /* Marge entre titre et métas */
}

/* Métas (ligne "Podcast ... diffusé le ...") */
.episode-details .episode-podcast {
    margin-bottom: 1rem; /* Marge entre métas et contenu */
    font-size: 0.95rem;
    color: #ccc;
}

/* Extrait de l'épisode */
.episode-details .episode-excerpt {
    margin-bottom: 1rem; /* Marge entre contenu et "voir l'épisode" */
    font-size: 1rem;
    line-height: 1.5;
    color: white;
}

/* Lien "voir l'épisode" */
.episode-details .episode-link {
    margin-bottom: 1rem; /* Marge entre "voir l'épisode" et le player */
}

/* Player inline */
.custom-audio-wrapper-inline {
    margin-top: 0.5rem; /* ajustable selon ton confort visuel */
}

/* Optionnel : cohérence des liens */
.episode-details a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.episode-details a:hover {
  color: var(--main-color, #cad52f);
}

/* ==========================================================================
   🚀 HERO ÉPISODE – PLAYER + ACTIONS COLLÉS AVEC 20PX
   ========================================================================== */

.custom-audio-wrapper-inline .player-and-actions {
    display: flex;
    align-items: center;        /* aligné verticalement */
    justify-content: flex-start; /* colle les éléments à gauche */
    flex-wrap: nowrap;          /* une seule ligne */
    gap: 20px;                  /* espace exact entre player et bloc boutons */
}

.gpt-share-actions-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;                /* espace entre les boutons */
}

.gpt-share-button,
.gpt-like-button {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.gpt-heart-icon {
    width: 24px;
    height: 24px;
}

/* ======================================================
   AUDIO PLAYER DARK STYLE (NOUVEAU THEME)
====================================================== */

.custom-audio-wrapper audio,
.custom-audio-wrapper-inline audio {
    width: 100%;
    max-width: 400px;
    background-color: transparent;
    color-scheme: dark;
    border-radius: 8px;
    border: none;
    padding: 0; /* facultatif si besoin */
}

/* ================================
   BOUTONS PARTAGE & LIKE
================================ */

/* Conteneur des boutons (ligne) */
.gpt-share-actions-inline {
    display: flex;
    align-items: center;
    gap: 10px; /* espacement entre les boutons */
}

/* Boutons "Copier le lien" et "Partager sur WhatsApp" */
.gpt-share-button {
    background-color: transparent;
    border: 1px solid var(--text-color, #ffffff);
    color: var(--text-color, #ffffff);
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    white-space: nowrap;
}

.gpt-share-button:hover {
    background-color: #1E1E1E;
}

/* Bouton "Like" (coeur) */
.gpt-like-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.gpt-heart-icon {
    width: 28px;
    height: 28px;
    fill: transparent;
    stroke: var(--text-color);
    stroke-width: 1.2;
    padding: 2px;
    box-sizing: content-box;
    overflow: visible;
    transition: all 0.2s ease;
}

/* Etat liké : rempli */
.gpt-like-button.liked .gpt-heart-icon {
    fill: var(--text-color);
    stroke: var(--text-color);
    stroke-width: 1.4;
}

/* Hover : épaisseur du trait augmentée */
.gpt-like-button:hover .gpt-heart-icon {
    stroke-width: 1.8;
}

.gpt-like-button:hover {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==========================================================================
   🚀 HERO ÉPISODE – TITRE PLUS GRAND
   ========================================================================== */

.episode-details h1 a,
.episode-details h2 a {
    font-size: 2.6rem; /* au lieu de 2rem */
    font-weight: bold;
    line-height: 1.2;   /* améliore le rythme si le titre est sur 2 lignes */
}

/* ======================================================
   HERO SECTION POUR LES PAGES
   ====================================================== */

.section-hero-page {
    width: 100%;
    padding: 60px 0;
    background-color: var(--bg-color, #1E1E1E);
}

.hero-page-wrapper {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    box-sizing: border-box;
}

.hero-page-left {
    flex: 0 0 30%;
    max-width: 30%;
}

.hero-page-right {
    flex: 0 0 70%;
    max-width: 70%;
    color: var(--text-color, #ffffff);
}

.page-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color, #ffffff);
}

.page-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color, #ffffff);
}

.page-content p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   HEADER AVEC LARGEUR MAX 1480PX ET MARGE 40PX
   ========================================================================== */

.site-header {
    position: absolute;
    left: 0;
    height: 160px;
    width: 100%;
    z-index: 10;
    background: transparent;
    padding: 40px 0;
    box-sizing: border-box;
}

.header-inner.flex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1480px;
    margin: 0 auto;
	padding: 0 40px;
    box-sizing: border-box;
}

.branding-group.flex-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-wrapper img {
    max-height: 100px;
    height: auto;
    width: auto;
    display: block;
}

.site-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: var(--text-color, #ffffff);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--main-color, #cad52f);
}

.header-navigation.flex-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav .main-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-episode-content {
    position: relative;
    z-index: 3;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;        /* ✅ supprime le trou à gauche */
    padding-right: 40px;    /* ✅ conserve l'alignement à droite */
    box-sizing: border-box;
}

.main-nav .main-menu li {
    list-style: none;
}

.main-nav .main-menu a {
    color: var(--text-color, #ffffff);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.main-nav .main-menu a:hover {
    color: var(--main-color, #cad52f);
}

.search-section {
    display: flex;
    align-items: center;
}

.custom-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.custom-search-input {
    background-color: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 0.95rem;
    outline: none;
    min-width: 180px;
}

.custom-search-button {
    background-color: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
}

.custom-search-button:hover {
    color: var(--main-color, #cad52f);
}

.site-slogan {
    font-size: 0.95rem;
    color: #cccccc;
    margin: 10px auto 0 auto;
    padding: 0 40px;
    max-width: 1480px;
    box-sizing: border-box;
}

.slogan-center {
    text-align: center;
}

.slogan-left {
    text-align: left;
}

/* ==========================================================================
   🪐 MENUS
   ========================================================================== */

.main-navigation a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--main-color);
}

.main-navigation a:visited,
.main-navigation a:focus {
    color: var(--text-color);
}

/* ==========================================================================
   🎨 GPT GRID – GRILLE UNIFIÉE 6 COLONNES
   ========================================================================== */

/* Conteneur général */
.gpt-grid-wrapper {
    margin: 60px 0;
}

/* Header de la grille (titre + lien) */
.gpt-grid-header {
    margin-bottom: 20px;
}

.gpt-grid-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
}

.gpt-grid-link {
    color: var(--main-color, #cad52f);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* Grille en colonnes */
.gpt-grid {
    display: grid;
    gap: 20px;
}

.gpt-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gpt-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Items génériques */
.gpt-grid-item {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gpt-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px var(--main-color, #cad52f); /* Utilise la couleur principale du customizer */
}

/* PODCAST CARD */
.gpt-grid-item-podcast img.gpt-grid-podcast-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gpt-grid-podcast-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #ffffff);
    padding: 10px;
    text-align: center;
    line-height: 1.3;
}

/* EPISODE CARD */
.gpt-grid-item-episode img.gpt-grid-episode-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gpt-grid-episode-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gpt-grid-episode-podcast {
    font-size: 0.85rem;
    color: #ccc;
}

.gpt-grid-episode-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #ffffff);
    line-height: 1.3;
}

.gpt-grid-episode-date {
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================================================
   📥 FOOTER MENU
   ========================================================================== */

.footer-nav {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    list-style: none;
}

.footer-menu a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--main-color);
}

/* ======================================================
   SECTION SECONDAIRE DES PAGES EN DEUX COLONNES FIXES
====================================================== */

.page-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 40px;
    align-items: start;
	margin-top: 80px;
}

.page-left {
    min-height: 1px; /* force la colonne même vide */
}

.page-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* ==========================================================================
   🩶 BOUTONS
   ========================================================================== */

.btn,
button,
.button {
    background-color: var(--main-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover,
button:hover,
.button:hover {
    background-color: #b1bb29;
}

/* ==========================================================================
   📦 LAYOUT
   ========================================================================== */

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

/* ==========================================================================
   🎯 ESPACE POUR AJOUTS FUTURS
   ========================================================================== */

/*
.footer { }
.grid-podcast { }
.badge-production { }
.autres sections spécifiques selon besoins...
*/

/* ==========================================================================
   ✅ FIN DU FICHIER CSS DE BASE
   ========================================================================== */