/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary-color: #193F61;
    --secondary-color: #FEA439;
    --white: #ffffff;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image de fond avec Blur */
.background {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px); /* Plus large pour éviter les bords blancs du flou */
    height: calc(100% + 40px);
    background-image: url('bg-dune.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Style Liquid Glass (Glassmorphism) */
.glass-container {
    background: rgba(255, 255, 255, 0.1); /* Un peu plus opaque pour le contraste */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(25, 63, 97, 0.2); /* Ombre teintée avec la couleur primaire */
    padding: 3rem 4rem;
    text-align: center;
    color: var(--primary-color); /* Texte en couleur primaire */
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Effet de reflet "Liquid" */
.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -50%; }
    50%, 100% { left: 150%; }
}

/* Logo */
.logo {
    max-width: 150px; /* Taille ajustable selon le logo */
    height: auto;
    margin-bottom: 0.5rem;
}

/* Typographie */
.title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    opacity: 0.9;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Barre de chargement */
.progress-container {
    width: 100%;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(25, 63, 97, 0.4); /* Fond de barre teinté */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    /* Dégradé utilisant la couleur secondaire (Orange) */
    background: linear-gradient(90deg, var(--secondary-color), #ffb963);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(254, 164, 57, 0.5);
    animation: load 3s ease-in-out infinite;
}

.loading-text {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-color); /* Texte de chargement en orange */
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes load {
    0% { width: 0%; opacity: 1; }
    50% { width: 70%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

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

/* Responsif */
@media (max-width: 768px) {
    .glass-container {
        padding: 2rem;
    }
    .title {
        font-size: 2rem;
    }
    .logo {
        max-width: 120px;
    }
}