/********** Template CSS **********/
:root {
    --primary: #0039A9;
    --secondary: #bbecfc;
    --light: #FFFFFF;
    --dark: #000000;
    --bs-primary:#0039A9;
}

/* ============================
   Navbar Responsive Enhancements
   ============================ */

/* ---------- Desktop (≥992px) ---------- */
@media (min-width: 992px) {
  /* Show dropdown on hover */
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  /* Highlight link when dropdown is open */
  .nav-item.dropdown:hover > .nav-link {
    color: #000; /* adjust to your theme */
  }
}

/* ---------- Mobile (<992px) ---------- */

/* Mobile menu background fix */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #ffffff; /* change this color as needed */
    padding: 1rem;            /* add spacing inside */
    border-top: 1px solid #ddd; /* optional separation line */
  }

  /* Ensure dropdown menus also match */
  .dropdown-menu {
    background-color: #ffffff !important;
  }
}
@media (max-width: 991px) {
  /* Make hamburger button larger */
  .navbar-toggler {
    border: none;
    font-size: 1.8rem;       /* bigger icon */
    padding: 0.75rem 1rem;   /* larger tap area */
  }

  /* Dropdown menu should stack and take full width */
  .dropdown-menu {
    position: static !important; /* ensures stacked layout */
    float: none;
    width: 100%;
    margin-top: 0;
    border: none;
    box-shadow: none;
    background-color: #f8f9fa; /* optional: light background */
  }

  /* Dropdown items more touch-friendly */
  .dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  /* Add an arrow indicator to dropdown toggles */
  .nav-item.dropdown > .nav-link::after {
    float: right;
    margin-left: 10px;
  }
}


/* WPForms submit button with new theme colors */
.wpforms-submit {
    background-color: #0039A9 !important; /* blue */
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    padding: 14px 24px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.wpforms-submit:hover {
    background-color: #002d73 !important; /* darker blue on hover */
}

.wpforms-submit::after {
    content: "";
    position: absolute;
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: #0b4d87; /* new footer blue */
    transition: .5s;
}

.wpforms-submit:hover::after {
    width: 50%;
    left: 25%;
}



.portfolio-title .voir-plus {
    color: #6c757d; /* gray text */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;       /* adjust size */
    margin-top: 0px;        /* space from previous text */
}
.portfolio-title .voir-plus:hover {
    color: #0039A9; /* blue on hover */
    text-decoration: underline; /* line under on hover */
}


/* =====================
   STYLE PAGE PRODUITS
   ===================== */

/* Espace entre les filtres et les produits */
.filter-group {
  margin-bottom: 15px;
}
.row.mb-5 {
  margin-bottom: 2.5rem !important;
}

/* Boutons filtres */
.filter-pill {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px;
  border-radius: 20px;
  background: #f8f9fa;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.filter-pill:hover {
  background: #0039A9;
  color: #fff;
}
.filter-pill.active {
  background: #0039A9;
  color: #fff;
  font-weight: bold;
}

/* Grille produits */
.portfolio-container {
  margin-top: 2rem;
}
.portfolio-item {
  transition: all 0.3s ease-in-out;
}

/* Carte produit */
.portfolio-box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.portfolio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image produit */
.portfolio-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #eee;
}


.portfolio-title {
   padding: 1rem 30px; /* padding par dÃ©faut */
    min-height: 135px;  /* hauteur minimale pour desktop */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
     box-sizing: border-box; /* pour que padding soit inclus dans la largeur */
    position: absolute;
    background: #FFFFFF; /* fond blanc */
    justify-content: center;
    text-align: center;
    bottom: -60px;       /* distance depuis le bas de l'image */
    left: 0px;
    right: 0px;
     z-index: 7; 
}

.portfolio-title p.h6 {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}
.portfolio-title .text-primary {
  font-size: 13px;
  font-weight: 500;
}
.portfolio-title span {
  font-size: 12px;
  color: #666;
}

