/* ============================================
   TEKO INTERNATIONAL SCHOOL — Feuille de style
   Police : Montserrat
   Palette : Bleu marine (institution) + Or (excellence)
   ============================================ */

:root {
  --navy-900: #0F2438;
  --navy-800: #16324D;
  --navy-700: #1E3F63;
  --gold-500: #C9932E;
  --gold-400: #DDA83F;
  --paper-100: #F6F4EF;
  --paper-50: #FCFBF8;
  --ink-900: #1A1D21;
  --ink-600: #4B5563;
  --line: #DDD6C8;

  --font-base: "Montserrat", -apple-system, sans-serif;

  --step-1: clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.97rem + 0.2vw, 1.05rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --step-4: clamp(2.5rem, 2rem + 2vw, 3.75rem);

  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink-900);
  background: var(--paper-50);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-600); }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold-500);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  background: var(--paper-50);
  padding: 6px 14px;
  border-radius: 4px;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

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

.nav-links a {
  color: var(--paper-100);
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--gold-500);
  color: var(--navy-900);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper-50);
  font-size: 1.6rem;
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch a {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--paper-100);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, rgba(15,36,56,0.92) 0%, rgba(30,63,99,0.88) 100%),
              var(--hero-img, none) center/cover no-repeat;
  color: var(--paper-50);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border: 40px solid rgba(201,147,46,0.15);
  border-radius: 50%;
}

.hero .wrap { position: relative; }

.hero-eyebrow {
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--paper-50);
  max-width: 14ch;
}

.hero p.lead {
  color: #D9E1E8;
  font-size: var(--step-2);
  max-width: 42ch;
  margin: 18px 0 32px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--paper-50);
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }

.section-tight { padding: 56px 0; }

.section-alt { background: var(--paper-100); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 20px;
}

.section-head p { margin: 0; }

/* ---------- Filières / programme blocks ---------- */

.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.program {
  padding: 0 0 30px;
  border-right: 1px solid var(--line);
}
.program:last-child { border-right: none; }

.program h3, .program .tag, .program p { margin-left: 30px; margin-right: 30px; }

.program h3 { margin-bottom: 6px; }

.program-photo {
  height: 180px;
  overflow: hidden;
  margin-bottom: 20px;
}

.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.program .tag {
  display: inline-block;
  color: var(--navy-800);
  background: var(--paper-100);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  margin-top: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.program ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink-600);
}
.program li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .programs { grid-template-columns: 1fr; }
  .program { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Stats strip ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat .num {
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--navy-900);
}
.stat .label {
  color: var(--ink-600);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Values / about list ---------- */

.value-row {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.value-row:first-of-type { border-top: 1px solid var(--line); }

.value-row .idx {
  font-weight: 800;
  color: var(--gold-500);
  font-size: 1.4rem;
  width: 50px;
  flex-shrink: 0;
}

/* ---------- About photo ---------- */

.about-photo {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 48px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.value-photo {
  width: 220px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.value-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .value-row { flex-wrap: wrap; }
  .value-photo { width: 100%; height: 200px; order: -1; margin-bottom: 12px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item strong { display: block; color: var(--navy-900); }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper-50);
  font-family: var(--font-base);
  font-size: 0.95rem;
  border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-600);
  margin-top: -6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #B9C3CC;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--paper-50);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  color: #8A96A1;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Animations fluides ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Entrée du hero au chargement de la page */
.hero-eyebrow, .hero h1, .hero .lead, .hero .btn {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1      { animation-delay: 0.18s; }
.hero .lead   { animation-delay: 0.32s; }
.hero .btn    { animation-delay: 0.46s; }

/* Apparition douce des sections au défilement */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Décalage léger entre les cartes d'une même rangée */
.reveal-stagger.in-view:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view:nth-child(3) { transition-delay: 0.24s; }

/* Zoom très léger et fluide sur les photos au survol */
.program-photo img,
.value-photo img,
.about-photo img {
  transition: transform 0.6s ease;
}
.program-photo:hover img,
.value-photo:hover img,
.about-photo:hover img {
  transform: scale(1.05);
}

/* Logo : légère respiration au survol */
.logo-img {
  transition: transform 0.3s ease;
}
.logo:hover .logo-img {
  transform: scale(1.04);
}
