/* ================================================
   CSS FINAL CORRIGÉ - AUGREDESCHEM.IN
   ================================================ */

/* ===== TITRE PRINCIPAL PAGE ===== */
.entry-title,
h1.elementor-heading-title,
.page-title {
    font-size: 38px !important;
    letter-spacing: 2px !important;
}

/* ===== CORRECTION MENU "PLUS" ===== */
.site-header nav a,
.site-navigation a,
.main-navigation a {
    font-size: 14px !important;
    text-transform: none !important;
}

.sub-menu,
.sub-menu li a {
    font-size: 13px !important;
    padding: 8px 15px !important;
    line-height: 1.5 !important;
}

/* ===== AMÉLIORATION LISIBILITÉ ET ACCESSIBILITÉ MENU ===== */
}

/* 7. Garder les sous-menus ouverts plus longtemps */
.menu-item:hover > .sub-menu,
header .menu-item:hover > .sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
   PAGE D'ACCUEIL
   ================================================ */

.intro-home {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.intro-home h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #2c5f8d;
  color: white;
}

.btn-primary:hover {
  background: #1e4766;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #2c5f8d;
  border: 2px solid #2c5f8d;
}

.btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* IMAGE ACCUEIL - CORRECTION */
.home .entry-content img,
.page-id-accueil img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
  margin: 2rem auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* ================================================
   PORTFOLIO
   ================================================ */

.portfolio-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.portfolio-intro .lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  font-style: italic;
}

.portfolio-collection {
  margin-bottom: 4rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 3rem;
}

.portfolio-collection:last-child {
  border-bottom: none;
}

.portfolio-collection h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.portfolio-collection .subtitle {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.portfolio-collection .description {
  max-width: 600px;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.portfolio-collection a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #2c5f8d;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s;
}

.portfolio-collection a:hover {
  background: #1e4766;
  transform: translateX(5px);
}

/* ================================================
   DERNIÈRES PHOTOS
   ================================================ */

.latest-intro {
  background: #f9f9f9;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #2c5f8d;
  text-align: left;
}

.latest-intro p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.latest-intro strong {
  color: #2c5f8d;
  font-size: 1.1rem;
}

.update-info {
  font-size: 0.9rem;
  color: #777;
  margin-top: 1rem;
}

#photo-count {
  font-weight: bold;
  color: #2c5f8d;
}

.foogallery {
  margin-top: 2rem;
}

.foogallery-caption {
  font-style: italic;
  color: #555;
  margin-top: 0.5rem;
}

/* ================================================
   HIVER EN VENDÉE - CORRECTION MISE EN PAGE
   ================================================ */

.series-card {
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.series-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.series-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #2c5f8d;
}

.series-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.photo-count {
  background: #e8f4f8;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  color: #2c5f8d;
}

.period {
  font-style: italic;
}

.series-description {
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}

.btn-discover {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #2c5f8d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-discover:hover {
  background: #1e4766;
  transform: translateX(5px);
}

/* ================================================
   BLOG
   ================================================ */

.blog-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
}

.blog-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c5f8d;
}

.blog-intro .lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
}

.blog-categories {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-categories h3 {
  margin-bottom: 1rem;
  color: #333;
}

.blog-categories ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.blog-categories li a {
  display: block;
  padding: 0.8rem 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

.blog-categories li a:hover {
  background: #2c5f8d;
  color: white;
  transform: translateX(5px);
}

.blog article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.blog article:last-child {
  border-bottom: none;
}

.blog .entry-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.blog .entry-meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog .entry-content {
  line-height: 1.8;
  color: #555;
}

.blog .read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.3rem;
  background: #2c5f8d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.blog .read-more:hover {
  background: #1e4766;
}

/* ================================================
   CONTACT
   ================================================ */

.contact-links {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid #e0e0e0;
  text-align: center;
}

.contact-links h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c5f8d;
}

.contact-links > p {
  color: #777;
  margin-bottom: 2rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.link-card:hover {
  background: #2c5f8d;
  border-color: #2c5f8d;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.2);
}

.link-card .icon {
  font-size: 2rem;
}

.link-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.link-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.link-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* ================================================
   FOOTER
   ================================================ */

.footer-legal {
  text-align: center;
  padding: 2rem 1rem;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #777;
  margin-top: 4rem;
}

.footer-legal a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #2c5f8d;
  text-decoration: underline;
}

