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

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #f0effe;
  --white: #ffffff;
  --border: #e4e2f8;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(79,70,229,.10);
  --shadow-lg: 0 12px 48px rgba(79,70,229,.18);
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(255,255,255,.25);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,255,255,.35);
  background: rgba(255,255,255,.92);
}
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===========================
   SECTION COMMONS
=========================== */
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  background: rgba(79,70,229,.1);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
/* Variante pleine (fond primary) */
.section-tag--filled {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
  padding: 10px 0;
}

/* Navbar sur fond sombre (couverture) */
.navbar.navbar-dark {
  background: rgba(15,10,46,.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
  padding: 10px 0;
}
.navbar.navbar-dark .nav-logo { color: #fff; }
.navbar.navbar-dark .nav-logo i { color: #a78bfa; }
.navbar.navbar-dark .logo-accent { color: #a78bfa; }
.navbar.navbar-dark .nav-link { color: rgba(255,255,255,.7); }
.navbar.navbar-dark .nav-link:hover,
.navbar.navbar-dark .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.navbar.navbar-dark .hamburger span { background: #fff; }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo-img {
  height: clamp(28px, 3.5vh, 42px);
  width: auto;
  display: block;
  object-fit: contain;
}
.cover-logo-img {
  height: clamp(22px, 2.5vh, 32px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .7;
}
.navbar.scrolled .nav-logo { color: var(--dark); }
.nav-logo i { color: var(--primary-light); font-size: 1.6rem; }
.navbar.scrolled .nav-logo i { color: var(--primary); }
.logo-accent { color: var(--primary-light); }
.navbar.scrolled .logo-accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.15); }
.navbar.scrolled .nav-link { color: var(--gray); }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--primary); background: rgba(79,70,229,.08); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }

/* ===========================
   HERO
=========================== */
/* Le fond et layout du hero sont gérés par #home + .page-inner dans le bloc PAGE FLIP */
.hero {
  position: relative;
  overflow: hidden;
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
}
.shape1 { width: 600px; height: 600px; background: #a78bfa; top: -200px; right: -100px; }
.shape2 { width: 400px; height: 400px; background: var(--accent); bottom: -150px; left: -100px; }
.shape3 { width: 200px; height: 200px; background: var(--secondary); top: 50%; left: 30%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fde68a;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.hero-hl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
}
.hero-hl-item i { color: #6ee7b7; font-size: .9rem; flex-shrink: 0; }

.hero-mini-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.hero-mini-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.hero-mini-stat:hover { background: rgba(255,255,255,.13); transform: translateX(4px); }
.hero-mini-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.hero-mini-stat strong {
  display: block;
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero-mini-stat span {
  color: rgba(255,255,255,.55);
  font-size: .78rem;
}
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 24px 28px;
  backdrop-filter: blur(8px);
}
.stat-item { flex: 1; min-width: 100px; text-align: center; }
.stat-item .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-item span:nth-child(2) { color: #fde68a; font-weight: 800; font-size: 1.4rem; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.65); display: block; margin-top: 4px; }
.stat-divider { width: 1px; background: rgba(255,255,255,.15); margin: 0 8px; }

/* Hero illustration */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; overflow: visible; padding: 0 20px; }
.hero-illustration { position: relative; width: 320px; height: 320px; margin-top: -60px; }
.main-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.illus-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit1 { width: 190px; height: 190px; animation: rotate 12s linear infinite; }
.orbit2 { width: 260px; height: 260px; animation: rotate 18s linear infinite reverse; }
.orbit3 { width: 320px; height: 320px; animation: rotate 24s linear infinite; }
.illus-dot {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fde68a;
  font-size: 1rem;
  backdrop-filter: blur(6px);
}
@keyframes rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-card-float {
  position: absolute;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  animation: float 4s ease-in-out infinite;
}
.hero-card-float i { font-size: 1.2rem; color: #fde68a; }
.card-float0 { top: 4%;   right: 5%;  animation-delay: 0.3s; }
.card-float1 { top: 35%;  left: 0%;   animation-delay: 0s; }
.card-float2 { top: 58%;  right: 2%;  animation-delay: 1.5s; }
.card-float3 { bottom: 2%; left: 5%;  animation-delay: 0.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===========================
   PARTNERS
=========================== */
.partners {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.partners-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.partners-track { overflow: hidden; }
.partners-list {
  display: flex;
  gap: 48px;
  animation: slide 20s linear infinite;
  width: max-content;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.partner-item i { color: var(--primary-light); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================
   FORMATIONS / CARDS GRID
=========================== */
.formations { background: var(--white); }

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--gray);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.course-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-debutant { background: #dcfce7; color: #166534; }
.badge-intermediaire { background: #fef3c7; color: #92400e; }
.badge-avance { background: #fee2e2; color: #991b1b; }
.badge-populaire { background: linear-gradient(135deg, var(--primary), #7c3aed); color: var(--white); }

.card-icon-wrap {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon-wrap i { font-size: 2.4rem; color: var(--white); }

.card-body { padding: 0 24px 16px; flex: 1; }
.card-tag {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.card-body p { font-size: .9rem; color: var(--gray); margin-bottom: 16px; line-height: 1.6; }

.card-features { margin-bottom: 16px; }
.card-features li {
  font-size: .85rem;
  color: var(--dark-3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.card-features li i { color: var(--secondary); font-size: .8rem; flex-shrink: 0; }

.card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--gray);
}
.card-meta span { display: flex; align-items: center; gap: 5px; }
.card-meta i { color: var(--primary-light); }
.card-price { margin-left: auto; font-weight: 700; color: var(--primary); font-size: .95rem; }

.card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  margin: 12px 24px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.card-cta:hover { opacity: .9; transform: translateY(-1px); }

/* hidden for filter */
.course-card.hidden { display: none; }

/* ===========================
   HOW IT WORKS
=========================== */
.how-it-works { background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%); }
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
}
.step-icon {
  width: 64px; height: 64px;
  background: rgba(79,70,229,.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: .85rem; color: var(--gray); }
.step-arrow {
  color: var(--primary-light);
  font-size: 1.4rem;
  padding: 0 12px;
  flex-shrink: 0;
}

/* ===========================
   LOGICIELS
=========================== */
.logiciels { background: var(--white); }
.logiciels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.logiciel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.logiciel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.logiciel-card.featured-logiciel { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.logiciel-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.logiciel-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  flex-shrink: 0;
}
.logiciel-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.logiciel-content p { font-size: .9rem; color: var(--gray); margin-bottom: 16px; line-height: 1.6; }
.logiciel-features { margin-bottom: 16px; }
.logiciel-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .87rem;
  color: var(--dark-3);
  margin-bottom: 8px;
}
.logiciel-features li i { color: var(--secondary); font-size: .8rem; flex-shrink: 0; }
.logiciel-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.logiciel-tags span {
  background: rgba(79,70,229,.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .73rem;
  font-weight: 600;
}

.custom-dev-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #7c3aed 100%);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.custom-dev-content { display: flex; align-items: center; gap: 24px; flex: 1; }
.custom-dev-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fde68a;
  flex-shrink: 0;
}
.custom-dev-content h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.custom-dev-content p { font-size: .92rem; color: rgba(255,255,255,.8); }

/* ===========================
   ABOUT
=========================== */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
  gap: 64px;
  align-items: center;
}
.about-illustration { position: relative; padding: 24px; }
.about-blob {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,.08), rgba(124,58,237,.06));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphBlob 8s ease-in-out infinite;
}
@keyframes morphBlob {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}
.about-img-cards { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; padding: 24px 0; }
.about-img-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: var(--transition);
}
.about-img-card:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.about-img-card i { font-size: 2rem; color: var(--primary); width: 48px; flex-shrink: 0; }
.about-img-card strong { display: block; font-weight: 700; font-size: .95rem; color: var(--dark); }
.about-img-card span { font-size: .83rem; color: var(--gray); }

/* Badges de confiance */
.about-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.about-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(79,70,229,.06);
  transition: var(--transition);
}
.about-trust-badge:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79,70,229,.12);
}
.about-trust-badge i {
  font-size: .95rem;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(79,70,229,.08);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.about-trust-badge span {
  font-size: clamp(.7rem, .85vw, .82rem);
  font-weight: 600;
  color: var(--dark-3);
  line-height: 1.3;
}

/* Citation bas */
.about-quote {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px 14px 20px;
  margin-top: 12px;
}
.about-quote .fa-quote-left {
  font-size: .8rem;
  color: var(--primary-light);
  opacity: .5;
  margin-bottom: 6px;
  display: block;
}
.about-quote p {
  font-size: clamp(.78rem, .95vw, .9rem);
  color: var(--gray);
  line-height: 1.5;
  margin: 0 0 6px;
  font-style: italic;
}
.about-quote p strong { color: var(--dark); font-style: normal; }
.about-quote span {
  font-size: clamp(.66rem, .78vw, .74rem);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .04em;
}

.about-content-col .section-tag { text-align: left; display: inline-block; }
.about-content-col .section-title { text-align: left; }
.about-content-col p { color: var(--gray); margin-bottom: 16px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.value-item i {
  font-size: 1.4rem;
  color: var(--primary);
  width: 44px;
  height: 44px;
  background: rgba(79,70,229,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease, box-shadow .3s ease;
}
.value-item:hover i {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79,70,229,.35);
}

/* Excellence pédagogique — rotation précise comme une cible */
.value-item:nth-child(1):hover i {
  transform: rotate(360deg) scale(1.15);
}
/* Ancrage local — rebond vertical comme une feuille qui pousse */
.value-item:nth-child(2):hover i {
  animation: leafBounce .6s cubic-bezier(.34,1.56,.64,1) forwards;
}
/* Innovation digitale — décollage */
.value-item:nth-child(3):hover i {
  animation: rocketLaunch .5s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes leafBounce {
  0%   { transform: scale(1)    translateY(0); }
  40%  { transform: scale(1.2)  translateY(-8px); }
  70%  { transform: scale(1.1)  translateY(-4px); }
  100% { transform: scale(1.15) translateY(-6px); }
}

@keyframes rocketLaunch {
  0%   { transform: scale(1)    translateY(0)    rotate(0deg); }
  30%  { transform: scale(1.1)  translateY(-4px) rotate(-5deg); }
  60%  { transform: scale(1.2)  translateY(-10px) rotate(-10deg); }
  100% { transform: scale(1.15) translateY(-7px)  rotate(-8deg); }
}
.value-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.value-item p { font-size: .85rem; color: var(--gray); margin: 0; }

/* ===========================
   TÃ‰MOIGNAGES
=========================== */
.temoignages { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); }
.temoignages .section-tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.temoignages .section-title { color: var(--white); }

.temoignages-slider { position: relative; overflow: hidden; }
.temoignages-track {
  display: flex;
  gap: 28px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.temoignage-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  min-width: calc(50% - 14px);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.temoignage-quote { color: var(--primary-light); font-size: 2rem; margin-bottom: 16px; opacity: .6; }
.temoignage-card p { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.temoignage-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.temoignage-author strong { display: block; color: var(--white); font-size: .9rem; }
.temoignage-author span { color: rgba(255,255,255,.5); font-size: .8rem; }
.temoignage-stars { margin-left: auto; color: var(--accent); letter-spacing: 2px; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.slider-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--primary-light); transform: scale(1.3); }

/* ===========================
   TARIFS
=========================== */
.tarifs { background: var(--bg); }
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}
.tarif-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.tarif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tarif-card.featured-tarif {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: var(--white);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.tarif-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--dark);
  padding: 4px 18px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tarif-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.tarif-price { margin-bottom: 8px; }
.price-amount { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.price-currency { font-size: .9rem; opacity: .7; }
.tarif-header p { font-size: .87rem; opacity: .7; margin-bottom: 24px; }

.tarif-features { text-align: left; margin-bottom: 28px; }
.tarif-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.featured-tarif .tarif-features li { border-bottom-color: rgba(255,255,255,.1); }
.tarif-features li i { font-size: .9rem; }
.tarif-features li:not(.disabled) i { color: var(--secondary); }
.featured-tarif .tarif-features li:not(.disabled) i { color: #6ee7b7; }
.tarif-features li.disabled { opacity: .4; }
.tarif-features li.disabled i { color: var(--danger); }

/* ===========================
   CONTACT
=========================== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info-icon {
  width: 48px; height: 48px;
  background: rgba(79,70,229,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { font-size: .87rem; color: var(--gray); line-height: 1.6; margin: 0; }

/* Soulignement dégradé sur les titres contact */
.contact-left .contact-info-item h4 {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}
.contact-left .contact-info-item h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
  border-radius: 2px;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.contact-left .contact-info-item:hover h4::after {
  transform: scaleX(1);
}
.contact-left .contact-info-item h4 {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--dark-3); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--danger); }
.form-error { font-size: .78rem; color: var(--danger); height: 16px; }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
}
.form-success.show { display: flex; }
.form-success i { font-size: 1.3rem; }

/* ===========================
   FOOTER
=========================== */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .nav-logo i { color: var(--primary-light); }
.footer-brand .logo-accent { color: var(--primary-light); }
.footer-brand p { font-size: .87rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: .82rem;
}

/* ===========================
   BACK TO TOP
=========================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(79,70,229,.5); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 120px 24px 80px;
  }
  .hero-image { display: none; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nh, 60px);
    left: 0; right: 0; bottom: 0;
    background: rgba(10,8,30,.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-end;
    padding: 20px 20px 24px;
    gap: 10px;
    z-index: 999;
    overflow-y: auto;
    pointer-events: none;
  }
  .nav-links.open { display: flex; pointer-events: all; }

  /* Les <li> : alignés à droite */
  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity .25s ease, transform .25s ease;
    list-style: none;
  }
  .nav-links.open li:nth-child(1) { transition-delay: .04s; opacity:1; transform:translateX(0); }
  .nav-links.open li:nth-child(2) { transition-delay: .10s; opacity:1; transform:translateX(0); }
  .nav-links.open li:nth-child(3) { transition-delay: .16s; opacity:1; transform:translateX(0); }
  .nav-links.open li:nth-child(4) { transition-delay: .22s; opacity:1; transform:translateX(0); }
  .nav-links.open li:nth-child(5) { transition-delay: .28s; opacity:1; transform:translateX(0); }
  .nav-links.open li:nth-child(6) { transition-delay: .34s; opacity:1; transform:translateX(0); }

  /* Chaque lien : pill sans cadre global */
  .nav-links .nav-link {
    display: block;
    color: #fff;
    background: rgba(15,23,42,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 30px;
    padding: 11px 24px;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, color .2s;
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link.active { background: var(--primary); color: #fff; }
  .hamburger { display: flex; }

  .section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .logiciels-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: stretch; }
  .step-arrow { display: none; }
  .step-card { max-width: 100%; }

  .temoignage-card { min-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .custom-dev-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
  .custom-dev-content { flex-direction: column; }
  .tarifs-grid { grid-template-columns: 1fr; }
  .tarif-card.featured-tarif { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { display: none; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
}


/* =============================================
   PAGE FLIP + FULLSCREEN NO-SCROLL
   Unites en vh/vw/clamp = auto-responsive
============================================= */

/* BASE */
html, body { height: 100%; overflow: hidden; }
body.flip-mode { overflow: hidden; height: 100vh; width: 100vw; }
:root { --nh: 62px; }

.page-section {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  overflow: hidden;
  backface-visibility: hidden;
  transform-origin: left center;
  z-index: 1;
}
.page-section.page-active  { display: block; opacity: 1; z-index: 2; pointer-events: all; }
.page-section.page-hidden  { display: none !important; pointer-events: none; }

/* ===========================
   PAGE FLIP — ANIMATION LIVRE
=========================== */

/* Conteneur de scène 3D pour l'effet livre */
#flip-stage {
  position: fixed;
  inset: 0;
  z-index: 500;
  perspective: 1200px;
  pointer-events: none;
}

/* Volet animé (la "page" qui tourne) */
#flip-leaf {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  pointer-events: none;
}

/* Face avant du volet (page sortante) */
#flip-leaf .leaf-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}

/* Face arrière du volet (reflet/ombre pendant la rotation) */
#flip-leaf .leaf-back {
  position: absolute;
  inset: 0;
  background: rgba(15,10,46,.85);
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

@keyframes leafTurnForward {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}
@keyframes leafTurnBack {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

/* Ombre de courbure sur le bord de la page (avant la rotation) */
#flip-leaf::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.1s;
}
#flip-leaf.turn-forward::after {
  right: 0;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.4));
}
#flip-leaf.turn-back::after {
  left: 0;
  background: linear-gradient(to left, transparent, rgba(0,0,0,.4));
}

/* Curseur page au survol des liens */
body.cursor-page { cursor: pointer; }

.navbar { z-index:1000 !important; position:fixed !important; }

/* WRAPPER INTERNE */
.page-inner {
  height: calc(100vh - var(--nh));
  margin-top: var(--nh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(16px,3vw,48px);
  box-sizing: border-box;
  overflow: hidden;
}

/* ============ HOME — COUVERTURE LIVRE ============ */
#home {
  background: linear-gradient(160deg, #1a1035 0%, #0f0a2e 60%, #0c1a3a 100%);
  padding: 0;
  overflow: hidden;
}
#home .hero-bg { display: none; }

/* Wrapper principal couverture */
.book-cover {
  display: grid;
  grid-template-columns: 1fr clamp(300px,42vw,540px);
  height: calc(100vh - var(--nh));
  margin-top: var(--nh);
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: inset -8px 0 40px rgba(0,0,0,.35);
}

/* ---- SPINE (dos du livre) ---- */
.book-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px,.8vh,10px);
  background: linear-gradient(180deg, #2d1b69 0%, #1a0f4a 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}
.book-spine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(79,70,229,.3) 0%,
    rgba(124,58,237,.2) 50%,
    rgba(79,70,229,.3) 100%
  );
}
.spine-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: clamp(.55rem,.7vw,.72rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.spine-sub {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: clamp(.45rem,.55vw,.58rem);
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.spine-year {
  font-size: clamp(.42rem,.52vw,.55rem);
  font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
  position: relative;
  z-index: 1;
}
.spine-line {
  width: 1px;
  height: clamp(20px,3vh,40px);
  background: rgba(255,255,255,.15);
  position: relative;
  z-index: 1;
}
.spine-icon {
  color: rgba(79,70,229,.6);
  font-size: clamp(.7rem,.9vw,.9rem);
  position: relative;
  z-index: 1;
}

/* ---- FACE PRINCIPALE ---- */
.book-face {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px,1.5vh,22px) clamp(28px,3.5vw,52px);
  position: relative;
  overflow: hidden;
  border-right: none;
}

/* Texture grain papier */
.book-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(79,70,229,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124,58,237,.1) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Header couverture */
.cover-header { position: relative; z-index: 1; }
.cover-collection {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(.58rem,.7vw,.7rem);
  font-weight: 600;
  color: rgba(255,255,255,.35);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cover-collection-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}

/* Corps couverture */
.cover-body {
  position: relative;
  z-index: 1;
  text-align: center;
  overflow: visible;
}
.cover-edition {
  display: inline-block;
  font-size: clamp(.58rem,.7vw,.7rem);
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: clamp(4px,.6vh,8px);
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.2);
  padding: 4px 14px;
  border-radius: 50px;
}
.cover-title {
  font-size: clamp(2rem,4.5vw,5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: clamp(4px,.6vh,8px);
  text-shadow: 0 4px 40px rgba(79,70,229,.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1em;
}
.cover-title-line {
  display: block;
}
.cover-title-line--1 {
  color: #fff;
}
.cover-title-line--2 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cover-title-amp {
  font-size: .45em;
  color: #a78bfa;
  font-weight: 400;
  font-style: italic;
  -webkit-text-fill-color: #a78bfa;
}
.cover-subtitle {
  font-size: clamp(.82rem,1.15vw,1.15rem);
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  font-weight: 500;
}
.cover-subtitle em { color: rgba(255,255,255,.45); font-style: italic; font-weight: 400; }

/* Stats couverture */
.cover-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: clamp(6px,.8vh,10px) clamp(16px,2vw,28px);
  backdrop-filter: blur(10px);
}
.cover-stat {
  text-align: center;
  flex: 1;
}
.cover-stat strong {
  display: block;
  font-size: clamp(.9rem,1.3vw,1.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.cover-stat span {
  font-size: clamp(.55rem,.68vw,.68rem);
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.cover-stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
  margin: 0 8px;
}

/* Pied de couverture */
.cover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.cover-publisher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(.62rem,.78vw,.78rem);
  color: rgba(255,255,255,.35);
  font-weight: 500;
}
.cover-publisher i { color: #667eea; font-size: .9rem; }
.cover-publisher strong { color: rgba(255,255,255,.6); }
.cover-ctas { display: flex; align-items: center; gap: 10px; }

.btn-cover-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: clamp(8px,1.1vh,11px) clamp(16px,2vw,24px);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 50px;
  font-size: clamp(.72rem,.88vw,.88rem);
  font-weight: 700;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(102,126,234,.4);
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-cover-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(102,126,234,.55);
}
.btn-cover-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: clamp(8px,1.1vh,11px) clamp(16px,2vw,24px);
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  font-size: clamp(.72rem,.88vw,.88rem);
  font-weight: 600;
  transition: all .3s ease;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.btn-cover-ghost:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  transform: translateY(-2px);
}

/* ---- RABAT DROIT (flap) ---- */
.book-flap {
  display: flex;
  flex-direction: column;
  gap: clamp(5px,0.7vh,9px);
  padding: clamp(10px,1.4vh,20px) clamp(20px,2.5vw,36px) clamp(8px,1.2vh,16px);
  background: transparent;
  border-left: none;
  position: relative;
  height: 100%;
  overflow: hidden;
}
/* Lumière douce sur le rabat */
.book-flap::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(79,70,229,.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.flap-label {
  font-size: clamp(.6rem,.72vw,.72rem);
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .14em;
  padding-bottom: clamp(3px,.4vh,6px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
  z-index: 1;
}

/* pills-scene adapté au fond sombre */
.book-flap .pills-scene {
  flex: 0 0 auto;   /* taille naturelle, ne grandit plus pour remplir */
  max-width: 100%;
  padding: 0;
  position: relative;
  z-index: 1;
}
.book-flap .pill-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.book-flap .pill-item:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}
.book-flap .pill-name { color: #fff; }
.book-flap .pill-tags { color: rgba(255,255,255,.45); }
.book-flap .pill-arrow {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
}
.book-flap .pill-item:hover .pill-arrow {
  background: linear-gradient(135deg, var(--pc, #667eea), var(--ps, #764ba2));
  color: #fff;
}
.book-flap .pills-line {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.12), transparent);
}
.book-flap .hero-blob {
  background: linear-gradient(135deg,
    rgba(79,70,229,.12) 0%,
    rgba(124,58,237,.08) 40%,
    rgba(16,185,129,.05) 100%
  );
}

/* Trust bar bas du rabat */
.flap-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: clamp(7px,.9vh,11px) clamp(12px,1.4vw,16px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: pillSlideIn .5s ease .5s both;
}
.flap-trust .pfc-avatars span {
  border-color: rgba(255,255,255,.2);
}
.flap-trust .pfc-stars { color: #10b981; font-size: .68rem; font-weight: 700; }
.flap-trust .pfc-label { color: rgba(255,255,255,.45); }

/* ============ FLAP PROMISE ============ */
.flap-promise {
  display: flex;
  flex-direction: column;
  gap: clamp(8px,1vh,12px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: pillSlideIn .5s ease .45s both;
}

.flap-promise-quote {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid #818cf8;
  border-radius: 0 10px 10px 0;
  padding: clamp(10px,1.2vh,16px) clamp(12px,1.3vw,18px);
  position: relative;
}

.flap-promise-quote .fa-quote-left {
  position: absolute;
  top: 8px; left: 10px;
  font-size: .7rem;
  color: rgba(129,140,248,.4);
}

.flap-promise-quote p {
  font-size: clamp(.68rem,.82vw,.84rem);
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  padding-left: 14px;
  margin: 0;
}
.flap-promise-quote p strong {
  color: #fff;
  font-weight: 700;
}
.flap-promise-quote p em {
  color: #818cf8;
  font-style: normal;
  font-weight: 600;
}

/* Citation inspirante */
.flap-promise-citation {
  margin-top: 4px;
}

.fpc-blockquote {
  position: relative;
  margin: 0;
  padding: clamp(12px,1.4vh,18px) clamp(14px,1.4vw,20px);
  background: rgba(255,255,255,.06);
  border-left: 3px solid rgba(102,126,234,.7);
  border-radius: 0 10px 10px 0;
}

.fpc-icon {
  display: block;
  font-size: clamp(.9rem,1vw,1.1rem);
  color: rgba(102,126,234,.8);
  margin-bottom: 8px;
}

.fpc-blockquote p {
  margin: 0 0 8px;
  font-size: clamp(.68rem,.78vw,.82rem);
  line-height: 1.55;
  color: rgba(255,255,255,.75);
  font-style: italic;
}

.fpc-blockquote p strong {
  color: #fff;
  font-style: normal;
}

.fpc-author {
  font-size: clamp(.58rem,.66vw,.7rem);
  font-weight: 600;
  color: rgba(102,126,234,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============ FAQ PARTAGÉ (utilisé dans #temoignages) ============ */

/* Chaque item FAQ */
.faq-item {
  border-radius: 9px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.faq-item.open {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
/* Bouton question */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(6px,.75vh,9px) clamp(9px,1vw,12px);
  text-align: left;
  font-family: 'Poppins', sans-serif;
  transition: background .18s;
}
.faq-q:hover { background: rgba(255,255,255,.05); }

.faq-q span {
  font-size: clamp(.64rem,.76vw,.76rem);
  font-weight: 600;
  color: rgba(255,255,255,.82);
  line-height: 1.35;
  flex: 1;
}

.faq-chevron {
  font-size: .58rem;
  color: rgba(255,255,255,.4);
  transition: transform .28s cubic-bezier(.4,0,.2,1), color .2s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #818cf8;
}

/* Réponse — collapsible */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s cubic-bezier(.4,0,.2,1), padding .28s;
  padding: 0 clamp(9px,1vw,12px);
}
.faq-item.open .faq-a {
  max-height: 90px;
  padding: 0 clamp(9px,1vw,12px) clamp(7px,.8vh,10px);
}
.faq-a p {
  font-size: clamp(.62rem,.74vw,.74rem);
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  margin: 0;
}
.faq-a p strong { color: rgba(255,255,255,.82); font-weight: 600; }
.faq-link {
  color: #818cf8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-link:hover { color: #a78bfa; }

/* ============ STAGGER — entrée en cascade ============ */

/*
  État initial : élément prêt à être animé
  (invisible + décalé vers le bas)
*/
.stagger-ready {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: none !important;
}

/*
  État final : élément visible
  La transition est définie ici, pas dans stagger-ready,
  pour éviter un flash au reset
*/
.stagger-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ============ FORMATIONS ============ */
#formations { background:#f5f4ff; padding:0; position:relative; }
#formations .page-inner {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: clamp(16px,2vh,28px);
  padding-bottom: clamp(8px,1.2vh,16px);
  margin-left:0; padding-left:clamp(24px,3vw,48px); padding-right:clamp(24px,3vw,48px);
}
#formations .page-inner::-webkit-scrollbar { width:4px; }
#formations .page-inner::-webkit-scrollbar-track { background:transparent; }
#formations .page-inner::-webkit-scrollbar-thumb { background:rgba(79,70,229,.2); border-radius:2px; }
#formations .section-header   { margin-bottom:clamp(10px,1.5vh,18px); text-align:center; }
#formations .section-tag      { font-size:clamp(.68rem,.82vw,.82rem); margin-bottom:2px; display:inline-block; }
#formations .section-title    { font-size:clamp(1.1rem,1.85vw,1.75rem); margin-bottom:4px; line-height:1.15; }
#formations .section-subtitle { font-size:clamp(.74rem,.9vw,.9rem); line-height:1.35; }
#formations .filter-tabs      { margin-bottom:clamp(12px,1.8vh,22px); gap:5px; justify-content:center; }
#formations .filter-btn       { padding:clamp(3px,.4vh,6px) clamp(10px,1.4vw,16px); font-size:clamp(.72rem,.88vw,.86rem); }
#formations .cards-grid       { grid-template-columns:repeat(3,1fr); gap:clamp(12px,1.5vw,20px); }
#formations .card-icon-wrap   { padding:clamp(4px,.5vh,7px); }
#formations .card-icon-wrap i { font-size:clamp(1.2rem,1.8vw,1.9rem); }
#formations .card-body        { padding:0 clamp(8px,1vw,14px) clamp(3px,.4vh,5px); }
#formations .card-body h3     { font-size:clamp(.84rem,1.05vw,1.08rem); margin-bottom:4px; line-height:1.15; }
#formations .card-body p      { font-size:clamp(.74rem,.9vw,.88rem); margin-bottom:6px; line-height:1.4; }
#formations .card-features li { font-size:clamp(.7rem,.86vw,.84rem); margin-bottom:3px; line-height:1.3; }
#formations .card-meta        { font-size:clamp(.66rem,.82vw,.8rem); gap:3px; padding-top:3px; }
#formations .card-cta         { padding:clamp(5px,.7vh,8px) clamp(8px,1vw,14px); font-size:clamp(.76rem,.92vw,.9rem); margin:2px clamp(8px,1vw,14px) clamp(3px,.4vh,5px); }
#formations .section-cta      { margin-top:clamp(16px,2vh,24px); }
#formations .section-cta .btn { padding:clamp(6px,.8vh,9px) clamp(16px,2vw,26px); font-size:clamp(.84rem,1vw,.98rem); }
#formations .card-badge       { top:6px; right:7px; font-size:clamp(.62rem,.74vw,.74rem); padding:2px 8px; }

/* ============ LOGICIELS ============ */
#logiciels { background:#eeedfb; padding:0; position:relative; }
#logiciels .page-inner {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: clamp(16px,2.5vh,28px);
  padding-bottom: clamp(8px,1.2vh,16px);
  margin-left:0; padding-left:clamp(24px,3vw,48px); padding-right:clamp(24px,3vw,48px);
}
#logiciels .page-inner::-webkit-scrollbar { width:4px; }
#logiciels .page-inner::-webkit-scrollbar-track { background:transparent; }
#logiciels .page-inner::-webkit-scrollbar-thumb { background:rgba(79,70,229,.2); border-radius:2px; }
#logiciels .section-header    { margin-bottom:clamp(24px,3.5vh,40px); text-align:center; padding-top:clamp(10px,1.5vh,18px); }
#logiciels .section-tag       { font-size:clamp(.68rem,.82vw,.82rem); margin-bottom:0; display:inline-block; }
#logiciels .section-title     { font-size:clamp(1.1rem,1.85vw,1.75rem); margin-bottom:12px; line-height:1.15; }
#logiciels .section-subtitle  { font-size:clamp(.74rem,.9vw,.9rem); line-height:1.3; margin-bottom:0; }
#logiciels .logiciels-grid    { grid-template-columns:repeat(4,1fr); gap:clamp(10px,1.2vw,16px); margin-bottom:clamp(20px,3vh,36px); }
#logiciels .logiciel-card     { padding:clamp(10px,1.2vh,16px) clamp(10px,1.1vw,14px); gap:clamp(6px,.8vh,10px); }
#logiciels .logiciel-icon     { width:clamp(30px,3.2vw,42px); height:clamp(30px,3.2vw,42px); font-size:clamp(.9rem,1.1vw,1.2rem); border-radius:9px; flex-shrink:0; }
#logiciels .logiciel-content h3   { font-size:clamp(.82rem,1vw,1.04rem); margin-bottom:4px; line-height:1.2; }
#logiciels .logiciel-content p    { font-size:clamp(.7rem,.86vw,.84rem); margin-bottom:6px; line-height:1.35; }
#logiciels .logiciel-features li  { font-size:clamp(.66rem,.8vw,.8rem); margin-bottom:3px; line-height:1.3; }
#logiciels .logiciel-tags span    { font-size:clamp(.6rem,.72vw,.72rem); padding:2px 6px; }
#logiciels .logiciel-card .btn    { padding:clamp(5px,.6vh,8px) clamp(8px,1vw,12px); font-size:clamp(.72rem,.88vw,.86rem); }
#logiciels .logiciel-badge        { font-size:clamp(.6rem,.72vw,.72rem); top:-9px; }
#logiciels .custom-dev-banner     { padding:clamp(6px,.8vh,10px) clamp(12px,1.3vw,18px); flex-wrap:nowrap; align-items:center; }
#logiciels .custom-dev-content    { gap:8px; }
#logiciels .custom-dev-icon       { width:clamp(26px,2.8vw,34px); height:clamp(26px,2.8vw,34px); font-size:clamp(.8rem,.95vw,1rem); flex-shrink:0; }
#logiciels .custom-dev-content h3 { font-size:clamp(.78rem,.95vw,.94rem); margin-bottom:0; line-height:1.2; display:inline; }
#logiciels .custom-dev-content p  { font-size:clamp(.68rem,.82vw,.8rem); line-height:1.2; display:inline; margin-left:6px; }
#logiciels .custom-dev-banner .btn { padding:clamp(4px,.5vh,7px) clamp(10px,1.2vw,16px); font-size:clamp(.72rem,.88vw,.86rem); white-space:nowrap; flex-shrink:0; }

/* ============ A PROPOS ============ */
#about { background:#f5f4ff; padding:0; position:relative; }
#about .page-inner {
  justify-content: center;
  overflow-y: auto;
  padding-top: clamp(8px,1.2vh,16px);
  padding-bottom: clamp(8px,1.2vh,16px);
  margin-left:0; padding-left:clamp(24px,3vw,48px); padding-right:clamp(24px,3vw,48px);
}
#about .page-inner::-webkit-scrollbar { width:4px; }
#about .page-inner::-webkit-scrollbar-track { background:transparent; }
#about .page-inner::-webkit-scrollbar-thumb { background:rgba(79,70,229,.2); border-radius:2px; }
#about .about-grid   { grid-template-columns: 1fr 1fr; gap:clamp(12px,2vw,36px); }
#about .section-tag  { font-size:clamp(.72rem,.88vw,.88rem); }
#about .section-title { font-size:clamp(1.2rem,2vw,1.9rem); margin-bottom:clamp(6px,1vh,12px); }
#about .about-content-col p { font-size:clamp(.78rem,.96vw,.96rem); margin-bottom:clamp(6px,.9vh,12px); }
#about .about-values { gap:clamp(8px,1.1vh,14px); margin-top:clamp(8px,1.2vh,16px); }
#about .value-item h4 { font-size:clamp(.84rem,1.05vw,1.05rem); }
#about .value-item p  { font-size:clamp(.74rem,.9vw,.88rem); }
#about .value-item i  { width:clamp(30px,3.2vw,40px); height:clamp(30px,3.2vw,40px); font-size:clamp(.95rem,1.15vw,1.15rem); border-radius:8px; }
#about .about-img-cards { gap:clamp(8px,1vh,12px); }
#about .about-img-card  { padding:clamp(9px,1.1vh,14px) clamp(12px,1.4vw,18px); }
#about .about-img-card i      { font-size:clamp(1.3rem,1.8vw,1.9rem); width:40px; }
#about .about-img-card strong { font-size:clamp(.82rem,1vw,1rem); }
#about .about-img-card span   { font-size:clamp(.72rem,.88vw,.86rem); }

/* ============ TEMOIGNAGES / POURQUOI ============ */
#temoignages { background:#eeedfb; padding:0; position:relative; }
#temoignages .page-inner {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: clamp(14px,2vh,24px);
  padding-bottom: clamp(12px,1.5vh,20px);
  gap: clamp(4px,.5vh,8px);
  margin-left:0; padding-left:clamp(24px,3vw,48px); padding-right:clamp(24px,3vw,48px);
}
#temoignages .page-inner::-webkit-scrollbar { width: 4px; }
#temoignages .page-inner::-webkit-scrollbar-track { background: transparent; }
#temoignages .page-inner::-webkit-scrollbar-thumb { background: rgba(79,70,229,.2); border-radius: 2px; }
#temoignages .section-tag {
  font-size:clamp(.68rem,.82vw,.82rem);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}
#temoignages .section-header { margin-bottom:clamp(4px,.6vh,8px); }
#temoignages .section-title { font-size:clamp(1.2rem,2vw,1.9rem) !important; color:var(--dark) !important; margin-bottom:0; }

.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.pourquoi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(10px, 1.3vh, 18px) clamp(12px, 1.4vw, 20px);
  position: relative;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow: hidden;
}
.pourquoi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.pourquoi-num {
  position: absolute;
  top: 8px; right: 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.8rem);
  font-weight: 900;
  color: rgba(79,70,229,.06);
  line-height: 1;
  pointer-events: none;
}
.pourquoi-icon {
  width: clamp(32px, 3.2vw, 42px);
  height: clamp(32px, 3.2vw, 42px);
  background: rgba(79,70,229,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: clamp(.85rem, 1.1vw, 1.2rem);
  margin-bottom: clamp(5px, .7vh, 9px);
}
.pourquoi-card h3 {
  font-size: clamp(.82rem, 1vw, 1.05rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: clamp(3px, .4vh, 6px);
}
.pourquoi-card p {
  font-size: clamp(.72rem, .88vw, .88rem);
  color: var(--gray);
  line-height: 1.45;
  margin: 0;
}

/* ============ SECTION FAQ (dans Pourquoi nous choisir) ============ */
.section-faq { width: 100%; }
.section-faq .section-header { margin-top: clamp(8px,1.2vh,14px) !important; margin-bottom: clamp(4px,.5vh,8px) !important; }

.sfaq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Réutilise .faq-item, .faq-q, .faq-a, .faq-chevron déjà définis,
   couleurs adaptées au fond clair de #temoignages */
#temoignages .faq-item {
  background: var(--white);
  border-color: var(--border);
}
#temoignages .faq-item.open {
  background: var(--white);
  border-color: var(--primary-light);
}
#temoignages .faq-q span  { color: var(--dark); }
#temoignages .faq-a p     { color: var(--gray); }
#temoignages .faq-a p strong { color: var(--dark); }
#temoignages .faq-chevron { color: var(--gray-light); }
#temoignages .faq-item.open .faq-chevron { color: var(--primary); }
#temoignages .faq-link    { color: var(--primary); }
#temoignages .faq-link:hover { color: var(--primary-dark); }

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

/* ============ CONTACT ============ */
#contact { background:#f5f4ff; padding:0; position:relative; }
#contact .page-inner {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: clamp(48px,7vh,72px);
  padding-bottom: clamp(20px,3vh,40px);
  gap: clamp(10px,1.5vh,18px);
  margin-left:0; padding-left:clamp(24px,3vw,48px); padding-right:clamp(24px,3vw,48px);
}
#contact .page-inner::-webkit-scrollbar { width: 4px; }
#contact .page-inner::-webkit-scrollbar-track { background: transparent; }
#contact .page-inner::-webkit-scrollbar-thumb { background: rgba(79,70,229,.2); border-radius: 2px; }
.contact-page-layout { display:grid; grid-template-columns:1fr 1.5fr; gap:clamp(14px,2vw,32px); align-items:start; }
.contact-left .section-tag   { font-size:clamp(.72rem,.88vw,.88rem); }
.contact-left .section-title { font-size:clamp(1.1rem,1.7vw,1.6rem); margin-bottom:clamp(8px,1.2vh,14px); }
.contact-left .contact-info  { gap:clamp(6px,.9vh,11px); margin-bottom:clamp(8px,1.2vh,14px); }
.contact-left .contact-info-icon { width:clamp(30px,3.2vw,38px); height:clamp(30px,3.2vw,38px); font-size:clamp(.82rem,1vw,.98rem); border-radius:8px; }
.contact-left .contact-info-item h4 { font-size:clamp(.76rem,.92vw,.9rem); margin-bottom:2px; }
.contact-left .contact-info-item p  { font-size:clamp(.7rem,.86vw,.84rem); margin:0; }
.tarifs-compact { display:flex; flex-direction:column; gap:clamp(4px,.5vh,7px); margin-bottom:clamp(7px,1vh,11px); }
.tarif-compact-card { display:flex; align-items:center; gap:8px; padding:clamp(6px,.7vh,10px) clamp(8px,.9vw,11px); border-radius:8px; background:rgba(79,70,229,.04); border:1px solid var(--primary-light); }
.tarif-compact-card strong { font-size:clamp(.76rem,.92vw,.9rem); white-space:nowrap; }
.tarif-compact-price { font-size:clamp(.8rem,.98vw,.96rem); font-weight:700; color:var(--primary); margin-left:auto; white-space:nowrap; }
.tarif-compact-card p { font-size:clamp(.64rem,.78vw,.76rem); color:var(--gray); margin:0; }
.featured-compact { background:rgba(79,70,229,.07); border-color:var(--primary-light); }
#contact .contact-form  { padding:clamp(14px,1.8vh,22px) clamp(14px,1.6vw,22px); gap:clamp(8px,1.1vh,12px); }
#contact .form-row      { gap:clamp(8px,1vw,13px); }
#contact .form-group label { font-size:clamp(.76rem,.92vw,.9rem); }
#contact .form-group input,
#contact .form-group select { padding:clamp(7px,.9vh,10px) clamp(11px,1.3vw,15px); font-size:clamp(.8rem,.98vw,.96rem); }
#contact .form-group textarea { min-height:clamp(50px,7vh,76px); font-size:clamp(.8rem,.98vw,.96rem); padding:clamp(7px,.9vh,10px) clamp(11px,1.3vw,15px); }
#contact .btn-full  { padding:clamp(9px,1.2vh,13px); font-size:clamp(.86rem,1.04vw,.98rem); }

/* Icônes sociales — petites et discrètes */
.contact-socials { display:flex; gap:8px; margin-top:clamp(8px,1vh,12px); }
.contact-socials a {
  width: 32px; height: 32px;
  background: rgba(79,70,229,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: .85rem;
  transition: var(--transition);
  text-decoration: none;
}
.contact-socials a:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* Barre copyright en bas de la section contact */
.contact-footer-bar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: clamp(8px,1vh,12px);
  margin-top: clamp(4px,.5vh,8px);
  text-align: center;
}
.contact-footer-bar p {
  font-size: .75rem;
  color: var(--gray-light);
  margin: 0;
}
.contact-footer-bar a { color: var(--primary); }
.contact-footer-bar a:hover { text-decoration: underline; }

/* ============ CHAPTER SPINE (dos de chapitre) ============ */
.chapter-spine {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: clamp(36px,4.5vw,60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px,.8vh,10px);
  background: linear-gradient(180deg, rgba(79,70,229,.04) 0%, rgba(79,70,229,.09) 50%, rgba(79,70,229,.04) 100%);
  border-right: 1px solid rgba(79,70,229,.09);
  z-index: 10;
}
.chapter-spine-right {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: clamp(36px,4.5vw,60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px,.8vh,10px);
  background: linear-gradient(180deg, rgba(79,70,229,.04) 0%, rgba(79,70,229,.09) 50%, rgba(79,70,229,.04) 100%);
  border-left: 1px solid rgba(79,70,229,.09);
  z-index: 10;
  cursor: pointer;
  transition: background .3s ease;
}
.chapter-spine-right:hover {
  background: linear-gradient(180deg, rgba(79,70,229,.07) 0%, rgba(79,70,229,.14) 50%, rgba(79,70,229,.07) 100%);
}
.cs-num {
  font-size: clamp(.9rem,1.1vw,1.2rem);
  font-weight: 900;
  color: rgba(79,70,229,.4);
  letter-spacing: .05em;
  line-height: 1;
}
.chapter-spine-right .cs-num {
  font-size: clamp(.9rem,1.1vw,1.2rem);
  font-weight: 900;
  color: rgba(79,70,229,.4);
  letter-spacing: .05em;
  line-height: 1;
}
.cs-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: clamp(.62rem,.75vw,.78rem);
  font-weight: 700;
  color: rgba(79,70,229,.65);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chapter-spine-right .cs-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(0deg);
  font-size: clamp(.62rem,.75vw,.78rem);
  font-weight: 700;
  color: rgba(79,70,229,.65);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cs-line {
  width: 1px;
  height: clamp(16px,2.5vh,32px);
  background: linear-gradient(to bottom, transparent, rgba(79,70,229,.2), transparent);
}
.cs-icon {
  color: rgba(79,70,229,.45);
  font-size: clamp(.8rem,1vw,1rem);
}

/* Blob déco arrière-plan sections */
#formations::after,
#logiciels::after,
#about::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: clamp(180px,25vw,340px);
  height: clamp(180px,25vw,340px);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphBlob 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
#formations::after  { background: radial-gradient(ellipse, rgba(102,126,234,.06) 0%, transparent 70%); }
#logiciels::after   { background: radial-gradient(ellipse, rgba(124,58,237,.06) 0%, transparent 70%); animation-delay: -5s; }
#about::after       { background: radial-gradient(ellipse, rgba(16,185,129,.05) 0%, transparent 70%); animation-delay: -9s; }

/* Contenu au-dessus des décos */
#formations .page-inner, #logiciels .page-inner,
#about .page-inner, #temoignages .page-inner,
#contact .page-inner { position: relative; z-index: 1; }

/* ============ RESPONSIVE MOBILE ============ */
@media (max-width: 900px) {
  html, body        { overflow:auto; overflow-x:hidden; height:auto; background: var(--dark); }
  body.flip-mode    { overflow:hidden !important; height:100vh !important; }

  /* Supprimer scroll horizontal */
  *, *::before, *::after { box-sizing: border-box; }
  section, .page-inner, .book-cover, .book-face, .book-flap,
  .cards-grid, .logiciels-grid, .about-grid, .pourquoi-grid {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  /* Sections cachées/visibles via flip */
  .page-section     { position:fixed !important; top:0; left:0; right:0; width:100% !important; height:100% !important; overflow-y:auto; overflow-x:hidden; box-sizing:border-box; }
  .page-inner       { height:auto; min-height:100%; margin-top:0; padding: calc(var(--nh) + 8px) 16px 60px; overflow-x:hidden; justify-content:flex-start; box-sizing:border-box; width:100%; }
  /* Forcer le padding-top sous la navbar pour toutes les sections */
  #formations .page-inner,
  #logiciels .page-inner,
  #about .page-inner,
  #temoignages .page-inner,
  #contact .page-inner { padding-top: calc(var(--nh) + 8px) !important; padding-left: 16px !important; padding-right: 16px !important; }

  /* Séparations visibles entre chaque section */
  section[id]:not(#home) {
    border-top: 2px solid rgba(255,255,255,.08);
    box-shadow: 0 -4px 24px rgba(79,70,229,.08);
  }

  /* Performance mobile : désactiver animations lourdes et backdrop-filter */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .about-blob,
  .hero-shape,
  .orbit1, .orbit2, .orbit3,
  .hero-card-float,
  .cover-stat strong,
  .pill-float-chip {
    animation: none !important;
  }
  #home.cover-animated .cover-title-line--2 {
    animation: fadeInUp .6s cubic-bezier(.22,1,.36,1) .6s both !important;
  }

  /* Blob réactivé sur mobile — version simplifiée sans animation */
  .cover-blob {
    display: block !important;
    animation: none !important;
    border-radius: 50% !important;
    filter: blur(50px) !important;
    opacity: .6 !important;
    width: 240px !important;
    height: 240px !important;
    background: radial-gradient(ellipse at center,
      rgba(102,126,234,.7) 0%,
      rgba(124,58,237,.5) 40%,
      transparent 100%
    ) !important;
  }
  .cover-blob::after { display: none !important; }

  /* Navbar fixe et stable sur mobile */
  .navbar, .navbar.scrolled, .navbar.navbar-dark {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(15,10,46,.97) !important;
    transform: none !important;
    transition: background .3s ease !important;
  }
  .navbar.scrolled {
    background: rgba(255,255,255,.97) !important;
  }

  /* GPU hint sur éléments animés */
  .cover-title-line--1,
  .cover-title-line--2,
  .cover-stats,
  .cover-footer,
  .pill-item {
    will-change: transform, opacity;
  }
  .page-section     { position:fixed !important; top:0; left:0; width:100% !important; height:100% !important; overflow-y:auto; overflow-x:hidden; }
  #home             { overflow-y:auto !important; }
  .book-cover       { grid-template-columns:1fr; height:auto; min-height:calc(100vh - var(--nh)); margin-top:var(--nh); padding-bottom: 32px; }
  .book-spine       { display:none; }
  .book-face        { padding:28px 20px 24px; min-height:auto; }
  .cover-title      { font-size:2.8rem; }
  .book-flap        { padding:20px 16px 32px; border-left:none; border-top:1px solid rgba(255,255,255,.07); height:auto; overflow:visible; }
  .chapter-spine    { display:none; }
  .chapter-spine-right { display:none; }
  #formations .page-inner, #logiciels .page-inner,
  #about .page-inner, #temoignages .page-inner,
  #contact .page-inner { margin-left:0; }
  #contact .page-inner { padding-top: calc(var(--nh) + 48px) !important; padding-bottom: 80px !important; }
  #formations .cards-grid  { grid-template-columns:1fr; }
  #logiciels .logiciels-grid { grid-template-columns:1fr 1fr; }
  #logiciels .custom-dev-banner { flex-direction:column; text-align:center; padding: 20px 16px; }
  #logiciels .custom-dev-content { flex-direction:column; gap:8px; }
  #logiciels .custom-dev-content h3 { display:block; font-size:.95rem; white-space:normal; }
  #logiciels .custom-dev-content p  { display:block; font-size:.85rem; white-space:normal; margin-left:0; line-height:1.5; }
  #logiciels .custom-dev-banner .btn { width:100%; justify-content:center; }
  #about .about-grid { grid-template-columns:1fr; }
  .contact-page-layout { grid-template-columns:1fr; }
  .tarifs-compact { flex-direction:row; }
  .pourquoi-grid  { grid-template-columns:1fr 1fr; }
}

@media (max-width: 600px) {
  #logiciels .logiciels-grid { grid-template-columns:1fr; }
  .tarifs-compact { flex-direction:column; }
  .cover-title { font-size:2.2rem; }
  .cover-ctas { flex-direction:column; width:100%; }
  .btn-cover-primary, .btn-cover-ghost { justify-content:center; width:100%; }
  .pourquoi-grid  { grid-template-columns:1fr; }
}

/* Pause animations hero pendant le flip pour fluidité */
#home.flip-pause-anim .illus-orbit,
#home.flip-pause-anim .hero-card-float,
#home.flip-pause-anim .about-blob,
#home.flip-pause-anim .hero-shape {
  animation-play-state: paused !important;
}

/* will-change nettoyé */

/* Désactiver will-change sur les pages au repos pour libérer le GPU */
.page-section.page-active,
.page-section.page-hidden {
  will-change: auto;
}

/* ===========================
   HERO MODULES GRID
=========================== */
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   HERO MODULES GRID — redesign premium
=========================== */
.hero-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);
  width: 100%;
  max-width: clamp(320px, 40vw, 500px);
}

