/* ==================== 
   RESET & BASE
   ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #F26522; /* Orange CITMG */
  color: #000;
  line-height: 1.6;
}

/* ==================== 
   HEADER
   ==================== */
/* ==================== 
   HEADER MISE À JOUR - LOGO + MENU + RÉSEAUX
   ==================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

/* Logo à gauche */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: #F26522;
  text-decoration: none;
}
.logo img {
  height: 40px;
  margin-right: 10px;
}
.logo span {
  letter-spacing: -0.5px;
}

/* Menu de navigation au centre */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}
.nav-menu a:hover {
  color: #F26522;
}

/* Icônes réseaux sociaux à droite */
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  color: #555;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
  color: #F26522;
  transform: translateY(-2px);
}

/* Responsive : menu en colonne sur mobile */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    padding: 1rem;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    gap: 1.5rem;
  }
  .social-icons {
    order: 2;
    margin-left: auto;
  }
  .logo {
    order: 1;
  }
}


/* ==================== 
   BANNIÈRE - DÉGRADÉ ORANGE/NOIR, CENTRÉ, PROPRE
   ==================== */
.banner {
  text-align: center;
  padding: 4rem 2rem 2rem; /* 6rem en bas pour l'espace sous le bouton */
  background: linear-gradient(135deg, #F26522 60%, #000 100%);
  color: #fff;
  position: relative;
  border-bottom: 2px solid white;
}

.banner h1 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff; /* Blanc */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #fff; /* Blanc */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.banner .btn {
  background-color: #000 !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.banner .btn:hover {
  background-color: #222 !important;
  transform: translateY(-3px);
}

.intro {
  text-align: center;
  padding: 2rem 2rem 2rem; /* 2rem en bas pour l'espace */
  background: black;
  color: #000;
  position: relative;
}


.btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.hub-intro {
max-width: 900px;
margin: 10px auto;
text-align: left;
font-size: 18px;
line-height: 1.8;
color: #FFFFFF;
padding: 0 10px;
}

.hub-projects-list {
text-align: left;
display: inline-block;
margin: 10px auto;
text-align: left;
max-width: 800px;
color: #FFFFFF;
font-size: 17px;
}

h1 {
text-align: center;
font-size: 2.2em;
margin: 30px 0;
color: #222;
}


/* ==================== 
   PROJETS - GRILLE
   ==================== */
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 3rem 2rem;
  background-color: #fff;
}

/* ==================== 
   ANIMATION CSS
   ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== 
   CARTE PROJET - MOBILE-FRIENDLY
   ==================== */
.project {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 280px; /* min-height au lieu de height fixe */
  height: auto; /* Pour s’adapter sur mobile */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(var(--delay) * 0.1s);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dégradé subtil pour lisibilité */
.project::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.15) 100%);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

/* Contenu au-dessus du dégradé */
.project > * {
  position: relative;
  z-index: 2;
}

/* Effet de profondeur au survol */
.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid #F26522;
}

/* ==================== 
   TITRE AVEC ICÔNE (Font Awesome)
   ==================== */
.project h2 {
  color: #F26522;
  margin-bottom: 1rem;
  min-height: 3.5em;
  font-size: 1.3rem;
  line-height: 1.4;
  overflow: hidden;
  position: relative;
}

.project h2::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 0.6em;
  color: #007BFF;
  width: 1.5em;
  text-align: center;
}

/* Icônes par projet */
.project:nth-child(1) h2::before { content: "\f12e"; } /* Quizoscope - brain */
.project:nth-child(2) h2::before { content: "\f0ce"; } /* Excel - table */
.project:nth-child(3) h2::before { content: "\f5bd"; } /* Créations - tshirt */
.project:nth-child(4) h2::before { content: "\f0d2"; } /* Pinterest */
.project:nth-child(5) h2::before { content: "\f121"; } /* Apps - cubes */
.project:nth-child(6) h2::before { content: "\f7d9"; } /* Outils - toolbox */
.project:nth-child(7) h2::before { content: "\f55c"; } /* Annuaire - book */
.project:nth-child(8) h2::before { content: "\f55d"; } /* Formations - user-graduate */
.project:nth-child(9) h2::before { content: "\f55a"; } /* T-shirts - tshirt */
.project:nth-child(10) h2::before { content: "\f807"; } /* Tasses - mug */
.project:nth-child(11) h2::before { content: "\f5bd"; } /* Livres électroniques */

/* ==================== 
   DESCRIPTION - ESPACE GARANTI
   ==================== */
.project p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
  margin: 1rem 0 1.2rem; /* Espace contrôlé au-dessus et en dessous */
  min-height: 3.4em; /* Garantit 2-3 lignes de texte */
  overflow: hidden;
}

/* ==================== 
   BOUTON "VISITER" - TOUJOURS EN BAS
   ==================== */
.visit-btn {
  background-color: #007BFF !important;
  color: white !important;
  text-align: center  !important;
  margin: 0 auto;
  width: 90%;
  max-width: 320px;
  padding: 0.6rem 0;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: all 0.3s ease;

  /* Empêche le bouton de remonter */
  align-self: center;
  margin-top: auto; /* Pousse le bouton en bas même si espace vide */
}

.visit-btn:hover {
  background-color: #0056b3 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

/* ==================== 
   SECTIONS GÉNÉRIQUES
   ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.2rem;
  color: #F26522;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #000;
  line-height: 1.6;
}

/* ==================== 
   ARTICLES
   ==================== */
.articles-section {
  padding: 4rem 0;
  background-color: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-card h3 {
  color: #F26522;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.btn-article {
  background-color: #007BFF !important;
  color: white !important;
  padding: 0.6rem 1.2rem !important;
  font-size: 0.9rem !important;
  display: inline-block;
  margin-top: 1rem;
}

/* ==================== 
   CONTACT
   ==================== */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #000 0%, #F26522 100%);
  color: #000000 !important;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F26522;
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.btn-submit {
  background-color: #F26522 !important;
  color: white !important;
  padding: 0.9rem 2rem !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 8px !important;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 2rem auto 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
}

.btn-submit:hover {
  background-color: #d0501e !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 101, 34, 0.4);
}

/* ==================== 
   ANCHOR SCROLL SMOOTH
   ==================== */
html {
  scroll-behavior: smooth;
}

/* ==================== 
   RESPONSIVE - MOBILE
   ==================== */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-intro {
    padding: 0 1rem;
  }
}


/* ==================== 
   FOOTER
   ==================== */
.footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* ==================== 
   RESPONSIVE
   ==================== */
@media (max-width: 1200px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr;
  }
  .banner h1 {
    font-size: 2rem;
  }


/* Sitemap in the footet */
.footer-sitemap-link {
  color: #fff;
  font-size: 0.9em;
  text-decoration: underline;
  margin-top: 0.5rem;
  display: inline-block;
}

.footer-sitemap-link:hover {
  color: #007BFF;
}