* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #142b4f; /* un bleu foncé mais distinct du header/footer */
  color: #f0f0f0;
  line-height: 1.5;
}

/* HEADER */
header {
  background-color: rgba(8, 20, 42, 0.9);
  padding: 15px 1rem;    
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  height: auto;
  min-height: 80px;       
  width: 100%;
  top: 0;
  z-index: 1000;
}


.logo {
  height: 60px;          
  cursor: pointer;
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;       
  cursor: pointer;
  color: white;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 600;
  color: #4da6ff;
}

.btn-login {
  background-color: #1a73e8;
  color: white !important;
  padding: 12px 24px;    
  border-radius: 25px;
  text-decoration: none;
}



@media (max-width: 768px) {
  header {
    justify-content: center;
  }


  .menu-toggle {
    display: block;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
  }


  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }


  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(8, 20, 42, 0.95);
    padding: 1rem 0;
    z-index: 999;
    margin-top: 15px;

  }


  .nav-links.show {
    display: flex;
  }

}


.language-dropdown {
  position: fixed;
  bottom: 50px;  
  right: 20px;  
  z-index: 10000;
  user-select: none;
}

.language-dropdown button {
  background: transparent;
  border: none;
  color: #4da6ff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}


.language-dropdown .lang-menu {
  position: absolute;
  bottom: 130%;  
  right: 0;
  background-color: rgba(8, 20, 42, 0.95);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  padding: 0.5rem 0;
  min-width: 130px;
  list-style: none;
  z-index: 1000;
}

.language-dropdown .lang-menu li a {
  color: #4da6ff;
  text-decoration: none;
  display: block;
  padding: 8px 16px;
  font-weight: 600;
}

.language-dropdown .lang-menu li a:hover {
  background-color: #4da6ff;
  color: #08142a;
  border-radius: 6px;
}

.titre_acceuil {
  min-height: 100vh;
  padding-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

.hero {
  max-width: 1000px;
  width: 100%;
  padding: 20px;
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-load {
  animation: fadeInUp 1s ease-out both;
}


.hero-title {
  font-size: 4.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #66b2ff;
}

.hero-tagline {
  font-size: 1.4rem;
  font-style: italic;
  color: #ccc;
  margin-bottom: 30px;
}

.hero-image {
  width: 260px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.hero-image:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
  .hero-tagline {
    font-size: 1.1rem;
  }
  .hero-image {
    width: 200px;
  }
}


/* ===== FOOTER ===== */
.footer {
  width: 100%;
  background: #031626;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  margin-top: 80px;
}

.footer-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* --- Réseaux --- */
.footer-socials {
  display: flex;
  gap: 26px;
}

.footer-socials a {
  font-size: 1.5rem;
  color: #4da6ff;
  transition: 0.25s ease;
}

.footer-socials a:hover {
  color: #7bc3ff;
  transform: translateY(-4px);
}

/* --- Bouton contact --- */
.footer-contact-btn {
  background: #4da6ff;
  color: #ffffff;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s ease;
}

.footer-contact-btn:hover {
  background: #1e7edb;
  transform: translateY(-3px);
}

/* --- Copyright --- */
.footer-copy {
  font-size: 0.9rem;
  opacity: 0.7;
}






@media (max-width: 768px) {
  
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-image {
    width: 140px;
  }
}


.meilleurs-projets h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 6px #000;
  margin-bottom: 40px;
}


.projets-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}


.projet {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  backdrop-filter: blur(8px);
  text-align: center;
}

.projet img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}


.projet h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffffff;
}


.projet p {
  font-size: 1rem;
  color: #dddddd;
  margin-bottom: 15px;
}


.tasto,
.vedere {
  display: inline-block;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.tasto {
  background-color: #1e88e5;
  color: #fff;
}

.tasto:hover {
  background-color: #1565c0;
}

.vedere {
  background-color: #e53935;
  color: #fff;
  margin-top: 40px;
}

.vedere:hover {
  background-color: #c62828;
}

.container {
  text-align: center;
  padding: 50px 20px;
}

.btn-profil {
  background: rgba(30, 41, 59, 0.7); 
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);

}