/* Bouton zoom lightbox */
.portfolio-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.portfolio-box:hover .portfolio-btn {
  opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
  .portfolio-box img {
    height: 220px;
  }
}
@media (max-width: 768px) {
  .portfolio-box img {
    height: 200px;
  }
  .filter-pill {
    font-size: 13px;
    padding: 5px 12px;
  }
}
@media (max-width: 576px) {
  .portfolio-box img {
    height: 180px;
  }
  .portfolio-title p.h6 {
    font-size: 14px;
  }
}

/*Pill CSS */
.filter-pill {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid #0039A9;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  font-size: 0.9rem;
  background: #fff;
  color: #0039A9;
  margin: 3px;
}
.filter-pill.active, .filter-pill:hover {
  background: #0039A9;
  color: #fff;
}

/* Container to enable 3D perspective */
.image-3d-container {
  perspective: 1000px;
  perspective-origin: center center;
}

/* The image wrapper with 3D transform */
.image-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  will-change: transform;
}

/* Slight initial 3D tilt */
.image-3d:hover {
  transform: rotateY(15deg) rotateX(10deg) scale(1.05);
  box-shadow: 0 25px 50px #0038a988;
  cursor: pointer;
}


.custom-left-border {
  border-left: 4px solid #0039A9 !important; /* deep blue */
}

.category-badge {
    background-color: #0039A9 !important;
    color: #ffffff !important;
    border: 2px solid #0039A9;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.5px;
}


/* Make the buttons blue background */
.d-flex .btn.btn-primary {
  background-color: #0039A9 !important; /* your blue color */
  border-color: #0039A9 !important;
  color: white !important; /* icon color white */
}

/* On hover, slightly lighten blue */
.d-flex .btn.btn-primary:hover {
  background-color: #0056d2 !important;
  border-color: #0056d2 !important;
  color: white !important;
}

/* Make sure the icon inside is white */
.d-flex .btn.btn-primary i {
  color: white !important;
}

.swiper-slide img {
    margin: auto;
  }

  .sponsors-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}
  .sponsors-swiper {
    pointer-events: none;
  }
  .sponsors-swiper .swiper-slide,
  .sponsors-swiper .swiper-slide * {
    pointer-events: auto;
  }

.service-item {
  transform: scale(1.05); /* zoomed in by default */
  transition: box-shadow 0.3s ease; /* only animate shadow on hover */
  cursor: pointer;
  position: relative; /* for shadow stacking */
  /* Optional: smooth edges */
  will-change: box-shadow;
}

.service-item:hover {
  box-shadow: 0 0 15px 5px rgba(0, 123, 255, 0.6); /* blue glow shadow on hover */
  z-index: 10; /* make sure hovered item is on top */
}


.hover-zoom-blue {
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  will-change: transform, box-shadow;
}

.hover-zoom-blue:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.5); /* Bootstrap's primary blue */
  z-index: 10;
}

img {
  display: block;
}


h1, h2, h3, h4, h5, h6,
.navbar .nav-link,
.dropdown-menu .dropdown-item,
.footer a,
p {
    font-family: 'Times New Roman', Times, serif !important;
}

body {
    font-family: 'Tinos', serif;
} 

/* Liens du Topbar en rouge au survol */
.container-fluid .contact-info a:hover {
    color: #0039A9 !important;
}

.col-lg-6.ps-lg-5 a:hover {
  color: #0039A9 !important;
  transition: color 0.3s ease;
}

.service-item {
  transition: transform 0.3s ease;
  cursor: pointer; /* optional */
}

.service-item:hover {
  transform: scale(1.05);
}

.service-item:hover h4 {
  color: #0039A9 !important;
}

.p-4.bg-white {
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer; /* optional to show it's interactive */
}

