/* RESET & VARIABLES */
:root {
  --primary: #6B5BFF;
  --primary-dark: #5548d6;
  --primary-light: #8a7dff;
  --secondary: #FF9E6B;
  --accent: #41D395;
  --white: #ffffff;
  --light-bg: #f8f9ff;
  --light: #f2f4ff;
  --dark: #222222;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(107, 91, 255, 0.15);
  --shadow-hover: 0 10px 30px rgba(107, 91, 255, 0.25);
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), #FF7B3B);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* NAVBAR MODERNISÉE */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1002;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transform: translateZ(0);
  will-change: transform;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1002;
}

.logo-img {
  height: 50px;
  transition: var(--transition);
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-palet {
  color: #000000;
}

.logo-35 {
  color: var(--primary);
  position: relative;
  margin-left: 2px;
}

.logo-badge {
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 50%;
  margin-left: 5px;
  position: absolute;
  top: -8px;
  right: -15px;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-center {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin-right: 1.5rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
  border-radius: 3px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.admin-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 15px;
  border-radius: 50px;
  background: rgba(107, 91, 255, 0.1);
  transition: var(--transition);
}

.admin-link:hover {
  background: rgba(107, 91, 255, 0.2);
  transform: translateY(-2px);
}

.admin-link i {
  margin-right: 5px;
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

/* HERO SECTION */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin: 4rem 0 3rem;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  color: var(--primary-dark);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* BOUTON DE CHANGEMENT DE VUE - En haut à droite */
.view-toggle-container {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(107, 91, 255, 0.1);
  border: 1px solid rgba(107, 91, 255, 0.15);
  transition: all 0.3s ease;
  position: absolute;
  top: 0;
  right: 0;
}

.view-toggle-container:hover {
  box-shadow: 0 6px 20px rgba(107, 91, 255, 0.15);
  border-color: rgba(107, 91, 255, 0.25);
}

.view-toggle-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gray);
  font-size: 1.1rem;
  position: relative;
}

.view-toggle-btn:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.view-toggle-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
}

.view-toggle-btn.active:hover {
  transform: scale(1);
}

/* AGENDA CONTROLS */
.agenda-controls {
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

/* CORRECTIONS POUR LA BARRE DE RECHERCHE */
.search-container {
  position: relative;
  margin-bottom: 2rem;
  max-width: 100%;
}

.search-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(107, 91, 255, 0.1);
  padding: 5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(107, 91, 255, 0.15);
  display: flex;
  align-items: center;
}

.search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(107, 91, 255, 0.4);
  box-shadow: 0 12px 40px rgba(107, 91, 255, 0.2);
  transform: translateY(-2px);
}

.search-container input {
  width: 100%;
  padding: 16px 25px 16px 55px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  background: transparent;
  color: var(--dark);
  transition: var(--transition);
  flex: 1;
}

.search-container input::placeholder {
  color: #a0a0c0;
  font-weight: 400;
}

.search-container input:focus {
  outline: none;
  box-shadow: none;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.3rem;
  z-index: 2;
  transition: var(--transition);
}

.search-wrapper:focus-within .search-icon {
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.search-actions {
  display: flex;
  gap: 5px;
  padding-right: 10px;
}

.search-filter-btn {
  background: var(--primary-light);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.search-filter-btn:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.search-btn {
  background: var(--gradient);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.search-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
}

/* Filtres avancés */
.advanced-filters {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
  display: none;
  animation: fadeInUp 0.4s ease;
}

.advanced-filters.active {
  display: block;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.filter-group {
  margin-bottom: 0;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.filter-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--light-bg);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 91, 255, 0.2);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

.filter-actions button {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.filter-apply {
  background: var(--primary);
  color: var(--white);
}

.filter-apply:hover {
  background: var(--primary-dark);
}

.filter-reset {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--gray-light) !important;
}

.filter-reset:hover {
  background: var(--gray-light);
  color: var(--dark);
}

/* Suggestion de recherche */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  margin-top: 5px;
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--light-bg);
}

.suggestion-item i {
  color: var(--primary);
  font-size: 1rem;
}

.suggestion-text {
  flex: 1;
}

.suggestion-city {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 2px;
}

/* Indicateur de recherche */
.search-status {
  text-align: center;
  margin: 1rem 0;
  color: var(--gray);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .agenda-controls {
    padding: 1rem 0.5rem;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .search-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .search-container input {
    padding: 16px 90px 16px 50px;
    font-size: 1rem;
    width: 100%;
  }

  .search-icon {
    left: 18px;
    font-size: 1.1rem;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-actions {
    right: 8px;
    gap: 6px;
  }

  .search-filter-btn,
  .search-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .agenda-controls {
    padding: 0.75rem 0.25rem;
  }

  .search-container {
    margin-bottom: 1.5rem;
  }

  .search-wrapper {
    padding: 4px;
  }

  .search-container input {
    padding: 14px 85px 14px 45px;
    font-size: 0.95rem;
  }

  .search-icon {
    left: 15px;
    font-size: 1rem;
  }

  .search-filter-btn,
  .search-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* AGENDA LIST */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.agenda-date {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.date-badge {
  background: var(--light-bg);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--gray-light);
}

.tournoi-card {
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  transition: var(--transition);
  border-left: 3px solid var(--primary);
}

.tournoi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(107, 91, 255, 0.15);
}

.tournoi-info {
  margin-bottom: 1rem;
}

.tournoi-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.tournoi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.tournoi-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tournoi-meta i {
  color: var(--primary);
}

.tournoi-description {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.75rem 0 1rem 0;
  padding: 0.75rem;
  background: var(--light-bg);
  border-radius: 8px;
}

.tournoi-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

.tournoi-actions .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  min-width: 200px;
}

.tournoi-actions .btn-primary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(107, 91, 255, 0.15);
}

