/* premium.css — Couche visuelle premium (dégradé animé, reflet liquide, polish).
   Chargée APRÈS style.css. S'appuie sur les design tokens existants.
   Respecte prefers-reduced-motion et le thème sombre. */

/* ── Réglages (change ces 2 valeurs pour l'intensité globale) ─────────────── */
:root {
  --fx-hero-opacity: 0.55;  /* halo derrière le mockup du hero (seul effet de fond conservé) */
}

/* Fond dégradé plein écran RETIRÉ : coûteux en batterie/data sur mobile Haïti.
   On garde seulement le halo contenu du hero ci-dessous. */

/* ── Halo du hero : canvas WebGL (liquid.js) + fallback CSS animé ─────────── */
.hero-visual { position: relative; }

.fx-gradient {
  position: absolute;
  inset: -3rem;
  z-index: 0;
  border-radius: 50%;
  filter: blur(48px) saturate(1.25);
  opacity: var(--fx-hero-opacity);
  pointer-events: none;
  display: block;
  /* Fallback si pas de WebGL / reduced-motion : dégradé conique animé même palette */
  background: conic-gradient(from 0deg,
    var(--color-primary-200), var(--color-accent-400),
    var(--color-primary-500), var(--color-primary-700), var(--color-primary-200));
  animation: fx-spin 20s linear infinite;
}
@keyframes fx-spin { to { transform: rotate(360deg); } }

/* Le contenu du hero-visual (mockup) passe au-dessus du halo */
.hero-visual > div { position: relative; z-index: 1; }

/* ── Titre du hero : reflet liquide qui balaie (façon chrome/liquid-logo) ──── */
.fx-sheen {
  background-image: linear-gradient(100deg,
    var(--text-strong) 28%, var(--color-primary-500) 44%,
    var(--color-accent-400) 52%, var(--color-primary-600) 60%, var(--text-strong) 76%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fx-sheen 7s linear infinite;
}
@keyframes fx-sheen { to { background-position: 250% center; } }

/* ── Eyebrows de section : léger dégradé de marque (cohérence sitewide) ────── */
.section-eyebrow {
  background-image: linear-gradient(90deg, var(--color-primary-600), var(--color-accent-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Boutons primaires : micro-relief au survol ────────────────────────────── */
.btn-primary {
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary-400);
}

/* ── Cartes : ombre plus douce + lift discret au survol ────────────────────── */
.card, .feature-card, .service-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover, .feature-card:hover, .service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ── Accessibilité : couper toute animation si demandé ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fx-gradient, .fx-bg { animation: none; }
  .fx-sheen {
    animation: none; background: none;
    -webkit-text-fill-color: currentColor; color: var(--text-strong);
  }
}

/* ── Panneau conversation (OTP reçus, style messagerie) — page order-status ── */
.convo-panel {
  margin-top: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
.convo-header {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent-500));
  color: #fff;
}
.convo-avatar {
  width: 2.5rem; height: 2.5rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700; font-size: 1.1rem;
}
.convo-id { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.convo-id strong { font-size: 1rem; }
.convo-sub { font-size: 0.8rem; opacity: 0.85; }
.convo-lease {
  margin-left: auto; flex: none;
  background: rgba(255, 255, 255, 0.22); color: #fff;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.convo-body {
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--bg-muted);
  min-height: 5rem;
}
.convo-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 85%; }
.convo-bubble {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
}
.convo-code {
  font-family: var(--font-mono);
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.15rem;
  color: var(--color-primary-700);
}
.convo-time { font-size: 0.72rem; color: var(--text-muted); padding-left: var(--space-2); }
.convo-waiting {
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--text-muted); font-size: 0.9rem; font-style: italic;
}
.convo-dots { display: inline-flex; gap: 4px; }
.convo-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary-400);
  animation: convo-blink 1.2s infinite ease-in-out both;
}
.convo-dots i:nth-child(2) { animation-delay: 0.2s; }
.convo-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes convo-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .convo-dots i { animation: none; } }

/* ── Section confiance (accueil) ───────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.trust-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.trust-icon {
  width: 3rem; height: 3rem; margin: 0 auto var(--space-4);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent-500));
  color: #fff;
}
.trust-icon svg { width: 1.5rem; height: 1.5rem; }
.trust-card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.trust-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* ── Page FAQ (accordéon natif <details>) ──────────────────────────────────── */
.faq-list { max-width: 46rem; margin: var(--space-8) auto 0; }
.faq-item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret { width: 1.1rem; height: 1.1rem; flex: none; transition: transform .2s ease; color: var(--text-muted); }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-item > p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted); line-height: 1.6; margin: 0;
}
.faq-cta { text-align: center; margin-top: var(--space-8); }
.faq-cta p { margin-bottom: var(--space-4); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .faq-caret { transition: none; } }

/* ── Page contact / demande de service ─────────────────────────────────────── */
.contact-wrap { max-width: 40rem; margin: var(--space-8) auto 0; }
.contact-form { padding: var(--space-6); }
.contact-form .btn { width: 100%; margin-top: var(--space-2); }
.contact-email { text-align: center; margin-top: var(--space-6); color: var(--text-muted); }
.contact-email a { font-weight: 600; }
