/*déplace gestion des service vers la gauche pour laisser place au bouton retour haut de page astra*/
.tarteaucitronAlertSmallBottom {
    right: 80px !important;
}

/****************************************************************
 * CORRECTIF STICKY FOOTER (MIS À JOUR)
 * Assure que le contenu principal s'étend pour pousser
 * le footer en bas de page sur TOUTES les pages,
 * y compris la page du formulaire de contact.
 ****************************************************************/
.site-content,
#primary,
.entry-content {
  flex-grow: 1;
}

/*=======================================================*/
/* CSS pour la page d'accueil Golfe de Saint-Tropez */
/*=======================================================*/

/* CSS pour la page d'accueil Golfe de Saint-Tropez - Charte graphique officielle */

.saint-tropez-homepage * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.saint-tropez-homepage {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* SECTION HERO - Réduite */
.saint-tropez-homepage .hero-section {
background: linear-gradient(
      135deg,
      rgba(52, 152, 219, 0.2),
      rgba(41, 128, 185, 0.25)
    ),
    url("https://golfe-saint-tropez.com/wp-content/uploads/2025/10/vue-du-golfe-de-saint-tropez.jpg");
  background-size: cover;
  background-position: center;
  height: 60vh; /* Réduit de 100vh à 60vh */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.saint-tropez-homepage .hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.saint-tropez-homepage .hero-title {
  font-size: 3rem; /* Réduit */
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: white;
}

.saint-tropez-homepage .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem; /* Réduit */
  opacity: 0.95;
}

.saint-tropez-homepage .cta-button {
  display: inline-block;
  background: #3498db; /* Bleu de votre charte */
  color: white;
  padding: 12px 30px; /* Réduit */
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid #3498db;
}

.saint-tropez-homepage .cta-button:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

/* SECTION FEATURES - Compacte avec votre charte */
.saint-tropez-homepage .features-section {
  padding: 60px 0; /* Réduit de 80px */
  background: #f8f9fc; /* Bleu très clair */
}

.saint-tropez-homepage .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.saint-tropez-homepage .section-title {
  text-align: center;
  font-size: 2.2rem; /* Réduit */
  color: #2c3e50;
  margin-bottom: 2.5rem; /* Réduit */
  position: relative;
}

.saint-tropez-homepage .section-title:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* Réduit */
  height: 3px;
  background: #3498db; /* Votre bleu */
  border-radius: 2px;
}

.saint-tropez-homepage .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Réduit */
  gap: 30px; /* Réduit */
  margin-top: 40px; /* Réduit */
}

/* Liens cliquables pour les cartes */
.saint-tropez-homepage .feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.saint-tropez-homepage .feature-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.saint-tropez-homepage .feature-card {
  background: white;
  padding: 30px 25px; /* Réduit */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.1); /* Ombre bleue */
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid rgba(52, 152, 219, 0.1);
  position: relative;
  cursor: pointer;
}

.saint-tropez-homepage .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
  border-color: #3498db;
}

/* Flèche indicative */
.saint-tropez-homepage .feature-arrow {
  position: absolute;
  bottom: 20px;
  right: 25px;
  font-size: 1.2rem;
  color: #3498db;
  opacity: 0;
  transition: all 0.3s ease;
}

.saint-tropez-homepage .feature-card:hover .feature-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.saint-tropez-homepage .feature-icon {
  width: 60px; /* Réduit */
  height: 60px;
  background: #3498db; /* Votre bleu */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px; /* Réduit */
  font-size: 1.5rem; /* Réduit */
  color: white;
}

.saint-tropez-homepage .feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
}

.saint-tropez-homepage .feature-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* SECTION ÉVÉNEMENTS - Complètement isolée */
.saint-tropez-homepage .events-preview {
  background: white;
  /* Aucun padding, votre shortcode gère tout */
}

.saint-tropez-homepage .events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 0 20px; /* Seulement padding top pour le titre */
}