.tournoi-actions .btn-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 91, 255, 0.3);
}

.tournoi-actions .btn-primary i {
  font-size: 1.1rem;
}

/* Masquer le bouton secondaire (Participer) s'il existe */
.tournoi-actions .btn-secondary {
  display: none !important;
}

/* MAP SECTION */
.map-section {
  background: var(--light-bg);
}

.map-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 500px;
}

#map {
  height: 100%;
  width: 100%;
  z-index: 1;
}

/* LÉGENDE CARTE - HORIZONTALE BAS GAUCHE */
.map-legend {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1rem;
  border-radius: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: none;
}

.map-legend h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.legend-items {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray);
  white-space: nowrap;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ABOUT SECTION AMÉLIORÉE */
.about {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(107, 91, 255, 0.05)"/></svg>');
  background-repeat: no-repeat;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-text {
  padding-right: 2rem;
}

.about-intro {
  margin-bottom: 3rem;
}

.about-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 2rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.feature-content p {
  color: var(--gray);
  line-height: 1.6;
}

.about-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 91, 255, 0.2) 0%, rgba(65, 211, 149, 0.2) 100%);
  z-index: 1;
}

/* ADD TOURNAMENT SECTION */
.add-tournament {
  padding: 5rem 0;
  background: var(--white);
}

.add-tournament .section-header h2 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.add-tournament .section-header p {
  font-size: 1.1rem;
  color: var(--gray);
}

.tournament-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(107, 91, 255, 0.1);
  transition: var(--transition);
}

.tournament-form:hover {
  box-shadow: 0 15px 40px rgba(107, 91, 255, 0.2);
  transform: translateY(-5px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group i {
  position: absolute;
  right: 20px;
  top: 45px;
  color: var(--primary);
  font-size: 1.1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.form-actions .btn {
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.form-actions .btn-primary {
  background: var(--gradient);
  color: var(--white);
  border: none;
  box-shadow: 0 5px 15px rgba(107, 91, 255, 0.3);
}

.form-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 91, 255, 0.4);
}

.form-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  z-index: -1;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: right;
  border-radius: 50px;
}

.form-actions .btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.form-actions .btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.form-actions .btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  background: var(--light-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(107, 91, 255, 0.15);
  background: var(--white);
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0a0c0;
  font-style: italic;
}

.coords-container {
  display: flex;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* CONTACT SECTION */
/* CONTACT SECTION - VERSION MOBILE FIRST */
.contact {
  padding: 3rem 0;
  background: var(--light-bg);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Informations de contact - MOBILE */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-align: left;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--primary);
  min-width: 25px;
  text-align: center;
}

.contact-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-item p {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Formulaire de contact - MOBILE */
.contact-form {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(107, 91, 255, 0.1);
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  background: var(--light-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 91, 255, 0.15);
  background: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0a0c0;
  font-size: 0.9rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 25px;
  transition: var(--transition);
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(107, 91, 255, 0.3);
}

/* Statut du message */
.message-status {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  display: none;
}

.message-status.success {
  background: rgba(72, 187, 120, 0.1);
  color: #48bb78;
  border: 1px solid rgba(72, 187, 120, 0.3);
  display: block;
}

.message-status.error {
  background: rgba(245, 101, 101, 0.1);
  color: #f56565;
  border: 1px solid rgba(245, 101, 101, 0.3);
  display: block;
}

/* ===== TABLETTE (768px et plus) ===== */
@media (min-width: 768px) {
  .contact {
    padding: 4rem 0;
  }

  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .contact-item {
    padding: 1.2rem;
    flex-direction: row;
    text-align: left;
  }

  .contact-item i {
    font-size: 1.4rem;
    min-width: 30px;
  }

  .contact-item h3 {
    font-size: 1rem;
  }

  .contact-item p {
    font-size: 0.95rem;
  }

  .social-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .contact-form .btn {
    padding: 15px 25px;
    font-size: 1.05rem;
  }
}

/* ===== DESKTOP (992px et plus) ===== */
@media (min-width: 992px) {
  .contact {
    padding: 5rem 0;
  }

  .contact-content {
    gap: 4rem;
  }

  .contact-info {
    gap: 2rem;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .contact-item i {
    font-size: 1.5rem;
  }

  .contact-item h3 {
    font-size: 1.1rem;
  }

  .contact-item p {
    font-size: 1rem;
  }

  .contact-form {
    padding: 2.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 15px 20px;
  }

  .contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 91, 255, 0.4);
  }
}

/* ===== TRÈS PETITS ÉCRANS (moins de 360px) ===== */
@media (max-width: 360px) {
  .contact {
    padding: 2rem 0;
  }

  .contact-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .contact-item i {
    font-size: 1.1rem;
    min-width: 20px;
  }

  .contact-item h3 {
    font-size: 0.9rem;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .contact-form .btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .social-links a {
    width: 35px;
    height: 35px;
  }
}

/* ===== ORIENTATION PAYSAGE SUR MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .contact {
    padding: 2rem 0;
  }

  .contact-content {
    gap: 1.5rem;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .contact-item {
    flex: 1;
    min-width: calc(50% - 0.8rem);
  }

  .contact-form {
    padding: 1.2rem;
  }
}

/* ===== AMÉLIORATIONS TOUCH ===== */
@media (hover: none) and (pointer: coarse) {
  .contact-item:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .contact-form .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    transform: none;
  }
}

/* ===== HAUTEUR LIMITÉE ===== */
@media (max-height: 600px) and (orientation: landscape) {
  .contact {
    padding: 1.5rem 0;
  }

  .contact-content {
    gap: 1rem;
  }

  .contact-item {
    padding: 0.8rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .contact-form textarea {
    min-height: 80px;
  }
}

/* FOOTER */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* Styles améliorés pour la newsletter */
/* NEWSLETTER STYLES SIMPLIFIÉS - BOUTON PLUS PETIT */
.footer-col:nth-child(4) {
  position: relative;
}

.newsletter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.newsletter-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.newsletter-form {
  position: relative;
  display: flex;
  margin-top: 1.5rem;
  background: transparent;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  min-height: 48px;
}

.newsletter-form:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(107, 91, 255, 0.3);
  transform: translateY(-2px);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: var(--white);
  color: var(--dark);
  font-size: 0.95rem;
  outline: none;
  border-radius: 50px 0 0 50px;
  min-width: 0;
}

.newsletter-form input::placeholder {
  color: var(--gray);
  font-style: italic;
}

.newsletter-form button {
  padding: 12px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  border-radius: 0 50px 50px 0;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
}

.newsletter-form button i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
  transform: translateX(1px);
}

