/* Polices personnalisées */
@font-face {
    font-family: 'Maxwell';
    src: url('../font/maxwell/Maxwell-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Alphakind';
    src: url('../font/alphakind/Alphakind.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset et styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Maxwell', sans-serif;
    min-height: 100vh;
    background-image: url('04_18.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 120px; /* Espace pour le header fixe */
    padding-bottom: 35vh; /* Espace pour le player fixe */
}

/* Structure principale */
.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 1rem 0;
}

/* Header et bannière */
.chambord-header {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    background-color: white;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chambord-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    padding: 0.5rem;
    background-color: white; /* Bandeau blanc complet */
}

.chambord-banner img {
    max-width: 60%; /* Réduction de la taille de l'image */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Triangles décoratifs */
.triangles-container {
    position: relative;
    width: 100%;
    height: 5rem;
    overflow: hidden;
}

.triangle-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4rem 0 0 100vw;
    border-color: #c0392b transparent transparent transparent;
}

.triangle-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 3rem 100vw 0 0;
    border-color: #e67e22 transparent transparent transparent;
}

/* Sections de contenu */
.welcome-section,
.illustration-section,
.podcast-section {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Message de bienvenue */
.welcome-message {
    background-color: rgba(255, 255, 255, 1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-title {
    color: #c0392b;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.golden-line {
    height: 3px;
    background-color: #e67e22;
    width: 50%;
    margin-bottom: 1.5rem;
}

.description-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Image de couverture */
.cover-image {
    margin: 0 auto 2rem auto;
    max-width: 350px;
    text-align: center;
    overflow: hidden;
    border-radius: 17.5rem;
    border-style: solid;
    border-color: #c0392b;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.cover-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Liste des podcasts */
.podcast-section {
    width: 100%;
    border-radius: 0.5rem;
    margin-top:150px;
}

.section-title {
    color: #c0392b;
    font-size: 1rem;

    text-transform: uppercase;
    letter-spacing: 2px;
  
    text-align: center;
    position: relative;
    padding: 1rem;
    background: #fff ;

    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.2);
}


.podcast-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: podcast-counter;
    width: 100%;
}

.podcast-item {
    background-color: rgba(255, 255, 255, 1);
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    counter-increment: podcast-counter;
}

.podcast-item:nth-child(even) {
    background-color: #f8f9fa;
}

.podcast-item:nth-child(odd) {
    background-color: #ffffff;
}

.podcast-item:last-child {
    border-bottom: none;
}



.podcast-item.active {
    background-color: #f0ffdc !important;
    color:#fff;
    border-left: 4px solid #28a745 ;
    
}

.podcast-item::before {
    content: counter(podcast-counter);
    background-color: #c0392b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.podcast-item:nth-child(even)::before {
    background-color: #000000;
    color: white;
}

.podcast-item:nth-child(odd)::before {
    background-color: #000000;
    color: white;
}

.podcast-item.active::before {
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
}

.podcast-item.playing::before {
    background-color: #c0392b !important;
    color: white !important;
    border: none !important;
}

.podcast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-title {
    margin-bottom: 0.2rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
}

.podcast-description {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0;
}

/* Player audio */
.player-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.player-controls {
    background-color: white;
    padding: 1.5rem;
    border-top: 3px solid #e67e22;
    border-bottom: 3px solid #c0392b;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-height: 35vh;
    overflow: hidden;
    transition: all 0.3s ease;
}

.now-playing {
    margin-bottom: 1rem;
    text-align: center;
}

.current-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-description {
    font-size: 0.9rem;
    color: #666;
    max-height: 2.8rem;
    overflow: hidden;
}

.progress-section {
    margin-bottom: 1rem;
}

.progress-container {
    width: 100%;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress {
    height: 8px !important;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: #e67e22 !important;
    transition: width 0.1s linear;
}

.time-display {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.audio-controls {
    gap: 1.5rem;
}

.audio-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #e67e22;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.audio-btn:hover {
    transform: scale(1.1);
}

/* Bouton Play - Vert */
.play-btn {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #27ae60;
}

.play-btn:hover {
    background-color: #2ecc71;
}

/* Bouton Pause - Orange */
.pause-btn {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #e67e22;
}

.pause-btn:hover {
    background-color: #f39c12;
}

/* Bouton Stop - Rouge */
.stop-btn {
    background-color: #e74c3c;
}

.stop-btn:hover {
    background-color: #c0392b;
}

/* Responsive styles */
/* Mobiles (jusqu'à 500px) */
@media (max-width: 500px) {
    body {
        padding-top: 100px; /* Espace pour le header fixe */
        padding-bottom: 20vh;
        background-attachment: fixed; /* Image fixe comme sur desktop */
    }
    
    /* Fix spécifique pour iOS Safari */
    @supports (-webkit-touch-callout: none) {
        body {
            background-attachment: scroll;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center center;
        }
        
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('04_18.jpg');
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            z-index: -1;
        }
    }
    
    .chambord-banner img {
        max-width: 70%; /* Taille légèrement plus grande sur mobile */
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
   
    
    .podcast-title {
        font-size: 0.9rem;
    }
    
    .podcast-description {
        font-size: 0.8rem;
    }
    
    .audio-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .play-btn {
        width: 2.5rem;
        height: 2.5rem;
        background-color: #27ae60;
    }
    
    .pause-btn {
        width: 2.5rem;
        height: 2.5rem;
        background-color: #e67e22;
    }
    
    .player-controls {
        padding: 0.3rem;
        max-height: 20vh;
    }
    
    .audio-controls {
        gap: 0.5rem;
    }
    
    .current-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .current-description {
        font-size: 0.7rem;
        line-height: 1.2;
        max-height: 1.4rem;
    }
    
    .progress {
        height: 4px !important;
    }
    
    .time-display {
        font-size: 0.7rem;
    }
    
    .now-playing {
        margin-bottom: 0.5rem;
    }
}

/* Tablettes (501px à 767px) */
@media (min-width: 501px) and (max-width: 767px) {
    body {
        padding-top: 110px; /* Espace pour le header fixe */
        padding-bottom: 25vh;
        background-attachment: fixed; /* Image fixe comme sur desktop */
    }
    
    /* Fix spécifique pour iOS Safari sur tablette */
    @supports (-webkit-touch-callout: none) {
        body {
            background-attachment: scroll;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center center;
        }
        
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('04_18.jpg');
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            z-index: -1;
        }
    }
    
    .chambord-banner img {
        max-width: 50%; /* Taille réduite sur tablette */
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .audio-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .play-btn {
        width: 3rem;
        height: 3rem;
        background-color: #27ae60;
    }
    
    .pause-btn {
        width: 3rem;
        height: 3rem;
        background-color: #e67e22;
    }
    
    .player-controls {
        padding: 0.5rem;
        max-height: 25vh;
    }
    
    .audio-controls {
        gap: 0.8rem;
    }
    
    .current-title {
        font-size: 1rem;
    }
    
    .current-description {
        font-size: 0.8rem;
        max-height: 2rem;
    }
}

/* Écrans moyens et grands (768px et plus) */
@media (min-width: 768px) {
    body {
        padding-top: 120px; /* Espace pour le header fixe */
    }
    
    .chambord-banner img {
        max-width: 25%; /* Taille très réduite sur desktop */
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .audio-btn {
        width: 3rem;
        height: 3rem;
    }
    
    .play-btn {
        width: 3.5rem;
        height: 3.5rem;
        background-color: #27ae60;
    }
    
    .pause-btn {
        width: 3.5rem;
        height: 3.5rem;
        background-color: #e67e22;
    }
    
    .player-controls {
        padding: 1.5rem;
        max-height: 35vh;
    }
    
    .current-title {
        font-size: 1.2rem;
    }
    
    .current-description {
        font-size: 0.9rem;
        max-height: 2.8rem;
    }
}

/* Classe utilitaire pour masquer des éléments */
.d-none {
    display: none !important;
}