/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* --- PALETTE DE COULEURS --- */
  --primary: #2563eb;           /* Bleu Royal Moderne */
  --primary-hover: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  
  --secondary: #64748b;         /* Gris Ardoise */
  --success: #16a34a;           /* Vert Succès */
  --danger: #ef4444;            /* Rouge Erreur */
  
  --text-dark: #0f172a;         /* Noir Profond */
  --text-light: #64748b;        /* Gris Texte */
  
  /* --- BACKGROUNDS GLASSMORPHISM --- */
  --bg-gradient: linear-gradient(135deg, #f6f8fd 0%, #e9eeff 100%);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-blur: blur(16px);
  
  /* --- OMBRES --- */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 32px rgba(31, 38, 135, 0.07);
  --shadow-lg: 0 12px 40px rgba(31, 38, 135, 0.12);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed; /* Fond fixe pour l'effet de profondeur */
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }

/* Wrapper principal */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }


/* ==========================================================================
   2. UTILITAIRES GLASSMORPHISM
   ========================================================================== */

/* Classe générique pour appliquer l'effet verre */
.glass-panel, .card, .nav, .login-card, .tech-table-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}


/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */

nav {
  position: sticky; top: 20px; z-index: 1000;
  margin: 0 auto;
  max-width: 1100px; /* La nav flotte au milieu */
  border-radius: 100px !important; /* Nav pilule */
  
  /* MODIFICATION ICI : Plus de transparence et plus de flou */
  background: rgba(255, 255, 255, 0.5) !important; 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Pour Safari */
  
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05); /* Ombre légère */
  
  padding: 0 24px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

/* Petit effet au survol de la barre entière (optionnel mais sympa) */
nav:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.nav-content { height: 60px; display: flex; justify-content: space-between; align-items: center; }

.logo { 
  font-size: 1.3rem; font-weight: 800; color: var(--text-dark); 
  letter-spacing: -0.5px; 
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 0.9rem; color: var(--text-light); align-items: center; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }


/* ==========================================================================
   4. BOUTONS & INPUTS
   ========================================================================== */
.btn {
  padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}

/* Bouton Primaire (Bleu) */
.btn-primary {
  background: var(--primary-gradient); color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); }

/* Bouton Secondaire (Style Bleu Outline / Glass) */
.btn-secondary {
  /* Fond bleu très léger pour la lisibilité */
  background: rgba(37, 99, 235, 0.1); 
  color: var(--primary); 
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-weight: 600;
}

/* Au survol, il devient plein comme le primaire */
.btn-secondary:hover { 
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

/* Bouton Blanc (Google Login) */
.btn-white {
  background: white; color: var(--text-dark);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }

/* Bouton Petit */
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Inputs (Style Verre) */
.input-group { margin-bottom: 20px; text-align: left; }
.input-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }

.styled-input {
  width: 100%; padding: 14px; border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  background: rgba(255, 255, 255, 0.6); /* Fond semi-transparent */
  font-size: 1rem; color: var(--text-dark);
  transition: 0.2s; backdrop-filter: blur(5px);
}
.styled-input:focus {
  outline: none; border-color: var(--primary); background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}


/* ==========================================================================
   5. COMPOSANTS (HERO, CARDS, GRID)
   ========================================================================== */
.hero { text-align: center; padding: 100px 0 80px 0; max-width: 800px; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; padding: 6px 16px;
  background: rgba(37, 99, 235, 0.1); color: var(--primary);
  border-radius: 99px; font-size: 0.8rem; font-weight: 700; margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.2); text-transform: uppercase; letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -2px; margin-bottom: 24px;
  background: linear-gradient(to right, #0f172a 20%, #475569 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p, .hero-subtitle { font-size: 1.2rem; color: var(--text-light); margin-bottom: 30px; line-height: 1.5; }

/* Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Cards */
.card {
  padding: 32px; 
  transition: all 0.4s ease;
  display: flex; flex-direction: column; align-items: flex-start;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.9);
}

.icon-box {
  width: 48px; height: 48px; background: rgba(37, 99, 235, 0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  margin-bottom: 20px; color: var(--primary);
}

.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.feature-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }


/* ==========================================================================
   6. PAGE SPECIFIQUE : LOGIN
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  /* Pas de padding vertical excessif pour éviter le scroll sur petits écrans */
}

.back-link {
  position: absolute; top: 30px; left: 30px;
  font-weight: 600; color: var(--text-light);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px;
  background: var(--glass-bg); border: var(--glass-border);
  font-size: 0.9rem;
}
.back-link:hover { color: var(--primary); background: white; transform: translateX(-3px); }

.login-card {
  width: 100%; max-width: 420px; padding: 48px 40px !important;
  text-align: center;
  /* Effet glass boosté pour le login */
  background: rgba(255, 255, 255, 0.75);
}