.newsletter-benefits {
  margin-top: 15px;
  padding-left: 20px;
}

.newsletter-benefits li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 8px;
  position: relative;
  list-style: none;
}

.newsletter-benefits li:before {
  content: "✓";
  color: var(--primary-light);
  font-weight: bold;
  margin-right: 8px;
}

#newsletter-message {
  margin-top: 1rem;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
  border: 1px solid transparent;
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newsletter-success {
  background-color: rgba(52, 211, 153, 0.15);
  color: #10b981;
  border-color: rgba(52, 211, 153, 0.3) !important;
}

.newsletter-error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* VERSION MOBILE */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    border-radius: 12px;
    min-height: auto;
  }

  .newsletter-form input {
    border-radius: 12px 12px 0 0;
    text-align: center;
    padding: 14px 20px;
  }

  .newsletter-form button {
    border-radius: 0 0 12px 12px;
    padding: 14px 20px;
    min-width: 100%;
  }
}

/* VERSION TABLETTE */
@media (max-width: 992px) and (min-width: 769px) {
  .newsletter-form button {
    padding: 12px 14px;
    min-width: 48px;
  }
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* COOKIE BANNER */
/* Bannière cookies - Version carrée en bas à droite */
/* ===== MODALE COOKIES MODERNE ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 450px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  animation: slideInUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  border: 3px solid var(--primary);
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.cookie-icon {
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.1;
  color: var(--primary);
}

.cookie-content {
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.cookie-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary);
}

.cookie-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cookie-accept {
  background: var(--primary);
  color: white;
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 91, 255, 0.4);
  background: var(--primary-dark);
}

.cookie-reject {
  background: var(--gray-light);
  color: var(--gray);
}

.cookie-reject:hover {
  background: #ddd;
}

.cookie-customize {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cookie-customize:hover {
  background: rgba(107, 91, 255, 0.1);
  border-color: var(--primary-dark);
}

/* Modal des préférences */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.cookie-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalZoomIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalZoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.cookie-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 2px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(107, 91, 255, 0.05);
}

.cookie-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-modal-title i {
  font-size: 1.5rem;
  color: var(--primary);
}

.cookie-modal-title h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--dark);
  font-weight: 700;
}

.cookie-modal-close {
  background: var(--gray-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--gray);
}

.cookie-modal-close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.cookie-modal-body {
  padding: 24px;
}

.cookie-modal-intro {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.cookie-preference {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.cookie-preference:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.cookie-preference.essential {
  background: rgba(107, 91, 255, 0.08);
  border: 2px solid var(--primary);
}

.cookie-preference-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.cookie-preference-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cookie-preference-info {
  flex: 1;
}

.cookie-preference-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--dark);
  font-weight: 600;
}

.cookie-preference-info p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}

.cookie-preference-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-status {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.cookie-slider {
  background: var(--primary);
}

input:checked+.cookie-slider:before {
  transform: translateX(24px);
}

input:disabled+.cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 16px 24px 24px;
  text-align: center;
}

.cookie-save {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(107, 91, 255, 0.4);
}

