/* ═══════════════════════════════════════════════════
   POLYZEA · index.css
   Même système de design que dashboard_prof.css
   Palette : #FFFDF8 | #14B8A6 | #84CC16 | #FB923C
   Texte   : #1F2937 | #6B7280
═══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --bg:           #FFFDF8;
  --primary:      #14B8A6;
  --primary-deep: #0EA5A4;
  --primary-10:   rgba(20,184,166,0.10);
  --primary-05:   rgba(20,184,166,0.05);
  --accent:       #84CC16;
  --accent-10:    rgba(132,204,22,0.12);
  --orange:       #FB923C;
  --orange-10:    rgba(251,146,60,0.12);
  --text:         #1F2937;
  --text-sec:     #6B7280;
  --text-light:   #9CA3AF;
  --white:        #FFFFFF;
  --border:       rgba(20,184,166,0.14);
  --shadow-sm:    0 2px 12px rgba(20,184,166,0.07);
  --shadow-md:    0 8px 32px rgba(20,184,166,0.12);
  --shadow-lg:    0 20px 60px rgba(20,184,166,0.16);
  --shadow-btn:   0 4px 24px rgba(20,184,166,0.30);
  --radius-sm:    14px;
  --radius-md:    22px;
  --radius-lg:    32px;
  --radius-xl:    48px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   0.28s cubic-bezier(0.34,1.2,0.64,1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── Fond hexagones ────────────────────────────────── */
.hex-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.8;
}
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.65;
}
.orb--teal {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(20,184,166,0.15) 0%, transparent 70%);
  top: -180px; right: -100px;
}
.orb--green {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(132,204,22,0.12) 0%, transparent 70%);
  bottom: 60px; left: -100px;
}
.orb--orange {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(251,146,60,0.11) 0%, transparent 70%);
  bottom: 28%; right: 10%;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  padding: 0.9rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,253,248,0.88);
  backdrop-filter: blur(14px);
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Logo */
.logo-nav {
  display: flex; align-items: center; gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary);
}

/* Links */
.nav-links {
  display: flex; gap: 0.2rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-sec);
  transition: all 0.2s ease;
}
.nav-link:hover { background: var(--primary-05); color: var(--primary); }
.nav-link--active { background: var(--primary-10); color: var(--primary); font-weight: 600; }

/* Auth */
.btn-outline-nav {
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(20,184,166,0.35);
  color: var(--primary);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline-nav:hover {
  background: var(--primary-10);
  border-color: var(--primary);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-sec); border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(255,253,248,0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 0.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile__link {
  padding: 0.9rem 1.5rem;
  font-weight: 500; color: var(--text-sec);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  transition: background 0.15s;
}
.nav-mobile__link:last-child { border-bottom: none; }
.nav-mobile__link:hover { background: var(--primary-05); color: var(--primary); }
.nav-mobile__link--cta { color: var(--primary); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   LAYOUT PRINCIPAL
═══════════════════════════════════════════════════ */
.page-main {
  position: relative; z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: flex; flex-direction: column; gap: 3rem;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 1rem;
  animation: fade-up 0.65s 0.05s ease both;
}

/* ── Côté gauche ───────────────────────────────────── */
.hero-left {
  display: flex; flex-direction: column; gap: 1.4rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 1.1rem;
  background: var(--accent-10);
  border: 1px solid rgba(132,204,22,0.28);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  color: #4a7a00;
  letter-spacing: 0.04em; text-transform: uppercase;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(132,204,22,0.22);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(132,204,22,0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(132,204,22,0.08); }
}

.hero-title {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.08;
}
.title-l1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--text);
}
.title-l2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, #0EA5A4 40%, #2DD4BF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: -0.06em;
}
.title-l3 {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400; font-style: italic;
  color: var(--text-sec); margin-top: 0.5rem;
}

.hero-desc {
  font-size: 0.97rem; color: var(--text-sec);
  line-height: 1.65; max-width: 520px;
}

.hero-cta-label {
  font-size: 0.88rem; font-weight: 500; color: var(--text-sec);
  letter-spacing: 0.02em;
}

