/* =========================================================
   INDEX PAGE — HOME ONLY
   ========================================================= */



/* =========================
   DOMAINS SECTION
   ========================= */
.domains {
  padding: 6rem 0;
  background: #ffffff;
}

.domains h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Carte domaine */
.domain-card {
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Header carte */
.domain-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.domain-header i {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.domain-card h3 {
  font-size: 1.2rem;
}

.domain-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* =========================
   ABOUT / MISSION
   ========================= */
.about {
  padding: 6rem 0;
  background: #ffffff;
}

.about h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.about p {
  max-width: 780px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text);
}

.about .link {
  display: block;
  text-align: center;
  font-weight: 600;
  color: var(--color-accent);
}

.about .link:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVE HOME
   ========================= */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    margin: 0 auto;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .domains-grid {
    grid-template-columns: 1fr;
  }
}



/* Responsive domains section */
/* Grille domaines responsive */
@media (max-width: 900px) {
  .domains-grid {
    grid-template-columns: 1fr; /* 1 colonne sur petit écran */
    gap: 2rem;
  }

  .domain-card {
    width: 100%;           /* prendre toute la largeur disponible */
    max-width: 100%;       /* éviter de dépasser */
    padding: 1.8rem;
  }
}

/* Très petit écran */
@media (max-width: 600px) {
  .domain-card {
    padding: 1.2rem;       /* padding réduit */
    font-size: 0.95rem;    /* texte un peu plus petit */
  }

  .domain-header h3 {
    font-size: 1.1rem;     /* titre ajusté */
  }

  .domains-grid {
    gap: 1.5rem;           /* moins d’espace entre cartes */
  }
}



/* Boutons */
.btn {
  background: #8d8d8d;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 0px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Effet hover sur bouton */
.btn:hover {
  background: #0088cc;
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}





/* ------------------------------
   SECTION HERO
------------------------------ */

/* Section d'introduction avec dégradé et centrage */
.hero {
  position: relative;
  display: flex;
  justify-content: left;
  align-items: left;
  min-height: 80vh;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  color: #fff;
  padding: 3rem 2rem;
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
}

/* LOGO ANIME DEPUIS LA DROITE */
.hero-logo {
  width: 600px;
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 1.5s ease-out forwards;
}



/* TEXTE ANIME DEPUIS LA GAUCHE */
.hero-text {
  max-width: 600px;
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 1.5s ease-out forwards;
  animation-delay: 0.4s;
}



/* TITRE ET PARAGRAPHE */
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: sans-serif;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #676262;
}

/* ANIMATIONS */
@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo {
    width: 200px;
    transform: translateY(-30px);
  }

  .hero-text {
    transform: translateY(30px);
  }
}




