/* === Variables de marque === */
:root{
  --brand: #16a34a;      /* emerald-600 */
  --brand-2: #22c55e;    /* emerald-500 */
  --brand-dark: #063227; /* vert nuit */
}

/* === Carousel auto (pur CSS) === */
@keyframes slider {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }
  100% { transform: translateX(0%); }
}
.carousel-track { animation: slider 22s infinite; }

/* === Nav links underline (élégant) === */
.navlink{ position:relative; }
.navlink::after{
  content:""; position:absolute; left:12px; right:12px; bottom:6px; height:2px;
  background:linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.85), rgba(255,255,255,.0));
  transform:scaleX(0); transform-origin:center; transition:transform .35s ease;
}
.navlink:hover::after{ transform:scaleX(1); }

/* === Scroll Reveal (boosted) === */
[data-reveal]{
  opacity:0; transform: translateY(32px) scale(.98);
  transition: opacity .95s cubic-bezier(.22,.61,.36,1), transform .95s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px) scale(.98); }
[data-reveal="right"] { transform: translateX(32px)  scale(.98);  }
[data-reveal].is-visible{ opacity:1; transform:none; }
.reveal-delay-0{ transition-delay: 0s; }
.reveal-delay-1{ transition-delay: .12s; }
.reveal-delay-2{ transition-delay: .24s; }
.reveal-delay-3{ transition-delay: .36s; }
.reveal-delay-4{ transition-delay: .48s; }
.reveal-delay-5{ transition-delay: .60s; }
.reveal-delay-6{ transition-delay: .72s; }
.reveal-delay-7{ transition-delay: .84s; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* === Glow / éclair sur les boutons === */
.shine-btn{
  position:relative; overflow:hidden; isolation:isolate;
  transition: transform .2s ease, box-shadow .35s ease;
}
.shine-btn::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit;
  background: radial-gradient(72px 72px at var(--mx, -10%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity:0; transition: opacity .2s ease; z-index:-1;
}
.shine-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 10px 20px rgba(0,0,0,.25), 0 0 24px rgba(34,197,94,.45);
}
.shine-btn:hover::before{ opacity:.9; }

/* === Bouton WhatsApp flottant (compact & responsive) === */
.whatsapp-fab{
  position: fixed;
  right: 14px;
  bottom: 14px;
  /* Taille responsive : mini 40px, max 50px, s'adapte à l'écran */
  width: clamp(40px, 4.5vw, 50px);
  height: clamp(40px, 4.5vw, 50px);
  z-index: 999;
  border-radius: 9999px;
  background: #25D366; /* couleur officielle */
  display: grid;
  place-items: center;
  padding: 0;           /* pas de padding pour éviter l'effet "gros" */
  line-height: 0;       /* évite tout débordement vertical */
  box-shadow:
    0 2px 6px rgba(0,0,0,.25),
    0 10px 20px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .3s ease, filter .2s ease;
}

.whatsapp-fab:hover{
  transform: translateY(-1px);
  box-shadow:
    0 4px 10px rgba(0,0,0,.28),
    0 16px 28px rgba(0,0,0,.22);
  filter: brightness(1.06);
}

.whatsapp-fab:focus-visible{
  outline: 3px solid rgba(255,255,255,.65);
  outline-offset: 2px;
}

.whatsapp-fab__icon{
  /* Icône ~60% de la pastille */
  width: calc(clamp(40px, 4.5vw, 50px) * 0.6);
  height: calc(clamp(40px, 4.5vw, 50px) * 0.6);
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.1));
}

/* Très petits écrans : un poil plus petit encore */
@media (max-width: 400px){
  .whatsapp-fab{
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
  .whatsapp-fab__icon{
    width: 24px;
    height: 24px;
  }
}

/* Impression : cacher */
@media print{
  .whatsapp-fab{ display: none !important; }
}

#mapZone { height: 420px; min-height: 360px; }

/* Select (dark control) + readable dropdown options */
.tw-select{ color:#fff; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.20); }
.tw-select option{ color:#0f172a; background:#fff; }          /* dark text on light dropdown */
.tw-select optgroup{ color:#0f172a; background:#fff; }


/* === Marquee témoignages === */
@keyframes cag-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* -50% car on a cloné le lot */
}
.marquee{
  width: 200%;
  animation: cag-marquee 32s linear infinite;
}
.group:hover .marquee{
  animation-play-state: paused; /* pause au survol */
}



