/* BTECH - styles personnalises */

/* Fix débordement horizontal mobile */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    body {
        position: relative;
    }
    
    /* Fix pour cd-words-wrapper */
    .cd-words-wrapper {
        width: auto !important;
        max-width: 100% !important;
    }
    
    /* Fix pour tous les éléments qui pourraient déborder */
    section, div, header, footer, main {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Fix pour les fonts et icônes Font Awesome */
@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
    src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
         url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
         url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
         url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Fallback pour les icônes Font Awesome */
.fa, .icon-font-box .fa {
    font-family: 'FontAwesome', 'Font Awesome 5 Free', sans-serif !important;
}

/* Fix pour la section hero - Hauteur 550px */
.ico-bg2 {
    min-height: 550px !important;
    height: 550px !important;
}

@media (max-width: 767px) {
    .ico-bg2 {
        min-height: auto !important;
        height: auto !important;
        padding: 80px 0 40px !important;
    }
}

.hero-section-content {
    height: 550px !important;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .hero-section-content {
        height: auto !important;
        min-height: auto !important;
        padding: 20px 0 !important;
    }
}

/* Fix pour l'image hero */
.hero-image-container {
    position: relative;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.animated-hero-img {
    width: 100% !important;
    height: auto !important;
    max-width: 500px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 auto;
}

.city-img {
    position: relative;
    bottom: 0;
}

/* Margin-top pour les blocs de services */
.services-block-four {
    margin-top: 20px !important;
}

/* Styles pour pricing_tenzin */
.pricing_tenzin {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin: 40px 0;
}

.pricing_item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pricing_item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing_item.dark_gray {
    background: #f8f9fa;
}

.pricing_title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.pricing_item.active .pricing_title {
    color: white;
}

.pricing_price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #667eea;
}

.pricing_item.active .pricing_price {
    color: white;
}

.pricing_currency {
    font-size: 28px;
}

.pricing_sentence {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pricing_item.active .pricing_sentence {
    color: rgba(255, 255, 255, 0.9);
}

.pricing_list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    flex: 1;
}

.pricing_feature {
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.pricing_feature:last-child {
    border-bottom: none;
}

.pricing_item.active .pricing_feature {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing_action {
    display: block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing_action:hover {
    background: #5568d3;
    transform: scale(1.05);
    color: white;
}

.pricing_item.active .pricing_action {
    background: white;
    color: #667eea;
}

.pricing_item.active .pricing_action:hover {
    background: #ffd700;
    color: #000;
}

@media (max-width: 768px) {
    .pricing_tenzin {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing_item {
        max-width: 100%;
        width: 100%;
    }
    
    .pricing_item.active {
        transform: scale(1);
    }
}

/* Styles pour la section projets/portfolio */
#projets {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

#projets .title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #667eea;
    margin-bottom: 10px;
}

#projets .heading {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
}

.work-filter {
    margin-bottom: 50px;
}

.work-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-filter li {
    display: inline-block;
    margin: 0 15px;
}

.work-filter .filter {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.work-filter .filter:hover,
.work-filter .filter.active {
    background: #667eea;
    color: white;
}

.project-wrapper {
    padding: 0;
}

.zerogrid {
    width: 100%;
}

.wrap-container {
    width: 100%;
}

.wrap-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.col-1-2 {
    width: 50%;
    padding: 0;
    float: left;
}

.col-2-4 {
    width: 25%;
    padding: 0;
    float: left;
}

.col-1-4 {
    width: 25%;
    padding: 0;
    float: left;
}

.wrap-content::after {
    content: "";
    display: table;
    clear: both;
}

.col-full {
    width: 100%;
}

.wrap-col {
    position: relative;
    overflow: hidden;
}

.item-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.col-1-2 .item-container {
    height: 500px;
}

.col-2-4 .item-container {
    height: 400px;
}

.col-1-4 .item-container {
    height: 400px;
}

.item-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.item-container:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    color: white;
    z-index: 10;
}

.item-container:hover .overlay {
    opacity: 1;
}

.overlay-inner {
    text-align: center;
    padding: 30px 20px;
    width: 100%;
    color: white !important;
}

.overlay-inner h4.base {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.overlay-inner .line {
    width: 60px;
    height: 3px;
    background: white;
    margin: 15px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.overlay-inner p {
    font-size: 16px;
    color: white !important;
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.overlay-inner * {
    color: white !important;
}

.overlay-inner div {
    color: white !important;
}

.overlay-inner div div {
    color: white !important;
}

.overlay-inner div[style*="font-size: 24px"],
.overlay-inner div[style*="font-size: 18px"],
.overlay-inner div[style*="font-size: 32px"] {
    color: white !important;
}

.overlay-inner div[style*="font-size: 11px"],
.overlay-inner div[style*="font-size: 10px"],
.overlay-inner div[style*="font-size: 12px"],
.overlay-inner div[style*="font-size: 14px"] {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Force white on all text elements */
.overlay,
.overlay a,
.overlay a *,
.overlay-inner,
.overlay-inner *,
.overlay-inner p,
.overlay-inner div,
.overlay-inner span,
.overlay-inner h1,
.overlay-inner h2,
.overlay-inner h3,
.overlay-inner h4,
.overlay-inner h4.base,
.overlay-inner h5,
.overlay-inner h6 {
    color: white !important;
}

/* Force white even with inline styles */
.overlay-inner [style*="color"] {
    color: white !important;
}

.overlay-inner div[style*="color"] {
    color: white !important;
}

.overlay-inner div div[style*="color"] {
    color: white !important;
}

.overlay-inner div div[style*="color: rgba"] {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Ultra spécifique pour forcer le blanc sur tous les éléments */
a.overlay .overlay-inner *,
a.overlay.text-center .overlay-inner *,
.item-container .overlay .overlay-inner *,
.item-container .overlay a .overlay-inner * {
    color: white !important;
}

/* Force white on nested divs with inline styles */
.overlay-inner > div > div,
.overlay-inner > div > div > div {
    color: white !important;
}

.overlay-inner > div > div > div[style*="font-size: 11px"],
.overlay-inner > div > div > div[style*="font-size: 10px"],
.overlay-inner > div > div > div[style*="font-size: 12px"] {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Règle ultra-spécifique pour Onglink et tous les overlays */
a.overlay[href*="onglink"] .overlay-inner *,
a.overlay[href*="senelec"] .overlay-inner *,
a.overlay[href*="kelibacafe"] .overlay-inner *,
a.overlay[href*="sofamac"] .overlay-inner *,
a.overlay[href*="parisitservices"] .overlay-inner *,
a.overlay[href*="immocom"] .overlay-inner * {
    color: white !important;
}

/* Force white on all divs inside overlay-inner */
.overlay-inner div[style*="display: flex"] *,
.overlay-inner div[style*="flex: 1"] *,
.overlay-inner div[style*="min-width"] * {
    color: white !important;
}

/* Force white on all nested elements */
.overlay-inner div div div {
    color: white !important;
}

.overlay-inner div div div[style*="font-size: 24px"],
.overlay-inner div div div[style*="font-size: 18px"],
.overlay-inner div div div[style*="font-size: 32px"] {
    color: white !important;
}

.overlay-inner div div div[style*="font-size: 11px"],
.overlay-inner div div div[style*="font-size: 10px"],
.overlay-inner div div div[style*="font-size: 12px"],
.overlay-inner div div div[style*="font-size: 14px"] {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Détails projet: texte blanc pur */
.item-container .overlay .overlay-inner,
.item-container .overlay .overlay-inner * {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Corrige le texte gris dans les détails projet */
#projets .item-container .overlay:after {
    content: none !important;
    display: none !important;
}

#projets .item-container .overlay {
    background: rgba(102, 126, 234, 0.96) !important;
}

#projets .item-container .overlay-inner {
    position: relative;
    z-index: 2;
}

/* Dernière règle pour forcer le blanc - priorité maximale */
.item-container .overlay .overlay-inner,
.item-container .overlay .overlay-inner *,
.item-container .overlay .overlay-inner p,
.item-container .overlay .overlay-inner div,
.item-container .overlay .overlay-inner div div,
.item-container .overlay .overlay-inner div div div,
.item-container .overlay .overlay-inner div div div div {
    color: white !important;
}

/* Force white even with inline styles - override everything */
.overlay-inner [style],
.overlay-inner [style] *,
.overlay-inner div[style],
.overlay-inner div[style] *,
.overlay-inner div div[style],
.overlay-inner div div[style] *,
.overlay-inner div div div[style],
.overlay-inner div div div[style] * {
    color: white !important;
}

.mix.work-item {
    display: inline-block;
}

@media (max-width: 768px) {
    .col-1-2,
    .col-2-4,
    .col-1-4 {
        width: 100%;
    }
    
    .work-filter li {
        display: block;
        margin: 10px 0;
    }
}

/* Fix pour le preloader - masquer après chargement */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4834d4;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fix pour les images SVG d'arrière-plan */
.ico-about-bg {
    background: url(https://btech.sn/img/svg/ico-about-bg.svg) no-repeat center center !important;
    background-size: cover !important;
    background-color: #eff4ff !important;
}

.striples-bg {
    position: relative !important;
}

.striples-bg:before {
    content: '' !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    background: url(https://btech.sn/img/svg/striples-bg.svg) no-repeat top center !important;
    background-size: cover !important;
    z-index: 0 !important;
    -webkit-animation: floating2 7s infinite;
    animation: floating2 7s infinite;
}

@keyframes floating2 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@-webkit-keyframes floating2 {
    0% {
        -webkit-transform: translateY(0px);
    }
    50% {
        -webkit-transform: translateY(15px);
    }
    100% {
        -webkit-transform: translateY(0px);
    }
}

.striples-bg > * {
    position: relative;
    z-index: 1;
}

/* Messages de notification flottants */
.floating-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease-out;
}

.floating-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid #1e7e34;
}

.floating-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border: 1px solid #bd2130;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Styles pour la section Chiffres Clés */
.no-gradient {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: rgb(17, 22, 191) !important;
    color: rgb(17, 22, 191) !important;
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3) !important;
}

.stat-number {
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour Chiffres Clés */
@media (max-width: 767px) {
    .stat-card {
        padding: 20px 15px !important;
    }
    
    .stat-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .stat-icon i {
        font-size: 28px !important;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
    
    .stat-label {
        font-size: 14px !important;
    }
}

/* Styles pour les overlays avec statistiques */
.overlay-inner {
    padding: 20px 15px;
}

@media (max-width: 767px) {
    .overlay-inner {
        padding: 15px 10px;
    }
    
    .overlay-inner h4.base {
        font-size: 20px !important;
    }
    
    .overlay-inner p {
        font-size: 12px !important;
    }
    
    .overlay-inner div[style*="font-size: 24px"] {
        font-size: 18px !important;
    }
    
    .overlay-inner div[style*="font-size: 11px"] {
        font-size: 10px !important;
    }
}

/* Footer refresh */
.footer-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
}

.footer-link-item {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
}

.footer-link-item:hover {
    color: #ffffff;
}

.footer-contact-item {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 7px;
}

/* Hero CTA: différencier formulaire vs WhatsApp */
.hero-cta-form {
    background: linear-gradient(135deg, #ff5f9e 0%, #ff4f8b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.hero-cta-whatsapp {
    background: linear-gradient(135deg, #11c98d 0%, #3a7bff 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
}

.hero-cta-form:hover,
.hero-cta-whatsapp:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Caché par défaut (desktop) */
.mobile-menu-close-btn {
    display: none !important;
}

@media (max-width: 767px) {
    .dream-btn-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
    }

    .dream-btn-group .more-btn {
        width: 100%;
        margin-right: 0 !important;
        text-align: center;
        font-size: 13px;
        letter-spacing: 0.4px;
    }
}

/* Correctif menu mobile coupé */
@media (max-width: 991px) {
    .classy-nav-container .classy-navbar .classy-menu {
        width: 100vw !important;
        left: -100vw !important;
        right: auto !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        z-index: 200000 !important;
        background: #1f2d6a !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .classy-nav-container .classy-navbar .classy-menu.menu-on {
        left: 0 !important;
    }

    .classy-nav-container,
    .header-area,
    .classy-navbar {
        overflow: visible !important;
    }

    .classy-nav-container .classynav {
        position: relative;
        z-index: 200001 !important;
        min-height: 100vh;
        background: #1f2d6a !important;
    }

    .classy-nav-container .classynav > ul > li > a {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .mobile-menu-close-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-size: 26px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 200002;
        display: flex !important;
    }

    /* Evite la double icone "X" dans le header/menu */
    .classy-menu .classycloseIcon {
        display: none !important;
    }
}