/* ==========================================================================
   HAPAX - FEUILLE DE STYLE PRINCIPALE
   Direction Artistique : Fond crème #FBF6EA, Bleu Nuit #1E1B3A, Sarcelle #1F7A8C,
   Or #F2B33D, boutons néo-brutalistes 3D, typographie élégante et lisible.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Fraunces:ital,opsz,wght@0,9..144,600;1,9..144,500;1,9..144,700&display=swap');

:root {
  /* Palette officielle de l'application */
  --bg-cream: #FBF6EA;
  --bg-cream-card: #FFFFFF;
  --bg-cream-subtle: #F4EEDC;
  --dark-blue: #1E1B3A;
  --dark-blue-light: #2C2852;
  --primary-teal: #1F7A8C;
  --primary-teal-shadow: #185E6B;
  --primary-teal-tint: rgba(31, 122, 140, 0.12);
  --accent-yellow: #F2B33D;
  --accent-yellow-shadow: #C98D20;
  --accent-yellow-tint: rgba(242, 179, 61, 0.18);
  --accent-orange: #FF7A00;
  --accent-orange-shadow: #D96500;
  --accent-purple: #8B5CF6;
  --accent-purple-shadow: #6D28D9;
  --accent-ruby: #BE123C;
  --accent-green: #10B981;
  --accent-green-shadow: #059669;

  /* Niveaux grisés */
  --locked-grey: #8C8C8C;
  --locked-grey-shadow: #6E6E6E;

  /* Typographie & Couleurs de texte */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --text-main: #1E1B3A;
  --text-muted: #5B5872;
  --text-light: #8A879E;

  /* Bordures et Ombres 3D Figma */
  --border-dark: #1E1B3A;
  --border-subtle: rgba(30, 27, 58, 0.12);
  --border-card: rgba(30, 27, 58, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Ombres 3D physiques */
  --shadow-3d-teal: 0 5px 0 var(--primary-teal-shadow);
  --shadow-3d-yellow: 0 5px 0 var(--accent-yellow-shadow);
  --shadow-3d-white: 0 4px 0 rgba(30, 27, 58, 0.12);
  --shadow-3d-dark: 0 5px 0 #120F24;
  --shadow-soft: 0 8px 30px rgba(30, 27, 58, 0.06);

  --container-max: 1200px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Réinitialisation de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Texture subtile de fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(30, 27, 58, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Conteneur standard */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   EN-TÊTE & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 246, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-subtle);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  padding: 6px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 3px 0 rgba(30, 27, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--dark-blue);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 6px 9px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-blue);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(30, 27, 58, 0.06);
  color: var(--primary-teal);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--primary-teal);
}

.nav-links a.nav-highlight {
  color: var(--primary-teal);
  background-color: var(--primary-teal-tint);
}

.nav-links a.nav-privacy-pill {
  color: var(--primary-teal);
  background-color: rgba(31, 122, 140, 0.08);
  border: 1px solid rgba(31, 122, 140, 0.22);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-weight: 800;
}

.nav-links a.nav-privacy-pill:hover {
  background-color: rgba(31, 122, 140, 0.16);
  border-color: var(--primary-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Bouton bascule audio */
.audio-toggle-btn {
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-3d-white);
  transition: var(--transition);
}

.audio-toggle-btn:hover {
  background-color: #FAFAFA;
}

.audio-toggle-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(30, 27, 58, 0.12);
}

/* Bouton burger mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark-blue);
  padding: 8px;
}

/* ==========================================================================
   BOUTONS & INTERACTION 3D (Style Figma / Duolingo / Néo-Brutalisme)
   ========================================================================== */
.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
  user-select: none;
  position: relative;
  text-align: center;
}

.btn-3d:active {
  transform: translateY(4px);
}

/* Variante primaire Sarcelle (Teal) */
.btn-teal {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  box-shadow: var(--shadow-3d-teal);
}

.btn-teal:hover {
  background-color: #248ca0;
}

.btn-teal:active {
  box-shadow: 0 1px 0 var(--primary-teal-shadow);
}

/* Variante accent Or (Yellow) */
.btn-yellow {
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
  box-shadow: var(--shadow-3d-yellow);
}

.btn-yellow:hover {
  background-color: #f7bc4d;
}

.btn-yellow:active {
  box-shadow: 0 1px 0 var(--accent-yellow-shadow);
}

/* Variante blanche / contour */
.btn-white {
  background-color: #FFFFFF;
  color: var(--dark-blue);
  border: 2px solid rgba(30, 27, 58, 0.15);
  box-shadow: var(--shadow-3d-white);
}

.btn-white:hover {
  background-color: #F8F8F8;
  border-color: rgba(30, 27, 58, 0.25);
}

.btn-white:active {
  box-shadow: 0 1px 0 rgba(30, 27, 58, 0.12);
}

/* Variante sombre */
.btn-dark {
  background-color: var(--dark-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-3d-dark);
}

