/* Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-image: url("../images/galaxy_nebula.png");
  background-repeat: no-repeat;       /* Empêche la répétition */
  background-size: cover;             /* Étire l'image pour couvrir tout l'écran */
  background-position: center center; /* Centre l'image */
  background-attachment: fixed;       /* (Optionnel) effet de parallaxe */
}

/* #particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('pictures/hybride.png') no-repeat center center/cover;
  z-index: -1;
} */

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../Images/galaxy_nebula.png") no-repeat center center/cover;
  z-index: -1;
}

/* Bandeau */
.bandeau {
  background-image: url("../../../pictures/bandeau-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 0 0 6px black;
  padding: 20px;
}

/* Contenu du bandeau (texte + logo) */
.bandeau-contenu {
  display: flex;
  flex-direction: row-reverse; 
  align-items: center;
  justify-content: center; 
  gap: 50px; 
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 0 40px;
}

/* Texte du bandeau */
.texte-bandeau {
  text-align: left;
  flex: 1;
}

/* Titre et sous-titre */
.texte-bandeau h1 {
  font-family: 'theblacklist', Arial, sans-serif;
  font-size: 2.4em;
  margin-bottom: 10px;
}

.texte-bandeau h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4em;
  margin-top: 10px; 
}

/* Logo */
#logo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgb(121, 4, 4);
  box-shadow: 0 3px 7px rgb(250, 6, 6);
}

/* Bandeau : Responsive */
@media screen and (max-width: 768px) {
  .bandeau-contenu {
      flex-direction: column-reverse; 
      text-align: center;
      gap: 20px;
  }

  .texte-bandeau {
      text-align: center;
  }

  #logo {
      width: 120px;
      height: 120px;
  }
}

/* === NAVIGATION === */
nav {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

nav ul {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  list-style: none;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #222;
  font-size: 16px;
  transition: 0.3s ease;
}

nav ul li a:hover {
  color: #e63946;
}

/* === CONTENEUR === */
.contener {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}


/* === Responsive : petit écran === */
@media screen and (max-width: 768px) {
  nav ul {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    background: none !important;
    padding: 10px 0 !important;
    box-shadow: none !important;
  }

  nav ul li {
    margin: 0 10px;
  }

  nav .box {
    justify-content: space-between;
    padding: 0 20px;
  }

  nav .btn {
    display: flex;
    margin-left: 10px;
  }
}
  
/* === INTRODUCTION === */
.intro {
  text-align: center;
  margin-bottom: 50px;
  color: #a30266;
}
  
 .intro h3 {
  font-size: 1.8rem;
   margin-bottom: 10px;
}
  
.texte-bienvenue {
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 1.2em;
  line-height: 1.8em;
  color: #c40404;
  margin-bottom: 20px;
  text-align: justify;
  padding: 1rem;
  border-radius: 10px;
  color: red;
  text-shadow: 1px 1px 1px white;
}

/* === GALERIE === */
#galerie {
  text-align: center;
  color: #a30266;
}
  
#galerie h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}
  
.grille-Créations {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px;
  margin-top: 20px;
}
  
.Créations-link {
  text-decoration: none;
}
  
.Créations {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: calc(25% - 30px); 
  min-width: 240px;
  text-align: center;
}
  
.Créations:hover img {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
}
  
.Créations img {
  width: 100%;
  height: auto;
  display: block;
}
  
.Créations p {
  font-weight: bold;
  color: #111;
  padding: 15px 10px;
  margin: 0;
}

/* Responsive pour grille IA */
@media (max-width: 992px) {
  .grille-Domaines_De_Compétences,
  .grille-Créations {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grille-Domaines_De_Compétences,
  .grille-Créations {
      grid-template-columns: 1fr;
  }
}
  
/* contact */
#contact {
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 30px 30px;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 860px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}

#contact h6 {
  font-size: 2em;
  font-weight: 700;
  margin: 40px auto 20px;
  text-transform: uppercase;
  color: #a30266;
}

.btn-contact {
  background-color: #222;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  margin-left: 10px;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
}

.btn-contact i {
  margin-right: 5px;
}

.btn-contact:hover {
  background-color:  #0b73eb;
  transform: scale(1.05);
}

#contact p strong {
  color: #000;
}

.contact-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  max-width: 780px;
  margin: 30px auto;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-box i {
  color: #0fb5f7;
}

.contact-box a {
  color: #f3f8f7;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

.contact-box p {
  margin: 8px 0;
}

/* Boutons Sociales */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 25px auto 30px;
  flex-wrap: wrap;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background-color: #a80606;
  color: #00aaff;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-social:hover {
  background-color: #0b73eb;
  color: #fff;
  transform: scale(1.12);
}

.btn-social i {
  line-height: 1;
}

.icon-img {
  height: 30px;
  width: 30px;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .contact-box {
    padding: 15px;
    font-size: 0.95rem;
    text-align: center;
  }

  .btn-contact {
    margin-top: 15px;
    display: inline-block;
    font-size: 1rem;
  }

  .contact-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }

  .btn-social,
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .contact-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }
}

/* Partie Contact */
h6 {
  font-size: 2em;
  margin-bottom: 20px;
  margin-top: 40px;
  text-align: center;
  color: #a30266;
}
  
  /* === PIED DE PAGE === */
footer {
  background-color: #111;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 30px;
}
  
.horizontal img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
  
.vertical img {
  width: 100%;
  height: 460px;
   object-fit: cover;
}
  
/* Responsive tablette */
@media screen and (max-width: 1024px) {
  .Créations {
    width: calc(50% - 30px); /* 2 par ligne */
  }
}
  
/* Responsive mobile */
@media screen and (max-width: 600px) {
  .Créations {
    width: 100%; /* 1 par ligne */
  }
}

/* Bouton retour haut */
#topBtn {
  position: fixed; 
  bottom: 80px; 
  right: 30px; 
  opacity: 0; 
  visibility: hidden;
  font-size: 22px;
  border: none;
  outline: none;
  background-color: #a80606;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: opacity 0.5s ease, transform 0.3s ease, visibility 0.5s;
  z-index: 100;
}

#topBtn:hover {
  background-color: #e63946;
  transform: scale(1.1);
}
