#mainNavbar .navbar-brand img {
  max-height: 52px;
  width: auto;
}

#mainNavbar .nav-link {
  font-weight: 500;
}

@media (min-width: 992px) {
  #mainNavbar .navbar-nav .nav-item {
    margin-left: .35rem;
    margin-right: .35rem;
  }
}

/* HERO SLIDER */
.hero-section {
  margin-top: 0;
}

.home-slider {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
}

.home-slider .swiper-wrapper {
  height: 100%;
}

.home-slider .swiper-slide {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.60), rgba(0,0,0,.25));
  z-index: 1;
}

.home-slider .container {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  letter-spacing: .08em;
}

.home-slider .swiper-pagination {
  bottom: 24px !important;
}

.home-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: .7;
}

.home-slider .swiper-pagination-bullet-active {
  opacity: 1;
}

.home-slider .swiper-button-prev,
.home-slider .swiper-button-next {
  color: #fff;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.home-slider .swiper-button-prev::after,
.home-slider .swiper-button-next::after {
  font-size: 1.15rem;
  font-weight: 700;
}

/* TEXT / INTRO */
.bg-light {
  background-color: #f8f9fb !important;
}

/* GUIDES SLIDER */
.guides-slider {
  overflow: hidden;
}

.guides-slider .swiper-slide {
  height: auto;
}

.guide-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.14);
}

.guides-img {
  height: 270px;
  object-fit: cover;
  display: block;
}

.guides-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.18));
}

.guides-prev,
.guides-next {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* GALLERY */
.detail-slider {
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 1rem;
}

.detail-slider .swiper-button-prev,
.detail-slider .swiper-button-next {
  color: #fff;
}

.detail-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: .65;
}

.detail-slider .swiper-pagination-bullet-active {
  opacity: 1;
}

/* SCROLL TOP */
.scroll-top-btn {
  background: #0d6efd;
  color: #fff;
  border: none;
  transition: all .25s ease;
}

.scroll-top-btn:hover {
  background: #0b5ed7;
  color: #fff;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .home-slider {
    height: 62vh;
    min-height: 440px;
  }

  .gallery-img {
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .guides-img {
    height: 240px;
  }

  .home-slider .display-4 {
    font-size: 2rem;
  }

  .home-slider .lead {
    font-size: 1rem;
  }
}

.guides-slider {
  overflow: hidden;
}

.guides-slider .swiper-slide {
  height: auto;
}

.guide-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.14);
}

.guides-img {
  height: 270px;
  object-fit: cover;
  display: block;
}

.guides-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.18));
}

.guides-prev,
.guides-next {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bg-light {
  background-color: #f8f9fb !important;
}

/* Card intro guides */
.guides-intro-card p.text-primary {
  font-size: 1.2rem;
}

.guides-intro-card h2 {
  font-size: 2.1rem;
  line-height: 1.2;
}

.guides-intro-card .text-muted {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Texte sur les cartes */
.guides-overlay h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.guides-overlay p {
  font-size: 0.98rem;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .guides-intro-card h2 {
    font-size: 1.8rem;
  }

  .guides-intro-card .text-muted {
    font-size: 1rem;
  }
}

/* Galerie section */
.gallery-intro-card p.text-primary {
  font-size: 1rem;
}

.gallery-intro-card h2 {
  font-size: 2.1rem;
  line-height: 1.2;
}

.gallery-intro-card .text-muted {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Galerie bas de page */
/* Galerie bas de page */
.detail-slider {
  overflow: hidden;
}

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

.gallery-img {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1000 / 715;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
  transition: transform .3s ease;
}

.gallery-img:hover {
  transform: scale(1.01);
}

/* Image dans le modal */
.modal-gallery-img {
  width: 100%;
  max-width: 1000px;
  max-height: 715px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #f8f9fa;
}

/* Modal galerie */
#galleryModal .modal-content {
  background: #fff;
}

#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon {
  filter: invert(1) grayscale(100);
}

/* Card intro galerie */
.gallery-intro-card p.text-primary {
  font-size: 1rem;
}

.gallery-intro-card h2 {
  font-size: 2.1rem;
  line-height: 1.2;
}

.gallery-intro-card .text-muted {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 991.98px) {
  .gallery-img {
    max-width: 100%;
  }

  .modal-gallery-img {
    max-width: 100%;
    max-height: 70vh;
  }

  .gallery-intro-card h2 {
    font-size: 1.8rem;
  }

  .gallery-intro-card .text-muted {
    font-size: 1rem;
  }
}

/* FOOTER */
.footer-premium {
  font-size: 14px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #6c757d;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #0d6efd;
  padding-left: 4px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f3f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #0d6efd;
  color: #fff;
  transform: translateY(-2px);
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2f6;
  color: #495057;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: #0d6efd;
  color: #fff;
  transform: translateY(-2px);
}
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin-top: 63px; /* hauteur approximative du menu */
  padding: 4rem 0;
}


