/* ============================================
   BoussoleScolaire - Styles CSS Globaux
   Version: Vert/Orange
   ============================================ */

/* === VARIABLES CSS === */
:root {
  --green: #00c878;
  --green-dark: #00a062;
  --green-light: #d6fce9;
  --orange: #ff8c3a;
  --orange-dark: #e67320;
  --orange-light: #fff0e0;
  --dark: #1a1a2e;
  --dark-mid: #16213e;
  --white: #ffffff;
  --grey: #f4f6f8;
  --text: #2d3748;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* === NAVBAR === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--green), var(--orange));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}

.logo-text span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-btns {
  display: flex;
  gap: 12px;
}

.btn-login {
  padding: 9px 22px;
  border-radius: 25px;
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  background: var(--green);
  color: #fff;
}

.btn-signup {
  padding: 9px 22px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--green), var(--orange));
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 200, 120, 0.3);
  transition: 0.3s;
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 120, 0.4);
}

/* === NAV USER (pour pages connectées) === */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-user {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
}

.nav-user strong {
  color: #fff;
}

.btn-logout {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* === BUTTONS === */
.btn-primary {
  padding: 14px 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--green), #00e88a);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(0, 200, 120, 0.35);
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 200, 120, 0.45);
}

.btn-secondary {
  padding: 14px 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

/* === FOOTER === */
footer {
  background: #111;
  color: rgba(255, 255, 255, 0.4);
  padding: 50px 60px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand .logo-text {
  font-size: 22px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
}

.footer-col h5 {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  color: var(--orange);
  text-decoration: none;
}

/* === PAGE INDICATOR === */
.page-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 10px 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}