@import "../root.css";

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero content avec flexbox */
.hero-content {
  flex: 1;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--spacing-md);
}

/* Hero intro avec flexbox pour centrer parfaitement */
.hero-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-intro h1 {
  font-family: var(--font-primary);
  /* Augmenter encore davantage la taille du titre principal */
  font-size: calc(var(--font-size-xxlarge) * 1.2); /* 20% plus grand */
  font-weight: 300;
  line-height: 1.2;
}

/* Styles pour la section des mentions légales */
.legal-section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl) 0;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.legal-title {
  font-family: var(--font-tertiary);
  text-transform: uppercase;
  font-size: calc(var(--font-size-medium) * 1.25);
  font-weight: 400;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  position: relative;
}

.legal-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 1px;
  background-color: var(--color-primary);
}

.legal-content {
  font-family: var(--font-tertiary);
  margin-bottom: var(--spacing-xl);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
  line-height: 2;
  font-size: 1.1rem; 
}

.legal-item {
  margin-bottom: var(--spacing-lg);
}

.legal-bold {
  font-weight: 500;
  /* Augmenter légèrement la taille du texte en gras */
  font-size: 1.15rem;
}

/* Pour le lien de retour */
.return-link {
  display: inline-block;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-xs) var(--spacing-md);
  border: var(--border-regular);
  text-decoration: none;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-button);
  transition: var(--transition-fast);
  /* Augmenter la taille du texte du lien */
  font-size: 1.1rem;
}

.return-link:hover {
  background-color: var(--color-text);
  color: var(--color-light);
}

.return-link::after {
  content: "+";
  margin-left: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {

  .hero-intro h1 {
    /* Ajuster la taille du titre sur mobile */
    font-size: calc(
      var(--font-size-xxlarge) * 0.8
    ); /* Légèrement plus grand que l'original sur mobile */
  }

  .legal-content p {
    /* Maintenir un texte lisible sur mobile */
    font-size: 1rem;
    line-height: 1.8;
  }

  .legal-title {
    font-size: calc(
      var(--font-size-medium) * 1.1
    ); /* Légère augmentation sur mobile */
  }
}

/* Ajouter un media query pour les grands écrans pour augmenter encore plus les textes */
@media (min-width: 1200px) {
  .hero-intro h1 {
    font-size: calc(
      var(--font-size-xxlarge) * 1.3
    ); /* 30% plus grand sur grands écrans */
  }

  .legal-content p {
    font-size: 1.2rem;
  }

  .legal-title {
    font-size: calc(
      var(--font-size-medium) * 1.4
    ); /* 40% plus grand sur grands écrans */
  }
}
