/* ============================================================
   NovaCulture – Feuille de style principale
   Thème : Nature & Exploration
   ============================================================ */

/* ── Variables & Reset ─────────────────────────────────────── */
:root {
  --green-dark:    #1a6b8a;  /* bleu-vert profond */
  --green-mid:     #2196b0;  /* bleu-vert moyen */
  --green-light:   #4fc3d8;  /* bleu ciel clair */
  --green-pale:    #b2ebf2;  /* bleu très pâle */
  --green-bg:      #e0f7fa;  /* fond bleu-vert très clair */
  --earth-brown:   #1a6b8a;
  --earth-tan:     #4fc3d8;
  --cream:         #f0fafb;  /* fond général légèrement bleuté */
  --white:         #ffffff;
  --text-dark:     #0d2d3a;  /* texte foncé bleu-vert */
  --text-mid:      #1a4a5c;
  --text-light:    #4a8fa0;
  --shadow-sm:     0 2px 8px rgba(26,107,138,.15);
  --shadow-md:     0 6px 24px rgba(26,107,138,.20);
  --shadow-lg:     0 12px 48px rgba(26,107,138,.25);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --transition:    all .35s cubic-bezier(.4,0,.2,1);
  --font-title:    'Cinzel', serif;
  --font-body:     'Lato', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--green-bg); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,107,138,.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,107,138,.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(13,45,58,.96);
  backdrop-filter: blur(12px);
  padding: .8rem 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  cursor: pointer;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-leaf { font-size: 1.4rem; }
.logo-accent { color: var(--green-pale); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green-pale);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--green-pale); }
.nav-links a:hover::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('hero-bg-new.png') center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,107,138,.3) 0%, rgba(13,45,58,.6) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(82,183,136,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45,106,79,.10) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  animation: fadeInUp .9s ease both;
}

.hero-tagline {
  display: inline-block;
  background: rgba(79,195,216,.25);
  border: 1px solid rgba(79,195,216,.5);
  color: var(--green-pale);
  padding: .4rem 1.4rem;
  border-radius: 50px;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: var(--white);
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
  margin-bottom: 1.5rem;
}

.hero-title span { color: var(--green-pale); }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

/* ── Sections communes ──────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-leaf {
  font-size: 2rem;
  display: block;
  margin-bottom: .5rem;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-dark);
  margin-bottom: .75rem;
}

.section-header.light h2 { color: var(--white); }
.section-header.light .section-subtitle { color: rgba(255,255,255,.75); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ── Informations ───────────────────────────────────────────── */
.informations {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.informations::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(82,183,136,.12) 0%, transparent 70%);
  border-radius: 50%;
}

.info-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(82,183,136,.15);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--green-light), var(--green-mid));
  border-radius: 4px 0 0 4px;
}

.info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(82,183,136,.35);
}

.info-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green-bg), var(--green-pale));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.info-icon i {
  font-size: 1.4rem;
  color: var(--green-dark);
}

.info-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: .75rem;
}

.info-card p {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* Règles du jeu */
.rules-box {
  max-width: 900px;
  margin: 3.5rem auto 0;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
}

.rules-box h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.rules-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.step.visible { opacity: 1; transform: translateY(0); }

.step-number {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.step p { font-size: .9rem; color: rgba(255,255,255,.9); line-height: 1.6; }

/* ── Cartes ─────────────────────────────────────────────────── */
.cartes {
  background: linear-gradient(160deg, var(--green-dark) 0%, #0d2d3a 100%);
  position: relative;
  overflow: hidden;
}

.cartes::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(82,183,136,.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(45,106,79,.12) 0%, transparent 40%);
}

.cards-showcase {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Carte de jeu 3D flip */
.game-card {
  width: 180px;
  height: 260px;
  perspective: 1000px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease;
}

.game-card.visible { opacity: 1; transform: translateY(0); }

.card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}

.game-card:hover .card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-lg);
}

.card-front {
  background: linear-gradient(160deg, #e8f5e9, #c8e6c9);
  border: 2px solid rgba(82,183,136,.4);
  gap: .75rem;
}

.card-flag { font-size: 3.5rem; }

.card-front h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--green-dark);
}

