/*
=================================
Theme Dioqa - Styles personnalisés
=================================
*/

@font-face {
  font-display: swap;
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/onest-v9-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/onest-v9-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/onest-v9-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/onest-v9-latin-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/dm-sans-v17-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/dm-sans-v17-latin-700.woff2') format('woff2');
}

/* Variables CSS personnalisées */
:root {
  --bs-primary: #002baa;
  --bs-primary-rgb: 0, 43, 170;
  --bs-secondary: #ffd000;
  --bs-secondary-rgb: 255, 208, 0;
  --bs-gray-light: #f1f1f1;
  --bs-gray-medium: #6b687d;
  --bs-gray-dark: #3b3949;
  --bs-gray-darker: #34333c;
  --font-title: 'Onest', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --heading-font: var(--font-title);
  --body-font: var(--font-body);

  /* Border Radius */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.625rem; /* 10px */
  --radius-xl: 0.9375rem; /* 15px */
  --radius-xxl: 1.25rem; /* 20px */

  /* Font sizes - Desktop */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-md: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --display-xs: 1.5rem; /* 24px */
  --display-sm: 1.875rem; /* 30px */
  --display-2sm: 2rem; /* 32px */
  --display-md: 2.25rem; /* 36px */
  --display-2md: 2.625rem; /* 42px */
  --display-lg: 3rem; /* 48px */
  --display-2lg: 3.375rem; /* 54px */
  --display-xl: 3.75rem; /* 60px */
  --display-2xl: 4.5rem; /* 72px */

  /* Font sizes - Mobile */
  --text-xs-mobile: 0.75rem; /* 12px */
  --text-sm-mobile: 0.875rem; /* 14px */
  --text-md-mobile: 1rem; /* 16px */
  --text-lg-mobile: 1.0625rem; /* 17px */
  --text-xl-mobile: 1.125rem; /* 18px */
  --display-xs-mobile: 1.25rem; /* 20px */
  --display-sm-mobile: 1.75rem; /* 28px */
  --display-2sm-mobile: 1.75rem; /* 28px */
  --display-md-mobile: 2rem; /* 32px */
  --display-2md-mobile: 2.375rem; /* 38px */
  --display-lg-mobile: 2.375rem; /* 38px */
  --display-2lg-mobile: 2.375rem; /* 38px */
  --display-xl-mobile: 2.375rem; /* 38px */
  --display-2xl-mobile: 2.375rem; /* 38px */
}

/* === TYPOGRAPHY UTILITIES === */

/* Text sizes */
.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-md {
  font-size: var(--text-md);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}

/* Display sizes */
.display-xs {
  font-size: var(--display-xs);
  line-height: 1.2;
}
.display-sm {
  font-size: var(--display-sm);
  line-height: 1.2;
}
.display-2sm {
  font-size: var(--display-2sm);
  line-height: 1.2;
}
.display-md {
  font-size: var(--display-md);
  line-height: 1.2;
}
.display-2md {
  font-size: var(--display-2md);
  line-height: 1.2;
}
.display-lg {
  font-size: var(--display-lg);
  line-height: 1.1;
}
.display-2lg {
  font-size: var(--display-2lg);
  line-height: 1.1;
}
.display-xl {
  font-size: var(--display-xl);
  line-height: 1.1;
}
.display-2xl {
  font-size: var(--display-2xl);
  line-height: 1.1;
}

/* Hover utilities */
.hover-text-primary:hover {
  color: var(--bs-primary) !important;
}
.hover-bg-primary:hover {
  background-color: var(--bs-primary) !important;
}
.hover-border-primary:hover {
  border-color: var(--bs-primary) !important;
}
.hover-text-secondary:hover {
  color: var(--bs-secondary) !important;
}
.hover-bg-secondary:hover {
  background-color: var(--bs-secondary) !important;
}
.hover-border-secondary:hover {
  border-color: var(--bs-secondary) !important;
}
.hover-text-white:hover {
  color: var(--bs-white) !important;
}
.hover-bg-white:hover {
  background-color: var(--bs-white) !important;
}
.hover-border-white:hover {
  border-color: var(--bs-white) !important;
}

/* Gray utilities */
.text-gray-light {
  color: var(--bs-gray-light) !important;
}
.text-gray-medium {
  color: var(--bs-gray-medium) !important;
}
.text-gray-dark {
  color: var(--bs-gray-dark) !important;
}
.text-gray-darker {
  color: var(--bs-gray-darker) !important;
}
.bg-transparent {
  background-color: transparent !important;
}
.bg-gray-light {
  background-color: var(--bs-gray-light) !important;
}
.bg-gray-medium {
  background-color: var(--bs-gray-medium) !important;
}
.bg-gray-dark {
  background-color: var(--bs-gray-dark) !important;
}
.bg-gray-darker {
  background-color: var(--bs-gray-darker) !important;
}

/* Styles généraux */
body {
  font-family: var(--body-font);
  overflow-x: hidden;
}

/* Amélioration du padding containers sur mobile */
@media (max-width: 576px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
}

p {
  font-family: var(--body-font);
}

/* ========================================
   Boutons Globaux
======================================== */

/* Style de base pour tous les boutons */
.btn {
  padding: 0.75rem 2rem;
  font-size: var(--text-md);
  font-weight: 400;
  font-family: var(--body-font);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* Bouton Primaire */
.btn-primary {
  background-color: var(--bs-primary);
  color: #ffffff;
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  background-color: var(--bs-primary);
  color: #ffffff;
  opacity: 0.9;
}

/* Bouton Secondaire */
.btn-secondary {
  background-color: var(--bs-secondary);
  color: var(--bs-primary);
  border-color: var(--bs-secondary);
}

.btn-secondary:hover {
  background-color: var(--bs-secondary);
  color: var(--bs-primary);
  opacity: 0.9;
}

/* Bouton Outline Primaire */
.btn-outline-primary {
  background-color: transparent;
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  color: #ffffff;
}

/* Bouton Outline Secondaire */
.btn-outline-secondary {
  background-color: transparent;
  color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--bs-secondary);
  color: var(--bs-primary);
}