/* ── Boutons rôle ──────────────────────────────────── */
.role-buttons {
  display: flex; flex-direction: column; gap: 0.8rem;
  max-width: 420px;
}

.role-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.72);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.role-btn::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.2s;
  border-radius: inherit;
}
.role-btn--teacher {
  border-bottom: 3px solid rgba(20,184,166,0.5);
  box-shadow: var(--shadow-sm);
}
.role-btn--teacher::before { background: var(--primary-05); }
.role-btn--student {
  border-bottom: 3px solid rgba(132,204,22,0.55);
  box-shadow: var(--shadow-sm);
}
.role-btn--student::before { background: var(--accent-10); }

.role-btn:hover { transform: translateY(-3px) scale(1.01); }
.role-btn--teacher:hover { box-shadow: 0 10px 32px rgba(20,184,166,0.18); border-color: rgba(20,184,166,0.4); }
.role-btn--student:hover  { box-shadow: 0 10px 32px rgba(132,204,22,0.16); border-color: rgba(132,204,22,0.4); }
.role-btn:hover::before { opacity: 1; }
.role-btn:active { transform: translateY(0) scale(0.99); }

.role-btn__icon { font-size: 1.8rem; flex-shrink: 0; z-index: 1; }
.role-btn__body { flex: 1; z-index: 1; }
.role-btn__title { display: block; font-weight: 700; font-size: 1rem; color: var(--text); }
.role-btn__sub   { display: block; font-size: 0.75rem; color: var(--text-sec); margin-top: 0.1rem; }
.role-btn__arrow {
  font-size: 1.1rem; color: var(--text-light);
  z-index: 1; transition: transform 0.22s ease;
}
.role-btn:hover .role-btn__arrow { transform: translateX(4px); color: var(--primary); }

/* ── Stats ─────────────────────────────────────────── */
.hero-stats {
  display: flex; align-items: center; gap: 1.6rem;
  padding: 1rem 1.6rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1;
}
.stat-label { font-size: 0.68rem; font-weight: 500; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-sep { width: 1px; height: 32px; background: rgba(20,184,166,0.18); flex-shrink: 0; }

/* ── Côté droit : ruche ────────────────────────────── */
.hero-right { display: flex; align-items: center; justify-content: center; }
.hive-wrap  { position: relative; width: 280px; }
.hive-svg   { width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(20,184,166,0.12)); }

/* Abeilles */
.bee {
  position: absolute;
  font-size: 1.2rem;
  animation: bee-orbit linear infinite;
  pointer-events: none;
}
.bee--a { animation-duration: 8s;  animation-delay: 0s;    top: -20px; left: 50%; transform-origin: -60px 60px; }
.bee--b { animation-duration: 11s; animation-delay: -3s;   top: 50%;   right: -30px; transform-origin: -80px 0; }
.bee--c { animation-duration: 9s;  animation-delay: -5s;   bottom: 0;  left: 20%; transform-origin: 20px -70px; }
.bee--d { animation-duration: 13s; animation-delay: -7s;   top: 30%;   left: -20px; transform-origin: 70px 30px; }

@keyframes bee-orbit {
  0%   { transform: rotate(0deg)   translateX(30px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

/* ═══════════════════════════════════════════════════
   DISCIPLINES
═══════════════════════════════════════════════════ */
.disciplines-section {
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.5rem 2.8rem;
  box-shadow: var(--shadow-sm);
  animation: fade-up 0.65s 0.25s ease both;
}

.section-header {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; margin-bottom: 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,184,166,0.4), transparent);
  max-width: 120px;
}

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.disc-card {
  background: rgba(255,255,248,0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  transition: all 0.25s ease;
  cursor: default;
  position: relative; overflow: hidden;
}
.disc-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0; transition: opacity 0.2s;
}
.disc-card[data-color="teal"]::after   { background: var(--primary); }
.disc-card[data-color="green"]::after  { background: var(--accent); }
.disc-card[data-color="orange"]::after { background: var(--orange); }

.disc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.disc-card[data-color="teal"]:hover   { border-color: rgba(20,184,166,0.35); background: rgba(20,184,166,0.04); }
.disc-card[data-color="green"]:hover  { border-color: rgba(132,204,22,0.35); background: rgba(132,204,22,0.04); }
.disc-card[data-color="orange"]:hover { border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.04); }
.disc-card:hover::after { opacity: 1; }

