/*
 Theme Name:   Astra Child
 Description:  Thème enfant pour Astra
 Author:       Bluecom
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ===========================
   VARIABLES CSS ET CONFIGURATION GLOBALE
   =========================== */
:root {
  /* Breakpoints standards */
  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --desktop-large: 1200px;
  --desktop-xl: 1400px;

  /* Largeurs conteneurs */
  --container-max-width: 1440px;
  --container-padding: 20px;
  --container-padding-mobile: 15px;

  /* Polices */
  --font-primary: "Degular", Arial, sans-serif;
  --font-secondary: "Belle de Mai", serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s ease;
}

/* ===========================
   CHARGEMENT DES POLICES
   =========================== */
@font-face {
  font-family: "Belle de Mai";
  src: url("./font/Belle de Mai - Trial/BelledeMai4.0-Regular.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Belle de Mai";
  src: url("./font/Belle de Mai - Trial/BelledeMai4.0-Heavy.otf")
    format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Degular";
  src: url("./font/Degular/Degular (14)/Degular-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Degular";
  src: url("./font/Degular/Degular (14)/Degular-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   SYSTÈME DE CONTENEURS GLOBAUX
   =========================== */
.bc_container,
.ast-container,
.ast_bc_container,
.containerTitle {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
}

.containerTitle {
  border-left: 2px solid #000;
  padding-left: 40px;
}

/* ===========================
   HEADER - CONFIGURATION GLOBALE (CORRIGÉ)
   =========================== */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  z-index: 9998;
  transition: var(--transition-smooth);
  margin: 0 !important;
  box-sizing: border-box;
}

#masthead,
#ast-desktop-header,
.main-header-bar-wrap,
.site-primary-header-wrap,
.ast-main-header-wrap,
.main-header-bar {
  max-width: 100% !important;
  margin: 0 auto;
  width: 100% !important;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
  border: none !important;
  box-shadow: none !important;
}

/* Assurer que le contenu du header reste centré */
.site-header .ast-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
}

/* Header page d'accueil - transparent */
.home .site-header {
  background: transparent !important;
}

.home .main-header-menu a,
.home .site-header .site-title a,
.home .ast-site-identity .site-title a {
  color: #ffffff;
  transition: var(--transition-smooth);
}

.home .main-header-menu .sub-menu a {
  color: #000000;
}

.home .site-header.header-scrolled {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.home .site-header.header-scrolled .main-header-menu a,
.home .site-header.header-scrolled .site-title a {
  color: #222 !important;
}

/* Header pages classiques */
.header-page-type .site-header {
  background: #fff !important;
  box-shadow: 0px -13px 42.1px 0px rgba(0, 0, 0, 0.15);
  position: relative;
  padding: 20px 0;
  width: 100vw !important;
}

.header-page-type .site-header .main-header-menu a,
.header-page-type .site-header .site-title a {
  color: #222 !important;
}

/* Logo responsive */
.site-header .site-logo-img img {
  width: clamp(18rem, 4vw + 20rem, 25rem);
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.home .site-header.header-scrolled .site-logo-img img,
.header-page-type .site-header .site-logo-img img {
  filter: brightness(0) invert(0) !important;
}

/* ===========================
   SECTION HERO - PAGE D'ACCUEIL (DESIGN ORIGINAL RESTAURÉ)
   =========================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #333;
}

.hero-main {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-carousel {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.hero-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-carousel .carousel-slide.active {
  opacity: 1;
}

.hero-carousel .carousel-slide.placeholder {
  background-color: #333;
  opacity: 1;
}

.ac-ville-card {
  width:100% !important;
}

/* Overlay sombre sur les images pour améliorer la lisibilité */
.hero-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 75%;
}

.carousel-bars-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.carousel-bar {
  width: 100%;
  height: 2px;
  background: #fff;
  opacity: 0.9;
  position: relative;
  z-index: 3;
}

.carousel-bar-top {
  margin-bottom: 0;
  align-self: stretch;
}

.carousel-bar-bottom {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: stretch;
}

.carousel-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vh, 16px);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 80px) var(--container-padding);
  box-sizing: border-box;
  text-align: center;
  flex-grow: 1;
  justify-content: center;
}

