/* ========================================================================== 
   ACCUEIL — PAGE D’ENTRÉE DU SITE PUBLIC ADHA
   --------------------------------------------------------------------------
   Rôle du fichier
   - Gère uniquement la page d’accueil : hero/slider, présentation, chiffres
     clés, dernières actualités et partenaires.
   - Les composants communs restent dans front-ui.css.
   - Style recherché : institutionnel, plat, sobre, sans cadres globaux.
========================================================================== */

/* --------------------------------------------------------------------------
   01. Variables locales accueil
-------------------------------------------------------------------------- */
:root{
  --home-max: 1240px;
  --home-green: var(--vert-fonce, #16814f);
  --home-deep: var(--vert-tres-fonce, #123f3b);
  --home-text: var(--gris-fonce, #193f3d);
  --home-muted: #6c7a7b;
  --home-border: #dfe9df;
  --home-soft: #f7faf7;
}

main.container{
  padding-top: 2.2rem;
}

.home-section{
  margin: 0 auto 2.6rem;
}

/* --------------------------------------------------------------------------
   02. Hero / slider principal
-------------------------------------------------------------------------- */
.hero,
.home-hero{
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero{
  min-height: 62vh;
  background-image: url('../img/bg_haut_Atlas.jpg');
  background-size: cover;
  background-position: center;
}

.home-hero,
.home-hero-slider__viewport,
.home-hero-slide__overlay{
  min-height: 62vh;
}

.home-hero-slider__viewport{
  position: relative;
}

.home-hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity .45s ease;
}

.home-hero-slide.is-active{
  opacity: 1;
  pointer-events: auto;
}

.hero-overlay,
.home-hero-slide__overlay{
  width: 100%;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.2rem;
  background-color: rgba(9, 43, 39, .42) !important;
}

.hero-content,
.home-hero-slide__content{
  position: relative;
  z-index: 3;
  width: min(880px, 92%);
  padding-left: clamp(4.5rem, 8vw, 7rem);
  padding-right: clamp(4.5rem, 8vw, 7rem);
  color: #fff;
  text-align: center;
}

.hero-content h1,
.home-hero-slide__content h1{
  margin: 0 0 .55rem;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
}

.hero-content p,
.home-hero-slide__content p{
  max-width: 760px;
  margin: 0 auto 1.05rem;
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  font-weight: 500;
}

.hero-buttons{
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.05rem;
}

.hero-nav{
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--home-green);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: .95;
  box-shadow: none;
  transform: translateY(-50%);
}

.hero-nav--prev{ left: clamp(1.25rem, 4vw, 4.5rem); }
.hero-nav--next{ right: clamp(1.25rem, 4vw, 4.5rem); }

.hero-dots{
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot{
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active{ background: #fff; }

/* --------------------------------------------------------------------------
   03. Boutons accueil
-------------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.28rem;
  border: 1px solid var(--home-green);
  border-radius: 999px;
  background: var(--home-green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover{
  border-color: var(--home-deep);
  background: var(--home-deep);
  color: #fff;
  text-decoration: none;
  transform: none;
}

.btn-outline{
  border-color: rgba(255,255,255,.9);
  background: transparent;
  color: #fff;
}

.btn-outline:hover{
  border-color: #fff;
  background: #fff;
  color: var(--home-green);
}

/* --------------------------------------------------------------------------
   04. Titres de section accueil
-------------------------------------------------------------------------- */
.section-head{
  max-width: var(--home-max);
  margin: 0 auto 1.45rem;
  padding: 1.1rem 0 .55rem;
  border-top: 4px solid var(--home-green);
  border-bottom: 0;
  text-align: left;
}

.section-kicker{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 .5rem;
  padding: .32rem .72rem;
  border: 1px solid #cfe2d1;
  border-radius: 999px;
  background: #f5faf6;
  color: var(--home-green);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-head h2,
.bloc-actualites h2,
.presentation-text h2{
  position: relative;
  margin: 0 0 .65rem;
  color: var(--home-text);
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
  line-height: 1.12;
  font-weight: 800;
}

.section-head h2::after,
.presentation-text h2::after{
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: .7rem;
  background: var(--home-green);
}

.section-intro,
.section-intro p,
.presentation-text .article-body,
.presentation-text .article-body p{
  color: var(--home-muted);
  line-height: 1.78;
}

.section-actions,
.section-cta{
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   05. Bloc présentation
-------------------------------------------------------------------------- */
.bloc-presentation{
  padding: 0 1rem 2.2rem;
  border: 0;
}

.presentation-wrapper{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.presentation-image img{
  width: 100%;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   06. Chiffres clés
-------------------------------------------------------------------------- */
.home-kpi-section{
  padding: 0 1rem 2.2rem;
}

.home-kpi-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--home-max);
  margin: 0 auto;
}

.home-kpi-card{
  display: grid;
  gap: .65rem;
  padding: 1.1rem 1.15rem;
  border: 0;
  border-left: 4px solid var(--home-green);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.home-kpi-card__head{
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.home-kpi-icon{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dbeadd;
  border-radius: 0;
  background: var(--home-soft);
  color: var(--home-green);
  box-shadow: none;
}

.home-kpi-value{
  color: var(--home-deep);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
}

.home-kpi-secondary{
  margin-top: .2rem;
  color: var(--home-green);
  font-weight: 800;
}

.home-kpi-card h3{
  margin: 0;
  color: var(--home-text);
  font-size: .98rem;
  line-height: 1.35;
}

.home-kpi-card p{
  margin: 0;
  color: var(--home-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   07. Actualités et partenaires accueil
-------------------------------------------------------------------------- */
.bloc-actualites,
.home-partners{
  padding: 0 1rem 2.6rem;
  border: 0;
  background: transparent;
}

.actualites-wrapper,
.carousel-block{
  max-width: var(--home-max);
  margin: 0 auto;
}

.carousel-block{
  position: relative;
}

.carousel-track-wrapper{
  overflow: hidden;
}

.carousel-track{
  display: flex;
  gap: 1rem;
  scroll-behavior: smooth;
}

.news-carousel-track .actualite-card{
  flex: 0 0 calc((100% - 2rem) / 3);
}

.actualite-card,
.partner-card{
  overflow: hidden;
  border: 1px solid #e6eee7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.actualite-card img{
  width: 100%;
  height: 245px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.actualite-card > div,
.actualite-card .actualite-body{
  padding: 1rem;
}

.actualite-kicker{
  display: inline-flex;
  width: fit-content;
  margin: 0 0 .55rem;
  padding: .22rem .55rem;
  border: 1px solid #d4e8d6;
  border-radius: 999px;
  background: #f1f8f2;
  color: var(--home-green) !important;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.actualite-card h3{
  margin: 0 0 .55rem;
  font-size: 1rem;
  line-height: 1.35;
}

.actualite-card h3 a{
  color: var(--home-text);
  text-decoration: none;
}

.actualite-card h3 a:hover{ color: var(--home-green); }

.update-date{
  margin: 0 0 .65rem;
  color: var(--home-muted);
  font-size: .82rem;
}

.partner-card{
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.partner-logo-wrap{
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-wrap img{
  max-height: 76px;
  max-width: 100%;
  object-fit: contain;
}

.carousel-nav{
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: #fff;
  color: var(--home-green);
  box-shadow: none;
  transform: translateY(-50%);
}

.carousel-nav--prev{ left: -18px; }
.carousel-nav--next{ right: -18px; }

/* --------------------------------------------------------------------------
   08. RTL
-------------------------------------------------------------------------- */
[dir="rtl"] .section-head,
[dir="rtl"] .section-intro,
[dir="rtl"] .section-intro p,
[dir="rtl"] .presentation-text,
[dir="rtl"] .presentation-text .article-body,
[dir="rtl"] .presentation-text .article-body p{
  text-align: right;
}

[dir="rtl"] .section-head h2::after,
[dir="rtl"] .presentation-text h2::after{
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .home-kpi-card{
  border-left: 0;
  border-right: 4px solid var(--home-green);
}

[dir="rtl"] .home-kpi-card__head{
  grid-template-columns: minmax(0, 1fr) 48px;
}

/* --------------------------------------------------------------------------
   09. Responsive accueil
-------------------------------------------------------------------------- */
@media screen and (max-width: 1100px){
  .home-kpi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-carousel-track .actualite-card{ flex-basis: calc((100% - 1rem) / 2); }
}

@media screen and (max-width: 900px){
  main.container{ padding-top: 1.4rem; }

  .home-hero,
  .home-hero-slider__viewport,
  .home-hero-slide__overlay,
  .hero,
  .hero-overlay{
    min-height: 56vh;
    height: auto;
  }

  .home-hero-slide__content,
  .hero-content{
    width: min(94%, 720px);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2.5rem;
  }

  .hero-nav{ display: none; }
  .hero-dots{ bottom: 16px; }

  .presentation-wrapper{
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px){
  .home-hero,
  .home-hero-slider__viewport,
  .home-hero-slide__overlay,
  .hero,
  .hero-overlay{
    min-height: 52vh;
  }

  .hero-content h1,
  .home-hero-slide__content h1{
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .hero-content p,
  .home-hero-slide__content p{
    font-size: .92rem;
    line-height: 1.5;
  }

  .hero-buttons{
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
  }

  .hero-buttons .btn{
    padding: .7rem 1rem;
    font-size: .82rem;
  }

  .home-kpi-grid{
    grid-template-columns: 1fr;
  }

  .home-kpi-card__head,
  [dir="rtl"] .home-kpi-card__head{
    grid-template-columns: 1fr;
  }

  .news-carousel-track .actualite-card{
    flex-basis: min(320px, 86vw);
  }

  .actualite-card img{
    height: 185px;
  }

  .carousel-nav{ display: none; }
}

/* ========================================================================== 
   PATCH_HOME_RADIUS_INTERNAL_STYLE_20260507
   Objectif : rapprocher la Home du langage visuel des pages internes.
   - arrondis cohérents
   - blocs plus doux
   - images/card plus institutionnelles
========================================================================== */

:root{
  --home-radius: 16px;
  --home-radius-sm: 12px;
  --home-radius-lg: 20px;
  --home-card-border: rgba(13, 31, 28, .13);
}

/* Bloc présentation : même logique que les blocs internes */
.presentation-wrapper{
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--home-card-border);
  border-radius: var(--home-radius-lg);
  background: #fff;
}

.presentation-image{
  overflow: hidden;
  border-radius: var(--home-radius);
}

.presentation-image img{
  border-radius: var(--home-radius);
}

/* Sections : conserver le trait institutionnel, adoucir les entrées */
.section-head{
  padding: 1.15rem 1.25rem .85rem;
  border: 1px solid var(--home-card-border);
  border-top: 4px solid var(--home-green);
  border-radius: var(--home-radius-lg);
  background: #fff;
}

/* KPI : cartes arrondies, mais sans ombre lourde */
.home-kpi-card{
  border: 1px solid var(--home-card-border);
  border-left: 4px solid var(--home-green);
  border-radius: var(--home-radius);
  background: #fff;
}

[dir="rtl"] .home-kpi-card{
  border-left: 1px solid var(--home-card-border);
  border-right: 4px solid var(--home-green);
}

.home-kpi-icon{
  border-radius: var(--home-radius-sm);
}

/* Actualités : cartes cohérentes avec les pages internes */
.actualite-card,
.partner-card{
  border: 1px solid var(--home-card-border);
  border-radius: var(--home-radius);
  background: #fff;
}

.actualite-card img{
  border-radius: var(--home-radius) var(--home-radius) 0 0;
}

.actualite-card > div,
.actualite-card .actualite-body{
  padding: 1.05rem 1.1rem 1.15rem;
}

/* Boutons carousel : arrondis déjà circulaires, on harmonise le contour */
.carousel-nav,
.hero-nav{
  border-color: rgba(13, 31, 28, .14);
}

/* Mobile : garder des blocs doux sans surcharger la hauteur */
@media screen and (max-width: 768px){
  .presentation-wrapper,
  .section-head{
    border-radius: 16px;
    padding: 1rem;
  }

  .home-kpi-card,
  .actualite-card,
  .partner-card{
    border-radius: 14px;
  }

  .presentation-image,
  .presentation-image img{
    border-radius: 14px;
  }
}

/* ========================================================================== 
   PATCH_HOME_PALETTE_SLIDER_KPI_20260507
   Home : palette globale, hero centré, KPI redesign, carousel fonctionnel.
   Règle : horizontales = vert ; verticales = vert clair.
========================================================================== */

:root{
  --home-green: var(--adha-green, #1A7346);
  --home-green-light: var(--adha-green-light, #85BB64);
  --home-deep: var(--adha-gray-dark, #334648);
  --home-text: var(--adha-gray-dark, #334648);
  --home-muted: var(--adha-gray, #5B6A6C);
  --home-horizontal: var(--accent-horizontal, #1A7346);
  --home-vertical: var(--accent-vertical, #85BB64);
  --home-border-soft: rgba(51, 70, 72, .14);
  --home-radius: var(--adha-radius, 16px);
  --home-radius-lg: var(--adha-radius-lg, 20px);
}

/* Hero : recentrage strict FR/AR */
.hero-overlay,
.home-hero-slide__overlay{
  justify-content: center !important;
  text-align: center;
}

.hero-content,
.home-hero-slide__content{
  box-sizing: border-box;
  width: min(920px, 94vw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  text-align: center !important;
}

.hero-content h1,
.home-hero-slide__content h1,
.hero-content p,
.home-hero-slide__content p{
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

html[lang="ar"] .hero-content,
html[lang="ar"] .home-hero-slide__content,
html[lang="ar"] .hero-content h1,
html[lang="ar"] .home-hero-slide__content h1,
html[lang="ar"] .hero-content p,
html[lang="ar"] .home-hero-slide__content p{
  text-align: center !important;
}

.hero-buttons{
  justify-content: center !important;
  align-items: center;
}

/* Sections : horizontales en vert */
.section-head{
  border-top-color: var(--home-horizontal) !important;
  border-radius: var(--home-radius-lg);
}

.section-head h2,
.presentation-text h2{
  color: var(--home-text);
}

.section-head h2::after,
.presentation-text h2::after{
  background: var(--home-horizontal) !important;
}

.section-kicker{
  border-color: rgba(133, 187, 100, .35);
  background: rgba(133, 187, 100, .12);
  color: var(--home-green);
}

/* Bloc présentation : verticales en vert clair */
.presentation-wrapper{
  border-inline-start: 4px solid var(--home-vertical);
  border-top: 1px solid var(--home-border-soft);
  border-bottom: 1px solid var(--home-border-soft);
  border-inline-end: 1px solid var(--home-border-soft);
}

html[dir="rtl"] .presentation-wrapper{
  border-inline-start: 1px solid var(--home-border-soft);
  border-inline-end: 4px solid var(--home-vertical);
}

.presentation-image,
.presentation-image img{
  border-radius: var(--home-radius);
}

/* KPI : nouveau design plus lisible */
.home-kpi-grid{
  gap: 18px;
}

.home-kpi-card{
  position: relative;
  min-height: 140px;
  padding: 1.15rem 1.15rem 1.05rem;
  border: 1px solid var(--home-border-soft) !important;
  border-inline-start: 4px solid var(--home-vertical) !important;
  border-radius: var(--home-radius) !important;
  background: #fff;
  overflow: hidden;
}

.home-kpi-card::before{
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 1rem;
  inset-inline-end: 1rem;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--home-horizontal);
}

html[dir="rtl"] .home-kpi-card{
  border-inline-start: 1px solid var(--home-border-soft) !important;
  border-inline-end: 4px solid var(--home-vertical) !important;
}

.home-kpi-card__head{
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
}

html[dir="rtl"] .home-kpi-card__head{
  grid-template-columns: minmax(0, 1fr) 46px;
}

.home-kpi-icon{
  width: 46px;
  height: 46px;
  border-color: rgba(133, 187, 100, .42);
  border-radius: 14px;
  background: rgba(133, 187, 100, .13);
  color: var(--home-green);
}

.home-kpi-value,
.home-kpi-secondary{
  font-family: var(--font-fr, 'Montserrat', sans-serif) !important;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: -.035em;
}

.home-kpi-value{
  color: var(--home-text);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.home-kpi-secondary{
  color: var(--home-green);
  font-size: .86rem;
  letter-spacing: 0;
}

.home-kpi-card h3{
  color: var(--home-text);
}

.home-kpi-card p,
.section-intro,
.section-intro p,
.presentation-text .article-body,
.presentation-text .article-body p,
.actualite-card p{
  color: var(--home-muted);
}

/* Actualités / partenaires : scroll réel + cartes cohérentes */
.carousel-track{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar{
  display: none;
}

.actualite-card,
.partner-card{
  scroll-snap-align: start;
  border-color: var(--home-border-soft);
  border-radius: var(--home-radius) !important;
}

.actualite-card img{
  border-radius: var(--home-radius) var(--home-radius) 0 0 !important;
}

.carousel-nav{
  border-color: rgba(133, 187, 100, .42);
  color: var(--home-green);
}

.carousel-nav:hover{
  border-color: var(--home-green);
  background: var(--home-green);
  color: #fff;
}

@media screen and (max-width: 768px){
  .home-hero-slide__content,
  .hero-content{
    width: min(94vw, 520px);
    padding-inline: .85rem;
  }

  .hero-content h1,
  .home-hero-slide__content h1{
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .hero-content p,
  .home-hero-slide__content p{
    max-width: 34em;
  }

  .home-kpi-card{
    min-height: auto;
    padding: 1rem;
  }

  .home-kpi-card__head,
  html[dir="rtl"] .home-kpi-card__head{
    grid-template-columns: 44px minmax(0, 1fr);
  }

  html[dir="rtl"] .home-kpi-card__head{
    grid-template-columns: minmax(0, 1fr) 44px;
  }
}

/* ========================================================================== 
   PATCH_HOME_VISUEL_V2_20260508
   Home : KPI sans trait top, hero centré, boutons modernes, actualités aérées,
   mobile moins paddé et mieux centré.
========================================================================== */

/* 1) Chiffres clés : pas de trait horizontal en top, uniquement accent vertical vert clair */
.home-kpi-card::before{
  display: none !important;
}

.home-kpi-card{
  border-top: 1px solid rgba(51,70,72,.14) !important;
  border-inline-start: 4px solid var(--home-vertical, var(--adha-green-light, #85BB64)) !important;
  padding: 1.15rem 1.2rem 1.05rem !important;
}

html[dir="rtl"] .home-kpi-card{
  border-inline-start: 1px solid rgba(51,70,72,.14) !important;
  border-inline-end: 4px solid var(--home-vertical, var(--adha-green-light, #85BB64)) !important;
}

.home-kpi-value{
  color: var(--adha-gray-dark, #334648) !important;
}

.home-kpi-card h3,
.home-kpi-card p{
  color: var(--adha-gray-dark, #334648);
}

/* 2) Hero : recentrage et boutons plus sobres / modernes */
.hero-content,
.home-hero-slide__content{
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin-inline: auto !important;
  text-align: center !important;
}

.hero-buttons,
.home-hero-actions{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: .8rem !important;
  flex-wrap: wrap;
}

.hero-buttons a,
.hero-buttons .button,
.hero-buttons .btn,
.home-hero-actions a,
.home-hero-actions .button,
.home-hero-actions .btn{
  min-height: 44px;
  padding: 0 1.35rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-weight: 800;
  font-size: .94rem;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.hero-buttons a:first-child,
.hero-buttons .button:first-child,
.hero-buttons .btn:first-child,
.home-hero-actions a:first-child,
.home-hero-actions .button:first-child,
.home-hero-actions .btn:first-child{
  background: var(--adha-green, #1A7346) !important;
  border: 1px solid var(--adha-green, #1A7346) !important;
  color: #fff !important;
}

.hero-buttons a:not(:first-child),
.hero-buttons .button:not(:first-child),
.hero-buttons .btn:not(:first-child),
.home-hero-actions a:not(:first-child),
.home-hero-actions .button:not(:first-child),
.home-hero-actions .btn:not(:first-child){
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}

.hero-buttons a:hover,
.hero-buttons .button:hover,
.hero-buttons .btn:hover,
.home-hero-actions a:hover,
.home-hero-actions .button:hover,
.home-hero-actions .btn:hover{
  transform: translateY(-1px);
}

/* 3) Flèches : hero + carousels plus minimalistes et décollées des cartes */
.hero-nav,
.carousel-nav{
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(133,187,100,.42) !important;
  background: rgba(255,255,255,.94) !important;
  color: var(--adha-green, #1A7346) !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.hero-nav:hover,
.carousel-nav:hover{
  background: var(--adha-green, #1A7346) !important;
  border-color: var(--adha-green, #1A7346) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.carousel-controls,
.actualites-controls,
.news-controls{
  gap: .65rem;
}

/* 4) Actualités Home : respiration maîtrisée, sans gros padding */
.actualites-section,
.home-news-section,
.latest-news-section{
  position: relative;
}

.actualites-carousel,
.news-carousel,
.carousel-wrapper{
  overflow: visible;
}

.actualite-card{
  overflow: hidden;
  padding: 0 !important;
}

.actualite-card > div,
.actualite-card .actualite-body{
  padding: 1rem 1.05rem 1.15rem !important;
}

.actualite-card h3,
.actualite-card .actualite-title{
  margin: .45rem 0 .7rem;
  color: var(--adha-gray-dark, #334648);
  line-height: 1.36;
}

.actualite-card p,
.actualite-card .actualite-excerpt{
  margin-top: .65rem;
  color: var(--adha-gray, #5B6A6C);
  line-height: 1.66;
}

.actualite-card .actualite-date,
.actualite-card time{
  color: var(--adha-gray, #5B6A6C);
}

/* 5) Mobile : contenu centré et padding réduit */
@media screen and (max-width: 768px){
  main.container,
  .home-main,
  .home-section,
  .presentation-section,
  .program-numbers,
  .actualites-section,
  .home-news-section,
  .latest-news-section{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hero-content,
  .home-hero-slide__content{
    width: min(100% - 28px, 520px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  html[dir="rtl"] .hero-content,
  html[dir="rtl"] .home-hero-slide__content{
    text-align: center !important;
  }

  .hero-content h1,
  .home-hero-slide__content h1{
    max-width: 11.5em;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .hero-content p,
  .home-hero-slide__content p{
    max-width: 24em;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .hero-buttons,
  .home-hero-actions{
    gap: .55rem !important;
  }

  .hero-buttons a,
  .hero-buttons .button,
  .hero-buttons .btn,
  .home-hero-actions a,
  .home-hero-actions .button,
  .home-hero-actions .btn{
    min-height: 40px;
    padding: 0 1rem !important;
    font-size: .86rem;
  }

  .home-kpi-grid{
    gap: .75rem !important;
  }

  .home-kpi-card{
    padding: .9rem .95rem !important;
  }

  .actualite-card > div,
  .actualite-card .actualite-body{
    padding: .9rem .95rem 1rem !important;
  }

  .carousel-nav{
    width: 38px !important;
    height: 38px !important;
  }
}

@media screen and (max-width: 420px){
  main.container,
  .home-main,
  .home-section,
  .presentation-section,
  .program-numbers,
  .actualites-section,
  .home-news-section,
  .latest-news-section{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hero-content,
  .home-hero-slide__content{
    width: calc(100% - 24px) !important;
  }
}

/* ========================================================================== 
   PATCH_HOME_VISUEL_V3_20260508
   Home : hero mobile centré, accents RTL à droite, news padding,
   boutons carousel décollés et icônes centrées.
========================================================================== */

/* 1) Accents verticaux : FR/LTR à gauche, AR/RTL à droite */
.presentation-wrapper,
.home-kpi-card,
.actualite-card,
.partner-card{
  border-left: 4px solid var(--home-vertical, var(--adha-green-light, #85BB64)) !important;
  border-right: 1px solid rgba(51,70,72,.14) !important;
}

html[dir="rtl"] .presentation-wrapper,
html[dir="rtl"] .home-kpi-card,
html[dir="rtl"] .actualite-card,
html[dir="rtl"] .partner-card{
  border-left: 1px solid rgba(51,70,72,.14) !important;
  border-right: 4px solid var(--home-vertical, var(--adha-green-light, #85BB64)) !important;
}

/* Les cartes news gardent un rendu plus doux : accent vertical fin, pas agressif */
.actualite-card,
.partner-card{
  border-left-width: 1px !important;
}

html[dir="rtl"] .actualite-card,
html[dir="rtl"] .partner-card{
  border-right-width: 1px !important;
}

/* 2) Flèches : vrai bouton circulaire flex, icône parfaitement centrée */
.hero-nav,
.carousel-nav,
.carousel-prev,
.carousel-next,
.actualites-prev,
.actualites-next,
.news-prev,
.news-next{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  border-radius: 999px !important;
}

.hero-nav i,
.carousel-nav i,
.carousel-prev i,
.carousel-next i,
.actualites-prev i,
.actualites-next i,
.news-prev i,
.news-next i,
.hero-nav svg,
.carousel-nav svg,
.carousel-prev svg,
.carousel-next svg,
.actualites-prev svg,
.actualites-next svg,
.news-prev svg,
.news-next svg{
  display: block !important;
  margin: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}

.hero-nav::before,
.carousel-nav::before,
.carousel-prev::before,
.carousel-next::before,
.actualites-prev::before,
.actualites-next::before,
.news-prev::before,
.news-next::before{
  line-height: 1 !important;
  margin: 0 !important;
}

/* 3) Bloc actualités : padding interne et flèches décollées */
.actualites-section,
.home-news-section,
.latest-news-section{
  padding-left: clamp(1rem, 2.2vw, 1.45rem) !important;
  padding-right: clamp(1rem, 2.2vw, 1.45rem) !important;
}

.actualites-carousel,
.news-carousel,
.carousel-wrapper,
[data-scroll-carousel]{
  position: relative;
}

.actualites-carousel .carousel-track,
.news-carousel .carousel-track,
[data-scroll-carousel] .carousel-track,
[data-scroll-carousel] [data-carousel-track]{
  padding-left: .35rem !important;
  padding-right: .35rem !important;
  gap: 1.05rem !important;
}

.carousel-controls,
.actualites-controls,
.news-controls{
  position: relative;
  z-index: 4;
  margin-top: .85rem;
  margin-bottom: .35rem;
}

/* Flèches latérales desktop : légèrement sorties du flux, mais pas collées aux cartes */
@media screen and (min-width: 901px){
  .actualites-section .carousel-nav,
  .home-news-section .carousel-nav,
  .latest-news-section .carousel-nav,
  .actualites-section .carousel-prev,
  .actualites-section .carousel-next,
  .home-news-section .carousel-prev,
  .home-news-section .carousel-next,
  .latest-news-section .carousel-prev,
  .latest-news-section .carousel-next{
    margin-inline: .55rem !important;
  }
}

/* 4) Hero mobile : le conteneur lui-même est recentré, pas seulement le texte */
@media screen and (max-width: 768px){
  .hero-overlay,
  .home-hero-slide__overlay{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: center !important;
  }

  .hero-content,
  .home-hero-slide__content{
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  html[dir="rtl"] .hero-content,
  html[dir="rtl"] .home-hero-slide__content,
  html[dir="rtl"] .hero-content h1,
  html[dir="rtl"] .home-hero-slide__content h1,
  html[dir="rtl"] .hero-content p,
  html[dir="rtl"] .home-hero-slide__content p{
    text-align: center !important;
  }

  .hero-content h1,
  .home-hero-slide__content h1{
    width: 100% !important;
    max-width: 11.6em !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-content p,
  .home-hero-slide__content p{
    width: 100% !important;
    max-width: 24em !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-buttons,
  .home-hero-actions{
    width: 100% !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Mobile : moins de padding global, mais assez pour ne pas coller aux bords */
  main.container,
  .home-main,
  .home-section,
  .presentation-section,
  .program-numbers,
  .actualites-section,
  .home-news-section,
  .latest-news-section{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .actualites-carousel .carousel-track,
  .news-carousel .carousel-track,
  [data-scroll-carousel] .carousel-track,
  [data-scroll-carousel] [data-carousel-track]{
    padding-left: .15rem !important;
    padding-right: .15rem !important;
    gap: .85rem !important;
  }

  .carousel-controls,
  .actualites-controls,
  .news-controls{
    margin-top: .65rem;
  }

  .hero-nav,
  .carousel-nav,
  .carousel-prev,
  .carousel-next,
  .actualites-prev,
  .actualites-next,
  .news-prev,
  .news-next{
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

@media screen and (max-width: 420px){
  .hero-overlay,
  .home-hero-slide__overlay{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hero-content,
  .home-hero-slide__content{
    width: min(100%, 340px) !important;
    max-width: 340px !important;
  }
}

/* ========================================================================== 
   PATCH_HOME_VISUEL_V4_20260508
   News : padding réel + flèches décollées.
   Mobile : flèches masquées + swipe suggéré et utilisable.
========================================================================== */

/* 1) Bloc actualités : vraie respiration interne */
.bloc-actualites .actualites-wrapper{
  padding: clamp(1rem, 2vw, 1.35rem) !important;
  border: 1px solid rgba(51,70,72,.14);
  border-radius: var(--home-radius-lg, 20px);
  background: #fff;
}

.bloc-actualites .section-head{
  margin-bottom: 1.25rem !important;
}

.bloc-actualites .carousel-block{
  max-width: none !important;
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.bloc-actualites .carousel-track-wrapper{
  overflow: hidden;
  border-radius: var(--home-radius, 16px);
}

.bloc-actualites .carousel-track,
.bloc-actualites [data-carousel-track]{
  gap: 1.15rem !important;
  padding-left: .15rem !important;
  padding-right: .15rem !important;
}

/* Les contenus news sont des enfants directs, donc on espace chaque élément */
.bloc-actualites .actualite-card{
  padding-bottom: 1rem !important;
}

.bloc-actualites .actualite-kicker,
.bloc-actualites .actualite-card h3,
.bloc-actualites .actualite-card .update-date,
.bloc-actualites .actualite-card > p:not(.actualite-kicker):not(.update-date){
  margin-left: 1.05rem !important;
  margin-right: 1.05rem !important;
}

.bloc-actualites .actualite-kicker{
  margin-top: .95rem !important;
}

.bloc-actualites .actualite-card h3{
  margin-top: .65rem !important;
  margin-bottom: .75rem !important;
}

.bloc-actualites .actualite-card > p:not(.actualite-kicker):not(.update-date){
  margin-top: .75rem !important;
}

/* 2) Flèches news desktop : décollées des cartes mais dans la zone du bloc */
.bloc-actualites .carousel-nav{
  top: 48% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  border-radius: 999px !important;
  transform: translateY(-50%) !important;
}

.bloc-actualites .carousel-nav--prev{
  left: .35rem !important;
}

.bloc-actualites .carousel-nav--next{
  right: .35rem !important;
}

.bloc-actualites .carousel-nav::before{
  display: block;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  font-family: Arial, sans-serif;
  transform: translateY(-1px);
}

.bloc-actualites .carousel-nav--prev::before{
  content: "‹";
}

.bloc-actualites .carousel-nav--next::before{
  content: "›";
}

/* 3) Mobile : pas de boutons, priorité au geste tactile */
@media screen and (max-width: 768px){
  .hero-nav,
  .carousel-nav,
  .carousel-prev,
  .carousel-next,
  .actualites-prev,
  .actualites-next,
  .news-prev,
  .news-next{
    display: none !important;
  }

  .bloc-actualites .actualites-wrapper{
    padding: .9rem .85rem 1rem !important;
  }

  .bloc-actualites .carousel-block{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .bloc-actualites .carousel-track-wrapper{
    overflow: visible !important;
  }

  .bloc-actualites .carousel-track,
  .bloc-actualites [data-carousel-track]{
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: .85rem !important;
    padding-left: .1rem !important;
    padding-right: .1rem !important;
  }

  .bloc-actualites .carousel-track::-webkit-scrollbar,
  .bloc-actualites [data-carousel-track]::-webkit-scrollbar{
    display: none;
  }

  .bloc-actualites .news-carousel-track .actualite-card,
  .bloc-actualites .actualite-card{
    flex-basis: min(320px, 82vw) !important;
    scroll-snap-align: start;
  }

  /* Indice visuel discret : on laisse apparaître une partie de la carte suivante */
  .bloc-actualites .carousel-block::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: -.85rem;
    width: 2.4rem;
    pointer-events: none;
    background: linear-gradient(to left, #fff 8%, rgba(255,255,255,0));
    z-index: 2;
  }

  html[dir="rtl"] .bloc-actualites .carousel-block::after{
    inset-inline-end: auto;
    inset-inline-start: -.85rem;
    background: linear-gradient(to right, #fff 8%, rgba(255,255,255,0));
  }

  .bloc-actualites .actualite-kicker,
  .bloc-actualites .actualite-card h3,
  .bloc-actualites .actualite-card .update-date,
  .bloc-actualites .actualite-card > p:not(.actualite-kicker):not(.update-date){
    margin-left: .9rem !important;
    margin-right: .9rem !important;
  }

  /* Hero : swipe hint discret, sans bouton */
  .home-hero[data-hero-slider]::before{
    content: "Glisser";
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 5;
    transform: translateX(-50%);
    padding: .22rem .65rem;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(0,0,0,.16);
    color: rgba(255,255,255,.9);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    backdrop-filter: blur(3px);
    pointer-events: none;
  }

  html[dir="rtl"] .home-hero[data-hero-slider]::before{
    content: "اسحب";
    letter-spacing: 0;
  }

  .home-hero[data-hero-slider]::after{
    content: "↔";
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 5;
    transform: translateX(-50%);
    color: rgba(255,255,255,.86);
    font-size: .9rem;
    pointer-events: none;
  }

  .home-hero .hero-dots{
    bottom: 18px !important;
  }
}

/* ========================================================================== 
   PATCH_HOME_VISUEL_V5_20260508
   Hero mobile réellement centré, flèches masquées sur mobile,
   indice swipe subtil, news padding renforcé.
========================================================================== */

/* 1) News : padding interne des cartes, y compris si le contenu est enfant direct */
.bloc-actualites .actualites-wrapper{
  padding: clamp(1.05rem, 2vw, 1.45rem) !important;
}

.bloc-actualites .carousel-track-wrapper{
  padding: 0 .25rem !important;
}

.bloc-actualites .actualite-card{
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 0 1.05rem !important;
}

.bloc-actualites .actualite-card > *:not(img):not(picture):not(figure){
  margin-left: 1.1rem !important;
  margin-right: 1.1rem !important;
}

.bloc-actualites .actualite-card .actualite-kicker,
.bloc-actualites .actualite-card p.actualite-kicker{
  margin-top: 1rem !important;
}

.bloc-actualites .actualite-card h3{
  margin-top: .7rem !important;
  margin-bottom: .75rem !important;
}

.bloc-actualites .actualite-card .update-date{
  margin-top: .35rem !important;
  margin-bottom: .75rem !important;
}

.bloc-actualites .actualite-card > p:not(.actualite-kicker):not(.update-date){
  margin-top: .8rem !important;
  margin-bottom: 0 !important;
}

/* Desktop/tablet : flèches news décollées du bloc, pas sur le texte */
@media screen and (min-width: 769px){
  .bloc-actualites .carousel-block{
    padding-left: 3.35rem !important;
    padding-right: 3.35rem !important;
  }

  .bloc-actualites .carousel-nav--prev{
    left: .65rem !important;
  }

  .bloc-actualites .carousel-nav--next{
    right: .65rem !important;
  }
}

/* 2) Mobile : hero content centré dans le conteneur lui-même */
@media screen and (max-width: 768px){
  .home-hero,
  .home-hero-slider,
  .home-hero-slider__viewport,
  .home-hero-slide,
  .home-hero-slide__overlay,
  .hero,
  .hero-overlay{
    position: relative !important;
  }

  .home-hero-slide__overlay,
  .hero-overlay{
    display: block !important;
    min-height: 56vh !important;
    padding: 0 !important;
  }

  .home-hero-slide__content,
  .hero-content{
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: min(340px, calc(100vw - 32px)) !important;
    max-width: min(340px, calc(100vw - 32px)) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }

  html[dir="rtl"] .home-hero-slide__content,
  html[dir="rtl"] .hero-content{
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }

  .home-hero-slide__content h1,
  .hero-content h1,
  .home-hero-slide__content p,
  .hero-content p{
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .home-hero-slide__content h1,
  .hero-content h1{
    max-width: 11.4em !important;
  }

  .home-hero-slide__content p,
  .hero-content p{
    max-width: 24em !important;
  }

  .hero-buttons,
  .home-hero-actions{
    justify-content: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Flèches hero/news : disparition réelle sur mobile */
  .hero-nav,
  .hero-nav--prev,
  .hero-nav--next,
  [data-hero-prev],
  [data-hero-next],
  .carousel-nav,
  .carousel-nav--prev,
  .carousel-nav--next,
  [data-carousel-prev],
  [data-carousel-next],
  .carousel-prev,
  .carousel-next,
  .actualites-prev,
  .actualites-next,
  .news-prev,
  .news-next,
  .bloc-actualites .carousel-nav,
  .bloc-actualites .carousel-nav--prev,
  .bloc-actualites .carousel-nav--next{
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* L'ancien bouton texte Glisser/اسحب devient un simple signal visuel */
  .home-hero[data-hero-slider]::before{
    content: "" !important;
    position: absolute;
    left: 50%;
    bottom: 44px;
    z-index: 5;
    width: 34px;
    height: 4px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(255,255,255,.68);
    box-shadow: 0 0 0 1px rgba(255,255,255,.14);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .home-hero[data-hero-slider]::after{
    content: "" !important;
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 5;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.34);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .home-hero .hero-dots{
    bottom: 16px !important;
  }

  /* News mobile : slide manuel avec respiration et aperçu subtil */
  .bloc-actualites .actualites-wrapper{
    padding: .95rem .8rem 1.05rem !important;
  }

  .bloc-actualites .carousel-block{
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
  }

  .bloc-actualites .carousel-track-wrapper{
    overflow: visible !important;
    padding: 0 !important;
  }

  .bloc-actualites .carousel-track,
  .bloc-actualites [data-carousel-track]{
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: .85rem !important;
    padding-left: .05rem !important;
    padding-right: .05rem !important;
  }

  .bloc-actualites .carousel-track::-webkit-scrollbar,
  .bloc-actualites [data-carousel-track]::-webkit-scrollbar{
    display: none;
  }

  .bloc-actualites .news-carousel-track .actualite-card,
  .bloc-actualites .actualite-card{
    flex: 0 0 min(318px, 82vw) !important;
    scroll-snap-align: start;
  }

  .bloc-actualites .actualite-card > *:not(img):not(picture):not(figure){
    margin-left: .95rem !important;
    margin-right: .95rem !important;
  }
}

@media screen and (max-width: 420px){
  .home-hero-slide__content,
  .hero-content{
    width: min(328px, calc(100vw - 28px)) !important;
    max-width: min(328px, calc(100vw - 28px)) !important;
  }
}

/* ========================================================================== 
   PATCH_HOME_SLIDER_STABLE_V6_20260508
   Mobile : empiler les slides du hero pour éviter que le slider descende
   selon le numéro du slide actif.
========================================================================== */

@media screen and (max-width: 768px){
  .home-hero[data-hero-slider],
  .home-hero,
  .hero{
    position: relative !important;
    height: clamp(420px, 58vh, 520px) !important;
    min-height: 420px !important;
    max-height: 520px !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .home-hero-slider,
  .home-hero-slider__viewport,
  .hero-slider,
  .hero-carousel,
  .hero-track,
  .hero-slides{
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
  }

  .home-hero .home-hero-slide,
  .home-hero .hero-slide,
  .home-hero [data-hero-slide],
  .home-hero .slide{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: block !important;
    overflow: hidden !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    transition: opacity .42s ease !important;
  }

  .home-hero .home-hero-slide.active,
  .home-hero .home-hero-slide.is-active,
  .home-hero .home-hero-slide.current,
  .home-hero .home-hero-slide.swiper-slide-active,
  .home-hero .home-hero-slide[aria-hidden="false"],
  .home-hero .home-hero-slide[data-active="true"],
  .home-hero .home-hero-slide[data-home-hero-visible="1"],
  .home-hero .hero-slide.active,
  .home-hero .hero-slide.is-active,
  .home-hero .hero-slide.current,
  .home-hero .hero-slide[aria-hidden="false"],
  .home-hero .hero-slide[data-active="true"],
  .home-hero .hero-slide[data-home-hero-visible="1"],
  .home-hero [data-hero-slide].active,
  .home-hero [data-hero-slide].is-active,
  .home-hero [data-hero-slide].current,
  .home-hero [data-hero-slide][aria-hidden="false"],
  .home-hero [data-hero-slide][data-active="true"],
  .home-hero [data-hero-slide][data-home-hero-visible="1"],
  .home-hero .slide.active,
  .home-hero .slide.is-active,
  .home-hero .slide.current,
  .home-hero .slide[aria-hidden="false"],
  .home-hero .slide[data-active="true"],
  .home-hero .slide[data-home-hero-visible="1"]{
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }

  /* Fallback : si aucun slide actif n'est marqué au chargement */
  .home-hero .home-hero-slide:first-child,
  .home-hero .hero-slide:first-child,
  .home-hero [data-hero-slide]:first-child{
    z-index: 1;
  }

  .home-hero .home-hero-slide img,
  .home-hero .hero-slide img,
  .home-hero [data-hero-slide] img,
  .home-hero .slide img,
  .home-hero picture,
  .home-hero picture img{
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .home-hero-slide__overlay,
  .hero-overlay{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: block !important;
  }

  .home-hero-slide__content,
  .hero-content{
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(340px, calc(100vw - 32px)) !important;
    max-width: min(340px, calc(100vw - 32px)) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 3 !important;
  }

  html[dir="rtl"] .home-hero-slide__content,
  html[dir="rtl"] .hero-content{
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }

  .home-hero .hero-dots,
  .home-hero-dots{
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 16px !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
  }
}