.cookie-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 91, 255, 0.6);
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }

  .cookie-container {
    padding: 20px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .cookie-preference {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-preference-toggle {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .cookie-content h3 {
    font-size: 1.1rem;
  }

  .cookie-content p {
    font-size: 0.9rem;
  }

  .cookie-modal-header {
    padding: 20px 16px 12px;
  }

  .cookie-modal-title h3 {
    font-size: 1.1rem;
  }

  .cookie-modal-body {
    padding: 16px;
  }

  .cookie-preference {
    padding: 12px;
  }

  .cookie-preference-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text {
    padding-right: 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {

  /* Navbar fixée sur mobile - Au-dessus de l'overlay */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1002;
    transform: translateZ(1px);
  }

  /* Ajouter un padding au body pour compenser la navbar fixe */
  body {
    padding-top: 80px;
  }

  /* Bouton burger stylé */
  .mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    z-index: 1002;
  }

  /* Menu vertical compact et épuré - Au-dessus de l'overlay */
  .nav-center {
    position: fixed;
    top: 0;
    right: -100%;
    width: 55%;
    max-width: 240px;
    min-height: 100vh;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 110px 1.5rem 2rem;
  }

  .nav-center.active {
    right: 0;
  }

  /* Menu vertical épuré */
  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--dark);
  }

  .nav-link:hover {
    background: var(--light-bg);
    color: var(--primary);
  }

  .nav-link.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(107, 91, 255, 0.3);
  }

  .nav-link::after {
    display: none;
  }

  /* Bouton admin compact */
  .admin-link {
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    background: rgba(107, 91, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.95rem;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
  }

  .admin-link:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(107, 91, 255, 0.3);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .filters {
    flex-direction: column;
    gap: 1rem;
  }

  .tournoi-card {
    padding: 1.25rem;
  }

  .tournoi-info h3 {
    font-size: 1.2rem;
  }

  .tournoi-meta {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .tournoi-description {
    font-size: 0.85rem;
    padding: 0.625rem;
    margin: 0.625rem 0 0.875rem 0;
  }

  .tournoi-actions {
    justify-content: center;
    padding-top: 0.875rem;
    margin-top: 1rem;
  }

  .tournoi-actions .btn {
    padding: 12px 24px;
    min-width: 180px;
    max-width: 90%;
    font-size: 0.9rem;
  }

  .tournoi-actions .btn-primary i {
    font-size: 1rem;
  }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
  .tournoi-actions .btn {
    padding: 11px 20px;
    min-width: 160px;
    font-size: 0.875rem;
  }

  .tournoi-actions .btn-primary i {
    font-size: 0.95rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-text {
    min-width: auto;
  }

  .cookie-actions {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .agenda-date {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tournament-form {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .coords-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* Ajustement de la hauteur de la section hero sur mobile */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero .container {
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .hero-content {
    margin-top: 20px;
  }

  .hero-image {
    max-height: 40vh;
    margin-top: 20px;
  }

  .hero-image img {
    object-fit: contain;
    max-height: 100%;
  }
}

.agenda-section {
  padding: 2rem 0;
  margin: 2rem auto;
}

/* Correction pour éviter les problèmes de scroll sur iOS */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

.tournoi-adresse {
  color: var(--gray);
  font-size: 0.875rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tournoi-adresse i {
  color: var(--primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Styles pour la modale RGPD - DESIGN AMÉLIORÉ */
/* Styles pour la modale RGPD - DESIGN SIMPLIFIÉ */
#rgpd-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

#rgpd-modal .modal-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#rgpd-modal .modal-content h3 {
  background: var(--white);
  color: var(--primary-dark);
  padding: 1.2rem 1.5rem;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-light);
  text-align: center;
}

.rgpd-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rgpd-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.rgpd-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rgpd-section h4 {
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
}

.rgpd-section p {
  color: var(--gray);
  margin-bottom: 0.8rem;
}

.rgpd-section ul {
  color: var(--gray);
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.rgpd-section ul li {
  margin-bottom: 0.4rem;
}

/* Style pour les cases à cocher */
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.8rem;
  background: var(--light-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-toggle:hover {
  background: var(--light);
}

.cookie-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.toggle-text {
  color: var(--dark);
  font-weight: 500;
  flex: 1;
}

#rgpd-modal .modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--gray-light);
  background: var(--light-bg);
}

#rgpd-modal .modal-actions .btn {
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 0.9rem;
}

#rgpd-modal .modal-actions .btn-secondary {
  background: var(--white);
  color: var(--gray);
  border-color: var(--gray-light);
}

#rgpd-modal .modal-actions .btn-secondary:hover {
  background: var(--gray-light);
  color: var(--dark);
}

#rgpd-modal .modal-actions .btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

#rgpd-modal .modal-actions .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  #rgpd-modal .modal-content {
    max-height: 85vh;
    border-radius: 10px;
  }

  #rgpd-modal .modal-content h3 {
    padding: 1rem;
    font-size: 1.1rem;
  }

  .rgpd-content {
    padding: 1rem;
  }

  #rgpd-modal .modal-actions {
    flex-direction: column;
    padding: 1rem;
  }

  #rgpd-modal .modal-actions .btn {
    width: 100%;
  }
}

/* Ajustements de la légende de carte pour mobile */
@media (max-width: 768px) {
  .map-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    bottom: 10px;
    left: 10px;
    border-radius: 12px;
  }

  .map-legend h4 {
    font-size: 0.75rem;
  }

  .legend-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .legend-item {
    font-size: 0.7rem;
  }

  .legend-color {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .map-legend {
    padding: 0.4rem 0.6rem;
    gap: 0.4rem;
  }

  .map-legend h4 {
    font-size: 0.7rem;
  }

  .legend-item {
    font-size: 0.65rem;
  }

  .legend-color {
    width: 7px;
    height: 7px;
  }
}

/* OPTIMISATION HERO POUR PETITS ÉCRANS */
.new-hero {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  /* Pour iOS */
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

.new-hero-container {
  min-height: calc(100vh - 100px);
  align-items: center;
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
  .new-hero {
    padding: 1rem 0;
  }

  .hero-content h1 {
    font-size: 1.6rem !important;
    min-height: 80px !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }

  .hero-content p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem !important;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .phone-mockup {
    width: 160px !important;
    height: 320px !important;
    border-radius: 30px !important;
  }

  .animated-popup {
    font-size: 0.65rem !important;
    padding: 5px 8px !important;
    max-width: 70% !important;
  }

  .popup-1 {
    top: 12% !important;
    left: 5% !important;
  }

  .popup-2 {
    top: 40% !important;
    right: 5% !important;
  }

  .popup-3 {
    top: 60% !important;
    left: 10% !important;
  }

  .popup-4 {
    top: 22% !important;
    right: 10% !important;
  }
}

/* Ajustements pour écrans moyens */
@media (max-width: 768px) and (min-width: 481px) {
  .hero-content h1 {
    font-size: 2rem !important;
    min-height: 100px !important;
  }

  .hero-content p {
    font-size: 1.1rem !important;
  }

  .phone-mockup {
    width: 200px !important;
    height: 380px !important;
  }
}

/* Garantir que le contenu reste visible */
.hero-content {
  position: relative;
  z-index: 3;
}

/* Éviter le débordement sur iOS */
@supports (-webkit-touch-callout: none) {
  .new-hero {
    min-height: -webkit-fill-available;
  }
}

.message-status {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  display: none;
}

.message-status.success {
  background: rgba(72, 187, 120, 0.1);
  color: #48bb78;
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.message-status.error {
  background: rgba(245, 101, 101, 0.1);
  color: #f56565;
  border: 1px solid rgba(245, 101, 101, 0.3);
}

/*
 ========================================
   STYLES POUR LES TOURNOIS LOINTAINS
   ======================================== */

.distant-tournaments-toggle {
  text-align: center;
  margin: 3rem auto;
  padding: 2rem 1rem;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.distant-tournaments-toggle .btn {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 91, 255, 0.2);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  min-width: 280px;
}

.distant-tournaments-toggle .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 91, 255, 0.35);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.distant-tournaments-toggle .btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(107, 91, 255, 0.3);
}

