/* Modern Homepage Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation moderne */
.modern-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}
/* ========== NAV CONTAINER ========== */
.modern-nav {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 30px;
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
  
  /* ========== LOGO ========== */
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo img {
    height: 60px;
    width: auto;
  }
  
  /* ========== NAV LINKS ========== */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1; /* يسمح لها تأخذ مساحة وسطية */
  }
  
  .nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .nav-links li a:hover {
    color: #007bff;
  }
  
  /* ========== BUTTONS (Connexion / Inscription) ========== */
  .nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  

  
  /* Bouton principal */
  .btn-primary {
    background: #007bff;
    color: white;
  }
  
  .btn-primary:hover {
    background: #0056b3;
  }
  
  /* Bouton contour */
  .btn-outline {
    border: 1px solid #007bff;
    color: #007bff;
  }
  
  .btn-outline:hover {
    background: #007bff;
    color: #fff;
  }

  .nav-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  
  /* style commun */
  .btn-primary,
  .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 220px;             
    height: 30px;             
    border-radius: 5px;      
    font-size: 12px; /* smaller button text */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  /* === bouton principal (bleu) === */
  .btn-primary {
    background-color: #244d84;  /* bleu foncé raffiné */
    color: #fff;
    border: none;
  }
  .btn-primary:hover {
    background-color: #1b3c68;
  }
  
  /* === bouton contour (blanc) === */
  .btn-outline {
    background-color: #fff;
    color: #244d84;
    border: 3px solid #244d84;
  }
  .btn-outline:hover {
    background-color: #244d84;
    color: #fff;
  }
  
  /* === icônes === */
  .btn-primary svg,
  .btn-outline svg {
    width: 30px; /* align with requested icon size */
    height: 30px;
    border-radius: 50%;
    padding: 6px;
  }
  
  /* cercle bleu clair autour de l’icône principale */
  .btn-primary svg {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  /* cercle bleu clair حول أيقونة outline */
  .btn-outline svg {
    background-color: rgba(36, 77, 132, 0.15);
  }
  
  /* ========== MOBILE MENU BUTTON ========== */
  .mobile-menu-btn {
    display: none; /* Caché par défaut sur desktop */
    font-size: 28px;
    color: #2c5aa0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
  }
  
  /* ========== DROPDOWN STYLE ========== */
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1rem;
    min-width: 200px;
    z-index: 1000;
  }
  
  .dropdown-menu a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
  }
  
  .dropdown-menu a.logout {
    color: #dc3545;
  }
  
  .dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #eee;
  }
  
  /* ========== RESPONSIVE MOBILE ========== */
  @media (max-width: 900px) {
    .nav-container {
      flex-wrap: wrap;
    }
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
    }
    .nav-buttons {
      width: 100%;
      justify-content: center;
    }
  }
  

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    color: #2c5aa0;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 12px; /* smaller menu text */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2c5aa0;
}

.nav-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    border: 2px solid #2c5aa0;
    background: transparent;
    color: #2c5aa0;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.btn-primary:hover {
    background: #1e3f73;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 8vh;
}

.hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 4rem;
}

.hero-logo-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.hero-logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo-icon {
    width: 300px;
    height: 300px;
    object-fit: contain;
    /* force white tint for raster logos */
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-logo-text {
    display: flex;
    flex-direction: column;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content {
    flex: 1;
    text-align: right;
    animation: fadeInUp 1s ease-out;
    max-width: 800px;
    margin-left: auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    color: white;
    line-height: 1.2;
    letter-spacing: 1px;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #074B82;
    color: white;
    padding: 1rem 3rem;
    height: 50px;
    width: auto;
    max-width: 100%;
    min-width: 240px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 900;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(50, 103, 176, 0.5);
    text-transform: none;
    letter-spacing: 0.5px;
}

.hero-cta-button:hover {
    background: #2855A0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(50, 103, 176, 0.6);
    color: white;
    text-decoration: none;
}

.hero-cta-button svg {
    margin-right: 10px;
}

.quote-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quote-form h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.location-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.location-input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.location-icon {
    width: 30px;
    height: 30px;
    color: #2c5aa0;
}

.quote-btn {
    padding: 1rem 2rem;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background: #1e3f73;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

/* Services Grid */
.services-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
}

.services-divider {
    width: 250px;
    height: 3px;
    background: #074B82;
    margin: 0 auto 1.5rem;
}

.services-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    aspect-ratio: 1 / 1; /* carré */
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-bg {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.65) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0rem;
    text-transform: none;
    letter-spacing: 0px;
  
    
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 520px;
    margin-bottom: 1rem;
}

.service-icon {
    width: 180px;
    height: 3px;
    background: white;
    margin: 0.75rem auto 1.25rem;
    border-radius: 0px;
}

/* CTA on service cards */
.service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #074B82;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(7, 75, 130, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-cta:hover {
    background: #0a5da4;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 93, 164, 0.4);
}

