/*
Theme Name: PAVM
Theme URI: https://vatican-monacopatrons.com/
Author: PRIMALYS
Description: Thème personnalisé pour Vatican Monaco Patrons.
Version: 1.2
Text Domain: pavm
*/

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: url('images/Background3.png') repeat;
}

#fav-containerwrap {
  min-height: 100vh;
}

/* Centre le site dans un bloc */
#site-header,
#hero-slider,
#site-main,
#site-footer {
  max-width: 1140px;
  margin: 0 auto;
}

/* HEADER */
#site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ddd;
}

#site-header .logo img {
  max-height: 70px;
  height: auto;
}

/* MENU principal en boutons */
.main-nav .main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.main-nav .main-menu li {
  list-style: none;
}

/* ---- MENU STYLE JOOMLA-LIKE ---- */
.main-nav .main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  justify-content: center;   /* centré */
}

.main-nav .main-menu li {
  list-style: none;
}

/* Boutons */
.main-nav .main-menu a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d7d7d7;
  color: #223956;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* Survol : léger rehaussement et assombrissement */
.main-nav .main-menu a:hover {
  background: #ffffff;
  border-color: #b5b5b5;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Page active / menu sélectionné */
.main-nav .main-menu .current-menu-item > a,
.main-nav .main-menu .current_page_item > a {
  background: #223956;
  color: #fff;
  border-color: #223956;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}


/* CONTENU */
#site-main {
  max-width: 1100px;      /* Aligné parfaitement avec le slider */
  margin: 25px auto 40px auto;
  padding: 30px 20px;     /* Plus fin, ne dépasse plus */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#site-main img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin-bottom: 10px;
  vertical-align: top;
}






.page-title,
h1.page-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 26px;
  text-transform: uppercase;
}

/* TEXTE */
#site-main p {
  line-height: 1.6;
  font-size: 14px;
  color: #333;
}

/* SLIDER */
#hero-slider {
  position: relative;
  margin: 30px auto 10px auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#hero-slider .slider-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

#hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

#hero-slider .slide.active {
  opacity: 1;
  position: relative;
}

#hero-slider img {
  display: block;
  width: 100%;
  height: auto;
}

/* Flèches du slider */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.9);
  color: #555;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 34px;
  text-align: center;
  border-radius: 2px;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-nav:hover {
  background: #fff;
  border-color: #999;
  color: #000;
}

/* FOOTER */
#site-footer {
  text-align: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  border-top: 1px solid #ddd;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  #site-main {
    padding: 20px;
  }

  #hero-slider {
    margin-top: 15px;
  }
}


/* === VIGNETTES SLIDER === */

.slider-thumbs {
  display: flex;
  gap: 4px;
  margin: 8px auto 0 auto;
  padding: 4px;
  justify-content: center;
  max-width: 1100px;
  overflow-x: auto;
}

.slider-thumb {
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slider-thumb img {
  display: block;
  height: 70px;       /* hauteur des vignettes */
  width: auto;
  object-fit: cover;
}

.slider-thumb.active,
.slider-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}


