/* Variables CSS */
:root {
    --primary: #01446d;
    --primary-dark: #023250;
    --primary-light: #005d97;
    --secondary: #ffbf00;
    --dark: #2a2c2d;
    --light: #f5f5f5;
    --gray: #01446d;
    --white: #ffffff;
    --primary2: #3d6a86;
    --orange: #f0a861;
}

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    padding-top: 72px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Backgrounds */
.bg-degrade {
    background: linear-gradient(to right bottom, #3d6a86 0%, #5a4d8c 100%);
}

/* Text Colors */
.text-orange {
    color: var(--orange) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--orange);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--orange);
}

.btn-serv-primary {
    color: white;
    background-color: #4f8db3;
    border-color: white;
}

.btn-serv-primary:hover {
    background-color: #3d6a86;
    border-color: #3d6a86;
    color: var(--orange);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-main {
    height: 72px;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--orange);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--orange);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right bottom, #3d6a86 0%, #5a4d8c 100%);
    min-height: 80vh;
    color: var(--orange);
    display: flex;
    align-items: center;
    margin-top: -72px;
    padding-top: 72px;
}

.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    margin: 20px 0;
}

.hero-image {
    max-height: 60vh;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 8px solid rgba(240, 168, 97, 0.15);
    transform: perspective(1000px) rotateY(-10deg);
    transition: all 0.5s ease;
    object-fit: contain;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(-5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Services Section */
.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Section */
.About-section,
.About-section .lead,
.About-section p,
.About-section h4,
.About-section h5,
.About-section .mb-0 {
    color: var(--orange) !important;
}

.About-section .text-primary {
    color: var(--orange) !important;
}

.About-section h2 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.about-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 8px solid rgba(240, 168, 97, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: all 0.5s ease;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(-5deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(240, 168, 97, 0.25);
}

.about-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
                rgba(255, 255, 255, 0.3) 0%, 
                transparent 70%);
    pointer-events: none;
    z-index: 1;
}

#about .row {
    align-items: center;
}

/* Divider */
.divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin-top: 1rem;
}

/* Icons */
.fa-check-circle {
    color: var(--orange) !important;
}

/* Footer */
footer a:hover {
    color: var(--orange) !important;
}

footer a.text-orange:hover {
    color: white !important;
}

hr.bg-orange {
    background-color: var(--orange);
    opacity: 0.5;
    height: 1px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

/* ==================== */
/* RESPONSIVE MOBILE */
/* ==================== */
@media (max-width: 991.98px) {
    /* Navbar Mobile */
    .navbar-brand {
        font-size: 1.1rem;
        white-space: normal;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        padding-top: 10px;
        padding-bottom: 10px;
        padding: 0;
        justify-content: center;  /* Centrage vertical si flex column */
        height: 72%;             /* Prend toute la hauteur de la navbar */
    }
    
    .navbar-main .navbar-collapse {
        background-color: #1a1a1a !important;
        padding: 15px !important;
        margin-top: 10px !important;
        border-radius: 5px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
        backdrop-filter: none !important;
    }
    
    .navbar-main .navbar-nav {
        background: transparent !important;
    }
    
    .navbar-main .nav-link {
        color: #f0a861 !important;
        padding: 10px 15px !important;
        margin: 5px 0 !important;
        border-radius: 4px !important;
    }
    
    .navbar-main .nav-link:hover {
        color: #ffc107 !important;
        background: rgba(255,255,255,0.1) !important;
    }
    
    .navbar-main .btn-primary {
        margin-top: 10px !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }

    .navbar-brand i {
    order: -1;
    margin-bottom: 5px;
    }
  
    /* Hero Section Mobile */
    .hero-section {
        min-height: auto;
        padding: 60px 0;
        text-align: center;
        padding-bottom: 30px;
    }

    .hero-image-container {
    padding: 0 0 10px 0;
    margin: 10px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-top: 20px;
    }
    
    .hero-image {
        max-height: 280px;
        margin: 30px auto;
        transform: none;
        margin-bottom: 15px;
    max-height: 280px;
    }
    
    .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 20px;
    }

    .hero-buttons .btn {
    width: 90%;            /* largeur fluide */
    max-width: 320px;      /* largeur max pour éviter qu’ils soient trop larges */
    text-align: center;
    padding: 12px 20px;    /* espace intérieur homogène */
    font-size: 1.1rem;
    }

    /* About Section Mobile */
    .about-image-container {
        max-width: 300px;
        margin-bottom: 30px;
    }
    
    .about-image {
        transform: none;
    }
    
    #about .row {
        flex-direction: column;
    }
    
    #about .ps-lg-5 {
        padding-left: 15px !important;
        text-align: center;
    }
    
    /* General Mobile Adjustments */
    body {
        padding-top: 80px;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .service-img {
        height: 150px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* Calendly Button Hover Effect */
.calendly-btn:hover {
    background-color: var(--bs-primary);
    color: white !important;
}