.page-hero-overlay {
  position: absolute;
  inset: 0;
   background: linear-gradient(to right, rgba(0,0,0,.38), rgba(0,0,0,.08));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .page-hero {
    margin-top: 76px;
    min-height: 260px;
    padding: 3rem 0;
  }
}

  .page-hero .display-5 {
    font-size: 2rem;
  }
}


.breadcrumb a {
  text-decoration: none;
}
.gallery-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.08);
  text-decoration: none;
  background: #fff;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .85rem 1rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}

/* Modal galerie élégant */
.gallery-modal .modal-content {
  background: #3b4356;
}

.gallery-modal .modal-header {
  background: #3b4356;
}

.page-gallery-modal-img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #3b4356;
}

.modal-photo-caption {
  padding: 1rem 1.5rem;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  background: #3b4356;
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
  width: 8%;
}

.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
}

@media (min-width: 992px) {
  .sticky-aside {
    position: sticky;
    top: 110px;
    transition: top 0.2s ease;
  }
}
.card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  margin-bottom: .65rem;
  padding-left: 1.4rem;
  position: relative;
}

.download-list li::before {
  content: "\F63E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #0d6efd;
}

.download-list a {
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  transition: all .2s ease;
}

.download-list a:hover {
  color: #0d6efd;
  padding-left: 3px;
}
.phone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phone-list li {
  padding: .55rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.phone-list li:last-child {
  border-bottom: 0;
}

.phone-list a {
  text-decoration: none;
  font-weight: 600;
  color: #0d6efd;
}

.phone-list a:hover {
  text-decoration: underline;
}

.contact-page {
  margin-top: 90px;
}

.contact-page .form-control {
  border-radius: .8rem;
  padding: .75rem 1rem;
}

.contact-page .form-control:focus {
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.12);
}

/* Legacy article compatibility after Bootstrap 5 migration */
.py-6 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.pt-7 {
  padding-top: 7rem !important;
}

.bg-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dark-overlay {
  position: relative;
  min-height: 360px;
}

.dark-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.62), rgba(0,0,0,.25));
  z-index: 0;
}

.overlay-content {
  position: relative;
  z-index: 1;
}

.badge-transparent {
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
}

.text-shadow {
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.text-block {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 .35rem 1rem rgba(0,0,0,.07);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .text-block {
    padding: 2rem;
  }
}

.text-block h1,
.text-block h2,
.text-block h3,
.text-block h4 {
  font-weight: 700;
  color: #25364f;
}

.text-block p,
.text-block li {
  line-height: 1.75;
}

.gallery img,
.slider-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

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

/* Inner page hero and internal navigation */
.dark-overlay.bg-cover {
  min-height: 470px;
}

.dark-overlay.bg-cover .container {
  padding-top: 6rem;
  padding-bottom: 3.5rem;
}

.dark-overlay.bg-cover h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  max-width: 880px;
}

.inner-site-nav {
  position: relative;
  z-index: 4;
}

.inner-site-nav-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .85rem 0;
  scrollbar-width: thin;
}

.inner-site-link {
  flex: 0 0 auto;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: .45rem .9rem;
  background: #f8f9fb;
  border: 1px solid rgba(0,0,0,.06);
}

.inner-site-link:hover,
.inner-site-link:focus {
  color: #0d6efd;
  background: #eef5ff;
  border-color: rgba(13,110,253,.22);
}

@media (max-width: 575.98px) {
  .dark-overlay.bg-cover {
    min-height: 390px;
  }

  .dark-overlay.bg-cover .container {
    padding-top: 5rem;
    padding-bottom: 2.25rem;
  }
}

/* Gallery arrows visibility */
.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
  opacity: 1;
}

.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
  background-color: rgba(0,0,0,.55);
  border-radius: 999px;
  padding: 1.35rem;
  background-size: 1.25rem 1.25rem;
}

.slider-gallery .swiper-button-prev,
.slider-gallery .swiper-button-next {
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
}

.slider-gallery .swiper-button-prev::after,
.slider-gallery .swiper-button-next::after {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Visible mobile menu toggler */
#mainNavbar .navbar-toggler {
  border: 1px solid rgba(15, 23, 42, .22) !important;
  border-radius: .65rem;
  padding: .45rem .6rem;
  background: #fff;
}

#mainNavbar .navbar-toggler:focus {
  box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .18) !important;
}

#mainNavbar .navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  filter: none;
}
