/* =========================================================
   Refrigair Expo — HOME (single source of truth)
   ========================================================= */

/* ---------- Root & Base ---------- */
:root{
  --rx-green:#1a841a;
  --rx-green-2:#20c997;
  --rx-text:#222;
  --rx-muted:#666;
  --rx-bg:#f6f8f7;
  --rx-white:#fff;
  --rx-shadow:0 4px 15px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:hidden}
img{max-width:100%;display:block}
.rx-container{max-width:1200px;margin:0 auto;padding:0 16px}

/* ---------- Section headings ---------- */
.rx-section-head{margin-bottom:28px}
.rx-section-head--center{text-align:center}
.rx-section-title{font-size:clamp(24px,3vw,36px);color:var(--rx-text);margin:0;font-weight:800}
.rx-dot{color:var(--rx-green)}
.rx-section-sub{color:var(--rx-muted);margin:8px 0 0}

/* =========================================================
   Scroll Animations — rx-reveal
   ========================================================= */
.rx-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.rx-reveal--left  { transform: translateX(-50px); }
.rx-reveal--right { transform: translateX(50px); }
.rx-reveal--scale { transform: scale(.88); }
.rx-reveal--fade  { transform: none; }
.rx-reveal--d1 { transition-delay: .1s }
.rx-reveal--d2 { transition-delay: .2s }
.rx-reveal--d3 { transition-delay: .3s }
.rx-reveal--d4 { transition-delay: .4s }
.rx-reveal--d5 { transition-delay: .5s }
.rx-reveal.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .rx-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Icônes Pillars — spring entrance + idle float
   ========================================================= */

/*
  Two-layer approach to avoid transform conflicts:
  - .rx-card__icon       → opacity + scale/rotate entrance (transition)
  - .rx-card__icon__img  → idle float & hover bob (animation on the img wrapper)
  Since we animate the outer for entrance and the inner <img> for continuous
  motion, they never fight each other.
*/

.rx-card__icon {
  font-size: 28px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* entrance starts hidden */
  opacity: 0;
  transform: scale(.55) rotate(-20deg);
  transition: opacity .45s cubic-bezier(.34,1.56,.64,1),
              transform .45s cubic-bezier(.34,1.56,.64,1);
  will-change: opacity, transform;
}

/* cascade entrance delays */
.rx-card:nth-child(1) .rx-card__icon { transition-delay: .05s }
.rx-card:nth-child(2) .rx-card__icon { transition-delay: .15s }
.rx-card:nth-child(3) .rx-card__icon { transition-delay: .25s }
.rx-card:nth-child(4) .rx-card__icon { transition-delay: .35s }

/* spring in when card becomes visible */
.rx-card.is-visible .rx-card__icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ---- img inside the icon: idle float ---- */
/* Float runs on the img element so it never conflicts with the
   entrance transform on the parent .rx-card__icon */
.rx-card__icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter .25s ease;
  /* will hold the idle animation */
  animation: none;
}

/* Idle float — added via class by JS after entrance finishes */
.rx-card__icon img.rx-icon--idle {
  animation: rx-icon-float 3s ease-in-out infinite;
}

/* stagger phase per card so they're out of sync */
.rx-card:nth-child(1) .rx-card__icon img.rx-icon--idle { animation-delay:    0s }
.rx-card:nth-child(2) .rx-card__icon img.rx-icon--idle { animation-delay:  .75s }
.rx-card:nth-child(3) .rx-card__icon img.rx-icon--idle { animation-delay: 1.5s  }
.rx-card:nth-child(4) .rx-card__icon img.rx-icon--idle { animation-delay: 2.25s }

@keyframes rx-icon-float {
  0%,100% { transform: translateY(0)    rotate(0deg)   scale(1);    }
  30%     { transform: translateY(-7px) rotate(-5deg)  scale(1.08); }
  65%     { transform: translateY(-3px) rotate( 3deg)  scale(1.03); }
}

/* hover: pause idle, run bob instead (on the img too) */
.rx-card:hover .rx-card__icon img,
.rx-card:focus-within .rx-card__icon img {
  animation: rx-icon-bob .85s ease-in-out infinite !important;
  filter: brightness(0) saturate(100%) invert(35%) sepia(80%) saturate(400%) hue-rotate(100deg);
}

