/* En-tête, menu et bannière d'origine (repris du thème Sailor, assets/css/style.css) */
:root { --header-h: 90px; }
body.header-compact { --sticky-top: 74px; }
.subnav { transition: top .5s; }


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: white;
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
}

#header.header-scrolled {
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

#header.header-inner-pages {
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#header .logo {
  font-size: 28px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

#header .logo a {
  color: #142035;
}

#header .logo img {
  max-height: 50px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #142035;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #16a3b5;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  background: #16a3b5;
  padding: 8px 25px;
  margin-left: 30px;
  border-radius: 4px;
  font-weight: 400;
  color: #fff;
}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  color: #fff;
  background: #118797;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 400;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #16a3b5;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #142035;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(63, 73, 83, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #142035;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #16a3b5;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #16a3b5;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background-color: rgba(63, 73, 83, 0.8);
  overflow: hidden;
  position: relative;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item,
#hero .carousel-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#hero .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero .carousel-item::before {
  content: "";
  background-color: rgba(30, 35, 40, 0.6);
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 70px;
  left: 50px;
  right: 50px;
}

#hero .container {
  text-align: center;
}

#hero h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 700;
}

#hero p {
  animation-delay: 0.4s;
  margin: 0 auto 30px auto;
  color: #fff;
}

#hero .carousel-inner .carousel-item {
  transition-property: opacity;
  background-position: center top;
}

#hero .carousel-inner .carousel-item,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  opacity: 0;
}

#hero .carousel-inner .active,
#hero .carousel-inner .carousel-item-next.carousel-item-start,
#hero .carousel-inner .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition: 0.5s;
}

#hero .carousel-inner .carousel-item-next,
#hero .carousel-inner .carousel-item-prev,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  left: 0;
  transform: translate3d(0, 0, 0);
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: none;
  font-size: 30px;
  line-height: 0;
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: 0.3s;
  color: rgba(255, 255, 255, 0.5);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero .carousel-control-next-icon:hover,
#hero .carousel-control-prev-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

#hero .carousel-indicators li {
  list-style-type: none;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}

#hero .carousel-indicators li.active {
  opacity: 1;
  background: #16a3b5;
}

#hero .btn-get-started {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  transition: 0.5s;
  line-height: 1;
  color: #fff;
  animation-delay: 0.8s;
  background: #16a3b5;
}

#hero .btn-get-started:hover {
  background: #118797;
}

@media (max-width: 992px) {
  #hero {
    height: 100vh;
  }

  #hero .carousel-container {
    top: 8px;
  }
}

@media (max-width: 768px) {
  #hero h2 {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {

  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 5%;
  }
}

@media (max-height: 500px) {
  #hero {
    height: 120vh;
  }
}

/*--------------------------------------------------------------

/* Logo d'origine (assets/base/css/base.css) */
.logo-text { font-size: .5em !important; color: var(--bs-gray-dark) !important; font-family: 'Poppins' !important; }
.rounded-button { border-radius: 30px !important; }
#header .logo:hover { text-decoration: none; }

/* Polices d'origine, prioritaires sur celles des nouvelles pages */
#hero h2 { font-family: "Raleway", sans-serif; letter-spacing: normal; line-height: 1.2; }
#hero p { font-family: "Open Sans", sans-serif; }

/* ---------- Harmonisation avec la charte du site (structure inchangée) ---------- */
#header { border-bottom: 1px solid transparent; }
#header.header-scrolled { border-bottom-color: #e2e6ee; box-shadow: 0 10px 30px -18px rgba(11, 33, 64, .35); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); }
.navbar a, .navbar a:focus { position: relative; }
.navbar > ul > li > a:not(.getstarted)::after {
    content: ""; position: absolute; left: 20px; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
    background: #16a3b5; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.navbar > ul > li > a:not(.getstarted):hover::after, .navbar > ul > li > a.active::after { transform: scaleX(1); }
.navbar .getstarted, .navbar .getstarted:focus { border-radius: 999px; font-weight: 500; box-shadow: 0 8px 20px -10px rgba(22, 163, 181, .8); }
.navbar .dropdown ul { border-radius: 14px; border: 1px solid #e2e6ee; padding: 8px; box-shadow: 0 24px 50px -20px rgba(11, 33, 64, .35); }
.navbar .dropdown ul a { border-radius: 9px; }
.navbar .dropdown ul a:hover { background: #f7f6f2; }
.navbar-mobile { background: rgba(7, 22, 41, .85); backdrop-filter: blur(4px); }
.navbar-mobile ul { border-radius: 16px; }
.navbar-mobile > ul > li > a::after { display: none; }
.navbar-mobile a, .navbar-mobile a:focus { justify-content: flex-start; gap: 4px; }
.navbar-mobile .dropdown > a > .bi-chevron-down { margin-left: auto; }
.navbar-mobile .getstarted, .navbar-mobile .getstarted:focus { justify-content: center; }

#hero { background-color: #071629; }
#hero .carousel-item::before { background: linear-gradient(180deg, rgba(7, 22, 41, .5) 0%, rgba(11, 33, 64, .66) 55%, rgba(7, 22, 41, .82) 100%); }
#hero h2, #hero p { text-shadow: 0 2px 18px rgba(7, 22, 41, .45); }
#hero h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.01em; max-width: 900px; margin-left: auto; margin-right: auto; }
#hero p { font-family: "Inter", sans-serif; font-size: 17px; line-height: 1.7; max-width: 760px; color: rgba(255, 255, 255, .85); }
#hero .btn-get-started { font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .02em; padding: 16px 34px; border-radius: 999px; box-shadow: 0 12px 28px -12px rgba(22, 163, 181, .9); }
#hero .carousel-indicators li { width: 10px; height: 10px; transition: width .3s ease, opacity .3s ease; }
#hero .carousel-indicators li.active { width: 28px; }
#hero .carousel-control-next-icon, #hero .carousel-control-prev-icon { backdrop-filter: blur(4px); }

/* Écrans intermédiaires : le menu complet tient sur une ligne */
.logo-text { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1279px) {
  .navbar a, .navbar a:focus { padding-left: 12px; font-size: 14px; }
  .navbar > ul > li > a:not(.getstarted)::after { left: 12px; }
  .navbar .getstarted, .navbar .getstarted:focus { margin-left: 14px; padding: 8px 18px; }
  #header .logo img { max-height: 42px; }
}

/* ---------- Bannière : un fond illustré par message, léger zoom pendant l'affichage ---------- */
#hero .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1.02); }
#hero .carousel-item.active .hero-bg img { animation: heroZoom 9s ease-out forwards; }
#hero .carousel-item::before {
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 55% at 50% 52%, rgba(7, 22, 41, .62) 0%, rgba(7, 22, 41, .25) 70%, rgba(7, 22, 41, 0) 100%),
        linear-gradient(180deg, rgba(7, 22, 41, .45) 0%, rgba(11, 33, 64, .25) 45%, rgba(7, 22, 41, .7) 100%);
}
#hero .carousel-container { z-index: 2; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
    #hero .carousel-item.active .hero-bg img { animation: none; }
}
