/* =========================================================
   HOME SST — version fine, sobre, moins arrondie
   Fichier : /assets/css/pages/home.css
========================================================= */

.home-page {
  --home-green: #0aa36a;
  --home-green-dark: #06784f;
  --home-green-deep: #064e3b;
  --home-green-soft: rgba(10, 163, 106, .08);

  --home-text: #0f172a;
  --home-muted: #526173;
  --home-bg: #f7f9fb;
  --home-card: #ffffff;

  --home-border: rgba(15, 23, 42, .10);
  --home-border-strong: rgba(15, 23, 42, .16);

  --home-radius-sm: 8px;
  --home-radius: 12px;
  --home-radius-lg: 16px;

  --home-shadow: 0 12px 34px rgba(15, 23, 42, .07);
  --home-shadow-soft: 0 8px 22px rgba(15, 23, 42, .055);

  color: var(--home-text);
  background: var(--home-bg);
}

/* HERO */

.home-hero {
  position: relative;
  padding: 42px 0 34px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 260px at 14% 0%, rgba(10, 163, 106, .10), transparent 60%),
    radial-gradient(620px 240px at 92% 0%, rgba(10, 163, 106, .07), transparent 58%);
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  align-items: stretch;
}

/* BLOCS PRINCIPAUX */

.home-hero-main,
.next-session-card,
.intra-card,
.objectives-card,
.final-cta-card {
  background: var(--home-card);
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow-soft);
}

.home-hero-main {
  border-radius: var(--home-radius-lg);
  padding: 32px;
  overflow: hidden;
}

.home-eyebrow,
.section-kicker,
.next-session-label,
.intra-label,
.audience-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--home-radius-sm);
  color: var(--home-green-deep);
  background: var(--home-green-soft);
  border: 1px solid rgba(10, 163, 106, .18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.home-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-green);
}

.home-hero h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1;
  letter-spacing: -1.8px;
  color: var(--home-text);
}

.home-hero h1 span {
  display: block;
  margin-top: 6px;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.08;
  color: #1b334c;
  font-weight: 700;
}

.home-hero-lead {
  max-width: 760px;
  margin: 0;
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.7;
}

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

/* LIGNE DE CONFIANCE */

.home-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.home-trust-item {
  padding: 13px 14px;
  border-radius: var(--home-radius);
  background: #fbfcfd;
  border: 1px solid var(--home-border);
}

.home-trust-item strong {
  display: block;
  color: var(--home-text);
  font-size: 14px;
  margin-bottom: 3px;
}

.home-trust-item span {
  display: block;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* IMAGE */

.home-hero-image {
  margin-top: 24px;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--home-border);
  background: #e5e7eb;
}

.home-hero-image img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* PANNEAU DROIT */

.home-hero-panel {
  display: grid;
  gap: 16px;
}

.next-session-card,
.intra-card {
  border-radius: var(--home-radius-lg);
  padding: 20px;
}

.next-session-card {
  min-height: 348px;
}

.next-session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.next-session-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: var(--home-radius-sm);
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 800;
}

.next-session-card h2,
.intra-card h2,
.objectives-card h2,
.final-cta-card h2 {
  margin: 0;
  color: var(--home-text);
  letter-spacing: -.35px;
}

.next-session-card h2 {
  font-size: 24px;
  line-height: 1.2;
}

.next-session-card p,
.intra-card p,
.objectives-card p,
.final-cta-card p,
.audience-card p {
  color: var(--home-muted);
  line-height: 1.62;
}

.next-session-location {
  margin: 9px 0 0;
}

/* DÉTAILS SESSION */

.session-details {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.session-details div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--home-radius);
  background: #f8fafc;
  border: 1px solid var(--home-border);
}

.session-details dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.session-details dd {
  margin: 0;
  color: var(--home-text);
  font-weight: 750;
}

/* BADGES */

.home-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  border-radius: var(--home-radius-sm);
  font-size: 12px;
  font-weight: 800;
}