/* === HEADER & LOGO === */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
}

.logo-header {
  max-height: 50px;
  width: auto;
  height: auto;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover .logo-header {
  opacity: 0.85;
}

/* Responsive logo */
@media (max-width: 768px) {
  .logo-header {
    max-height: 40px;
  }
}

/* === TOP BAR === */
.top-bar {
  font-size: var(--text-xs);
}

.top-bar-link {
  transition: opacity 0.3s ease;
  color: #fff;
}

.top-bar-link span {
  font-family: var(--body-font);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: #fff;
}

.top-bar-link:hover {
  opacity: 0.85;
  color: #fff;
}

.top-bar svg {
  flex-shrink: 0;
}

/* === SOCIAL LINKS === */
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--bs-secondary);
  color: var(--bs-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-link:hover svg {
  opacity: 1;
}

/* === FOOTER === */
.site-footer {
  background-color: var(--bs-primary);
  color: #fff;
  position: relative;
  padding-top: 5rem;
}

/* Ajouter du padding-top au footer si une banner chevauche */
body:has(.banner-overlap) .site-footer {
  padding-top: 13rem;
}

.footer-contact,
.footer-contact li {
  color: #fff;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.footer-contact svg {
  color: #fff;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--bs-secondary);
}

/* Footer Widgets */
.site-footer .widget {
  margin-bottom: 1.5rem;
}

.site-footer .widget-title,
.site-footer .widgettitle {
  color: var(--text-bs-white, #fff);
  font-family: var(--font-family-title, Onest);
  font-size: var(--font-size-text-lg, 1.125rem);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 1rem;
}

.site-footer .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .widget ul li {
  margin-bottom: 0.5rem;
}

.site-footer .widget ul li a {
  color: var(--text-bs-white, #fff);
  font-family: var(--font-family-body, 'DM Sans');
  font-size: var(--font-size-text-md, 1rem);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .widget ul li a:hover {
  color: var(--bs-secondary);
}

/* Menu footer "Nos expertises" en 2 colonnes - cibler uniquement le premier sidebar */
.col-lg-4.offset-lg-1 .widget_nav_menu ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
}

/* Forcer le menu à rester sur une seule colonne sur mobile */
@media (max-width: 991px) {
  .col-lg-4.offset-lg-1 .widget_nav_menu ul {
    grid-template-columns: 1fr;
  }
}

/* Footer Copyright */
.footer-copyright {
  position: relative;
  margin-top: 2rem;
}

.footer-copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

/* === SECTIONS PAGE BUILDER === */

/* Hero Section */

.hero-title {
  text-align: left;
}

.hero-title h1,
.hero-title h2,
.hero-title h3,
.hero-title h4,
.hero-title h5,
.hero-title h6 {
  color: var(--bs-gray-dark);
  font-family: var(--font-title);
  font-size: var(--display-2sm);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.hero-text {
  text-align: left;
}

.hero-text p {
  color: var(--bs-gray-medium);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  text-align: center;
}

/* Container pour gérer la hauteur dynamique - compatible Imagify */
.hero-image-container {
  width: 100%;
  max-height: var(--hero-image-height, 30rem);
  overflow: hidden;
  border-radius: var(--bs-border-radius);
}

/* Cibler l'image directement ET dans les balises picture/source d'Imagify */
.hero-image-container img,
.hero-image-container picture img {
  width: 100%;
  height: var(--hero-image-height, 30rem);
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* S'assurer que la balise picture prend toute la largeur */
.hero-image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-buttons {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  gap: 1rem;
  justify-content: start;
  flex-wrap: wrap;
  padding: 0 1rem;
}

/* Boutons Hero uniformisés */
.hero-buttons .btn {
  min-width: 140px;
  text-align: center;
}

/* Tablette : grille 3 colonnes */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 600px;
  }

  .hero-buttons .btn {
    min-width: auto;
    width: 100%;
  }
}

/* Mobile : grille 2 colonnes */
@media (max-width: 767.98px) {
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    bottom: 1rem;
  }

  .hero-buttons .btn {
    min-width: auto;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
  }
}

/* Boutons Hero - Utilisent les styles globaux */

/* === Content Block Section === */
.content-section {
  /* Padding géré dynamiquement via ACF */
}

.content-section.bg-white {
  background-color: #ffffff;
}

.content-section.bg-gray-light {
  background-color: var(--bs-gray-light);
}

.content-section.bg-primary {
  background-color: var(--bs-primary);
}

.content-section.bg-primary .content-title,
.content-section.bg-primary .content-title h1,
.content-section.bg-primary .content-title h2,
.content-section.bg-primary .content-title h3,
.content-section.bg-primary .content-title h4,
.content-section.bg-primary .content-description p {
  color: #ffffff;
}

.content-section.bg-secondary {
  background-color: var(--bs-secondary);
}

.content-section.bg-secondary .content-title,
.content-section.bg-secondary .content-title h1,
.content-section.bg-secondary .content-title h2,
.content-section.bg-secondary .content-title h3,
.content-section.bg-secondary .content-title h4,
.content-section.bg-secondary .content-description p {
  color: var(--bs-primary);
}

.content-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.content-title h1,
.content-title h2,
.content-title h3,
.content-title h4 {
  color: var(--bs-gray-dark);
  font-family: var(--heading-font);
  font-size: var(--display-md);
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0;
}

.content-description p {
  color: var(--bs-gray-medium);
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
}

/* Boutons Content - Utilisent les styles globaux */

/* === Values Section === */

.values-image img {
  width: 100%;
  height: auto;
}

.value-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.value-title {
  color: var(--bs-gray-dark);
  font-family: var(--heading-font);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: normal;
}

.value-text p {
  color: var(--bs-gray-medium);
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
}

/* === Slider Catégories Section === */
.slider-categories-section {
  /* Padding géré dynamiquement via ACF */
  background-color: var(--bs-gray-light);
}

.slider-categories-section .swiper-slide {
  height: auto;
  display: flex;
  max-width: 100%;
}

.slider-categories-title {
  color: var(--bs-gray-dark);
  font-family: var(--heading-font);
  font-size: var(--display-sm);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

.category-card {
  background: #ffffff;
  border-radius: var(--radius-xxl);
  padding: 1.25rem;
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bs-secondary);
  border-radius: 50%;
  padding: 1rem;
  width: fit-content;
}

.category-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.category-card:hover .category-icon-img {
  animation: rotate360 0.6s ease forwards;
}

.category-title {
  color: var(--bs-gray-dark);
  font-family: var(--heading-font);
  font-size: var(--display-xs);
  font-weight: 600;
  line-height: normal;
}

.category-text {
  color: var(--bs-gray-medium);
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: normal;
}

/* ========================================
   Navigation Swiper Commune
======================================== */

/* Boutons de navigation Swiper - Base */
.swiper-nav-btn,
.slider-categories-section .swiper-button-next,
.slider-categories-section .swiper-button-prev,
.slider-gallery-section .swiper-button-prev,
.slider-gallery-section .swiper-button-next {
  position: static;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Style Primaire (par défaut) */
.swiper-nav-btn,
.swiper-nav-primary .swiper-button-next,
.swiper-nav-primary .swiper-button-prev {
  background: var(--bs-primary);
  border: 1px solid var(--bs-primary);
  color: #ffffff;
}

.swiper-nav-primary .swiper-button-next:hover,
.swiper-nav-primary .swiper-button-prev:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  opacity: 0.9;
}

/* Style Secondaire */
.swiper-nav-secondary .swiper-button-next,
.swiper-nav-secondary .swiper-button-prev {
  background: var(--bs-secondary);
  border: 1px solid var(--bs-secondary);
  color: var(--bs-primary);
}

.swiper-nav-secondary .swiper-button-next:hover,
.swiper-nav-secondary .swiper-button-prev:hover {
  background: var(--bs-secondary);
  border-color: var(--bs-secondary);
  opacity: 0.9;
}

/* Style Outline Primaire */
.swiper-nav-outline-primary .swiper-button-next,
.swiper-nav-outline-primary .swiper-button-prev {
  background: transparent;
  border: 1px solid var(--bs-primary);
  color: var(--bs-primary);
}

.swiper-nav-outline-primary .swiper-button-next:hover,
.swiper-nav-outline-primary .swiper-button-prev:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
}

/* Style Outline Secondaire */
.swiper-nav-outline-secondary .swiper-button-next,
.swiper-nav-outline-secondary .swiper-button-prev {
  background: transparent;
  border: 1px solid var(--bs-secondary);
  color: var(--bs-secondary);
}

.swiper-nav-outline-secondary .swiper-button-next:hover,
.swiper-nav-outline-secondary .swiper-button-prev:hover {
  background: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: var(--bs-primary);
}

/* Cacher les icônes par défaut de Swiper */
.swiper-nav-btn:after,
.slider-categories-section .swiper-button-next:after,
.slider-categories-section .swiper-button-prev:after,
.slider-gallery-section .swiper-button-next:after,
.slider-gallery-section .swiper-button-prev:after {
  content: none;
}

/* Styler les SVG */
.swiper-nav-btn svg,
.slider-categories-section .swiper-button-next svg,
.slider-categories-section .swiper-button-prev svg,
.slider-gallery-section .swiper-button-next svg,
.slider-gallery-section .swiper-button-prev svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  transition: stroke 0.3s ease;
}