.btn-dark:hover {
  background-color: var(--dark-blue-light);
}

.btn-dark:active {
  box-shadow: 0 1px 0 #120F24;
}

/* Boutons de téléchargement pour Stores */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background-color: var(--dark-blue);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3d-dark);
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  min-width: 190px;
}

.store-btn:hover {
  background-color: #28244E;
}

.store-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #120F24;
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
  font-weight: 700;
}

.store-btn-main {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
}

/* Bouton APK direct */
.store-btn-apk {
  background-color: #FFFFFF;
  color: var(--dark-blue);
  border: 2px solid rgba(30, 27, 58, 0.18);
  box-shadow: var(--shadow-3d-white);
}

.store-btn-apk:hover {
  background-color: #F8F8F8;
  border-color: var(--dark-blue);
}

.store-btn-apk:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(30, 27, 58, 0.12);
}

.store-btn-apk .store-btn-sub {
  color: var(--text-muted);
}

/* ==========================================================================
   BADGES & PILULES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-teal {
  background-color: var(--primary-teal-tint);
  color: var(--primary-teal);
}

.badge-yellow {
  background-color: var(--accent-yellow-tint);
  color: #B45309;
}

.badge-purple {
  background-color: #F5F3FF;
  color: #6D28D9;
}

/* ==========================================================================
   SECTION HÉROS (HERO)
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--dark-blue);
}

.hero-title .highlight-teal {
  color: var(--primary-teal);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-teal::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 8px;
  background-color: var(--accent-yellow);
  opacity: 0.45;
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.store-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.apk-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.apk-notice svg {
  color: var(--primary-teal);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border-subtle);
  margin-top: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark-blue);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   SMARTPHONE MOCKUP & DÉMO INTERACTIVE
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
}

/* Cadre du smartphone */
.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 18.8;
  background: #1E1B3A;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(30, 27, 58, 0.35),
              0 0 0 4px #2F2A56;
  position: relative;
  overflow: hidden;
}

/* Encoche / Dynamic Island */
.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background-color: #120F24;
  border-radius: 14px;
  z-index: 20;
}

/* Écran intérieur */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-cream);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.3s ease;
}

/* Badges flottants autour du smartphone */
.floating-card {
  position: absolute;
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(30, 27, 58, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 30;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-card-1 {
  top: 12%;
  left: -40px;
}

.floating-card-2 {
  bottom: 18%;
  right: -30px;
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-text-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark-blue);
}

.floating-text-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION COMMUNE (SECTIONS, TITRES, CARTES)
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-cream {
  background-color: var(--bg-cream);
}

.section-white {
  background-color: #FFFFFF;
  border-top: 2px solid var(--border-subtle);
  border-bottom: 2px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 900;
  color: var(--dark-blue);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   DÉMO INTERACTIVE SECTION (TESTEZ HAPAX EN DIRECT)
   ========================================================================== */
.interactive-demo-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 2.5px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(30, 27, 58, 0.08);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.demo-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.demo-step-badge {
  background: var(--primary-teal-tint);
  color: var(--primary-teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.demo-sentence-box {
  background-color: var(--bg-cream);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.5;
  margin-bottom: 28px;
  position: relative;
}

.blank-placeholder {
  display: inline-block;
  background-color: var(--accent-yellow-tint);
  color: var(--dark-blue);
  padding: 2px 14px;
  border-radius: 8px;
  border-bottom: 3px solid var(--accent-yellow);
  font-weight: 900;
}

.demo-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.demo-option-btn {
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-blue);
  cursor: pointer;
  box-shadow: var(--shadow-3d-white);
  transition: var(--transition);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-option-btn:hover {
  border-color: var(--primary-teal);
  background-color: #FAFAFA;
}

.demo-option-btn.selected {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-3d-teal);
}

.demo-option-btn.correct {
  background-color: var(--accent-green) !important;
  color: #FFFFFF !important;
  border-color: var(--accent-green) !important;
  box-shadow: 0 4px 0 var(--accent-green-shadow) !important;
}

.demo-option-btn.wrong {
  background-color: var(--accent-ruby) !important;
  color: #FFFFFF !important;
  border-color: var(--accent-ruby) !important;
  box-shadow: 0 4px 0 #881337 !important;
}

.demo-feedback-box {
  display: none;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.demo-feedback-box.show {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-feedback-box.correct {
  background-color: #ECFDF5;
  border: 2px solid #10B981;
}

.demo-feedback-box.wrong {
  background-color: #FFF1F2;
  border: 2px solid #BE123C;
}

.demo-feedback-title {
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-feedback-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.demo-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

/* ==========================================================================
   SÉLECTEUR DE CAPTURES D'ÉCRAN (ONGLETS DÉMO)
   ========================================================================== */
.showcase-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.screen-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-tab-item {
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-3d-white);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
}

.screen-tab-item:hover {
  border-color: rgba(30, 27, 58, 0.25);
}

.screen-tab-item.active {
  border-color: var(--primary-teal);
  background-color: #FFFFFF;
  box-shadow: 0 6px 0 var(--primary-teal-shadow);
  transform: translateY(-2px);
}

.screen-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1.5px solid var(--border-subtle);
}

.screen-tab-item.active .screen-tab-icon {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  border-color: var(--primary-teal);
}

.screen-tab-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 4px;
}

.screen-tab-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   GRILLE DES PARCOURS & FONCTIONNALITÉS
   ========================================================================== */
.parcours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.parcours-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-subtle);
  padding: 28px;
  box-shadow: var(--shadow-3d-white);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.parcours-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 rgba(30, 27, 58, 0.12);
}

.parcours-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.parcours-number {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.parcours-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.parcours-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.parcours-examples {
  background: var(--bg-cream);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--dark-blue);
  border: 1px solid var(--border-subtle);
}

.parcours-examples strong {
  color: var(--primary-teal);
}

/* Piliers de l'application */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-subtle);
  padding: 32px 28px;
  box-shadow: var(--shadow-3d-white);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-box-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-teal-tint);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1.5px solid var(--primary-teal);
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-blue);
}

