/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Palette */
    --primary-color: #1E88E5; /* Bleu professionnel */
    --primary-dark: #1565C0;
    --primary-light: #BBDEFB;
    
    --secondary-color: #FBC02D; /* Jaune/Or pour accents */
    --secondary-hover: #F9A825;
    
    --text-dark: #212121; /* Gris foncé lisible */
    --text-muted: #757575;
    
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5; /* Fond sections */
    --bg-body: #F4F7FA; /* Nouveau fond global légèrement bleuté */
    
    --error-color: #E53935;
    --success-color: #43A047;
    
    /* Variables Design */
    --border-radius-sm: 8px;
    --border-radius-lg: 12px;
    --border-radius-pill: 50px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Offcanvas Mobile Width Fix */
@media (max-width: 991.98px) {
    .offcanvas {
        max-width: 85vw; /* Prevent it from being too wide */
        min-height: 100vh !important; /* Ensure full height */
        height: 100vh !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; }

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Cards */
.card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Utilities */
.bg-light-section {
    background-color: var(--bg-light);
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

.rounded-4 { border-radius: var(--border-radius-lg) !important; }

/* Animations */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Breadcrumb customization */
.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    border-color: #e0e0e0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.15);
}

/* Specific Component Styles */
.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* =========================================
   Mobile Header Fixes 
   ========================================= */
@media (max-width: 575.98px) {
    /* Réduire la taille du logo sur mobile */
    .navbar-brand .bi {
        font-size: 1.5rem !important;
    }
    .navbar-brand .fs-4 {
        font-size: 1.1rem !important;
    }
    .navbar-brand {
        margin-right: 0.5rem !important;
        max-width: 60%; /* Empêche de prendre toute la largeur */
    }
    
    /* Ajuster les boutons mobiles */
    .navbar .d-flex.align-items-center.d-lg-none {
        margin-left: auto; /* Pousse les boutons à droite */
    }
}

/* =========================================
   Nouveau Design "Magnifique & Attirant" 
   ========================================= */

/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

/* Forme décorative en arrière-plan */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* S'assurer que le contenu est au-dessus */
.hero-gradient > .container {
    position: relative;
    z-index: 1;
}

/* Navbar plus élégante */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}
