/* ============================================
   MNEMO+ — Feuille de styles principale
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* --- Variables --- */
:root {
  --forest:      #2C4A35;
  --forest-dark: #1a2f21;
  --forest-mid:  #3d6349;
  --forest-light:#e8f0ea;
  --sky:         #5FA8C2;
  --sky-light:   #e8f4f8;
  --rose:        #B5696B;
  --moss:        #7aab89;
  --sand:        #FAE3B1;
  --sand-dark:   #998731;
  --off-white:   #F8FAF8;
  --text:        #1C1C1C;
  --text-muted:  #555;
  --text-light:  #888;
  --border:      #dde5de;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(40px, 6vw, 56px); letter-spacing: -0.5px; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }

em { font-style: italic; color: var(--forest); }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 80px 0; }

.divider {
  height: 0.5px;
  background: var(--border);
  margin: 0 40px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo svg { width: 32px; height: 32px; flex-shrink: 0; }

.nav-wordmark {
  font-size: 16px;
  font-weight: 500;
  color: var(--off-white);
  letter-spacing: 2px;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: rgba(248,250,248,0.75);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--off-white); }

.nav-cta {
  background: var(--sand);
  color: var(--forest-dark) !important;
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 500 !important;
}

.nav-cta:hover { background: #f5d898 !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 70px;
  background: var(--off-white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-title { margin-bottom: 18px; }

.hero-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-primary {
  display: inline-block;
  background: var(--forest);
  color: var(--off-white);
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--forest-mid); }

.btn-secondary {
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid #ccc;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--text); }

/* Hero visual — stats */
.hero-visual { display: flex; flex-direction: column; gap: 10px; }

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-logo-wrap svg { width: 160px; }

.stat-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-icon.forest { background: var(--forest-light); color: var(--forest); }
.stat-icon.sky    { background: var(--sky-light);    color: var(--sky);    }
.stat-icon.moss   { background: #e0f0e5;             color: var(--forest-mid); }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.stat-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ============================================
   PROGRAMME
   ============================================ */
.programme { background: var(--off-white); }

.section-header { margin-bottom: 32px; }
.section-header p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 8px;
  line-height: 1.7;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.course-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}

.course-card:nth-child(1)::before { background: var(--forest); }
.course-card:nth-child(2)::before { background: var(--sky); }
.course-card:nth-child(3)::before { background: var(--moss); }
.course-card:nth-child(4)::before { background: var(--rose); }

.course-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 6px;
}

.course-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}

.course-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   NOTRE HISTOIRE
   ============================================ */
.histoire { background: white; }

.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.histoire-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

.histoire-text p { margin-bottom: 16px; }
.histoire-text p:last-child { margin-bottom: 0; }

.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--forest-light);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--forest);
  font-weight: 500;
}

/* Elsa card */
.elsa-card {
  background: var(--off-white);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--off-white);
  margin: 0 auto 12px;
}

.elsa-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }

.elsa-role {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 14px;
}

.badges { display: flex; flex-direction: column; gap: 6px; }

.badge {
  background: var(--forest-light);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--forest);
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

.badge-note {
  font-size: 11px;
  color: #bbb;
  font-style: italic;
  padding: 2px 2px 0;
  line-height: 1.4;
  text-align: left;
}

/* ============================================
   NOS PROFESSEURS
   ============================================ */
.professeurs { background: var(--off-white); }

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.teacher-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px 20px;
  text-align: center;
}

.teacher-card.founder {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
  background: var(--forest-light);
  border-color: #c4d6c8;
  padding: 22px 26px;
}

.teacher-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--off-white);
  flex-shrink: 0;
  margin: 0 auto 14px;
}

.teacher-card.founder .teacher-photo { margin: 0; }

.teacher-photo.forest { background: var(--forest); }
.teacher-photo.sky    { background: var(--sky); }
.teacher-photo.rose   { background: var(--rose); }

.founder-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 4px;
}

.teacher-name { font-size: 14px; font-weight: 500; margin-bottom: 5px; }