.card-badge {
  background: var(--green-mid);
  color: var(--white);
  padding: .2rem .8rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-back {
  background: linear-gradient(160deg, var(--green-dark), #0d2b1a);
  border: 2px solid rgba(82,183,136,.3);
  transform: rotateY(180deg);
  gap: .5rem;
}

.card-back h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--green-pale);
  margin-bottom: .5rem;
}

.card-back ul { width: 100%; }

.card-back li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  padding: .25rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.card-back li i { color: var(--green-light); width: 14px; }
.card-back li strong { color: var(--green-pale); margin-top: .4rem; display: block; }

.cards-cta {
  text-align: center;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}

.cards-cta p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ── Équipe ─────────────────────────────────────────────────── */
.equipe {
  background: var(--cream);
  position: relative;
}

.equipe::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 200px;
  background: linear-gradient(to top, rgba(27,67,50,.06), transparent);
  pointer-events: none;
}

.team-intro {
  max-width: 700px;
  margin: -2rem auto 3.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26,107,138,.1);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card.visible { opacity: 1; transform: translateY(0); }

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.team-avatar {
  margin-bottom: 1.5rem;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--green-mid);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden; /* Pour que l'image reste dans le cercle */
}

.team-dept-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* L'image remplit le cercle sans déformation */
}

.team-info h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--green-pale);
  padding-bottom: 0.5rem;
  width: 100%;
}

