:root {
  --gris_elether: #27353f;
  --jaune_elether: #f6a21c;
  --bleu_elether: #8da7be;
  --rouge_elether: #d94e1f;
  --header-height-pc: 90px;
  --header-height-phone: 60px;
  --transition: transform 0.4s ease, opacity 0.4s ease;
}

* {
  text-align: justify;
  hyphens: auto;
  --webkit-hyphens: auto;
  word-spacing: -0.05em;
}

body {
  background-color: var(--gris_elether);
  color: var(--jaune_elether);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

p {
  color: white;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

.content-page {
  margin-top: var(--header-height-pc);
  min-height: calc(80vh - var(--header-height-pc));
}

footer {
  color: var(--bleu_elether);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  background: var(--gris_elether);
  position: relative;
  margin-top: auto;
}

.title-elether {
  font-weight: bold;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.hidden {
  display: none;
}
.center {
  text-align: center;
}

.bold {
  font-weight: bold;
}

.medium-font {
  font-size: 1.2rem;
}

.big-font {
  font-size: 1.5rem;
}

.btn-elether {
  text-align: center;
  background: #8da7be;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 25px 40px;
  text-decoration: none;
  color: #333;
  font-size: 25px;
  font-weight: bold;
  transition: 0.3s;
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 220px;
}

.btn-elether:hover {
  background: #f6a21c;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/*NavBar*/

.logo-and-select-type {
  display: flex;
  align-items: center;
}
.logo-and-select-type select {
  color: black;
  border-radius: 10px;
  font-size: 1em;
  padding: 3px 5px;
  text-align: center;
  background-color: var(--bleu_elether);
  margin-left: 10px;
  cursor: pointer;
  border: 3px solid var(--jaune_elether);
}
#logo-header-header {
  width: 255px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-pc);
  background: var(--gris_elether);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(0);
  opacity: 1;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.logo {
  width: 250px;
}

/* HAMBURGER */
.hamburger {
  display: none; /* Par défaut, il est invisible (desktop) */
  flex-direction: column; /* Les lignes à l'intérieur s'empilent verticalement */
  justify-content: space-between; /* Espace égal entre les lignes (top/milieu/bas) */
  width: 31px; /* Largeur du bouton */
  height: 25px; /* Hauteur du bouton */
  background: none; /* Pas de fond */
  border: none; /* Pas de bordure */
  cursor: pointer; /* Curseur main quand on survole */
  padding: 0; /* Pas de marge interne */
  z-index: 1100; /* Toujours au-dessus du reste (menu, contenu) */
}

.hamburger .line {
  height: 4px; /* Hauteur de chaque ligne */
  width: 100%; /* Largeur = largeur du bouton */
  background: var(--jaune_elether); /* Couleur jaune */
  border-radius: 5px; /* Bords arrondis */
  transition: all 0.3s ease; /* Transition douce pour animation (rotation, opacité) */
}

/* Animation croix */
.hamburger.active .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px); /* La 1ère ligne tourne et se déplace pour faire la diagonale */
}

.hamburger.active .line:nth-child(2) {
  opacity: 0; /* La ligne du milieu disparaît */
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px); /* La 3ème ligne tourne pour former la croix */
}

/* NAVIGATION */
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  height: 100%;
}

nav a {
  /* On applique le même style à .cta */
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0 0.8rem;
  height: 100%;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  position: relative;
}

nav a:hover {
  color: var(--jaune_elether);
}

/* Lien actif (page en cours) */
nav a.active {
  color: var(--gris_elether);
  text-decoration: none;
  font-weight: 600;
  padding: 0 0.8rem;
  background-color: var(--jaune_elether);
}

nav a.active::after {
  display: none; /* On cache la barre du dessous */
}

.background-img-electronics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/*Responsive*/
@media (max-width: 1000px) /* Appliquer ces styles seulement si l'écran <= 1000px */ {
  #logo-header-header {
    width: 100px;
  }

  #nav-links {
    position: absolute; /* Positionné par rapport au premier parent positionné */
    top: var(--header-height-phone); /* Juste sous le header */
    right: 0px; /* Collé à droite */
    background: var(--gris_elether); /* Fond gris foncé */
    height: auto;
    flex-direction: column; /* Les liens s'empilent verticalement */
    padding: 2rem 2rem; /* Espacement interne du menu */
    gap: 2rem; /* Espacement entre les liens */
    display: none; /* Caché par défaut */
    width: 160px; /* Largeur du menu (tu peux ajuster) */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Ombre portée pour le relief */
    font-size: 15px; /* taille du texte */
    text-align: center;
  }

  #nav-links a.active {
    display: block; /* prend toute la largeur du menu */
    width: 100%; /* assure que ça couvre tout le menu */
    background-color: var(--jaune_elether);
    color: var(--gris_elether); /* texte lisible sur jaune */
    padding: 1rem; /* espace autour du texte */
    border-radius: 0.5rem; /* optionnel, coins arrondis */
    font-size: 15px; /* taille du texte */
    text-align: center; /* CENTRER LE TEXTE */
  }

  #nav-links.open {
    display: flex; /* Quand la classe “open” est ajoutée (JS), on affiche le menu */
  }

  .hamburger {
    display: flex; /* Le bouton hamburger apparaît sur mobile */
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-phone);
    background: var(--gris_elether);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 30px 0px 10px;
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
  }

  .separator-footer {
    display: none;
  }

  .contact-footer {
    display: block;
  }

  .content-page {
    margin-top: var(--header-height-phone);
    min-height: calc(80vh - var(--header-height-phone));
  }
}
