/* ═══════════════════════════════════════════════════════
   CONTACT.CSS — chargé par les 3 pages "contact.html"
   Fichier autonome : reset, polices, header/nav, footer et les
   styles propres à cette page sont tous regroupés ici.
   ═══════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");

/* ───── Réinitialisation ───── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ───── Polices ───── */
@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* ───── Liens (par défaut blancs : pensés pour l'en-tête brun) ───── */
a:link {
  color: white;
  text-decoration: none;
}

a:visited {
  color: white;
}

a:active {
  color: black;
}

body {
  font-family: "Georgia", serif;
  background-color: #fffcf3;
}

/* ───── En-tête / navigation ───── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #daaa67;
  padding: 10px 80px;
  box-sizing: border-box;
  box-shadow: 0px 3px 10px -2px #573e23;
  overflow: visible; /* permet à l'image de dépasser */
  z-index: 1500;
  transition: all 0.3s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
  white-space: nowrap;
  margin-left: auto;
}

.nav-bar a {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.nav-bar a.active {
  font-weight: 700;
  border-bottom: 2px solid #573e23;
  padding-bottom: 4px;
}

.nav-bar img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin-bottom: -40px; /* pousse l'image vers le bas pour qu'elle dépasse */
}

/* Menu mobile (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #573e23;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 900px) {
  header {
    padding: 10px 20px;
  }

  .nav-bar {
    position: relative;
    justify-content: space-between;
  }

  .nav-bar img {
    height: 70px;
    margin-bottom: -20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #daaa67;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 480px;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-bar a.active {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* ───── Utilitaires d'accessibilité ───── */

/* Masque visuellement un élément tout en le gardant accessible aux lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #573e23;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 3000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  z-index: 1;
  background: #573e23;
  color: #f0e3c8;
  padding: 56px 40px 0;
  overflow: hidden;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(240, 227, 200, 0.2);
}

.footer-brand {
  flex: 1 1 260px;
  max-width: 320px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: "Merriweather", serif;
  font-size: 14px;
  line-height: 1.6;
  color: #d8c7a3;
}

.site-footer h2 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f0d9ae;
  margin-bottom: 16px;
}

.footer-nav,
.footer-contact {
  flex: 1 1 180px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav a,
.footer-contact a {
  color: #f0e3c8 !important;
  font-size: 15px;
  margin-bottom: 10px;
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-nav a:focus-visible,
.footer-contact a:focus-visible {
  border-bottom-color: #f0d9ae;
}

.footer-contact p {
  font-family: "Merriweather", serif;
  font-size: 14px;
  color: #d8c7a3;
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #c9b593;
}

.footer-bottom a {
  color: #f0d9ae !important;
}

@media (max-width: 700px) {
  .site-footer {
    padding: 40px 20px 0;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-nav a,
  .footer-contact a {
    margin-left: auto;
    margin-right: auto;
  }
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Lien hors carte (ex: "retour à l'accueil") : le a:link global est blanc
   (pensé pour l'en-tête brun), donc on le rend lisible sur le fond crème ici. */
.content-page > p > a {
  color: #573e23;
  font-weight: bold;
}

/* ───── Mini-hero de page (bandeau titre) ───── */
.content-hero {
  position: relative;
  padding: 150px 24px 48px;
  text-align: center;
  background: linear-gradient(135deg, #6b5a42 0%, #573e23 100%);
  color: #ffffff;
  overflow: hidden;
}

.content-hero-kicker {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  color: #f0d9ae;
  margin-bottom: 10px;
}

.content-hero h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  margin: 0;
}

/* ───── Animation légère d'apparition au scroll ───── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ───── Carte de section ───── */
.content-section {
  background: #6b5a42;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  scroll-margin-top: 110px;
}

.content-section p {
  font-family: "Merriweather", serif;
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section a {
  color: #f5e6c8;
  text-decoration: underline;
}

.content-section a:hover,
.content-section a:focus-visible {
  color: #ffffff;
}

.content-section .source {
  font-size: 14px;
  font-style: italic;
  color: #e2c396;
}

.content-section h2 {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

/* ───── Ligne de contact avec icône ───── */
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-line .section-icon {
  width: 20px;
  height: 20px;
  color: #f0d9ae;
}

@media (max-width: 700px) {
  .content-hero {
    padding: 130px 20px 36px;
  }

  .content-page {
    padding: 32px 16px 60px;
  }

  .content-section {
    padding: 24px 20px;
  }
}