/* Hover */
.swiper-nav-btn:hover,
.slider-categories-section .swiper-button-next:hover,
.slider-categories-section .swiper-button-prev:hover,
.slider-gallery-section .swiper-button-next:hover,
.slider-gallery-section .swiper-button-prev:hover {
  background: var(--bs-gray-dark);
  border-color: var(--bs-gray-dark);
}

.swiper-nav-btn:hover svg,
.slider-categories-section .swiper-button-next:hover svg,
.slider-categories-section .swiper-button-prev:hover svg,
.slider-gallery-section .swiper-button-next:hover svg,
.slider-gallery-section .swiper-button-prev:hover svg {
  stroke: #ffffff;
}

/* Disabled - Tous styles */
.swiper-nav-btn:disabled,
.swiper-nav-btn.disabled,
.swiper-nav-primary .swiper-button-next.swiper-button-disabled,
.swiper-nav-primary .swiper-button-prev.swiper-button-disabled,
.swiper-nav-secondary .swiper-button-next.swiper-button-disabled,
.swiper-nav-secondary .swiper-button-prev.swiper-button-disabled,
.swiper-nav-outline-primary .swiper-button-next.swiper-button-disabled,
.swiper-nav-outline-primary .swiper-button-prev.swiper-button-disabled,
.swiper-nav-outline-secondary .swiper-button-next.swiper-button-disabled,
.swiper-nav-outline-secondary .swiper-button-prev.swiper-button-disabled,
.slider-categories-section .swiper-button-next.swiper-button-disabled,
.slider-categories-section .swiper-button-prev.swiper-button-disabled,
.slider-gallery-section .swiper-button-next.swiper-button-disabled,
.slider-gallery-section .swiper-button-prev.swiper-button-disabled {
  cursor: not-allowed;
  pointer-events: none;
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  opacity: 0.5;
}

