/* Mobile-specific styles for modern UI */

/* Top bar enhancements */
.top-bar {
    padding: 8px 0;
}

.mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3dbcd3;
    color: white !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(61, 188, 211, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-call-btn i {
    font-size: 20px;
    color: white;
}

.mobile-call-btn:active {
    transform: scale(0.95);
    background-color: #2da8bd;
}

.touch-device .mobile-call-btn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s linear;
}

/* Base mobile styles */
@media (max-width: 767px) {
    body {
        font-size: 14px;
        line-height: 1.5;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header and navigation */
    #header {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .mobile-nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .mobile-nav-top .logo img {
        max-height: 35px;
    }
    
    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        border: none;
        color: #3dbcd3;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-toggle:active {
        transform: scale(0.95);
        background-color: rgba(61, 188, 211, 0.1);
    }
    
    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        z-index: 9999;
        background-color: white;
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-radius: 15px 0 0 15px;
        padding-top: 60px;
    }
    
    .mobile-nav-active .mobile-nav {
        right: 0;
    }
    
    .mobile-nav-active .mobile-nav-overly {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav-overly {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9998;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    
    .mobile-nav .drop-down > a:after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        padding-left: 10px;
        position: absolute;
        right: 15px;
        transition: transform 0.3s ease;
    }
    
    .mobile-nav .active.drop-down > a:after {
        transform: rotate(180deg);
    }
    
    .mobile-nav .drop-down > a {
        display: block;
        position: relative;
        color: #333;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .mobile-nav .drop-down ul {
        display: none;
        overflow: hidden;
        background-color: #f8f9fa;
        border-radius: 10px;
        margin: 10px 15px;
    }
    
    .mobile-nav .drop-down ul li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-nav .drop-down ul li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav .drop-down ul a {
        padding: 10px 20px;
        font-size: 14px;
        color: #555;
        display: block;
    }
    
    .mobile-nav .drop-down ul a:hover {
        background-color: rgba(61, 188, 211, 0.1);
        color: #3dbcd3;
    }
    
    /* Carousel enhancements */
    .carousel-item img {
        height: 200px;
        object-fit: cover;
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 40px;
        height: 40px;
        background: rgba(61, 188, 211, 0.7);
        border-radius: 50%;
        margin: auto 15px;
        opacity: 0.8;
    }
    
    .carousel-control-prev:hover, .carousel-control-next:hover {
        background: rgba(61, 188, 211, 0.9);
        opacity: 1;
    }
    
    /* Form elements */
    .form-control {
        height: 45px;
        border-radius: 22.5px;
        padding: 10px 20px;
        font-size: 14px;
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
    }
    
    .form-control:focus {
        border-color: #3dbcd3;
        box-shadow: 0 0 0 3px rgba(61, 188, 211, 0.25);
    }
    
    textarea.form-control {
        height: auto;
        border-radius: 15px;
    }
    
    .btn {
        border-radius: 22.5px;
        padding: 10px 25px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .btn-primary {
        background-color: #3dbcd3;
        border-color: #3dbcd3;
        box-shadow: 0 4px 10px rgba(61, 188, 211, 0.3);
    }
    
    .btn-primary:hover, .btn-primary:focus {
        background-color: #2da8bd;
        border-color: #2da8bd;
        box-shadow: 0 6px 15px rgba(61, 188, 211, 0.4);
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    /* Touch feedback */
    .touch-active {
        opacity: 0.8;
        transform: scale(0.98);
    }
    
    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    
    @keyframes slideOutRight {
        from { transform: translateX(0); }
        to { transform: translateX(100%); }
    }
    
    .navbar-slide-in {
        animation: slideInRight 0.3s forwards;
    }
    
    .navbar-slide-out {
        animation: slideOutRight 0.3s forwards;
    }
    
    /* Ripple effect */
    .ripple-effect {
        position: absolute;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        transform: scale(0);
        animation: ripple 0.6s linear;
        pointer-events: none;
    }
    
    @keyframes ripple {
        0% { transform: scale(0); opacity: 1; }
        100% { transform: scale(2); opacity: 0; }
    }
    
    /* Footer enhancements */
    footer {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    
    footer .footer-widget {
        padding-top: 20px;
    }
    
    footer .info {
        margin-bottom: 25px;
    }
    
    footer .info h5.title {
        font-size: 16px;
        margin-bottom: 15px;
        position: relative;
        padding-bottom: 10px;
    }
    
    footer .info h5.title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: #3dbcd3;
    }
    
    footer .info nav ul {
        padding-left: 0;
    }
    
    footer .info nav ul li {
        margin-bottom: 8px;
    }
    
    footer .info nav ul li a {
        color: #555;
        font-size: 14px;
        transition: all 0.3s ease;
        display: block;
        padding: 5px 0;
        position: relative;
    }
    
    footer .info nav ul li a:hover {
        color: #3dbcd3;
        padding-left: 5px;
    }
    
    footer .rejoignez-nous a {
        margin: 0 5px;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    footer .rejoignez-nous a:hover {
        transform: translateY(-3px);
    }
    
    footer .copyright {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 13px;
        text-align: center;
    }
    
    /* Back to top button */
    .back-to-top {
        position: fixed;
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
        background: #3dbcd3;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        box-shadow: 0 4px 15px rgba(61, 188, 211, 0.4);
        z-index: 99;
        transition: all 0.3s ease;
    }
    
    .back-to-top:hover {
        background: #2da8bd;
        box-shadow: 0 6px 20px rgba(61, 188, 211, 0.5);
    }
    
    .back-to-top:active {
        transform: scale(0.95);
    }
}