@media (max-width: 640px) {
    h1 {
        font-size: 1rem !important; /* Réduction stricte de la taille */
        line-height: 1.2 !important; /* Évite que les lignes soient trop espacées */
    }

    p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) { /* Mobile */
    .btn-responsive {
        width: 100%; /* Pleine largeur */
        padding: 10px 20px; /* Ajustement du padding */
        font-size: 14px; /* Réduction de la taille du texte */
        white-space: nowrap; /* Empêche le retour à la ligne */
    }

    .uc-navbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
        min-height: 56px; /* Réduit la hauteur */
        margin-top: 0 !important; /* Enlève l'espace en haut */
    }

    .uc-navbar-left, .uc-navbar-right {
        display: flex !important;
        flex-direction: row !important; /* Colonne pour les écrans plus petits */
        align-items: center;
        gap: 8px;
    }

    .uc-logo {
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto;
    }

    .uc-logo img {
        height: 20px !important; /* Réduit la taille du logo */
        width: auto !important;
        position: static !important;
        z-index: 1 !important;
        margin-top: -2% !important; /* Ajuste le margin-top */
    }

    .logo-menu {
        margin-top: -50% !important;
    }

    .uc-navbar-right {
        gap: 6px;
    }

    .uc-navbar-main {
        padding-top: 0 !important;
    }

    header.uc-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hide-on-mobile {
        display: none !important; /* Cache les éléments sur mobile */
    }

    .uc-navbar-right .btn {
        width: 90%;
    }

    .uc-navbar-container {
        margin-top: -5% !important; /* Ajuste le margin-top pour les écrans mobiles */
    }

    .section-outer {
        margin-top: -20%;
    }

    .d-inline-block {
        display: inline-block !important; /* Assure que les éléments sont en ligne */
    }
    
    .affiche-navbar {
        display: block; /* Affiche la barre de navigation */
    }

    .uc-navbar-right a[href="../sign-in.html"] {
        display: block !important;
    }

    .fr{
        margin-top: 10%;
    } 

    #hero_header .container-video,
    #hero_header .section-inner {
        width: 100vw !important;
        max-width: none !important; /* Annule la limitation */
        margin-left: calc(-50vw + 50%) !important; /* Compense les marges du body */
        left: 0;
    }

    .uc-logo img {
        position : fixed !important;
        z-index: 9999 !important;
    }

    .menu-open .logo {
        z-index: 1001; /* Confirme qu'il reste au-dessus */
        filter: drop-shadow(0 0 5px rgba(0,0,0,0.2)); /* Optionnel: meilleure visibilité */
    }
}

@media (min-width: 769px) { /* Desktop */
    .btn-responsive {
        width: auto; /* Taille automatique */
        padding: 12px 30px; /* Ajustement du padding */
        font-size: 16px; /* Taille normale */
    }
}
.footer-separation {
        border: none;
        border-top: 1px solid black;
        width: 100%;
        left: 1%;
        margin: 50px 0; /* Si tu veux un espacement autour du trait */
        position: relative;
        top: 80px; /* Déplace le trait vers le haut */
    }

    .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    border: 0; /* Enlève la bordure */
}



/* pour afficher et masquer les icônes de apple et playstore */
@media (min-width: 575px) {
    .custom-icons {
        display: none !important;
    }
}

@media (max-width: 574px) {
    .custom-icons {
        display: flex !important;
    }
}

/* Media query pour les écrans jusqu'à 514px */
@media (max-width: 514px) {
    .panel {
        margin-top: 20px;  /* Ajoute plus d'espace au-dessus du texte */
    }
}

.uc-dropbarr {
    display: none; /* Cache le menu par défaut */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.uc-dropbarr.active {
    display: block; /* Affiche le menu */
    opacity: 1;
    transform: translateY(0);
}
#compteGratos:hover {
    background-color: #0460bc !important;
  }
  #start:hover {
    background-color: #0460bc !important;
  }
