/* ========= Base */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5b6478;
  --brand: #1a73e8;
  --brand-strong: #1457b6;
  --border: #e6e9ef;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --maxw: 960px;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none }
a:hover { color: var(--brand-strong); text-decoration: underline }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px }

/* ========= Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border) }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .2px }
.nav { display: flex; gap: 16px }
.nav-link { color: #3b4252; text-decoration: none; padding: 8px 10px; border-radius: 10px }
.nav-link.active { background: #eef4ff; color: #0b3d99; font-weight: 600 }

/* ==== Design visuel amélioré ==== */
body {
  background: linear-gradient(180deg, #f6f8fb 0%, #e9eef6 100%);
}
h1, h2, h3 { color: #1457b6; }

/* légère animation au survol des cartes */
.card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26,115,232,0.15);
}

/* ========= Cards & layout */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 20px 0;
}
.title { margin: 0 0 8px; font-size: clamp(26px, 3.5vw, 38px); letter-spacing: .2px }
.subtitle { margin: 8px 0 18px; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px) }
.section-title { margin: 0 0 12px; font-size: clamp(20px, 2.6vw, 24px) }

/* ========= Hero */
.hero { text-align: left }
.hero-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #0b3d99;
  background: #e7f0ff;
  border: 1px solid #cfe2ff;
  padding: 6px 10px;
  border-radius: 999px;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(26,115,232,.18);
}
.btn:hover { background: var(--brand-strong); text-decoration: none }

/* ========= Lists & helpers */
.feature-list { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px }
.feature-list li { position: relative; padding-left: 28px; }
.feature-list li:before {
  content: "✓";
  position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 700;
}
.muted { color: var(--muted) }
.contact-note { margin-top: 14px }

/* ========= Table */
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--border) }
.table { width: 100%; border-collapse: separate; border-spacing: 0 }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--border) }
.table th { background: #fafcff; text-align: left; width: 40%; font-weight: 600 }
.table tr:last-child th, .table tr:last-child td { border-bottom: none }

/* ========= Footer */
.site-footer { margin-top: 28px; border-top: 1px solid var(--border); background: #fff }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; color: var(--muted); font-size: 14px }

/* ========= Floating CTA */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 1000;
}
.floating-cta h3 { margin: 0 0 8px; font-size: 18px; }
.floating-cta p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.floating-cta small { font-size: 12px; color: var(--muted); }
.floating-cta .btn { display: block; width: 100%; text-align: center; }

/* ========= Small screens */
@media (max-width: 640px) {
  .header-inner { gap: 10px }
  .hero-top { align-items: flex-start }
  .badge { margin-top: 8px }
}
@media (max-width: 480px) {
  .floating-cta { right: 12px; left: 12px; width: auto; }
}

/* ========= Logos */
.logo {
  height: 64px;
  width: auto;
  margin-right: 12px;
  vertical-align: middle;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
}
.hero-logo {
  display: block;
  width: 180px;
  max-width: 40vw;
  margin: 0 auto 20px;
}

/* ========= Section d’accueil */
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.welcome .text { flex: 1; text-align: left; }
.welcome .logo {
  width: 160px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
}
@media (max-width: 640px) {
  .welcome { flex-direction: column-reverse; text-align: center; }
  .welcome .text { text-align: center; }
  .welcome .logo { width: 120px; margin-bottom: 12px; }
}

/* ========= Contact Card */
.contact-card {
  max-width: var(--maxw);
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: left;
}
.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  color: var(--text);
}
.contact-card button {
  align-self: flex-start;
  padding: 10px 18px;
}