.hero-module-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: clamp(18px, 2vh, 26px) clamp(16px, 1.8vw, 22px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 32px rgba(79, 70, 229, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: default;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}

/* Fond teinté subtil via la couleur de la carte */
.hero-module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--mc) 5%, transparent) 0%,
    transparent 60%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

/* Cercle décoratif en arrière-plan */
.hero-module-card::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--mc) 18%, transparent), transparent 70%);
  bottom: -30px;
  right: -20px;
  z-index: 0;
  transition: transform .4s ease;
}

.hero-module-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 48px color-mix(in srgb, var(--mc) 22%, rgba(0,0,0,0.1)),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-module-card:hover::before {
  transform: scale(1.4);
}

/* Numéro décoratif — stylé et discret */
.hero-module-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--mc), var(--ms));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -.03em;
  z-index: 2;
  user-select: none;
  opacity: 0.7;
}

/* Icône — cercle gradient premium */
.hero-module-icon {
  width: clamp(44px, 4.5vw, 54px);
  height: clamp(44px, 4.5vw, 54px);
  background: linear-gradient(135deg, var(--mc), var(--ms));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  color: #fff;
  margin-bottom: clamp(10px, 1.2vh, 14px);
  position: relative;
  z-index: 1;
  box-shadow:
    0 6px 18px color-mix(in srgb, var(--mc) 45%, transparent),
    0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}