/* Footer */
footer.bg-dark {
    background-color: #343a40 !important;
}

footer .card-title {
    font-weight: bold !important;
    font-size: 22px !important;
    color: white !important;
    margin-bottom: 10px !important;
    font-family: inherit !important;
}

footer .card-body {
    background: transparent !important;
    border: none !important;
}

footer .card-body img[src*="ICONE-RECTANGLE-BLEU"] {
    margin-bottom: 10px;
    display: block;
}

footer .card-text a {
    display: inline-block;
    line-height: 1.8;
    font-family: inherit !important;
}

footer .card-text {
    font-family: inherit !important;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: #2c5aa0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.visa-badge {
    background: white;
    color: #1434CB;
    font-weight: 900;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card {
        aspect-ratio: 1 / 1;
        min-height: 220px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-logo-section {
        flex: none;
        align-items: center;
        order: 1;
    }
    
    .hero-logo-container {
        justify-content: center;
    }
    
    .hero-logo-icon {
        width: 130px;
        height: 130px;
        color: white;
    }
    
    .hero-content {
        padding-left: 0;
        text-align: center;
        order: 2;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta-button {
        font-size: 1.1rem;
        padding: 1.2rem 2.5rem;
    }
    
    /* Header en mobile */
    .modern-nav {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem !important;
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    /* Menu hamburger visible en mobile */
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        color: #2c5aa0;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        padding: 8px;
    }
    
    /* Menu ET boutons cachés par défaut */
    .nav-links,
    .nav-buttons {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    .nav-links {
        order: 3;
    }
    
    .nav-buttons {
        order: 4;
        padding-top: 1rem;
        border-top: 1px solid #e0e0e0;
    }
    
    /* Menu ET boutons visibles quand classe 'show' est ajoutée */
    .nav-links.show,
    .nav-buttons.show {
        display: flex !important;
    }
    
    .nav-links li {
        width: 100%;
        text-align: left;
    }
    
    .nav-links li a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .nav-buttons .btn-outline,
    .nav-buttons .btn-primary {
        width: 100% !important;
        height: 40px !important;
        font-size: 13px !important;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-icon { width: 150px; height: 150px; }
    .hero-title {
        font-size: 2rem;
        white-space: normal;
    }
    
    .quote-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .hero-cta-button {
        width: 100%;
    }
}

/* Fix: remove extra vertical padding on hero banners using Bootstrap .py-5 */
.py-5.back1 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Override: Connexion button with square corners --- */
.nav-buttons .btn-primary {
    border-radius: 6px !important; /* coins presque carrés */
}

.nav-buttons .btn-outline {
    border-radius: 6px !important; /* coins presque carrés */
}

/* --- Override: Logo a little more to the left --- */
.modern-nav .nav-container {
    padding-left: 1.25rem !important;
}

/* --- Force smaller button text size in header --- */
.modern-nav .nav-buttons a.btn-primary,
.modern-nav .nav-buttons a.btn-outline {
    font-size: 12px !important;
    line-height: 1 !important;
}

/* --- Override: enlarge header logo image --- */
.modern-nav .logo img {
    height: 100px !important;
    width: auto;
}

@media (max-width: 768px) {
    .modern-nav .logo img {
        height: 60px !important;
    }
}

/* Additional responsive tweaks for menu layout */
@media (max-width: 992px){
  .modern-nav .nav-container{ padding: 8px 12px; }
  .modern-nav .nav-links li a { padding: 8px 10px; display: block; }
}
@media (max-width: 768px){
  .nav-container { gap: 10px; }
  .nav-links { width: 100%; }
}