.home-badge-full {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.home-badge-available {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.next-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* CARTE INTRA */

.intra-card {
  display: grid;
  gap: 15px;
  background:
    linear-gradient(180deg, #ffffff, #fbfefd);
}

.intra-card h2 {
  margin-top: 11px;
  font-size: 23px;
}

.intra-card p {
  margin: 9px 0 0;
}

.intra-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intra-pills span {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: var(--home-radius-sm);
  color: var(--home-green-deep);
  background: rgba(10, 163, 106, .07);
  border: 1px solid rgba(10, 163, 106, .16);
  font-size: 12px;
  font-weight: 800;
}

.intra-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border-radius: var(--home-radius);
  color: #fff;
  background: linear-gradient(135deg, var(--home-green), var(--home-green-dark));
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(10, 163, 106, .18);
}

.intra-link span {
  font-size: 18px;
}

/* SECTIONS */

.home-section {
  padding: 54px 0;
}

.home-section-white {
  background: #ffffff;
}

.home-section-soft {
  background: #f7f9fb;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.section-heading h2 {
  margin: 13px 0 9px;
  font-size: clamp(28px, 3.6vw, 39px);
  line-height: 1.12;
  letter-spacing: -.8px;
}

.section-heading p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.65;
  font-size: 16px;
}

/* BÉNÉFICES */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  min-height: 205px;
  padding: 22px;
  border-radius: var(--home-radius-lg);
  background: #fff;
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow-soft);
  transition:
    transform .14s ease,
    border-color .14s ease,
    box-shadow .14s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 163, 106, .24);
  box-shadow: var(--home-shadow);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--home-radius-sm);
  color: var(--home-green-deep);
  background: var(--home-green-soft);
  border: 1px solid rgba(10, 163, 106, .18);
  font-weight: 900;
  font-size: 13px;
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--home-text);
}

.benefit-card p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.62;
}

/* OBJECTIFS */

.objectives-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 16px;
  padding: 24px;
  border-radius: var(--home-radius-lg);
}

.objectives-content {
  padding: 6px;
}

.objectives-card h2 {
  margin-top: 13px;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
}

.objectives-card p {
  margin: 11px 0 0;
}

.home-checklist {
  display: grid;
  gap: 9px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.home-checklist li {
  position: relative;
  padding: 13px 13px 13px 41px;
  border-radius: var(--home-radius);
  background: #f8fafc;
  border: 1px solid var(--home-border);
  color: var(--home-text);
  font-weight: 700;
}

.home-checklist li::before {
  content: "✓";
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: var(--home-radius-sm);
  color: #fff;
  background: var(--home-green);
  font-size: 12px;
  font-weight: 900;
}

.audience-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-radius: var(--home-radius-lg);
  background: #fbfefd;
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow-soft);
}

.audience-card h3 {
  margin: 13px 0 8px;
  font-size: 27px;
  color: var(--home-text);
}

.audience-card p {
  margin: 0;
}

.audience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}

/* CTA FINAL */

.home-final-cta {
  padding: 52px 0 68px;
  background: #ffffff;
}

.final-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border-radius: var(--home-radius-lg);
  background:
    linear-gradient(135deg, #ffffff, #f7fffb);
}

.final-cta-card h2 {
  margin-top: 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.13;
}

.final-cta-card p {
  margin: 9px 0 0;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 300px;
}

/* BOUTONS HOME */

.home-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: var(--home-radius-sm);
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease,
    border-color .12s ease;
}

.home-page .btn:hover {
  transform: translateY(-1px);
}

.home-page .btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--home-green), var(--home-green-dark));
  border-color: rgba(6, 120, 79, .22);
  box-shadow: 0 10px 22px rgba(10, 163, 106, .18);
}

.home-page .btn-secondary {
  color: var(--home-text) !important;
  background: #ffffff;
  border-color: var(--home-border-strong);
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .home-hero-grid,
  .objectives-card {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 28px;
  }

  .home-hero-main {
    padding: 26px;
  }

  .home-trust-row,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .next-session-card {
    min-height: auto;
  }

  .final-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta-actions {
    min-width: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 20px 0 28px;
  }

  .home-hero-main,
  .next-session-card,
  .intra-card,
  .objectives-card,
  .final-cta-card,
  .benefit-card,
  .audience-card {
    border-radius: var(--home-radius);
    padding: 18px;
  }

  .home-hero h1 {
    letter-spacing: -1.2px;
  }

  .home-hero-lead {
    font-size: 16px;
  }

  .home-hero-image img {
    height: 200px;
  }

  .home-hero-actions,
  .next-session-actions,
  .audience-actions,
  .final-cta-actions {
    width: 100%;
  }

  .home-page .btn {
    width: 100%;
  }

  .next-session-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-section {
    padding: 40px 0;
  }
}