/* ===========================
   REMERCIEMENTS - PAGE MODERNE
   =========================== */

.remerciements-section {
    min-height: 100vh;
    padding: 3rem 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.remerciements-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===========================
   HEADER SECTION
   =========================== */

.remerciements-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.remerciements-title {
    font-family: 'Brady Bunch Remastered', 'Yanone Kaffeesatz', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: shimmer 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

.remerciements-subtitle {
    font-size: 1.5rem;
    color: #b8c6db;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================
   CONTROL PANEL
   =========================== */

.remerciements-controls {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.control-btn:active {
    transform: translateY(-1px);
}

.control-btn.play-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 8px 32px rgba(17, 153, 142, 0.3);
}

.control-btn.pause-btn {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    box-shadow: 0 8px 32px rgba(252, 74, 26, 0.3);
}

.control-btn.stop-btn {
    background: linear-gradient(135deg, #e53e3e 0%, #fd5e53 100%);
    box-shadow: 0 8px 32px rgba(229, 62, 62, 0.3);
}

/* ===========================
   CONTENT SCROLL AREA
   =========================== */

.remerciements-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 600px;
    overflow: hidden;
    position: relative;
}

.remerciements-content.manual-scroll {
    overflow-y: auto; /* Permet le défilement manuel */
    overflow-x: hidden;
}

.remerciements-content.manual-scroll::-webkit-scrollbar {
    width: 8px;
}

.remerciements-content.manual-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.remerciements-content.manual-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.remerciements-content.manual-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.scroll-content {
    position: absolute;
    top: 0; /* Commence directement visible */
    left: 0;
    right: 0;
    padding: 2rem;
    opacity: 1; /* Visible par défaut */
    animation-play-state: paused;
    animation-fill-mode: forwards;
    transition: transform 0.3s ease;
}

.scroll-content.manual-mode {
    position: static; /* Positionnement normal pour le scroll manuel */
    transform: none !important; /* Annule les transformations d'animation */
    animation: none !important; /* Supprime l'animation */
}

.scroll-content.scrolling {
    animation: smoothScroll 300s linear infinite; /* 5 minutes par cycle */
    animation-play-state: running;
    animation-fill-mode: forwards;
}

/* ===========================
   CONTENT BLOCKS
   =========================== */

.thanks-block {
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.thanks-block:nth-child(2) { animation-delay: 0.2s; }
.thanks-block:nth-child(3) { animation-delay: 0.4s; }
.thanks-block:nth-child(4) { animation-delay: 0.6s; }
.thanks-block:nth-child(5) { animation-delay: 0.8s; }

.thanks-title {
    font-family: 'Brady Bunch Remastered', 'Yanone Kaffeesatz', sans-serif;
    font-size: 2.5rem;
    color: #ffbc05;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.thanks-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: black;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-highlight {
    color: #ff7c10;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    display: inline;
}

.thanks-link {
    color: #4fd1c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.thanks-link:hover {
    color: #38ef7d;
    border-bottom-color: #38ef7d;
    text-shadow: 0 0 10px rgba(56, 239, 125, 0.5);
}

.thanks-link::after {
    content: ' 🔗';
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 2px;
}

/* ===========================
   LOGO SECTION
   =========================== */

.logo-section {
    text-align: center;
    text-align: -webkit-center;
    margin-top: 4rem;
    padding: 3rem 0;
}

.logo-section img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.7));
}

/* ===========================
   AUDIO CONTROLS
   =========================== */

.audio-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-info h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-family: 'Brady Bunch Remastered', sans-serif;
}

.audio-info p {
    color: #b8c6db;
    margin: 0;
    font-style: italic;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes smoothScroll {
    0% { transform: translateY(0); } /* Commence à partir du haut visible */
    100% { transform: translateY(-100%); } /* Se termine complètement en haut */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .remerciements-title {
        font-size: 2.5rem;
    }
    
    .remerciements-subtitle {
        font-size: 1.2rem;
    }
    
    .remerciements-content {
        padding: 2rem;
        height: 500px;
    }
    
    .thanks-title {
        font-size: 2rem;
    }
    
    .thanks-text {
        font-size: 1.1rem;
    }
    
    .control-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem 0;
        display: block;
        width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .remerciements-container {
        padding: 0 1rem;
    }
    
    .remerciements-content {
        padding: 1.5rem;
        height: 400px;
    }
    
    .thanks-text {
        font-size: 1rem;
    }
}

/* ===========================
   SCROLL INDICATORS
   =========================== */

.scroll-indicator {
    position: absolute;
    bottom: 1rem; /* Plus proche du bas maintenant qu'il est dans le conteneur principal */
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 100; /* Très haut pour être sûr */
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scroll-indicator::before {
    content: '⬇';
    animation: bounce 2s ease-in-out infinite;
}

/* Quand le conteneur est en mode manuel */
.remerciements-container:has(.remerciements-content.manual-scroll) .scroll-indicator::before {
    content: '🖱️';
    animation: none;
}

/* Quand le scroll-content est en animation */
.remerciements-container:has(.scroll-content.scrolling) .scroll-indicator::before {
    content: '📜';
    animation: pulse 2s ease-in-out infinite;
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.manual-scroll-active .scroll-indicator::before {
    content: '🖱️';
    animation: none;
}

.auto-scroll-active .scroll-indicator::before {
    content: '📜';
    animation: pulse 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===========================
   LOADING STATES
   =========================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
