/* ---------------------------------------------
   VARIABLES GLOBALES
--------------------------------------------- */
:root {
  --bg-dark: #050814;
  --bg-section: #0b1020;
  --accent: #7b3ff3;
  --accent-soft: #7b3ff333;
  --text-main: #f5f5f7;
  --text-muted: #b0b3c1;
  --danger: #ff4b6e;
  --max-width: 1100px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.5);
}

/* ---------------------------------------------
   RESET
--------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background: radial-gradient(circle at top, #171a3a 0, #050814 55%);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------
   LAYOUT GLOBAL
--------------------------------------------- */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* SECTION GENERIQUE */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 18px 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
}

/* PAGES TEXTE (À PROPOS, MENTIONS, POLITIQUE) */
.text-section {
  margin-bottom: 22px;
}

.text-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.text-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.text-section ul {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  list-style: disc;
  margin-bottom: 8px;
}

/* ---------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5,8,20,0.9), rgba(5,8,20,0.75), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0, #ffcc66, #7b3ff3);
  box-shadow: 0 0 25px rgba(123,63,243,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  text-transform: uppercase;
}

.brand-text span:last-child {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--text-main);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg,var(--accent),var(--danger));
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  width: 100%;
}

.nav-cta {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg,var(--accent),var(--danger));
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(123,63,243,0.5);
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ---------------------------------------------
   HERO ACCUEIL
--------------------------------------------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 18px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(8,12,40,0.9);
  border: 1px solid rgba(123,63,243,0.35);
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  margin-bottom: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255,75,110,0.9);
}

.hero-title {
  font-size: clamp(32px,5vw,42px);
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-title span {
  background: linear-gradient(90deg, #ffffff, #d3c5ff, #ffcc88);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 14px 0 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-primary,
.btn-ghost {
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary {
  background: linear-gradient(120deg,var(--accent),var(--danger));
  box-shadow: 0 14px 32px rgba(123,63,243,0.7);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(10,14,40,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--text-main);
}

.hero-footnote {
  font-size: 12px;
  color: var(--text-muted);
}

/* Carte hero */
.hero-card {
  border-radius: 24px;
  background: radial-gradient(circle at top, #262b5a, #050814 68%);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hero-card-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.status-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6,234,164,0.12);
  border: 1px solid rgba(6,234,164,0.5);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aefadd;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #06eaa4;
  box-shadow: 0 0 9px rgba(6,234,164,1);
}

.hero-game-banner {
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: center/cover no-repeat
    url("https://images.pexels.com/photos/9072301/pexels-photo-9072301.jpeg");
  position: relative;
}

.hero-game-banner::after {
  content: "Tournois, LAN, rétro & coop";
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(5,8,20,0.8);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-card-main {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(145deg,rgba(7,12,40,0.95),rgba(20,16,48,0.98));
  padding: 14px 14px 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

.info-row span {
  color: var(--text-muted);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.hero-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(123,63,243,0.16);
  border: 1px solid rgba(123,63,243,0.5);
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-card-footer strong {
  color: var(--text-main);
}

/* ---------------------------------------------
   ACTIVITÉS (CARTES)
--------------------------------------------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius-lg);
  background: rgba(8,12,32,0.96);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 14px 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.65);
}

.card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.tag {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ---------------------------------------------
   EQUIPE
--------------------------------------------- */
.team-preview {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:20px;
}


.member {
  display: flex;
  flex-direction: column;
}


.member img {
  width: 70%;
  height:auto;          /* hauteur auto selon la photo */
  max-height:fit-content;     /* limite pour éviter les images trop hautes */
  object-fit:scale-down;   /* on affiche toute l’image, plus de découpe */
  border-radius: 18px;
  margin-bottom: 12px;
  background: #050814;   /* fond derrière si l’image ne remplit pas tout */
}

.member-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.member-role {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.member-bio {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------------------------------------------
   PAGE ACTUALITÉS
--------------------------------------------- */
.article-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(8,12,28,0.98);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 18px;
}

.article-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.article-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.article-text {
  font-size: 14px;
  color: var(--text-muted);
}

.article-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  opacity: 0.95;
}

/* Aperçu d’actus sur la home */
.news-grid {
  max-width: var(--max-width);
  margin: 0 auto 16px;
  padding: 0 18px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.news-main,
.news-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card {
  border-radius: var(--radius-lg);
  background: rgba(8,12,32,0.96);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 12px 14px 14px;
}

.news-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.news-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.news-excerpt {
  font-size: 13px;
  color: var(--text-muted);
}

.news-link {
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ---------------------------------------------
   PAGE CONTACT
--------------------------------------------- */
/* Zone de la grande carte de contact */
/* Mise en page du bloc contact : texte + formulaire + logo */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); /* gauche large, droite plus étroite */
  gap: 32px;
  align-items: center;
}

/* Colonne gauche : texte + formulaire */
.contact-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Colonne droite : logo */
.contact-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-visual img {
  width: 100%;
  max-width: 320px;
  opacity: 0.50;          /* discret, tu peux monter à 0.25 si tu veux plus visible */
  display: block;
}

/* Sur mobile : on cache l'image et on repasse en 1 colonne */
@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-visual {
    display: none;
  }
}

.contact-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-info strong {
  color: var(--text-main);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(4,6,18,0.95);
  color: var(--text-main);
  font-size: 13px;
  resize: vertical;
  min-height: 38px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(123,63,243,0.4);
}

.contact-submit {
  margin-top: 6px;
}

.contact-submit button {
  width: 100%;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* ICONES RÉSEAUX SOCIAUX */
.social-icon {
  width: 18px !important;
  height: 18px !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.9;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ---------------------------------------------
   FOOTER
--------------------------------------------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 15px 18px;
  background: rgba(2,4,12,0.95);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ---------------------------------------------
   RESPONSIVE
--------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-card {
    order: -1;
  }
  .activities-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .section,
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------
   BOUTON "NOUS CONTACTER" (HOME)
--------------------------------------------- */
.home-contact-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  background: linear-gradient(120deg, var(--accent), var(--danger)) !important;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 28px rgba(123,63,243,0.45);
  width: fit-content;
  margin-left: auto;
  transition: 0.15s ease-in-out;
}

.home-contact-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
