/* ==========================================================================
   LAYOUT CSS — Structure globale, En-tête (Header) & Pied de page (Footer)
   ========================================================================== */

/* Structure globale (Footer collé en bas de page) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ==========================================================================
   HEADER — Navigation fixe en haut
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-green-soft);
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
  width: 100%;
}

.main-nav {
  width: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-list a {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-brown-deep);
  text-decoration: none;
  transition: color var(--transition-base);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-terracotta);
}

.nav-list .logo-item {
  flex: 0 0 auto;
  padding: 0 1.5rem;
}

.site-logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* Header Responsive */
@media (max-width: 768px) {
  .nav-list {
    gap: 0.5rem;
  }
  .nav-list a {
    font-size: 0.95rem;
  }
  .site-logo img {
    height: 50px;
  }
}

/* ==========================================================================
   FOOTER — Discret, fin et élégant (toujours sur une seule ligne)
   ========================================================================== */

.site-footer {
  background: var(--color-beige);
  color: var(--color-brown-deep);
  padding: 1.25rem 0; /* Padding très réduit pour être discret */
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  overflow-x: auto; /* Filet de sécurité si le contenu dépasse sur très petit écran */
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Liens à gauche, copyright au centre, réseaux à droite */
  align-items: center;
  gap: var(--space-sm);
}

/* Liens de gauche */
.footer-links {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  transition: color var(--transition-base);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-terracotta);
}

/* Icône Réseaux (Droite) */
.footer-social {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.65);
  transition: all var(--transition-base);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--color-green-soft);
  color: var(--color-brown-deep);
  background: var(--color-green-soft);
}

.footer-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Copyright (Centre) */
.footer-copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  white-space: nowrap;
}

/* Adaptation Mobile — tout tient sur une seule ligne, en plus compact */
@media (max-width: 768px) {
  .site-footer .container {
    gap: 0.5rem;
  }

  .footer-links {
    gap: 0.6rem;
  }

  .footer-links a {
    font-size: 0.72rem;
  }

  .footer-copy {
    font-size: 0.68rem;
  }

  .footer-social a {
    width: 26px;
    height: 26px;
  }

  .footer-social svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 420px) {
  .site-footer .container {
    gap: 0.35rem;
  }

  .footer-links {
    gap: 0.4rem;
  }

  .footer-links a {
    font-size: 0.62rem;
  }

  .footer-copy {
    font-size: 0.58rem;
  }
}