.carousel-text-wrapper h1,
.carousel-text-wrapper h2 {
  color: #fff;
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-text-wrapper p {
  color: #fff;
  font-family: var(--font-secondary);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-button {
  display: inline-block;
  padding: clamp(10px, 1.5vw, 16px) clamp(20px, 3vw, 32px);
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition-smooth);
  margin-top: clamp(20px, 3vh, 30px);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  align-self: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Flèche de défilement - design original */
.carousel-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(30px, 4vh, 50px);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  animation: bounce-arrow 2s ease-in-out infinite;
  padding: 10px;
}

.carousel-scroll-arrow svg {
  display: block;
  width: clamp(30px, 4vw, 50px);
  height: clamp(20px, 3vh, 35px);
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-scroll-arrow:hover {
  transform: translateY(3px) scale(1.1);
  animation-play-state: paused;
}

.carousel-scroll-arrow:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

@keyframes bounce-arrow {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Conteneur hero avec structure exacte pour fallback */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin: 0 0 10px 0;
  font-family: var(--font-primary);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(2.5rem, 6vw, 5.625rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 10px 0 40px;
  font-family: var(--font-secondary);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive spécifique pour le carrousel */
@media (max-width: 921px) {
  .carousel-text-wrapper {
    padding: clamp(30px, 6vh, 50px) 20px;
  }

  .carousel-text-wrapper h1,
  .carousel-text-wrapper h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .carousel-text-wrapper p {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }

  .carousel-bars-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 544px) {
  .carousel-text-wrapper {
    padding: clamp(20px, 4vh, 30px) 15px;
  }

  .carousel-text-wrapper h1,
  .carousel-text-wrapper h2 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .carousel-text-wrapper p {
    font-size: clamp(1rem, 5vw, 1.25rem);
  }

  .carousel-scroll-arrow {
    margin-top: 20px;
  }

  .carousel-scroll-arrow svg {
    width: 25px;
    height: 18px;
  }
}

/* Optimisations pour les écrans très larges */
@media (min-width: 1600px) {
  .carousel-bars-wrapper {
    max-width: 1400px;
  }

  .carousel-text-wrapper {
    max-width: 900px;
  }
}

/* ===========================
   BANNIÈRE DES MARQUES
   =========================== */
.brands-banner {
  background-color: #e1ecf6;
  padding: 17px var(--container-padding);
  height: clamp(80px, 8vh, 100px);
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 5;
  box-sizing: border-box;
}

.brands-carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: clamp(25px, 4vw, 54px);
  will-change: transform;
  transition: none;
}

.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  max-height: clamp(35px, 5vh, 66px);
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.brand-logo a:hover img,
.brand-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===========================
   BOUTON "JE POSTULE" FIXE (CORRIGÉ)
   =========================== */
.postulate-fixed-button {
  display: inline-flex;
  height: clamp(65px, 7vh, 85px);
  transform: rotate(-90deg);
  padding: 8px 18px 35px 18px;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1vw, 15px);
  flex-shrink: 0;
  border-radius: 25px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  font-weight: 500;
  position: fixed;
  top: 50%;
  right: -25px;
  z-index: 9999;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  transform-origin: center;
  animation: slideInFromRight 1s ease-out 2s both;
  will-change: transform, right, box-shadow;
}

.postulate-fixed-button:hover {
  background: #222;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  right: -10px;
  transform: rotate(-90deg) scale(1.05);
}

@keyframes slideInFromRight {
  from {
    right: -100px;
    opacity: 0;
  }
  to {
    right: -70px;
    opacity: 1;
  }
}

/* ===========================
   FOOTER PERSONNALISÉ
   =========================== */
.site-footer-custom {
  color: #000;
}

.site-footer-custom a {
  color: #000;
}

.site-footer-custom .footer-top {
  background-color: #eaf2f8;
  padding: clamp(30px, 4vh, 40px) 0;
}

.site-footer-custom .footer-top .footer-widget-area {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer-custom .footer-logo .custom-logo {
  max-height: clamp(40px, 4vh, 50px);
  width: auto;
}

.site-footer-custom .footer-address,
.site-footer-custom .footer-phone {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.6;
  text-align: left;
}

.site-footer-custom .footer-social {
  display: flex;
  align-items: center;
}

.site-footer-custom .footer-social a {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-left: clamp(10px, 2vw, 20px);
}

.site-footer-custom .footer-bottom {
  background-color: #fff;
  padding: clamp(20px, 3vh, 25px) 0;
  border-top: 1px solid #eaeaea;
}

.site-footer-custom .footer-bottom .footer-bottom-inner {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer-custom .footer-copyright p {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.site-footer-custom .footer-links a {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  margin-left: clamp(15px, 2vw, 25px);
  text-decoration: none;
}

/* ===========================
   STYLES GÉNÉRAUX
   =========================== */
.home #content > .ast-container {
  max-width: 100%;
  padding: 0;
}

.home #primary {
  margin: 0;
  padding: 0;
}

.home .entry-header {
  display: none;
}

.elementor-heading-title {
  font-family: var(--font-secondary) !important;
}

.ast-container .paragrapheGroupe,
.ast-container a,
.ast-container .ast-button-wrap a,
.ast-container .elementor-button {
  font-family: var(--font-primary) !important;
}

.ast-container .elementor-button:hover {
  transform: scale(1.05);
}

.ac-ville-card-inner {
  font-family: var(--font-secondary) !important;
}

.ac-ville-card-inner h3 {
  font-family: var(--font-secondary) !important;
}

.ac-ville-card-inner span {
  font-family: var(--font-primary) !important;
}

.esvg {
  width: clamp(400px, 40vw, 578px);
  height: clamp(550px, 55vh, 794px);
}

.titlegroupe {
  border-left: 1px solid #000;
  padding-left: 20px;
}

.titleengagement {
  border-left: 1px solid #d4e9dc;
  padding-left: 20px;
}

.ast-primary-header-bar {
  background-color: #ffffff;
}

.menu-toggle.main-header-menu-toggle.ast-mobile-menu-trigger-minimal {
  background-color: black !important;
}

/* ===========================
   RESPONSIVE DESIGN - BREAKPOINTS STANDARDS
   =========================== */

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --container-padding: 15px;
  }

  .carousel-text-wrapper {
    padding: 20px 15px;
  }

  .carousel-bar-top {
    margin-bottom: 20px;
  }

  .carousel-bar-bottom {
    margin-top: 20px;
  }

  .site-footer-custom .footer-top .footer-widget-area,
  .site-footer-custom .footer-bottom .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .site-footer-custom .footer-social a {
    margin: 0 10px;
  }

  .site-footer-custom .footer-links a {
    margin: 0 10px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 10px;
  }

  .containerTitle {
    padding-left: 25px;
  }

  .carousel-text-wrapper {
    padding: 15px 10px;
  }

  .carousel-bar-top {
    margin-bottom: 15px;
  }

  .carousel-bar-bottom {
    margin-top: 15px;
  }

  .carousel-scroll-arrow {
    margin-top: 40px;
  }

  .site-footer-custom .footer-top .footer-widget-area,
  .site-footer-custom .footer-bottom .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .site-footer-custom .footer-social a {
    margin: 0 8px;
  }

  .site-footer-custom .footer-links a {
    margin: 0 8px;
  }

  .postulate-fixed-button {
    height: 50px;
    right: -15px;
    font-size: 0.75rem;
    padding: 6px 12px 6px 12px;
  }

  .postulate-fixed-button:hover {
    right: -5px;
  }
}

/* Tablettes (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-header-menu {
    gap: clamp(15px, 2vw, 25px);
  }

  .main-header-menu a {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
  }

  .header-page-type .site-header {
    padding: 20px clamp(20px, 4vw, 40px);
  }

  .postulate-fixed-button {
    height: 60px;
    right: -20px;
    font-size: 0.9rem;
  }

  .postulate-fixed-button:hover {
    right: -8px;
  }
}

/* Desktop Small (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .main-header-menu {
    gap: clamp(20px, 2.5vw, 30px);
  }

  .main-header-menu a {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
  }
}

/* Desktop Large (1200px et plus) */
@media (min-width: 1200px) {
  .main-header-menu {
    gap: 30px;
  }

  .main-header-menu a {
    font-size: 1rem;
  }
}

/* Écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .postulate-fixed-button {
    border-width: 0.5px;
  }
}

/* Orientation paysage sur mobile/tablette */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 500px;
  }

  .postulate-fixed-button {
    top: 45%;
  }

  .carousel-scroll-arrow {
    margin-top: 30px;
  }
}