.feature-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE SOUTENIR LE PROJET (soutenir.html)
   ========================================================================== */
.support-hero-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-subtle);
  padding: 48px;
  box-shadow: var(--shadow-3d-white);
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.support-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.support-tier-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-subtle);
  padding: 32px 28px;
  box-shadow: var(--shadow-3d-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.support-tier-card.featured {
  border-color: var(--primary-teal);
  box-shadow: 0 8px 0 var(--primary-teal-shadow);
  transform: translateY(-4px);
}

.tier-featured-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--dark-blue);
}

.tier-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-blue);
  margin: 16px 0 6px 0;
}

.tier-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tier-benefits {
  list-style: none;
  margin: 24px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.tier-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
}

.tier-benefits li svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   PAGE AMÉLIORATIONS & BOÎTE À IDÉES (ameliorations.html)
   ========================================================================== */
.feedback-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
}

.form-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-subtle);
  padding: 36px;
  box-shadow: var(--shadow-3d-white);
}

.form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-blue);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-cream);
  color: var(--dark-blue);
  font-weight: 600;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-teal);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.suggestions-list-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-subtle);
  padding: 32px;
  box-shadow: var(--shadow-3d-white);
}

.suggestion-item {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.suggestion-item:hover {
  border-color: rgba(30, 27, 58, 0.25);
  background-color: #FAFAFA;
}

.suggestion-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 4px;
}

.suggestion-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vote-btn {
  background: var(--bg-cream);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 800;
  color: var(--dark-blue);
}

.vote-btn:hover {
  background: var(--primary-teal-tint);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.vote-btn.voted {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #FFFFFF;
}

/* ==========================================================================
   CONTACT MODAL & BANNIÈRE EMAIL
   ========================================================================== */
.contact-banner {
  background: var(--dark-blue);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 20px 40px rgba(30, 27, 58, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.contact-banner::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(242, 179, 61, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-email-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-weight: 700;
}

.btn-copy-email {
  background: var(--accent-yellow);
  color: var(--dark-blue);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--accent-yellow-shadow);
  transition: var(--transition);
}

.btn-copy-email:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-yellow-shadow);
}

/* ==========================================================================
   FAQ ACCORDÉON
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3d-white);
  transition: var(--transition);
}

.faq-question {
  padding: 22px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   PIED DE PAGE (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: #FFFFFF;
  border-top: 2px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-teal);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1.5px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* Notification Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--dark-blue);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETTES & MOBILES)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .store-buttons-row {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }

  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .support-tiers-grid {
    grid-template-columns: 1fr;
  }

  .feedback-container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .contact-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Badge de confiance & Lien direct vers la politique de confidentialité */
.hero-trust-bar {
  margin-top: 14px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(31, 122, 140, 0.25);
  border-radius: var(--radius-full);
  color: var(--dark-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(30, 27, 58, 0.04);
  transition: var(--transition);
}

.trust-badge:hover {
  border-color: var(--primary-teal);
  background: #F4FAFA;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(31, 122, 140, 0.15);
}

.trust-badge strong {
  color: var(--primary-teal);
}

.trust-link-text {
  color: var(--primary-teal);
  text-decoration: underline;
  font-weight: 700;
  margin-left: 4px;
}

.footer-bottom-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom-legal a {
  color: var(--primary-teal);
  text-decoration: underline;
  font-weight: 700;
}

@media (max-width: 1160px) {
  .site-header .container {
    height: 70px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-cream);
    flex-direction: column;
    padding: 24px;
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: 0 12px 30px rgba(30, 27, 58, 0.12);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.05rem;
    white-space: normal;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .demo-options-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-teal {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