.hero-module-card:hover .hero-module-icon {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--mc) 55%, transparent);
}

.hero-module-card h4 {
  font-size: clamp(.8rem, .98vw, 1rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.hero-module-card p {
  font-size: clamp(.64rem, .78vw, .76rem);
  color: var(--gray);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Badge "Sur mesure" — pill élégant */
.hero-module-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  background: linear-gradient(135deg, var(--mc), var(--ms));
  color: #fff;
  font-size: clamp(.54rem, .62vw, .62rem);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .07em;
  z-index: 3;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--mc) 40%, transparent);
}

/* Carte featured — légèrement surélevée */
.hero-module-featured {
  border-color: color-mix(in srgb, #4facfe 30%, rgba(255,255,255,0.9));
  box-shadow:
    0 12px 40px rgba(79, 172, 254, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Apparition en cascade au chargement */
.hero-module-card:nth-child(1) { animation: moduleIn .6s .08s cubic-bezier(.34,1.56,.64,1) both; }
.hero-module-card:nth-child(2) { animation: moduleIn .6s .18s cubic-bezier(.34,1.56,.64,1) both; }
.hero-module-card:nth-child(3) { animation: moduleIn .6s .28s cubic-bezier(.34,1.56,.64,1) both; }
.hero-module-card:nth-child(4) { animation: moduleIn .6s .38s cubic-bezier(.34,1.56,.64,1) both; }

@keyframes moduleIn {
  from { opacity: 0; transform: translateY(24px) scale(.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}


/* ===========================
   HERO PILLS SCENE
=========================== */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* La scene s'auto-dimensionne sur son contenu,
   les chips déco sont en absolute et ne poussent rien */
.pills-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.1vh, 14px);
  width: 100%;
  max-width: 380px;
  /* padding pour faire de la place aux chips absolus */
  padding: clamp(32px,4vh,48px) 0;
}

/* Ligne décorative verticale */
.pills-line {
  position: absolute;
  left: clamp(18px, 2.2vw, 26px);
  top: clamp(32px,4vh,48px);
  bottom: clamp(32px,4vh,48px);
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(79,70,229,.2), transparent);
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}

/* Pill individuel */
.pill-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 16px;
  padding: clamp(9px, 1.1vh, 14px) clamp(14px, 1.6vw, 20px);
  box-shadow: 0 4px 20px rgba(79,70,229,.08), 0 1px 4px rgba(0,0,0,.04);
  backdrop-filter: blur(12px);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
  z-index: 1;
  cursor: default;
}
.pill-item:hover {
  transform: translateX(6px) translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,70,229,.14), 0 2px 8px rgba(0,0,0,.06);
  background: rgba(255,255,255,.95);
}

