/* ============================================================
   Viva QSE — style.css
   Version : 1.0 — 19/05/2026
   Auteur  : Mathieu Bataillon · vivaqse.fr
   Note    : Ce fichier contient les classes custom Viva QSE.
             Tailwind CSS est chargé via CDN (dev) ou compilé
             via `npx tailwindcss -i style.css -o dist.css`
             en production (recommandé pour les Core Web Vitals).
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
html {
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', sans-serif;
  background: #ffffff;
  color: #0a0a0a;
  overflow-x: hidden;
}

/* ── Gradient texte (brand) ───────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Header scrollé ───────────────────────────────────────── */
header.scrolled {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(243, 244, 246, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* ── Animations reveal au scroll ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Ligne hover (underline animée) ──────────────────────── */
.hover-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #ec4899, #a855f7);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 0 16px 16px;
}

.hover-line:hover::after {
  width: 100%;
}

/* ── FAQ details/summary (masque le marker natif) ─────────── */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* ── Badge géolocalisation ────────────────────────────────── */
.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ── Pills secteur / tag ──────────────────────────────────── */
.tag-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid #f3f4f6;
  border-radius: 999px;
  color: #6b7280;
  margin-top: 4px;
  margin-right: 4px;
  transition: all 0.3s ease;
}

.group:hover .tag-pill {
  border-color: #e5e7eb;
  color: #0a0a0a;
  background: #fafafa;
}

/* ── Menu mobile ──────────────────────────────────────────── */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: flex;
}

/* ── Textes italiques en gradient (titres brand) ─────────── */
span.font-thin.italic,
span.italic.font-thin,
h1 span.font-thin.italic,
h2 span.font-thin.italic,
h2 span.italic.font-thin,
h2 span.italic,
.text-2xl.font-light.leading-snug.text-dark.italic {
  background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA gradient (bouton principal) ─────────────────────── */
.cta-gradient {
  background: #0a0a0a;
  color: #ffffff !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

.cta-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.cta-gradient:hover::before {
  opacity: 1;
}

/* ── Delays animation (blobs décoratifs) ──────────────────── */
.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* ── Photo : N&B → couleur au hover ───────────────────────── */
.photo-colorize {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.photo-colorize img {
  filter: grayscale(100%);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-colorize:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}