/**
 * Wiisé : page d'accueil de test (index-new.html), version douce et minimaliste.
 *
 * Chargé en dernier : il adoucit les composants partagés (cartes, boutons, tarifs,
 * révélation au scroll) UNIQUEMENT pour cette page, sans toucher à styles.css ni à
 * pricing-plans.css, donc sans effet sur le site officiel ni sur les autres pages.
 * Couleurs, rayons et ombres viennent des tokens (tokens.css) ; seuls quelques
 * tokens locaux "soft" sont ajoutés ici.
 *
 * Principes : beaucoup d'air, peu de contrastes de fond, ombres quasi absentes,
 * mouvement lent et court (12 à 14 px, 0,6 s), jamais de rebond ni de parallaxe,
 * et tout reste visible si l'animation est désactivée.
 */

:root {
  --soft-bg: #F7F9F5;
  --soft-surface: #FFFFFF;
  --soft-line: #E6EBE2;
  --soft-line-strong: #CAD6C2;
  --soft-ink: var(--color-gray-800);
  --soft-ink-2: #5B6657;
  --soft-brand: var(--color-primary);
  --soft-brand-soft: #EAF1E4;
  --soft-radius: 20px;
  --soft-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --soft-section-y: clamp(72px, 9vw, 120px);

  /* Révélation au scroll : courte et lente */
  --reveal-distance: 14px;
  --reveal-duration: 0.6s;
}

body { background: var(--soft-bg); }

/* ===== Révélation au scroll : un simple fondu qui monte de 14 px (plus de zoom ni de glissement latéral) ===== */
.reveal,
.reveal-left,
.reveal-right {
  transform: translateY(var(--reveal-distance));
  will-change: auto;
}

/* ===== Titres et en-têtes de section ===== */
.section-header { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }

.section-badge {
  padding: 6px 14px;
  background: var(--soft-brand-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-brand);
}
.section-badge .badge-icon { display: none; }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--soft-ink);
}

.section-description {
  max-width: 60ch;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--soft-ink-2);
}

/* ===== Hero ===== */
.soft-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Pleine hauteur d'écran à l'ouverture (comme l'ancienne hero, .hero { height:100dvh }) :
     le contenu est centré verticalement dans cet espace, et le reste de la page (repères de
     confiance, etc.) n'apparaît qu'au scroll. */
  height: 100dvh;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: calc(64px + clamp(56px, 9vw, 112px)) 0 clamp(48px, 7vw, 96px);
  /* Pas de fond propre (ex. var(--soft-bg)) : ce serait un rectangle plein qui s'étend jusqu'au
     bord bas réel de la section, créant une ligne droite juste sous la bordure incurvée de
     .soft-hero-bg. Transparent = seule la couleur du panneau (dégradé + courbe) reste visible,
     le reste montre directement le fond de body (déjà la même couleur). */
  background: transparent;
}

/* Fond vivant mais sobre : quatre voiles verts très pâles, larges et allongés, répartis sur
   toute la largeur (pas de tache), qui dérivent très lentement (32 à 44 s) ; trois fines
   courbes qui ondulent comme des séries de données ; une trame de points à peine visible.
   Uniquement transform (pas de repeint coûteux), décoratif (aria-hidden), immobile si
   mouvement réduit. */
.soft-hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
/* Bord inférieur incurvé qui délimite le panneau : vague peinte dans la couleur de fond,
   au-dessus du dégradé/de la trame (reprend le principe de l'ancienne hero, .hero-wave).
   Préférée à un clip-path SVG (objectBoundingBox) : rendu plus fiable selon le navigateur. */
.soft-hero-curve { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; line-height: 0; pointer-events: none; }
.soft-hero-curve svg { display: block; width: 100%; height: clamp(40px, 6vw, 80px); }
.soft-hero-curve path { fill: var(--soft-bg); }
/* Couleur du panneau, reprise telle quelle de l'ancienne hero (.hero-gradient) */
.soft-hero-gradient {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 50%, #BBF7D0 100%);
}
.soft-hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(45, 80, 22, 0.14) 1px, transparent 1.3px);
  background-size: 28px 28px;
  /* Trame étendue à (quasi) toute la section, pas juste une tache centrale : c'est elle qui
     donne au hero son allure de "panneau" délimité, comme l'ancienne version du site. Dérive
     lente, comme .hero-pattern sur l'ancienne hero. */
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 0%, transparent 92%);
          mask-image: radial-gradient(120% 100% at 50% 40%, #000 0%, transparent 92%);
  animation: softPatternDrift 40s linear infinite;
}
@keyframes softPatternDrift {
  from { background-position: 0 0; }
  to   { background-position: 160px 160px; }
}

