/* styles.css */

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

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #e0e5ec;
  color: #333;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 1rem 0;
}

/* Header */
.header {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}
.logo img {
  height: 50px;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}
.nav a {
  color: #0055ff;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #0055ff;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}
.nav a:hover::after {
  width: 100%;
}
.nav a:hover {
  color: #003366;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero .slogan {
  font-weight: 300;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Glass effect sections */
.glass {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Buttons: Glassmorphism */
.btn-primary,
.btn-cta {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.2s ease-out, background 0.3s ease-out, box-shadow 0.3s ease-out;
  z-index: 1;
}
.btn-primary::before,
.btn-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255,255,255,0.4),
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.2)
  );
  transform: rotate(45deg);
  transition: transform 0.7s ease-out;
  z-index: -1;
}
.btn-primary:hover,
.btn-cta:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
.btn-primary:hover::before,
.btn-cta:hover::before {
  transform: rotate(25deg) translate(10%, 10%);
}

/* Super bouton "Mon Espace" */
.btn-login {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 14px;
  border: none;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0,114,255,0.4), 0 0 5px rgba(0,114,255,0.8);
  transition: all 0.3s ease-in-out;
  z-index: 2000;
}
.btn-login:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  box-shadow: 0 0 30px rgba(0,114,255,0.6), 0 0 10px rgba(0,114,255,1);
}

/* CTA grid */
.grid-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1.5rem;
  text-align: center;
}

/* Forfaits & Courses grid */
.forfait-list,
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.forfait-card,
.course-item {
  background: rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.forfait-card:hover,
.course-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.filters select {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
}

/* Lists */
.timeline,
.skills,
.diplomas {
  list-style: none;
  margin-top: 1rem;
}
.timeline li {
  margin-bottom: 0.75rem;
}
.timeline .date {
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Forms */
input,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.footer {
  background: rgba(0,0,0,0.05);
  padding: 1rem 0;
}
.footer .flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.socials a {
  margin-left: 1rem;
  font-size: 1.2rem;
  color: #0055ff;
  text-decoration: none;
}
.socials a:hover {
  color: #003366;
}

/* Calendar containers */
#calendar,
#calendar-full {
  height: 500px;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
}
