/* ========================================
   MODERN INDIAG DESIGN SYSTEM 2024
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --primary: #1a365d;
    --primary-light: #2d5a8a;
    --primary-dark: #0f1b2e;
    --accent: #3182ce;
    
    /* Phone CTA Colors */
    --phone-color: #0ea5e9;
    --phone-hover: #0284c7;
    --phone-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    margin: 0;
    padding: 0;
    padding-top: 76px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

.home-page {
    padding-top: 0;
}

/* ========================================
   PRÉVENTION SCROLL HORIZONTAL
   ======================================== */

/* Empêcher les rows Bootstrap de déborder */
.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

/* Contraindre les images et médias */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* ========================================
   NAVIGATION - Modern & Clean
   ======================================== */

.navbar {
    background: var(--primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--gray-200);
}

.navbar-brand {
    font-weight: 700;
    color: var(--white) !important;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 48px;
    margin-right: 12px;
    transition: transform 0.2s ease;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--phone-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Navbar Toggler - Blanc */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* ========================================
   PHONE CTA - Primary Action
   ======================================== */

.phone-cta {
    background: linear-gradient(135deg, var(--phone-color), var(--phone-hover));
    color: var(--white) !important;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--phone-shadow);
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
}

.phone-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
    color: var(--white) !important;
    text-decoration: none;
}

.phone-cta i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    color: var(--white) !important;
}

/* Force white color for all phone CTA content */
.phone-cta * {
    color: var(--white) !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========================================
   HERO SECTION - Modern & Impactful
   ======================================== */

.hero-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.display-4 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1.1;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================================
   CARDS & SERVICES - Modern Glass Effect
   ======================================== */

.services-section {
    padding: 5rem 0;
    position: relative;
}

/* Service Card - Complete Rewrite */
.service-card {
    /* Base styling */
    display: block;
    position: relative;
    height: 100%;
    padding: 2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    
    /* Modern appearance */
    background: #ffffff;
    border: 1px solid rgba(49, 130, 206, 0.1);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 
                0 1px 3px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    
    /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Text styling */
    color: var(--gray-800);
    text-decoration: none;
    
    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Top highlight effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(49, 130, 206, 0.2) 25%, 
        rgba(49, 130, 206, 0.3) 50%, 
        rgba(49, 130, 206, 0.2) 75%, 
        transparent 100%);
}

/* Hover state */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--gray-800);
}

/* Icon styling */
.service-card .fas {
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

/* Icon hover effect */
.service-card:hover .fas {
    transform: scale(1.1);
    color: var(--accent);
}

/* Service card title */
.service-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Service card text */
.service-card .card-text {
    color: var(--gray-800);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Service card when used as a link */
a.service-card {
    display: block;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

/* Service card when used as a container */
div.service-card {
    height: 100%;
}

/* Service card with icon and title side by side */
.service-card .d-flex .fas {
    margin-bottom: 0;
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* Service card in index page */
.index-services a.service-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.index-services a.service-card:hover {
    transform: translateY(-10px);
}

.index-services a.service-card .fas {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Service card in contact page */
.contact-page .service-card {
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-800);
    line-height: 1.6;
}

/* ========================================
   BUTTONS - Modern & Interactive
   ======================================== */

.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   CERTIFICATIONS & LABELS
   ======================================== */

.labels-section {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.label-img {
    transition: transform 0.3s ease;
    filter: grayscale(20%);
    opacity: 0.8;
}

.label-img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 1;
}

.certification-text {
    padding: 1rem;
    border-left: 4px solid var(--accent);
    background: var(--gray-50);
    border-radius: 0.5rem;
}

/* ========================================
   FOOTER - Professional & Clean
   ======================================== */

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer .contact-info i {
    color: var(--phone-color);
    width: 20px;
    margin-right: 10px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ========================================
   FORMS - Modern & Accessible
   ======================================== */

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .services-section {
        padding: 3rem 0;
    }
    
    .phone-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .certification-text {
        border-left: none;
        border-top: 4px solid var(--accent);
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* ========================================
   ADVANCED GRADIENTS & EFFECTS
   ======================================== */

/* Premium Glass Card */
.premium-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 25%,
        rgba(228, 206, 173, 0.05) 50%,
        rgba(26, 54, 93, 0.08) 75%,
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(26, 54, 93, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

/* Ocean Wave Gradient */
.ocean-gradient {
    background: radial-gradient(ellipse at top, 
        rgba(14, 165, 233, 0.15) 0%,
        rgba(26, 54, 93, 0.08) 25%,
        rgba(255, 255, 255, 0.95) 45%,
        rgba(240, 230, 210, 0.9) 65%,
        rgba(228, 206, 173, 0.85) 85%,
        rgba(14, 165, 233, 0.1) 100%);
}

/* Sophisticated Professional */
.professional-gradient {
    background: linear-gradient(160deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(252, 249, 245, 0.92) 20%,
        rgba(248, 246, 242, 0.88) 40%,
        rgba(240, 230, 210, 0.9) 60%,
        rgba(228, 206, 173, 0.85) 80%,
        rgba(255, 255, 255, 0.95) 100%);
    position: relative;
}

.professional-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 75% 25%, 
        rgba(14, 165, 233, 0.08) 0%,
        transparent 50%),
        radial-gradient(circle at 25% 75%, 
        rgba(26, 54, 93, 0.05) 0%,
        transparent 50%);
    pointer-events: none;
}

/* Subtle Luxury */
.luxury-gradient {
    background: conic-gradient(from 45deg at 50% 50%,
        rgba(255, 255, 255, 0.95) 0deg,
        rgba(252, 249, 245, 0.9) 72deg,
        rgba(248, 246, 242, 0.85) 144deg,
        rgba(240, 230, 210, 0.9) 216deg,
        rgba(228, 206, 173, 0.85) 288deg,
        rgba(255, 255, 255, 0.95) 360deg);
    filter: blur(0.5px);
}

/* Dynamic Shimmer */
.shimmer-gradient {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(252, 249, 245, 0.9) 25%, 
        rgba(228, 206, 173, 0.1) 50%, 
        rgba(248, 246, 242, 0.85) 75%, 
        rgba(255, 255, 255, 0.95) 100%);
    background-size: 200% 200%;
    animation: shimmerMove 8s ease-in-out infinite;
}

@keyframes shimmerMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.shadow-hover { transition: box-shadow 0.3s ease; }
.shadow-hover:hover { box-shadow: var(--shadow-lg); }

/* Hover card effect for city pages */
.hover-card {
    transition: all 0.3s ease;
}

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

/* Minimum viewport height utilities */
.min-vh-50 {
    min-height: 50vh;
}

/* ========================================
   BREADCRUMBS & NAVIGATION
   ======================================== */

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray-800);
}

/* ========================================
   SERVICE PAGES
   ======================================== */

.service-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.service-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 4rem 0;
    background: var(--gray-50);
    border-radius: 2rem;
    margin: 2rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}
