/* Police personnalisée EasyMob */
@font-face {
    font-family: 'Goodly';
    src: url('../fonts/Goodly-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Application de la police Goodly */
body, h1, h2, h3, h4, h5, h6, p, .btn, input, textarea {
    font-family: 'Goodly', 'Poppins', sans-serif !important;
}

/* Fond avec les vraies couleurs de l'ébauche flow-ai-site */
body {
    background: linear-gradient(135deg, #0f1b3a 0%, #1a2951 25%, #2c4a7a 50%, #1a2951 75%, #0f1b3a 100%) !important;
    color: #171a20;
    min-height: 100vh;
}

/* Style vidéo de fond - Position parfaite pour voir tous les bords */
#bg-video {
    object-fit: cover;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
    position: fixed;
    top: 25%; /* Position optimale pour voir tous les bords arrondis */
    left: 50%;
    width: 50%; 
    height: 35%; 
    transform: translate(-50%, -50%);
    z-index: -100;
    border-radius: 20px;
}

/* Style pour le bouton - Taille ajustée */
.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
    color: #0f1b3a !important;
    border: none !important;
    font-family: 'Goodly', sans-serif !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 1px;
    border-radius: 12px !important;
    padding: 12px 28px !important; /* Réduit de 14px 32px à 12px 28px */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(135deg, #ffffff 0%, #e8ecf7 100%) !important;
    color: #0f1b3a !important;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Style pour le champ email - Taille réduite pour meilleur affichage */
.form-control {
    font-family: 'Goodly', sans-serif !important;
    width: 100% !important;
    padding: 14px 20px !important; /* Réduit de 18px 24px à 14px 20px */
    font-size: 0.9rem !important; /* Réduit de 1.1rem à 0.9rem */
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

/* Style pour le sous-titre - Couleur blanche comme newsletter */
.heading p {
    font-family: 'Goodly', sans-serif !important;
    color: white !important;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Formulaire en ligne - Parfaitement centré */
.form-inline {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    width: 100% !important;
}

.form-inline .form-group {
    margin: 0 !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 250px !important;
    max-width: 300px !important;
}

.form-inline .form-control {
    width: 100% !important;
}

.form-inline .btn-primary {
    flex-shrink: 0 !important;
    min-width: 200px !important;
    margin: 0 !important;
}

/* Conteneur principal - REPOSITIONNÉ entre vidéo et icônes sociales */
.content-wrapper {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 24px !important;
    padding: 30px !important; /* Réduit de 60px à 30px pour moins de hauteur */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    position: fixed;
    z-index: 10;
    bottom: 25%; /* Repositionné plus bas : de 15% à 25% pour être entre vidéo et icônes */
    left: 50%;
    transform: translateX(-50%);
    width: 98%; /* Légèrement plus large : de 90% à 98% */
    max-width: 650px; /* Légèrement plus large : de 600px à 650px */
}

/* Réseaux sociaux - Style exact de flow-ai-site avec vraies icônes FontAwesome */
.social-networks {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.social-networks a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-networks a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 74, 122, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-networks a i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.social-networks a:hover i {
    transform: scale(1.1);
}

/* Couleurs spécifiques pour chaque réseau social au hover */
.social-networks a.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-networks a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-networks a.linkedin:hover {
    background: #0077b5;
    color: white;
}

.social-networks a.tiktok:hover {
    background: #000000;
    color: white;
}

.social-networks a.twitter:hover {
    background: #000000; /* Couleur X (ex-Twitter) */
    color: white;
}

.social-networks a.youtube:hover {
    background: #ff0000;
    color: white;
}

/* Responsive pour mobile - AJUSTEMENTS OPTIMISÉS selon spécifications */
@media (max-width: 768px) {
    .content-wrapper {
        bottom: 18% !important; /* ABAISSÉ de 25% à 18% pour meilleur placement entre vidéo et icônes */
        width: 85% !important; /* ÉLARGI de 78% à 85% pour plus de lisibilité */
        padding: 25px 20px !important; /* RÉDUIT de 30px à 25px pour moins de hauteur */
        border-radius: 16px !important;
        max-width: none !important;
    }
    
    #bg-video {
        width: 70% !important; 
        height: 25% !important; 
        top: 20% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .social-networks {
        bottom: 8% !important; /* ABAISSÉES de 12% à 8% pour plus d'espace avec le formulaire */
        gap: 12px;
    }
    
    .social-networks a {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .social-networks a i {
        font-size: 22px;
    }
    
    .social-networks a:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.3) !important;
    }
    
    .form-inline {
        flex-direction: column !important;
        gap: 12px !important; /* RÉDUIT de 15px à 12px */
    }
    
    .form-inline .form-group {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        padding: 10px 18px !important; /* RÉDUIT de 12px 20px à 10px 18px */
        font-size: 0.85rem !important; /* RÉDUIT de 0.9rem à 0.85rem */
        text-align: center !important;
    }
    
    .form-control {
        padding: 12px 14px !important; /* RÉDUIT de 14px 16px à 12px 14px */
        font-size: 0.9rem !important; /* RÉDUIT de 1rem à 0.9rem */
    }
    
    .heading p {
        font-size: 18px !important;
        margin-bottom: 18px !important; /* RÉDUIT de 20px à 18px */
    }
    
    /* NOUVEAU : Formulaire avec ligne pour prénom/nom plus compacte */
    .form-row {
        gap: 10px !important; /* RÉDUIT de 15px à 10px */
        margin-bottom: 12px !important; /* RÉDUIT de 15px à 12px */
    }
    
    /* NOUVEAU : Case à cocher plus compacte */
    .form-group label {
        font-size: 13px !important; /* RÉDUIT pour économiser l'espace */
        margin-bottom: 15px !important; /* RÉDUIT de 20px à 15px */
    }
}

/* Responsive pour tablette */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-wrapper {
        bottom: 18% !important;
        width: 85% !important;
    }
    
    #bg-video {
        width: 60% !important;
        height: 30% !important;
        top: 23% !important; /* Ajustée pour tablette */
    }
    
    .form-inline .form-group {
        min-width: 220px !important;
        max-width: 250px !important;
    }
}

/* Desktop - Positionnement avec formulaire EN DESSOUS de la vidéo */
@media (min-width: 1025px) {
    .form-inline {
        justify-content: center !important;
    }
    
    .form-inline .form-group {
        margin-right: 15px !important;
    }
    
    .form-inline .btn-primary {
        margin-left: 0 !important;
    }
    
    #bg-video {
        top: 25% !important; /* Position parfaite pour voir tous les bords arrondis */
        width: 50% !important;
        height: 35% !important;
    }
    
    .content-wrapper {
        bottom: 15% !important; /* Formulaire EN DESSOUS de la vidéo */
    }
    
    .social-networks {
        bottom: 30px !important; /* Position normale sur desktop */
    }
    
    .social-networks a {
        width: 44px;
        height: 44px;
    }
    
    .social-networks a i {
        font-size: 20px;
    }
}

/* Suppression de l'effet parallax */
.cd-floating-background {
    transform: none !important;
}

.layer {
    transform: none !important;
}

/* Message de confirmation avec couleurs blanches */
#form-message {
    font-family: 'Goodly', sans-serif !important;
}

#form-message p {
    color: white !important;
}
/* Ajouts pour mentions légales et optimisations mobiles */

