/* ================================
   STYLES PAGE D'ACCUEIL - INDEX
   ================================ */

/* --- TYPEWRITER CARD --- */
.typewriter-card {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95), rgba(26, 32, 44, 0.9));
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 178, 172, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.typewriter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #14b8a6, transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.typewriter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 178, 172, 0.4);
}

.typewriter-container {
    position: relative;
    z-index: 1;
}

.typewriter-header {
    border-bottom: 1px solid rgba(56, 178, 172, 0.1);
    padding-bottom: 16px;
}

.typewriter-prefix {
    display: flex;
    align-items: center;
}

.terminal-dots {
    opacity: 0.7;
}

.typewriter-content {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 16px 0;
    font-family: 'Fira Code', 'Consolas', monospace;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
    position: relative;
}

.typewriter-text-container {
    display: inline-flex;
    align-items: center;
    min-height: 1.5em;
    position: relative;
}

.typewriter-text-display {
    display: inline-block;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    will-change: opacity, transform;
    transform: translateZ(0);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.typewriter-cursor {
    color: #14b8a6;
    font-weight: bold;
    animation: smoothBlink 1.5s ease-in-out infinite;
    display: inline-block;
    margin-left: 4px;
    will-change: opacity;
    transform: translateZ(0);
}

#typewriter-text {
    min-height: 1.5em;
    display: inline-block;
    position: relative;
}

/* --- MUSIC PLAYER --- */
.music-player {
    width: 320px;
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.music-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(56, 178, 172, 0.2);
}

#progressBar {
    transition: width 0.1s ease;
}

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

.music-playing #playPauseBtn {
    animation: musicPulse 2s ease-in-out infinite;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider::-webkit-slider-track {
    background: #475569;
    border-radius: 5px;
}

.slider::-moz-range-track {
    background: #475569;
    border-radius: 5px;
}

/* --- PARTNERS SECTION --- */
.partners-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.partner-card {
    min-height: 280px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.partner-card:hover::before {
    left: 100%;
}

.partner-card:hover {
    text-decoration: none;
    color: inherit;
}

.partner-card:focus {
    outline: 2px solid rgba(56, 178, 172, 0.5);
    outline-offset: 2px;
}

.partner-icon {
    position: relative;
    z-index: 2;
}

.partner-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.partner-card:hover .partner-icon::after {
    opacity: 1;
}

/* --- VISITOR STATS --- */
#footerVisitorCount {
    font-weight: bold;
    color: #14b8a6;
}

/* --- WELCOME SCREEN --- */
#welcomeScreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcomeScreen .profile-img {
    animation: float 3s ease-in-out infinite;
}
