/* =========================================================
   TRAFFIQ — OPTIMISATIONS HOMEPAGE
   SEO, ressources, fondateur et responsive

   Chargé après landing.css
========================================================= */


/* =========================================================
   HERO — LIEN VERS LES GUIDES
========================================================= */

.hero__resource-link {
  margin: 18px 0 16px;
}

.hero__resource-link a {
  color: var(--traffiq-mint);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__resource-link a:hover {
  color: var(--traffiq-white);
}


/* =========================================================
   MENTIONS DES DONNÉES DE DÉMONSTRATION
========================================================= */

.home-mockup-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.home-status-note {
  margin: 16px 0 0;
  color: var(--traffiq-text-muted);
  font-size: 11px;
  text-align: center;
}


/* =========================================================
   PROMESSE FONCTIONNALITÉS
========================================================= */

.home-features-promise {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   CORRECTION — SECTION STATUS
   Vos campagnes en un coup d'œil

   Le cercle décoratif reste derrière le contenu.
========================================================= */

.status-section {
  position: relative;
  isolation: isolate;
}

/* Cercle décoratif en arrière-plan */

.status-section .status-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* Ensemble du contenu au premier plan */

.status-section > .container {
  position: relative;
  z-index: 2;
}

/* Sécurité supplémentaire pour le titre */

.status-section .section-heading {
  position: relative;
  z-index: 3;
}


/* =========================================================
   FAQ — LIENS INTERNES
========================================================= */

.faq-answer a[href^="/guides/"] {
  color: var(--traffiq-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   RESSOURCES GOOGLE ADS
========================================================= */

.home-guides {
  background: var(--traffiq-bg);
}

.home-guides__heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.home-guides__heading h2,
.home-founder h2 {
  margin-bottom: 18px;
  color: var(--traffiq-deep-teal);
  font-size: clamp(2rem, 3.7vw, 2.9rem);
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.home-guides__heading > p {
  color: var(--traffiq-text-muted);
  max-width: 670px;
}

.home-guides__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 24px;
  align-items: stretch;
}


/* =========================================================
   RESSOURCES — ARTICLE À LA UNE
========================================================= */

.home-guide-feature,
.home-guides__aside {
  min-width: 0;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius-lg);
}

.home-guide-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--traffiq-white);
  border: 1px solid var(--traffiq-border);
  box-shadow: var(--shadow-sm);
}

.home-guide-feature__category,
.home-guides__aside-label {
  font-size: 11px;
  letter-spacing: 0.075em;
  font-weight: 700;
  text-transform: uppercase;
}

.home-guide-feature__category {
  margin-bottom: 20px;
  color: var(--traffiq-teal);
}

.home-guide-feature h3,
.home-guides__aside h3 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.home-guide-feature > p {
  color: var(--traffiq-text-muted);
  font-size: 14px;
}

.home-guide-feature__link {
  display: inline-flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--traffiq-teal);
  font-size: 14px;
  font-weight: 700;
}

.home-guide-feature__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   RESSOURCES — CENTRE DE GUIDES
========================================================= */

.home-guides__aside {
  background: var(--traffiq-deep-teal);
  color: var(--traffiq-white);
}

.home-guides__aside-label {
  display: block;
  margin-bottom: 20px;
  color: var(--traffiq-mint);
}

.home-guides__aside p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.home-guides__aside .button {
  margin-top: 12px;
  color: var(--traffiq-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.home-guides__aside .button:hover {
  background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   FONDATEUR — SECTION
========================================================= */

.home-founder {
  background: var(--traffiq-white);
}

.home-founder__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.home-founder__text p {
  margin-bottom: 20px;
  color: var(--traffiq-text-muted);
  line-height: 1.85;
}

.home-founder__text strong {
  color: var(--traffiq-deep-teal);
}


/* =========================================================
   FONDATEUR — PHOTO
========================================================= */

.home-founder__portrait {
  display: block;
  width: min(100%, 360px);
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #edf5f2;
  box-shadow: var(--shadow-sm);
}

.home-founder__portrait img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   FONDATEUR — LIENS
========================================================= */

.home-founder__text a:not(.home-founder__link) {
  color: var(--traffiq-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0, 78, 100, 0.35);
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.home-founder__text a:not(.home-founder__link):hover {
  color: var(--traffiq-deep-teal);
  text-decoration-color: currentColor;
}

.home-founder__link {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--traffiq-teal);
  font-weight: 700;
}

.home-founder__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   NAVIGATION DESKTOP
========================================================= */

@media (min-width: 1025px) {

  .site-header .main-nav {
    gap: clamp(12px, 1.5vw, 24px);
  }

}


/* =========================================================
   RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 850px) {

  .home-guides__grid,
  .home-founder__layout {
    grid-template-columns: 1fr;
  }

  .home-founder__portrait {
    width: min(100%, 320px);
    margin-top: 24px;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

  .home-guides__heading {
    margin-bottom: 28px;
  }

  .home-guide-feature,
  .home-guides__aside {
    padding: 28px 24px;
  }

  .home-guide-feature__link {
    margin-top: 6px;
  }

  .home-mockup-note {
    font-size: 10px;
  }

  .home-founder__portrait {
    width: min(100%, 300px);
    margin-top: 22px;
  }

}