/* Particules flottantes reprises de l'ancienne hero (.hero-particles / .particle) */
.soft-hero-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.soft-particle {
  position: absolute; left: var(--x); bottom: -24px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--color-primary); opacity: 0;
  animation: softParticleRise var(--duration) ease-in-out var(--delay) infinite;
}
.soft-particle:nth-child(odd) { background: var(--color-accent); }
@keyframes softParticleRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.4; }
  50%  { transform: translateY(-46vh) translateX(14px); opacity: 0.28; }
  88%  { opacity: 0.12; }
  100% { transform: translateY(-92vh) translateX(-10px); opacity: 0; }
}
.soft-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform;
  animation: softDrift 36s ease-in-out infinite alternate;
}
/* Voiles elliptiques, légèrement inclinés, couvrant chacun un quart de la scène */
.soft-blob-a { width: 62vw; height: 30vw; top: -12%; right: -12%; transform: rotate(-12deg);
  background: radial-gradient(closest-side, rgba(74, 124, 35, 0.16), rgba(74, 124, 35, 0)); }
.soft-blob-b { width: 58vw; height: 26vw; bottom: -6%; left: 18%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.11), rgba(34, 197, 94, 0));
  animation-duration: 44s; animation-delay: -14s; animation-name: softDrift2; }
.soft-blob-c { width: 50vw; height: 28vw; top: 6%; left: -16%;
  background: radial-gradient(closest-side, rgba(178, 214, 110, 0.03), rgba(178, 214, 110, 0));
  animation-duration: 32s; animation-delay: -6s; }
.soft-blob-d { width: 40vw; height: 22vw; top: 38%; right: 8%;
  background: radial-gradient(closest-side, rgba(210, 230, 190, 0.40), rgba(210, 230, 190, 0));
  animation-duration: 40s; animation-delay: -20s; animation-name: softDrift2; }
@keyframes softDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(-6deg) scale(1); }
  100% { transform: translate3d(4%, 5%, 0) rotate(4deg) scale(1.06); }
}
@keyframes softDrift2 {
  0%   { transform: translate3d(0, 0, 0) rotate(5deg) scale(1.04); }
  100% { transform: translate3d(-5%, -4%, 0) rotate(-5deg) scale(0.97); }
}

.soft-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.soft-eyebrow {
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-brand);
}

.soft-title {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--soft-ink);
}
.soft-title span { display: block; text-wrap: balance; }

.soft-lead {
  max-width: 54ch;
  margin-bottom: 32px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.7;
  color: var(--soft-ink-2);
}

.soft-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.soft-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.25s var(--soft-ease), color 0.25s var(--soft-ease), text-decoration-color 0.25s var(--soft-ease);
}
.soft-btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--soft-ease); }

.soft-btn-primary { background: var(--color-primary); color: #FFFFFF; }
.soft-btn-primary:hover { background: var(--color-primary-hover); }
.soft-btn-primary:hover svg { transform: translateX(3px); }

.soft-btn-quiet {
  padding: 0 4px;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
}
.soft-btn-quiet:hover { text-decoration-color: currentColor; }

.soft-reassure {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--soft-ink-2);
}

/* Entrée du texte : fondu qui monte de 12 px, en cascade douce */
.soft-hero-text > * { animation: softRise 0.7s var(--soft-ease) both; }
.soft-hero-text > :nth-child(2) { animation-delay: 0.08s; }
.soft-hero-text > :nth-child(3) { animation-delay: 0.16s; }
.soft-hero-text > :nth-child(4) { animation-delay: 0.24s; }
.soft-hero-text > :nth-child(5) { animation-delay: 0.32s; }

@keyframes softRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ===== Visuel du hero : une seule carte calme, données d'exemple ===== */
.soft-hero-visual { position: relative; padding: 8px 0 76px; animation: softRise 0.9s var(--soft-ease) 0.2s both; }

