/********** CSS **********/
:root {
    --primary: #F4D03F;  /* Jaune vif extrait du logo */
    --secondary: #665060;  /* Marron/gris foncé extrait du logo */
    --light: #EEF9FF;
    --dark: #000000;  /* Noir extrait du logo */
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    text-transform: uppercase; /* Ensure consistent capitalization */
    border-radius: 8px; /* Add rounded corners to buttons */
    padding: 10px 20px; /* Default padding for better touch targets */
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    background-color: #F39C12;  /* Darker yellow on hover */
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
    text-transform: uppercase; /* Uniform text case */
}

/* Secondary Button */
.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

/* Square Buttons */
.btn-square {
    width: 48px;
    height: 48px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-size: 24px; /* Adjusted font size for square icons */
}

.btn-sm-square {
    width: 40px;
    height: 40px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-size: 18px;
}

.btn-lg-square {
    width: 60px;
    height: 60px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-size: 28px; /* Larger font size for bigger buttons */
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Adjust padding for buttons in mobile view */
    .btn {
        padding: 5px 12px;
    }

    .btn-lg-square {
        width: 50px;
        height: 50px;
        font-size: 24px; /* Slightly reduced font size on mobile */
    }

    .btn-sm-square {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .btn-square {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    /* Further adjustments for very small screens */
    .btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .btn-square,
    .btn-sm-square,
    .btn-lg-square {
        font-size: 16px; /* Adjust icon size for small buttons */
    }
}

/* Styliser l'image du logo */
.logo {
    height: 100px;  /* Taille de l'image (vous pouvez l'ajuster) */
    width: auto;    /* Conserver les proportions de l'image */
   /* display: block; /* Permet de centrer l'image dans son conteneur */
    margin: 0 auto; /* Centre l'image horizontalement */
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out; /* Transition fluide avec délai */
    transform-style: preserve-3d;  /* Assure que les transformations 3D s'appliquent correctement */
    filter: drop-shadow(0px 0px 6px rgba(255,255,255,0.9)) 
          drop-shadow(0px 0px 2px rgba(0,0,0,0.8)); /* Glow clair + ombre */
}

/* Effet au survol */
.logo:hover {
    transform: translateZ(-30px) rotateX(10deg) rotateY(10deg); /* Déplace le logo en arrière et applique une légère rotation 3D */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée lors du survol */
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .logo {
        height: 80px;  /* Réduit la taille du logo sur les petits écrans */
    }
}
/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 10px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 5px;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}
/* Navbar Styles */
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    padding: 35px 5px;
    transition: color 0.5s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary); /* Use primary color for hover and active state */
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary);
    border-color: var(--primary);
}

/* Navbar Responsive */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 20px 0;
        color: var(--dark);
        font-size: 16px;
    }
    .navbar-dark .navbar-toggler {
        color: var(--primary);
        border-color: var(--primary);
    }
}

@media (max-width: 576px) {
    .navbar-dark .navbar-nav .nav-link {
        font-size: 14px;
    }
}

/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel .display-1  {
 font-size: 60px;
}
/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -35px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}
@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 12px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 18px;
        font-weight: 600 !important;
    }

    .carousel-caption .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* S'assurer que toutes les images dans le carrousel ont la même taille */
.carousel-item img {
    object-fit: cover; /* Cela garantit que les images couvrent toute la largeur et la hauteur du conteneur tout en maintenant les proportions */
    height: 600px; /* Vous pouvez ajuster cette valeur en fonction de la hauteur que vous souhaitez pour les images */
    width: 100%; /* Assurez-vous que les images occupent toute la largeur du conteneur */
}

/* Réajuster pour les petits écrans */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px; /* Réduire la hauteur sur les petits écrans */
    }
     .carousel .display-1 {
    font-size: 30px;
            }
}

.lang-btn {
    background: #F4D03F; /* Jaune vif du logo */
    border: none;
    border-radius: 90px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lang-btn:hover {
    background: #F39C12; /* Jaune plus foncé au survol */
    transform: scale(1.1); /* Légère animation pour un effet de survol */
}

.lang-btn .icon {
    width: 15px;
    height: 15px;
}

#lang-label {
    font-size: 13px;
}

/* Option de responsive */
@media (max-width: 576px) {
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .lang-btn .icon {
    width: 16px;
    height: 16px;
  }
}
/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

/* Bouton Retour en haut */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background-color: #F4D03F; /* Couleur jaune du logo */
    color: #fff;
    padding: 15px;  /* Taille du cercle, vous pouvez ajuster cette valeur pour changer la taille */
    border-radius: 50%;  /* Arrondi complet pour obtenir un cercle */
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;  /* Taille de l'icône à l'intérieur */
    display: flex;
    align-items: center;
    justify-content: center; /* Centre l'icône dans le cercle */
}

/* Effet au survol */
.back-to-top:hover {
    background-color: #f3dd12; /* Jaune plus foncé au survol */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Ombre plus grande au survol */
}

