/* taverne.css - La Taverne de Maître Frelon */

/* --- Variables --- */
:root {
  --bg: #3b2f21;        /* brun bois chaud */
  --card: rgba(75,56,40,0.85); /* sections légèrement plus foncées */
  --muted: #c7b299;     /* texte secondaire */
  --accent: #d4a15f;    /* doré / accents */
  --max-width: 1100px;
}

/* --- Reset / Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #f5f0e6; /* Garde la couleur du texte de taverne.css */
  
  background:
    /* Gradient ajouté pour l'effet de transparence */
    linear-gradient(to bottom right, rgba(59, 47, 33, 0.8), rgba(35, 25, 15, 0.9)),
    
    /* Tenter de charger l'image AVIF si elle est supportée */
    url('images/wood-texture.avif') no-repeat center/cover,
    
    /* Si AVIF n'est pas supporté, utiliser WebP */
    url('images/wood-texture.webp') no-repeat center/cover,
    
    /* Si ni AVIF ni WebP ne sont supportés, utiliser JPG comme fallback */
    url('images/wood-texture.jpg') no-repeat center/cover,
    
    /* La couleur de fond définie par la variable */
    var(--bg);

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}



.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(59,47,33,0.95), rgba(59,47,33,0.85));
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.6rem;
}

.brand-script {
  font-family: 'Pacifico', cursive;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: #fff;
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
}

/* --- Hero section --- */
.tav-hero {
  padding: 4rem 0;
}

.tav-hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  flex-wrap: wrap;
}

.tav-intro h1 {
  font-family: 'MedievalSharp', cursive;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tav-intro p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.tav-note {
  font-style: italic;
  color: #e9e0c0;
}

.tav-art img {
  max-width: 300px;
  border-radius: 10px;
  border: 2px solid var(--accent);
}

/* --- Vidéos --- */
.tav-gallery {
  margin-top: 3rem;
}

.tav-gallery h2 {
  font-family: 'MedievalSharp', cursive;
  color: var(--accent);
  margin-bottom: 1rem;
}

.grid-videos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.vid {
  background-color: var(--card);
  padding: 1rem;
  border-radius: 10px;
}

.vid iframe {
  width: 100%;
  height: 170px;
  border: 0;
  border-radius: 6px;
}

.caption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* --- Galerie images --- */
.tav-archive {
  margin-top: 3rem;
}

.tav-archive h2 {
  font-family: 'MedievalSharp', cursive;
  color: var(--accent);
  margin-bottom: 1rem;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  padding: 2rem 0;
}

.images-grid figure {
  width: 100%;
  max-width: 300px;
  background-color: rgba(20, 20, 22, 0.6);
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.images-grid img {
  width: 100%;
  height: 200px; /* déplace la contrainte ici */
  object-fit: contain;
  display: block;
}


.images-grid figcaption {
  padding: 0.3rem 0.5rem;
  background-color: rgba(0,0,0,0.6);
  border-top: 1px solid var(--accent);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}


.images-grid figure:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--accent);
}


/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  margin-top: 3rem;
  color: var(--muted);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .tav-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    right: 1rem;
    top: 64px;
    background: var(--card);
    padding: 1rem;
    border-radius: 8px;
    display: none;
    flex-direction: column;
  }

  .main-nav.show {
    display: flex;
  }
}
/* Supprimer le cadre autour de l'image maitre-frelon.png */
.tav-art img {
  border: none !important;
  box-shadow: none !important;
}
/* Mettre l'image à gauche et le texte à droite */
.tav-hero-inner {
  flex-direction: row;
  flex-wrap: nowrap;
}
@media (max-width: 900px) {
  .tav-hero-inner {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
  }
}