/* ================================================
   PROTECTION DES IMAGES - OPTIMISÉE
   ================================================ */

/* Protection UNIQUEMENT pour galeries FooGallery */
.foogallery img,
.foogallery-container img,
.foogallery-lightbox img {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  -webkit-touch-callout: none !important;
}

.foogallery,
.foogallery-container {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  .intro-home h2 {
    font-size: 1.5rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
  
  .series-card {
    padding: 1.5rem;
  }
  
  .series-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .quick-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .blog-intro h1 {
    font-size: 2rem;
  }
  
  .blog-categories ul {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   FIN DU CSS CORRIGÉ
   ================================================ */
/* ================================================
   AMÉLIORATION FOOGALLERY - NAVIGATION
   ================================================ */

/* Boutons Précédent/Suivant plus grands et visibles */
.foogallery-lightbox .fg-prev,
.foogallery-lightbox .fg-next {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    font-size: 30px !important;
    color: #2c5f8d !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.foogallery-lightbox .fg-prev:hover,
.foogallery-lightbox .fg-next:hover {
    background: rgba(44, 95, 141, 1) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Bouton Fermer (X) plus grand */
.foogallery-lightbox .fg-close {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    color: #2c5f8d !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.foogallery-lightbox .fg-close:hover {
    background: rgba(200, 0, 0, 0.9) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Message aide utilisateur */
.foogallery-lightbox::after {
    content: "ESC pour fermer • ← → pour naviguer";
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Compteur de photos plus visible */
.foogallery-lightbox .fg-counter {
    font-size: 16px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    color: white !important;
}
/* Transition douce entre images */
.foogallery-lightbox .fg-item {
    transition: opacity 0.3s ease-in-out !important;
}

/* Effet zoom subtil au survol */
.foogallery-item {
    transition: transform 0.3s ease !important;
}

.foogallery-item:hover {
    transform: scale(1.02) !important;
    z-index: 1 !important;
}/* Transition douce entre images */
.foogallery-lightbox .fg-item {
    transition: opacity 0.3s ease-in-out !important;
}

/* Effet zoom subtil au survol */
.foogallery-item {
    transition: transform 0.3s ease !important;
}

.foogallery-item:hover {
    transform: scale(1.02) !important;
    z-index: 1 !important;
}
/* ========================================
  /* ========================================
   PAGE D'ACCUEIL - DESIGN CLASSIQUE
   ======================================== */

/* Animation au chargement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Conteneur principal */
.intro-home {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

/* Titre de bienvenue */
.intro-home .welcome-title {
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  color: #2c5f8d;
  line-height: 1.4;
}

/* Texte d'introduction */
.intro-home .intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Conteneur des boutons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Styles des boutons */
.btn-primary, 
.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
}

/* Bouton principal */
.btn-primary {
  background: #2c5f8d;
  color: white;
  border: 2px solid #2c5f8d;
}

.btn-primary:hover {
  background: #1e4766;
  border-color: #1e4766;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.3);
}

/* Bouton secondaire */
.btn-secondary {
  background: white;
  color: #2c5f8d;
  border: 2px solid #2c5f8d;
}

.btn-secondary:hover {
  background: #2c5f8d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.2);
}

/* Image d'accueil - Réduction taille */
.home .entry-content img {
  max-width: 90%;
  max-height: 70vh;
  width: auto;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 4px;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 768px) {
  .intro-home .welcome-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .intro-home .intro-text {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .btn-primary, 
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 0.8rem 1.5rem;
  }
  
  .home .entry-content img {
    max-width: 100%;
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .intro-home {
    padding: 0 1rem;
    margin: 1.5rem auto 2rem;
  }
  
  .intro-home .welcome-title {
    font-size: 1.3rem;
  }
  
  .intro-home .intro-text {
    font-size: 0.95rem;
  }
}

/* ========================================
   COMPTEURS SÉRIES - HIVER EN VENDÉE
   ======================================== */

.series-count {
  text-align: center;
  color: #5a7c99;
  font-size: 1.1rem;
  margin: 0.5rem 0 1rem 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.series-count .period {
  color: #5a7c99;
  font-weight: 400;
}

.series-count .auto-count {
  font-weight: 700;
  color: #5a7c99;
  min-width: 20px;
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .series-count {
    font-size: 1rem;
  }
}