.swiper-nav-btn:disabled svg,
.swiper-nav-btn.disabled svg,
.swiper-nav-primary .swiper-button-next.swiper-button-disabled svg,
.swiper-nav-primary .swiper-button-prev.swiper-button-disabled svg,
.swiper-nav-secondary .swiper-button-next.swiper-button-disabled svg,
.swiper-nav-secondary .swiper-button-prev.swiper-button-disabled svg,
.swiper-nav-outline-primary .swiper-button-next.swiper-button-disabled svg,
.swiper-nav-outline-primary .swiper-button-prev.swiper-button-disabled svg,
.swiper-nav-outline-secondary .swiper-button-next.swiper-button-disabled svg,
.swiper-nav-outline-secondary .swiper-button-prev.swiper-button-disabled svg,
.slider-categories-section .swiper-button-next.swiper-button-disabled svg,
.slider-categories-section .swiper-button-prev.swiper-button-disabled svg,
.slider-gallery-section .swiper-button-next.swiper-button-disabled svg,
.slider-gallery-section .swiper-button-prev.swiper-button-disabled svg {
  stroke: rgba(0, 0, 0, 0.4);
}

/* ========================================
   Slider Gallery Section
======================================== */

.slider-gallery-section {
  /* Padding géré dynamiquement via ACF */
  overflow: hidden;
}

.slider-gallery-title h2,
.slider-gallery-title h3 {
  font-family: var(--heading-font);
  font-size: var(--display-md);
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0;
  color: var(--bs-gray-dark);
}

.slider-gallery-section .swiper {
  padding-top: 2rem !important;
  overflow: visible;
}

.slider-gallery-section .swiper-slide {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0.9) !important;
  opacity: 0.7;
  width: auto;
  height: auto;
}

.slider-gallery-section .swiper-slide-active {
  transform: scale(1.1) !important;
  opacity: 1;
  z-index: 2;
}

