/**
 * Styles pour la page splash
 * Écran d'accueil avec sélection d'opérateur
 */

/* Container principal */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.splash-screen.sliding-up {
    transform: translateY(-100%);
}

/* Partie haute - 70% de la hauteur */
.splash-top-section {
    position: relative;
    flex: 0 0 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(0.95);
    transform-origin: center;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(30, 60, 114, 0.7) 0%, 
        rgba(42, 82, 152, 0.65) 50%,
        rgba(14, 78, 149, 0.7) 100%
    );
}

.splash-content {
    position: relative;
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease-out;
    z-index: 10;
}

/* Partie basse - 30% de la hauteur */
.splash-bottom-section {
    position: relative;
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Bordure gradient entre les sections */
.splash-bottom-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #43B0B1 0%,
        #43B0B1 10%,
        #0096D5 30%,
        #0E4E95 42%,
        #EC1846 55%,
        #F26F21 84%,
        #F26F21 100%
    );
    z-index: 10;
}

.splash-usine-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 120%;
    background-position: center 80%;
}

.splash-usine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 60, 114, 0.95), rgba(0, 0, 0, 0.7));
}

.splash-usine-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.splash-logo {
    width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.splash-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
}

.splash-subtitle {
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

.splash-btn {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: white;
    color: #2a5298;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    background-clip: padding-box;
}

.splash-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        #43B0B1 0%,
        #0096D5 20%,
        #0E4E95 35%,
        #EC1846 50%,
        #F26F21 70%,
        #F26F21 100%
    );
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.splash-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    color: white;
    font-style: italic;
}

.splash-btn:hover::before {
    opacity: 1;
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    0% {
        background: linear-gradient(
            90deg,
            #43B0B1 0%,
            #0096D5 20%,
            #0E4E95 35%,
            #EC1846 50%,
            #F26F21 70%,
            #F26F21 100%
        );
    }
    100% {
        background: linear-gradient(
            450deg,
            #43B0B1 0%,
            #0096D5 20%,
            #0E4E95 35%,
            #EC1846 50%,
            #F26F21 70%,
            #F26F21 100%
        );
    }
}

