@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@500;700&display=swap');

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
}

/* ============================
   VARIABLES
   ============================ */
:root {
  --font-main: 'Poppins', Arial, sans-serif;
  --font-title: 'Playfair Display', serif;

  --color-primary: #c47dd4;
  --color-primary-dark: #9b3fd4;
  --color-surface: rgba(255, 255, 255, 0.10);
  --color-text: #f0e8ff;
  --color-text-muted: #d8c8f0;
  --color-footer-text: #c0a8d8;

  --radius-md: 6px;
  --radius-lg: 10px;

  --transition-base: 0.3s ease;

  --header-h: 70px;
}

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

html {
  scroll-behavior: smooth;
}

/* ============================
   LAYOUT GLOBAL (IMPORTANT FIX)
   ============================ */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: var(--font-main);
  color: var(--color-text);
  overflow-x: hidden;

  background-image: url('../assets/images/Synas_Background.png');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* overlay lisibilité */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* ============================
   HEADER
   ============================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(196, 125, 212, 0.2);
}

/* IMPORTANT : espace pour header fixed */
body {
  padding-top: var(--header-h);
}

/* ============================
   HERO
   ============================ */
.hero {
  max-width: 1000px;
  margin: 0 auto;

  padding: 40px 25px;

  line-height: 1.8;

  display: flex;
  flex-direction: column;
  align-items: center; /* ⭐ centre horizontalement tout */
  text-align: center;   /* ⭐ centre le texte */
}

/* TITRE PRINCIPAL */
.hero h1 {
  font-family: var(--font-title);
  font-size: 48px;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 40px;
}

/* TITRES */
.hero h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin: 40px 0 15px;
  color: var(--color-primary);

  border-left: none;
  padding-left: 0;
  text-align: center;
}

.hero h3 {
  font-size: 20px;
  margin-top: 20px;
  color: var(--color-text-muted);
}

.hero p {
  font-size: 15.5px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.hero ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.hero ul li {
  margin-bottom: 8px;
}
.hero a:not(.btn) {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}

.hero a:not(.btn):hover {
  color: var(--color-primary-dark);
}

/* ============================
   CARDS
   ============================ */
.slider-container {
  position: relative;
  padding: 20px 60px;
}

.cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
}

.card {
  width: 260px;

  padding: 18px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 125, 212, 0.2);
  border-radius: 12px;

  backdrop-filter: blur(8px);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(196, 125, 212, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ============================
   BOUTONS (AMÉLIORÉ + CONTOUR)
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 26px;

  background: rgba(196, 125, 212, 0.08);
  color: var(--color-text);

  border: 1px solid rgba(196, 125, 212, 0.35);
  border-radius: var(--radius-md);

  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;

  position: relative;
  overflow: hidden;

  transition: all var(--transition-base);
}

/* effet glow subtil */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(196, 125, 212, 0.25),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

/* hover */
.btn:hover {
  background: rgba(196, 125, 212, 0.18);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(196, 125, 212, 0.25);
}

.btn:hover::before {
  opacity: 1;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  transition: 0.5s;
}

.btn:hover::after {
  left: 120%;
}

/* click effect */
.btn:active {
  transform: translateY(0px) scale(0.98);
}
/* option: bouton centré automatiquement dans hero */
.hero .btn {
  margin: 10px auto;
}

/* ============================
   NAVBAR FIX
   ============================ */

nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
}

.logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--color-primary);
}
/* ============================
   FOOTER (FIX COLLÉ BAS)
   ============================ */
footer {
  margin-top: auto;
  text-align: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.88);
  color: var(--color-footer-text); 
  width: 100%;
  display: block;
}

/* ============================
   BTN RETOUR (CENTRÉ)
   ============================ */
.btn-retour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 40px auto;
  gap: 15px;
}

.btn-retour ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* ============================
   DROPDOWN FIX
   ============================ */
.dropdown {
  position: relative;
}

/* menu caché par défaut */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  display: none;
  flex-direction: column;

  background: rgba(0, 0, 0, 0.97);
  border: 1px solid rgba(196, 125, 212, 0.4);
  border-radius: var(--radius-md);

  min-width: 200px;
  padding: 8px 0;
  z-index: 2000;
}

/* affichage quand actif */
.dropdown.active .dropdown-menu {
  display: flex;
}

/* items */
.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text-muted);
  transition: 0.2s;
}

.dropdown-menu li a:hover {
  background: rgba(196, 125, 212, 0.15);
  color: var(--color-primary);
}

.sector {
  display: flex;
  flex-wrap: wrap;          /* 👈 autorise retour à la ligne */
  gap: 20px;
  justify-content: center;  /* centre les cards */
  margin-bottom: 60px;
  padding: 20px;

  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

/* ============================
   BOUTONS stream
   ============================ */
.btn-stream {
  display: center;
  padding: 12px 28px;

  background: transparent;
  color: var(--color-primary);

  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);

  text-decoration: none;
  font-weight: 600;

  transition: all var(--transition-base);
}

.btn-stream:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================
   CONTAINER GLOBAL (CENTRAGE UI DOSSIER)
   ============================ */
.container {
  max-width: 1200px;
  margin: 40px auto;

  display: flex;
  gap: 30px;

  justify-content: center;
  align-items: flex-start;

  padding: 20px;
}

.filters {
  width: 260px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 125, 212, 0.25);
  border-radius: 10px;

  padding: 18px;
}
.filters button {
  background: transparent;
  border: 1px solid rgba(196, 125, 212, 0.35);
  color: var(--color-text);

  padding: 10px 12px;
  border-radius: 6px;

  cursor: pointer;

  text-align: left;

  transition: all 0.2s ease;
}

.filters button:hover {
  background: rgba(196, 125, 212, 0.15);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateX(4px);
}

.panel {
  flex: 1;

  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  justify-content: center;
}

.row {
  display: flex;
  gap: 20px;
}

.row .hero {
  flex: 1;
}