:root {
  --primary-red: #CE1126;
  --primary-green: #009E49;
  --primary-yellow: #FCD116;
  --primary-black: #000000;
  --primary-white: #FFFFFF;
}
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
  min-height: 100vh;
  margin: 0;
}
.navbar {
  background: linear-gradient(to right, var(--primary-black), var(--primary-red));
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-white) !important;
}
.navbar-nav {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  overflow-x: auto;
  width: 100%;
}
.nav-link {
  color: var(--primary-white) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
}
.nav-link:hover {
  color: var(--primary-yellow) !important;
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-link.active {
  background-color: var(--primary-red);
  color: var(--primary-white) !important;
}
@media (max-width: 991px) {
  .navbar-nav {
    flex-wrap: wrap !important;
    white-space: normal;
    overflow-x: visible;
  }
  .nav-link {
    padding: 0.5rem 0 !important;
  }
}
.search-navbar-form input {
  border-radius: 20px 0 0 20px;
  border: 2px solid var(--primary-green);
  background: #f5f5f5;
  color: #222;
  min-width: 180px;
}
.search-navbar-form button {
  border-radius: 0 20px 20px 0;
  background: var(--primary-red);
  border: none;
  color: var(--primary-white);
  font-weight: bold;
  transition: background 0.2s;
}
.search-navbar-form button:hover {
  background: var(--primary-green);
}
.quiz-container, .groupe-card, .stadium-container, .selection-card, .news-card, .card, .modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin-top: 2rem;
  padding: 2rem;
}
.btn, .question-nav button, .btn-checkout, .see-squad-btn {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: bold;
  transition: transform 0.1s, background 0.2s;
}
.btn:hover, .question-nav button:hover, .btn-checkout:hover, .see-squad-btn:hover {
  transform: scale(1.04);
  background: var(--primary-green) !important;
  color: var(--primary-white) !important;
}
input, select, textarea {
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  padding: 0.5rem 1rem;
}
@media (max-width: 768px) {
  .quiz-container, .groupe-card, .stadium-container, .selection-card, .news-card, .card, .modal-content {
    padding: 1rem;
    margin-top: 1rem;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
}
.main-content {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10);
}
.groupe-card {
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
}
table {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}
thead th {
  background: linear-gradient(to right, var(--primary-red), var(--primary-green));
  color: #fff;
  font-weight: bold;
  border: none;
}
tbody td, tbody th {
  border-top: 1px solid #eee;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.team-flag {
  max-width: 40px;
  max-height: 28px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
h2, .groupe-title {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', Arial, sans-serif;
  font-weight: 700;
}
h3 {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 900px) {
  .main-content {
    padding: 1rem 0.5rem;
  }
  .groupe-card {
    padding: 1rem 0.5rem;
  }
  table {
    font-size: 0.95em;
  }
  .team-flag {
    max-width: 28px;
    max-height: 20px;
  }
}
/* Main content flex for two columns (billetterie, etc.) */
.main-content.flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (max-width: 1100px) {
  .main-content.flex {
    flex-direction: column;
    gap: 1.5rem;
  }
}
/* Limite la largeur des images d'équipes */
.team-img, .main-content img.team-img, .main-content .team-img {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
}
/* Pour la billetterie : plan du stade et sélection */
.stadium-container, .selection-card {
  min-width: 320px;
  max-width: 700px;
  width: 100%;
  margin-bottom: 0;
}
.selection-card {
  max-width: 400px;
}
@media (max-width: 900px) {
  .stadium-container, .selection-card {
    max-width: 100%;
    min-width: 0;
  }
  .main-content.flex {
    flex-direction: column;
    gap: 1rem;
  }
}
/* Centrage et marges sur la grille des équipes */
#teamsGrid {
  margin: 0 auto;
  max-width: 1100px;
  justify-content: center;
}
.header {
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
}
.stadium-layout {
  width: 100%;
  min-width: 320px;
  max-width: 700px;
  aspect-ratio: 2.2 / 1;
  min-height: 320px;
  height: 420px;
  background: radial-gradient(ellipse at center, #e8f5e9 60%, #c8e6c9 100%);
  border-radius: 50% / 42%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44,62,80,0.10);
  margin: 0 auto;
  position: relative;
}
/* Flip card pour équipes */
.flip-card {
  background: transparent;
  width: 100%;
  height: 220px;
  perspective: 900px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  outline: none;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
}
.flip-card:focus .flip-card-inner,
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1.2rem 0.5rem;
}
.flip-card-front {
  z-index: 2;
}
.flip-card-back {
  transform: rotateY(180deg);
  z-index: 3;
}
.team-flag-img {
  max-width: 48px;
  max-height: 36px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.team-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.badge-pays {
  font-size: 0.9em;
  color: #888;
  margin-top: 0.2rem;
}
.see-squad-btn {
  margin-top: 1rem;
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, transform 0.1s;
}
.see-squad-btn:hover {
  background: var(--primary-green);
  color: #fff;
  transform: scale(1.06);
}
.coach-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.coach-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}
.player-role {
  font-weight: bold;
  color: var(--primary-green);
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 1.08em;
}
.player-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.7rem;
}
.player-list li {
  margin-bottom: 0.2rem;
  font-size: 0.98em;
}
.player-club {
  color: #888;
  font-size: 0.93em;
  margin-left: 0.3em;
}
@media (max-width: 900px) {
  .flip-card {
    height: 170px;
  }
  .team-img {
    max-width: 220px;
  }
}
@media (max-width: 600px) {
  .flip-card {
    height: 120px;
  }
  .team-img {
    max-width: 120px;
  }
}
/* Limite la largeur et hauteur des images dans les articles/news */
.news-img, .main-content img.news-img, .main-content .news-img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.13);
  object-fit: cover;
}
@media (max-width: 900px) {
  .news-img, .main-content img.news-img, .main-content .news-img {
    max-height: 260px;
    border-radius: 10px;
  }
}
/* Grille responsive pour les news */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.news-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.news-card:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.16);
  transform: translateY(-4px) scale(1.02);
}
.news-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.25s;
}
.news-card:hover .news-image {
  transform: scale(1.06);
}
.news-content {
  padding: 1.2rem 1.1rem 1.1rem 1.1rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--primary-black);
}
.news-meta {
  display: flex;
  gap: 1.2rem;
  color: #888;
  font-size: 0.98em;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 0.2rem;
  }
  .news-card {
    min-height: 0;
  }
}
/* Modale avancée pour news */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,30,30,0.65);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 700px;
  width: 96vw;
  margin: 2.5rem auto;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  padding: 2.2rem 2rem 1.5rem 2rem;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(.4,2,.6,1);
}
@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #eee;
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
}
.modal-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-red);
}
.modal-close {
  font-size: 2.1rem;
  color: #888;
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s, transform 0.1s;
  margin-left: 1.2rem;
}
.modal-close:hover {
  color: var(--primary-green);
  transform: scale(1.18);
}
.modal-body {
  padding: 0.5rem 0 0 0;
}
.modal-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
}
.modal-text {
  font-size: 1.08em;
  color: #222;
  text-align: justify;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .modal-content {
    padding: 1.1rem 0.5rem 0.7rem 0.5rem;
  }
  .modal-image {
    max-height: 180px;
  }
}
/* Header principal stades et pages */
.main-header-gradient {
  background: linear-gradient(120deg, var(--primary-red) 0%, var(--primary-black) 60%, var(--primary-green) 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 32px rgba(44,62,80,0.13);
  padding: 3.2rem 1.2rem 2.2rem 1.2rem;
  margin-bottom: 2.5rem;
}
.main-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 2.7rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.13);
  margin-bottom: 0.7rem;
}
.main-subtitle {
  color: #f5f5f5;
  font-size: 1.25rem;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0,0,0,0.10);
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .main-header-gradient {
    padding: 2rem 0.3rem 1.2rem 0.3rem;
    border-radius: 0 0 18px 18px;
  }
  .main-title {
    font-size: 1.5rem;
  }
  .main-subtitle {
    font-size: 1rem;
  }
}
/* Bouton mode sombre global */
.darkmode-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 0.7rem 1.3rem;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  display: flex;
  align-items: center;
  gap: 0.7em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.darkmode-toggle:hover {
  background: var(--primary-green);
  color: #fff;
  transform: scale(1.06);
}
/* Mode sombre global */
body.dark-mode {
  background: linear-gradient(135deg, #181818, #222, #1a3a1a);
  color: #f2f2f2;
}
body.dark-mode .navbar {
  background: linear-gradient(to right, #111, #222 60%, #222 100%);
  color: #fff;
}
body.dark-mode .navbar-brand,
body.dark-mode .nav-link,
body.dark-mode .nav-link.active {
  color: #fff !important;
}
body.dark-mode .main-content,
body.dark-mode .card,
body.dark-mode .news-card,
body.dark-mode .modal-content,
body.dark-mode .groupe-card,
body.dark-mode .stadium-container,
body.dark-mode .selection-card {
  background: #23272b !important;
  color: #f2f2f2;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5 {
  color: #fff;
}
body.dark-mode .main-header-gradient {
  background: linear-gradient(120deg, #222 0%, #111 60%, #1a3a1a 100%);
}
body.dark-mode .main-title, body.dark-mode .main-subtitle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.22);
}
body.dark-mode .btn, body.dark-mode .see-squad-btn, body.dark-mode .btn-checkout {
  background: #333 !important;
  color: #fff !important;
  border: none;
}
body.dark-mode .btn:hover, body.dark-mode .see-squad-btn:hover, body.dark-mode .btn-checkout:hover {
  background: var(--primary-green) !important;
  color: #fff !important;
}
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
  background: #181c1f;
  color: #fff;
  border: 1.5px solid #444;
}
body.dark-mode .news-card {
  background: #23272b !important;
}
body.dark-mode .modal {
  background: rgba(10,10,10,0.85);
}
body.dark-mode .modal-content {
  background: #23272b !important;
  color: #f2f2f2;
}
body.dark-mode .legend-dot.standard { background: #388e3c; }
body.dark-mode .legend-dot.vip { background: #bfae2c; }
body.dark-mode .legend-dot.vvip { background: #6d2c91; }
body.dark-mode .legend-dot.reserved { background: #888; }
/* Logos partenaires page d'accueil */
.partenaires-gold img, .img-fluid.partenaire-gold {
  max-height: 90px;
  max-width: 180px;
  object-fit: contain;
  margin: 0.7rem 1.2rem;
  display: block;
}
.partenaires-moyens img, .img-fluid.partenaire-moyen {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  margin: 0.5rem 0.8rem;
  display: block;
}
.partenaires-petits img, .img-fluid.partenaire-petit {
  max-height: 38px;
  max-width: 70px;
  object-fit: contain;
  margin: 0.3rem 0.5rem;
  display: block;
}
.partenariats-section .row {
  justify-content: center;
  align-items: center;
}
@media (max-width: 900px) {
  .partenaires-gold img, .img-fluid.partenaire-gold {
    max-height: 60px;
    max-width: 110px;
    margin: 0.4rem 0.5rem;
  }
  .partenaires-moyens img, .img-fluid.partenaire-moyen {
    max-height: 38px;
    max-width: 70px;
    margin: 0.2rem 0.3rem;
  }
  .partenaires-petits img, .img-fluid.partenaire-petit {
    max-height: 22px;
    max-width: 40px;
    margin: 0.1rem 0.2rem;
  }
}
/* Fond dégradé animé pour la home */
body.homepage {
  background: linear-gradient(120deg, #ce1126 0%, #009e49 100%);
  background-size: 200% 200%;
  animation: gradientMove 12s ease-in-out infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Effet hover sur logos partenaires */
.partenariats-section img:hover, .img-fluid.partenaire-gold:hover, .img-fluid.partenaire-moyen:hover, .img-fluid.partenaire-petit:hover {
  transform: scale(1.08) translateY(-6px);
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  transition: transform 0.18s, box-shadow 0.18s;
  z-index: 2;
}
/* Vidéo hero */
.video-container {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(44,62,80,0.13);
  max-width: 700px;
  margin: 0 auto 2.2rem auto;
  background: #000;
}
.hero-video {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .hero-video { height: 180px; }
  .video-container { max-width: 100%; }
}
/* Section histoire */
.histoire-section {
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
  margin: 2.5rem auto;
  padding: 2.5rem 1.5rem;
  max-width: 900px;
  animation: fadeIn 1.2s;
}
.histoire-animated-title span {
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.3em;
  letter-spacing: 0.04em;
  display: inline-block;
  transition: color 0.2s;
}
.histoire-animated-title span:hover {
  color: var(--primary-green);
}
.histoire-text {
  color: #222;
  font-size: 1.13em;
  line-height: 1.7;
  text-align: justify;
}
/* Apparition douce */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.hero-section, .histoire-section, .partenariats-section {
  animation: fadeIn 1.1s;
}
/* Section partenaires plus aérée */
.partenariats-section {
  background: rgba(255,255,255,0.93);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
  margin: 2.5rem auto 1.5rem auto;
  padding: 2.2rem 0.5rem 1.2rem 0.5rem;
  max-width: 1200px;
}
.bg-partenaire-title {
  background: linear-gradient(120deg, var(--primary-red), var(--primary-green));
  border-radius: 18px 0 0 18px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partenaire-animated-title span {
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 0.04em;
  display: inline-block;
  transition: color 0.2s;
}
@media (max-width: 900px) {
  .histoire-section, .partenariats-section {
    padding: 1.1rem 0.2rem;
    border-radius: 12px;
    margin: 1.2rem auto;
  }
  .bg-partenaire-title {
    border-radius: 12px 12px 0 0;
    min-height: 60px;
  }
}
.navbar .container {
  max-width: 100%;
  width: 98vw;
}
@media (min-width: 1200px) {
  .navbar .container {
    max-width: 1600px;
    width: 100%;
  }
} 