.btn-profil i {
  font-size: 1rem;
  color: rgb(12, 110, 215);
}

.btn-profil:hover {
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 14px rgba(0, 204, 255, 0.5);
}



.dropdown {
  position: relative;
}


.dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 16px;
  padding: 0.5rem 0;
  margin-top: 10px;
  list-style: none;
  box-shadow: 0 8px 16px rgba(0, 204, 255, 0.1);
  backdrop-filter: blur(8px);
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 180px;
}

.dropdown-menu li {
  text-align: center;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #e0f2fe;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background-color: rgba(14, 165, 233, 0.2);
  color: #1a73e8;;
}

.skills-section {
  padding: 60px 20px;
  text-align: center;
}

.skills-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #4da6ff;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* exactement 2 par ligne */
  gap: 40px;
  justify-items: center;
  max-width: 1000px;
  margin: auto;
}

.skill-card {
  background: rgba(8, 20, 42, 0.85);
  border-radius: 20px;
  padding: 30px 25px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  background: rgba(8, 20, 42, 0.95);
}

.skill-icon {
  font-size: 2rem;       /* plus petit que la version précédente */
  margin-bottom: 12px;
  color: #fff;           /* icône blanche */
}

.skill-card h3 {
  color: #1a73e8;
  font-size: 1.2rem;      /* titre plus petit */
  margin-bottom: 12px;
}

.skill-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}


/* ======= Tools / Outils (Variante A : logo + nom) ======= */
.tools-section {
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto 60px;
  color: #f0f0f0;
}

.tools-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 24px;
  color: #ffffff; /* ou #4da6ff si tu veux l'accent bleu */
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Grid : 4 colonnes desktop, 2 tablet, 1 mobile */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Carte compacte (logo + nom) — uniforme */
.tool-card.card-with-name {
  width: 100%;
  max-width: 240px;       /* largeur de la carte */
  height: 120px;          /* hauteur fixe pour uniformité */
  background: rgba(255,255,255,0.02); /* très léger pour laisser transparaître le fond */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Hover / Focus */
.tool-card.card-with-name:hover,
.tool-card.card-with-name:focus {
  transform: translateY(-6px);
  background: rgba(77,166,255,0.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  outline: none;
}

/* Accessible focus style */
.tool-card.card-with-name:focus {
  box-shadow: 0 0 0 3px rgba(77,166,255,0.12), 0 14px 30px rgba(0,0,0,0.55);
}

/* Logo (SVG/PNG) - garder les couleurs naturelles - ne pas appliquer de filter */
.tool-card .tool-icon {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  margin: 0;
  padding: 0;
  /* PAS de filter ici : icones conservent leurs couleurs */
}

/* Label / nom de l'outil */
.tool-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f0f0;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 90%;
}

/* Responsive : tablettes */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tool-card.card-with-name {
    max-width: 320px;
    height: 124px;
    padding: 12px;
  }
  .tool-card .tool-icon { width: 48px; height: 48px; }
}

/* Responsive : mobile */
@media (max-width: 520px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tool-card.card-with-name {
    width: 92%;
    max-width: none;
    height: auto;         /* laisse le contenu définir la hauteur sur mobile */
    padding: 14px;
    flex-direction: row;  /* logo à gauche, texte à droite pour gagner de la hauteur */
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  .tool-card .tool-icon { width: 46px; height: 46px; }
  .tool-label { font-size: 1rem; white-space: normal; max-width: calc(100% - 56px); }
}

/* Respecter la préférence de réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .tool-card.card-with-name,
  .tool-card.card-with-name:hover,
  .tool-card.card-with-name:focus {
    transition: none;
    transform: none;
  }
}