/* Entrée décalée en cascade */
.pill-item--1 { animation: pillSlideIn .5s ease .05s both; }
.pill-item--2 { animation: pillSlideIn .5s ease .15s both; }
.pill-item--3 { animation: pillSlideIn .5s ease .25s both; }
.pill-item--4 { animation: pillSlideIn .5s ease .35s both; }

@keyframes pillSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Icône */
.pill-icon-wrap { position: relative; flex-shrink: 0; }
.pill-icon {
  width: clamp(34px, 3.4vw, 44px);
  height: clamp(34px, 3.4vw, 44px);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pc, #667eea), var(--ps, #764ba2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(.85rem, 1.05vw, 1.1rem);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  position: relative;
  z-index: 1;
}
.pill-icon-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--pc, #667eea), var(--ps, #764ba2));
  border-radius: 14px;
  opacity: .18;
  filter: blur(8px);
  z-index: 0;
}

/* Corps texte */
.pill-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pill-num {
  font-size: clamp(.55rem, .68vw, .68rem);
  font-weight: 800;
  color: var(--pc, var(--primary));
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.pill-name {
  display: block;
  font-size: clamp(.8rem, .95vw, .98rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill-tags {
  font-size: clamp(.6rem, .72vw, .72rem);
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flèche droite */
.pill-arrow {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: rgba(79,70,229,.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .75rem;
  transition: background .2s, color .2s;
}
.pill-item:hover .pill-arrow {
  background: linear-gradient(135deg, var(--pc, #667eea), var(--ps, #764ba2));
  color: #fff;
}

/* Badge pill-4 */
.pill-badge {
  position: absolute;
  top: -10px; right: 16px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(79,205,254,.35);
  white-space: nowrap;
}
.pill-item--featured {
  border: 1.5px solid rgba(79,205,254,.35);
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 28px rgba(79,205,254,.12), 0 2px 8px rgba(0,0,0,.06);
}
.pill-item--featured .pill-arrow { display: none; }

/* Pause flip */
.flip-pause-anim .pill-item { animation-play-state: paused; }
.flip-pause-anim .cover-blob,
.flip-pause-anim .cover-blob::after { animation-play-state: paused; }

/* ===========================
   BLOB MORPHING — FACE COUVERTURE
=========================== */
.cover-blob {
  position: absolute;
  width: min(clamp(280px, 45vw, 480px), 80%);
  height: min(clamp(280px, 45vw, 480px), 80%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  max-height: calc(100% - 80px);
  max-width: calc(100% - 40px);
  background: radial-gradient(ellipse at 40% 40%,
    rgba(102, 126, 234, 0.45) 0%,
    rgba(124, 58, 237, 0.30) 35%,
    rgba(167, 139, 250, 0.15) 65%,
    transparent 100%
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphBlob 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}
.cover-blob::after {
  content: '';
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(ellipse at 60% 60%,
    rgba(167, 139, 250, 0.35) 0%,
    rgba(79, 70, 229, 0.20) 50%,
    transparent 100%
  );
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  animation: morphBlob 11s ease-in-out infinite reverse;
}

/* S'assurer que le contenu reste au-dessus du blob */
.cover-header,
.cover-body > *:not(.cover-blob),
.cover-stats,
.cover-footer { position: relative; z-index: 1; }

/* ===========================
   CHIPS FLOTTANTS ABSOLUS
   (ne poussent pas le layout)
=========================== */
.pill-float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 50px;
  padding: clamp(5px,.6vh,8px) clamp(10px,1.2vw,14px);
  box-shadow: 0 3px 16px rgba(79,70,229,.09);
  backdrop-filter: blur(12px);
  font-size: clamp(.62rem,.74vw,.74rem);
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  z-index: 4;
}

/* Haut */
.pill-float-chip--tl {
  top: 0;
  left: 0;
  animation: pillSlideIn .5s ease .0s both;
}
.pill-float-chip--tl .pfc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,.06); }
}
.pill-float-chip--tl span strong { color: #059669; }

/* Bas */
.pill-float-chip--br {
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 14px;
  animation: pillSlideIn .5s ease .42s both;
  gap: 10px;
}

.pfc-avatars {
  display: flex;
  align-items: center;
}
.pfc-avatars span {
  width: clamp(20px,2vw,26px);
  height: clamp(20px,2vw,26px);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  font-weight: 700;
  color: #fff;
  margin-left: -5px;
  flex-shrink: 0;
}
.pfc-avatars span:first-child { margin-left: 0; }

.pfc-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.pfc-stars {
  color: #f59e0b;
  font-size: .65rem;
  letter-spacing: 1px;
  line-height: 1;
}
.pfc-label {
  font-size: clamp(.58rem,.68vw,.68rem);
  color: var(--gray);
  font-weight: 500;
}

/* ===========================
   ANIMATIONS ENTRÉE — COUVERTURE
=========================== */

/* Keyframes */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 20px rgba(79,172,254,.3), 0 4px 40px rgba(79,70,229,.3); }
  50%     { text-shadow: 0 0 40px rgba(79,172,254,.7), 0 4px 60px rgba(79,70,229,.5); }
}
@keyframes rulerGrow {
  from { width: 0; opacity: 0; }
  to   { opacity: 1; }
}

/* --- Éléments de la face centrale --- */
/* État initial : invisible */
.cover-header,
.cover-edition,
.cover-title-line--1,
.cover-title-amp,
.cover-title-line--2,
.cover-rule,
.cover-subtitle,
.cover-stats,
.cover-footer,
.flap-label,
.flap-promise,
.flap-trust,
.book-spine {
  opacity: 0;
}

/* Quand la classe cover-animated est ajoutée par JS */
#home.cover-animated .cover-header   { animation: fadeInDown .7s ease .1s  both; }
#home.cover-animated .cover-edition  { animation: scaleIn   .5s ease .25s both; }
#home.cover-animated .cover-title-line--1 { animation: fadeInDown .6s cubic-bezier(.22,1,.36,1) .35s both; }
#home.cover-animated .cover-title-amp     { animation: scaleIn   .4s ease .5s  both; }
#home.cover-animated .cover-title-line--2 {
  animation: fadeInUp .6s cubic-bezier(.22,1,.36,1) .6s both,
             glowPulse 3s ease-in-out 1.4s infinite;
}
#home.cover-animated .cover-rule     { animation: rulerGrow .6s ease .75s both; }
#home.cover-animated .cover-subtitle { animation: fadeInUp  .6s ease .85s both; }
#home.cover-animated .cover-stats    { animation: fadeInUp  .6s ease 1s   both; }
#home.cover-animated .cover-footer   { animation: fadeInUp  .5s ease 1.1s both; }

/* Rabat droit */
#home.cover-animated .flap-label    { animation: fadeInDown .6s ease .4s  both; }
#home.cover-animated .flap-promise  { animation: fadeInUp   .6s ease 1.1s both; }
#home.cover-animated .flap-trust    { animation: fadeInUp   .5s ease 1.25s both; }

/* Spine */
#home.cover-animated .book-spine    { animation: fadeInLeft .7s ease .2s  both; }

/* --- Flottement doux des stats --- */
.cover-stat strong {
  display: inline-block;
  animation: floatY 4s ease-in-out infinite;
}
.cover-stat:nth-child(1) strong { animation-delay: 0s; }
.cover-stat:nth-child(3) strong { animation-delay: .8s; }
.cover-stat:nth-child(5) strong { animation-delay: 1.6s; }

/* --- Rabat droit : entrée décalée --- */
.flap-label {
  animation: fadeInDown .6s ease both;
  animation-delay: .4s;
}
.pill-item--1 { animation-delay: .5s !important; }
.pill-item--2 { animation-delay: .65s !important; }
.pill-item--3 { animation-delay: .8s !important; }
.pill-item--4 { animation-delay: .95s !important; }

.flap-promise {
  animation: fadeInUp .6s ease both;
  animation-delay: 1.1s;
}
.flap-trust {
  animation: fadeInUp .5s ease both;
  animation-delay: 1.25s;
}

/* --- Spine --- */
.book-spine {
  animation: fadeInLeft .7s ease both;
  animation-delay: .2s;
}
