/* ============================================================
   CLARA REVISION — Girly, modern, responsive
   ============================================================ */

:root {
  --pink: #c77dba;
  --pink-light: #f0d4eb;
  --pink-lighter: #faf0f7;
  --pink-dark: #9a5087;
  --purple: #8b6aae;
  --purple-light: #e8ddf2;
  --rose: #e8b4cb;
  --rose-light: #fce8f3;
  --cream: #fdf8fa;
  --white: #ffffff;
  --text: #3d2c3e;
  --text-light: #7a6b7c;
  --green: #6dbf8b;
  --green-light: #e8f7ee;
  --red: #d47b7b;
  --red-light: #fce8e8;
  --blue: #7bafd4;
  --shadow: 0 2px 16px rgba(154, 80, 135, 0.1);
  --shadow-lg: 0 8px 32px rgba(154, 80, 135, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(253, 248, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
  padding: 0.7rem 2rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 0.5rem;
}
.nav-link {
  text-decoration: none;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--pink-dark);
  background: var(--pink-light);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(253, 248, 250, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  text-decoration: none;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
}
.mobile-link:hover {
  color: var(--pink-dark);
  background: var(--pink-light);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .navbar { padding: 0.8rem 1.2rem; }
}

/* ==================== SECTIONS ==================== */
.section {
  display: none;
  padding-top: 80px;
  min-height: 100vh;
}
.section.active { display: block; animation: fadeIn 0.4s ease; }

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ==================== HERO ==================== */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero-sparkle {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: sparkle 2s infinite;
}
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.hero-desc {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 3rem;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-light);
}
.hero-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.hero-card p { font-size: 0.8rem; color: var(--text-light); }

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero { padding: 2rem 1rem 2rem; }
}

/* ==================== FLASHCARDS ==================== */
.flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.fc-counter {
  font-weight: 600;
  color: var(--pink-dark);
  font-size: 0.95rem;
}
.fc-filter select {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--pink-light);
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.fc-filter select:focus { border-color: var(--pink); }

.flashcard-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flashcard {
  width: 100%;
  max-width: 500px;
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
}
.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flashcard-inner.flipped { transform: rotateY(180deg); }

.flashcard-front, .flashcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.flashcard-front {
  background: linear-gradient(135deg, var(--white), var(--rose-light));
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--pink-light);
}
.flashcard-back {
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--purple);
  transform: rotateY(180deg);
}
.fc-cat {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fc-question {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.fc-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-line;
}
.fc-hint {
  position: absolute;
  bottom: 0.8rem;
  font-size: 0.7rem;
  color: var(--text-light);
  opacity: 0.6;
}

.fc-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pink-light);
  background: var(--white);
  color: var(--pink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-arrow:hover {
  background: var(--pink-light);
  border-color: var(--pink);
}

.fc-progress {
  width: 100%;
  max-width: 500px;
  height: 4px;
  background: var(--pink-light);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}
.fc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.fc-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.fc-score {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

@media (max-width: 480px) {
  .flashcard { height: 280px; }
  .fc-question { font-size: 0.95rem; }
  .fc-answer { font-size: 0.85rem; }
  .flashcard-front, .flashcard-back { padding: 1.5rem; }
  .fc-arrow { width: 36px; height: 36px; font-size: 1rem; }
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--pink-light);
  color: var(--pink-dark);
}
.btn-outline:hover { background: var(--pink-light); }
.btn-soft-green {
  background: var(--green-light);
  color: var(--green);
}
.btn-soft-green:hover { background: #d1f0dc; }
.btn-soft-red {
  background: var(--red-light);
  color: var(--red);
}
.btn-soft-red:hover { background: #f5d5d5; }

/* ==================== QUIZ ==================== */
.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.quiz-mode-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.quiz-mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: var(--shadow-lg);
}
.qm-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.quiz-mode-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.quiz-mode-card p { color: var(--text-light); font-size: 0.85rem; }

@media (max-width: 480px) {
  .quiz-options { grid-template-columns: 1fr; max-width: 300px; }
}

.hidden { display: none !important; }

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.quiz-progress-text { font-weight: 600; color: var(--pink-dark); font-size: 0.9rem; }
.quiz-timer {
  background: var(--pink-light);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink-dark);
}
.quiz-progress-wrap {
  width: 100%;
  height: 4px;
  background: var(--pink-light);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.quiz-question-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.quiz-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.quiz-answers { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-answer-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--pink-light);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}
.quiz-answer-btn:hover {
  border-color: var(--pink);
  background: var(--rose-light);
}
.quiz-answer-btn.correct {
  border-color: var(--green);
  background: var(--green-light);
  color: #2d7a4d;
}
.quiz-answer-btn.wrong {
  border-color: var(--red);
  background: var(--red-light);
  color: #944;
}
.quiz-explanation {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}
.exp-correct { background: var(--green-light); color: #2d7a4d; }
.exp-wrong { background: var(--red-light); color: #944; }

.quiz-next {
  display: block;
  margin: 0 auto;
}

/* Quiz Results */
.quiz-results-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.qr-emoji { font-size: 4rem; margin-bottom: 0.5rem; }
.qr-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--pink-dark); }
.qr-score {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}
.qr-message { color: var(--text-light); margin-bottom: 1.5rem; }
.qr-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.qr-stat { text-align: center; }
.qr-stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.qr-stat-label { font-size: 0.8rem; color: var(--text-light); }
.qr-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

/* Quiz Review */
.qr-review {
  text-align: left;
  margin-top: 1.5rem;
  border-top: 1px solid var(--pink-light);
  padding-top: 1.5rem;
}
.qr-review h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.qr-review-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
}
.review-correct { background: var(--green-light); border-color: var(--green); }
.review-wrong { background: var(--red-light); border-color: var(--red); }
.qr-review-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.qr-review-q { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.review-badge { font-size: 0.8rem; font-weight: 500; }
.qr-review-exp { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; }

/* ==================== FICHES ==================== */
.fiches-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.fiche-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--pink-light);
  background: var(--white);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}