.saint-tropez-homepage .events-section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 2rem; /* Réduit */
  position: relative;
}

.saint-tropez-homepage .events-section-title:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3498db;
  border-radius: 2px;
}

/* SECTION NEWSLETTER - Compacte */
.saint-tropez-homepage .newsletter-section {
  background: linear-gradient(135deg, #3498db, #2980b9); /* Votre bleu */
  padding: 50px 0; /* Réduit */
  text-align: center;
  color: white;
}

.saint-tropez-homepage .newsletter-section .section-title {
  color: white;
  font-size: 2rem; /* Réduit */
  margin-bottom: 1rem;
}

.saint-tropez-homepage .newsletter-section .section-title:after {
  background: white;
  width: 50px;
}

.saint-tropez-homepage .newsletter-form {
  max-width: 400px; /* Réduit */
  margin: 0 auto;
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.saint-tropez-homepage .newsletter-input {
  flex: 1;
  padding: 12px 20px; /* Réduit */
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  outline: none;
}

.saint-tropez-homepage .newsletter-button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 12px 25px; /* Réduit */
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.saint-tropez-homepage .newsletter-button:hover {
  background: #1a252f;
}

/* FOOTER - Compact */
.saint-tropez-homepage .footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0 20px; /* Réduit */
  text-align: center;
}

.saint-tropez-homepage .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Réduit */
  gap: 30px;
  margin-bottom: 25px;
}

.saint-tropez-homepage .footer-section h3 {
  margin-bottom: 15px;
  color: #3498db; /* Votre bleu */
  font-size: 1.1rem;
}

.saint-tropez-homepage .footer-section p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.saint-tropez-homepage .footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.saint-tropez-homepage .footer-section a:hover {
  color: #3498db;
}

.saint-tropez-homepage .footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 15px;
  color: #bdc3c7;
  font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px); /* Réduit */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
  .saint-tropez-homepage .hero-section {
    height: 50vh; /* Plus compact sur mobile */
  }

  .saint-tropez-homepage .hero-title {
    font-size: 2.2rem;
  }

  .saint-tropez-homepage .hero-subtitle {
    font-size: 1rem;
  }

  .saint-tropez-homepage .newsletter-form {
    flex-direction: column;
    max-width: 300px;
  }

  .saint-tropez-homepage .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .saint-tropez-homepage .features-section {
    padding: 40px 0;
  }
}


/**************************************
********* end page index***************
**************************************/

/****************************************************************
 * Fond conditionnel : fallback noir uniquement pour les pages
 * où une image est explicitement définie (via les variables).
 ****************************************************************/

/****************************************************************
 * STYLES GLOBAUX
 ****************************************************************/

body[class*="page-id-"] {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Valeurs par défaut */
  --background-image: none;        /* pas d’image par défaut */
  --background-fallback: transparent; /* pas de fond noir par défaut */
  --overlay-strength: 0;           /* voile inactif par défaut */
}

/* ::before = image + fallback */
body[class*="page-id-"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  /* Couleur fallback + image (si définie) */
  background: var(--background-fallback) center/cover no-repeat;
  background-image: var(--background-image);
}

/* ::after = voile */
body[class*="page-id-"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, var(--overlay-strength)) 0%,
    rgba(0, 0, 0, calc(var(--overlay-strength) * 0.6)) 40%,  
    rgba(0, 0, 0, calc(var(--overlay-strength) * 0.2)) 80%,  
    rgba(0, 0, 0, 0) 100%
  );
}

/* Contenu */
.site-content,
.site-below-footer-wrap {
  position: relative;
  z-index: 1;
}
.site-content { flex-grow: 1; }

/****************************************************************
 * TITRES ET TEXTES
 ****************************************************************/

/* Par défaut (pages normales sans image) → texte noir */
body h1.entry-title,
body h3.period-events-title,
body h3.city-events-title {
  color: #000;
  text-shadow: none;
}