/* ==========================================================================
   7. PAGE SPECIFIQUE : PRICING
   ========================================================================== */
.pricing-toggle {
  display: inline-flex; align-items: center; gap: 15px; margin-bottom: 50px;
  padding: 8px 16px; border-radius: 50px;
  background: var(--glass-bg); border: var(--glass-border);
}
.toggle-label { font-weight: 600; color: var(--text-light); cursor: pointer; transition: 0.3s; font-size: 0.9rem;}
.toggle-label.active { color: var(--text-dark); }

.toggle-switch {
  width: 44px; height: 24px; background: #cbd5e1; border-radius: 99px;
  position: relative; cursor: pointer; transition: 0.3s;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: white; border-radius: 50%; box-shadow: var(--shadow-sm); transition: 0.3s;
}
/* Mode Annuel Actif */
.pricing-container.yearly .toggle-switch { background: var(--primary); }
.pricing-container.yearly .toggle-switch::after { transform: translateX(20px); }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }

.price-tag { font-size: 3rem; font-weight: 800; color: var(--text-dark); margin: 15px 0; display: flex; align-items: baseline; }
.price-period { font-size: 1rem; color: var(--text-light); font-weight: 500; margin-left: 5px; }

.plan-features { margin: 25px 0; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 25px; }
.feature-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-dark); }
.check-icon { color: var(--success); font-weight: bold; background: rgba(22, 163, 74, 0.1); padding: 2px 6px; border-radius: 6px; font-size: 0.8rem; }

/* Highlight Populaire */
.card-popular {
  border: 2px solid var(--primary);
  background: rgba(255, 255, 255, 0.8);
  position: relative;
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 12px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}


/* ==========================================================================
   8. PAGE SPECIFIQUE : TECHNOLOGY
   ========================================================================== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }

.tech-table-wrapper { overflow-x: auto; padding: 0; } /* Reset padding pour la table */
.tech-table { width: 100%; border-collapse: collapse; min-width: 600px; }

.tech-table th {
  text-align: left; padding: 20px 24px; 
  background: rgba(248, 250, 252, 0.5); /* Header gris clair */
  color: var(--text-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tech-table td {
  padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-dark); font-size: 0.95rem; vertical-align: middle;
}
.tech-table tr:last-child td { border-bottom: none; }

.tech-check { color: var(--primary); font-weight: bold; font-size: 1.1rem; }
.tech-cross { color: #cbd5e1; font-weight: bold; font-size: 1.1rem; }


/* ==========================================================================
   9. SETTINGS UI (TAGS & LISTS)
   ========================================================================== */
.add-calendar-box { display: flex; gap: 10px; margin-bottom: 15px; }

.btn-add {
  background: var(--primary); color: white; border: none; 
  padding: 0 20px; border-radius: 10px; font-weight: 600; 
  cursor: pointer; transition: 0.2s;
}
.btn-add:hover { background: var(--primary-hover); }

.tags-container { display: flex; flex-wrap: wrap; gap: 10px; min-height: 40px; margin-top: 10px; }

.calendar-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid #e2e8f0;
  padding: 6px 12px; border-radius: 20px;
  font-size: 0.9em; color: var(--text-dark); font-weight: 500;
  box-shadow: var(--shadow-sm);
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag-close {
  color: var(--danger); cursor: pointer; display: flex; align-items: center;
  border-radius: 50%; padding: 2px; transition: 0.2s;
}
.tag-close:hover { background: #fee2e2; }

@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* ==========================================================================
   10. FOOTER & RESPONSIVE
   ========================================================================== */
footer {
  text-align: center; padding: 40px; margin-top: 80px; 
  border-top: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light); font-size: 0.9rem;
}

@media (max-width: 768px) {
  nav { padding: 0 16px; top: 10px; width: 95%; }
  .nav-links { display: none; } /* Pour l'instant on cache le menu sur mobile ou on peut faire un burger */
  
  .hero h1 { font-size: 2.5rem; }
  
  .bento-grid, .pricing-grid { grid-template-columns: 1fr; }
  
  .card, .login-card { padding: 24px; }
  .login-card { padding: 32px 24px !important; }
}


/* --- AJOUTS POUR LA PAGE PRICING BETA --- */

/* 1. Le bandeau d'alerte Bêta */
.beta-banner {
  background: rgba(37, 99, 235, 0.08); /* Fond bleu très léger */
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* 2. Pour aligner le bouton tout en bas */
/* La carte est déjà en flex-col, donc margin-top: auto pousse l'élément vers le bas */
.card-footer {
  margin-top: auto;
  width: 100%;
}

/* 3. Style pour la carte "Futur" grisée */
.card-disabled {
  opacity: 0.6;
  filter: grayscale(100%);
  cursor: not-allowed;
  background: rgba(240, 240, 240, 0.5);
}

.old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 400;
  margin-right: 10px;
}