@keyframes rx-icon-bob {
  0%,100% { transform: translateY(0)    rotate(0deg)  scale(1);    }
  50%     { transform: translateY(-5px) rotate(-3deg) scale(1.1);  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-card__icon {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .rx-card__icon img.rx-icon--idle,
  .rx-card:hover .rx-card__icon img,
  .rx-card:focus-within .rx-card__icon img {
    animation: none !important;
  }
}

/* =========================================================
   NOUVELLE ANIMATION — Compteurs statistiques
   ========================================================= */
.rx-stats {
  padding: 70px 0;
  background: var(--rx-bg);
}
.rx-stats__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.rx-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
  border: 1px solid rgba(26,132,26,.1);
}
.rx-stat-card__value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--rx-green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rx-stat-card__suffix {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--rx-green);
}
.rx-stat-card__label {
  font-size: 14px;
  color: var(--rx-muted);
  margin-top: 8px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .rx-stats__grid { grid-template-columns: 1fr; gap: 12px }
}

/* =========================================================
   Banner
   ========================================================= */
.rx-banner{
  position:relative; min-height:72vh;
  display:flex; align-items:center; color:#fff;
  overflow:hidden; isolation:isolate;
}
.rx-banner__media{ position:absolute; inset:0; }
.rx-banner__video{ width:100%; height:100%; object-fit:cover; display:block; }
.rx-banner__overlay{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.4)); }
.rx-banner__shapes .rx-shape{
  position:absolute; width:140px; height:140px;
  border:1px solid rgba(255,255,255,.12); border-radius:50%;
}
.rx-shape--1{top:8%;left:6%}.rx-shape--2{bottom:10%;right:8%}.rx-shape--3{top:20%;right:20%}
.rx-shape--4{bottom:22%;left:18%}.rx-shape--5{top:40%;left:40%}.rx-shape--6{bottom:35%;right:38%}
.rx-banner__content{ position:relative; z-index:2; text-align:center; }
.rx-banner__title{ font-size:clamp(28px,5vw,56px); font-weight:800; margin-bottom:10px; }