/* Sur les pages avec image → texte blanc + ombre */
/*
body[class*="page-id-"] h1.entry-title,
body[class*="page-id-"] h3.period-events-title,
body[class*="page-id-"] h3.city-events-title {
  color: #fff;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}
*/

/* Sur les pages avec image → titres mis en valeur */
body[class*="page-id-"] h1.entry-title,
body[class*="page-id-"] h3.period-events-title,
body[class*="page-id-"] h3.city-events-title {
  color: #fff;
  font-weight: 700;
  text-align: center; /* centré pour plus d’impact */
  /*padding: 0.4em 1em;  espace autour du texte */
  /*display: inline-block;  pour que le fond s’adapte à la largeur du texte */
  /*background: rgba(0, 0, 0, 0.4) fond sombre semi-transparent */
   /* border-radius: 8px;coins arrondis */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* ombre plus marquée */
}


/****************************************************************
 * RESPONSIVE
 ****************************************************************/
@media (max-width: 767px) {
  body[class*="page-id-"] h1.entry-title { font-size: 2em; }
  body[class*="page-id-"] h3.period-events-title,
  body[class*="page-id-"] h3.city-events-title { font-size: 1.3em; }
}
@media (min-width: 768px) {
  body[class*="page-id-"] h1.entry-title { font-size: 2.8em; }
  body[class*="page-id-"] h3.period-events-title,
  body[class*="page-id-"] h3.city-events-title { font-size: 1.6em; }
}

/****************************************************************
 * VARIABLES PAR PAGE (avec fallback noir activé)
 ****************************************************************/
body.page-id-165 {/* page accueil*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #022176;
  --overlay-strength: 0.7;
}

body.page-id-364 {
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/10/vue-du-golfe-de-saint-tropez.jpg");
  --background-fallback: #000;
  --overlay-strength: 0.7;
}

body.page-id-134 {
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/08/unnamed-7_2153-scaled.jpg");
  --background-fallback: #000;
  --overlay-strength: 0.5;
}

body.page-id-433 {
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/08/unnamed-7_2153-scaled.jpg");
  --background-fallback: #000;
  --overlay-strength: 0.8;
}

body.page-id-104 {/*cavalaire*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.6;
}

body.page-id-81 {/*saint-tropez*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-90 {/*sainte-maxime*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-100 {/*ramatuelle*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-102 {/*grimaud*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-104 {/*gassin*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-90 {/*ramatuelle*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-116 {/*cogolin*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-119 {/*plan-de-la-tour*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-121 {/*cavalaire*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-124 {/*la-croix-valmer*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-3 {/*Politique de confidentialité*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-494 {/*Mentions légales*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-1042 {/*A propos*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}


body.page-id-1065 {/*A propos*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-1099 {/*Formulaire de proposition d'un événement dans le Golfe de Saint Tropez*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

body.page-id-1795 {/*Plan de Site Agenda du Golfe de Saint Tropez*/
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #000;
  --overlay-strength: 0.75;
}

/* Tous les posts d'événements WP Event Manager */
body.single-event_listing {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #022176;
  --overlay-strength: 0.7;
}

/* ::before pour l'image de fond des événements */
body.single-event_listing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--background-fallback) center/cover no-repeat;
  background-image: var(--background-image);
}

/* ::after pour le voile des événements */
body.single-event_listing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, var(--overlay-strength)) 0%,
    rgba(0, 0, 0, calc(var(--overlay-strength) * 0.6)) 40%,  
    rgba(0, 0, 0, calc(var(--overlay-strength) * 0.2)) 80%,  
    rgba(0, 0, 0, 0) 100%
  );
}

/* Liens de navigation sur les pages d'événements */
body.single-event_listing .nav-links a {
  color: #fff !important; /* Liens en blanc */
  text-decoration: none;
}