/* Réduction des animations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .postulate-fixed-button:hover {
    transform: rotate(-90deg);
  }

  .carousel-scroll-arrow {
    animation: none;
  }
}

/* Accessibilité du bouton Je Postule */
.postulate-fixed-button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.postulate-fixed-button:focus:not(:focus-visible) {
  outline: none;
}

.postulate-fixed-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===========================
   FIX ELEMENTOR CONTENEURS FULL WIDTH - VERSION ULTIME
   =========================== */
/* Sélecteur ultra-spécifique pour forcer la largeur complète */
.elementor-element.engagementcontainer.e-con-full.e-con,
.engagementcontainer.e-con-full,
.engagementcontainer {
  background-color: rgb(0, 0, 0) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* Version alternative avec calc() */
.engagementcontainer.e-con-full {
  width: calc(100vw) !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Empêcher tout container parent de limiter la largeur */
.elementor-element.engagementcontainer * {
  max-width: none !important;
}

/* Override spécifique des styles Astra/Elementor qui pourraient limiter */
.elementor-element.engagementcontainer,
.elementor-element.engagementcontainer .elementor-container,
.elementor-element.engagementcontainer .e-con-inner {
  max-width: none !important;
  width: 100% !important;
}

/* Container pour le contenu interne centré */
.engagementcontainer .elementor-container,
.engagementcontainer .e-con-inner {
  max-width: var(--container-max-width) !important;
  margin: 0 auto !important;
  padding: 0 var(--container-padding) !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* Protection globale contre le débordement */
html {
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Responsive */
@media (max-width: 768px) {
  .engagementcontainer .elementor-container,
  .engagementcontainer .e-con-inner {
    padding: 0 var(--container-padding-mobile) !important;
  }
}

/* ===========================
   BANNIÈRE DES VILLES - RESPONSIVE GRID LAYOUT
   =========================== */

/* Override du flex existant pour utiliser CSS Grid */
.ac-banniere-villes {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  /* gap: clamp(15px, 2vw, 25px) !important; */
  justify-items: center !important;
  align-items: end !important;
  max-width: var(--container-max-width) !important;
  /* margin: 60px auto !important; */
  /* padding: 0 var(--container-padding) !important; */
  box-sizing: border-box !important;
}

/* Assurer que les colonnes s'adaptent correctement */
.ac-banniere-villes .ac-ville-col {
  width: 100% !important;
  max-width: 360px !important;
}
.ac-ville-card--visible {
  animation: fadeInUp 0.6s ease-out forwards;
}
/* Desktop Large (1400px et plus) - 4 colonnes */
@media (min-width: 1400px) {
  .ac-banniere-villes {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
  }
}

/* Desktop Medium (1200px - 1399px) - 4 colonnes */
@media (min-width: 1200px) and (max-width: 1399px) {
  .ac-banniere-villes {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Desktop Small (1024px - 1199px) - 4 colonnes */
@media (min-width: 1024px) and (max-width: 1199px) {
  .ac-banniere-villes {
    grid-template-columns: repeat(4, 1fr) !important;
    /* gap: 15px !important; */
  }

  .ac-banniere-villes .ac-ville-col {
    max-width: 280px !important;
  }
}

/* Tablettes (768px - 1023px) - 2 colonnes */
@media (min-width: 768px) and (max-width: 1023px) {
  .ac-banniere-villes {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: clamp(15px, 3vw, 25px) !important;
    margin: 40px auto !important;
  }

  .ac-banniere-villes .ac-ville-col {
    max-width: 350px !important;
  }
}

/* Mobile Large (481px - 767px) - 1 colonne */
@media (min-width: 481px) and (max-width: 767px) {
  .ac-banniere-villes {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin: 30px auto !important;
    padding: 0 var(--container-padding-mobile) !important;
  }

  .ac-banniere-villes .ac-ville-col {
    max-width: 400px !important;
    justify-self: center !important;
  }
}

/* Mobile (max-width: 480px) - 1 colonne */
@media (max-width: 480px) {
  .ac-banniere-villes {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin: 25px auto !important;
    padding: 0 var(--container-padding-mobile) !important;
  }

  .ac-banniere-villes .ac-ville-col {
    max-width: 95% !important;
    justify-self: center !important;
  }
}

/* Très petits mobiles (max-width: 360px) - 1 colonne */
@media (max-width: 360px) {
  .ac-banniere-villes {
    gap: 10px !important;
    margin: 20px auto !important;
  }
}