.team-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.team-members-list li {
  font-size: 1.05rem;
  color: var(--text-dark);
  padding: 0.4rem 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.team-members-list li:hover {
  color: var(--green-mid);
}

.team-department-title { display: none; } /* On cache les anciens titres car ils sont dans les cartes désormais */r-5 { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
.avatar-6 { background: linear-gradient(135deg, #40916c, #1b4332); }

.team-social {
  display: flex;
  gap: .5rem;
}

.team-social a {
  width: 30px; height: 30px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: .8rem;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.team-info h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: .25rem;
}

.team-role {
  display: inline-block;
  font-size: .8rem;
  color: var(--green-mid);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.team-info p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Valeurs */
.values-section {
  max-width: 1000px;
  margin: 4rem auto 0;
  text-align: center;
}

.values-section h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 2.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.value-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(82,183,136,.12);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.value-item.visible { opacity: 1; transform: translateY(0); }
.value-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.value-item i {
  font-size: 2rem;
  color: var(--green-mid);
  margin-bottom: 1rem;
  display: block;
}

.value-item h4 {
  font-family: var(--font-title);
  font-size: .95rem;
  color: var(--green-dark);
  margin-bottom: .5rem;
}

.value-item p {
  font-size: .88rem;
  color: var(--text-light);
}

/* ── Contact & Réseaux sociaux ──────────────────────────────── */
.contact {
  background: linear-gradient(160deg, var(--green-dark) 0%, #0d2d3a 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(82,183,136,.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(45,106,79,.08) 0%, transparent 40%);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.social-block h3,
.contact-form-block h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.social-block > p {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: var(--transition);
}

.social-btn:hover::before { opacity: 1; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

.social-btn i { font-size: 1.3rem; width: 24px; text-align: center; }
.social-btn span { font-size: .9rem; }
.social-btn small { font-size: .75rem; opacity: .75; margin-left: auto; }

.facebook  { background: #1877f2; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.twitter   { background: #000000; }
.youtube   { background: #ff0000; }
.tiktok    { background: #010101; }
.leetchi    { background: #ff5a5f; }
.discord   { background: #5865f2; }

/* Formulaire */
.contact-form-block { }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.form-group label {
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.4); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(82,183,136,.2);
}

.form-group select option { background: var(--green-dark); color: var(--white); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #0d2d3a;
  padding: 4rem 2rem 0;
  color: rgba(255,255,255,.7);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: .75rem;
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  transform: translateY(-3px);
}
.footer-social a.leetchi-footer:hover { background: #ff5a5f; color: white; }

.footer-links h4 {
  font-family: var(--font-title);
  font-size: .95rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: .06em;
}

.footer-links li { margin-bottom: .6rem; }

.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--green-pale); padding-left: 4px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom i { color: var(--green-light); margin: 0 .2rem; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(10,31,18,.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(20px);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 1001; }

  .hero-title { font-size: clamp(2.8rem, 12vw, 4.5rem); }

  .info-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }

  .rules-steps { grid-template-columns: 1fr 1fr; }

  .social-links { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 1.2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .rules-steps { grid-template-columns: 1fr; }
  .cards-showcase { gap: 1.2rem; }
  .game-card { width: 150px; height: 220px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   ===== CODING NOUVELLE SECTION : REGLES DETALLEES =====
   ========================================================================== */

.regles-detaillees {
  background-color: #fcfdfc; /* Variante très claire pour contraster avec les autres sections */
}

.rules-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Carte Introductive */
.rules-intro-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  text-align: center;
  margin-bottom: 40px;
  border: 1px solid #edf2ed;
}

.rules-intro-card p {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 20px;
  font-style: italic;
}

.rules-badge {
  display: inline-block;
  background-color: #2d6a4f; /* Vert thématique principal */
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grille Matériel & Specs */
.rules-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.spec-card {
  background: #ffffff;
  border-top: 4px solid #2d6a4f;
  padding: 25px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
  opacity: 0; /* Pour l'animation d'apparition scroll */
}

.spec-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.spec-card i {
  font-size: 2rem;
  color: #2d6a4f;
  margin-bottom: 15px;
}

.spec-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #1b4332;
}

.spec-card ul {
  list-style: none;
  padding: 0;
}

.spec-card ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.spec-card ul li::before {
  content: "•";
  color: #2d6a4f;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.spec-highlight {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d6a4f;
}

/* Blocs Généraux de Règles */
.rules-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1px solid #f0f4f0;
}

.rules-block h3 {
  font-family: 'Cinzel', serif;
  color: #1b4332;
  font-size: 1.5rem;
  margin-bottom: 25px;
  border-bottom: 2px solid #edf2ed;
  padding-bottom: 10px;
}

.rules-block h3 i {
  margin-right: 10px;
  color: #2d6a4f;
}

/* Ligne temporelle / Mise en place */
.setup-steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.timeline-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.circle-num {
  background: #2d6a4f;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.timeline-step p {
  font-size: 1.05rem;
  color: #4a5568;
}

/* Déroulement de partie */
.gameplay-round {
  margin-bottom: 35px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.gameplay-round.visible {
  opacity: 1;
  transform: translateY(0);
}

.gameplay-round h4 {
  font-family: 'Cinzel', serif;
  color: #2d6a4f;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.round-intro {
  font-weight: bold;
  margin-bottom: 15px;
  color: #2d3748;
}

.round-actions-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.round-actions-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.round-actions-list li i {
  color: #52b788;
  width: 20px;
  text-align: center;
}

/* Boîtes de Verdicts (Vrai / Faux) */
.outcome-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 1rem;
}

.outcome-box i {
  font-size: 1.3rem;
  margin-top: 2px;
}

.outcome-success {
  background-color: #e8f5e9;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
}

.outcome-danger {
  background-color: #ffebee;
  border-left: 4px solid #c62828;
  color: #b71c1c;
}

/* Flex-options pour les tours suivants */
.options-flex {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.game-option {
  background: #f8faf8;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed #cededd;
}

.game-option h5 {
  font-family: 'Cinzel', serif;
  color: #1b4332;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.game-option ul {
  margin: 10px 0 15px 20px;
}

.game-option ul li {
  margin-bottom: 6px;
}

/* Fin de partie / Victoire */
.end-conditions {
  list-style: none;
  padding-left: 0;
  margin: 15px 0 25px 0;
}

.end-conditions li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.end-conditions li i {
  color: #4a5568;
}

.winner-announcement {
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.main-win {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.main-win i {
  color: #ffd700; /* Trophée doré */
  margin-right: 8px;
}

.tie-win {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Responsivité Mobile */
@media (max-width: 768px) {
  .rules-intro-card {
    padding: 20px;
  }
  .rules-block {
    padding: 20px;
  }
}
