/* ==========================
   STRUCTURE DE BASE
   ========================== */

body {
    background-image: url(/img/fond_index_test.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.header {
    padding: 0.3rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

/* ==========================
   LOGO
   ========================== */

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.4), rgba(78, 205, 196, 0.3), rgba(255, 105, 180, 0.2), transparent);
    filter: blur(20px);
    animation: logoGlowPulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes logoGlowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
        filter: blur(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        filter: blur(25px);
    }
}

/* ==========================
   NAVIGATION
   ========================== */

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 25px;
}

.nav-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Work Sans', sans-serif;
}

.nav-btn:hover, 
.nav-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* ==========================
   TITRE PRINCIPAL
   ========================== */

.main-title {

    text-align: center;

    font-size: 2.8rem;

    color: #f6f608;

    margin: 12rem 200px 8rem;

    font-weight: 600;

    font-family: 'Rajdhani', sans-serif;

    letter-spacing: 4px;

    text-transform: uppercase;

    position: relative;

    text-shadow:

        0 0 10px rgba(246, 246, 8, 0.8),

        0 0 20px rgba(0, 162, 255, 0.6),

        0 0 30px rgba(78, 205, 196, 0.5),

        0 0 40px rgba(255, 105, 180, 0.4),

        0 0 50px rgba(184, 79, 206, 0.3);

    animation: titlePulse 2s ease-in-out infinite;

    word-wrap: break-word;

}



@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(246, 246, 8, 0.8),
            0 0 20px rgba(0, 162, 255, 0.6),
            0 0 30px rgba(78, 205, 196, 0.5),
            0 0 40px rgba(255, 105, 180, 0.4),
            0 0 50px rgba(184, 79, 206, 0.3);
        transform: scale(1);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(246, 246, 8, 1),
            0 0 35px rgba(0, 162, 255, 0.8),
            0 0 50px rgba(78, 205, 196, 0.7),
            0 0 65px rgba(255, 105, 180, 0.6),
            0 0 80px rgba(184, 79, 206, 0.5);
        transform: scale(1.02);
    }
}

/* ==========================
   CARTE PRINCIPALE
   ========================== */

.main-card {
    max-width: 630px;
    margin: -5rem auto 2rem;
    background: rgba(0, 162, 255, 0.35);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 1s ease-out 1s both;
    flex-shrink: 0;
}

.card-header {
    text-align: center;
    margin: 0;
    color: white;
    font-size: 1rem;
    white-space: nowrap;
}

.brand-name {
    font-weight: bold;
    font-size: 2.8rem;
    color: #f6f608;
    display: inline;
    margin-right: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(246, 246, 8, 1),
        0 0 20px rgba(246, 246, 8, 0.8),
        0 0 30px rgba(246, 246, 8, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
    animation: brandNamePulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

@keyframes brandNamePulse {
    0%, 100% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.9),
            -1px -1px 2px rgba(0, 0, 0, 0.8),
            0 0 10px rgba(246, 246, 8, 1),
            0 0 20px rgba(246, 246, 8, 0.8),
            0 0 30px rgba(246, 246, 8, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.9),
            -1px -1px 2px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(246, 246, 8, 1),
            0 0 35px rgba(246, 246, 8, 1),
            0 0 50px rgba(246, 246, 8, 0.8),
            0 0 65px rgba(255, 215, 0, 0.6);
        transform: scale(1.03);
    }
}

.welcome-text {
    font-style: italic; 
    font-size: 1.7rem;
    color: white;
    display: inline;
    font-family: 'Work Sans', sans-serif;
    animation: depthZoom 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
    transform-origin: center;
}

@keyframes depthZoom {
    0% {
        opacity: 0;
        transform: scale(0.3) translateZ(-1000px);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.05) translateZ(0);
        filter: blur(2px);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) translateZ(0);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================
   LIGNE DE SERVICES
   ========================== */

.services-line {
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 6rem auto 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 900px;
    animation: fadeInUp 1.2s ease-out 1.5s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.services-line .bullet {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin: 0 1rem;
    display: inline-block;
    animation: bulletPulse 2s ease-in-out infinite;
}

@keyframes bulletPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

/* ==========================
   ONDES SONORES
   ========================== */

.sound-particles {
    position: fixed;
    top: 180px;
    right: 1px;
    width: 300px;
    height: 500px;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.sound-wave {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.9), rgba(78, 205, 196, 0.9), transparent);
    border-radius: 10px;
    opacity: 0;
    transform-origin: left center;
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.5);
}

.sound-wave:nth-child(1) {
    top: 30px;
    width: 120px;
    animation: waveExpand 3s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 1), rgba(78, 205, 196, 0.8), transparent);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.8);
}

.sound-wave:nth-child(2) {
    top: 80px;
    width: 180px;
    animation: waveExpand 3.5s ease-in-out infinite;
    animation-delay: 0.3s;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 1), rgba(255, 105, 180, 0.8), transparent);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.8);
}

