html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Roboto", sans-serif;
  color: #2a2a2a;
  background: #fff;
  line-height: 1.6;
}

/* ============================= */
/* 🔹 NAVBAR */
/* ============================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.logo {
  font-weight: 700;
  color: #0066CC;
  font-size: 1.3rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #0066CC;
}

/* ===== MENU BURGER ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #0066CC;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation croix */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* NAV MOBILE */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    border-top: 1px solid #eee;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-links.show {
    max-height: 400px;
    transition: max-height 0.4s ease-in;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .nav-links a {
    display: block;
    color: #222;
    font-size: 1rem;
    width: 100%;
  }
}

/* ============================= */
/* 🔹 HERO */
/* ============================= */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.slogan {
  font-size: 1.2rem;
  margin-bottom: 10px;
  min-height: 1.4em;
}

.subtitle {
  color: #f2f2f2;
  font-size: 1rem;
  margin-bottom: 30px;
}

.btn {
  background: #0066CC;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
/* --- Bouton responsive mobile --- */
@media (max-width: 768px) {
  .btn {
    display: inline-block;
    white-space: nowrap;     /* Empêche le texte de passer à la ligne */
    font-size: 0.95rem;      /* Légèrement plus petit sur mobile */
    padding: 10px 20px;      /* Réduit le padding pour tenir dans l’écran */
    max-width: 90%;          /* Garde une marge des bords */
  }

  .hero-content {
    padding: 0 15px;
  }
}


.btn:hover {
  background: #0041cc;
}

/* ============================= */
/* 🔹 À PROPOS */
/* ============================= */
#apropos {
  padding-top: 60px;
  padding-bottom: 20px;
}

.apropos-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.apropos-box:hover {
  transform: translateY(-3px);
}

.apropos-img {
  flex: 1;
  min-width: 45%;
}

.apropos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apropos-info {
  flex: 1;
  padding: 35px;
  text-align: left;
}

.apropos-info h2 {
  color: #0066CC;
  font-size: 1.9rem;
  margin-bottom: 20px;
}

.apropos-info p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
}

@media (max-width: 900px) {
  .apropos-box {
    flex-direction: column;
  }
  .apropos-info {
    text-align: center;
    padding: 25px 20px;
  }
  .apropos-info p {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* ============================= */
/* 🔹 THÈMES */
/* ============================= */
#themes {
  padding-top: 20px;
}

.section {
  padding: 60px 20px;
  border-bottom: 1px solid #eee;
}

.container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.section h2 {
  color: #0066CC;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 25px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  transition: 0.3s;
}

.card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

#themes .card h3 {
  color: #0066CC;
  margin-bottom: 10px;
}

#themes .card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

/* ============================= */
/* 🔹 TÉMOIGNAGES */
/* ============================= */
.temoignages-bg {
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
  position: relative;
  padding: 60px 20px;
}

.temoignages-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(0, 87, 255, 0.08), transparent 70%),
    radial-gradient(circle at bottom right, rgba(0, 87, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.temoignages-bg h2 {
  color: #333;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 25px;
}

.review-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 25px 30px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 87, 255, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid #e0eaff;
}

.review-info strong {
  display: block;
  color: #222;
  font-weight: 600;
}

.review-date {
  font-size: 0.85rem;
  color: #888;
}

.review-stars {
  color: #ffd700;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 4px;
}

.review-text {
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 12px;
}

.review-tag {
  font-size: 0.9rem;
  color: #0066CC;
  font-weight: 600;
}

/* ============================= */
/* 🔹 CONTACT */
/* ============================= */
.contact-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.contact-content {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  border-radius: 12px;
  max-width: 550px;
  padding: 40px 35px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.contact-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.contact-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-content input,
.contact-content textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1rem;
}

.contact-content button {
  background: #0066CC;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-content button:hover {
  background: #0066CC;
}

#successMessage {
  color: #fff;
  margin-top: 10px;
  font-weight: 600;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .contact-content {
    max-width: 90%;
    padding: 30px 20px;
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .flag {
  height: 24px;     /* Taille adaptée à la barre */
  width: auto;
  border-radius: 3px;
  object-fit: contain;
}

/* ==== CTA "Un besoin à partager ?" ==== */
.cta-container {
  text-align: center;
  margin-top: 40px;
}

.cta-btn {
  background: #0066CC;              /* Bleu Parcoursup */
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
  white-space: nowrap;              /* 🔹 Empêche le texte de couper */
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.cta-btn:hover {
  background: #0066CC;
  transform: translateY(-2px);
}

/* ✅ Version mobile : bouton fluide mais non cassé */
@media (max-width: 768px) {
  .cta-btn {
    font-size: 1rem;
    padding: 12px 26px;
    max-width: 90%;
    white-space: nowrap;
  }
}
/* Bloc à propos avec effet de slide */
.text-collapse {
  max-height: 250px; /* hauteur visible par défaut */
  overflow: hidden;
  transition: max-height 0.6s ease-in-out;
}

.text-collapse.expanded {
  max-height: 1000px; /* hauteur dépliée */
}

/* Bouton Voir plus / Voir moins */
.btn-see-more {
  margin-top: 10px;
  background-color: transparent;
  border: none;
  color: #0066CC;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.btn-see-more:hover {
  color: #0066CC;
}

/* Optionnel : petit effet sur mobile */
@media (max-width: 768px) {
  .text-collapse {
    max-height: 200px;
  }
}
