/* =========================================================
   Apprendre le français avec 欧老师
   Feuille de style globale
   ========================================================= */

:root {
  --bleu-france: #002654;
  --bleu-clair:  #2563eb;
  --rouge-france:#ef4135;
  --crème:       #fdfaf3;
  --sable:       #f4ead5;
  --encre:       #1f2937;
  --gris:        #6b7280;
  --gris-clair:  #e5e7eb;
  --or:          #c9a14a;
  --ombre:       0 4px 14px rgba(0, 0, 0, 0.08);
  --ombre-fort:  0 10px 30px rgba(0, 0, 0, 0.15);
  --rayon:       14px;
  --max-largeur: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "Inter", "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--crème);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Noto Serif SC", Georgia, serif;
  color: var(--bleu-france);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a {
  color: var(--bleu-clair);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--rouge-france); }

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

/* ---------- Conteneur ---------- */
.container {
  max-width: var(--max-largeur);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Barre de navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gris-clair);
}
.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-largeur);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bleu-france);
}
.brand .cn { color: var(--rouge-france); font-size: 1.3rem; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--encre);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(239, 65, 53, .08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 38, 84, .10), transparent 50%),
    var(--crème);
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.hero h1 .accent {
  color: var(--rouge-france);
  font-style: italic;
}
.hero h1 .cn-name {
  display: inline-block;
  color: var(--rouge-france);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--gris);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero .tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 38, 84, .08);
  color: var(--bleu-france);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--bleu-france);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--ombre);
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--ombre-fort);
  color: white;
}

/* ---------- Section ---------- */
section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 2rem;
}
.section-subtitle {
  text-align: center;
  color: var(--gris);
  margin-bottom: 50px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cartes de niveaux ---------- */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.level-card {
  position: relative;
  background: white;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre-fort);
  color: inherit;
}
.level-card .visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: .03em;
  position: relative;
}
.level-card .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,.18));
}
.level-card.a1 .visual { background: linear-gradient(135deg, #002654, #2563eb); }
.level-card.a2 .visual { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.level-card.b1 .visual { background: linear-gradient(135deg, #c9a14a, #ef4135); }
.level-card.b2 .visual { background: linear-gradient(135deg, #ef4135, #be185d); }
.level-card.c1 .visual { background: linear-gradient(135deg, #1f2937, #6b7280); }

.level-card .body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.level-card .body h3 { margin-bottom: 6px; font-size: 1.25rem; }
.level-card .body .desc {
  color: var(--gris);
  font-size: .95rem;
  margin-bottom: 14px;
  flex: 1;
}
.level-card .badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}
.level-card .badge.dispo {
  background: #d1fae5;
  color: #065f46;
}
.level-card .badge.bientot {
  background: #fef3c7;
  color: #92400e;
}
.level-card.bientot {
  opacity: .85;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- À propos ---------- */
.about {
  background: var(--sable);
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about h2 { margin-bottom: 16px; }
.about p { margin-bottom: 14px; color: var(--encre); }
.about .photo {
  background: linear-gradient(135deg, var(--bleu-france), var(--rouge-france));
  height: 380px;
  border-radius: var(--rayon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Noto Serif SC", serif;
  font-size: 6rem;
  box-shadow: var(--ombre-fort);
}
@media (max-width: 800px) {
  .about .container { grid-template-columns: 1fr; gap: 30px; }
  .about .photo { height: 240px; font-size: 4rem; }
}

/* ---------- Contact / Footer ---------- */
.contact {
  background: var(--bleu-france);
  color: white;
  text-align: center;
}
.contact h2 { color: white; }
.contact p { color: rgba(255,255,255,.8); margin-bottom: 20px; }
.contact .placeholder {
  display: inline-block;
  padding: 16px 28px;
  background: rgba(255,255,255,.1);
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: var(--rayon);
  color: rgba(255,255,255,.85);
  font-style: italic;
}

footer {
  padding: 30px 0;
  background: #0a1530;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  text-align: center;
}
footer .cn { color: var(--rouge-france); font-weight: 600; }

/* ---------- Responsive nav ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 50px; }
  section { padding: 50px 0; }
}