.distant-tournaments-toggle .btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.distant-tournaments-toggle .btn:hover i {
  transform: scale(1.1);
}

.distant-section-title {
  margin: 3rem 0 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #e9ecff 100%);
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary);
  box-shadow: 0 2px 10px rgba(107, 91, 255, 0.1);
}

.distant-section-title h3 {
  color: var(--primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 700;
}

.distant-section-title i {
  font-size: 1.8rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.distant-date {
  opacity: 0.9;
}

.distant-tournament {
  opacity: 0.95;
}

.distant-tournament:hover {
  opacity: 1;
}

/* Animation d'apparition pour les tournois lointains */
@keyframes fadeInUpDistant {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.distant-tournament,
.distant-date {
  animation: fadeInUpDistant 0.5s ease forwards;
}

/* ========================================
   RESPONSIVE TOURNOIS LOINTAINS
   ======================================== */

/* Tablettes */
@media (max-width: 992px) {
  .distant-tournaments-toggle {
    margin: 2.5rem auto;
    padding: 1.5rem 1rem;
  }

  .distant-tournaments-toggle .btn {
    padding: 14px 28px;
    font-size: 1rem;
    min-width: 260px;
  }

  .distant-section-title {
    margin: 2.5rem 0 1.5rem 0;
    padding: 1.25rem 1.5rem;
  }

  .distant-section-title h3 {
    font-size: 1.3rem;
  }

  .distant-section-title i {
    font-size: 1.6rem;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  .distant-tournaments-toggle {
    margin: 2rem auto;
    padding: 1.5rem 0.5rem;
  }

  .distant-tournaments-toggle .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    min-width: auto;
    max-width: 90%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .distant-tournaments-toggle .btn i {
    font-size: 1.1rem;
  }

  .distant-section-title {
    margin: 2rem 0 1.5rem 0;
    padding: 1rem 1.25rem;
  }

  .distant-section-title h3 {
    font-size: 1.15rem;
    flex-wrap: wrap;
    gap: 8px;
  }

  .distant-section-title i {
    font-size: 1.4rem;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .distant-tournaments-toggle {
    margin: 1.5rem auto;
    padding: 1rem 0.5rem;
  }

  .distant-tournaments-toggle .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    gap: 8px;
    width: 95%;
  }

  .distant-tournaments-toggle .btn i {
    font-size: 1rem;
  }

  .distant-section-title {
    margin: 1.5rem 0 1rem 0;
    padding: 0.875rem 1rem;
    border-radius: 12px;
  }

  .distant-section-title h3 {
    font-size: 1rem;
    gap: 6px;
  }

  .distant-section-title i {
    font-size: 1.2rem;
  }
}


/* ========================================
   BADGE NEWSLETTER DANS LE TITRE
   ======================================== */

.newsletter-badge,
.newsletter-badge-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(107, 91, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(107, 91, 255, 0.2);
  box-shadow: 0 8px 32px rgba(107, 91, 255, 0.15);
  vertical-align: middle;
}

.newsletter-badge:hover,
.newsletter-badge-left:hover {
  background: rgba(107, 91, 255, 0.25);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(107, 91, 255, 0.25);
  border-color: rgba(107, 91, 255, 0.4);
}

.newsletter-badge i,
.newsletter-badge-left i {
  font-size: 1rem;
  animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(-10deg);
  }

  20%,
  40% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

.newsletter-badge span,
.newsletter-badge-left span {
  white-space: nowrap;
}

/* Le badge est toujours en dessous du titre */
.section-header h2+.newsletter-badge,
.section-header h2+.newsletter-badge-left {
  display: inline-flex;
  margin-bottom: 2rem;
  margin-left: 0;
  margin-top: -1rem;
}

/* Responsive pour le badge newsletter */
@media (max-width: 768px) {

  .newsletter-badge,
  .newsletter-badge-left {
    font-size: 0.9rem;
    padding: 11px 22px;
    margin-left: 0;
    margin-top: 0;
  }

  .section-header h2+.newsletter-badge,
  .section-header h2+.newsletter-badge-left {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {

  .newsletter-badge,
  .newsletter-badge-left {
    font-size: 0.8rem;
    padding: 8px 16px;
    gap: 6px;
  }

  .newsletter-badge i,
  .newsletter-badge-left i {
    font-size: 0.9rem;
  }

  .newsletter-badge span,
  .newsletter-badge-left span {
    font-size: 0.8rem;
  }
}


/* ========================================
   CHAMP DE FICHIER POUR AFFICHE PDF
   ======================================== */

.form-group label:not(.file-input-wrapper) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.optional-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
  background: var(--light-bg);
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.file-input {
  width: 100%;
  height: 0;
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.form-group {
  position: relative;
}

.file-input+.file-info {
  margin-top: 0;
}

.form-group:has(.file-input) {
  position: relative;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70px;
  padding: 1rem;
  border: 2px dashed var(--gray-light);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  box-sizing: border-box;
}

.file-input-wrapper::before {
  content: '📄 Sélectionner un fichier PDF';
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
}

.file-input-wrapper:hover {
  border-color: var(--primary);
  background: var(--light-bg);
}

.file-input-wrapper:hover::before {
  color: var(--primary);
}

.file-input:focus+.file-input-wrapper {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 91, 255, 0.1);
}

.file-info {
  margin-top: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 12px;
  font-size: 0.9rem;
  display: none;
  border: 1px solid var(--gray-light);
}

.file-info.active {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-info i {
  color: var(--secondary);
  font-size: 1.5rem;
}

.file-info .file-name {
  flex: 1;
  color: var(--dark);
  font-weight: 600;
  word-break: break-word;
}

.file-info .file-size {
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
  background: white;
  padding: 4px 10px;
  border-radius: 12px;
}

.file-info .remove-file {
  background: white;
  border: 1px solid var(--gray-light);
  color: var(--secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-info .remove-file:hover {
  background: #ff4444;
  color: white;
  border-color: #ff4444;
  transform: scale(1.05);
}

/* Responsive pour le champ de fichier */
@media (max-width: 768px) {
  .form-group label:not(.file-input-wrapper) {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .optional-label {
    margin-left: 0;
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .file-input-wrapper {
    min-height: 65px;
    padding: 0.875rem;
  }

  .file-input-wrapper::before {
    font-size: 0.85rem;
  }

  .file-info {
    flex-wrap: wrap;
    gap: 8px;
  }

  .file-info .file-name {
    width: 100%;
    font-size: 0.85rem;
  }

  .file-info .file-size {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .optional-label {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .file-input-wrapper {
    min-height: 60px;
    padding: 0.75rem;
  }

  .file-input-wrapper::before {
    font-size: 0.8rem;
  }

  .file-info {
    padding: 10px 12px;
  }

  .file-info i {
    font-size: 1.2rem;
  }
}


/* ========================================
   BADGE AFFICHE PDF SUR LES TOURNOIS
   ======================================== */

.affiche-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.affiche-badge:hover {
  background: var(--light-bg);
  color: var(--primary-dark);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(107, 91, 255, 0.15);
}

.affiche-badge i {
  font-size: 0.9rem;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .affiche-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    gap: 5px;
  }

  .affiche-badge i {
    font-size: 0.85rem;
  }
}

/* ========================================
   STYLES POUR "LIRE PLUS" - 3 LIGNES MAX
   ======================================== */

.tournoi-description {
  color: var(--gray);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0.5rem 0 0.75rem 0;
  padding: 0.5rem;
  background: var(--light-bg);
  border-radius: 6px;
  position: relative;
  transition: max-height 0.3s ease, overflow 0.3s ease;
}

.tournoi-description.has-more {
  max-height: 4.2em;
  /* 3 lignes (1.4 line-height × 3) */
  overflow: hidden;
}

.tournoi-description.has-more.expanded {
  max-height: none !important;
  /* Retirer la limite de hauteur */
  overflow: visible !important;
}

.tournoi-description.has-more::after {
  content: '...';
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: var(--light-bg);
  padding-left: 0.5rem;
}

.tournoi-description.has-more.expanded::after {
  display: none;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-top: 0.25rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more-btn:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.read-more-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
  transform: rotate(180deg);
}

/* Responsive pour le bouton Lire plus */
@media (max-width: 768px) {
  .tournoi-description {
    font-size: 0.75rem;
  }

  .tournoi-description.has-more {
    max-height: 3.9em;
    /* 3 lignes pour mobile */
  }

  .read-more-btn {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .tournoi-description {
    font-size: 0.7rem;
    padding: 0.4rem;
  }

  .tournoi-description.has-more {
    max-height: 3.6em;
    /* 3 lignes pour petit mobile */
  }

  .read-more-btn {
    font-size: 0.65rem;
  }
}


/* Overlay pour le menu mobile - Ne couvre pas la navbar */
.menu-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 998;
  cursor: pointer;
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sur très petits écrans, ajuster la largeur */
@media (max-width: 400px) {
  .menu-overlay {
    right: 60%;
  }
}

@media (min-width: 769px) {
  .menu-overlay {
    display: none;
  }
}


/* ===== SYSTÈME DE NOTIFICATIONS TOAST ===== */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--gray-light);
  color: var(--dark);
}

.toast-success {
  border-left-color: #2ECC71;
}

.toast-success .toast-icon {
  color: #2ECC71;
}

.toast-error {
  border-left-color: #ff4757;
}

.toast-error .toast-icon {
  color: #ff4757;
}

.toast-warning {
  border-left-color: #FF9F43;
}

.toast-warning .toast-icon {
  color: #FF9F43;
}

.toast-info {
  border-left-color: var(--primary);
}

.toast-info .toast-icon {
  color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
  #toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast {
    padding: 14px;
  }

  .toast-message {
    font-size: 0.9rem;
  }
}


/* ===== MODALE RGPD MODERNE ===== */
.rgpd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  display: none;
  animation: fadeIn 0.3s ease;
}

.rgpd-modal.active {
  display: block;
}

.rgpd-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.rgpd-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalZoomIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rgpd-modal-header {
  padding: 24px;
  border-bottom: 2px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(107, 91, 255, 0.05) 0%, rgba(107, 91, 255, 0.1) 100%);
  border-radius: 20px 20px 0 0;
}

.rgpd-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rgpd-modal-title i {
  font-size: 1.8rem;
  color: var(--primary);
}

.rgpd-modal-title h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--dark);
  font-weight: 700;
}

.rgpd-modal-close {
  background: var(--gray-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--gray);
}

.rgpd-modal-close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.rgpd-modal-body {
  padding: 24px;
}

.rgpd-intro {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.6;
  text-align: center;
}

.rgpd-section {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--light-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.rgpd-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.rgpd-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.rgpd-text h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 600;
}

.rgpd-text p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

.rgpd-text ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.rgpd-text li {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 4px 0;
}

.rgpd-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.rgpd-text a:hover {
  text-decoration: underline;
}

.rgpd-cookies {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--gray-light);
}

.rgpd-cookies h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  margin-bottom: 12px;
}

.cookie-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.cookie-info p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

.cookie-status-required {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  background: rgba(107, 91, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
}

.rgpd-modal-footer {
  padding: 20px 24px;
  border-top: 2px solid var(--gray-light);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-rgpd {
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-rgpd-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(107, 91, 255, 0.3);
}

.btn-rgpd-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 91, 255, 0.4);
}

.btn-rgpd-secondary {
  background: var(--gray-light);
  color: var(--gray);
}

.btn-rgpd-secondary:hover {
  background: #ddd;
}

/* Mobile */
@media (max-width: 768px) {
  .rgpd-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .rgpd-modal-header {
    padding: 20px;
  }

  .rgpd-modal-title h3 {
    font-size: 1.2rem;
  }

  .rgpd-modal-body {
    padding: 20px;
  }

  .rgpd-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .rgpd-modal-footer {
    flex-direction: column;
  }

  .btn-rgpd {
    width: 100%;
    justify-content: center;
  }

  .cookie-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ========================================
   SECTION À PROPOS DU PALET BRETON - STYLE APPLE/GLASSMORPHISM
   ======================================== */

.palet-info-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 50%, #f8f9ff 100%);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.palet-info-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.palet-info-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(65, 211, 149, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.palet-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}

/* Contenu texte */
.palet-info-content {
  animation: fadeInLeft 1s ease;
  position: relative;
  z-index: 10;
  max-width: 650px;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107, 91, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(107, 91, 255, 0.2);
}

.palet-info-content h2 {
  font-size: 2.5rem;
  color: #5548d6 !important;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 800;
}

.palet-info-content h3 {
  font-size: 1.5rem;
  color: #5548d6 !important;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.lead-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #222222 !important;
  margin-bottom: 2rem;
  font-weight: 400;
}

.lead-text strong {
  color: var(--primary);
  font-weight: 600;
}

.palet-info-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555555 !important;
  margin-bottom: 1.5rem;
}

.palet-info-content p strong {
  color: #6B5BFF !important;
  font-weight: 600;
}

/* Stats */
.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(107, 91, 255, 0.1);
  box-shadow: 0 8px 32px rgba(107, 91, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(107, 91, 255, 0.15);
  border-color: rgba(107, 91, 255, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* CTA Buttons */
.info-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(107, 91, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(107, 91, 255, 0.4);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(107, 91, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn-secondary:hover {
  background: rgba(107, 91, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Partie visuelle */
.palet-info-visual {
  position: sticky;
  top: 100px;
  animation: fadeInRight 1s ease;
  max-width: 550px;
  margin: 0 auto;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Effet glassmorphism */
.glass-effect {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(107, 91, 255, 0.1);
}

.visual-card {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(107, 91, 255, 0.2);
}

.visual-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.visual-card:hover img {
  transform: scale(1.05);
}

.visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 91, 255, 0.1) 0%, rgba(65, 211, 149, 0.1) 100%);
  pointer-events: none;
}

/* Highlights grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.highlight-card {
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(107, 91, 255, 0.15);
  border-color: rgba(107, 91, 255, 0.3);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.1) rotate(5deg);
}

.highlight-card h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Très grands écrans */
@media (min-width: 1600px) {
  .palet-info-section {
    padding: 8rem 4rem;
  }

  .palet-info-grid {
    max-width: 1600px;
    gap: 6rem;
  }

  .palet-info-content {
    max-width: 750px;
  }

  .palet-info-visual {
    max-width: 600px;
  }

  .palet-info-content h2 {
    font-size: 3rem;
  }

  .lead-text {
    font-size: 1.2rem;
  }

  .palet-info-content p {
    font-size: 1.1rem;
  }
}

/* Tablette */
@media (max-width: 992px) {
  .palet-info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .palet-info-visual {
    position: relative;
    top: 0;
    max-width: 100%;
  }

  .palet-info-content {
    max-width: 100%;
  }

  .palet-info-content h2 {
    font-size: 2.3rem;
  }

  .info-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .palet-info-section {
    padding: 4rem 0;
  }

  .palet-info-content h2 {
    font-size: 2rem;
  }

  .palet-info-content h3 {
    font-size: 1.4rem;
  }

  .lead-text {
    font-size: 1.05rem;
  }

  .palet-info-content p {
    font-size: 1rem;
  }

  .info-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .info-cta {
    flex-direction: column;
  }

  .cta-btn,
  .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .palet-info-section {
    padding: 3rem 0;
  }

  .palet-info-content h2 {
    font-size: 1.8rem;
  }

  .palet-info-content h3 {
    font-size: 1.3rem;
  }

  .lead-text {
    font-size: 1rem;
  }

  .info-badge {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .cta-btn,
  .cta-btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Animations au scroll - DÉSACTIVÉES pour affichage immédiat */
@media (prefers-reduced-motion: no-preference) {

  .palet-info-content,
  .palet-info-visual {
    opacity: 1 !important;
    animation-play-state: running !important;
  }

  .palet-info-content.animate,
  .palet-info-visual.animate {
    opacity: 1 !important;
    animation-play-state: running !important;
  }
}


/* ========================================
   VUE GRILLE - Style agenda compact (comme ton image)
   ======================================== */

.agenda-list.grid-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agenda-list.grid-view .agenda-date {
  background: linear-gradient(135deg, #6B5BFF 0%, #5548D6 100%);
  padding: 1rem 1.5rem;
  margin: 0 0 0.5rem 0;
  border-bottom: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 85px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(107, 91, 255, 0.2);
  letter-spacing: 0.3px;
}

/* Ajouter un espacement entre les groupes de dates */
.agenda-list.grid-view .agenda-date+.tournoi-card {
  margin-top: 0.5rem;
}

/* Première date avec marge en haut */
.agenda-list.grid-view .agenda-date:first-child {
  margin-top: 1rem;
}

/* Dates suivantes : chevauchement pour cacher la précédente */
.agenda-list.grid-view .tournoi-card:last-of-type {
  margin-bottom: 1rem;
}

.agenda-list.grid-view .tournoi-card+.agenda-date {
  margin-top: 1rem;
}

.agenda-list.grid-view .date-badge {
  display: none;
}

.agenda-list.grid-view .tournoi-card {
  margin-top: 0.5rem;
  border-left: 3px solid transparent;
  border-radius: 10px;
  border-bottom: none;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.8rem 1.5rem;
  background: white;
  transition: all 0.3s ease;
}

.agenda-list.grid-view .tournoi-card:hover {
  background: rgba(107, 91, 255, 0.05);
  border-left-color: #6B5BFF;
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(107, 91, 255, 0.15);
}

.agenda-list.grid-view .tournoi-info {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.agenda-list.grid-view .tournoi-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--dark);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agenda-list.grid-view .tournoi-info h3::before {
  content: "●";
  color: #6B5BFF;
  font-size: 0.6rem;
}

.agenda-list.grid-view .tournoi-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0;
}

.agenda-list.grid-view .tournoi-meta span {
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #F8F9FF;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(107, 91, 255, 0.1);
}

.agenda-list.grid-view .tournoi-description {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: rgba(107, 91, 255, 0.05);
  border-radius: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-list.grid-view .tournoi-actions {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  align-items: center;
}

.agenda-list.grid-view .tournoi-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-width: auto;
  border-radius: 8px;
  white-space: nowrap;
}

.agenda-list.grid-view .tournoi-actions .btn i {
  font-size: 0.9rem;
}

/* Responsive grille */
@media (max-width: 768px) {
  .section-header {
    padding-top: 3rem;
  }

  .view-toggle-container {
    top: 0;
    right: 0;
    padding: 3px;
  }

  .view-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Vue grille sur mobile - Layout adapté */
  .agenda-list.grid-view .agenda-date {
    top: 70px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
    margin: 0 0 0.5rem 0;
  }

  .agenda-list.grid-view .agenda-date:first-child {
    margin-top: 0.5rem;
  }

  .agenda-list.grid-view .tournoi-card+.agenda-date {
    margin-top: 1rem;
  }

  .agenda-list.grid-view .agenda-date:first-child {
    margin-top: 0.5rem;
  }

  .agenda-list.grid-view .tournoi-card {
    padding: 1rem;
    gap: 0.8rem;
    border-radius: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .agenda-list.grid-view .tournoi-info {
    grid-column: 1;
    grid-row: 1;
    gap: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .agenda-list.grid-view .tournoi-meta {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}

/* Toolt
ip pour la description en vue grille */
.agenda-list.grid-view .tournoi-card[data-description]:hover::after {
  content: attr(data-description);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 400px;
  width: max-content;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

.agenda-list.grid-view .tournoi-card[data-description]:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
}

.agenda-list.grid-view .tournoi-card {
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive tooltip */
@media (max-width: 768px) {
  .agenda-list.grid-view .tournoi-card[data-description]:hover::after {
    max-width: 90vw;
    left: 10px;
    right: 10px;
    transform: none;
  }

  .agenda-list.grid-view .tournoi-card[data-description]:hover::before {
    left: 50px;
    transform: none;
  }

  .agenda-list.grid-view .tournoi-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}


.agenda-list.grid-view .tournoi-info h3 {
  font-size: 0.95rem;
  width: 100%;
}

.agenda-list.grid-view .tournoi-meta {
  gap: 0.6rem;
  flex-wrap: wrap;
}

.agenda-list.grid-view .tournoi-meta span {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
}

.agenda-list.grid-view .tournoi-description {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.8rem;
  padding: 0.5rem 0.7rem;
  -webkit-line-clamp: 3;
}

.agenda-list.grid-view .tournoi-actions {
  grid-column: 1;
  grid-row: 3;
  justify-content: flex-start;
}

.agenda-list.grid-view .tournoi-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  width: 100%;
  justify-content: center;
}
}

/* =
=======================================
   SECTION SEO - Style Apple épuré
   ======================================== */

.seo-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.seo-header {
  text-align: center;
  margin-bottom: 4rem;
}

.seo-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.seo-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.seo-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.seo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(107, 91, 255, 0.15);
}

.seo-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.seo-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.seo-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* Recherches populaires */
.seo-tags {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.seo-tags h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tag {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tag:hover {
  background: linear-gradient(135deg, #6B5BFF 0%, #5548D6 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
}

/* FAQ */
.seo-faq {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.seo-faq h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item h4::before {
  content: "→";
  font-size: 1.3rem;
  color: var(--primary);
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  padding-left: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .seo-section {
    padding: 3rem 0;
  }
  
  .seo-header h2 {
    font-size: 1.8rem;
  }
  
  .seo-subtitle {
    font-size: 1rem;
  }
  
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .seo-card {
    padding: 2rem;
  }
  
  .seo-card-icon {
    font-size: 2.5rem;
  }
  
  .seo-tags,
  .seo-faq {
    padding: 2rem;
  }
  
  .tags-container {
    gap: 0.8rem;
  }
  
  .tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .faq-item p {
    padding-left: 1.5rem;
  }
}