.soft-card {
  margin: 0;
  padding: 22px 22px 18px;
  background: var(--soft-surface);
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  box-shadow: 0 24px 48px -32px rgba(30, 58, 15, 0.25);
  /* Flottement continu et discret, dans le même esprit que l'ancien phone-mockup animé :
     amplitude et vitesse réduites pour rester dans la logique "mouvement lent et court" de
     cette page (contrairement à l'ancien hero, plus démonstratif). */
  animation: softCardFloat 5s var(--soft-ease) infinite;
}

@keyframes softCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.soft-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.soft-card-title { font-size: 0.875rem; font-weight: 600; color: var(--soft-ink); }
.soft-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--soft-brand-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--soft-brand);
  white-space: nowrap;
}

.soft-chart { display: block; width: 100%; height: auto; overflow: visible; }
.soft-grid line { stroke: var(--soft-line); stroke-width: 1; }
.soft-now { stroke: var(--soft-line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.soft-band { fill: rgba(34, 197, 94, 0.14); animation: softFade 0.9s ease 1.5s both; }
.soft-line-obs, .soft-line-fc { fill: none; stroke: var(--color-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.soft-line-obs { stroke-dasharray: 1; stroke-dashoffset: 0; animation: softDraw 1.5s var(--soft-ease) 0.4s both; }
.soft-line-fc { stroke-dasharray: 5 6; animation: softFade 0.9s ease 1.5s both; }
.soft-dot { fill: #FFFFFF; stroke: var(--color-primary); stroke-width: 2.5; animation: softFade 0.6s ease 1.3s both; }

@keyframes softDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes softFade { from { opacity: 0; } to { opacity: 1; } }

.soft-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--soft-ink-2);
}

.soft-chip {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--soft-surface);
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  box-shadow: 0 12px 28px -20px rgba(30, 58, 15, 0.3);
  font-size: 0.75rem;
  color: var(--soft-ink-2);
  /* Même animation que .soft-card (softCardFloat) : les puces flottent avec la carte, comme un
     seul groupe, plutôt que sur leur propre cycle indépendant. */
  animation: softCardFloat 5s var(--soft-ease) infinite;
}
.soft-chip strong { font-size: 1.0625rem; font-weight: 600; color: var(--soft-ink); }
.soft-chip-a { left: 6%; }
.soft-chip-b { right: 6%; }

/* ===== Repères de confiance ===== */
.trust-strip { padding: 8px 0 0; background: transparent; border: 0; }
.trust-strip-inner { gap: 12px 40px; }
.trust-item { font-size: 0.875rem; font-weight: 500; color: var(--soft-ink-2); }
.trust-item:hover { color: var(--soft-ink-2); }
.trust-item svg { width: 18px; height: 18px; stroke-width: 1.75; opacity: 0.85; }
.trust-item:hover svg { transform: none; }

/* ===== Mission : trois étapes ===== */
.about-story { padding-block: var(--soft-section-y); background: var(--soft-bg); }

.soft-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.soft-step { padding-top: 24px; border-top: 1px solid var(--soft-line-strong); }
.soft-step-num { display: block; margin-bottom: 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--soft-brand); font-variant-numeric: tabular-nums; }
.soft-step-title { margin-bottom: 10px; font-size: 1.25rem; font-weight: 600; color: var(--soft-ink); }
.soft-step p { line-height: 1.7; color: var(--soft-ink-2); }

/* ===== Photos libres de droit (Pexels), recadrées sur les visages ===== */
.soft-photo { margin: 0; overflow: hidden; border-radius: var(--soft-radius); background: var(--soft-brand-soft); }
.soft-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Mission : deux portraits côte à côte, hauteur fixe réservée (pas de décalage au chargement) */
.soft-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  height: clamp(240px, 32vw, 420px);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.soft-photo-a img { object-position: 50% 25%; }
.soft-photo-b img { object-position: 49% 28%; }

/* Approche : photo à gauche, les trois engagements empilés à droite */
.soft-method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.soft-method-layout .soft-method-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.soft-method-photo { aspect-ratio: 4 / 3; }
.soft-method-photo img { object-position: 50% 35%; }

/* ===== Offres ===== */
.pillars { padding-block: var(--soft-section-y); background: var(--soft-surface); }
.pillars-grid { gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pillar-card {
  padding: 36px 32px 32px;
  background: var(--soft-bg);
  border: 1px solid var(--soft-line);
  border-radius: var(--soft-radius);
  box-shadow: none;
  transition: border-color 0.3s var(--soft-ease), background-color 0.3s var(--soft-ease);
}
.pillar-card:hover { transform: none; box-shadow: none; background: var(--soft-bg); border-color: var(--soft-line-strong); }
.pillar-card.is-lead { background: var(--soft-brand-soft); border-color: #CFE0C5; }
.pillar-card.is-lead:hover { background: var(--soft-brand-soft); border-color: #B5CCA8; }

.pillar-tag-quiet { background: var(--soft-surface); color: var(--soft-ink-2); border: 1px solid var(--soft-line); }

.pillar-icon { width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: var(--soft-surface); }
.pillar-card:hover .pillar-icon { transform: none; }
.pillar-title { font-size: 1.1875rem; font-weight: 600; }
.pillar-desc { line-height: 1.7; }
.pillar-link svg { transition: transform 0.25s var(--soft-ease); }

.pillars-note { margin-top: 40px; }

/* ===== Approche ===== */
.soft-method { padding-block: var(--soft-section-y); background: var(--soft-bg); }
.soft-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 1040px;
  margin: 0 auto;
}
.soft-method-item { padding-top: 24px; border-top: 1px solid var(--soft-line-strong); }
.soft-method-item h3 { margin-bottom: 8px; font-size: 1.0625rem; font-weight: 600; color: var(--soft-ink); }
.soft-method-item p { line-height: 1.7; color: var(--soft-ink-2); }

/* ===== Tarifs de l'application : mêmes cartes, mouvement et ombres retenus ===== */
.pricing { padding-block: var(--soft-section-y); background: var(--soft-surface); }

.plan-card { border-color: var(--soft-line); border-radius: var(--soft-radius); box-shadow: none; }
.plan-card:hover { transform: none; box-shadow: none; border-color: var(--soft-line-strong); }
.plan-card.is-featured,
.plan-card.is-featured.is-visible,
.plan-card.is-featured:hover { transform: none; box-shadow: 0 24px 48px -32px rgba(10, 36, 16, 0.5); border-color: transparent; }
.plan-cta:hover svg { transform: none; }

.plan-billing-alt { display: block; margin-top: 4px; font-size: 0.8125rem; opacity: 0.85; color: var(--soft-ink-2); }
.plan-card.is-featured .plan-billing-alt { color: rgba(230, 245, 233, 0.75); }

/* ===== Téléchargement et contact ===== */
.download { padding-block: clamp(64px, 8vw, 96px); }
.download-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.contact { padding-block: var(--soft-section-y); background: var(--soft-bg); }
.contact-form-wrapper { border-color: var(--soft-line); box-shadow: none; }

/* ===== Écrans étroits ===== */
@media (max-width: 900px) {
  /* Colonnes empilées = contenu plus haut qu'un écran : hauteur mini plutôt que fixe, pour ne
     jamais couper le contenu (même ajustement que l'ancienne hero sur mobile). */
  .soft-hero { height: auto; min-height: 100dvh; }
  .soft-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .soft-steps,
  .soft-method-grid,
  .pillars-grid { grid-template-columns: minmax(0, 1fr); }
  .soft-method-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .soft-photos { height: 220px; }
}

@media (max-width: 560px) {
  .soft-hero-visual { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 0; }
  .soft-card { flex: 1 1 100%; }
  .soft-chip { position: static; flex: 1 1 140px; animation: none; }
  .soft-blob-a { width: 130vw; height: 70vw; top: -6%; right: -40%; }
  .soft-blob-b { width: 120vw; height: 60vw; bottom: 4%; left: -10%; }
  .soft-blob-c { width: 110vw; height: 60vw; top: 22%; left: -50%; }
  .soft-blob-d { width: 90vw; height: 50vw; top: 50%; right: -20%; }
  .soft-btn-primary { width: 100%; justify-content: center; }
  .trust-strip-inner { justify-content: flex-start; }
}

/* ===== Mouvement réduit : tout est visible tout de suite, rien ne bouge ===== */
@media (prefers-reduced-motion: reduce) {
  .soft-hero-text > *,
  .soft-hero-visual,
  .soft-band,
  .soft-line-obs,
  .soft-line-fc,
  .soft-dot,
  .soft-chip,
  .soft-blob,
  .soft-card,
  .soft-chip,
  .soft-hero-bg::after,
  .soft-particle { animation: none !important; }
  .soft-particle { display: none; }
  .reveal { transform: none; }
}
