/* ============================================================
   Cheval 3F — styles spécifiques à la landing page
   ============================================================ */

.hero {
  padding: 64px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-moss-pale) 0%, rgba(227, 233, 220, 0) 70%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, #f2ded0 0%, rgba(242, 222, 208, 0) 72%);
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  max-width: var(--content-width);
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-moss-light);
  box-shadow: 0 0 0 4px var(--c-moss-pale);
  flex: none;
}

/* --- Visuel du hero --- */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -20px rgba(35, 34, 28, 0.35);
  transform: rotate(1.2deg);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,34,28,0) 55%, rgba(35,34,28,0.35) 100%);
}

.hero-badge {
  position: absolute;
  background: var(--c-surface);
  border-radius: var(--radius-m);
  box-shadow: 0 18px 40px rgba(35, 34, 28, 0.18);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  max-width: 220px;
}

.hero-badge-top {
  top: -18px;
  right: -8px;
  transform: rotate(-2deg);
}

.hero-badge-bottom {
  bottom: -22px;
  left: -24px;
  transform: rotate(2deg);
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex: none;
}

.hero-badge-top .hero-badge-icon { background: var(--c-moss-pale); }
.hero-badge-bottom .hero-badge-icon { background: #f2ded0; }

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-ink);
  line-height: 1.1;
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--c-ink-soft);
}

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-actions,
  .hero-note {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .hero-image-frame {
    margin: 0 18px;
  }

  .hero-badge {
    max-width: none;
    padding: 9px 14px;
    gap: 10px;
  }

  .hero-badge-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .hero-badge strong {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero-badge span {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .hero-badge-top {
    top: -14px;
    right: 4px;
  }

  .hero-badge-bottom {
    bottom: -14px;
    left: 4px;
  }
}

/* --- Étapes --- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.step-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius-m);
  padding: 34px 26px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(35, 34, 28, 0.14);
  border-color: var(--c-line);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-moss) 0%, var(--c-moss-light) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(62, 77, 56, 0.28);
}

.step-card h3 {
  margin-bottom: 8px;
}

.step-card p {
  color: var(--c-ink-soft);
  margin: 0;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --- Observation --- */
.observation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.observation-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--c-moss);
  line-height: 1.3;
  margin: 0;
  position: relative;
  padding-left: 22px;
  border-left: 3px solid var(--c-clay);
}

@media (max-width: 860px) {
  .observation {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* --- Catégories --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.category-card {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  border: 2px solid var(--c-line);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.16,1,.3,1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card::before {
  content: "";
  position: absolute;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 106, 60, 0.35) 0%, rgba(189, 106, 60, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.category-card:hover,
.category-card:focus-visible {
  background: linear-gradient(180deg, #fffdfa 0%, var(--c-surface) 100%);
  box-shadow: 0 26px 48px rgba(35, 34, 28, 0.18);
  border-color: var(--c-clay);
}

.category-card:hover::before,
.category-card:focus-visible::before {
  opacity: 1;
}

@media (hover: none) {
  .category-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .category-card::before {
    display: none;
  }

  .category-card:active {
    transform: scale(0.97);
    border-color: var(--c-clay);
    box-shadow: 0 12px 24px rgba(35, 34, 28, 0.14);
  }
}

.category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.category-card p {
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-moss-pale) 0%, #d8e2cd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.35rem;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.3s ease;
}

.category-card:hover .category-icon,
.category-card:focus-visible .category-icon {
  transform: scale(1.22) rotate(-8deg);
  background: linear-gradient(135deg, var(--c-clay) 0%, var(--c-clay-dark) 100%);
}

@media (max-width: 960px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Découverte --- */
.discover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.discover-col {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  border-radius: var(--radius-m);
  border: 2px solid transparent;
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.discover-col > * {
  position: relative;
  z-index: 1;
}

.discover-col::before {
  content: "";
  position: absolute;
  top: var(--glow-y, 30%);
  left: var(--glow-x, 30%);
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.discover-col.is-positive::before {
  background: radial-gradient(circle, rgba(107, 127, 94, 0.5) 0%, rgba(107, 127, 94, 0.12) 45%, rgba(107, 127, 94, 0) 72%);
}

.discover-col.is-caution::before {
  background: radial-gradient(circle, rgba(189, 106, 60, 0.5) 0%, rgba(189, 106, 60, 0.12) 45%, rgba(189, 106, 60, 0) 72%);
}

.discover-col.is-positive:hover {
  border-color: var(--c-moss-light);
}

.discover-col.is-caution:hover {
  border-color: var(--c-clay);
}

.discover-col:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(35, 34, 28, 0.18);
}

.discover-col:hover::before {
  opacity: 1;
}

.discover-col.is-positive {
  border-top: 4px solid var(--c-moss-light);
}

.discover-col.is-caution {
  border-top: 4px solid var(--c-clay);
}

@media (hover: none) {
  .discover-col::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .discover {
    grid-template-columns: 1fr;
  }
}

/* --- Réassurance --- */
.reassurance {
  position: relative;
  background: linear-gradient(150deg, var(--c-moss) 0%, #2f3b2a 100%);
  color: #eef1ea;
  border-radius: var(--radius-l);
  padding: 52px;
  overflow: hidden;
}

.reassurance::before,
.reassurance::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.reassurance::before {
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  animation: blobFloat 13s ease-in-out infinite;
}

.reassurance::after {
  bottom: -100px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(231,185,140,0.12) 0%, rgba(231,185,140,0) 70%);
  animation: blobFloat 16s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .reassurance::before,
  .reassurance::after {
    animation: none;
  }
}

.reassurance h2 {
  color: #fff;
}

.reassurance ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  position: relative;
}

.reassurance li {
  padding: 8px 10px 8px 34px;
  border-radius: 10px;
  position: relative;
  color: #dfe6d7;
  transition: background 0.25s ease, transform 0.25s ease;
}

.reassurance li:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.reassurance li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  color: #e7b98c;
  font-weight: 700;
}

@media (max-width: 640px) {
  .reassurance {
    padding: 32px 24px;
  }
}

/* --- CTA final --- */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 24px;
  margin: 0 auto;
  max-width: var(--content-width);
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--c-moss-pale) 0%, #f2ded0 100%);
  opacity: 0.5;
  z-index: -1;
}

.final-cta::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: 70%;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 106, 60, 0.12) 0%, rgba(189, 106, 60, 0) 70%);
  transform: translateX(-50%);
  animation: ctaDrift 11s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes ctaDrift {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-46%) translateY(-14px) scale(1.08); }
}

.final-cta h2 {
  margin-bottom: 8px;
}

.final-cta .lede {
  margin: 0 auto 28px;
}

.final-cta .btn-primary {
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.final-cta .btn-primary:hover {
  animation-play-state: paused;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(189, 106, 60, 0.28), 0 0 0 0 rgba(189, 106, 60, 0.28); }
  50% { box-shadow: 0 10px 24px rgba(189, 106, 60, 0.28), 0 0 0 10px rgba(189, 106, 60, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta::after {
    animation: none;
  }

  .final-cta .btn-primary {
    animation: none;
  }
}