.slider-gallery-section .swiper-slide img {
  height: 400px;
  width: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

/* Format paysage - plus large */
.slider-gallery-section .swiper-slide.slide-landscape img {
  min-width: 500px;
  max-width: 700px;
}

/* Format portrait - plus étroit */
.slider-gallery-section .swiper-slide.slide-portrait img {
  min-width: 250px;
  max-width: 350px;
}

/* Navigation Container */
.slider-gallery-section [class*='nav-swiper-'] {
  padding-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .slider-gallery-section {
    /* Padding géré dynamiquement via ACF */
  }

  .slider-gallery-section .swiper-slide img {
    height: 250px;
  }

  /* Ajustement des largeurs en mobile */
  .slider-gallery-section .swiper-slide.slide-landscape img {
    min-width: 300px;
    max-width: 450px;
  }

  .slider-gallery-section .swiper-slide.slide-portrait img {
    min-width: 180px;
    max-width: 250px;
  }
}

/* ========================================
   FAQ Section
======================================== */

.faq-section {
  /* Padding géré dynamiquement via ACF */
}

.faq-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faq-content {
  height: 100%;
}

.faq-title h2,
.faq-title h3 {
  font-family: var(--heading-font);
  font-size: var(--display-md);
  color: var(--bs-gray-dark);
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0;
}

.faq-text {
  font-family: var(--body-font);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: normal;
  color: var(--bs-gray-medium);
  margin-bottom: 0;
}

/* Accordion FAQ personnalisé */
.faq-accordion .accordion-item {
  border: none;
  background-color: transparent;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-accordion .accordion-button {
  background-color: transparent;
  color: var(--bs-gray-dark);
  font-family: var(--body-font);
  font-size: var(--text-lg);
  font-weight: 600;
  padding: 1.5rem 0;
  border: none;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--bs-primary);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.faq-accordion .accordion-button::after {
  content: '';
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
  transform: none;
}

.faq-accordion .accordion-body {
  padding: 0 0 1.5rem 0;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.6;
  color: var(--bs-gray-medium);
}

/* Responsive */
@media (max-width: 992px) {
  .faq-section {
    /* Padding géré dynamiquement via ACF */
  }

  .faq-image {
    margin-bottom: 2rem;
  }
}

/* ========================================
   SEO Texts Section
======================================== */

.seo-texts-section {
  /* Padding géré dynamiquement via ACF */
}

.seo-texts-content {
  text-align: left;
}

.seo-texts-preview {
  position: relative;
  text-align: left;
}

.seo-texts-full {
  text-align: left;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
  color: var(--bs-gray-medium);
}

.seo-texts-toggle {
  text-align: left !important;
}

.seo-texts-full {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.seo-toggle-btn {
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .seo-texts-section {
    /* Padding géré dynamiquement via ACF */
  }
}

/* ========================================
   Banner Footer Section
======================================== */

.banner-footer-section {
  /* Padding géré dynamiquement via ACF */
  position: relative;
  z-index: 1;
}

/* Banner en mode chevauchement - utilise une marge négative */
.banner-footer-section.banner-overlap {
  position: relative;
  z-index: 100;
  padding: 0;
  margin-bottom: 0;
}

.banner-footer-card {
  background: #ffffff;
  border-radius: var(--radius-xxl);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.banner-footer-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-footer-text h1,
.banner-footer-text h2,
.banner-footer-text h3,
.banner-footer-text h4 {
  margin-bottom: 1rem;
}

.banner-footer-text p {
  color: var(--bs-gray-dark);
  font-family: var(--heading-font);
  font-size: var(--display-xs);
  font-weight: 500;
  line-height: normal;
  margin-bottom: 0;
}

.banner-footer-image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.banner-footer-image img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========================================
   Key Figures Section
======================================== */

.key-figures-section {
  /* Padding géré dynamiquement via ACF */
}

.key-figure-content {
  min-width: 0; /* Pour permettre le text-overflow si nécessaire */
}

.key-figure-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
}

.key-figure-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.key-figure-title h5 {
  font-weight: 700;
  color: var(--bs-primary) !important;
  font-family: var(--heading-font);
  font-size: var(--text-md);
  line-height: normal;
  margin-bottom: 0;
  text-transform: uppercase;
}

.key-figure-label p {
  font-weight: 400;
  color: var(--bs-gray-medium);
  font-family: var(--body-font);
  font-size: var(--text-xs);
  line-height: normal;
  margin-bottom: 0;
}

/* ========================================
   Contact Section
======================================== */

.contact-section {
  /* Padding géré dynamiquement via ACF */
}

.contact-info {
  height: auto;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 0.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.contact-title h1,
.contact-title h2,
.contact-title h3,
.contact-title h4 {
  font-family: var(--heading-font);
  font-size: var(--display-2sm);
  color: var(--bs-gray-dark);
  font-weight: 500;
  line-height: normal;
  margin-bottom: 0.5rem;
}

.contact-text {
  font-family: var(--body-font);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: normal;
  color: var(--bs-gray-medium);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-text p {
  margin-bottom: 1rem;
}

/* Coordonnées */
.infos-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.infos-contact,
.infos-contact li {
  color: var(--bs-gray-medium);
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
}

.infos-contact svg {
  color: var(--bs-primary);
}

.infos-contact a {
  color: var(--bs-gray-medium);
  text-decoration: none;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transition: color 0.3s ease;
}

.infos-contact a:hover {
  color: var(--bs-primary);
}

/* Formulaire */

/* Styles pour Gravity Forms */
.contact-form .gform_wrapper {
  margin: 0 !important;
}

.contact-form .gform_wrapper .gform_body {
  width: 100%;
}

.contact-form .gform_wrapper .gform_fields {
  row-gap: 0rem !important;
}

.contact-form .gform_wrapper .gfield {
  margin-bottom: 1.5rem;
}

.contact-form .gform_wrapper .gfield_label {
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--bs-gray-dark);
  margin-bottom: 0.5rem;
}

.contact-form .gform_wrapper input[type='text'],
.contact-form .gform_wrapper input[type='email'],
.contact-form .gform_wrapper input[type='tel'],
.contact-form .gform_wrapper textarea {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--body-font) !important;
  font-size: var(--text-sm) !important;
  background-color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  transition: border-color 0.3s ease !important;
}

/* Input File - Style personnalisé */
.contact-form .gform_wrapper input[type='file'] {
  width: 100% !important;
  padding: 0 !important;
  font-family: var(--body-font) !important;
  font-size: var(--text-sm) !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--bs-gray-medium) !important;
  height: 48px !important;
  line-height: 48px !important;
}

.contact-form .gform_wrapper input[type='file']::file-selector-button {
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 2rem !important;
  font-size: var(--text-md) !important;
  font-weight: 500 !important;
  font-family: var(--heading-font) !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--bs-primary) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-right: 1rem !important;
  vertical-align: middle !important;
}

.contact-form .gform_wrapper input[type='file']::file-selector-button:hover {
  opacity: 0.9;
}

.contact-form .gform_wrapper input[type='text']:focus,
.contact-form .gform_wrapper input[type='email']:focus,
.contact-form .gform_wrapper input[type='tel']:focus,
.contact-form .gform_wrapper input[type='file']:focus,
.contact-form .gform_wrapper textarea:focus {
  outline: none !important;
  border-color: var(--bs-primary) !important;
  box-shadow: none !important;
}

.contact-form .gform_wrapper input::placeholder,
.contact-form .gform_wrapper textarea::placeholder {
  color: var(--bs-gray-medium) !important;
  font-family: var(--body-font) !important;
  font-size: var(--text-sm) !important;
  opacity: 1 !important;
}

.contact-form .gform_wrapper textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .gform_wrapper .gform_footer,
.contact-form .gform_wrapper .gform-footer {
  margin-top: 1.5rem;
  padding: 0;
  display: flex !important;
  justify-content: flex-end !important;
}

.contact-form .gform_wrapper .gform_button,
.contact-form .gform_wrapper input[type='submit'],
.contact-form .gform_wrapper .button {
  font-size: var(--text-md) !important;
  font-weight: 500 !important;
  font-family: var(--heading-font) !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--bs-primary) !important;
  color: var(--bs-white) !important;
  border: 1px solid var(--bs-primary) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.contact-form .gform_wrapper .gform_button:hover,
.contact-form .gform_wrapper input[type='submit']:hover,
.contact-form .gform_wrapper .button:hover {
  opacity: 0.9;
}

.gform-theme--foundation .gfield textarea.large {
  min-block-size: 10rem !important;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-section {
    /* Padding géré dynamiquement via ACF */
  }

  .contact-info {
    margin-bottom: 3rem;
  }

  .contact-form {
    padding: 2rem;
  }
}

/* ========================================
   Testimonials Section (Avis)
======================================== */

/* Section principale */
.avis-section {
  background: white;
  /* Padding géré dynamiquement via ACF */
  position: relative;
  overflow: hidden;
}

/* Image de gauche */
.avis-image {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 612px;
  height: 475px;
  border-radius: 0 var(--radius-xxl) var(--radius-xxl) 0;
  overflow: hidden;
  z-index: 1;
}

.avis-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Container du slider */
.avis-slider-container {
  position: relative;
  z-index: 2;
  margin-left: 450px;
  padding-left: 100px;
  max-width: calc(100% - 450px);
}

/* Navigation */
.avis-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  margin-bottom: 35px;
}