.fiche-nav-btn:hover { border-color: var(--pink); }
.fiche-nav-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border-color: transparent;
}
.fnb-icon { font-size: 1rem; }

.fiche-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: fadeIn 0.3s ease;
}
.fiche-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--pink-dark);
  text-align: center;
}
.fiche-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pink-light);
}
.fiche-section:last-child { border-bottom: none; padding-bottom: 0; }
.fiche-section h3 {
  font-size: 1.1rem;
  color: var(--pink-dark);
  margin-bottom: 0.8rem;
}
.fiche-section h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0.8rem 0 0.5rem;
}
.fiche-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.fiche-highlight {
  background: linear-gradient(135deg, var(--rose-light), var(--purple-light));
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.8rem 0;
  border-left: 4px solid var(--pink);
}
.fiche-list { margin: 0.5rem 0; }
.fiche-list-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.fiche-bullet { color: var(--pink); font-weight: 600; flex-shrink: 0; }
.fiche-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.fiche-tag {
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}
.fiche-tag.tag-warn {
  background: var(--red-light);
  color: var(--red);
}
.fiche-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.8rem 0;
}
.fiche-comp-item {
  background: var(--pink-lighter);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.fiche-comp-item h4 { margin-top: 0; font-size: 0.95rem; color: var(--pink-dark); }
.fiche-comp-item p { font-size: 0.85rem; }
.comp-cost { background: var(--green-light); }
.comp-cost h4 { color: #2d7a4d; }
.comp-diff { background: var(--purple-light); }
.comp-diff h4 { color: var(--purple); }

.fiche-example {
  background: var(--cream);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0.5rem 0;
  border-left: 3px solid var(--blue);
}
.fiche-steps {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.fiche-steps li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
}

/* SWOT grid in fiches */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.swot-cell {
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.swot-s { background: #e8f7ee; color: #2d7a4d; }
.swot-w { background: #fce8e8; color: #944; }
.swot-o { background: #e8f0f7; color: #3d6b8c; }
.swot-t { background: #f7ece8; color: #8c5a3d; }

/* Porter forces in fiches */
.porter-forces { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.8rem 0; }
.porter-force {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--pink-lighter);
  border-left: 4px solid var(--pink);
}
.porter-force h4 { font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--pink-dark); }
.porter-force p { font-size: 0.8rem; color: var(--text-light); }

/* Env grid in fiches */
.env-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 0.8rem 0; }
.env-card {
  background: var(--pink-lighter);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.env-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.env-card h4 { font-size: 0.85rem; color: var(--pink-dark); margin-bottom: 0.3rem; }
.env-card p { font-size: 0.78rem; color: var(--text-light); }

/* Cycle phases in fiches */
.cycle-phases { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.8rem 0; }
.cycle-phase {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--pink-lighter);
}
.cp-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cycle-phase h4 { font-size: 0.9rem; color: var(--pink-dark); margin-bottom: 0.2rem; }
.cycle-phase p { font-size: 0.8rem; color: var(--text-light); }

/* Ishikawa 5M in fiches */
.ishikawa-5m { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; margin: 0.8rem 0; }
.ish-m {
  background: var(--pink-lighter);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.ish-m h4 { font-size: 0.85rem; color: var(--pink-dark); margin-bottom: 0.3rem; }
.ish-m p { font-size: 0.78rem; color: var(--text-light); }

@media (max-width: 480px) {
  .fiche-comparison { grid-template-columns: 1fr; }
  .fiche-card { padding: 1.5rem 1rem; }
  .fiche-nav-btn { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
}

/* ==================== SCHEMAS ==================== */
.schemas-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.schema-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.schema-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--pink-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}
.schema-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* Schema: SWOT Interactive */
.schema-swot { max-width: 500px; margin: 0 auto; }
.schema-swot-header { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.swot-col-head { text-align: center; font-size: 0.8rem; font-weight: 600; padding: 0.3rem; border-radius: 6px; }
.positive { background: var(--green-light); color: var(--green); }
.negative { background: var(--red-light); color: var(--red); }
.schema-swot-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.swot-row-head {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.2rem;
  border-radius: 6px;
}
.internal { background: var(--purple-light); color: var(--purple); }
.external { background: var(--pink-light); color: var(--pink-dark); }
.swot-cell-i {
  padding: 1.2rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swot-front-i { font-weight: 600; font-size: 0.9rem; }
.swot-back-i { display: none; }
.swot-cell-i.revealed .swot-front-i { display: none; }
.swot-cell-i.revealed .swot-back-i { display: block; }
.swot-back-i ul { list-style: none; font-size: 0.78rem; line-height: 1.6; }
.swot-s-i { background: #e8f7ee; color: #2d7a4d; }
.swot-w-i { background: #fce8e8; color: #944; }
.swot-o-i { background: #e8f0f7; color: #3d6b8c; }
.swot-t-i { background: #f7ece8; color: #8c5a3d; }
.swot-cell-i:hover { transform: scale(1.02); }

/* Schema: Porter Interactive */
.schema-porter {
  position: relative;
  min-height: 400px;
  max-width: 500px;
  margin: 0 auto;
}
.porter-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.porter-hub {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow-lg);
}
.porter-satellite {
  position: absolute;
  background: var(--white);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: 130px;
  z-index: 1;
}
.porter-satellite:hover { border-color: var(--pink); transform: scale(1.05); }
.porter-satellite.expanded {
  border-color: var(--pink);
  background: var(--rose-light);
  z-index: 3;
  width: 200px;
}
.ps-icon { font-size: 1.3rem; }
.ps-label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.ps-detail { display: none; font-size: 0.75rem; color: var(--text-light); margin-top: 0.3rem; line-height: 1.4; }
.porter-satellite.expanded .ps-detail { display: block; }

.ps-top { top: 10px; left: 50%; transform: translateX(-50%); }
.ps-right-top { top: 25%; right: 10px; }
.ps-right-bottom { bottom: 25%; right: 10px; }
.ps-bottom { bottom: 10px; left: 50%; transform: translateX(-50%); }
.ps-left-bottom { bottom: 25%; left: 10px; }

.ps-top:hover, .ps-top.expanded { transform: translateX(-50%) scale(1.05); }
.ps-bottom:hover, .ps-bottom.expanded { transform: translateX(-50%) scale(1.05); }

@media (max-width: 480px) {
  .schema-porter { min-height: 500px; }
  .porter-satellite { width: 110px; padding: 0.5rem; font-size: 0.75rem; }
  .porter-satellite.expanded { width: 160px; }
  .porter-hub { width: 80px; height: 80px; font-size: 0.65rem; }
  .ps-right-top { right: 0; }
  .ps-right-bottom { right: 0; }
  .ps-left-bottom { left: 0; }
}

/* Schema: Cycle de vie */
.schema-cycle { max-width: 600px; margin: 0 auto; }
.cycle-graph { position: relative; margin-bottom: 1rem; }
.cycle-axis-y {
  position: absolute;
  left: -5px;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
}
.cycle-curve { padding: 0 0 0 30px; }
.cycle-curve svg { width: 100%; height: 180px; }
.cycle-labels {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0 0 30px;
}
.cl-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}
.cl-phase:hover, .cl-phase.active-phase { color: var(--pink-dark); }
.cl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-light);
  transition: var(--transition);
}
.cl-phase:hover .cl-dot, .cl-phase.active-phase .cl-dot {
  background: var(--pink);
  transform: scale(1.3);
}
.phase-detail-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--pink-lighter);
  animation: fadeIn 0.3s ease;
}
.phase-detail-card h4 { font-size: 0.9rem; color: var(--pink-dark); margin-bottom: 0.3rem; }
.phase-detail-card p { font-size: 0.85rem; line-height: 1.5; color: var(--text); }

/* Schema: Ishikawa */
.schema-ishikawa { max-width: 600px; margin: 0 auto; }
.ish-diagram { position: relative; min-height: 300px; padding: 1rem; }
.ish-spine {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 15%;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-light), var(--pink));
  border-radius: 2px;
  transform: translateY(-50%);
}
.ish-head {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 70px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.ish-bone {
  position: absolute;
  background: var(--white);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.ish-bone:hover { border-color: var(--pink); }
.ish-bone.active { background: var(--rose-light); border-color: var(--pink); }
.ish-bone-label { font-size: 0.8rem; font-weight: 600; color: var(--pink-dark); }
.ish-bone-detail { display: none; font-size: 0.72rem; color: var(--text-light); margin-top: 0.3rem; }
.ish-bone.active .ish-bone-detail { display: block; }

.ish-bone-top-1 { top: 15%; left: 10%; }
.ish-bone-bottom-1 { bottom: 15%; left: 10%; }
.ish-bone-top-2 { top: 8%; left: 38%; }
.ish-bone-bottom-2 { bottom: 8%; left: 38%; }
.ish-bone-top-3 { top: 15%; left: 62%; }

@media (max-width: 480px) {
  .ish-diagram { min-height: 350px; }
  .ish-bone { padding: 0.4rem 0.5rem; }
  .ish-bone-label { font-size: 0.7rem; }
  .ish-head { width: 70px; height: 55px; font-size: 0.6rem; }
}

/* Schema: Experience curve */
.schema-experience { max-width: 500px; margin: 0 auto; }
.exp-graph { position: relative; padding: 1rem; margin-bottom: 1rem; }
.exp-axis-y {
  position: absolute;
  left: 0;
  top: 40%;
  transform: rotate(-90deg);
  font-size: 0.7rem;
  color: var(--text-light);
}
.exp-axis-x {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}
.exp-svg { width: 100%; height: 160px; padding-left: 20px; }
.exp-factors { display: flex; flex-direction: column; gap: 0.5rem; }
.exp-factor {
  background: var(--pink-lighter);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.exp-factor:hover { border-color: var(--pink); }
.exp-factor h4 { font-size: 0.9rem; color: var(--pink-dark); }
.exp-factor p { display: none; font-size: 0.82rem; color: var(--text); margin-top: 0.3rem; }
.exp-factor.show { background: var(--rose-light); border-color: var(--pink); }
.exp-factor.show p { display: block; }

/* Schema: Strategy flow */
.schema-strategy { max-width: 450px; margin: 0 auto; }
.strat-flow { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.strat-box {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.strat-box h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.strat-box p { font-size: 0.82rem; color: var(--text-light); }
.strat-projected { background: var(--purple-light); }
.strat-projected h4 { color: var(--purple); }
.strat-emergent { background: var(--pink-light); }
.strat-emergent h4 { color: var(--pink-dark); }
.strat-realized {
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
  border: 2px solid var(--pink);
}
.strat-realized h4 { color: var(--pink-dark); }
.strat-arrow { font-size: 1.5rem; color: var(--pink); }
.strat-merge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.strat-influence {
  flex: 1;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.strat-time { background: #fce8e8; }
.strat-time h5 { color: var(--red); font-size: 0.85rem; }
.strat-env { background: #e8f0f7; }
.strat-env h5 { color: var(--blue); font-size: 0.85rem; }
.strat-influence p { font-size: 0.75rem; color: var(--text-light); margin-top: 0.2rem; }
.strat-plus { font-size: 1.2rem; font-weight: 700; color: var(--text-light); }
.strat-check {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  text-align: center;
}
.strat-check h4 { color: var(--green); font-size: 0.9rem; margin-bottom: 0.3rem; }
.strat-check p { font-size: 0.82rem; color: var(--text); }

/* ==================== FOOTER ==================== */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--pink-light);
  margin-top: 2rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .container { padding: 1.5rem 1rem; }
  .section-title { font-size: 1.6rem; }
  .schema-card { padding: 1.5rem 1rem; }
}

@media (max-width: 360px) {
  .hero-cards { grid-template-columns: 1fr; max-width: 250px; }
  .fc-actions { flex-direction: column; align-items: center; }
  .qr-stats { flex-direction: column; gap: 0.8rem; }
}
