/* Variables de couleurs Untec */
:root {
    --untec-blue: #0084c7;
    --untec-green: #a4d65e;
    --untec-dark-blue: #00669a;
    --untec-light-blue: #4db8e8;
    --untec-gradient: linear-gradient(135deg, #0084c7 0%, #a4d65e 100%);
    --untec-gradient-alt: linear-gradient(135deg, #00669a 0%, #0084c7 100%);
}

/* Harmonisation des boutons avec style login - CORRIGÉ */
.optech-default-btn {
    background: linear-gradient(135deg, var(--untec-blue) 0%, var(--untec-light-blue) 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.875rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 4px 15px rgba(0, 132, 199, 0.25) !important;
    /* FIX: Assurer une hauteur stable et un texte centré */
    min-height: 52px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

/* FIX: Assurer que le contenu du bouton reste stable */
.optech-default-btn .btn-wraper {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
}

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

/* FIX: Supprimer le translateY qui cause le décalage */
.optech-default-btn:hover {
    background: linear-gradient(135deg, var(--untec-dark-blue) 0%, var(--untec-blue) 100%) !important;
    /* transform: translateY(-2px) !important; SUPPRIMÉ */
    box-shadow: 0 8px 20px rgba(0, 132, 199, 0.45) !important;
    color: white !important;
    text-decoration: none !important;
}

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

/* FIX: Supprimer aussi le translateY de l'état active */
.optech-default-btn:active {
    /* transform: translateY(-1px) !important; SUPPRIMÉ */
    box-shadow: 0 6px 18px rgba(0, 132, 199, 0.35) !important;
}

/* CTA Button blanc avec même style - CORRIGÉ */
.cta-btn-white {
    background: white !important;
    color: var(--untec-blue) !important;
    padding: 0.875rem 2rem !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    border: 2px solid transparent !important;
    /* FIX: Assurer une hauteur stable et un texte centré */
    min-height: 52px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.cta-btn-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(164, 214, 94, 0.2), transparent);
    transition: left 0.5s ease;
}

/* FIX: Supprimer le translateY qui cause le décalage */
.cta-btn-white:hover {
    background: var(--untec-green) !important;
    color: white !important;
    /* transform: translateY(-2px) !important; SUPPRIMÉ */
    box-shadow: 0 8px 20px rgba(164, 214, 94, 0.5) !important;
    text-decoration: none !important;
    border-color: var(--untec-green) !important;
}

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

/* FIX: Supprimer aussi le translateY de l'état active */
.cta-btn-white:active {
    /* transform: translateY(-1px) !important; SUPPRIMÉ */
    box-shadow: 0 6px 18px rgba(164, 214, 94, 0.4) !important;
}

/* Améliorations subtiles pour fluidité et performance */
.optech-hero-section6 {
    scroll-behavior: smooth;
}

.optech-thumb img,
.optech-thumb-position img {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.optech-thumb:hover img {
    transform: scale(1.02);
}

.optech-main-field input,
.optech-main-field textarea {
    transition: all 0.3s ease !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    background: #f8f9fa !important;
}

.optech-main-field input:focus,
.optech-main-field textarea:focus {
    border-color: var(--untec-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 199, 0.1) !important;
    background: white !important;
    outline: none !important;
    /* FIX: Supprimer le translateY du focus aussi */
    /* transform: translateY(-1px) !important; SUPPRIMÉ */
}

.section {
    scroll-margin-top: 80px;
}

/* Amélioration de la section statistiques avec couleurs Untec */
.stats-section {
    background: var(--untec-gradient) !important;
    padding: 60px 0 !important;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Amélioration de la liste des fonctionnalités avec couleurs Untec - CORRIGÉ */
.optech-default-content ul li {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: rgba(0, 132, 199, 0.05) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid var(--untec-green) !important;
    list-style: none !important;
}

/* FIX: Supprimer le translateX qui peut causer des décalages */
.optech-default-content ul li:hover {
    background: rgba(0, 132, 199, 0.1) !important;
    /* transform: translateX(5px) !important; SUPPRIMÉ */
    border-left-color: var(--untec-blue) !important;
    box-shadow: 0 2px 8px rgba(0, 132, 199, 0.15) !important;
}

.optech-default-content ul li i {
    margin-right: 15px !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
}

/* Couleurs Untec pour les textes primaires */
.text-primary {
    color: var(--untec-blue) !important;
}

/* Amélioration du formulaire de contact */
.optech-main-form {
    border-radius: 15px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

/* Animation smooth pour les ancres */
html {
    scroll-behavior: smooth;
}

/* Section vidéo stylisée */
.video-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    overflow: hidden;
    padding: 80px 0 !important;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.video-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--untec-blue) 0%, var(--untec-green) 100%);
}

.video-header {
    text-align: center;
    margin-bottom: 30px;
}

.video-header h2 {
    color: var(--untec-dark-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.video-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--untec-gradient);
    border-radius: 2px;
}

.video-header p {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #000;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--untec-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.video-wrapper:hover::before {
    opacity: 0.1;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--untec-gradient);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 132, 199, 0.3);
}

.video-wrapper:hover .video-play-overlay {
    opacity: 0.9;
}

.video-play-overlay i {
    color: white;
    font-size: 2rem;
    margin-left: 4px;
}

/* Styles pour la nouvelle section contact avec couleurs Untec */
.contact-cta-card {
    background: var(--untec-gradient) !important;
    color: white !important;
    text-align: center !important;
    border-radius: 20px !important;
    padding: 50px 40px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(0, 132, 199, 0.2) !important;
}

.contact-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.contact-cta-card h3 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 2 !important;
    color: white !important;
}

