/* =================================================================
   HOME A4 PAYSAGE STRICT — Approche définitive
   Le hero est un GRID :
     - ligne 1 (1fr)   : contenu central qui s'adapte
     - ligne 2 (auto)  : trust bar épinglée en bas, ne se fait jamais couper
   ================================================================= */

/* === DESKTOP : la home occupe 1 écran, MAIS le footer reste accessible
       en scrollant un peu. Donc on garde overflow:auto et on s'assure que
       le hero prend toute la première vue. === */
@media (min-width: 1024px) {
  body.page-home-a4 {
    overflow-y: auto;     /* scroll vertical autorisé pour atteindre le footer */
    overflow-x: hidden;
    /* PLUS de height: 100vh ni display:none sur le footer */
  }
  /* Le footer reste visible (par défaut). On le laisse là. */
}

/* === HERO A4 : flexbox vertical (ENFIN simple)
   Le parent est en flex column : les 3 enfants s'empilent verticalement.
   Chaque enfant respecte SON propre comportement (notamment .container) */
.hero--a4 {
  min-height: calc(100vh - 120px); /* topbar 40 + header 80 */
  display: flex;
  flex-direction: column;
  padding: 0;
}

@media (min-width: 1024px) {
  .hero--a4 {
    min-height: calc(100vh - 120px);
  }
}

/* La partie centrale (texte + schéma) prend l'espace disponible (flex: 1)
   et utilise .container parent (1200px centré automatique grâce à flex column + container margin:0 auto) */
.hero--a4 .hero__inner--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  /* PAS de width:100% ni de !important : .container fait 1200px centré */
}

@media (max-width: 1023px) {
  .hero--a4 .hero__inner--split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* === Colonne texte === */
.hero--a4 .hero__text {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero--a4 .hero__label {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  background: rgba(61, 200, 198, 0.15);
  border: 1px solid rgba(61, 200, 198, 0.3);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  margin-bottom: 0.7rem;
}

.hero--a4 .hero__title {
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero--a4 .hero__tagline {
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  margin: 0 0 0.9rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--color-accent);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.4;
}

.hero--a4 .hero__subtitle {
  display: none;
}

/* === Boutons compacts === */
.hero--a4 .hero__actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.hero--a4 .btn--large {
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
}

/* === Schéma SVG === */
.hero--a4 .hero__schema {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.hero--a4 .schema-svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  max-width: 460px;
  object-fit: contain;
}

/* =================================================================
   4 PORTES D'ENTRÉE (entry cards)
   ================================================================= */

.entry-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0.9rem 0 0;
}

@media (max-width: 640px) {
  .entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.entry-card {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(61, 200, 198, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.55rem;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.entry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 200, 198, 0.0), rgba(61, 200, 198, 0.12));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.entry-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(61, 200, 198, 0.18);
  color: white;
}

.entry-card:hover::before {
  opacity: 1;
}

.entry-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.entry-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.entry-card__sub {
  font-size: 0.68rem;
  color: rgba(194, 208, 207, 0.7);
  line-height: 1.25;
  font-weight: 400;
}

/* =================================================================
   TRUST BAR MINI — épinglée en bas du hero (ligne 2 du grid)
   GRÂCE AU GRID PARENT, elle est TOUJOURS visible
   ================================================================= */

.trust-bar-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem 0.7rem;
  font-size: 0.78rem;
  color: rgba(194, 208, 207, 0.85);
  border-top: 1px solid rgba(61, 200, 198, 0.15);
  background: rgba(0, 0, 0, 0.1);
  /* grid-row 2 implicite — placement automatique */
}

.trust-bar-mini strong {
  color: var(--color-accent);
  font-weight: 600;
}

.trust-bar-mini .sep {
  color: rgba(61, 200, 198, 0.3);
  font-size: 0.9rem;
}

/* =================================================================
   MOBILE / TABLETTE
   ================================================================= */

@media (max-width: 1023px) {
  body.page-home-a4 {
    overflow: auto;
    height: auto;
  }
  body.page-home-a4 .footer {
    display: block;
  }
  .hero--a4 {
    min-height: auto;
    height: auto;
    max-height: none;
    grid-template-rows: auto auto;
  }
  .hero--a4 .hero__inner--split {
    padding: 1.5rem 0 1rem;
    overflow: visible;
  }
  .hero--a4 .hero__title {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .trust-bar-mini {
    font-size: 0.7rem;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
  }
}

/* =================================================================
   AJUSTEMENTS ÉCRANS COURTS (laptops 13"/14", 1080p avec barre)
   ================================================================= */

@media (min-width: 1024px) and (max-height: 900px) {
  .hero--a4 .hero__title {
    font-size: 1.7rem;
  }
  .hero--a4 .hero__tagline {
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
  }
  .entry-card {
    padding: 0.5rem 0.4rem;
  }
  .entry-card__icon {
    font-size: 1.2rem;
  }
  .entry-card__title {
    font-size: 0.78rem;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  .hero--a4 .hero__inner--split {
    gap: 1rem;
    padding-top: 0.5rem;
  }
  .hero--a4 .hero__label {
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
  }
  .hero--a4 .hero__title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
  }
  .hero--a4 .hero__tagline {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    padding-left: 0.6rem;
  }
  .entry-cards {
    margin-top: 0.5rem;
    gap: 0.4rem;
  }
  .entry-card {
    padding: 0.4rem 0.35rem;
  }
  .entry-card__icon {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
  }
  .entry-card__title {
    font-size: 0.72rem;
  }
  .entry-card__sub {
    font-size: 0.6rem;
  }
  .hero--a4 .hero__actions {
    margin-top: 0.35rem;
  }
  .hero--a4 .btn--large {
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
  }
  .trust-bar-mini {
    padding: 0.35rem 0.8rem;
    font-size: 0.68rem;
    gap: 0.5rem;
  }
}
