/* =====================================================
   NOTRE ÉCOLE - Styles spécifiques
   ===================================================== */

/* â FIX : on mappe --primary-color vers ta vraie variable globale */
.page-notre-ecole {
  --primary-color: var(--primary-green);
}

/* Header blanc pour cette page */
.page-notre-ecole header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-notre-ecole header nav ul li a {
  color: #333;
}

.page-notre-ecole header nav ul li a:hover,
.page-notre-ecole header nav ul li a.active {
  color: var(--primary-color);
}

/* â IMPORTANT :
   Le hero de Notre École utilise maintenant .hero / .hero-content
   (comme les autres pages). Donc on n'a plus besoin de .school-hero.
*/

/* Image de l'école en dessous du hero */
.school-hero-image {
  width: 100%;
  max-width: 800px;
  margin: -2rem auto 4rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}

.school-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section établissement familial */
.etablissement-section {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.etablissement-section h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.etablissement-section > p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto 3rem;
}

.etablissement-section > p span {
  color: #3b82f6;
}

/* Cartes établissement - 3 colonnes */
.etablissement-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.etablissement-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.etablissement-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Icônes avec cercle de fond coloré */
.etablissement-card .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.etablissement-card:nth-child(1) .icon-wrapper {
  background: #f0fdf4;
}

.etablissement-card:nth-child(2) .icon-wrapper {
  background: #f0fdf4;
}

.etablissement-card:nth-child(3) .icon-wrapper {
  background: #f0fdf4;
}

.etablissement-card .icon {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.etablissement-card h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.etablissement-card p {
  color: #888;
  font-size: 0.9rem;
}

/* Section Parcours éducatif */
.parcours-section {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.parcours-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.parcours-section .section-header h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.parcours-section .section-header p {
  color: #666;
  font-size: 1.05rem;
}

/* Bloc niveau (Maternelle, Primaire, Collège) */
.niveau-block {
  display: flex;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem 0;
  align-items: flex-start;
}

.niveau-info {
  flex: 1;
  min-width: 300px;
}

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

.niveau-header .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.niveau-header .icon-circle.blue {
  background: #3b82f6;
  color: white;
}

.niveau-header .icon-circle.green {
  background: var(--primary-color);
  color: white;
}

.niveau-header h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  font-weight: 700;
  margin: 0;
}

.niveau-levels {
  color: #3b82f6;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  margin-left: 60px;
}

.niveau-levels.green {
  color: var(--primary-color);
}

.niveau-info > p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.niveau-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.niveau-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.niveau-list li strong {
  color: #1a1a1a;
}

.niveau-list li span {
  color: #666;
}

/* Bullets colorés selon le niveau */
.niveau-block:first-child .niveau-list li .bullet {
  color: #3b82f6;
  font-weight: bold;
}

.niveau-list li .bullet {
  color: var(--primary-color);
  font-weight: bold;
}

/* Cartes compétences */
.niveau-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  flex: 1;
  max-width: 350px;
}

.niveau-card {
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Cartes bleues pour maternelle */
.niveau-card.blue {
  background: #dbeafe;
  border: none;
}

/* Cartes vertes avec bordure pour primaire/collège */
.niveau-card.green {
  background: white;
  border: 2px solid var(--primary-color);
}

.niveau-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.niveau-card .icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
}

.niveau-card.blue .icon {
  color: #3b82f6;
}

.niveau-card.green .icon {
  color: var(--primary-color);
}

.niveau-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.niveau-card p {
  font-size: 0.8rem;
  margin: 0;
}

.niveau-card.blue h4 {
  color: #1e40af;
}

.niveau-card.blue p {
  color: #3b82f6;
}

.niveau-card.green h4 {
  color: var(--primary-color);
}

.niveau-card.green p {
  color: #166534;
}

/* Section Foi */
.foi-section-new {
  background: #f0fdf4;
  border-radius: 16px;
  padding: 3rem;
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
}

.foi-section-new .foi-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #22c55e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.foi-section-new h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.foi-section-new > p {
  color: #555;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.foi-section-new > p span {
  color: var(--primary-color);
}

.foi-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: left;
  background: white;
  border-radius: 12px;
  padding: 2rem;
}

.foi-column h4 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 600;
}

.foi-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foi-column ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

.foi-column ul li .bullet {
  color: #22c55e;
  font-weight: bold;
}

/* Section Histoire */
.histoire-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.histoire-section .histoire-icon {
  width: 56px;
  height: 56px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  border: 2px solid #dcfce7;
}

.histoire-section h2 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.histoire-section > p {
  color: #666;
  margin-bottom: 2.5rem;
}

.histoire-timeline {
  text-align: left;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem;
  background: white;
}

.histoire-item {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.histoire-item:last-child {
  margin-bottom: 0;
}

.histoire-item .date {
  color: #3b82f6;
  font-weight: 700;
}

.histoire-item .text {
  color: #555;
}

.histoire-item .text strong {
  color: #1a1a1a;
}

/* Citation jaune en bas de l'histoire */
.histoire-quote {
  background: #fef9c3;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  font-style: italic;
  color: #713f12;
  line-height: 1.7;
  text-align: left;
}

/* CTA Section */
.cta-section {
  background: var(--primary-color);
  padding: 4rem 2rem;
  text-align: center;
}

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

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

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

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
  background: #f0fdf4;
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .niveau-block {
    flex-direction: column;
  }

  .niveau-cards {
    max-width: 100%;
  }

  .etablissement-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .foi-columns {
    grid-template-columns: 1fr;
  }

  /* â On ajuste le hero standard sur mobile */
  .hero .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .etablissement-section h2,
  .parcours-section .section-header h2,
  .histoire-section h2 {
    font-size: 1.6rem;
  }

  .niveau-cards {
    grid-template-columns: 1fr;
  }

  .foi-section-new {
    padding: 2rem 1.5rem;
  }

  .histoire-timeline {
    padding: 1.5rem;
  }

  /* â On ajuste le hero standard sur mobile */
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero .hero-content h1 {
    font-size: 1.8rem;
  }

  .niveau-levels {
    margin-left: 0;
  }
}

/* ========================= */
/* FIX MOBILE – bloc niveaux */
/* ========================= */
/* CTA verte – uniquement Notre École */
.page-notre-ecole .cta-section {
  display: block;
  background: #1f5f37;
  padding: 4rem 2rem;
  text-align: center;
}

.page-notre-ecole .cta-section h2,
.page-notre-ecole .cta-section p {
  color: white;
}

