/*
Theme Name: Bily Coby
Theme URI: https://bilycoby.com
Author: Bily Coby
Author URI: https://bilycoby.com
Description: Thème WordPress pour le livre Bily Coby — L'Éveil de la Conscience Écologique. Un thème élégant et moderne avec une page d'accueil unique.
Version: 5.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bilycoby
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-deep: #1a3c2a;
  --green-dark: #2d5a3f;
  --green-mid: #3e7a56;
  --green-light: #6bb88f;
  --green-pale: #a8dbc5;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --coral: #e8907a;
  --coral-soft: #f4b8a8;
  --cream: #faf6ef;
  --cream-dark: #f0e8d8;
  --text-dark: #1a2e23;
  --text-body: #3d5248;
  --text-light: #7a9688;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}

.particle:nth-child(odd) {
  background: var(--gold);
  width: 4px;
  height: 4px;
}

.particle:nth-child(1) { left: 5%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-duration: 22s; animation-delay: 3s; }
.particle:nth-child(3) { left: 25%; animation-duration: 16s; animation-delay: 1s; }
.particle:nth-child(4) { left: 35%; animation-duration: 20s; animation-delay: 5s; }
.particle:nth-child(5) { left: 45%; animation-duration: 24s; animation-delay: 2s; }
.particle:nth-child(6) { left: 55%; animation-duration: 17s; animation-delay: 4s; }
.particle:nth-child(7) { left: 65%; animation-duration: 21s; animation-delay: 1s; }
.particle:nth-child(8) { left: 75%; animation-duration: 19s; animation-delay: 6s; }
.particle:nth-child(9) { left: 85%; animation-duration: 23s; animation-delay: 3s; }
.particle:nth-child(10) { left: 95%; animation-duration: 15s; animation-delay: 0s; }

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

/* ===== LEAF DECORATIONS ===== */
.leaf-decoration {
  position: fixed;
  font-size: 2rem;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  animation: sway 6s ease-in-out infinite;
}

.leaf-decoration:nth-child(1) { top: 10%; left: 3%; animation-delay: 0s; font-size: 3rem; }
.leaf-decoration:nth-child(2) { top: 30%; right: 5%; animation-delay: 1.5s; font-size: 2.5rem; }
.leaf-decoration:nth-child(3) { top: 60%; left: 8%; animation-delay: 3s; }
.leaf-decoration:nth-child(4) { top: 80%; right: 10%; animation-delay: 0.5s; font-size: 2.2rem; }

@keyframes sway {
  0%, 100% { transform: rotate(-5deg) translateX(0); }
  50% { transform: rotate(5deg) translateX(10px); }
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(0px);
}

.site-header.scrolled {
  background: rgba(26, 60, 42, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  padding: 0.6rem 2rem;
}

.site-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.site-header.scrolled .site-logo {
  color: var(--cream);
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.site-header.scrolled .site-nav a {
  color: var(--green-pale);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a:hover {
  color: var(--gold);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107, 184, 143, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(232, 144, 122, 0.08) 0%, transparent 40%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeSlideUp 1s ease 0.3s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  color: var(--gold-light);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '🌿';
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  box-shadow: 0 4px 20px rgba(45, 90, 63, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(45, 90, 63, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-light);
}

.btn-secondary:hover {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
  transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
  position: relative;
  animation: fadeSlideUp 1s ease 0.6s both;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(26, 60, 42, 0.2),
    0 0 0 1px rgba(201, 168, 76, 0.15);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
  transform: scale(1.02) rotate(-1deg);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 60, 42, 0.3) 100%);
  z-index: 1;
  border-radius: 30px;
}

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

.hero-image-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.hero-image-accent {
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

/* ===== DIVIDER ===== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.section-divider .line {
  width: 60px;
  height: 1px;
  background: var(--green-light);
  opacity: 0.5;
}

.section-divider .icon {
  font-size: 1.2rem;
  opacity: 0.4;
}

/* ===== ABOUT / SYNOPSIS SECTION ===== */
.about {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.about-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-body);
  max-width: 750px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* ===== THEMES / FEATURES ===== */
.themes {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 6rem;
}

.themes-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.themes-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.theme-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 219, 197, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.theme-card:hover::before {
  transform: scaleX(1);
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26, 60, 42, 0.12);
  border-color: var(--green-light);
}

.theme-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.theme-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.8rem;
}

.theme-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== EMBLEM SECTION ===== */
.emblem {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(26, 60, 42, 0.04), transparent);
}

