/********** Template CSS **********/
:root {
    --primary: #0a3770;
    --secondary: #f9d038;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** 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;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

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

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

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

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

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


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

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

.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);
    }
}


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

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

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

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

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


/*** 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: -75px;
}

.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; }
}


/*** 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;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** 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;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.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;
    }
}



/* Partie developpemnt et expansion csi  */
   
.csi-container {
  display: flex;
  justify-content: center;  /* Centre les deux éléments horizontalement */
  align-items: flex-start;  /* Aligne le haut des deux éléments sur la même ligne */
  max-width: 1200px;
  width: 100%;
  gap: 60px;                /* Espace entre le timeline et le cercle */
  margin: 0 auto;           /* Centre le conteneur lui-même */
  flex-wrap: nowrap;         /* Empêche les éléments de passer à la ligne */
}

    /* ================= TIMELINE ================= */
    .csi-timeline {
      position: relative;
      margin: 0;
      padding: 0;
      width: 60%;
    }
    
    .csi-timeline-title {
      color: var(--primary);
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 2px solid var(--secondary);
      font-size: 28px;
    }

    .csi-step {
      position: relative;
      padding-left: 50px;
      margin-bottom: 40px;
      transition: transform 0.3s ease;
    }

    .csi-step:hover { transform: translateX(5px); }

    .csi-step:last-child { margin-bottom: 0; }

    .csi-number {
      position: absolute;
      left: 0;
      top: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--primary);
      color: var(--white);
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      z-index: 2;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .csi-step:hover .csi-number {
      background: var(--secondary);
      transform: scale(1.1);
    }

    .csi-step:before {
      content: "";
      position: absolute;
      left: 20px;
      top: 40px;
      width: 1px;
      height: calc(100% + 10px);
      border-left: 2px dashed var(--secondary);
      z-index: 1;
      opacity: 0.6;
    }

    .csi-step:last-child:before { display: none; }

    .csi-content {
      background: var(--white);
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.08);
      transition: box-shadow 0.3s ease;
      border-left: 4px solid var(--primary);
    }

    .csi-step:hover .csi-content {
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
      border-left-color: var(--secondary);
    }

    .csi-content h3 {
      margin-top: 0;
      color: var(--primary);
      font-size: 18px;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
    }

    .csi-content h3 i {
      margin-right: 10px;
      color: var(--secondary);
    }

    .csi-content ul {
      margin: 0;
      padding-left: 20px;
      color: var(--dark);
    }

    .csi-content li {
      margin-bottom: 8px;
      line-height: 1.5;
    }

    .csi-content li:last-child { margin-bottom: 0; }

    /* ================= IMAGE AVEC ICONES ================= */
    .csi-graphic {
      position: sticky;
      top: 30px;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 40%;
    }
    
    .csi-circle {
      position: relative;
      width: 300px;
      height: 300px;
      flex-shrink: 0;
      margin-bottom: 30px;
    }

    .csi-photo {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 150px;
      height: 150px;
      border-radius: 50%;
      border: 5px solid var(--white);
      object-fit: cover;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
      z-index: 2;
      transition: all 0.5s ease;
    }

    .csi-circle:hover .csi-photo {
      transform: translate(-50%, -50%) scale(1.05);
      box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    }

    .csi-dashed {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 250px;
      height: 250px;
      border: 2px dashed var(--gray);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      z-index: 1;
      opacity: 0.6;
    }

    .csi-icons {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 250px;
      height: 250px;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      animation: rotate 20s linear infinite;
    }

    .csi-icons i {
      position: absolute;
      font-size: 24px;
      color: var(--primary);
      background: var(--white);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
    }

    .csi-icons i:hover {
      color: var(--secondary);
      transform: scale(1.2);
      box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

    /* Position des icônes */
    .csi-icons i:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
    .csi-icons i:nth-child(2) { top: 25%; right: 0; transform: translateY(-50%); }
    .csi-icons i:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
    .csi-icons i:nth-child(4) { top: 25%; left: 0; transform: translateY(-50%); }

    @keyframes rotate {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
    
    .csi-graphic-title {
      text-align: center;
      color: var(--primary);
      margin-top: 20px;
      font-size: 18px;
      font-weight: 600;
      max-width: 300px;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .csi-body { padding: 20px; }
      .csi-container { flex-direction: column; gap: 40px; }
      .csi-timeline, .csi-graphic { width: 100%; }
      .csi-graphic { position: relative; order: -1; }
    }


    /* CLASSE PERSPECTIVES */
    
  .perspectives-container {
    width: 100vw; /* prend toute la largeur de la fenêtre */
    max-width: 100%; /* pour ne pas être limité par un parent */
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: none;
    background: 
        linear-gradient(135deg, rgba(127,129,51,0.1) 0%, rgba(127,129,51,0.3) 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='5' r='1.5' fill='%237f8133' fill-opacity='0.05'/%3E%3C/svg%3E");
  
    box-sizing: border-box; /* inclut le padding dans la largeur */
    margin: 0; /* supprime le centrage automatique */
}


  .perspectives-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
  }

  .perspectives-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .perspectives-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* ================= TIMELINE PERSPECTIVES ================= */
  .perspectives-timeline {
    position: relative;
    padding: 40px 0;
    margin: 0 auto;
  }

  /* Ligne centrale */
  .perspectives-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
  }

  /* Éléments de la timeline */
  .perspectives-item {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .perspectives-content {
    width: 45%;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
  }

  .perspectives-item:nth-child(odd) .perspectives-content {
    margin-right: auto;
  }

  .perspectives-item:nth-child(even) .perspectives-content {
    margin-left: auto;
  }

  /* Point central */
  .perspectives-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--primary), 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    transition: all 0.3s ease;
  }

  .perspectives-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--white);
    transform: translateY(-50%) rotate(45deg);
  }

  .perspectives-item:nth-child(odd) .perspectives-content::after {
    right: -10px;
    box-shadow: 3px -3px 5px rgba(0,0,0,0.05);
  }

  .perspectives-item:nth-child(even) .perspectives-content::after {
    left: -10px;
    box-shadow: -3px 3px 5px rgba(0,0,0,0.05);
  }

  .perspectives-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
  }

  .perspectives-content h3 i {
    margin-right: 10px;
    color: var(--secondary);
  }

  .perspectives-content ul {
    padding-left: 20px;
    margin-bottom: 0;
  }

  .perspectives-content li {
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .perspectives-item:hover .perspectives-point {
    background: var(--secondary);
    transform: translateX(-50%) scale(1.1);
  }

  .perspectives-item:hover .perspectives-content {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
  }

  @media (max-width: 992px) {
    .perspectives-timeline::before {
      left: 30px;
    }
    
    .perspectives-item {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .perspectives-content {
      width: calc(100% - 60px);
      margin-left: 60px !important;
      margin-right: 0 !important;
    }
    
    .perspectives-point {
      left: 30px;
    }
    
    .perspectives-content::after {
      display: none;
    }
    
    .perspectives-item:nth-child(even) .perspectives-content {
      margin-left: 60px !important;
    }
  }

  .perspectives-footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
  }

  .perspectives-footer p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #DDDDDD;
  }


  /* CSS POUR CONTACT */
      .csi-contact-section {
            padding: 5rem 0;
        }

        /* Cards */
        .csi-info-card {
            background: var(--light);
            border-radius: var(--radius);
            padding: 15px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            height: auto;
            border-left: 4px solid var(--primary);
        }

        .csi-info-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.1);
            border-left-color: var(--secondary);
        }

        .csi-info-card h5 {
            display: flex;
            align-items: center;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 8px;
            font-size: 1rem;
        }

        .csi-info-card h5 i {
            font-size: 1.5rem;
            color: var(--primary);
            margin-right: 10px;
        }

        .csi-info-card p {
            color: #6b7280;
            margin-bottom: 0;
            font-size: 0.85rem;
        }

        .csi-form-container {
            background: var(--light);
            border-radius: var(--radius);
            padding: 40px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.08);
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .csi-logo-box {
            text-align: center;
            margin-bottom: 25px;
        }

        .csi-logo-box img {
            max-height: 70px;
            width: auto;
            margin-bottom: 10px;
        }

        .csi-logo-box h3 {
            color: var(--primary);
            font-family: 'Playfair Display', serif;
            margin-bottom: 5px;
        }

        .csi-logo-box p {
            color: var(--dark);
            font-size: 0.9rem;
            margin-bottom: 0;
        }

        .csi-form-container .form-control, 
        .csi-form-container .form-select, 
        .csi-form-container textarea {
            border: 1px solid #d1d5db;
            border-radius: var(--radius);
            padding: 14px 18px;
            transition: all 0.3s ease;
            background: #fff;
        }

        .csi-form-container .form-control:focus, 
        .csi-form-container .form-select:focus, 
        .csi-form-container textarea:focus {
            border-color: var(--contact-primary);
            box-shadow: 0 0 0 3px rgba(10, 55, 112, 0.2);
            background: #fff;
        }

        .csi-btn-submit {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #fff;
            border: none;
            padding: 14px;
            font-weight: 600;
            border-radius: var(--contact-radius);
            transition: all 0.3s ease;
        }

        .csi-btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(10, 55, 112, 0.2);
        }

        .csi-map-container {
            border-radius: var(--contact-radius);
            overflow: hidden;
            height: 400px;
            margin-top: 25px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
            border: 1px solid #e5e7eb;
            flex: 1;
        }

        .csi-map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Flexbox */
        .csi-contact-section .row.g-5 {
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
        }

        .csi-contact-section .col-lg-7,
        .csi-contact-section .col-lg-5 {
            display: flex;
            flex-direction: column;
        }

        
        .col-lg-7 > .row.g-4,
        .col-lg-7 > .csi-map-container {
            flex: 1;
        }