/* Réseaux sociaux - Position légèrement remontée */
.social-networks {
    position: fixed;
    bottom: 25px !important; /* Remonté de 20px vers 25px */
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

/* Mobile - Remonter le formulaire et les icônes */
@media (max-width: 768px) {
    .content-wrapper {
        margin-top: -30px !important; /* Remonte le formulaire */
    }
    
    .social-networks {
        bottom: 35px !important; /* Remonte les icônes sur mobile */
        right: 20px;
        gap: 10px;
    }
    
    .social-networks a {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}

/* Lien mentions légales */
#legal-link:hover {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: underline !important;
}

/* Popup mentions légales */
.legal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.legal-popup-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.legal-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.legal-popup-body {
    color: white;
    font-family: 'Goodly', sans-serif;
    line-height: 1.6;
}

.legal-popup-body h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.legal-popup-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.legal-popup-body p {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive pour le popup */
@media (max-width: 768px) {
    .legal-popup-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .legal-popup-body h2 {
        font-size: 18px;
    }
    
    .legal-popup-body h3 {
        font-size: 15px;
    }
    
    .legal-popup-body p {
        font-size: 13px;
    }
}

/* Empêcher le scroll du body quand le popup est ouvert */
body.popup-open {
    overflow: hidden;
}

/* Animation du bouton lors du loading */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Lien mentions légales positionné SOUS les icônes */
.legal-link-bottom {
    position: fixed;
    bottom: 15px;
    right: 25px;
    text-align: center;
    z-index: 999;
}

.legal-link-bottom #legal-link:hover {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: underline !important;
}

/* Popup mentions légales avec MÊME transparence que le formulaire */
.legal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.legal-popup-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    /* MÊME STYLE que le formulaire */
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.legal-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.legal-popup-body {
    color: white;
    font-family: 'Goodly', sans-serif;
    line-height: 1.6;
}

.legal-popup-body h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.legal-popup-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.legal-popup-body p {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .legal-link-bottom {
        bottom: 10px;
        right: 20px;
    }
    
    .legal-popup-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .legal-popup-body h2 {
        font-size: 18px;
    }
    
    .legal-popup-body h3 {
        font-size: 15px;
    }
    
    .legal-popup-body p {
        font-size: 13px;
    }
}

/* Empêcher le scroll du body quand le popup est ouvert */
body.popup-open {
    overflow: hidden;
}

/* Suppression des conflits - nettoyage du CSS */

/* Réseaux sociaux - EXACTEMENT comme index-FINAL-POLISHED.html */
/* Annulation des autres définitions conflictuelles */
.social-networks {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 15px !important;
    z-index: 20 !important;
    /* ANNULE les autres définitions conflictuelles */
    right: auto !important;
    flex-direction: row !important;
}

.social-networks a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.social-networks a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(44, 74, 122, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.social-networks a i {
    font-size: 20px !important;
    transition: transform 0.3s ease !important;
}

.social-networks a:hover i {
    transform: scale(1.1) !important;
}

/* Mentions légales centrées SOUS les icônes */
.legal-link-centered {
    position: fixed !important;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    z-index: 21 !important;
}

.legal-link-centered #legal-link:hover {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: underline !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .social-networks {
        bottom: 12% !important;
        gap: 12px !important;
    }
    
    .social-networks a {
        width: 50px !important;
        height: 50px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .social-networks a i {
        font-size: 22px !important;
    }
    
    .legal-link-centered {
        bottom: 8% !important;
    }
}

/* Popup mentions légales avec MÊME transparence que le formulaire */
.legal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.legal-popup-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    /* MÊME STYLE que le formulaire */
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.legal-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.legal-popup-body {
    color: white;
    font-family: 'Goodly', sans-serif;
    line-height: 1.6;
}

.legal-popup-body h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.legal-popup-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.legal-popup-body p {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive pour le popup */
@media (max-width: 768px) {
    .legal-popup-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .legal-popup-body h2 {
        font-size: 18px;
    }
    
    .legal-popup-body h3 {
        font-size: 15px;
    }
    
    .legal-popup-body p {
        font-size: 13px;
    }
}

/* Empêcher le scroll du body quand le popup est ouvert */
body.popup-open {
    overflow: hidden;
}