.emblem-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.emblem-image {
  display: flex;
  justify-content: center;
}

.emblem-image img {
  width: 85%;
  max-width: 380px;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(201, 168, 76, 0.15),
    0 0 0 16px rgba(201, 168, 76, 0.07),
    0 20px 50px rgba(26, 60, 42, 0.15);
  transition: transform 0.6s ease;
  animation: slowRotate 60s linear infinite;
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.emblem-image img:hover {
  animation-play-state: paused;
}

.emblem-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.emblem-content p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.emblem-content .highlight {
  display: inline;
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold-light) 100%);
  background-size: 100% 30%;
  background-repeat: no-repeat;
  background-position: 0 88%;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  text-align: center;
}

.quote-inner {
  max-width: 700px;
  margin: 0 auto;
}

blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.6;
  position: relative;
  padding: 0 2rem;
}

blockquote::before {
  content: '❝';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.quote-author {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--green-deep);
  color: var(--green-pale);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--green-light);
  margin-bottom: 2rem;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.7;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    max-width: 450px;
    margin: 0 auto;
  }

  .hero-description {
    margin: 0 auto 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .themes-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .emblem-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .emblem-image {
    order: -1;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.78rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .hero {
    padding: 5rem 1.2rem 3rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ===== ACTIVE NAV LINK ===== */
.site-nav a.active {
  color: var(--gold);
}

.site-nav a.active::after {
  width: 100%;
}

.site-header.scrolled .site-nav a.active {
  color: var(--gold-light);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.site-header.scrolled .menu-toggle span {
  background: var(--cream);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 60, 42, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--gold);
}

/* ===== FOOTER NAV ===== */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: var(--green-pale);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--gold);
}

/* ===== PAGE HERO (Sub-pages) ===== */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(107, 184, 143, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
}

.page-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeSlideUp 1s ease 0.2s both;
}

.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--green-deep);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== CHARACTERS PREVIEW (Homepage) ===== */
.characters-preview {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

.characters-preview-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.characters-preview-header {
  text-align: center;
  margin-bottom: 3rem;
}

.characters-preview-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 500px;
  margin: -1rem auto 0;
}

.characters-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.character-preview-card {
  text-align: center;
  transition: transform 0.4s ease;
}

.character-preview-card:hover {
  transform: translateY(-8px);
}

.character-preview-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, 0.2),
    0 10px 30px rgba(26, 60, 42, 0.15);
  transition: box-shadow 0.4s ease;
}

.character-preview-card:hover .character-preview-img {
  box-shadow:
    0 0 0 4px var(--gold),
    0 15px 40px rgba(26, 60, 42, 0.25);
}

.character-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.character-preview-card:hover .character-preview-img img {
  transform: scale(1.1);
}

.character-preview-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
}

.characters-preview-cta {
  text-align: center;
}

/* ===== AUTHOR PREVIEW (Homepage) ===== */
.author-preview {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

.author-preview-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
}

.author-preview-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(201, 168, 76, 0.15),
    0 20px 50px rgba(26, 60, 42, 0.15);
}

.author-preview-content .section-title {
  margin-bottom: 1rem;
}

.author-preview-content p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* ===== CHARACTERS PAGE ===== */
.characters-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem 4rem;
}

.characters-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.characters-category {
  margin-bottom: 2rem;
}

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

.category-icon {
  font-size: 2rem;
}

.category-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-deep);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.characters-grid--hero {
  grid-template-columns: 1fr;
  max-width: 350px;
  margin: 0 auto;
}

.character-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 219, 197, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.character-card:hover::before {
  transform: scaleX(1);
}

.character-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26, 60, 42, 0.15);
  border-color: var(--green-light);
}

