
/*
 * index.css — correction du footer (gris, non sticky sur mobile), occupation totale, loader harmonisé pour toutes les pages
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('./calendar.css');
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #f9fafb;
  --footer-bg: #f3f4f6;
  --footer-text: #6b7280;
}
@media (prefers-color-scheme: dark) {
/* Bouton accessibilité footer : discret, cohérent, responsive */
.footer-access-btn {
  margin-top: 0.5em;
  margin-bottom: 0.1em;
  padding: 0.32em 0.9em;
  font-size: 0.92em;
  border-radius: 7px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.13);
  transition: background 0.18s, color 0.18s, transform 0.12s;
  outline: none;
  display: inline-block;
}
.footer-access-btn:hover, .footer-access-btn:focus {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
@media (max-width: 600px) {
  .footer-access-btn {
    width: 90vw;
    max-width: 220px;
    font-size: 0.98em;
    margin-top: 0.7em;
    margin-bottom: 0.2em;
    padding: 0.6em 0.5em;
  }
}
  :root {
    --primary: #34d399;
    --primary-dark: #059669;
    --bg: #1f2937;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --border: #374151;
    --card: #111827;
    --footer-bg: #23272e;
    --footer-text: #9ca3af;
  }
}
html, body {
  height: 100%;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  min-width: 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, #e0f7ef 0%, #f6fdfa 100%);
  color: var(--text);
  overflow-x: hidden;
}
body, input, button, select, textarea {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font-main, 'Segoe UI', Arial, sans-serif);
}
.header-actions {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  margin-top: 0.5em;
}
.nav-btn {
  color: var(--primary-dark);
  background: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.5em 1.2em;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-btn.active, .nav-btn:hover, .nav-btn:focus {
  background: var(--primary-dark);
  color: #fff;
}
.home-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100vw;
  max-width: 100vw;
  padding: 2.2rem 0 1.2rem 0;
  margin: 0;
  gap: 1.2rem;
  box-sizing: border-box;
  overflow-x: hidden;
}
.hero {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(16,185,129,0.13);
  padding: 2.2rem 1.2rem 1.7rem 1.2rem;
  text-align: center;
  margin: 0 auto 1.5rem auto;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  border: 1.5px solid var(--border);
}
.hero h1 {
  color: var(--primary-dark);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
  letter-spacing: 1.2px;
  line-height: 1.1;
}
.hero-desc {
  color: var(--primary);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  letter-spacing: 0.2px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.3em;
  margin-bottom: 0.2rem;
  width: 100%;
}
.hero .cta-btn, .hero .green-btn {
  font-size: 1.13rem;
  min-width: 140px;
  min-height: 48px;
  padding: 0.8em 1.3em;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(16,185,129,0.10);
}
@media (max-width: 600px) {
  .hero {
    max-width: 99vw;
    padding: 1.1rem 0.3rem 1.1rem 0.3rem;
    border-radius: 12px;
  }
  .hero h1 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
  }
  .hero-desc {
    font-size: 1.01rem;
    margin-bottom: 0.7rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.6em;
    width: 100%;
  }
  .hero .cta-btn, .hero .green-btn {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    padding: 0.7em 0.2em;
    min-height: 40px;
  }
}
/* Boutons principaux optimisés (CTA, green-btn, responsive) */
.cta-btn, .green-btn {
  background: linear-gradient(90deg, var(--primary, #10b981) 0%, var(--accent, #3b82f6) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.2em;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-width: 120px;
  min-height: 44px;
  line-height: 1.1;
  outline: none;
}
.cta-btn.secondary {
  background: #f3f4f6;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
  background-image: none;
}
.cta-btn:active, .green-btn:active {
  background: linear-gradient(90deg, var(--primary-dark, #059669) 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 0 0 2px var(--primary-dark, #059669) inset;
}
.cta-btn:hover, .green-btn:hover, .cta-btn:focus, .green-btn:focus {
  background: linear-gradient(90deg, var(--primary-dark, #059669) 0%, #2563eb 100%);
  color: #fff;
  outline: none;
}
.features {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.feature {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16,185,129,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  min-width: 180px;
  max-width: 260px;
  flex: 1 1 180px;
  text-align: center;
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  display: block;
}
.feature h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.feature p {
  color: #4b5563;
  font-size: 1.05rem;
}
.about {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16,185,129,0.07);
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.2rem auto;
}
.about h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.about ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
}
.about ul li {
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 0.7em;
  padding-left: 1.2em;
  position: relative;
}
.about ul li:before {
  content: '✔';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.1em;
}



@media (max-width: 900px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  .feature {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .about { max-width: 100%; }
  .hero { max-width: 100%; }
}
@media (max-width: 600px) {
  .main-header, .main-footer {
    min-width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .home-main {
    padding: 1.1rem 0.1rem 0.7rem 0.1rem;
  }
  .main-header { font-size: 1.1rem; min-height: 48px; }
  .main-footer { font-size: 0.95rem; padding: 0.8rem 0 0.4rem 0; position: relative; }
  .home-main { padding: 0.2rem 0.1rem 0.2rem 0.1rem; }
  .features { gap: 0.7rem; }
  .about { padding: 0.7rem 0.2rem; }
  .hero { padding: 0.7rem 0.2rem; }
}
/* --- Optimisation mobile avancée pour index.html --- */
@media (max-width: 480px) {
  .main-header {
    font-size: 0.98rem;
    min-height: 40px;
    padding: 0 0.2rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  .hero {
    padding: 0.5rem 0.1rem 0.5rem 0.1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(16,185,129,0.08);
    max-width: 99vw;
  }
  .hero h1 {
    font-size: 1.25rem;
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.5em;
    width: 100%;
  }
  .cta-btn, .green-btn {
    min-width: 0;
    width: 100%;
    font-size: 0.98rem;
    padding: 0.6em 0.2em;
    min-height: 38px;
  }
  .features {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
  }
  .feature {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    border-radius: 8px;
    font-size: 0.98rem;
    min-width: 0;
    max-width: 100vw;
  }
  .feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }
  .feature h2 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }
  .feature p {
    font-size: 0.97rem;
  }
  .about {
    padding: 0.5rem 0.1rem;
    border-radius: 7px;
    font-size: 0.97rem;
    max-width: 99vw;
  }
  .about h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }
  .about ul li {
    font-size: 0.97rem;
    margin-bottom: 0.4em;
    padding-left: 1.1em;
  }
  .about ul li:before {
    font-size: 1em;
  }
  .main-footer {
    font-size: 0.88rem;
    padding: 0.5rem 0 0.3rem 0;
  }
}


/* Styles pour remplacer les styles inline des boutons d'accueil */
.cta-register {
  font-size: 1.18rem;
  min-width: 160px;
}
.cta-login {
  font-size: 1.07rem;
  min-width: 140px;
}
button, .btn {
  background: linear-gradient(90deg, var(--primary, #10b981) 0%, var(--accent, #3b82f6) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  transition: background 0.18s, color 0.18s;
  outline: none;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: linear-gradient(90deg, var(--primary-dark, #059669) 0%, #2563eb 100%);
  color: #fff;
}
/* Header et footer harmonisés avec calendar.css/login.css */
.main-header {
  width: 100%;
  background: linear-gradient(90deg, var(--primary, #10b981) 0%, var(--accent, #3b82f6) 100%);
  color: #fff;
  font-size: 2.2rem;
  font-family: var(--font-main, 'Segoe UI', Arial, sans-serif);
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 8px 32px rgba(16,185,129,0.10), 0 1.5px 8px rgba(59,130,246,0.10);
  border-bottom: none;
  border-radius: 0 0 16px 16px;
  position: relative;
  z-index: 10;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  padding: 0;
}
.main-header .logo {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 700;
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 1px;
  font-family: var(--font-main, 'Segoe UI', Arial, sans-serif);
}
.main-footer {
  background: #fff;
  box-shadow: 0 8px 32px rgba(16,185,129,0.10), 0 1.5px 8px rgba(59,130,246,0.10);
  border-radius: 16px 16px 0 0;
  border: none;
  margin-top: auto;
  width: 100%;
  color: #6b7280;
  text-align: center;
  padding: 1.2rem 0 0.5rem 0;
  font-size: 0.95rem;
}