/* Au survol */
body.single-event_listing .nav-links a:hover {
  color: #ffd700 !important; /* Couleur dorée au survol, ou choisissez une autre */
  text-decoration: underline;
}

/* Variantes de couleur au survol (choisissez celle qui vous plaît) */

body.single-event_listing .nav-links a:hover {
  color: #87CEEB !important; /* Bleu clair */
}
/*
body.single-event_listing .nav-links a:hover {
  color: #ff6b6b !important;  Rouge corail 
}

body.single-event_listing .nav-links a:hover {
  color: #4CAF50 !important; Vert 
}
*/

body.single-event_listing .nav-links a:hover {
  color: #FF9800 !important; /* Orange */
}
*/

/* Si vous voulez aussi styliser le conteneur */
body.single-event_listing .nav-links {
  background: rgba(255, 255, 255, 0.1); /* Fond légèrement transparent */
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

/*
================================================
  APPLICATION DU FOND D'IMAGE AUX PAGES D'ARCHIVES D'ÉVÉNEMENTS
================================================
*/

/* 1. Définir les variables pour le fond des pages d'archives de catégories */
body.tax-event_listing_category {
  --background-image: url("https://golfe-saint-tropez.com/wp-content/uploads/2025/09/image_fond-logo-golfe-saint-tropez-scaled.png");
  --background-fallback: #022176; /* Même couleur que pour un événement seul */
  --overlay-strength: 0.75;
}

/* 2. Appliquer les styles de fond et de voile en regroupant les sélecteurs */
/* On cible à la fois les événements seuls ET les pages d'archives de catégories */
body.single-event_listing::before,
body.tax-event_listing_category::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--background-fallback) center/cover no-repeat;
  background-image: var(--background-image);
}

body.single-event_listing::after,
body.tax-event_listing_category::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, var(--overlay-strength)) 0%,
    rgba(0, 0, 0, calc(var(--overlay-strength) * 0.6)) 40%,  
    rgba(0, 0, 0, calc(var(--overlay-strength) * 0.2)) 80%,  
    rgba(0, 0, 0, 0) 100%
  );
}
/*
================================================
  COULEUR DU TITRE SUR LES PAGES AVEC FOND SOMBRE
================================================
*/
body.single-event_listing h1.wpem-heading-text,
body.tax-event_listing_category h1.wpem-heading-text {
  color: white !important;
}


/****supprimer les liens "Précédent" et "Suivant" sous un événement**/
.nav-links{
  display: none !important;
}

/*modifie voir sur le plan retour à la ligne */
.event-address {
    display: block !important;
}

.event-address .address-text {
    display: block !important;
    float: none !important;
    width: 100% !important;
}

.event-address .map-link {
    display: block;       /* mettre le lien en bloc pour que text-align fonctionne */
    text-align: center;   /* centrer horizontalement le texte du lien */
    margin-top: 5px;      /* optionnel : espace au-dessus */
}





/*===============================================
  CSS FOOTER LIENS
=================================================*/
.footer-custom-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  font-family: Arial, sans-serif;
  white-space: nowrap;
}

/* Liens desktop */
.footer-custom-menu a {
  color: #333333;
  text-decoration: none;
  padding: 5px 10px;
  position: relative;
}

.footer-custom-menu a:not(:last-child)::after {
  content: "|";
  color: #333333;
  position: absolute;
  right: 0;
}

.footer-custom-menu a:hover {
  color: #555555;
  text-decoration: underline;
}

/* Version mobile */
@media (max-width: 600px) {
  .footer-custom-menu {
    flex-direction: column;   /* empile les liens */
    align-items: center;      /* centre horizontalement */
    white-space: normal;      /* autorise retour à la ligne */
  }

  .footer-custom-menu a {
    padding: 8px 0;
    position: static;         /* enlève le positionnement absolu */
  }

  .footer-custom-menu a:not(:last-child)::after {
    content: "";              /* supprime le séparateur */
  }
}
