/* Styles Globaux - La Grosse Bagarre (Design Clair, Solaire & Dynamique) */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Outfit:wght@400;600;700;900&family=Luckiest+Guy&family=Fredoka:wght@600;700&display=swap');

@font-face {
  font-family: 'Handelson Four';
  src: local('Handelson Four'), local('HandelsonFour'), local('Handelson-Four');
  font-display: swap;
}

:root {
  --color-bg-main: #FFF8F0; /* Fond parchemin / crème solaire chaleureux officiel */
  --color-bg-card: #FFFFFF;
  --color-bg-soft: #FFEFE0; /* Crème doux pour les contrastes de sections */
  --color-bg-warm: #FFE6CE; /* Accentuation solaire chaleureuse */
  
  --color-blue-dark: #005171; /* Bleu pétrole officiel */
  --color-blue-light: #AEDCEE; /* Bleu ciel doux officiel */
  --color-red-dark: #C64F4F; /* Rouge brique combat officiel */
  --color-red-light: #FFD4D4; /* Rose pastel officiel */
  
  --color-text-dark: #1E2530; /* Sombre net et contrasté */
  --color-text-muted: #5A6A80; /* Teinte secondaire lisible */
  --color-border: #005171; /* Bordures marquées signature cartoon */
  
  --font-title: 'Luckiest Guy', 'Handelson Four', 'Bangers', cursive, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-cartoon: 4px 6px 0px #005171;
  --shadow-cartoon-red: 4px 6px 0px #C64F4F;
  --shadow-cartoon-hover: 6px 9px 0px #005171;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typographies */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navbar Cartoon Solaire */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6%;
  background: var(--color-bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-blue-dark);
  box-shadow: 0 4px 0px rgba(0, 81, 113, 0.1);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.nav-logo-img:hover {
  transform: scale(1.03);
}

.navbar-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-link-rules {
  color: var(--color-blue-dark);
  font-family: var(--font-title);
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 1.15rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link-rules:hover {
  color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  background: rgba(198, 79, 79, 0.08);
}

.nav-btn {
  background: var(--color-red-dark);
  color: #FFF;
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.8px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid var(--color-blue-dark);
  box-shadow: var(--shadow-cartoon);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 8px 0px var(--color-blue-dark);
  background: #B91C1C;
}

/* Hero CTA Buttons Group */
.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-blue-dark);
  font-family: var(--font-title);
  font-size: clamp(1rem, 2vw + 0.3rem, 1.25rem);
  padding: clamp(0.75rem, 1.8vw, 0.95rem) clamp(1.2rem, 2.5vw, 1.8rem);
  border: 2px solid var(--color-blue-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-cartoon);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 8px 0px var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  color: var(--color-red-dark);
}

/* Scénarios Prêts à l'Emploi pour le Simulateur */
.preset-scenarios-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background: #FFF;
  color: var(--color-blue-dark);
  border: 2px solid var(--color-blue-dark);
  border-radius: 50px;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 2px 3px 0px var(--color-blue-dark);
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background: var(--color-blue-dark);
  color: #FFF;
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0px var(--color-blue-dark);
}

/* Hero Section Solaire & Cartoon */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 6% 3.5rem;
  background: radial-gradient(circle at top center, #FFE6CE 0%, var(--color-bg-main) 70%);
}

.badge-hero {
  background: #FFF;
  color: var(--color-red-dark);
  border: 2px solid var(--color-red-dark);
  padding: 0.45rem 1.3rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 3px 3px 0px var(--color-red-dark);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw + 0.8rem, 4rem);
  color: var(--color-text-dark);
  margin-bottom: 1.2rem;
  max-width: 950px;
  line-height: 1.12;
}