.sound-wave:nth-child(3) {
    top: 130px;
    width: 150px;
    animation: waveExpand 2.8s ease-in-out infinite;
    animation-delay: 0.6s;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 1), rgba(184, 79, 206, 0.8), transparent);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

.sound-wave:nth-child(4) {
    top: 180px;
    width: 200px;
    animation: waveExpand 3.2s ease-in-out infinite;
    animation-delay: 0.9s;
    background: linear-gradient(90deg, transparent, rgba(246, 246, 8, 0.9), rgba(0, 162, 255, 0.8), transparent);
    box-shadow: 0 0 15px rgba(246, 246, 8, 0.7);
}

.sound-wave:nth-child(5) {
    top: 230px;
    width: 140px;
    animation: waveExpand 3.6s ease-in-out infinite;
    animation-delay: 1.2s;
    background: linear-gradient(90deg, transparent, rgba(184, 79, 206, 1), rgba(78, 205, 196, 0.8), transparent);
    box-shadow: 0 0 15px rgba(184, 79, 206, 0.8);
}

.sound-wave:nth-child(6) {
    top: 280px;
    width: 170px;
    animation: waveExpand 2.9s ease-in-out infinite;
    animation-delay: 1.5s;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 1), rgba(255, 105, 180, 0.8), transparent);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.8);
}

.sound-wave:nth-child(7) {
    top: 330px;
    width: 190px;
    animation: waveExpand 3.3s ease-in-out infinite;
    animation-delay: 1.8s;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 1), rgba(246, 246, 8, 0.8), transparent);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.8);
}

.sound-wave:nth-child(8) {
    top: 380px;
    width: 160px;
    animation: waveExpand 3.1s ease-in-out infinite;
    animation-delay: 2.1s;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 1), rgba(0, 162, 255, 0.8), transparent);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

@keyframes waveExpand {
    0% {
        opacity: 0;
        transform: scaleX(0) translateX(-50px);
        filter: blur(2px);
    }
    15% {
        opacity: 1;
        transform: scaleX(0.7) translateX(0);
        filter: blur(0);
    }
    50% {
        opacity: 0.9;
        transform: scaleX(1) translateX(20px);
    }
    85% {
        opacity: 0.6;
        transform: scaleX(0.8) translateX(40px);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: scaleX(0.3) translateX(60px);
        filter: blur(3px);
    }
}

/* ==========================
   ÉGALISEUR AUDIO
   ========================== */

.audio-equalizer {
    position: fixed;
    top: 200px;
    left: 50px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    z-index: 10;
}

.eq-bar {
    width: 6px;
    border-radius: 3px;
    animation: barBounce 0.8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.6);
}

.eq-bar:nth-child(1) {
    height: 30%;
    background: linear-gradient(to top, rgba(0, 162, 255, 1), rgba(78, 205, 196, 0.8));
}

.eq-bar:nth-child(2) {
    height: 60%;
    animation-delay: 0.1s;
    background: linear-gradient(to top, rgba(78, 205, 196, 1), rgba(255, 105, 180, 0.8));
}

.eq-bar:nth-child(3) {
    height: 45%;
    animation-delay: 0.2s;
    background: linear-gradient(to top, rgba(255, 105, 180, 1), rgba(184, 79, 206, 0.8));
}

.eq-bar:nth-child(4) {
    height: 75%;
    animation-delay: 0.3s;
    background: linear-gradient(to top, rgba(246, 246, 8, 1), rgba(0, 162, 255, 0.8));
}

.eq-bar:nth-child(5) {
    height: 50%;
    animation-delay: 0.4s;
    background: linear-gradient(to top, rgba(184, 79, 206, 1), rgba(78, 205, 196, 0.8));
}

.eq-bar:nth-child(6) {
    height: 80%;
    animation-delay: 0.5s;
    background: linear-gradient(to top, rgba(0, 162, 255, 1), rgba(255, 105, 180, 0.8));
}

.eq-bar:nth-child(7) {
    height: 40%;
    animation-delay: 0.6s;
    background: linear-gradient(to top, rgba(78, 205, 196, 1), rgba(246, 246, 8, 0.8));
}

.eq-bar:nth-child(8) {
    height: 65%;
    animation-delay: 0.7s;
    background: linear-gradient(to top, rgba(255, 105, 180, 1), rgba(0, 162, 255, 0.8));
}

