/* ==========================================================================
   Homepage dianemasse.com : DA 2.1 fine
   Chargé uniquement par index.html (media-kit.html garde styles.css seul).
   Tout est scopé sur body.home.
   ========================================================================== */

body.home {
  --ink: #37005B;
  --violet: #9452E7;
  --rose: #ED67B7;
  --orange: #EC6600;
  --grey: #8A7FA0;
  --line: #E6DCF5;
  --shadow-soft: 0 4px 16px rgba(100, 50, 180, 0.10);
  background-color: #F7F6F9;
  background-image:
    linear-gradient(#EFEBF6 1px, transparent 1px),
    linear-gradient(90deg, #EFEBF6 1px, transparent 1px);
  background-size: 40px 40px;
}

body.home h1,
body.home h2,
body.home h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

body.home .k { color: var(--violet); font-weight: 600; }

/* ---------- Nav ---------- */

body.home .nav-inner {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 12px 20px;
}

body.home .nav-links > a,
body.home .has-dropdown > a {
  font-weight: 500;
  color: var(--grey);
  opacity: 1;
}
body.home .nav-links > a:hover,
body.home .has-dropdown:hover > a { color: var(--ink); }

body.home .btn { border-radius: 12px; font-weight: 600; }

body.home .btn-primary {
  background: linear-gradient(90deg, #7B3FF2, #9452E7);
  box-shadow: 0 4px 16px rgba(148, 82, 231, 0.25);
}
body.home .btn-primary:hover { box-shadow: 0 6px 20px rgba(148, 82, 231, 0.35); }

body.home .btn-ghost {
  border: 1px solid var(--line);
  font-weight: 500;
}

/* ---------- Hero (ouvert sur la grille, sans carte) ---------- */

body.home .hero {
  background: none;
  border: none;
  border-radius: 0;
  padding: 56px 8px 40px;
}

body.home .hero-inner { gap: 64px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 20px;
}
.eyebrow i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(148, 82, 231, 0.16);
}

body.home .hero h1 {
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}

body.home .hero-sub { font-size: 17px; color: #5E4A78; opacity: 1; }
body.home .hero-trust { color: var(--grey); opacity: 1; }

body.home .hero-photo {
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

body.home .floating-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}
body.home .floating-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 16%, transparent);
}

/* ---------- Sections ---------- */

body.home .resources,
body.home .articles { padding: 48px 8px 8px; }

body.home .section-head { max-width: 640px; margin-bottom: 32px; }
body.home .section-head h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.04em; }
body.home .section-head p { color: var(--grey); opacity: 1; font-size: 16px; }

/* ---------- Cartes ressources ---------- */

.res-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}
.res-card { grid-column: span 2; }
.res-card:nth-child(n+4) { grid-column: span 3; }

.res-card {
  display: flex;
  background: #fff;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.res-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(100, 50, 180, 0.16); }


.res-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--violet);
  padding: 5px 12px;
  border-radius: 8px;
}

.res-shot {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.res-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.res-card h3 { font-size: 26px; line-height: 1.12; letter-spacing: -0.02em; }
.res-card p { font-size: 15px; color: #5E4A78; flex: 1; }

.res-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--violet);
  text-decoration: underline transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.15s ease;
}
.res-link:hover { text-decoration-color: currentColor; }

/* ---------- Articles ---------- */

body.home .articles-grid { gap: 24px; }

body.home .article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: visible;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.home .article-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(100, 50, 180, 0.16); }

.art-shot {
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 6px;
}
.art-shot img { width: 100%; height: 100%; object-fit: cover; }

.article-card h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.article-card p { font-size: 14px; color: var(--grey); flex: 1; }

/* ---------- Bandeau newsletter ---------- */

body.home .closing-cta {
  background: #F3ECFD;
  border: 1.5px dashed #C9A9F3;
  border-radius: 16px;
  padding: 56px 32px;
}
body.home .closing-punchline { font-size: 40px; line-height: 1.08; letter-spacing: -0.04em; }
body.home .closing-fineprint { color: var(--grey); opacity: 1; }
body.home .closing-embed iframe { border-radius: 12px; box-shadow: var(--shadow-soft); }

/* ---------- Footer ---------- */

body.home .footer-inner { border-top: none; padding-top: 0; }
body.home .footer-identity,
body.home .footer-links a { color: var(--grey); font-weight: 500; opacity: 1; }
body.home .footer-links a:hover { color: var(--ink); }
body.home .footer-copy { color: var(--grey); opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body.home .hero { padding: 32px 0 24px; }
  body.home .hero h1 { font-size: 38px; }
  body.home .floating-pill { display: none; }
  body.home .section-head h2 { font-size: 32px; }
  body.home .closing-punchline { font-size: 28px; }
  body.home .resources,
  body.home .articles { padding: 32px 0 8px; }
  .res-grid { grid-template-columns: 1fr; }
  .res-card, .res-card:nth-child(n+4) { grid-column: auto; }
  .res-card h3 { font-size: 24px; }
  body.home .closing-cta { padding: 40px 20px; }
}
