* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f8fbff;
    color: #1e2d3d;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-wrapper {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px 10px 10px 10px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    min-height: 152.5px; /* Assure que le header conserve sa hauteur même avec un logo plus grand */
    position: relative;
}

/* Styles pour le badge Private Beta */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.private-beta-badge {
    position: absolute;
    bottom: -5px;
    right: -28px;
    background: linear-gradient(50deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: glow-pulse 2s ease-in-out infinite alternate;
    z-index: 10;
    white-space: nowrap;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 107, 107, 0.1);
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .private-beta-badge {
        font-size: 8px;
        padding: 1px 4px;
        right: -5px;
        bottom: -3px;
    }
}
.logo-img {
    height: 112.5px;
    display: inline-block;
    animation: zoomInOut 1.5s ease-in-out 2;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.header-links {
    display: flex;
    gap: 20px;
}

.header-link {
    color: #505e6d;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #f0f5ff;
    transition: all 0.2s ease;
}

.header-link:hover {
    background-color: #e0eaff;
    color: #0070ba;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour le regroupement des outils (langue, statut et connexion) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Style spécifique pour le bouton de connexion */
.login-button {
    color: #fff;
    background-color: #0070ba;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.login-button:hover {
    background-color: #005998;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 60px;
    margin-top: -20px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #505e6d;
    line-height: 1.5;
}

.url-input-container {
    max-width: 600px;
    margin-bottom: 20px;
}

.url-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    outline: none;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin-bottom: 30px;
}

.payment-info {
    font-size: 12px;
    color: #505e6d;
    margin-top: 10px;
    text-align: center;
}

.hero-image {
    max-width: 45%;
}

.feature-section {
    text-align: center;
    padding: 60px 0;
    background-color: #eef5ff;
}

.feature-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 40px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.popup {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 80%;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-height: 85vh; /* Limite la hauteur de la popup */
    display: flex;
    flex-direction: column;
}

.popup.active {
    transform: translateY(0);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #0070ba;
}

.close-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #505e6d;
    transition: transform 0.2s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
    color: #0070ba;
}

.popup-content {
    font-size: 16px;
    line-height: 1.6;
    color: #505e6d;
    overflow-y: auto; /* Ajoute une barre de défilement vertical si nécessaire */
    -webkit-overflow-scrolling: touch; /* Pour une meilleure expérience de défilement sur iOS */
    padding-right: 10px; /* Espace pour la barre de défilement */
    flex-grow: 1; /* Permet au contenu de remplir l'espace disponible */
    position: relative;
}

/* Indicateur de défilement pour mobile */
.popup-content:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Classe pour l'animation de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid #0070ba;
    border-radius: 15px;
    display: none; /* Caché par défaut, affiché uniquement sur mobile */
    justify-content: center;
    z-index: 5;
}

.scroll-indicator:before {
    content: '';
    width: 6px;
    height: 10px;
    position: absolute;
    top: 8px;
    background-color: #0070ba;
    border-radius: 3px;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

.popup-content p {
    margin-bottom: 15px;
}

.popup-content p:last-child {
    margin-bottom: 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    align-items: center;
}

.footer-link {
    color: #505e6d;
    text-decoration: none;
    font-size: 12px;
    margin-left: 15px;
}

.footer-link:hover {
    text-decoration: underline;
}

.copyright {
    color: #505e6d;
    font-size: 12px;
}

.email-support {
    color: #0070ba;
    font-weight: 500;
}

/* Styles pour l'état du service */
.service-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f8f8f8;
    color: #1e2d3d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    z-index: 100;
}

.service-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.status-gyro {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.gyro-light {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.gyro-ok {
    background: conic-gradient(
        #34d371 0%, 
        #a3f3c8 25%, 
        #34d371 50%, 
        #a3f3c8 75%, 
        #34d371 100%
    );
    box-shadow: 0 0 7px rgba(52, 211, 113, 0.8);
    animation: pulse-green 2s ease-in-out infinite, rotate 6s linear infinite;
}

.gyro-ko {
    background: conic-gradient(
        #ef4444 0%, 
        #fca5a5 25%, 
        #ef4444 50%, 
        #fca5a5 75%, 
        #ef4444 100%
    );
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.8);
    animation: pulse-red 1s ease-in-out infinite, rotate 3s linear infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; box-shadow: 0 0 7px rgba(52, 211, 113, 0.8); }
    50% { opacity: 0.8; box-shadow: 0 0 14px rgba(52, 211, 113, 0.9); }
    100% { opacity: 1; box-shadow: 0 0 7px rgba(52, 211, 113, 0.8); }
}