.teacher-school {
  display: inline-block;
  background: var(--forest-light);
  color: var(--forest);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.teacher-bio { font-size: 12px; color: var(--text-muted); line-height: 1.65; }

.teacher-placeholder {
  border: 0.5px dashed #c4d6c8 !important;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px !important;
}

.placeholder-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px dashed #c4d6c8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
  color: #aac4b0;
}

/* ============================================
   NOS ÉCOLES
   ============================================ */
.ecoles { background: white; }

.schools-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.school-card {
  flex: 1;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  background: var(--off-white);
}

.school-logo-area {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.school-logo-area img {
  max-height: 120%;
  max-width: 80%;
  object-fit: contain;
}


.school-name-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.school-tag {
  display: inline-block;
  background: var(--forest-light);
  color: var(--forest);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 20px;
}

/* Bandeau partenaire */
.partner-banner {
  background: var(--forest);
  padding: 48px 0;
}

.partner-banner .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.partner-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(250,227,177,0.8);
  margin-bottom: 8px;
  display: block;
}

.partner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--off-white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.partner-sub {
  font-size: 14px;
  color: rgba(248,250,248,0.65);
  line-height: 1.6;
  max-width: 380px;
}

.partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--sand);
  color: var(--forest-dark);
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}

.partner-btn:hover { background: #f5d898; }

/* ============================================
   TARIFS
   ============================================ */
.tarifs { background: var(--off-white); }

.price-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.price-top {
  background: var(--forest);
  padding: 28px 36px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 600;
  color: var(--off-white);
  line-height: 1;
}

.price-amount sup { font-size: 30px; vertical-align: super; }

.price-tagline {
  color: rgba(248,250,248,0.7);
  font-size: 14px;
  line-height: 1.5;
}

.price-body {
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.price-col-title {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.price-item .icon { color: var(--forest-mid); margin-top: 2px; flex-shrink: 0; }

.price-highlight {
  background: var(--sand);
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: #5a4010;
  line-height: 1.6;
}

.price-highlight .icon { color: var(--sand-dark); flex-shrink: 0; font-size: 16px; }

.enroll-btn {
  display: block;
  background: var(--forest);
  color: var(--off-white);
  text-align: center;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.enroll-btn:hover { background: var(--forest-mid); }
.enroll-note { font-size: 12px; color: #aaa; text-align: left; line-height: 1.5; }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: white; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

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

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 0.5px solid #c8d4ca;
  border-radius: 7px;
  background: var(--off-white);
  color: var(--text);
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest);
}

textarea { height: 100px; resize: vertical; }

.submit-btn {
  width: 100%;
  background: var(--forest);
  color: var(--off-white);
  border: none;
  padding: 13px;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.submit-btn:hover { background: var(--forest-mid); }

.contact-info { padding-top: 4px; }

.contact-info-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-row .icon { color: var(--forest); font-size: 17px; }

.contact-note {
  background: var(--off-white);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  margin-top: 14px;
}

.contact-note strong { color: var(--text); display: block; margin-bottom: 5px; }

.contact-note.ecole {
  border-left: 3px solid var(--forest);
  border-radius: 0 10px 10px 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--forest);
  padding: 22px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo { display: flex; align-items: center; gap: 9px; }

.footer-logo svg { width: 24px; }

.footer-wordmark {
  font-size: 14px;
  font-weight: 500;
  color: rgba(248,250,248,0.8);
  letter-spacing: 2px;
}

.footer-copy { font-size: 12px; color: rgba(248,250,248,0.4); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }

  .nav-links { display: none; flex-direction: column; gap: 16px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--forest);
    padding: 20px;
  }
  .nav-toggle { display: flex; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-logo-wrap { display: none; }

  .courses-grid { grid-template-columns: 1fr; }
  .histoire-grid { grid-template-columns: 1fr; }
  .elsa-card { max-width: 320px; }
  .teachers-grid { grid-template-columns: 1fr; }
  .teacher-card.founder { flex-direction: column; text-align: center; }
  .schools-row { flex-direction: column; }
  .partner-banner .container { grid-template-columns: 1fr; }
  .price-body { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; gap: 8px; }
}
