/* ------------------------------------------
   STYLE GLOBAL DU SITE
------------------------------------------- */

body {
  background:#F4E9D8;
  color:#111;
  font-family:Arial;
  line-height:1.65;
  text-align:left;
}

/* TITRES */
h1 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 6px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
}

p {
  font-size: 16px;
}

/* Ajoute un espace entre le bandeau et le premier titre */
.hero-container + * {
  margin-top: 24px;
}

.accueil-titre {
  font-size: 18px;
  font-weight: normal;
  color: #8A6A3A;
  margin-top: 18px;
  margin-bottom: 0;
}

.accueil-titre + p {
  margin-top: 4px;
}

/* ------------------------------------------
   LIENS GLOBAUX
------------------------------------------- */

a {
  color: #8A6A3A;
  text-decoration: none;
  opacity: 0.85;
}

a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ------------------------------------------
   BANDEAU (VERSION FUSIONNÉE)
------------------------------------------- */

.hero-container {
  position: relative;
  height: 180px; /* desktop */
}

.bandeau-hero {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  opacity: 0.95;
  border-radius: 4px;
  z-index: 1;
  position: relative;
}

.hero-citation {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  font-size: 18px;
  font-style: italic;
  white-space: nowrap;
  z-index: 2;
}

/* ------------------------------------------
   VERSION MOBILE
------------------------------------------- */

@media (max-width: 768px) {

  .hero-container {
    min-height: 140px;
    height: auto;
    position: relative;
    margin-bottom: -30px !important; /* remonte le texte sous l’image */
  }

  .bandeau-hero {
    width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 140px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
  }

  .hero-citation {
    top: 30%;
    transform: translate(-50%, -50%);
    font-size: 10px;
  }

  .nav-hero {
    margin-top: -20px;
  }

  #sec1 {
    margin-top: -120px !important;
  }

} /* ← FIN DU MEDIA QUERY — NE RIEN METTRE APRÈS */

/* ------------------------------------------
   MENU DU BANDEAU — VERSION MOBILE-FIRST
------------------------------------------- */

.nav-hero {
  position: relative;   /* ← indispensable */
  z-index: 20;          /* ← passe devant l’image */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  text-align: left;
  align-items: center;
}

.nav-hero a {
  color: #8A6A3A;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.9;
}

.nav-hero a:hover {
  opacity: 1;
}

/* ------------------------------------------
   VERSION MOBILE
------------------------------------------- */

@media (max-width: 768px) {

  body {
    margin: 0 !important;
    padding: 20px !important;
    max-width: 100% !important;
  }

  h1 {
    font-size: 22px !important;
  }

  p {
    font-size: 16px !important;
  }

  a {
    font-size: 15px;
  }

  .nav-hero {
    gap: 0.6rem;
    padding: 1rem 0.5rem;
    margin-top: -10px; /* fusion des deux blocs */
  }

  .nav-hero a {
    font-size: 14px;
  }

  /* Remonter le texte sous l'image */
  #sec1 {
    margin-top: -120px !important;
  }

}
/* ------------------------------------------
   SIGNATURE FIXÉE EN BAS-CENTRE (VERSION ROBUSTE)
------------------------------------------- */

.signature-site {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  /* Ajouts essentiels pour corriger ton problème */
  width: auto;
  max-width: none;
  right: auto;
  text-align: center;
  margin: 0;
  padding: 0;
}

.signature-site img {
  width: 85px;      /* mobile */
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.signature-site img:hover {
  opacity: 1;
}

/* Masquer le symbole d'accueil sur la page d'accueil (desktop + mobile) */
body.home .sceau-accueil,
body.home .signature-site {
  display: none !important;
}

/* Desktop */
@media (min-width: 900px) {
  .signature-site img {
    width: 110px;
  }
}
@media (max-width: 768px) {
  .hero-citation {
    top: 25%;
    left: 50%;
    transform: translateX(-50%) !important; /* efface totalement le translateY */
    font-size: 12px !important;
    color: #ffffff;
     text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  }
}
