/* ========================================
   POLICE PERSONNALISÉE
   ======================================== */
@font-face {
  font-family: "Antarctica";
  src: url("../font/Antarctica-Medium.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
  --primary-color: #000000;
  --secondary-color: #000000;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ========================================
   STYLES DE BASE
   ======================================== */
* {
  box-sizing: border-box;
  font-family: "Antarctica", "Arial", sans-serif !important;
  max-width: 100%;
}

/* Forcer les tailles d'images et empêcher l'agrandissement */
img {
  max-width: 100%;
  height: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Forcer les tailles des éléments de formulaire */
input,
textarea,
select,
button {
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Règles anti-agrandissement pour desktop uniquement */
@media (min-width: 769px) {
  img {
    max-width: 100% !important;
    height: auto !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
}

body {
  line-height: 1.6;
  color: var(--primary-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Règles anti-agrandissement pour desktop uniquement */
@media (min-width: 769px) {
  body {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  html {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   SECTIONS GÉNÉRALES
   ======================================== */
.section:not(.outils-section):not(.approche-section):not(#accueil) {
  /* padding: 80px 0; */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .section:not(.outils-section):not(.approche-section):not(#accueil) {
    padding: 60px 0;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .section:not(.outils-section):not(.approche-section):not(#accueil) {
    padding: 50px 0;
    min-height: auto;
  }
}

/* Section d'accueil garde sa hauteur complète */
#accueil {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Règles spécifiques pour desktop - section accueil */
@media (min-width: 769px) {
  #accueil {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #accueil .container_accueil {
    min-height: 100vh !important;
    width: 100% !important;
  }
}

/* ========================================
   BARRE DE NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-container {
  width: calc(100vw - 100px);
  margin-left: 50px;
  margin-right: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text-noir {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: bold;
  font-family: "Antarctica", "Arial", sans-serif;
  margin: 0;
}

.logo-img-noir {
  width: 15px;
  height: 15px;
  object-fit: contain;
  margin-bottom: 4px;
}

.nav-logo h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Menu hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  height: 40px;
  width: 20px;
  margin-top: 22px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
  position: relative;
}

.hamburger span:nth-child(1) {
  transform-origin: center;
}

.hamburger span:nth-child(2) {
  transform-origin: center;
}

.hamburger span:nth-child(3) {
  transform-origin: center;
}

/* Animation hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary-color);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
  }

  html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Afficher le hamburger sur mobile */
  .hamburger {
    display: flex;
  }

  /* Menu normal caché par défaut sur mobile */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    gap: 25px;
  }

  /* Menu ouvert */
  .nav-menu.active {
    left: 0;
  }

  /* Liens en noir dans le menu mobile */
  .nav-menu .nav-link {
    color: var(--primary-color);
    text-shadow: none;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .nav-container {
    flex-direction: row;
    height: 70px;
    padding: 0 20px;
    width: calc(100vw - 40px);
    margin-left: 20px;
    margin-right: 20px;
    align-items: center;
  }

  .nav-logo-text-noir {
    font-size: 0.8rem;
    margin: 0;
  }

  .logo-img-noir {
    width: 12px;
    height: 12px;
  }

  .section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
  }

  html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .nav-container {
    padding: 0 15px;
    width: calc(100vw - 30px);
    margin-left: 15px;
    margin-right: 15px;
    align-items: center;
  }

  .nav-menu {
    padding: 25px 0;
    gap: 20px;
  }

  .nav-menu .nav-link {
    font-size: 1rem;
  }

  .nav-logo-text-noir {
    font-size: 0.7rem;
    margin: 0;
  }

  .logo-img-noir {
    width: 10px;
    height: 10px;
  }

  .section h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 1.8rem;
  }
}

.outils-section {
  display: block !important;
}

/* Règle pour hauteur mobile uniforme */
@media (max-width: 768px) {
  .section:not(#accueil) {
    min-height: 910px !important;
  }
}
