/* Responsive Design */
/* Large Screens */
@media (max-width: 1200px) {
    .slogan-floating-box {
        width: 90%;
        max-width: 550px;
        padding: 2rem;
    }
    
    .floating-logo-img {
        height: 45px;
    }
    
    .slogan-floating-box h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) {
    .services-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slogan-floating-box {
        bottom: 8%;
        width: 90%;
        max-width: 500px;
    }
    
    .slogan-floating-box h1 {
        font-size: 2rem;
    }
}

/* Boutons flottants */
@media (max-width: 992px) {
    .floating-call-button,
    .floating-message-button {
        display: flex;
    }
    
    /* Masquer le bouton CTA dans la boîte flottante */
    .slogan-floating-box .cta-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu ul li a {
        color: #233dff;
    }
    
    .nav-menu ul li a::after {
        background-color: #233dff;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu ul li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .slogan-floating-box {
        bottom: 5%;
        width: 95%;
        padding: 1.5rem;
    }
    
    .floating-logo-img {
        height: 40px;
    }
    
    .floating-box-logo {
        margin-bottom: 1rem;
    }
    
    .slogan-floating-box h1 {
        font-size: 1.8rem;
    }
    
    .slogan-floating-box p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .slogan-floating-box .cta-container {
        margin-top: 1rem;
    }
    
    .slogan-floating-box .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        height: auto;
        min-height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: -1;
    }

    .phone-number {
        display: none;
    }

    .nav-menu .mobile-phone {
        display: block !important;
    }

    .mobile-phone a {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }

    .mobile-phone i {
        color: #233dff;
        margin-right: 5px;
    }

    .cta-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 999;
    }

    .phone-button {
        display: inline-flex !important;
        min-width: 200px;
        justify-content: center;
        margin: 0;
    }

    .cta-button {
        min-width: 200px;
        text-align: center;
    }

    .partners-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .partner-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slogan-floating-box {
        padding: 1.2rem;
        bottom: 3%;
    }
    
    .floating-box-logo {
        margin-bottom: 0.7rem;
    }
    
    .floating-logo-img {
        height: 35px;
    }
    
    .slogan-floating-box h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .slogan-floating-box p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .slogan-floating-box .cta-container {
        margin-top: 1rem;
    }
    
    .slogan-floating-box .cta-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Extra Small Screens */
@media (max-width: 320px) {
    .slogan-floating-box {
        padding: 1rem;
        bottom: 2%;
    }
    
    .floating-box-logo {
        margin-bottom: 0.5rem;
    }
    
    .floating-logo-img {
        height: 30px;
    }
    
    .slogan-floating-box h1 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .slogan-floating-box p {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .slogan-floating-box .cta-container {
        margin-top: 0.8rem;
    }
    
    .slogan-floating-box .cta-button {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .services h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-bottom: 20px;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Styles pour le numéro de téléphone */
.phone-number {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: rgba(35, 61, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.5rem;
}

.phone-number i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.phone-number:hover {
    background-color: rgba(35, 61, 255, 0.4);
}

.mobile-phone {
    display: none !important;
}

/* Styles pour les boutons CTA */
.cta-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.phone-button {
    display: none;
    align-items: center;
    padding: 12px 24px;
    background-color: white;
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.phone-button i {
    margin-right: 8px;
}

.phone-button:hover {
    background-color: var(--dark-bg);
    color: white;
}
