@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Raleway:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #111;
  color: #fff;
}

/* -------- TOP BAR -------- */
.top-bar {
  background-color: #3a3a3a;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.top-right-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.connexion-btn {
  background-color: transparent; /* Enlève le fond noir */
  border: 2px solid white; /* Petit contour blanc */
  color: white; /* Texte blanc */
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, border-bottom 0.2s ease;
}

/* Effet zoom au survol */
.connexion-btn:hover {
  transform: scale(1.2); /* Zoom léger */
  background-color: transparent; /* Reste sans fond */
}

/* Supprime les effets de fond au clic */
.connexion-btn:focus,
.connexion-btn:active {
  background-color: transparent;
  outline: none;
  box-shadow: none;
}

.mail-btn {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.mail-btn i {
  background-color: transparent;
  padding: 8px;
  border-radius: 50%;
}

.mail-btn:hover {
  transform: scale(1.4);
}

.left-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 5000;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  color: #fff;
}

/* -------- HEADER -------- */
header {
  background-color: #000;
  padding: 50px 40px;
  position: relative;
  overflow: visible;
  z-index: 10;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 130px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0,7px;   /* 👈 espace entre lettres */
  word-spacing: 4px;       /* 👈 espace entre mots */
}

.nav-links a {
  text-decoration: none;
  color: #FFD700;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #FFD700;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* LOGO DISSOCIÉ */
.logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.logo {
  max-height: 150px; /* Ajuste ici pour changer la taille du logo sans toucher au header */
  height: auto;
  width: auto;
  object-fit: contain;
}

/* -------- SECTIONS -------- */
section {
  padding: 40px;
}
/* FOOTER */
footer {
  background-color: #000;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-family: 'Raleway', sans-serif;
}

footer a {
  color: #FFD700;
  text-decoration: none;
}

footer .socials {
  margin-top: 10px;
}

footer .socials a {
  color: #FFD700;
  margin: 0 10px;
  font-size: 20px;
  transition: transform 0.3s;
}

footer .socials a:hover {
  transform: scale(1.2);
}

/* HEADER SHRINK STICKY */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

header.shrink {
  padding: 35px 50px;
}

header.shrink .logo {
  max-height: 100px;
}

/* TOP-BAR STICKY */
.top-bar {
  position: sticky;
  top: 0;
  background-color: #3a3a3a;
  z-index: 101;
}

/* HEADER STICKY EN DESSOUS DE LA TOP-BAR */
header {
  position: sticky;
  top: 40px;
  z-index: 100;
  transition: all 0.3s ease;
}

/* Animation douce du logo */
.logo {
  transition: all 0.3s ease;
}

/* Lorsque le header est réduit */
header.shrink .logo {
  max-height: 100px;
  margin-top: 20px;
}

/* Ajustement plus petit du logo quand le header est réduit */
header.shrink .logo {
  max-height: 87px; /* ajusté depuis 100px */
  margin-top: 20px;
}
/* Réduction de la taille du texte du menu quand le header shrink */
header.shrink .nav-links {
  font-size: 20px;  /* 👈 ajuste cette valeur comme tu veux */
}

/* FONDU HAUT DU HEADER */
.fade-header-top {
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom, #3a3a3a, transparent); /* adapte la couleur ici */
  z-index: 10;
  position: relative;
}
.fade-header-bottom {
  height: 12px;
  background: linear-gradient(to bottom, #000, #1f1f1f); /* noir vers gris */
}
.nav-links a.active {
  color: white;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: yellow;
  transition: width 0.3s ease;
}
.connexion-btn {
  text-decoration: none !important;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up,
.fade-down {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-down {
  transform: translateY(-30px);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
body {
  background-color: #111;
  background-image: url('/images/topography.svg'); /* adapte si le fichier est ailleurs */
  background-repeat: repeat;
  background-size: 300px; /* ajuste à ta convenance */
}
/* === RESPONSIVE DESIGN POUR TOUS LES ÉCRANS SAUF 1920x1080 === */

/* ✅ PC portable : entre 1280px et 1399px */
@media screen and (min-width: 1280px) and (max-width: 1399px) {
  .logo {
    max-height: 150px;
  }

  .nav-links {
    font-size: 20px;
    gap: 45px;
  }

  header {
    padding: 50px 50px;
  }

  .logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
  }

  .nav-container {
    flex-direction: row;
  }

  .actu-card {
    width: 280px;
  }

  .actu-card img {
    width: 100%;
    height: auto;
  }

  .actus-container {
    gap: 149px !important;
  }
}
/* ✅ Breakpoint spécial 1400px à 1440px */
@media screen and (min-width: 1400px) and (max-width: 1440px) {
  .logo {
    max-height: 150px;
  }

  .nav-links {
    font-size: 20px;
    gap: 60px;
  }

  header {
    padding: 50px 50px;
  }

  .logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
  }

  .nav-container {
    flex-direction: row;
  }
}
/* ✅ Breakpoint spécial 1441px à 1919px */
@media screen and (min-width: 1441px) and (max-width: 1919px) {
  .logo {
    max-height: 160px;
  }

  .nav-links {
    font-size: 20px;
    gap: 90px;
  }

  header {
    padding: 50px 60px;
  }
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