.avis-nav-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.avis-nav-btn:hover {
  background: var(--bs-gray-light);
}

.avis-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.avis-nav-btn:disabled:hover {
  background: transparent;
}

.avis-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--bs-gray-dark);
}

/* Container des cartes */
.avis-cards-container {
  min-height: 340px;
  overflow: hidden;
  position: relative;
  margin-bottom: 35px;
  width: 1320px;
  max-width: 100%;
}

/* Carte d'avis */
.avis-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-xl);
  padding: 25px;
  width: 424px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  justify-content: space-between;
  top: 15px;
  transition: left 0.5s ease-in-out;
}

/* Texte de l'avis */
.avis-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--bs-text);
  margin: 0;
  width: 100%;
  text-align: left;
}

/* Informations auteur */
.avis-author-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  width: 131px;
}

.avis-author-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  color: var(--bs-gray-dark);
  margin: 0;
  white-space: nowrap;
}

/* Étoiles */
.avis-stars {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.avis-star {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.avis-star svg {
  width: 100%;
  height: 100%;
  fill: var(--bs-gray-light);
}

.avis-star.filled svg {
  fill: var(--bs-primary);
}

/* Pagination */
.avis-pagination {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  width: 1320px;
}

.avis-pagination-dots {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 984px;
}

.avis-dot {
  width: 60px;
  height: 5px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  background: var(--bs-gray-light);
  transition: all 0.3s ease;
}

.avis-dot.active {
  background: var(--bs-primary);
}

.avis-dot:hover {
  background: var(--bs-primary);
  opacity: 0.7;
}

/* Responsive Testimonials */
@media (max-width: 1200px) {
  .avis-image {
    width: 40%;
    height: 400px;
  }

  .avis-slider-container {
    margin-left: 35%;
    max-width: calc(100% - 35%);
  }

  .avis-cards-container {
    max-width: 100%;
    min-height: 340px;
  }

  .avis-card {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .avis-section {
    /* Padding géré dynamiquement via ACF */
  }

  .avis-image {
    position: relative;
    width: 100%;
    height: 300px;
    top: auto;
    transform: none;
    margin-bottom: 2rem;
    border-radius: var(--radius-xxl);
  }

  .avis-slider-container {
    margin-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .avis-cards-container {
    height: auto;
    overflow: hidden;
    position: relative;
  }

  .avis-card {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    left: auto !important;
    height: auto !important;
    display: none !important;
    top: auto !important;
  }

  /* Afficher uniquement la carte active en mobile */
  .avis-card.active {
    display: flex !important;
  }

  .avis-pagination {
    width: 100%;
    justify-content: center;
  }

  .avis-pagination-dots {
    width: auto;
    gap: 12px;
  }

  .avis-dot {
    width: 40px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .text-xs {
    font-size: var(--text-xs-mobile);
  }
  .text-sm {
    font-size: var(--text-sm-mobile);
  }
  .text-md {
    font-size: var(--text-md-mobile);
  }
  .text-lg {
    font-size: var(--text-lg-mobile);
  }
  .text-xl {
    font-size: var(--text-xl-mobile);
  }

  .display-xs {
    font-size: var(--display-xs-mobile);
  }
  .display-sm {
    font-size: var(--display-sm-mobile);
  }
  .display-2sm {
    font-size: var(--display-2sm-mobile);
  }
  .display-md {
    font-size: var(--display-md-mobile);
  }
  .display-2md {
    font-size: var(--display-2md-mobile);
  }
  .display-lg {
    font-size: var(--display-lg-mobile);
  }
  .display-2lg {
    font-size: var(--display-2lg-mobile);
  }
  .display-xl {
    font-size: var(--display-xl-mobile);
  }
  .display-2xl {
    font-size: var(--display-2xl-mobile);
  }

  /* Hero Section */
  .hero-section {
    /* Padding géré dynamiquement via ACF */
  }

  /* Hauteur réduite sur mobile - compatible Imagify */
  .hero-image-container {
    max-height: 425px;
  }

  .hero-image-container img,
  .hero-image-container picture img {
    height: 425px;
  }

  .content-title h1,
  .content-title h2,
  .content-title h3,
  .content-title h4 {
    font-size: var(--display-2sm);
  }

  .banner-footer-content {
    padding: 2rem;
  }

  .key-figure-icon {
    width: 60px;
    height: 60px;
  }

  /* Footer Copyright */
  .footer-copyright::before {
    width: 90%;
  }

  /* Diviser automatiquement les paddings par 2 en mobile pour toutes les sections,
     avec un minimum de 6rem (~96px) pour rester sous le header fixe (~89px) */
  section[style*='--padding-top'] {
    padding-top: max(7.5rem, calc(var(--padding-top) / 2)) !important;
  }

  section[style*='--padding-bottom'] {
    padding-bottom: calc(var(--padding-bottom) / 2) !important;
  }

  /* Réduire le padding du footer avec banner overlap en mobile */
  body:has(.banner-overlap) .site-footer {
    padding-top: 10rem;
  }
}

/* ========================================
   Menu Desktop Navigation
======================================== */

/* Menu principal - Premier niveau sur une seule ligne */
#navbarDesktop .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}

/* Items de menu de premier niveau */
#navbarDesktop .navbar-nav > li.menu-item {
  position: relative;
  list-style: none;
}

/* Liens de premier niveau */
#navbarDesktop .navbar-nav > li.menu-item > a {
  color: var(--bs-gray-medium);
  font-family: var(--heading-font);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbarDesktop .navbar-nav > li.menu-item > a:hover {
  color: var(--bs-primary);
}

/* Sous-menus de second niveau */
#navbarDesktop .navbar-nav > li.menu-item > ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  width: max-content;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  border-radius: var(--radius-md);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  z-index: 1000;
  pointer-events: none;
}

/* Affichage du sous-menu au hover */
#navbarDesktop .navbar-nav > li.menu-item:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s, 0s, 0s;
}

/* Items de second niveau */
#navbarDesktop .navbar-nav > li.menu-item > ul.sub-menu > li.menu-item {
  position: relative;
}

/* Liens de second niveau */
#navbarDesktop .navbar-nav > li.menu-item > ul.sub-menu > li.menu-item > a {
  color: var(--bs-gray-medium);
  font-family: var(--heading-font);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  display: block;
  white-space: nowrap;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbarDesktop
  .navbar-nav
  > li.menu-item
  > ul.sub-menu
  > li.menu-item
  > a:hover {
  background-color: var(--bs-gray-light);
  color: var(--bs-primary);
  padding-left: 1.5rem;
}

/* Sous-menus de troisième niveau */
#navbarDesktop
  .navbar-nav
  > li.menu-item
  > ul.sub-menu
  > li.menu-item
  > ul.sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background: #ffffff;
  min-width: 220px;
  width: max-content;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  border-radius: var(--radius-md);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-15px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  z-index: 1001;
  pointer-events: none;
}