.hero p.subtitle {
  font-size: clamp(1.05rem, 2vw + 0.4rem, 1.25rem);
  color: var(--color-text-muted);
  max-width: 780px;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Fiche Express Visuelle (Hero Specs) */
.hero-specs-grid {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  max-width: 850px;
}

.hero-spec-item {
  background: #FFF;
  border: 2px solid var(--color-blue-dark);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  box-shadow: 2px 3px 0px var(--color-blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

/* Verbatims d'ambiance de jeu */
.verbatims-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin: 3rem 0 2rem;
}

.verbatim-card {
  background: #FFFFFF;
  border: 2px solid var(--color-blue-dark);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-cartoon);
  position: relative;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verbatim-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 6px 9px 0px var(--color-blue-dark);
}

.verbatim-card.red-border {
  border-left: 6px solid var(--color-red-dark);
}

.verbatim-quote {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.verbatim-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-red-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Grimoire des Cartes avec Filtres */
.deck-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.deck-filter-btn {
  background: #FFF;
  color: var(--color-blue-dark);
  border: 2px solid var(--color-blue-dark);
  border-radius: 50px;
  padding: 0.55rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 2px 3px 0px var(--color-blue-dark);
  transition: all 0.2s ease;
}

.deck-filter-btn.active, .deck-filter-btn:hover {
  background: var(--color-blue-dark);
  color: #FFF;
  border-color: var(--color-blue-dark);
  box-shadow: 4px 5px 0px var(--color-red-dark);
  transform: translate(-1px, -2px);
}

/* Image de la Table d'Apéro en Situation */
.table-apero-wrapper {
  max-width: 950px;
  margin: 2.5rem auto 1.5rem;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--color-blue-dark);
  box-shadow: var(--shadow-cartoon);
}

.table-apero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.table-apero-wrapper:hover .table-apero-img {
  transform: scale(1.02);
}

.table-apero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 81, 113, 0.9) 0%, transparent 100%);
  color: #FFF;
  padding: 1.5rem 1.5rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}

/* Form Box / Offre Gratuite */
.cta-box {
  background: #FFFFFF;
  border: 3px solid var(--color-blue-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 650px;
  width: 100%;
  box-shadow: var(--shadow-cartoon);
  margin-top: 1rem;
}

.cta-box h3 {
  font-size: 1.8rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-blue-dark);
  background: #FFF8F0;
  color: var(--color-text-dark);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-red-dark);
  background: #FFF;
  outline: none;
  box-shadow: 3px 3px 0px var(--color-red-dark);
}

.btn-primary {
  background: var(--color-red-dark);
  color: #FFF;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2vw + 0.3rem, 1.35rem);
  padding: 0.85rem 1.8rem;
  border: 2px solid var(--color-blue-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-cartoon);
  text-align: center;
}

.btn-primary:hover {
  background: #B91C1C;
  transform: translate(-2px, -2px);
  box-shadow: 6px 8px 0px var(--color-blue-dark);
}

/* Banner Défilante de Cartes (Marquee) */
.cards-marquee-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin: 1.5rem 0 1rem;
  padding: 0.5rem 0;
}

.cards-marquee-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
}

.cards-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-card {
  width: 130px;
  height: 190px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,81,113,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-blue-dark);
}

.marquee-card:hover {
  transform: translateY(-8px) scale(1.08) rotate(2deg);
  box-shadow: 6px 10px 0px var(--color-red-dark);
  z-index: 10;
}

/* Visuels de Cartes dans la Galerie */
.card-img-preview {
  width: 100%;
  max-width: 190px;
  border-radius: 10px;
  box-shadow: 3px 5px 0px var(--color-blue-dark);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

/* Illustration Joueurs tenant leurs Cartes en main (Hand Fan of Cards) */
.player-hand-illustration-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.player-card-fan {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.fan-card-item {
  position: absolute;
  width: 110px;
  height: 165px;
  border-radius: 10px;
  box-shadow: -4px 6px 15px rgba(0,0,0,0.25);
  border: 2px solid var(--color-blue-dark);
  transition: transform 0.3s ease;
  object-fit: cover;
}

.fan-card-1 { transform: rotate(-18deg) translateX(-35px); z-index: 1; }
.fan-card-2 { transform: rotate(-6deg) translateX(-10px); z-index: 2; }
.fan-card-3 { transform: rotate(8deg) translateX(15px); z-index: 3; }
.fan-card-4 { transform: rotate(22deg) translateX(40px); z-index: 4; }

.player-card-fan:hover .fan-card-1 { transform: rotate(-25deg) translateX(-50px) translateY(-10px); }
.player-card-fan:hover .fan-card-2 { transform: rotate(-10deg) translateX(-15px) translateY(-15px); }
.player-card-fan:hover .fan-card-3 { transform: rotate(10deg) translateX(20px) translateY(-15px); }
.player-card-fan:hover .fan-card-4 { transform: rotate(28deg) translateX(55px) translateY(-10px); }
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Globales */
.section {
  padding: 5.5rem 6%;
}

.section-soft {
  background: var(--color-bg-soft);
  border-top: 2px dashed #E2E8F0;
  border-bottom: 2px dashed #E2E8F0;
}

.section-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw + 0.5rem, 3.2rem);
  color: var(--color-text-dark);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 3rem;
  font-weight: 500;
}