.disc-card__icon  { font-size: 2rem; margin-bottom: 0.6rem; }
.disc-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.disc-card__desc  { font-size: 0.8rem; color: var(--text-sec); line-height: 1.5; margin-bottom: 0.6rem; }
.disc-card__tag {
  display: inline-block;
  font-size: 0.66rem; font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-05);
  color: var(--primary-deep);
  border: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════
   FEATURES ROW
═══════════════════════════════════════════════════ */
.features-row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 2rem;
  padding: 1.8rem 2.5rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  animation: fade-up 0.65s 0.4s ease both;
}

.feature-item {
  display: flex; align-items: center; gap: 1rem;
}
.feature-item__icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.feature-item__icon--teal   { background: var(--primary-10); }
.feature-item__icon--green  { background: var(--accent-10);  }
.feature-item__icon--orange { background: var(--orange-10);  }

.feature-item__text { display: flex; flex-direction: column; gap: 0.15rem; }
.feature-item__text strong { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.feature-item__text span   { font-size: 0.75rem; color: var(--text-sec); }

.feature-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  padding-bottom: 1rem;
  animation: fade-up 0.5s 0.55s ease both;
}
.footer-pill {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: var(--primary-05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem; color: var(--text-sec);
}
.footer-legal { font-size: 0.72rem; color: var(--text-light); }

/* ═══════════════════════════════════════════════════
   MODAL ADMIN
═══════════════════════════════════════════════════ */
.admin-modal {
  position: fixed; inset: 0;
  background: rgba(31,41,55,0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.admin-modal__card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 2rem 2.2rem;
  width: 100%; max-width: 360px;
  border: 1px solid rgba(20,184,166,0.2);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.3s cubic-bezier(0.34,1.2,0.64,1) both;
  display: flex; flex-direction: column; gap: 1rem;
}
@keyframes modal-in {
  from { opacity:0; transform: scale(0.93) translateY(16px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.admin-modal__icon { font-size: 2rem; text-align: center; }
.admin-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); text-align: center;
}
.admin-modal__actions {
  display: flex; gap: 0.8rem; margin-top: 0.3rem;
}

/* ── Boutons ────────────────────────────────────────── */
.btn-primary {
  background: var(--primary); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.22s;
  box-shadow: 0 4px 16px rgba(20,184,166,0.25);
  flex: 1;
}
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: var(--shadow-btn); }

.btn-secondary {
  background: transparent; border: 1.5px solid var(--primary);
  color: var(--primary); padding: 0.75rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.22s; flex: 1;
}
.btn-secondary:hover { background: var(--primary-10); }

/* form-group (modal admin) */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.form-group input {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white; font-family: inherit; font-size: 0.92rem; color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}

/* ── Keyframes ─────────────────────────────────────── */
@keyframes fade-up {
  from { opacity:0; transform: translateY(22px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left { align-items: center; }
  .hero-desc { text-align: center; }
  .hero-right { justify-content: center; }
  .role-buttons { width: 100%; max-width: 480px; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .page-main { padding: 0 1.2rem 2.5rem; gap: 2rem; }
  .navbar { padding: 0.7rem 1rem; }
  .nav-links, .nav-auth { display: none; }
  .nav-burger { display: flex; }
  .disciplines-section { padding: 1.8rem 1.5rem; }
  .disciplines-grid { grid-template-columns: 1fr 1fr; }
  .features-row { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 1.4rem 1.5rem; }
  .feature-sep { display: none; }
}

@media (max-width: 540px) {
  .disciplines-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .stat-sep { display: none; }
  .hive-wrap { width: 220px; }
}