.contact-cta-card p {
    font-size: 1.1rem !important;
    opacity: 0.9 !important;
    margin-bottom: 30px !important;
    position: relative !important;
    z-index: 2 !important;
    color: white !important;
}

.stats-mini-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    position: relative !important;
    z-index: 2 !important;
}

.stat-mini-item {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(10px) !important;
    padding: 20px 15px !important;
    border-radius: 15px !important;
    text-align: center !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    transition: all 0.3s ease !important;
}

/* FIX: Supprimer le translateY des mini-stats */
.stat-mini-item:hover {
    background: rgba(255,255,255,0.25) !important;
    /* transform: translateY(-2px) !important; SUPPRIMÉ */
    box-shadow: 0 4px 12px rgba(255,255,255,0.2) !important;
}

.stat-mini-number {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    display: block !important;
    margin-bottom: 5px !important;
    color: white !important;
}

.stat-mini-label {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
    color: white !important;
}

.contact-info-enhanced {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.contact-info-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--untec-blue) 0%, var(--untec-green) 100%);
}

.contact-info-item {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: rgba(0, 132, 199, 0.05) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid var(--untec-green) !important;
}

/* FIX: Supprimer le translateX des contact-info-item */
.contact-info-item:hover {
    background: rgba(0, 132, 199, 0.1) !important;
    /* transform: translateX(5px) !important; SUPPRIMÉ */
    border-left-color: var(--untec-blue) !important;
    box-shadow: 0 2px 8px rgba(0, 132, 199, 0.15) !important;
}

.contact-info-item:last-child {
    margin-bottom: 0 !important;
}

.contact-info-item i {
    font-size: 2rem !important;
    color: var(--untec-blue) !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
    margin-top: 5px !important;
}

.contact-info-item h5 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: var(--untec-dark-blue) !important;
}

.contact-info-item p {
    color: #6c757d !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

.contact-info-item a {
    color: var(--untec-blue) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.contact-info-item a:hover {
    color: var(--untec-green) !important;
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .optech-hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .optech-hero-content h4 {
        font-size: 1.2rem !important;
    }
    
    .ml40, .mr40 {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    
    .ml60 {
        margin-left: 20px !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }

    .contact-cta-card {
        padding: 40px 20px !important;
        margin-bottom: 30px !important;
    }
    
    .contact-cta-card h3 {
        font-size: 1.8rem !important;
    }
    
    .contact-info-enhanced {
        padding: 30px 20px !important;
    }

    .stats-mini-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .stat-mini-number {
        font-size: 1.5rem !important;
    }

    .video-container {
        padding: 20px !important;
        margin: 0 20px !important;
    }

    .video-header h2 {
        font-size: 2rem !important;
    }

    .video-play-overlay {
        width: 60px !important;
        height: 60px !important;
    }

    .video-play-overlay i {
        font-size: 1.5rem !important;
    }

    .optech-default-btn,
    .cta-btn-white {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        /* FIX: Assurer une hauteur stable en responsive */
        min-height: 48px !important;
        /* FIX: Assurer un affichage correct des boutons sur mobile */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Corrections d'affichage critiques */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6, .col-md-6, .col-lg-3, .col-md-4, .col-sm-12 {
    padding: 0 15px;
    box-sizing: border-box;
}

.col-lg-6 {
    width: 50%;
}

.col-lg-3 {
    width: 25%;
}

@media (max-width: 768px) {
    .col-lg-6, .col-lg-3, .col-md-6, .col-md-4 {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* Fixes pour les sections qui ne s'affichent pas */
.section {
    display: block !important;
    position: relative !important;
}

.optech-section-padding {
    padding: 80px 0 !important;
}

.large-padding-tb4 {
    padding: 100px 0 !important;
}

.bg-light1 {
    background-color: #f8f9fa !important;
}

/* Fix pour la vidéo */
video {
    max-width: 100% !important;
    height: auto !important;
}
</style>