@keyframes pulse-red {
    0% { opacity: 1; box-shadow: 0 0 7px rgba(239, 68, 68, 0.8); }
    50% { opacity: 0.8; box-shadow: 0 0 14px rgba(239, 68, 68, 0.9); }
    100% { opacity: 1; box-shadow: 0 0 7px rgba(239, 68, 68, 0.8); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour les drapeaux de langue */
.language-selector {
    display: flex;
    gap: 10px;
}

.language-flag {
    width: 30px;
    height: 20px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.language-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.language-flag.active {
    box-shadow: 0 0 0 2px #0070ba;
}

/* Style pour le formulaire d'inscription */
.registration-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style pour le conteneur d'email */
.email-input-container {
    width: 100%;
    margin-bottom: 15px;
}

.email-input-container label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #505e6d;
    font-weight: 500;
}

.email-input-container input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input-container input:focus {
    outline: none;
    border-color: #0070ba;
    box-shadow: 0 0 0 2px rgba(0, 112, 186, 0.2);
}

.email-input-container input::placeholder {
    color: #a0aec0;
}

/* Style pour le bouton d'inscription */
.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #0070ba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 180px;
    max-width: fit-content;
    white-space: nowrap;
    width: 100%;
}

.subscribe-btn:hover {
    background-color: #005998;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.subscribe-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.subscribe-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 112, 186, 0.3);
}

/* Styles pour les appareils mobiles */
@media (max-width: 768px) {
    .header-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .header-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .hero {
        flex-direction: column;
        padding-bottom: 40px;
    }
    
    .hero-content {
        order: 1;
        padding: 0 10px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-image {
        order: 0;
        max-width: 85%;
        margin-bottom: 20px;
    }
    
    .button-container {
        justify-content: center;
        margin: 0 auto 20px;
    }
    
    .header-tools {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        gap: 10px;
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
    }
    
    .service-status {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .status-gyro {
        width: 14px;
        height: 14px;
    }
    
    .login-button {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .popup {
        max-height: 80vh;
        width: 90%;
        padding: 20px;
    }
    
    .popup-content {
        max-height: 60vh;
        padding-bottom: 40px; /* Espace pour l'indicateur de défilement */
    }
    
    .scroll-indicator {
        display: flex; /* Affiché sur mobile */
    }

    .language-flag {
        width: 25px;
        height: 17px;
    }
    
    .subscribe-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }
    
    .email-input-container label {
        font-size: 13px;
    }
    
    .email-input-container input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Adaptation pour petits écrans (iPhone) */
    @media (max-width: 480px) {
        header {
            flex-direction: column;
            padding: 15px 10px;
            align-items: center;
        }
        
        .logo {
            margin-bottom: 15px;
        }
        
        .logo-img {
            height: 90px;
        }
        
        .header-links {
            width: 100%;
            justify-content: center;
        }
        
        .header-link {
            font-size: 11px;
            padding: 5px 8px;
        }
        
        .header-tools {
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .login-button {
            font-size: 11px;
            padding: 5px 10px;
            margin-top: 5px;
        }
        
        .hero-title {
            font-size: 28px;
        }
        
        .hero-description {
            font-size: 14px;
        }
        
        .popup {
            width: 95%;
            padding: 15px;
            max-height: 85vh;
        }
        
        .popup-title {
            font-size: 20px;
        }
        
        .popup-content {
            font-size: 14px;
            max-height: 65vh;
            padding-bottom: 40px;
        }
        
        .popup-header {
            margin-bottom: 10px;
        }

        .footer {
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
        }
        
        .subscribe-btn {
            padding: 10px 20px;
            font-size: 13px;
            min-width: 140px;
        }
        
        .email-input-container label {
            font-size: 12px;
        }
        
        .email-input-container input {
            padding: 8px 10px;
            font-size: 13px;
        }
    }
}

/* Animation de secousse pour la validation du formulaire */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}