/* Grilles & Cartes */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card-box {
  background: #FFFFFF;
  border: 3px solid var(--color-blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-cartoon);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-box:hover {
  transform: translate(-3px, -4px);
  box-shadow: 6px 9px 0px var(--color-blue-dark);
}

.card-box.highlight-red {
  border-color: var(--color-red-dark);
  box-shadow: var(--shadow-cartoon-red);
}

.card-box.highlight-red:hover {
  box-shadow: 6px 9px 0px var(--color-red-dark);
}

.card-icon-big {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-box h3 {
  font-size: 1.6rem;
  color: var(--color-text-dark);
  margin-bottom: 0.6rem;
}

.card-box p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card-img-preview {
  width: 100%;
  max-width: 210px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.card-img-preview:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.card-img-preview:hover {
  transform: scale(1.05) rotate(-2deg);
}

.badge-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.badge-sorts { background: var(--color-blue-light); color: var(--color-blue-dark); border: 1px solid var(--color-blue-dark); }
.badge-soldats { background: var(--color-red-light); color: var(--color-red-dark); border: 1px solid var(--color-red-dark); }
.badge-equipement { background: #FFE6A9; color: #7A5200; border: 1px solid #7A5200; }

/* Section Équipe / Créateurs */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #FFFFFF;
  border: 3px solid var(--color-blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-cartoon);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid var(--color-blue-dark);
  margin-bottom: 1.5rem;
}

.team-card h3 {
  font-size: 2.2rem;
  color: var(--color-red-dark);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--color-blue-dark);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* FAQ */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.faq-item {
  background: #FFFFFF;
  border: 2px solid var(--color-blue-dark);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: 4px 4px 0px var(--color-blue-dark);
}

.faq-item h4 {
  font-size: 1.6rem;
  color: var(--color-red-dark);
  margin-bottom: 0.6rem;
}

.faq-item p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Final CTA Section */
.final-cta {
  text-align: center;
  padding: 5.5rem 6%;
  background: radial-gradient(circle at center, #FFE6CE 0%, var(--color-bg-main) 70%);
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw + 0.8rem, 3.8rem);
  color: var(--color-red-dark);
  margin-bottom: 1rem;
}

.final-cta-btn {
  font-size: clamp(1.1rem, 2.5vw + 0.5rem, 1.6rem);
  padding: clamp(0.9rem, 2vw, 1.2rem) clamp(1.2rem, 3vw, 2.5rem);
  max-width: 100%;
}

/* Widget Feed Instagram / Communauté */
.insta-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.insta-post-card {
  background: #FFF;
  border: 2px solid var(--color-blue-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-cartoon);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--color-text-dark);
}

.insta-post-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 6px 10px 0px var(--color-red-dark);
}

.insta-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Ratio 1:1 Carré Instagram */
  overflow: hidden;
  background: #FFEFE0;
}

.insta-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insta-caption {
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #E1306C;
  color: #FFF;
  font-weight: 800;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 3px 3px 0px var(--color-blue-dark);
  border: 2px solid var(--color-blue-dark);
}