.character-card--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.character-card--featured::before {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

/* Villain variant */
.character-card--villain {
  border-color: rgba(180, 60, 60, 0.2);
}

.character-card--villain::before {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.character-card--villain:hover {
  border-color: #c0392b;
  box-shadow: 0 20px 50px rgba(192, 57, 43, 0.12);
}

.character-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.character-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.character-card:hover .character-card-image img {
  transform: scale(1.08);
}

.character-card-info {
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.character-card-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
}

.character-card--villain .character-card-info h3 {
  color: #8b1a1a;
}

/* ===== AUTHOR PAGE ===== */
.author-hero {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem 5rem;
}

.author-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.author-hero-frame {
  position: relative;
}

.author-hero-frame img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(201, 168, 76, 0.2),
    0 0 0 12px rgba(201, 168, 76, 0.08),
    0 25px 60px rgba(26, 60, 42, 0.2);
}

.author-hero-frame::after {
  content: '✍️';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 2.5rem;
  background: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-hero-content {
  animation: fadeSlideUp 1s ease 0.3s both;
}

.author-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.author-hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.author-hero-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.9;
}

/* Author Bio Sections */
.author-bio {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 4rem;
}

.author-bio-inner {
  max-width: 850px;
  margin: 0 auto;
}

.bio-section {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(168, 219, 197, 0.2);
  transition: all 0.4s ease;
}

.bio-section:hover {
  box-shadow: 0 15px 40px rgba(26, 60, 42, 0.08);
  border-color: var(--green-light);
}

.bio-section--alt {
  border-color: rgba(201, 168, 76, 0.2);
}

.bio-section--alt:hover {
  border-color: var(--gold);
}

.bio-section-number {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-light);
  opacity: 0.4;
  line-height: 1;
}

.bio-section-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}

.bio-section-content h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.bio-section-content p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

.bio-section-content p:last-child {
  margin-bottom: 0;
}

.bio-section-content em {
  color: var(--green-dark);
  font-style: italic;
}

.bio-section-content strong {
  color: var(--green-deep);
}

/* Author CTA */
.author-cta-section {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 5rem;
}

.author-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  border-radius: 24px;
  padding: 3rem 2.5rem;
  color: white;
}

.author-cta-inner h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--cream);
}

.author-cta-inner p {
  font-size: 1rem;
  color: var(--green-pale);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.author-cta-inner .btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: var(--green-deep);
  font-weight: 700;
}