/* letter + mist spans — moved to site.css (global) */
.rx-banner__subtitle{ color:#fff; opacity:.95; margin-bottom:18px; }
.rx-cta{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.rx-btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 20px; border-radius:28px;
  background:rgba(255,255,255,.12); color:#fff;
  text-decoration:none; font-weight:700;
  border:1px solid rgba(255,255,255,.2); transition:.25s;
}
.rx-btn:hover{ transform:translateY(-2px); background:rgba(0,191,255,.639) rgba(26,132,26,.85); }
.rx-btn__icon{ font-style:normal; }
.rx-btn--grad{ background:linear-gradient(45deg, rgba(26,132,26,.85), var(--rx-green-2)); color:#fff; }

/* Underline blanche dans le banner */
.rx-banner .rx-underline path {
  stroke: rgba(255,255,255,.85);
}

@media (max-width:768px){
  .rx-banner{min-height:64vh}
  .rx-banner__title{ font-size: clamp(22px, 7vw, 34px); }
  .rx-banner__subtitle{ font-size:14px }
  .rx-cta{ gap:10px }
  .rx-btn{ padding:10px 14px; font-size:14px }
  .rx-banner__shapes .rx-shape{ opacity:.25; transform:scale(.85); }
}

/* =========================================================
   Sponsors (Swiper)
   ========================================================= */
.rx-sponsors{ position:relative; background:var(--rx-bg); padding:70px 0; overflow:hidden; }
.rx-sponsors__swiper{ padding:0 56px; overflow:visible; }
.rx-sponsors .swiper-slide{ height:auto; display:flex; align-items:center; justify-content:center; }
.rx-sponsor{
  width: clamp(200px, 18vw, 260px);
  height: clamp(120px, 12vw, 160px);
  margin: 0 auto; display:flex; align-items:center; justify-content:center;
  border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rx-sponsor:hover{ transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.10); }
.rx-sponsor__img{ max-width:82%; max-height:82%; object-fit:contain; }

.rx-sponsors .swiper-button-prev,
.rx-sponsors .swiper-button-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px;
  background:#fff; color:var(--rx-green);
  border:1px solid rgba(26,132,26,.15); box-shadow:0 4px 14px rgba(0,0,0,.12);
  z-index:10; pointer-events:auto;
}
.rx-sponsors .swiper-button-prev{ left:10px; }
.rx-sponsors .swiper-button-next{ right:10px; }
.rx-sponsors .swiper-button-prev:before,
.rx-sponsors .swiper-button-next:before{ content:none }
.rx-sponsors .swiper-button-prev:after,
.rx-sponsors .swiper-button-next:after{ font-size:18px }
.rx-sponsors .swiper-pagination{ position:static; margin-top:14px; }
.rx-sponsors .swiper-pagination-bullet{ background:#b7c6bb; opacity:.7; }
.rx-sponsors .swiper-pagination-bullet-active{ background:var(--rx-green)!important; opacity:1; }

@media (max-width:768px){
  .rx-sponsors{ padding:56px 0 }
  .rx-sponsors__swiper{ padding:0 44px; overflow:hidden }
  .rx-sponsors .swiper-button-prev,
  .rx-sponsors .swiper-button-next{ width:40px; height:40px }
  .rx-sponsors .swiper-button-prev{ left:6px }
  .rx-sponsors .swiper-button-next{ right:6px }
  .rx-sponsor{
    width: clamp(160px, 42vw, 220px);
    height: clamp(90px, 24vw, 140px);
  }
}

/* =========================================================
   Gallery (Swiper + Lightbox)
   ========================================================= */
.rx-gallery {
  position: relative;
  padding: 80px 0 60px;
  background-image: url('/images/background/Refrigairexpo 20-22 Mai 2025_Casablanca OFEC  -image1.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.rx-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.rx-section-title_h1{
  color: #ffffff;
  font-weight: 800;
}
.rx-gallery .rx-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.rx-gallery__swiper {
  position: relative;
  padding: 0 60px 20px;
  overflow: hidden;
  margin: 0 auto;
  cursor: grab;
}
.rx-gallery__swiper:active { cursor: grabbing; }
.rx-gallery .swiper-wrapper { align-items: stretch; padding-bottom: 10px; }
.rx-gallery .swiper-slide { height: auto; flex-shrink: 0; }
.rx-gallery__item {
  position: relative; display: block; width: 100%;
  cursor: zoom-in; border: none !important; outline: none !important;
  padding: 0; margin: 0; border-radius: 20px; overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  appearance: none;
}
.rx-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.rx-gallery__item.is-hovered,
.rx-gallery__item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.08);
  z-index: 2;
}
.rx-gallery__item.is-hovered img,
.rx-gallery__item:hover img { transform: scale(1.05); }

.rx-gallery__nav { position: relative; z-index: 10; }
.rx-gallery__nav .swiper-button-prev,
.rx-gallery__nav .swiper-button-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; color: #1a841a;
  border: 2px solid rgba(26,132,26,.15);
  box-shadow: 0 8px 25px rgba(0,0,0,.1), 0 3px 10px rgba(0,0,0,.08);
  z-index: 15; cursor: pointer; transition: all .3s ease; font-size: 0;
}
.rx-gallery__nav .swiper-button-prev { left: 10px; }
.rx-gallery__nav .swiper-button-next { right: 10px; }
.rx-gallery__nav .swiper-button-prev:hover,
.rx-gallery__nav .swiper-button-next:hover {
  background: #1a841a; color: #fff; border-color: #1a841a;
  transform: translateY(-50%) scale(1.1);
}
.rx-gallery .swiper-pagination { position: static; margin-top: 30px; text-align: center; }
.rx-gallery .swiper-pagination-bullet { width: 12px; height: 12px; margin: 0 6px; background: #cbd5e0; opacity: 1; transition: all .3s; }
.rx-gallery .swiper-pagination-bullet-active { background: #1a841a !important; transform: scale(1.2); }
.rx-gallery__swiper::after {
  content: ''; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(26,132,26,0.3), transparent);
  border-radius: 2px; opacity: 0;
  animation: scroll-hint 3s ease-in-out 2s infinite;
  pointer-events: none; z-index: 5;
}
@keyframes scroll-hint {
  0%,100%{ opacity:0; transform:translateX(-50%) translateY(0); }
  20%,80%{ opacity:1; }
  50%    { transform:translateX(-50%) translateY(-5px); }
}
@media (max-width:992px){
  .rx-gallery{ padding:60px 0 40px }
  .rx-gallery__swiper{ padding:0 50px 20px }
  .rx-gallery__item{ height:250px }
}
@media (max-width:768px){
  .rx-gallery .rx-container{ padding:0 15px }
  .rx-gallery__swiper{ padding:0 45px 20px }
  .rx-gallery__nav .swiper-button-prev,
  .rx-gallery__nav .swiper-button-next{ width:45px; height:45px }
  .rx-gallery{ background-attachment:scroll }
}
@media (max-width:560px){
  .rx-gallery{ padding:40px 0 30px }
  .rx-gallery__swiper{ padding:0 16px 18px }
  .rx-gallery__item{ height:210px; border-radius:14px }
  .rx-gallery__nav .swiper-button-prev,
  .rx-gallery__nav .swiper-button-next{ width:4rem; height:4rem }
  .rx-gallery__nav .swiper-button-prev{ left:6px }
  .rx-gallery__nav .swiper-button-next{ right:6px }
}

/* Lightbox */
.rx-gal-modal {
  position:fixed; inset:0; display:none; place-items:center;
  background:rgba(0,0,0,.95); backdrop-filter:blur(8px); z-index:1000;
}
.rx-gal-modal.is-open{ display:grid }
.rx-gal-figure{ max-width:90vw; max-height:85vh; margin:0; display:grid; grid-template-rows:1fr auto; gap:15px }
#rxGalImg{ max-width:90vw; max-height:80vh; object-fit:contain; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.5) }
#rxGalCap{ color:#f7fafc; text-align:center; font-weight:600; font-size:16px; opacity:.9; padding:0 20px }
.rx-gal-close{
  position:absolute; top:17px; right:35px; width:45px; height:45px; border-radius:50%;
  border:none; background:rgba(255,255,255,.15); color:#fff; font-size:24px; cursor:pointer; transition:all .3s
}
.rx-gal-close:hover{ background:rgba(255,255,255,.25); transform:scale(1.1) }
.rx-gal-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:55px; height:55px; border-radius:50%; border:none;
  background:rgba(255,255,255,.9); color:#2d3748; cursor:pointer; font-size:24px; transition:all .3s;
}
.rx-gal-prev{ left:13px } .rx-gal-next{ right:13px }
.rx-gal-nav:hover{ background:rgba(26,132,26,.9); color:#fff; transform:translateY(-50%) scale(1.1) }
@media (max-width:768px){
  #rxGalCap{ font-size:14px }
  .rx-gal-nav{ width:50px; height:50px; font-size:22px }
  .rx-gal-prev{ left:12px } .rx-gal-next{ right:12px }
  .rx-gal-close{ top:15px; right:17px; width:40px; height:40px; font-size:22px }
}
@media (prefers-reduced-motion:reduce){
  .rx-gallery__item, .rx-gallery__item img{ transition:none !important }
}

/* =========================================================
   Articles (Swiper)
   ========================================================= */
.rx-articles{
  position: relative; padding: 64px 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.rx-articles::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.35));
  z-index:0; pointer-events:none
}
.rx-articles .rx-container{ position:relative; z-index:2 }
.rx-articles .rx-section-title{ color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.3) }
.rx-articles .rx-section-sub{ color:#e9fff0 }
.swiper.rx-articles__swiper{ overflow:visible; padding:10px 8px 8px }
.rx-articles__swiper .swiper-wrapper{ align-items:stretch }
.rx-articles__swiper .swiper-slide{ height:auto; display:flex }
.rx-articles .rx-swiper-nav{ position:absolute; inset:0; z-index:5; pointer-events:none }
.rx-articles .swiper-button-prev,
.rx-articles .swiper-button-next{
  pointer-events:all; position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border-radius:50%;
  background:#fff; color:var(--rx-green); border:1px solid rgba(0,0,0,.06);
  box-shadow:0 6px 16px rgba(0,0,0,.12); transition:transform .15s ease, box-shadow .15s ease
}
.rx-articles .swiper-button-prev{ left:-6px }
.rx-articles .swiper-button-next{ right:-6px }
.rx-articles .swiper-button-prev::after,
.rx-articles .swiper-button-next::after{ font-size:18px; font-weight:700 }
.rx-articles .swiper-button-disabled{ opacity:.35; transform:translateY(-50%) }
.rx-article{
  display:flex; flex-direction:column; width:100%;
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:14px; overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.12); text-decoration:none; color:var(--rx-text);
  transition:transform .15s ease, box-shadow .15s ease;
}
.rx-article:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.18) }
.rx-article__thumb{ position:relative; aspect-ratio:16/9; background:#e9ecef; overflow:hidden }
.rx-article__thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .25s ease }
.rx-article:hover .rx-article__thumb img{ transform:scale(1.03) }
.rx-article__badge{
  position:absolute; top:10px; left:10px; z-index:2; padding:6px 8px; border-radius:8px;
  font:700 12px/1 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:#fff; background:rgba(0,0,0,.55)
}
.rx-article__body{ padding:12px 14px 14px; display:flex; flex-direction:column; gap:6px }
.rx-article__title{
  margin:0; color:#111; font-weight:800; font-size:16px; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden
}
.rx-article__meta{ color:var(--rx-muted); font-weight:700; font-size:13px }
@media (max-width:768px){ .rx-articles{ background-attachment:scroll } }
@media (max-width:640px){
  .rx-articles .swiper-button-prev,
  .rx-articles .swiper-button-next{ display:none }
  .rx-article__title{ font-size:15px }
}