/* Affichage du sous-menu de troisième niveau au hover */
#navbarDesktop
  .navbar-nav
  > li.menu-item
  > ul.sub-menu
  > li.menu-item:hover
  > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s, 0s, 0s;
}

/* Liens de troisième niveau */
#navbarDesktop
  .navbar-nav
  > li.menu-item
  > ul.sub-menu
  > li.menu-item
  > ul.sub-menu
  > li.menu-item
  > a {
  color: var(--bs-gray-medium);
  font-family: var(--heading-font);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  display: block;
  white-space: nowrap;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbarDesktop
  .navbar-nav
  > li.menu-item
  > ul.sub-menu
  > li.menu-item
  > ul.sub-menu
  > li.menu-item
  > a:hover {
  background-color: var(--bs-gray-light);
  color: var(--bs-primary);
  padding-left: 1.5rem;
}

/* Indicateur visuel pour les items de premier niveau ayant des sous-menus - Chevron Down */
#navbarDesktop .navbar-nav > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0.7;
}

/* Animation du chevron au hover */
#navbarDesktop .navbar-nav > li.menu-item-has-children > a:hover::after {
  opacity: 1;
}

/* Chevron Up au hover pour les items de premier niveau */
#navbarDesktop .navbar-nav > li.menu-item-has-children:hover > a::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
  transform: translateY(-2px);
}

/* Indicateur visuel pour les sous-menus de second niveau ayant des sous-menus - Chevron Right */
#navbarDesktop .navbar-nav ul.sub-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: auto;
  float: right;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0.7;
}

/* Animation du chevron right au hover */
#navbarDesktop
  .navbar-nav
  ul.sub-menu
  > li.menu-item-has-children
  > a:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* ========================================
   Menu Icons - Icônes Panier et Mon compte
======================================== */

/* Icônes SVG dans le menu */
#navbarDesktop .navbar-nav > li.menu-item > a svg {
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 24px;
  height: 24px;
}

/* Réduire le padding pour les liens avec icônes */
#navbarDesktop .navbar-nav > li.menu-item > a:has(svg) {
  padding: 0.75rem 0.5rem;
}

/* Compteur du panier */
#navbarDesktop .navbar-nav > li.menu-item > a .cart-count {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background-color: var(--bs-secondary);
  color: var(--bs-primary);
  font-family: var(--heading-font);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.25rem 0.375rem;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation des icônes au hover */
#navbarDesktop .navbar-nav > li.menu-item > a:hover svg {
  transform: scale(1.1);
}

/* ========================================
   Menu Item Button - Pour les items de menu stylisés en bouton
======================================== */

/* Item de menu avec classe menu-btn */
#navbarDesktop .navbar-nav > li.menu-btn {
  margin-left: 0.5rem;
}

#navbarDesktop .navbar-nav > li.menu-btn > a {
  background-color: var(--bs-primary);
  color: #ffffff !important;
  border: 1px solid var(--bs-primary);
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.5rem !important;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbarDesktop .navbar-nav > li.menu-btn > a:hover {
  background-color: var(--bs-primary);
  opacity: 0.9;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 43, 170, 0.2);
}

/* Variante outline */
#navbarDesktop .navbar-nav > li.menu-btn-outline > a {
  background-color: transparent;
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary);
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.5rem !important;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbarDesktop .navbar-nav > li.menu-btn-outline > a:hover {
  background-color: var(--bs-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 43, 170, 0.2);
}

/* Variante secondaire (jaune) */
#navbarDesktop .navbar-nav > li.menu-btn-secondary > a {
  background-color: var(--bs-secondary);
  color: var(--bs-gray-dark) !important;
  border: 1px solid var(--bs-secondary);
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.5rem !important;
  font-family: var(--body-font);
  font-size: var(--text-md);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbarDesktop .navbar-nav > li.menu-btn-secondary > a:hover {
  background-color: var(--bs-secondary);
  opacity: 0.9;
  color: var(--bs-gray-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 208, 0, 0.3);
}