/* ===== RESPONSIVE — NEW COMPONENTS ===== */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .characters-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .character-preview-img {
    width: 140px;
    height: 140px;
  }

  .author-preview-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .author-preview-image img {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    display: block;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .author-hero-frame img {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    display: block;
  }

  .author-hero-frame::after {
    right: calc(50% - 130px);
  }

  .bio-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bio-section-number {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .characters-preview-grid {
    grid-template-columns: 1fr;
    max-width: 250px;
    margin: 0 auto 3rem;
  }

  .characters-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .page-hero {
    padding: 8rem 1.2rem 3rem;
  }

  .author-hero {
    padding: 8rem 1.2rem 3rem;
  }

  .author-hero-frame img {
    width: 200px;
    height: 200px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .bio-section {
    padding: 1.5rem;
  }
}

/* ===== NEW PREMIUM DESIGN SYSTEM ===== */
:root {
  --glass-bg: rgba(250, 246, 239, 0.4);
  --glass-border: rgba(168, 219, 197, 0.3);
  --glass-shadow: 0 8px 32px rgba(26, 60, 42, 0.08);
  --glow-color: rgba(107, 184, 143, 0.5);
  --villain-red: #8b2626;
  --villain-bg: rgba(45, 10, 10, 0.7);
  --villain-glow: rgba(139, 38, 38, 0.6);
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(26, 60, 42, 0.12);
  border-color: rgba(168, 219, 197, 0.6);
}

/* Buttons */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
}

.btn-glow:hover::after {
  transform: scale(1);
}

.btn-buy {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.btn-disabled {
  background: #d0d0d0;
  color: #888;
  border: none;
  cursor: not-allowed;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.btn-disabled:hover {
  transform: none;
  background: #d0d0d0;
  color: #888;
}

.input-glass {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--green-pale);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.input-glass:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--green-dark);
  box-shadow: 0 0 15px var(--glow-color);
}

/* ===== ACCUEIL: NEWSLETTER & COUNTDOWN ===== */
.countdown-section, .newsletter-section, .social-wall-section {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.countdown-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.alert-badge {
  display: inline-block;
  background: #ffeaa7;
  color: #d63031;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
  0% { box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(214, 48, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 48, 49, 0); }
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.time-box {
  background: var(--green-deep);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(26, 60, 42, 0.3);
}

.time-value {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}

.time-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.newsletter-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-icon img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.alert-urgent {
  color: #d63031;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.newsletter-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 1rem 0;
  color: var(--green-deep);
}

.newsletter-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rgpd-consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-light);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.social-card {
  padding: 1rem;
  text-align: center;
}

.social-img {
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.social-card p {
  font-style: italic;
  font-weight: 500;
}

/* ===== SAGA & BOUTIQUE ===== */
.page-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(168, 219, 197, 0.2) 0%, transparent 100%);
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.book-status {
  position: absolute;
  top: -15px;
  right: 20px;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.status-available { background: var(--green-mid); }
.status-preorder { background: var(--gold); color: var(--green-deep); animation: pulse-alert 2s infinite; }
.status-writing { background: var(--text-light); }

.book-title {
  font-family: 'Cinzel', serif;
  color: var(--green-deep);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.book-title span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.book-intrigue {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.book-purchase {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.book-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-deep);
  display: block;
  margin-bottom: 1rem;
}

.dedicace-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--green-dark);
  cursor: pointer;
}

.bonus-badge {
  background: rgba(201, 168, 76, 0.2);
  color: var(--green-deep);
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.pass-culture-section {
  padding: 0 2rem 5rem;
}

.pass-culture-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  color: white;
}

.pass-culture-icon {
  font-size: 4rem;
}

.pass-culture-text h2 {
  font-family: 'Cinzel', serif;
  margin-bottom: 0.5rem;
  color: var(--gold-light);
}

/* ===== QG & QUIZ ===== */
.quiz-section, .serment-section {
  padding: 0 2rem 5rem;
}

.quiz-inner, .serment-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.answer-btn {
  padding: 1.2rem;
  font-weight: 500;
  text-transform: none;
  white-space: normal;
  height: 100%;
}

.quiz-result {
  background: rgba(107, 184, 143, 0.1);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
}

.serment-form {
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge-container {
  margin-top: 3rem;
  animation: fadeSlideUp 0.6s ease;
}

.badge-card {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  color: var(--gold-light);
  padding: 2rem;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(26, 60, 42, 0.4);
  position: relative;
  overflow: hidden;
}

.badge-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  transform: rotate(45deg);
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.badge-name {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: white;
  margin: 1rem 0;
}

/* ===== PEDAGOGIQUE ===== */
.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
}

.axe-card {
  text-align: center;
}

.axe-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.axe-card h3 {
  color: var(--green-deep);
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
}

.download-inner {
  max-width: 700px;
  margin: 0 auto 5rem;
  text-align: center;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* ===== PERSONNAGES UPDATES ===== */
.character-card--villain {
  background: var(--villain-bg);
  border-color: var(--villain-glow);
}

.character-card--villain h3, .character-card--villain .desc {
  color: white;
}

.character-card--villain .role {
  color: var(--coral-soft);
}

.character-card-info .role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.character-card-info .desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .books-grid, .social-grid, .axes-grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  .newsletter-icon { max-width: 200px; margin: 0 auto; }
  .pass-culture-inner { flex-direction: column; text-align: center; }
  .answers-grid { grid-template-columns: 1fr; }
  .countdown-timer { flex-wrap: wrap; }
}

/* FIX OVERFLOW ON SECTION TITLES */
.section-title { word-break: break-word; overflow-wrap: break-word; max-width: 100%; padding: 0 1rem; }
.social-wall-section .section-title { text-align: center; margin-bottom: 2rem; }

/* FIX AUTHOR PAGE GRID & UTILS */
.page-auteur .bio-section { display: block; padding: 3rem; }
.page-auteur .bio-section-content h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.text-center { text-align: center !important; }

/* NEW IMAGE INTEGRATIONS & ANIMATIONS */
.social-grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
.spin-animation { animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