@keyframes barBounce {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ==========================
   WIDGET STATISTIQUES
   ========================== */

.stats-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 162, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 180px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stats-widget:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(0, 162, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-title {
    color: #fff200;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-family: 'Work Sans', sans-serif;
}

.stats-item:last-child {
    margin-bottom: 0;
}

.stats-label {
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stats-value {
    font-weight: bold;
    color: #4ecdc4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.stats-value.animate {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==========================
   LIEN ADMINISTRATION
   ========================== */

.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-link a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.7rem;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

.admin-link a:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 162, 255, 0.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        touch-action: pan-y;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
    }
    
    .header {
        flex-direction: column;
        text-align: left;
        gap: 0.8rem;
        padding: 0.7rem;
        align-items: flex-start;
        flex-shrink: 0;
    }
    
    .logo {
        width: 95px;
        height: 95px;
        background-image: url(/img/Logo-familymix2.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .navigation {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.7rem;
        margin-top: 0;
        width: 100%;
    }
    
    .nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .main-title {
        font-size: 1.4rem;
        margin: 0.5rem 1rem 0.3rem;
        letter-spacing: 1.5px;
        line-height: 1.3;
    }
    
    .services-line {
        font-size: 0.85rem;
        margin: 0rem 1rem 0.5rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
    
    .services-line .bullet {
        margin: 0 0.3rem;
        font-size: 0.85rem;
    }
    
    .main-card {
        margin: 0rem auto 0.5rem;
        padding: 0.5rem 0.6rem;
        max-width: 70%;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .card-header {
        white-space: normal;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .brand-name {
        font-size: 1.7rem;
        display: block;
        margin-right: 0;
        line-height: 1.05;
    }
    
    .welcome-text {
        font-size: 1rem;
        display: block;
        line-height: 1.1;
    }
    
    .stats-widget {
        position: fixed;
        bottom: 10px;
        left: 10px;
        padding: 0.5rem 0.7rem;
        min-width: 130px;
    }
    
    .stats-title {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-item {
        font-size: 0.6rem;
        margin-bottom: 0.35rem;
    }
    
    .admin-link {
        position: fixed;
        bottom: 10px;
        right: 10px;
    }
    
    .admin-link a {
        font-size: 0.55rem;
        padding: 0.25rem 0.45rem;
    }
    
    .sound-particles {
    top: auto;
    bottom: 70px;
    right: 0;
    width: 150px;
    height: 250px;
}

.sound-wave:nth-child(1) { width: 60px; }
.sound-wave:nth-child(2) { width: 90px; }
.sound-wave:nth-child(3) { width: 75px; }
.sound-wave:nth-child(4) { width: 100px; }
.sound-wave:nth-child(5) { width: 70px; }
.sound-wave:nth-child(6) { width: 85px; }
.sound-wave:nth-child(7) { width: 95px; }
.sound-wave:nth-child(8) { width: 80px; }

.audio-equalizer {
    top: auto;
    bottom: 475px;
    left: 170px;
    height: 60px;
    gap: 5px;
}

.eq-bar {
    width: 4px;
}

}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        min-height: 100vh;
        height: auto;
        position: relative;
        touch-action: manipulation;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: -4rem auto auto;
        width: 100%;
        flex: 1;
    }

    .header {
        padding: 0.6rem;
        gap: 0.7rem;
        flex-shrink: 0;
    }
    
    .logo {
        width: 85px;
        height: 85px;
        background-image: url(/img/Logo-familymix2.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .navigation {
        gap: 0.6rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1.4rem;
        font-size: 0.92rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        margin: 1.5rem 0.5rem 0.3rem;
        letter-spacing: 1px;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    .services-line {
    display: flex;           /* Aligne le texte et le point sur la même ligne */
    align-items: center;     /* Centrage vertical */
    gap: 0.5rem;             /* Espace entre le texte et le point */
    font-size: 0.68rem;
    margin: 3rem;
    padding: 0 0.8rem;
}

.services-line .bullet {
    font-size: 1rem;
}

    
    .card-header {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
        display: block;
        margin-right: 0;
        line-height: 1;
    }
    
    .welcome-text {
        font-size: 0.9rem;
        display: block;
        line-height: 1.1;
    }
    
    .main-card {
        margin: 0;
        padding: 0.5rem 0.6rem;
        max-width: 65%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .stats-widget {
        position: fixed;
        bottom: 10px;
        left: 10px;
        padding: 0.45rem 0.6rem;
        min-width: 120px;
    }
    
    .stats-title {
        font-size: 0.65rem;
        margin-bottom: 0.45rem;
    }
    
    .stats-item {
        font-size: 0.55rem;
        margin-bottom: 0.3rem;
    }
    
    .admin-link {
        position: fixed;
        bottom: 10px;
        right: 10px;
    }
    
    .admin-link a {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }
    
    .sound-particles {
    top: auto;
    bottom: 70px;
    right: 0;
    width: 150px;
    height: 250px;
}

.sound-wave:nth-child(1) { width: 60px; }
.sound-wave:nth-child(2) { width: 90px; }
.sound-wave:nth-child(3) { width: 75px; }
.sound-wave:nth-child(4) { width: 100px; }
.sound-wave:nth-child(5) { width: 70px; }
.sound-wave:nth-child(6) { width: 85px; }
.sound-wave:nth-child(7) { width: 95px; }
.sound-wave:nth-child(8) { width: 80px; }

.audio-equalizer {
    top: auto;
    bottom: 475px;
    left: 170px;
    height: 60px;
    gap: 5px;
}

.eq-bar {
    width: 4px;
}
    
    .logo::before {
        display: none;
    }
}