/* Layout */
.main-content {
    width: 100%;
    overflow-x: hidden;
}

.container-fluid {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Variables */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2563eb;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --dark-bg: #111827;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.7rem 0;
    background: linear-gradient(90deg, rgba(26,26,26,0.95) 0%, rgba(37,99,235,0.95) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.84rem !important;
}

.navbar.scrolled {
    background: linear-gradient(90deg, rgba(26,26,26,0.98) 0%, rgba(37,99,235,0.98) 100%);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-size: 0.98rem !important;
    font-weight: 700;
}

.nav-link,
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.navbar-toggler {
    font-size: 0.95rem !important;
}

@media (max-width: 768px) {
    .navbar {
        font-size: 0.78rem !important;
    }
    .navbar-brand {
        font-size: 0.9rem !important;
    }
    .nav-link,
    .navbar-nav .nav-link {
        font-size: 0.81rem !important;
    }
}

/* General Styles */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    /* Nouveau background futuriste */
    background: linear-gradient(120deg, #0f2027 0%, #2c5364 40%, #6a11cb 100%);
    min-height: 100vh;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background:
      repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 80px),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 80px),
      radial-gradient(circle at 15% 20%, #00f0ff44 0 40px, transparent 60px),
      radial-gradient(circle at 80% 60%, #ff00cc33 0 60px, transparent 100px),
      radial-gradient(circle at 60% 80%, #ffffff22 0 30px, transparent 60px);
    pointer-events: none;
}

section {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2.5em;
    box-shadow: 0 2px 32px 0 rgba(0,0,0,0.06);
    margin-bottom: 2.5rem;
    padding: 6rem 0;
}
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
        border-radius: 1.2em;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

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

.card-body {
    padding: 2.5rem;
}

/* Services Section */
.services-preview {
    padding: 8rem 0;
}

.services-preview .fas {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Full-width Sections */
.full-width-section {
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Why Us Section */
.why-us {
    padding: 8rem 0;
}

.why-us .fas {
    color: var(--primary-color);
    width: 60px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    padding: 8rem 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Footer - Styles gérés dans footer.php et global-layout.css */
/* Règles commentées pour éviter les conflits
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    padding: 6rem 0 3rem;
    color: rgba(255, 255, 255, 0.9);
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer p, footer a {
    color: rgba(255, 255, 255, 0.8);
}
*/

.social-links a {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .container-fluid {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .container-fluid {
        padding: 0 1rem;
    }
    
    .services-preview {
        padding: 4rem 0;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Buttons */
.btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-control {
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Utility Classes */
.scroll-offset {
  scroll-margin-top: 90px; /* Ajuste à la hauteur réelle de la navbar si besoin */
}

/* Titres de section avec icône - version améliorée */
.section-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
  padding: 0.6em 1.2em;
  border-radius: 1.5em;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.06);
  border: 1.5px solid #e5e7eb;
}
.section-title-icon i {
  font-size: 2.5rem;
  vertical-align: middle;
  margin-right: 0.3em;
  margin-bottom: 0;
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.09));
}
@media (max-width: 768px) {
  .section-title-icon {
    font-size: 1.3rem;
    padding: 0.4em 0.7em;
  }
  .section-title-icon i {
    font-size: 1.3rem;
  }
}

.section-title-separator {
  display: block;
  width: 80px;
  height: 6px;
  margin: 0.5em auto 2.2em auto;
  background: linear-gradient(90deg, #FFD700 0%, #2563eb 100%);
  border-radius: 3px;
  opacity: 0.18;
}

section h2.section-title-icon {
  padding: 0;
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;
}

/* ==================== BOUTON MENU AGENCE (SIDEBAR) ==================== */
.btn-agence-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #d4af37 !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 1rem;
}

.btn-agence-toggle:hover {
    background-color: #d4af37 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-agence-toggle:hover svg {
    fill: #fff !important;
}

.btn-agence-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    outline: none;
}

.btn-agence-toggle svg {
    transition: fill 0.3s ease;
}