/* =========================================================
   Feature Split V2
   ========================================================= */
.rx-feature{ padding:70px 0; background:#fff }
.rx-feature--v2{ position:relative; isolation:isolate }
.rx-feature__grid{
  display:grid; gap:28px; align-items:center;
  grid-template-columns:repeat(12,1fr);
}
.rx-feature__media{ grid-column:span 6; position:relative; min-height:360px }
.rx-feature__content{ grid-column:span 6 }
.rx-media-card{
  --r:16px;
  position:relative; border-radius:var(--r); overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  background:linear-gradient(180deg,#f9fbf9,#f2f7f3);
  transform:translateZ(0);
  transition:transform .3s ease, box-shadow .3s ease;
}
.rx-media-card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1.5px;
  background:linear-gradient(140deg, rgba(26,132,26,.9), rgba(26,132,26,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.rx-media-card img{ width:100%; height:100%; display:block; object-fit:cover; }
.rx-media-card--primary{ aspect-ratio:16/10; }
.rx-media-badge{
  position:absolute; left:14px; top:14px;
  background:rgba(255,255,255,.9); color:#0d3b1a;
  border:1px solid rgba(26,132,26,.25);
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px;
  backdrop-filter:saturate(140%) blur(2px);
}
.rx-media-card--float{
  position:absolute; right:-6%; bottom:-2%;
  width:min(44%, 280px); aspect-ratio:4/3;
  transform:translateY(0) rotate(-2deg);
}
.rx-media-card--float:hover{ transform:translateY(-4px) rotate(-2deg) }
.rx-blob{ position:absolute; inset:auto; z-index:-1; filter:blur(18px); opacity:.45; }
.rx-blob--1{ width:180px; height:180px; left:-30px; bottom:-30px; background:radial-gradient(closest-side,rgba(26,132,26,.55),transparent 70%); }
.rx-blob--2{ width:220px; height:220px; right:-50px; top:-40px; background:radial-gradient(closest-side,rgba(26,132,26,.35),transparent 70%); }
.rx-media-card:hover{ box-shadow:0 16px 40px rgba(0,0,0,.16); transform:translateY(-4px); }
.rx-tags{ list-style:none; padding:0; margin:18px 0 0; display:flex; flex-wrap:wrap; gap:10px }
.rx-tag{
  --p:10px 14px; padding:var(--p); border-radius:999px; font-weight:700; font-size:13.5px;
  background:linear-gradient(180deg,#eef6f0,#eaf4ec); color:#0e3a19;
  border:1px solid rgba(26,132,26,.18);
}
.rx-tag::before{
  content:""; display:inline-block; width:6px; height:6px; border-radius:50%;
  background:#1a841a; margin-right:8px; vertical-align:middle;
}
@media (max-width:1200px){ .rx-media-card--float{ right:-4%; bottom:-9%; width:min(46%,260px) } }
@media (max-width:992px){
  .rx-feature__media,.rx-feature__content{ grid-column:span 12 }
  .rx-feature__media{ min-height:0 }
  .rx-media-card--float{ right:-2%; bottom:-8%; width:min(48%,240px) }
}
@media (max-width:640px){
  .rx-media-card--primary{ aspect-ratio:16/11 }
  .rx-media-card--float{ position:static; width:100%; aspect-ratio:16/10; margin-top:12px; transform:rotate(0); }
  .rx-blob{ display:none }
}
@media (prefers-reduced-motion:reduce){
  .rx-media-card,.rx-media-card--float{ transition:none !important }
}
@media (max-width:992px){
  .rx-feature{ padding:56px 0 }
  .rx-feature__grid{ grid-template-columns:repeat(12,1fr); gap:20px }
  .rx-feature__media,.rx-feature__content{ grid-column:span 12 }
  .rx-media-card--float{ position:static; width:57%; aspect-ratio:16/10; margin-top:-6rem; margin-left:8rem; right:auto; bottom:auto; }
  .rx-section-title{ margin-bottom:8px; font-size:clamp(22px,4.2vw,28px) }
  .rx-section-sub{ font-size:clamp(14px,3.6vw,16px); line-height:1.7 }
  .rx-tags{ gap:8px }
  .rx-tag{ padding:8px 12px; font-size:13px }
}
@media (max-width:640px){
  .rx-media-card--primary{ aspect-ratio:16/11; margin-left:1rem }
  .rx-blob{ display:none }
}

/* =========================================================
   Pillars / Feature / Why
   ========================================================= */
.rx-pillars{ padding:70px 0; background:var(--rx-bg) }
.rx-pillars__grid{ display:grid; gap:18px; grid-template-columns:repeat(12,1fr) }
.rx-card{
  grid-column:span 3; background:#fff; border-radius:14px; padding:22px;
  box-shadow:0 4px 12px rgba(0,0,0,.08); display:flex; flex-direction:column; gap:8px;
  position:relative; isolation:isolate;
  transition:transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  will-change:transform,box-shadow;
}
.rx-card__title{ margin:2px 0 8px; font-size:20px; color:var(--rx-text); position:relative; transition:color .25s ease; }
.rx-card__text{ color:var(--rx-muted); transition:transform .25s ease, color .25s ease; }
.rx-card__link{ margin-top:auto; align-self:flex-end; text-decoration:none; font-weight:700; color:var(--rx-green) }
.rx-card__icon img{
  width:52px; height:52px; object-fit:contain;
  filter:brightness(0) saturate(100%);
  transition:filter .25s ease;
}
.rx-card::before{
  content:""; position:absolute; inset:-1px; border-radius:16px;
  background:conic-gradient(from 180deg at 50% 50%, #3ddc97,#0ea5e9,#307fff,#088435,#00ff91);
  filter:blur(18px) saturate(130%); opacity:0; z-index:-1; transition:opacity .35s ease;
}
.rx-card__title::after{
  content:""; position:absolute; left:0; bottom:-6px;
  height:3px; width:0%; border-radius:3px;
  background:linear-gradient(90deg,#22c55e,#0ea5e9,#307fff);
  transition:width .35s ease;
}
.rx-card:hover{ transform:translateY(-6px) scale(1.02); box-shadow:0 14px 28px rgba(0,0,0,.14); background-color:#fff; }
.rx-card:hover::before{ opacity:.22 }
.rx-card:hover .rx-card__icon{ filter:drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.rx-card:hover .rx-card__title::after{ width:42% }
.rx-card:hover .rx-card__text{ transform:translateY(-2px); color:#444 }
.rx-card:focus-within,.rx-card:focus-visible{
  outline:2px solid #22c55e; outline-offset:3px;
  transform:translateY(-6px) scale(1.02); box-shadow:0 14px 28px rgba(0,0,0,.16);
}
.rx-card:focus-within::before,.rx-card:focus-visible::before{ opacity:.22 }
@media (max-width:992px){ .rx-card{ grid-column:span 6 } }
@media (max-width:560px){ .rx-card{ grid-column:span 12 } }
@media (prefers-reduced-motion:reduce){
  .rx-card,.rx-card__icon,.rx-card__title::after{ transition:none !important; animation:none !important }
}

/* =========================================================
   Why Us
   ========================================================= */
.rx-why{
  position: relative;
  padding: 80px 0;
  background-image: url('/images/background/Ondes fluides bleues et vertes lumineuses.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.rx-why::before{
  content:''; position:absolute; inset:0;
  background:rgba(0,0,0,.45);
  z-index:0; pointer-events:none;
}
.rx-why .rx-container{ position:relative; z-index:1; }
.rx-why .rx-section-title{ color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.3); }
.rx-why__content{ max-width:700px; margin:0 auto }
.rx-why__items{ display:grid; gap:12px; margin-top:24px }
.rx-why__item{
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:12px; padding:20px 24px;
}
.rx-why__title{ margin:0 0 6px; color:#fff }
.rx-why__text{ margin:0; color:rgba(255,255,255,.85); line-height:1.7 }
@media (max-width:768px){ .rx-why{ background-attachment:scroll } }
@media (max-width:992px){ .rx-why__media,.rx-why__content{ grid-column:span 12 } }

/* =========================================================
   Testimonials (Videos) + Modal
   ========================================================= */
.rx-testimonials{ padding:70px 0; background:#fff; overflow:hidden }
.rx-videos{ position:relative; padding:0 60px; overflow:hidden }
@media (max-width:1024px){ .rx-videos{ padding:0 40px } }
@media (max-width:768px){ .rx-videos{ padding:0 12px } }
.rx-testimonials .swiper-wrapper{ align-items:stretch }
.rx-testimonials .swiper-slide{ height:auto }
.rx-video-card{ width:100%; border:0; background:transparent; padding:0; text-align:left; cursor:pointer; margin-left:0 }
.rx-video-card__thumb{
  position:relative; border-radius:14px; overflow:hidden; background:#f6f8f7;
  box-shadow:0 6px 18px rgba(0,0,0,.12); transition:transform .25s ease;
}
.rx-video-card__thumb img{ width:100%; display:block; height:auto; aspect-ratio:16/9; object-fit:cover; transition:transform .25s ease }
.rx-video-card__thumb:hover{ transform:translateY(-3px) }
.rx-video-card__thumb:hover img{ transform:scale(1.02) }
.rx-video-card__play{
  position:absolute; inset:0; margin:auto; width:64px; height:64px; border-radius:50%;
  display:grid; place-items:center; background:rgba(0,0,0,.58); color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.25); pointer-events:none
}
.rx-video-card__play svg{ width:30px; height:30px }
.rx-video-card__title{ text-align:center; font-weight:700; color:var(--rx-text); margin-top:10px; line-height:1.35 }
.rx-testimonials .swiper-button-prev,
.rx-testimonials .swiper-button-next{
  color:var(--rx-green); background:#fff; width:44px; height:44px; border-radius:50%;
  box-shadow:0 4px 14px rgba(0,0,0,.12); border:1px solid rgba(26,132,26,.12); z-index:3
}
.rx-testimonials .swiper-button-prev:after,.rx-testimonials .swiper-button-next:after{ font-size:18px }
.rx-videos .swiper-button-prev{ left:6px } .rx-videos .swiper-button-next{ right:6px }
@media (max-width:768px){
  .rx-testimonials .swiper-button-prev,.rx-testimonials .swiper-button-next{
    width:40px; height:40px; display:flex; align-items:center; justify-content:center
  }
  .rx-testimonials .swiper-button-prev:after,.rx-testimonials .swiper-button-next:after{ font-size:16px }
}
.rx-modal{ position:fixed; inset:0; background:rgba(0,0,0,.92); display:none; place-items:center; z-index:1000 }
.rx-modal.is-open{ display:grid }
.rx-modal__dialog{
  width:min(880px,92vw); background:#fff; border-radius:12px; padding:18px;
  transform:scale(.96); animation:rx-in .2s ease forwards;
  position:relative; box-shadow:0 20px 50px rgba(0,0,0,.35)
}
@keyframes rx-in{ to{ transform:scale(1) } }
.rx-modal__close{
  position:absolute; top:-4rem; right:-5rem; width:40px; height:40px; border-radius:50%;
  border:none; background:var(--rx-green); color:#fff; font-size:26px; cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.25)
}
.rx-modal__video{ width:100%; border-radius:10px; background:#000; aspect-ratio:16/9 }
.rx-modal__title{ text-align:center; margin-top:12px; color:var(--rx-text) }
@media (max-width:560px){
  .rx-modal__dialog{ padding:12px; border-radius:10px }
  .rx-modal__close{ width:36px; right:0; height:36px; font-size:22px }
}