/* =========================
   VARIABLES DOMUTRACK
   ========================= */
:root {
  --vert-sapin: #1B5E20;
  --beige-premium: #F7F5F0;
  --blanc-chaud: #FFFFFF;
  --texte-principal: #1A1A1A;
  --texte-secondaire: #6B6B6B;
  --ombre-douce: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Inter, Helvetica, Arial, sans-serif;
  background-color: var(--beige-premium);
  color: var(--texte-principal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================
   LAYOUT GLOBAL
   ========================= */
header,
main,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   HEADER
   ========================= */
header {
  padding: 24px 0 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-left: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vert-sapin);
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--texte-secondaire);
}

.logo {
  height: 100px;
  width: auto;
  border-radius: 10px;
}

/* =========================
   HERO
   ========================= */
main section:first-of-type {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--beige-premium) 100%);
  border-radius: 24px;
  padding: 56px 64px;
  margin-top: 24px;
  margin-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.05rem;
  max-width: 680px;
  color: var(--texte-secondaire);
  margin-bottom: 24px;
}

.hero-text a {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--vert-sapin);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(27, 94, 32, 0.25);
}

/* =========================
   HERO MOCKUPS – CORRIGÉ
   ========================= */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockups {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.mockup {
  width: 240px;
  max-width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

/* Dashboard DEVANT */
.mockup.main {
  position: relative;
  z-index: 2;
}

/* Écran secondaire DERRIÈRE */
.mockup.secondary {
  position: absolute;
  top: 36px;
  right: -40px;
  z-index: 1;
  transform: scale(0.9);
  opacity: 0.85;
}


/* =========================
   SECTIONS (CARTES)
   ========================= */
main section:not(:first-of-type) {
  background-color: var(--blanc-chaud);
  border-radius: 20px;
  padding: 64px;
  margin-bottom: 48px;
  box-shadow: var(--ombre-douce);
}

h2 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

p, ul {
  max-width: 680px;
}

ul {
  padding-left: 20px;
}

/* =========================
   APP MOCKUPS
   ========================= */
.app-mockups {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.app-mockups figure {
  max-width: 200px;
  margin: 0;
  text-align: center;
}

.app-mockups img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* =========================
   RÉASSURANCE
   ========================= */
.reassurance {
  background-color: #FBFBF8;
}

/* =========================
   CTA FINAL
   ========================= */
.cta-final {
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--beige-premium) 100%);
}

.cta-button {
  display: inline-block;
  padding: 16px 36px;
  background-color: var(--vert-sapin);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

/* =========================
   MOBILE OPTIMISATION (CLÉ)
   ========================= */
@media (max-width: 768px) {

  header,
  main,
  footer {
    padding: 0 16px;
  }

  .logo {
    height: 72px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  main section:first-of-type {
    padding: 32px 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .mockup.secondary {
    display: none;
  }

  main section:not(:first-of-type) {
    padding: 32px 20px;
  }

  .app-mockups {
    justify-content: center;
    gap: 24px;
  }

  .cta-button {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================
   AJUSTEMENTS MOBILE – HERO
   ========================= */
@media (max-width: 768px) {

  /* Hero plus compact */
  main section:first-of-type {
    padding: 40px 24px 24px;
    margin-bottom: 48px;
  }

  .hero-text p {
    margin-bottom: 20px;
  }

  /* CTA un peu plus proche du mockup */
  .hero-text a {
    margin-bottom: 16px;
  }

  /* Mockup principal plus visible */
  .hero-mockups {
    margin-top: 8px;
  }

  .mockup.main {
    width: 280px;        /* + impact */
  }
}

@media (max-width: 768px) {

  .app-mockups {
    flex-direction: column;
    align-items: center;
    gap: 40px; /* plus d’air */
  }

  .app-mockups figure {
    max-width: 240px;
  }

  .app-mockups img {
    height: 340px; /* plus lisible */
  }
}

/* =========================
   HERO – MOBILE FINAL
   ========================= */
@media (max-width: 768px) {

  /* Hero plus compact */
  main section:first-of-type {
    padding: 32px 20px 16px;
    margin-bottom: 40px;
  }

  /* CTA moins envahissant */
  .hero-text a {
    margin-bottom: 8px;
  }

  /* Zone mockup */
  .hero-visual {
    margin-top: 0;
    display: flex;
    justify-content: center;
  }

  /* On garde UN mockup */
  .mockup.secondary {
    display: none;
  }

  .mockup.main {
    width: 300px;          /* plus impactant */
    margin-top: -12px;     /* le téléphone "remonte" */
  }
}