.p-4.bg-white:hover {
  transform: scale(1.05);
}
.p-4.bg-white:hover h5 {
  color: #0039A9;
  transition: color 0.3s ease;
}
.btn-retour-custom {
    color: #0039A9;
    border: 1px solid #0039A9;
    background-color: transparent;
}

.btn-retour-custom:hover {
    background-color: #0039A9;
    color: #fff;
}

.contact-info h6 {
    margin-bottom: 0rem; /* ou 0 si tu veux collÃ© */
}

.btn-primary.text-black {
    color: black;
}

.footer {
    background-color: #c6dae1 !important;
}
.copyright-bar {
    background-color: #c0d7df;
}
.footer a,h4,p,h1{
    color: #212529 !important;
}

.footer a:hover {
    color: #000 !important; /* or any darker shade */
}

.page-header a {
    color: #0039A9 !important;
    text-decoration: none; /* optional: remove underline */
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar {
  height: 80px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: var(--light) !important;
}

.navbar-brand img {
  height: auto;
  max-height: 75px; /* ðŸ‘ˆ controls image height */
  width: auto;
  display: block;
}


/* ðŸ”´ Set nav-link text to red Main Menu */
.navbar .nav-link {
  color: var(--primary) !important;
  font-weight: 600;         /* bold */
  font-size: 1.3rem;        
}

/* ðŸ”´ Keep hover and active states red (optional: make it bolder or different shade if desired) */
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* ðŸ”´ Dropdown menu items */
.dropdown-menu .dropdown-item {
  color: var(--primary) !important;
  font-weight: 500;
  font-size: 1rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  color: #fff !important;
  background-color: var(--primary) !important;
  font-weight: 600;
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}
/* Full carousel smaller and clean */
#header-carousel {
    height: 300px;
    overflow: hidden;
}

#header-carousel .carousel-inner,
#header-carousel .carousel-item,
#header-carousel .carousel-item img {
    height: 300px; /*modifier carousel*/
    object-fit: cover;
}

/* Caption overlay */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(122, 160, 248, 0.345);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Caption content box */
.carousel-caption .p-3 {
    max-width: 900px;
}

/* Headline text */
.carousel-caption h1 {
    font-size: 2rem;       /* ~32px */
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

/* Optional subheading (if used) */
.carousel-caption h4 {
    font-size: 1.2rem;     /* ~19px */
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Icon */
.carousel-caption i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Button */
.carousel-caption .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem;   /* ~24px */
    }
    .carousel-caption h4 {
        font-size: 1rem;     /* ~16px */
    }
    .carousel-caption i {
        font-size: 2rem;
    }
}


.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(122, 160, 248, 0.345), rgba(122, 160, 248, 0.345)), url(../img/building.jpg) center center no-repeat;
    background-size: cover;
}


.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}


.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}



:root {
  --primary: #0039A9;
  --dark: #FFFFFF;
}

/* Force icon and button colors */
.text-primary {
  color: var(--primary) !important;
}

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

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Icon color */
i.fa, i.bi {
  color: var(--primary) !important;
}

.navbar {
    height: 85px; /* or your desired navbar height */
    padding: 0 !important;
   
}

.navbar-brand img {
  height: 100%;         /* fill full height of h1 */
  width: auto;          /* keep aspect ratio */
  display: block;       /* remove inline gap */
}

.navbar-brand h1 {
  margin: 0;            /* remove default margins */
  line-height: 1;       /* reduce line height */
  display: flex;
  align-items: center;  /* vertically center content */
  height: 85px;         /* same height as navbar */
}

.navbar-thick-top {
  border-top-width: 2px !important;
}

.footer p {
  margin-top: 0;
  margin-bottom: 0.1rem; /* or 0 if you want absolutely no space */
}
.footer h4.text-uppercase.mb-4 {
  color: #0039A9 !important; /* Change this to any color you want */
}

.copyright-bar.border-top {
  border-top: 1px solid #0039A9 !important; /* Customize thickness & color */
}


