* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height */
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 50%, #2E5984 100%);
    background-color: #000; /* Éviter le blanc visible */
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    /* Fix pour iOS Safari */
    -webkit-overflow-scrolling: touch;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height */
    height: -webkit-fill-available; /* Pour iOS Safari */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    /* Fix pour Samsung */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Effet d'eau principal */
.water-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height */
    height: -webkit-fill-available; /* Pour iOS Safari */
    bottom: 0; /* S'assurer qu'il va jusqu'au bas */
    background: linear-gradient(135deg, 
        rgba(135, 206, 235, 0.8) 0%, 
        rgba(70, 130, 180, 0.9) 50%, 
        rgba(25, 25, 112, 0.95) 100%);
    z-index: 1;
}

/* Contenu principal */
.content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 50%;
    z-index: -1;
    animation: logoGlow 4s ease-in-out infinite;
}

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

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}

.title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 2px;
    animation: loading 4s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 65%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 0.9rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        align-items: flex-start;
        padding-top: 5vh; /* 5% du haut de l'écran */
    }
    
    .content {
        padding: 1.5rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* Fix pour les appareils mobiles */
@supports (-webkit-touch-callout: none) {
    .container, .water-effect {
        height: -webkit-fill-available;
    }
}

/* Fix spécifique pour Android et Chrome mobile */
@supports (height: 100dvh) {
    html, body, .container, .water-effect {
        height: 100dvh; /* Dynamic viewport height */
    }
}

/* Fallback pour les navigateurs qui ne supportent pas dvh */
@supports not (height: 100dvh) {
    html, body, .container, .water-effect {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
}