/* ACCESSIBILITÉ */
:focus-visible{
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Skip link - visible au focus clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary, #000);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Masquer visuellement mais garder pour lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%); /* moderne */
    white-space: nowrap;
    border-width: 0;
}

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;
  height: clamp(50px, 8vh, 80px);  /* 🔥 min 50px au lieu de 60px */

  background: var(--color-dark);
  color: var(--color-white);

  padding: var(--space-md) 0;
  border-bottom: 3px solid var(--color-primary);

  box-shadow: var(--shadow-sm);

  display: flex;
  align-items: center;
}


.header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
}

/* =========================
   MAIN
========================= */


.main {
  flex: 1; /* Remplace min-height: 60vh */
  width: 100%;
}

/* =========================
   NAVIGATION
========================= */
.nav-list {
  display: flex;
  gap: clamp(12px, 2vw, var(--space-lg));
  /* Aligne les boutons au centre plutôt que de les étirer */
  align-items: center; 
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  /* On utilise inline-flex pour mieux contrôler le contenu intérieur */
  display: inline-flex; 
  align-items: center;
  justify-content: center;

  /* On limite la hauteur du cadre rose et des liens */
  height: fit-content;
  min-height: 40px; /* Hauteur minimale confortable pour le clic */
  
  padding: 8px clamp(10px, 2vw, var(--space-md));
  line-height: 1.2; /* Réduit l'espace entre les deux lignes de texte */
  text-align: center;
  
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(13px, 2vw, 16px); /* Légère réduction sur mobile */
}	

.nav-list li {
  margin: 0;
  padding: 0;
}



/* hover */
.nav-link:hover {
  color: var(--color-primary);
}

/* underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: var(--color-primary);

  transition: width var(--transition-base);
}

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

/* active */
.nav-link.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.nav-link.active::after {
  display: none;
}


/* =========================
   FOOTER
========================= */

.footer {
  margin-top: var(--space-xl);
  padding: var(--space-xl) var(--space-md);

  background: var(--color-dark);
  color: var(--color-white);
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);

  margin-bottom: var(--space-xl);
}

.footer-content {
  animation: fadeInUp 0.8s ease-out backwards;
}

.footer-content:nth-child(1) {
  animation-delay: 0.2s;
}

.footer-content:nth-child(2) {
  animation-delay: 0.3s;
}

.footer-content h3 {
  margin-bottom: var(--space-sm);

  font-size: var(--font-size-md);
  color: var(--color-primary);
}

.footer-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.footer-content a {
  position: relative;

  color: var(--color-primary);
  text-decoration: none;

  transition: color var(--transition-base);
}

.footer-content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 0;
  height: 2px;

  background: var(--color-primary);

  transition: width var(--transition-base);
}

.footer-content a:hover::after {
  width: 100%;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .footer .container {
    grid-template-columns: 1fr;
  }
}
