/* =====================================================================
   LE CARNET DU CHEF — Accueil uniquement
   Direction éditoriale inspirée du croquis utilisateur.
   Aucun style ici ne cible les autres pages.
   ===================================================================== */

.home-page {
  --home-ink: #2f3028;
  --home-paper: #fbf8f2;
  --home-sage-wash: #eef1e9;
  --home-gold-soft: rgba(201, 166, 107, 0.22);
  background: var(--home-paper);
}

.home-page .site-header {
  background: rgba(251, 248, 242, 0.9);
  border-bottom-color: rgba(61, 74, 52, 0.12);
}

.home-page .site-header .container {
  max-width: 1240px;
}

.home-page .logo {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.home-page .nav-links {
  gap: clamp(1.25rem, 2vw, 2rem);
}

.home-page .nav-links > a:not(.btn) {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.home-page .nav-cta .btn {
  min-height: 44px;
  padding: 0.68rem 1.15rem;
  border-radius: 999px;
}

/* Hero : composition texte + image, plutôt qu'une photo pleine hauteur. */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.25rem, 6vw, 5.5rem);
  background:
    radial-gradient(circle at 80% 16%, rgba(201, 166, 107, 0.13), transparent 30%),
    linear-gradient(135deg, #fbf8f2 0%, #f7f3ec 62%, #eef1e9 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  width: 26rem;
  height: 26rem;
  right: -13rem;
  top: -13rem;
  border: 1px solid rgba(107, 122, 94, 0.14);
  border-radius: 50%;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.home-hero-copy {
  max-width: 650px;
  padding-left: clamp(0rem, 1.5vw, 1.25rem);
}

.home-hero-copy .eyebrow {
  margin-bottom: 1.15rem;
}

.home-hero-copy h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.75rem, 5.1vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.home-hero-copy .lead {
  max-width: 52ch;
  margin-bottom: 1.8rem;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  color: var(--color-text-muted);
}

.home-hero .hero-actions {
  gap: 0.8rem;
}

.home-hero .btn,
.home-editorial-card .btn,
.home-cta .btn {
  border-radius: 999px;
  padding-inline: 1.45rem;
  box-shadow: 0 8px 20px rgba(61, 74, 52, 0.08);
}

.home-hero .btn-gold {
  box-shadow: 0 10px 24px rgba(201, 166, 107, 0.25);
}

.home-hero-visual {
  position: relative;
  min-height: clamp(390px, 45vw, 610px);
  border: 1px solid rgba(61, 74, 52, 0.22);
  border-radius: 28px 28px 88px 28px;
  background-color: var(--color-cream);
  background-position: center;
  background-size: cover;
  box-shadow: 18px 20px 0 rgba(169, 183, 154, 0.2), 0 28px 55px rgba(46, 42, 34, 0.12);
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 20px 20px 72px 20px;
  pointer-events: none;
}

/* Bandeau : les 4 repères courts du croquis restent très lisibles. */
.home-reassurance {
  position: relative;
  z-index: 2;
  background: var(--color-sage-dark);
  border: 0;
  color: #fff;
}

.home-reassurance ul {
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.home-reassurance li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255,255,255,0.94);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-reassurance li span {
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  display: inline-block;
}

/* Prestations : trois cartes bien identifiées, plus éditoriales que génériques. */
.home-services {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.home-services .section-head,
.home-editorial .section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.home-services .section-head h2,
.home-editorial .section-head h2 {
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  letter-spacing: -0.025em;
}

.home-service-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.home-service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  padding-left: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(61, 74, 52, 0.13);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(61, 74, 52, 0.07);
}

.home-service-card::before {
  left: 0;
  top: 22px;
  bottom: 22px;
  border-left: 3px solid var(--color-gold);
  border-radius: 99px;
}

.home-service-card .card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.15rem;
  background: var(--home-sage-wash);
  font-size: 1.25rem;
}

.home-card-kicker {
  margin-bottom: 0.45rem;
  color: var(--color-gold) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-service-card h3 {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  margin-bottom: 0.7rem;
}

.home-service-card .muted {
  flex: 1;
  line-height: 1.7;
}

.home-service-card .btn {
  align-self: flex-start;
  margin-top: 0.8rem;
}

/* Offre adaptée : un seul grand bloc, comme demandé dans le croquis. */
.home-audience {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.home-audience-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(61, 74, 52, 0.12);
  border-radius: 28px;
  background: rgba(253, 252, 250, 0.76);
  box-shadow: 0 22px 60px rgba(61, 74, 52, 0.07);
}

.home-audience-intro h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.025em;
}

.home-audience-intro > p:last-child {
  max-width: 34ch;
  color: var(--color-text-muted);
}

.home-audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.home-audience-list article {
  min-height: 160px;
  padding: 1.35rem 1.45rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.home-audience-list article > span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--color-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-audience-list h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.home-audience-list p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Trois blocs éditoriaux : ambition + conversion + événement.
   Ils remplacent la succession de grosses sections redondantes. */
.home-editorial {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: auto auto;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.home-editorial-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(61, 74, 52, 0.12);
  border-radius: 22px;
  background: var(--color-white);
  box-shadow: 0 16px 42px rgba(61, 74, 52, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(61, 74, 52, 0.11);
}

.home-editorial-card--large {
  grid-row: span 2;
}

.home-editorial-card--image {
  min-height: 300px;
}

.home-editorial-image {
  min-height: 250px;
  flex: 0 0 250px;
  background: var(--color-cream) center / cover no-repeat;
}

.home-editorial-card--large .home-editorial-image {
  min-height: 300px;
  flex-basis: 300px;
}

.home-editorial-content {
  position: relative;
  flex: 1;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.home-editorial-card--large .home-editorial-content {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.home-editorial-content h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
}

.home-editorial-content p:not(.home-card-kicker) {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  color: var(--color-sage-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.home-text-link b {
  color: var(--color-gold);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.home-editorial-card:hover .home-text-link b {
  transform: translateX(4px);
}

.home-editorial-card .hero-actions {
  margin-top: 1rem;
}

/* CTA final : simple, direct, premium. Le rouge du croquis est traité comme
   annotation et non comme nouvelle couleur de marque. */
.home-cta {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 166, 107, 0.14), transparent 28%),
    var(--color-sage-dark);
}

.home-cta .eyebrow {
  color: var(--color-gold);
}

.home-cta .eyebrow::before {
  background: rgba(255,255,255,0.65);
}

.home-cta h2 {
  max-width: 850px;
  margin-inline: auto;
  font-size: clamp(2.15rem, 4.5vw, 3.7rem);
  letter-spacing: -0.03em;
}

.home-cta p:not(.eyebrow) {
  color: rgba(255,255,255,0.82);
}

.home-cta .actions {
  margin-top: 1.5rem;
}

.home-cta .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.72);
}

/* Réduction du mouvement : cohérent avec le script existant. */
@media (prefers-reduced-motion: reduce) {
  .home-editorial-card,
  .home-text-link b {
    transition: none;
  }
}

/* Tablette */
@media (max-width: 960px) {
  .home-hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 2.5rem;
  }

  .home-hero-copy h1 {
    max-width: 13ch;
  }

  .home-reassurance ul {
    justify-content: space-around;
  }

  .home-audience-panel {
    grid-template-columns: 1fr;
  }

  .home-audience-intro > p:last-child {
    max-width: 55ch;
  }
}

/* Mobile large */
@media (max-width: 760px) {
  .home-hero {
    padding-top: 3rem;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    padding-left: 0;
  }

  .home-hero-copy h1 {
    max-width: 14ch;
  }

  .home-hero-visual {
    min-height: min(78vw, 480px);
    box-shadow: 10px 12px 0 rgba(169, 183, 154, 0.2), 0 20px 40px rgba(46, 42, 34, 0.1);
  }

  .home-reassurance ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
  }

  .home-reassurance li {
    min-height: 58px;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 0.72rem;
  }

  .home-reassurance li:nth-child(2n) {
    border-right: 0;
  }

  .home-service-card {
    min-height: 285px;
  }

  .home-audience-list {
    grid-template-columns: 1fr;
  }

  .home-audience-list article {
    min-height: auto;
  }

  .home-editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .home-editorial-card--large {
    grid-row: auto;
  }

  .home-editorial-card,
  .home-editorial-card--image {
    min-height: 0;
  }

  .home-editorial-image,
  .home-editorial-card--large .home-editorial-image {
    min-height: 230px;
    flex-basis: 230px;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .home-page .container {
    padding-inline: 1.1rem;
  }

  .home-hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .home-hero .hero-actions,
  .home-editorial-card .hero-actions,
  .home-cta .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero .btn,
  .home-editorial-card .btn,
  .home-cta .btn {
    width: 100%;
  }

  .home-reassurance li {
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.025em;
  }

  .home-reassurance li span {
    width: 14px;
  }

  .home-service-card {
    padding: 1.35rem;
    padding-left: 1.35rem;
  }

  .home-audience-panel {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .home-audience-list article {
    padding: 1.1rem;
  }
}
