/* CSS CRESCENDO - Menu fixe en haut, contenu en dessous */

/* Navbar rouge fixée en haut */
.navbar {
  background: linear-gradient(135deg, #8B1A24 0%, #5A1118 100%) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1030 !important; /* Bootstrap: navbar = 1030, modal = 1050 */
  width: 100% !important;
}

/* Corriger le débordement de la navbar */
.navbar-nav {
  flex-wrap: wrap;
}

.navbar-nav .nav-link {
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem !important;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem !important;
  }
}

@media (min-width: 1200px) {
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem !important;
  }
}

/* Le contenu principal commence APRÈS la navbar */
main {
  margin-top: 120px;
  padding-top: 1rem;
}

/* Pages sans hero section : descendre encore plus pour montrer la photo complète */
body:not(:has(.hero-section)) main {
  margin-top: 200px;
  padding-top: 2rem;
}

/* Annuler le margin-top pour la page d'accueil qui a une hero section */
main:has(.hero-section) {
  margin-top: 0;
  padding-top: 0;
}

/* Styles pour formulaires - version simplifiée */
.form-control, textarea {
  cursor: text;
}

/* ========== STYLES POUR LES VAGUES DE LA PAGE D'ACCUEIL ========== */

/* Override Bootstrap .my-5 class ONLY in hero section to prevent unwanted spacing */
.hero-section .my-5 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Image de fond Crescendo avec overlay gradient */
.hero-section {
  background-image: linear-gradient(135deg, rgba(139, 26, 36, 0.18) 0%, rgba(90, 17, 24, 0.22) 100%), url('../images/crescendo.jpg') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  padding-top: 600px !important;
  min-height: 100vh !important;
  padding-bottom: 200px !important;
}

/* Section overlay comme dans l'original */
.section-overlay {
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Container au-dessus de l'overlay - remonter le titre animé encore plus */
.hero-section .container {
  position: relative;
  z-index: 2;
  margin-top: -2500px !important;
  padding-top: 0 !important;
}

/* S'assurer que les SVG prennent toute la largeur de l'écran */
.hero-section svg {
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
}

.hero-section > svg:first-of-type {
  top: 0 !important;
}

.hero-section > svg:last-of-type {
  bottom: -1px !important;
}

/* Styles pour les images cliquables des actualités */
.news-image-clickable {
  transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out !important;
}

.news-image-clickable:hover {
  transform: scale(1.02) !important;
  filter: brightness(1.1) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Modal image styles */
.modal-xl .modal-dialog {
  max-width: 90vw !important;
}

.modal-body img {
  border-radius: 8px !important;
}

/* Badge zoom animation */
.news-image-clickable .badge {
  transition: all 0.2s ease-in-out !important;
}

.news-image-clickable:hover .badge {
  transform: scale(1.1) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.9) !important;
}

/* CORRECTION GLOBALE - Forcer tous les boutons et liens à être cliquables */
/* Ceci corrige les problèmes du templatemo-tiya-golf-club.css */
.btn,
button,
a,
.btn-outline-secondary,
.btn-primary,
.btn-secondary,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-light,
.btn-outline-dark,
input,
select,
textarea,
.nav-link,
.navbar-brand {
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Curseur spécifique pour les liens */
a,
.nav-link,
.navbar-brand {
    cursor: pointer !important;
}

/* Curseur spécifique pour les champs de saisie */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea {
    cursor: text !important;
}

/* Plus d'interférence avec les modals Bootstrap */