/* Affichage du bouton lorsqu'il est visible */
.back-to-top.show {
    display: flex;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/****** mentions / Legal *****/
.legal-section {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #fefdfb 0%, #fffaf5 100%);
  color: #2c3e50;
  max-width: 900px;
  margin: 50px auto;
  background-color: #fff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* Titre principal */
.legal-section h2 {
  color: #F4D03F; /* Jaune adapté au logo */
  font-size: 2em;
  margin-bottom: 20px;
  border-left: 6px solid #F4D03F; /* Jaune adapté au logo */
  padding-left: 18px;
  font-weight: 700;
}

/* Paragraphes */
.legal-section p {
  line-height: 1.7;
  margin-bottom: 18px;
  color: #444;
}

/* Accordion */
.accordion {
  margin-top: 25px;
  border-top: 1px solid #f1e0d6;
}

.accordion-item {
  border-bottom: 1px solid #f1e0d6;
}

.accordion-title {
  cursor: pointer;
  padding: 18px;
  background: #fff6f0;
  color: #F4D03F; /* Jaune adapté au logo */
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-title:hover {
  background: #fff0d1; /* Lighter yellow on hover */
  color: #F4D03F; /* Jaune adapté au logo */
}

.accordion-content {
  display: none;
  padding: 18px;
  background-color: #ffffff;
  color: #555;
  border-left: 3px solid #F4D03F; /* Jaune adapté au logo */
}

.active .accordion-content {
  display: block;
}

.active .accordion-title {
  background: #fff0d1; /* Lighter yellow on active */
  color: #F4D03F; /* Jaune adapté au logo */
}

/* Responsive */
@media (max-width: 600px) {
  .legal-section {
    padding: 22px;
  }
  .legal-section h2 {
    font-size: 1.5em;
  }
  .accordion-title {
    font-size: 0.95em;
  }
}

/**** policy privacy ***/ 
.privacy-policy {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #fefdfb 0%, #fffaf5 100%);
  margin: 0;
  padding: 0;
  color: #2c3e50;
}

.privacy-policy {
  max-width: 900px;
  margin: 50px auto;
  background-color: #fff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.privacy-policy:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* Titres */
.privacy-policy h2 {
  color: #F4D03F; /* Jaune adapté au logo */
  font-size: 2em;
  margin-bottom: 20px;
  border-left: 6px solid #F4D03F; /* Jaune adapté au logo */
  padding-left: 18px;
  font-weight: 700;
}

/* Paragraphes */
.privacy-policy p {
  line-height: 1.7;
  margin-bottom: 18px;
  color: #444;
}

/* ---- ACCORDION STYLE ---- */
.privacy-accordion {
  margin-top: 25px;
  border-top: 1px solid #f1e0d6;
}

.privacy-accordion-item {
  border-bottom: 1px solid #f1e0d6;
}

.privacy-accordion-title {
  cursor: pointer;
  padding: 18px;
  background: #fff6f0;
  color: #F4D03F; /* Jaune adapté au logo */
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.privacy-accordion-title:hover {
  background: #fff0d1; /* Lighter yellow on hover */
  color: #F4D03F; /* Jaune adapté au logo */
}

.privacy-accordion-content {
  display: none;
  padding: 18px;
  background-color: #ffffff;
  color: #555;
  border-left: 3px solid #F4D03F; /* Jaune adapté au logo */
}

.privacy-active .privacy-accordion-content {
  display: block;
}

.privacy-active .privacy-accordion-title {
  background: #fff0d1; /* Lighter yellow on active */
  color: #F4D03F; /* Jaune adapté au logo */
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .privacy-policy {
    padding: 22px;
  }
  .privacy-policy h2 {
    font-size: 1.5em;
  }
  .privacy-accordion-title {
    font-size: 0.95em;
  }
}

/* Container */
.container-team {
  position: relative;
  padding-top: 50px;
  padding-bottom: 50px;
  background: #f9fbfc;
}

/* Swiper */
.team-slider {
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

/* Card */
.team-item {
  width: 260px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.team-item:hover {
  transform: translateY(-6px);
}

/* Image */
.team-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Social overlay */
.team-social {
  position: absolute;
  inset: 0;
  background: rgba(255, 193, 7, 0.85); /* Yellow overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-item:hover .team-social {
  opacity: 1;
}

.team-social .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff; /* Text color for icons */
  background: #FFB300; /* Yellow button background */
  transition: all 0.3s ease;
}

.team-social .btn:hover {
  background: #F39C12; /* Darker yellow on hover */
  color: #fff;
}

/* Text */
.team-item h5 {
  color: #FFB300; /* Yellow text color for names */
  font-weight: 600;
  margin-bottom: 4px;
}

.team-item span {
  font-size: 14px;
  color: #6c757d; /* Light gray for positions */
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #FFB300; /* Yellow arrows */
  transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #F39C12; /* Darker yellow on hover */
}