/* ========================================
   Scroll to Top Button
======================================== */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: var(--scroll-primary, var(--bs-primary));
  color: #ffffff;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
    background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--scroll-secondary, var(--bs-secondary));
  color: var(--scroll-primary, var(--bs-primary));
}

/* Icône centrale */
.scroll-to-top-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.scroll-to-top-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Cercle de progression SVG */
.scroll-to-top-progress {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
  z-index: 1;
}

.scroll-to-top-progress-circle {
  fill: none;
  stroke: var(--scroll-secondary, var(--bs-secondary));
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 0.1s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top-progress {
    width: 51px;
    height: 51px;
  }

  .scroll-to-top-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ========================================
   Organigramme Section
======================================== */

.organigramme-section {
  /* Padding géré dynamiquement via ACF */
}

.organigramme-title h1,
.organigramme-title h2,
.organigramme-title h3,
.organigramme-title h4 {
  font-family: var(--heading-font);
  font-size: var(--display-md);
  font-weight: 600;
  line-height: normal;
  color: var(--bs-gray-dark);
  margin-bottom: 0;
}

.organigramme-description p {
  font-family: var(--body-font);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--bs-gray-medium);
  margin-bottom: 0;
}

/* Filtres */
.organigramme-filters {
  flex-wrap: wrap;
}

.organigramme-filter {
  transition: all 0.3s ease;
}

.organigramme-filter.active {
  pointer-events: none;
}

/* Grille des membres */
.organigramme-grid {
  transition: opacity 0.3s ease;
}

.organigramme-grid.is-filtering {
  opacity: 0.5;
  pointer-events: none;
}

/* Item membre */
.organigramme-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.organigramme-item.is-hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

/* Carte membre */
.organigramme-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.organigramme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.1);
}

/* Photo du membre - Image rectangulaire avec effet N&B */
.organigramme-photo {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  position: relative;
}

.organigramme-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.organigramme-card:hover .organigramme-photo img {
  filter: grayscale(0%);
}

.organigramme-photo-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bs-gray-light);
  color: var(--bs-gray-medium);
  aspect-ratio: 1 / 1.1;
}

/* Informations du membre */
.organigramme-info {
  padding: 1.25rem;
}

/* Nom */
.organigramme-name {
  font-family: var(--heading-font);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--bs-gray-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Poste / Fonction */
.organigramme-poste {
  font-family: var(--body-font);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--bs-gray-medium);
  margin-bottom: 0.75rem;
}

/* Service / Pôle */
.organigramme-service {
  font-family: var(--body-font);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bs-primary);
  margin-bottom: 0;
}

/* Support 5 colonnes */
@media (min-width: 992px) {
  .col-lg-custom-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .organigramme-info {
    padding: 1rem;
  }

  .organigramme-name {
    font-size: var(--text-md);
  }

  .organigramme-poste,
  .organigramme-service {
    font-size: var(--text-xs);
  }

  .organigramme-filters {
    justify-content: flex-start !important;
  }

  .organigramme-filter {
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
  }
}

/* Fond sombre */
.organigramme-section.bg-primary .organigramme-title h1,
.organigramme-section.bg-primary .organigramme-title h2,
.organigramme-section.bg-primary .organigramme-title h3,
.organigramme-section.bg-primary .organigramme-title h4,
.organigramme-section.bg-primary .organigramme-description p {
  color: #ffffff;
}

/* =================================
   Pages Légales (CGV, Mentions légales, etc.)
   ================================= */

.legal-hero {
  min-height: 200px;
  padding-top: 100px !important;
  display: flex;
  align-items: center;
}

.legal-hero h1 {
  font-family: var(--font-title);
  font-size: var(--display-md);
  font-weight: 700;
}

.legal-content {
  background-color: #fff;
}

.legal-article {
  background: #fff;
}

/* Affichage en 2 colonnes */
.legal-columns {
  column-count: 2;
  column-gap: 3rem;
  column-rule: 1px solid #e5e5e5;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.legal-columns p {
  margin-bottom: 1rem;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--bs-gray-dark);
  break-inside: avoid;
  orphans: 3;
  widows: 3;
}

.legal-columns h2,
.legal-columns h3,
.legal-columns h4,
.legal-columns strong {
  font-family: var(--font-title);
  color: var(--bs-primary);
  break-after: avoid;
}

.legal-columns h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-columns h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-columns h4 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Style des numéros d'articles */
.legal-columns p strong:first-child {
  display: block;
  font-size: var(--text-md);
  margin-bottom: 0.25rem;
}

/* Listes dans les CGV */
.legal-columns ul,
.legal-columns ol {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--bs-gray-dark);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  break-inside: avoid;
}

.legal-columns li {
  margin-bottom: 0.5rem;
}

/* Liens */
.legal-columns a {
  color: var(--bs-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-columns a:hover {
  color: var(--bs-secondary);
}

/* Responsive - 1 colonne sur mobile et tablette */
@media (max-width: 991.98px) {
  .legal-columns {
    column-count: 1;
    column-rule: none;
    text-align: left;
  }

  .legal-hero h1 {
    font-size: var(--display-sm);
  }
}

@media (max-width: 575.98px) {
  .legal-hero {
    min-height: 150px;
    padding-top: 80px;
  }

  .legal-hero h1 {
    font-size: var(--display-xs);
  }

  .legal-columns p,
  .legal-columns ul,
  .legal-columns ol {
    font-size: var(--text-md);
  }
}
