/* ==============================
   KELKUN ACADEMY — STYLES GLOBALS
   Version 1 (réutilisable partout)
   ============================== */

/* ---------- Variables globales ---------- */
:root {
  /* Palette principale */
  --primary: #7B6CFF;
  --primary-dark: #5F2EEA;
  --primary-light: #EAE6FF;

  /* Accents */
  --accent-green: #00D1B2;
  --accent-coral: #FF6B6B;

  /* Neutres */
  --white: #FFFFFF;
  --gray-light: #F5F7FA;
  --gray-dark: #333333;

  /* Typo */
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 1rem;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

/* ---------- Boutons (CTA) ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(91, 46, 234, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ---------- Sections alternées ---------- */
.section {
  padding: 4rem 1rem;
}

.section-light {
  background: var(--white);
}

.section-gray {
  background: var(--gray-light);
}

.section-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

/* ---------- Header ---------- */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

header a {
  text-decoration: none;
  color: var(--gray-dark);
  font-weight: 500;
  margin: 0 1rem;
}

header a:hover {
  color: var(--primary);
}

/* ---------- Hero section ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 6rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--white);
}

/* ---------- Footer ---------- */
footer {
  background: var(--gray-dark);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: var(--accent-green);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

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

  .hero {
    padding: 4rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .btn {
    width: 100%;
    padding: 1rem;
  }
}

