/* ========================================
   CSS ACCUEIL - Page d'accueil
   La Terre en tête
   ======================================== */

/* Design pour toute la page */
body {
  background-color: #AADCF2;
  margin: 0;
  font-family: Calibri, Arial, sans-serif;
  font-size: 100%;
}

h1 {
  font-size: 2.5em;
  margin-left: 5%;
  margin-right: 5%;
  font-weight: 700;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.0em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

p {
  font-size: 1.0em;
}

a {
  text-decoration: none;
}


/* ========================================
   BOUTONS NAVIGATION IMAGE
   ======================================== */

.navim {
  position: relative;
  text-align: center;
  width: 90%;
  aspect-ratio: 4/3;
  background-attachment: scroll;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50px;
  margin: auto;
}

.navim .accplus {
  position: absolute;
  font-size: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  color: white;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  text-align: center;
  opacity: 80%;
  z-index: 11;
}

.navim .accplus:hover {
  opacity: 100%;
  font-size: 130px;
}

.navim a {
  color: white;
}

.titre-partie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Lien invisible sur toute la carte */
.card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}


/* ========================================
   CARDS MODERNES (ATOUTS)
   ======================================== */

.atouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Carte atout */
.atout-card {
  background: rgba(255,255,255,1);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Effet survol */
.atout-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Bande de couleur en haut */
.atout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-start), var(--color-end));
}

.atout-card h3 {
  color: #333;
  font-size: 1.4em;
  margin-bottom: 20px;
  text-align: center;
}

.atout-card p {
  color: #666;
  line-height: 1.7;
  text-align: left;
}

/* Variantes de couleurs */
.atout-card.bleu {
  --color-start: #59C9EE;
  --color-end: #3F6DEB;
}

.atout-card.vert {
  --color-start: #2F9151;
  --color-end: #146C36;
}


/* ========================================
   SYSTÈME GRID
   ======================================== */

/* Conteneur principal avec Grid */
.row {
  display: grid;
  gap: 0;
  width: 100%;
}

/* Grid 2 colonnes */
.row.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Élément pleine largeur dans une grille */
.full {
  grid-column: 1 / -1;
  width: 100%;
  position: relative;
  color: #000;
  text-align: center;
  padding: 1.5rem;
  font-weight: 600;
  z-index: 1;
}

.full.bleuclair {
  border-top: 4px solid #59C9EE;
  border-bottom: 4px solid #59C9EE;
}

.full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.4);
  z-index: -1;
}

.full h2 {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
}

.full a {
  color: white;
}

.full a:hover {
  text-decoration: underline;
}

/* Classes de contenu */
.column {
  padding: 0;
}

.content-split-2 {
  text-align: center;
  color: black;
}

/* Images dans les colonnes */
.content-split-2 img {
  max-width: 75%;
  height: auto;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media only screen and (max-width: 768px) {
  /* Sur mobile, grille passe en 1 colonne */
  .row.grid-2 {
    grid-template-columns: 1fr;
  }

  .content-split-2 img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  h1 {
    font-size: 2.0em;
    margin-left: 5%;
    margin-right: 5%;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.25em;
  }

  h4 {
    font-size: 1.1em;
  }

  .atouts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .atout-card {
    padding: 30px 20px;
  }
}