/* Date Time Label */
.date-time-label {
    position: absolute;
    left: 2rem;
    top: calc(70% - 2rem);
    z-index: 15;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Management sur la ligne */
.management-title-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(70% - 2rem);
    z-index: 15;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.management-badges {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: flex-start;
}

.management-cloud {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: default;
    text-align: center;
}

.management-cloud:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cloud-name {
    font-weight: 600;
    color: #1e3c72;
    line-height: 1.2;
}

.cloud-role {
    font-size: 0.7rem;
    color: #666;
    font-weight: 400;
    line-height: 1.2;
}

/* Bouton Play/Pause */
.animation-toggle {
    position: absolute;
    right: 2rem;
    top: calc(70% - 2.1rem);
    z-index: 15;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 1rem;
}

.animation-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.animation-toggle:active {
    transform: scale(0.95);
}


@keyframes pulse-neon {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

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

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

/* Nuages d'opérateurs */
.operators-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.operator-cloud {
    position: absolute;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    color: #1e3c72;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.15s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.operator-cloud:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.operator-cloud:active {
    transform: translateY(-1px) scale(1.02);
}

.operator-cloud.selected {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 3px #0096D5,
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations différentes pour chaque nuage */
.cloud-anim-0 {
    animation: float-0 50s infinite ease-in-out;
    animation-delay: 0s;
}

.cloud-anim-1 {
    animation: float-1 55s infinite ease-in-out;
    animation-delay: 2s;
}

.cloud-anim-2 {
    animation: float-2 60s infinite ease-in-out;
    animation-delay: 4s;
}

.cloud-anim-3 {
    animation: float-3 52s infinite ease-in-out;
    animation-delay: 6s;
}

.cloud-anim-4 {
    animation: float-4 58s infinite ease-in-out;
    animation-delay: 8s;
}

/* Animations de déplacement dynamiques avec changements fréquents */
@keyframes float-0 {
    0% { transform: translate(0, 0); }
    10% { transform: translate(40px, 20px); }
    20% { transform: translate(-30px, 50px); }
    30% { transform: translate(60px, -10px); }
    40% { transform: translate(-50px, -40px); }
    50% { transform: translate(30px, 30px); }
    60% { transform: translate(-40px, 10px); }
    70% { transform: translate(50px, -30px); }
    80% { transform: translate(-20px, 40px); }
    90% { transform: translate(30px, -20px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-1 {
    0% { transform: translate(0, 0); }
    12% { transform: translate(-50px, -30px); }
    24% { transform: translate(40px, 20px); }
    36% { transform: translate(-60px, 40px); }
    48% { transform: translate(30px, -50px); }
    60% { transform: translate(-40px, 30px); }
    72% { transform: translate(50px, 10px); }
    84% { transform: translate(-30px, -40px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-2 {
    0% { transform: translate(0, 0); }
    8% { transform: translate(30px, -40px); }
    16% { transform: translate(-60px, 20px); }
    24% { transform: translate(50px, 50px); }
    32% { transform: translate(-40px, -30px); }
    40% { transform: translate(60px, 10px); }
    48% { transform: translate(-50px, 40px); }
    56% { transform: translate(40px, -50px); }
    64% { transform: translate(-30px, 30px); }
    72% { transform: translate(50px, -20px); }
    80% { transform: translate(-40px, 50px); }
    88% { transform: translate(30px, -30px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-3 {
    0% { transform: translate(0, 0); }
    15% { transform: translate(-40px, 30px); }
    30% { transform: translate(50px, -40px); }
    45% { transform: translate(-60px, -20px); }
    60% { transform: translate(40px, 40px); }
    75% { transform: translate(-30px, -50px); }
    90% { transform: translate(20px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-4 {
    0% { transform: translate(0, 0); }
    10% { transform: translate(60px, -20px); }
    20% { transform: translate(-40px, -50px); }
    30% { transform: translate(30px, 40px); }
    40% { transform: translate(-50px, 20px); }
    50% { transform: translate(40px, -40px); }
    60% { transform: translate(-60px, 30px); }
    70% { transform: translate(50px, 50px); }
    80% { transform: translate(-30px, -30px); }
    90% { transform: translate(40px, 10px); }
    100% { transform: translate(0, 0); }
}

/* Ligne du bas avec 3 colonnes */
.bottom-logos-row {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: end;
    z-index: 15;
    padding: 0 1rem;
}

/* Colonne gauche - EPI */
.logos-col-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grille EPI 2x2 */
.epi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 4rem;
}

/* Colonne centre - Slogan */
.logos-col-center {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 1rem;
}

/* Colonne droite - manyO.dev */
.logos-col-right {
    display: flex;
    align-items: end;
    justify-content: end;
}

/* Slogan Saint-Gobain au centre */
.sgq-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.quote-mark {
    font-size: 3rem;
    font-family: 'Times New Roman', serif;
    font-weight: 900;
    line-height: 0.8;
    background: linear-gradient(
        135deg,
        #43B0B1 0%,
        #0096D5 25%,
        #0E4E95 40%,
        #EC1846 60%,
        #F26F21 80%,
        #F2DA1C 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transform-style: preserve-3d;
}

.quote-left {
    margin-right: 1rem;
    position: relative;
    top: -0.5rem;
    transform: rotate(-15deg) scale(1.2);
    opacity: 0.9;
}

.quote-right {
    margin-left: 1rem;
    position: relative;
    top: -0.5rem;
    transform: rotate(15deg) scale(1.2);
    opacity: 0.9;
}

.slogan-text {
    background: linear-gradient(
        to right,
        #43B0B1 0%,
        #43B0B1 10%,
        #0096D5 30%,
        #0E4E95 42%,
        #EC1846 55%,
        #F26F21 84%,
        #F2DA1C 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stack ISO */
.iso-stack {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.iso-stack .cert-logo {
    height: 80px;
}

.cert-logo {
    height: 80px;
    width: auto;
    opacity: 1;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.wcm-logo {
    height: 40px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    transform: scale(0.4);
    transform-origin: bottom left;
}

.cert-logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Pictos EPI */
.epi-logo {
    height: 50px;
    width: auto;
    opacity: 1;
    filter: brightness(1.1) contrast(1.2);
    transition: all 0.3s ease;
    border-radius: 50%;
    background: white;
    padding: 2px;
    mix-blend-mode: screen;
}

.epi-logo:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.3) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    mix-blend-mode: normal;
}

/* Animation d'entrée pour les logos */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation d'entrée de bas en haut pour les EPI */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations colonnes */
.logos-col-left {
    animation: fadeInLeft 1s ease-out 0.5s both;
}

.logos-col-center .epi-logo:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.logos-col-center .epi-logo:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.logos-col-center .epi-logo:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

.logos-col-center .epi-logo:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 1.8s both;
}

.logos-col-right {
    animation: fadeInLeft 1s ease-out 0.5s both;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .bottom-logos-row {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 0.5rem;
    }
    
    .logos-col-left {
        gap: 0.8rem;
    }
    
    .iso-stack .cert-logo {
        height: 45px;
    }
    
    .wcm-logo {
        height: 30px;
        transform: scale(0.3);
    }
    
    .epi-logo {
        height: 35px;
    }
}