/* === Explore STIM améliorations (2025) === */
.hero-logo {
  width: 180px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hero .text { text-align: left; }
.section-title { margin-bottom: 0.5em; }
.price { font-weight: bold; font-size: 1.1em; color: #0077cc; }
.highlight {
  background: #eef6ff;
  padding: 0.8em 1.2em;
  border-radius: 10px;
  border-left: 4px solid #0077cc;
  margin-top: 0.8em;
}
@media (max-width: 640px) {
  .floating-cta { display: none; }
  .hero-logo { width: 130px; margin-top: 1em; }
}

/* === Formulaire étendu de contact === */
fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1em 1.5em 1.2em;
  margin-top: 1.5em;
  background: #fafafa;
}
legend {
  font-weight: 600;
  color: #0077cc;
  padding: 0 10px;
  margin-bottom: 0.8em;
}
fieldset label {
  display: flex;
  align-items: center;  /* ✅ centre verticalement la case et le texte */
  gap: 8px;
  margin: 6px 0;
  cursor: pointer;
}
fieldset input[type="checkbox"],
fieldset input[type="radio"] {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 2px solid #7a5af8;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
fieldset input[type="radio"] {
  border-radius: 50%;
}
fieldset input[type="checkbox"]:checked,
fieldset input[type="radio"]:checked {
  background-color: #7a5af8;
  border-color: #7a5af8;
}
fieldset input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  font-size: 13px;
  position: absolute;
  top: 0;
  left: 4px;
}
fieldset input[type="radio"]:checked::after {
  content: "";
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}
fieldset label:hover input[type="checkbox"],
fieldset label:hover input[type="radio"] {
  border-color: #5b45d1;
}
textarea { resize: vertical; }
button.btn { margin-top: 1em; }

/* responsive */
@media (max-width: 640px) {
  fieldset {
    padding: 0.8em 1em;
  }
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
}

.checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Barre de menu verte */
.site-header {
  background-color: #0a3d62;  /* Ton vert foncé actuel */
  color: white;
}

/* Lien et texte en blanc */
.site-header .nav-link,
.site-header .brand {
  color: white !important;
}

/* Logo légèrement éclairci */
.site-header .logo {
  filter: brightness(1.3);
}

.site-header .nav-link.active {
  background: rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 700;
}

/* ===== Page Mon compte / Auth ===== */

#app-auth {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* Titre principal */
#app-auth h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0a3d62;
}

/* Sous-titres */
#app-auth h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Grille : connexion / inscription côte à côte sur grand écran */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cartes de formulaire */
.auth-card {
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* Formulaires en colonne */
#app-auth form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Chaque champ = un bloc */
#app-auth label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Inputs alignés, pleine largeur */
#app-auth input[type="text"],
#app-auth input[type="email"],
#app-auth input[type="password"],
#app-auth input[type="tel"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Boutons */
#app-auth button[type="submit"] {
  margin-top: 0.75rem;
  align-self: flex-start;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: #0a3d62;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

#app-auth button[type="submit"]:hover {
  filter: brightness(1.05);
}

.site-footer{
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.footer-inner{ display:flex; justify-content:center; }
.footer-links{ display:flex; gap:1.25rem; flex-wrap:wrap; }
.footer-links a{ color:#374151; text-decoration:none; font-weight:600; }
.footer-links a:hover{ text-decoration:underline; }

#header { visibility: hidden; }
#header.is-ready { visibility: visible; }
#header { min-height: 72px; } /* ajuste selon la hauteur réelle de ton header */

/* ========= MODIFICATIONS PROGRESSIVES - PAGE D'ACCUEIL ========= */

/* === HERO SECTION MODERNISÉE === */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 0;
  margin: 2rem 0;
}

.hero-content {
  flex: 1;
}

.hero .title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--brand-strong) 0%, #1a73e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Conteneur logo moderne */
.hero-logo-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 
    0 15px 40px rgba(26, 115, 232, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.hero-logo {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

/* Stats sous le hero */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* === SECTION CARDS AMÉLIORÉES === */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  border-radius: 2px;
}

/* Grid pour les features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Grid pour activités */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.activity-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.activity-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.activity-content {
  padding: 1.2rem;
}

.activity-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--brand-strong);
}

.activity-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Grid pour offres de tutorat */
.tutoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.offer-card {
  background: rgba(26, 115, 232, 0.05);
  border: 1px solid rgba(26, 115, 232, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.offer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.offer-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.offer-title {
  font-size: 1.3rem;
  margin: 0;
}

.offer-list {
  list-style: none;
  padding: 0;
}

.offer-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.offer-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

/* Section témoignages */
.testimonials {
  margin: 3rem 0;
  background: rgba(26, 115, 232, 0.03);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
}

.author-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-radius: var(--radius);
  color: white;
  margin: 3rem 0;
}

.cta-title {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn {
  background: white;
  color: var(--brand);
  font-weight: 600;
}

.cta-section .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-strong);
}

/* Améliorations boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn:hover:after {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.25);
}

/* Utilitaires */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* === RESPONSIVE POUR LES NOUVELLES SECTIONS === */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem 0;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-logo-container {
    padding: 1.5rem;
  }
  
  .hero-logo {
    width: 160px;
  }
  
  .cta-title {
    font-size: 1.7rem;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .features-grid,
  .activity-grid,
  .tutoring-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}