/* Section Poser une Question / Contact Direct */
.question-box {
  background: #FFFFFF;
  border: 3px solid var(--color-blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: var(--shadow-cartoon);
  text-align: left;
}

.question-box h3 {
  color: var(--color-blue-dark);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.textarea-input {
  width: 100%;
  min-height: 110px;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid #CBD5E1;
  background: #F8FAFC;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  resize: vertical;
}

.textarea-input:focus {
  border-color: var(--color-blue-dark);
  background: #FFF;
  outline: none;
}

/* Jauge de Progression / Preuve Sociale */
.social-proof-bar {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(0, 81, 113, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-blue-dark);
}

.progress-container {
  width: 100%;
  height: 14px;
  background: #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-blue-dark);
  margin-top: 0.6rem;
}

.progress-fill {
  height: 100%;
  width: 71%; /* 1 420 sur 2 000 */
  background: linear-gradient(90deg, var(--color-red-dark), #E63946);
  border-radius: 20px;
  transition: width 1s ease;
}

/* Modal Pop-up de Confirmation */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.calc-result-banner {
  background: #FFFFFF;
  color: var(--color-text-dark);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  border: 3px solid var(--color-blue-dark);
  box-shadow: var(--shadow-cartoon);
  transition: all 0.3s ease;
}

.result-badge-winner {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 2rem;
  padding: 0.5rem 1.6rem;
  border-radius: 50px;
  color: #FFF;
  border: 2px solid var(--color-text-dark);
  box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.result-badge-winner.att-win {
  background: var(--color-blue-dark);
}

.result-badge-winner.def-win {
  background: var(--color-red-dark);
}

.result-badge-winner.tie {
  background: #64748B;
}

.result-cards-loss-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  background: #FFEFE0;
  padding: 1rem;
  border-radius: 12px;
  border: 2px dashed var(--color-blue-dark);
}

.loss-card-count {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--color-red-dark);
  background: #FFF;
  padding: 0.2rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--color-red-dark);
  box-shadow: 2px 3px 0px var(--color-red-dark);
}

.modal-content {
  background: #FFFFFF;
  border: 4px solid var(--color-blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 10px 14px 0px var(--color-red-dark);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content h3 {
  font-size: 2.4rem;
  color: var(--color-red-dark);
  margin-bottom: 0.5rem;
}

/* Widget Créateur de Carte Personnalisée */
.card-creator-box {
  background: #FFFFFF;
  border: 3px solid var(--color-blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-cartoon);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.card-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.custom-card-frame {
  width: 230px;
  height: 330px;
  border-radius: 16px;
  border: 3px solid var(--color-blue-dark);
  background: #FFF;
  box-shadow: 6px 8px 0px var(--color-red-dark);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
}

.custom-card-type {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
  border: 1px solid var(--color-blue-dark);
  text-transform: uppercase;
}

.custom-card-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--color-blue-dark);
  line-height: 1.1;
  margin: 0.5rem 0;
}

.custom-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Encadré Règles & Attention Compact (Pour le Simulateur) */
.rules-warning-box {
  background: #FFF;
  border: 2px solid var(--color-blue-dark);
  border-left: 6px solid var(--color-red-dark);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  max-width: 850px;
  margin: 1rem auto 2rem;
  box-shadow: 3px 5px 0px rgba(0,0,0,0.08);
  text-align: left;
}

.rules-warning-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-red-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.rules-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.rules-bullets-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Lightbox Zoom Carte */
.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.image-zoom-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  border: 4px solid var(--color-blue-dark);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-zoom-overlay.active .image-zoom-img {
  transform: scale(1);
}

.zoomable-card {
  cursor: zoom-in;
}

/* Widget Simulateur de Combat Visuel par Cartes */
.calc-visual-container {
  background: #FFFFFF;
  border: 3px solid var(--color-blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 1050px;
  margin: 0 auto;
  box-shadow: var(--shadow-cartoon);
}

.calc-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.calc-player-side {
  background: var(--color-bg-soft);
  border: 3px solid var(--color-blue-dark);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 3px 4px 0px var(--color-blue-dark);
}

.calc-player-side.winner-glow {
  background: #FFFFFF;
  border-color: var(--color-red-dark);
  box-shadow: 0 0 35px rgba(198, 79, 79, 0.5), 8px 12px 0px var(--color-red-dark);
  transform: scale(1.03);
  z-index: 5;
}

.calc-player-side.loser-fade {
  opacity: 0.65;
  transform: scale(0.97);
  box-shadow: none;
}

.winner-banner-tag {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-red-dark);
  color: #FFF;
  font-family: var(--font-title);
  font-size: 1.3rem;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  border: 2px solid var(--color-text-dark);
  box-shadow: 2px 4px 0px var(--color-text-dark);
  white-space: nowrap;
  animation: bounceTag 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceTag {
  0% { transform: translateX(-50%) scale(0); }
  80% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

.card-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.selectable-card {
  width: 75px;
  height: 105px;
  border-radius: 8px;
  border: 2px solid var(--color-blue-dark);
  cursor: pointer;
  object-fit: cover;
  transition: all 0.2s ease;
  box-shadow: 2px 3px 0px rgba(0,0,0,0.3);
}

.selectable-card:hover {
  transform: scale(1.1) translateY(-4px);
  border-color: var(--color-red-dark);
}

.selectable-card.selected {
  border: 3px solid var(--color-red-dark);
  box-shadow: 0 0 12px var(--color-red-dark);
  transform: scale(1.08);
}

.army-slot-zone {
  min-height: 110px;
  background: #FFF;
  border: 2px dashed var(--color-blue-dark);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.active-army-card {
  width: 55px;
  height: 80px;
  border-radius: 6px;
  border: 1px solid var(--color-blue-dark);
  object-fit: cover;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.reset-btn {
  background: none;
  border: none;
  color: var(--color-red-dark);
  font-weight: 800;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  margin-top: 0.4rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 6%;
  background: var(--color-blue-dark);
  color: var(--color-blue-light);
  font-size: 1rem;
  font-weight: 600;
}

/* ==========================================================================
   Responsiveness Media Queries
   ========================================================================== */

/* Breakpoint Tablette & Petits Écrans (<= 860px) */
@media (max-width: 860px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }

  .card-creator-box {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  /* Simulateur de combat : disposition verticale fluide */
  .calc-board {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calc-vs-divider {
    font-size: 2rem !important;
    margin: -0.5rem auto;
    text-align: center;
  }

  .calc-visual-container {
    padding: 1.5rem 1rem;
  }

  .selectable-card {
    width: 62px;
    height: 88px;
  }

  .winner-banner-tag {
    font-size: 1rem;
    padding: 0.25rem 0.8rem;
    top: -14px;
  }
}

/* Breakpoint Mobile Standard (<= 640px) */
@media (max-width: 640px) {
  .navbar {
    padding: 0.65rem 0.8rem;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar-actions {
    width: 100%;
    max-width: 380px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0.5rem;
  }

  .nav-logo-img {
    height: 38px;
  }

  .nav-btn {
    font-size: 0.92rem;
    padding: 0.5rem 0.6rem;
    justify-content: center;
    white-space: nowrap;
  }

  .nav-link-rules {
    font-size: 0.92rem;
    padding: 0.5rem 0.4rem;
    text-align: center;
    border: 2px solid var(--color-blue-dark);
    background: #FFF;
    white-space: nowrap;
  }

  .player-hand-vs {
    font-size: 2rem;
    margin: 0.5rem auto;
  }
}

/* Breakpoint Petits Mobiles (<= 480px) */
@media (max-width: 480px) {
  .cards-marquee-container .marquee-card {
    width: 100px;
    height: 145px;
  }

  .player-card-fan {
    width: 180px;
    height: 160px;
  }

  .fan-card-item {
    width: 85px;
    height: 125px;
  }

  .fan-card-1 { transform: rotate(-16deg) translateX(-24px); }
  .fan-card-2 { transform: rotate(-5deg) translateX(-8px); }
  .fan-card-3 { transform: rotate(6deg) translateX(10px); }
  .fan-card-4 { transform: rotate(18deg) translateX(26px); }

  .player-card-fan:hover .fan-card-1 { transform: rotate(-22deg) translateX(-36px) translateY(-6px); }
  .player-card-fan:hover .fan-card-2 { transform: rotate(-8deg) translateX(-12px) translateY(-8px); }
  .player-card-fan:hover .fan-card-3 { transform: rotate(8deg) translateX(14px) translateY(-8px); }
  .player-card-fan:hover .fan-card-4 { transform: rotate(22deg) translateX(38px) translateY(-6px); }

  .cta-box {
    padding: 1.5rem 1rem;
  }
}
