/* =========================================================
   POSTURAIA — DEEP-OCEAN UNIFIED STYLESHEET
   - Glassmorphism uniforme
   - Responsive mobile corrigé
   - Animations reveal
   ========================================================= */

:root {
  --bg: #071021;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --primary: #20E3B2;
  --primary-2: #2EE59D;
  --success: #20E3B2;
  --warning: #FFD166;
  --danger: #FF4D6D;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 170ms;
  --t-med: 320ms;
  --t-slow: 720ms;
  --grad: radial-gradient(900px 420px at 15% 0%, rgba(32, 227, 178, 0.16), transparent 62%),
    radial-gradient(800px 360px at 85% 10%, rgba(46, 229, 157, 0.12), transparent 55%);
}

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

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--grad);
  opacity: 1;
  z-index: 0;
}

main,
header,
footer,
section {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  letter-spacing: 0.01em;
  font-weight: 700;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  margin-bottom: 20px;
}

/* ========= GLASSMORPHISM UNIFORME ========= */
.value-card,
.step,
.agent-card,
.trust-card,
.course-card,
.feature-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========= LOADER ========= */
#app-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s var(--ease);
}

#app-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 70px;
  height: 70px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========= THEME LIGHT (JOUR) ========= */
body.theme-light {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-2: rgba(255, 255, 255, 0.9);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1e293b;
  --muted: #64748b;
  --grad: radial-gradient(900px 420px at 15% 0%, rgba(32, 227, 178, 0.08), transparent 62%);
}

body.theme-light .navbar {
  background: rgba(248, 250, 252, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.theme-light .btn-nav-auth {
  background: rgba(32, 227, 178, 0.1);
  color: #0f766e;
  border-color: #14b8a6;
}

body.theme-light .nav-links a {
  color: #334155;
}

body.theme-light .nav-links a:hover {
  color: var(--primary);
}

/* ========= NAVBAR ========= */
.navbar {
  background: rgba(7, 16, 33, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--t-med) var(--ease);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-nav-theme {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--t-fast) var(--ease);
}

.btn-nav-theme:hover {
  background: var(--surface-2);
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle-bar {
  width: 25px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-more {
  position: relative;
}

.nav-more-btn {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow);
  margin-top: 10px;
}

.nav-dropdown.is-open {
  display: flex;
}

.nav-dropdown a {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}

.nav-dropdown a:hover {
  background: var(--surface);
  color: var(--primary);
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.is-open {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-more-btn {
    display: none;
  }
  
  .nav-dropdown {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    padding-left: 20px;
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  gap: 16px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-head);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 45px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  opacity: 0.9;
  transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--primary);
  opacity: 1;
}

/* ========= BOUTON CONNEXION ========= */
.btn-nav-auth {
  background: linear-gradient(180deg, rgba(32, 227, 178, 0.18), rgba(46, 229, 157, 0.12));
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--t-fast) var(--ease);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(32, 227, 178, 0.2);
  white-space: nowrap;
}

.btn-nav-auth:hover {
  background: linear-gradient(180deg, rgba(32, 227, 178, 0.25), rgba(46, 229, 157, 0.18));
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(32, 227, 178, 0.35);
  transform: translateY(-2px);
}

.btn-nav-auth:active {
  transform: translateY(0);
}

.language-selector {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 700;
}

/* ========= HERO ========= */
.hero {
  padding: 120px 40px 140px;
  position: relative;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(32, 227, 178, 0.12);
  border: 1px solid rgba(32, 227, 178, 0.25);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
  letter-spacing: -3px;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 45px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* HERO PHOTO CARD */
.hero-photo-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  background: linear-gradient(135deg, rgba(32, 227, 178, 0.1), rgba(46, 229, 157, 0.1));
}

/* ========= BUTTONS ========= */
.btn-primary {
  background: linear-gradient(135deg, rgba(32, 227, 178, 0.92), rgba(46, 229, 157, 0.92));
  color: #04120E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 18px 45px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(32, 227, 178, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 18px 45px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast) var(--ease);
}

.btn-secondary:hover {
  background: rgba(32, 227, 178, 0.1);
  transform: translateY(-2px);
}

/* ========= AGENTS ========= */
.agents-section {
  padding: 100px 40px;
  position: relative;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}

.agent-card {
  padding: 0;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease);
  position: relative;
  opacity: 0;
  transform: translateY(16px);
}

.agent-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.agent-card.featured {
  border: 2px solid rgba(32, 227, 178, 0.4) !important;
}

.featured-glow {
  box-shadow: 0 0 40px rgba(32, 227, 178, 0.35), var(--shadow-soft) !important;
}

.agent-media {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.agent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.agent-body {
  padding: 40px 45px 50px;
  position: relative;
}

.agent-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -26px;
  left: 40px;
  font-size: 40px;
  box-shadow: 0 8px 20px rgba(32, 227, 178, 0.25);
}

.agent-name {
  font-size: 28px;
  font-weight: 800;
  margin: 18px 0 15px;
}

.agent-features {
  list-style: none;
  margin-bottom: 30px;
}

.agent-features li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--muted);
}

.agent-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

/* ========= CUSTOM CONTENT SECTIONS ========= */
.content-section {
  padding: 90px 40px;
  position: relative;
}

.content-intro {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 50px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.content-intro strong {
  color: var(--primary);
  font-weight: 700;
}

.three-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.step {
  padding: 40px;
  text-align: center;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(32, 227, 178, 0.15);
}

.step-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.step-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.step-desc {
  color: var(--muted);
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-bottom: 60px;
}

.feature-card {
  padding: 45px;
  border-radius: var(--radius);
  transition: all var(--t-med) var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(32, 227, 178, 0.2);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(32, 227, 178, 0.1), rgba(46, 229, 157, 0.08));
  border-left: 4px solid var(--primary);
  padding: 30px 40px;
  border-radius: var(--radius-sm);
  margin: 40px 0;
}

.highlight-box p {
  color: var(--muted);
  line-height: 1.8;
}

.two-column-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.two-column-content h3 {
  font-size: 36px;
  margin-bottom: 30px;
  line-height: 1.3;
}

.two-column-content p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.list-check {
  list-style: none;
  margin: 30px 0;
}

.list-check li {
  padding-left: 32px;
  margin-bottom: 16px;
  position: relative;
  color: var(--muted);
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
}

/* ========= AUTH MODAL ========= */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.auth-modal.active {
  display: flex;
  opacity: 1;
}

.auth-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 50px 45px;
  width: 95%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all var(--t-fast) var(--ease);
  padding: 0;
  line-height: 1;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(32, 227, 178, 0.3);
  color: var(--primary);
  transform: rotate(90deg);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.auth-divider-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.btn-social {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--t-fast) var(--ease);
  font-family: var(--font-body);
}

.btn-social:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(32, 227, 178, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-social img {
  width: 20px;
  height: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 25px;
}

.auth-form input {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--t-fast) var(--ease);
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-form input:focus {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.2));
  border-color: rgba(32, 227, 178, 0.3);
  box-shadow: 0 0 0 3px rgba(32, 227, 178, 0.12);
}

.btn-auth-submit {
  background: linear-gradient(135deg, rgba(32, 227, 178, 0.92), rgba(46, 229, 157, 0.92));
  color: #04120E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  transition: all var(--t-fast) var(--ease);
  font-family: var(--font-body);
  width: 100%;
  margin-bottom: 20px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(32, 227, 178, 0.35);
  filter: brightness(1.03);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-toggle {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-toggle a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  transition: opacity var(--t-fast) var(--ease);
  cursor: pointer;
}

.auth-toggle a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .nav-links {
    display: none;
  }

  #mobile-auth-btn {
    display: flex !important;
  }

  .hero-title {
    font-size: 48px;
  }

  .two-column-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 20px 100px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .agents-section {
    padding: 60px 20px;
  }

  .content-section {
    padding: 60px 20px;
  }

  .auth-content {
    padding: 40px 30px;
    width: 100%;
  }

  .section-title {
    font-size: 36px;
  }
}

/* ========= WHATSAPP FLOTTANT ========= */
.whatsapp-btn {
  display: none !important;
}

.whatsapp-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-btn:active {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}

/* ========= FOOTER ========= */
.site-footer {
  background: linear-gradient(180deg, rgba(7, 16, 33, 0.95), rgba(7, 16, 33, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 40px 40px;
  position: relative;
  margin-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-head);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--t-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-desc {
    max-width: 100%;
  }

  .site-footer {
    padding: 60px 20px 30px;
  }
}

/* ========= VIDEO WRAPPER ========= */
.video-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.video-wrapper.hero-video {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========= ACCORDÉONS FAQ ========= */
.accordion {
  margin-bottom: 16px;
}

.accordion-header {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 24px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--t-fast) var(--ease);
}

.accordion-header:hover {
  background: linear-gradient(180deg, var(--surface-2), rgba(255, 255, 255, 0.12));
  border-color: rgba(32, 227, 178, 0.3);
}

.accordion-header.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: rgba(32, 227, 178, 0.4);
}

.accordion-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.accordion-icon {
  color: var(--primary);
  font-size: 24px;
  transition: transform var(--t-fast) var(--ease);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}

.accordion-content.active {
  padding: 30px;
  max-height: 500px;
}

.accordion-content p {
  color: var(--muted);
  line-height: 1.8;
}

/* ========= ALERTE / CADRE DE SÉCURITÉ ========= */
.alert-box {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.12), rgba(255, 77, 109, 0.08));
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 20px 25px;
  margin: 30px 0;
}

.alert-box.warning {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(255, 209, 102, 0.08));
  border-color: rgba(255, 209, 102, 0.3);
  border-left-color: var(--warning);
}

.alert-box.info {
  background: linear-gradient(135deg, rgba(32, 227, 178, 0.12), rgba(32, 227, 178, 0.08));
  border-color: rgba(32, 227, 178, 0.3);
  border-left-color: var(--primary);
}

.alert-box p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ========= SECTIONS DE CONTENU ========= */
.content-block {
  margin-bottom: 60px;
}

.content-block h2 {
  font-size: 36px;
  margin-bottom: 25px;
  line-height: 1.3;
}

.content-block h3 {
  font-size: 26px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.content-block p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-block ul {
  list-style: none;
  margin: 20px 0;
}

.content-block ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.content-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.content-block ul.cross-list li::before {
  content: '❌';
}

/* ========= GRILLES DE CARTES ========= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.info-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 35px;
  transition: all var(--t-med) var(--ease);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(32, 227, 178, 0.15);
  border-color: rgba(32, 227, 178, 0.3);
}

.info-card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.info-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ========= DEUX COLONNES ========= */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 40px 0;
}

@media (max-width: 800px) {
  .two-cols {
    grid-template-columns: 1fr;
  }
}

/* ========= CTA SECTION ========= */
.cta-section {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(180deg, rgba(32, 227, 178, 0.08), rgba(32, 227, 178, 0.02));
  border-radius: var(--radius);
  margin: 60px 0;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========= ACADEMY SIDEBAR ========= */
.academy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  min-height: calc(100vh - 200px);
}

.academy-sidebar {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.academy-sidebar h3 {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--primary);
}

.module-list {
  list-style: none;
}

.module-item {
  margin-bottom: 8px;
}

.module-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t-fast) var(--ease);
}

.module-link:hover {
  background: rgba(32, 227, 178, 0.1);
  border-color: rgba(32, 227, 178, 0.3);
  color: var(--text);
}

.module-link.active {
  background: rgba(32, 227, 178, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.module-link.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.module-link.completed::before {
  content: '✓';
  color: var(--primary);
  font-weight: 900;
}

.academy-main {
  padding: 20px 0;
}

@media (max-width: 900px) {
  .academy-layout {
    grid-template-columns: 1fr;
  }

  .academy-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* ========= QUIZ ========= */
.quiz-container {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
}

.quiz-question {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
}

.quiz-options {
  list-style: none;
}

.quiz-option {
  margin-bottom: 12px;
}

.quiz-option label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.quiz-option label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(32, 227, 178, 0.3);
}

.quiz-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.quiz-option.correct label {
  background: rgba(32, 227, 178, 0.15);
  border-color: var(--primary);
}

.quiz-option.incorrect label {
  background: rgba(255, 77, 109, 0.15);
  border-color: var(--danger);
}

/* ========= PROGRESS BAR ========= */
.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  height: 100%;
  border-radius: 999px;
  transition: width var(--t-med) var(--ease);
}

/* ========= CHAT WHATSAPP STYLE ========= */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(180deg, rgba(30, 40, 60, 0.98), rgba(20, 30, 50, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.active {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, #25d366, #128c7e);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.chat-avatar {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.chat-info h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 3px;
}

.chat-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.chat-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--t-fast);
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
  padding: 20px;
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble.incoming {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  background: #25d366;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-input {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
}

.chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.chat-input input::placeholder {
  color: var(--muted);
}

.chat-input button {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: white;
  font-size: 18px;
  transition: all var(--t-fast);
}

.chat-input button:hover {
  transform: scale(1.05);
}

/* ========= PAGE HERO VARIANTS ========= */
.page-hero {
  padding: 100px 40px 80px;
  text-align: center;
}

.page-hero .hero-badge {
  margin-bottom: 25px;
}

.page-hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .page-hero {
    padding: 80px 20px 60px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p {
    font-size: 17px;
  }
}

/* ============================================
   CORRECTIONS IMAGES & FOOTER - PosturaIA
   ============================================ */

/* ===== IMAGES - Contrainte de taille ===== */
.hero-photo,
.hero-visual img,
.agent-media img,
.info-card img,
img[src*="hero"],
img[src*="pathway"],
img[src*="value"] {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-photo-card {
  max-width: 500px;
  width: 100%;
}

.hero-photo {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.agent-media {
  height: 200px;
  overflow: hidden;
}

.agent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== FOOTER AMÉLIORÉ ===== */
.site-footer {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(7, 16, 33, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

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

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.footer-col h4 {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-brand .logo-text {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.footer-disclaimer {
  background: rgba(255, 200, 50, 0.08);
  border: 1px solid rgba(255, 200, 50, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 15px;
}

.footer-disclaimer p {
  color: rgba(255, 200, 50, 0.9) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== THREE STEP GRID FIX ===== */
.three-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* ===== CROSS LIST ===== */
.cross-list {
  list-style: none;
  padding: 0;
}

.cross-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.cross-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: bold;
}

/* ============================================
   FIX IMAGES TROP GRANDES DANS LES CARTES
   ============================================ */

/* Agent cards - images de taille fixe */
.agent-card {
  overflow: hidden;
}

.agent-media {
  width: 100%;
  height: 180px !important;
  max-height: 180px !important;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.agent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Info cards */
.info-card img {
  max-height: 150px;
  width: 100%;
  object-fit: cover;
}

/* Hero photo dans les pages */
.hero-photo-card {
  max-width: 450px !important;
}

.hero-photo {
  max-height: 350px !important;
  object-fit: cover;
}

/* Video wrapper - taille contrôlée */
.video-wrapper {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Hero video spécifique */
.hero-video {
  max-width: 400px;
}

/* Grille des agents - max 3 colonnes */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .agents-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pour les grilles de 5 cartes (parcours) */
.agents-section:nth-of-type(2) .agents-grid {
  max-width: 1200px;
}

@media (min-width: 1100px) {
  .agents-section:nth-of-type(2) .agents-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Page hero images */
.page-hero img {
  max-width: 450px;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================
   FIX DÉFINITIF : IMAGES CONTRAINTES PAR SECTION
   "La page décide de la taille de la photo"
   ============================================ */

/* ===== HERO SECTION - Hauteur contrôlée ===== */
.hero {
  min-height: auto;
  max-height: 100vh;
  overflow: hidden;
}

.hero-container {
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-visual {
  flex: 1;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img,
.hero-visual video {
  max-height: 60vh !important;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
}

.hero-photo-card {
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-card img {
  max-height: 55vh !important;
  width: auto;
  object-fit: contain;
}

/* ===== VIDEO WRAPPER - Contrainte stricte ===== */
.video-wrapper {
  max-width: 400px !important;
  max-height: 60vh !important;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.video-wrapper video {
  max-height: 60vh !important;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== AGENT CARDS - Images fixes ===== */
.agent-card {
  max-width: 320px;
  margin: 0 auto;
}

.agent-media {
  width: 100%;
  height: 160px !important;
  max-height: 160px !important;
  overflow: hidden;
}

.agent-media img {
  width: 100%;
  height: 100% !important;
  max-height: 160px !important;
  object-fit: cover;
  object-position: center;
}

/* ===== PAGE HERO (pages internes) ===== */
.page-hero {
  max-height: 80vh;
  overflow: hidden;
  padding: 80px 20px 40px;
}

.page-hero .video-wrapper {
  max-height: 50vh !important;
}

.page-hero .video-wrapper video {
  max-height: 45vh !important;
}

/* ===== GRILLES - Tailles uniformes ===== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 25px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 20px;
  justify-content: center;
}

/* ===== INFO CARDS ===== */
.info-card {
  max-width: 300px;
}

.info-card img {
  max-height: 120px !important;
  width: 100%;
  object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    max-height: none;
  }

  .hero-visual {
    max-height: 50vh;
    width: 100%;
  }

  .hero-visual img,
  .hero-visual video {
    max-height: 45vh !important;
  }

  .video-wrapper {
    max-width: 90% !important;
    max-height: 50vh !important;
  }

  .agent-media {
    height: 140px !important;
  }

  .page-hero .video-wrapper {
    max-height: 40vh !important;
  }
}

@media (max-width: 480px) {

  .hero-visual img,
  .hero-visual video {
    max-height: 35vh !important;
  }

  .video-wrapper {
    max-height: 40vh !important;
  }

  .agent-media {
    height: 120px !important;
  }
}

/* =========================================================
   PATCH v4.3.3 — MEDIA HERO SANS COUPURE (GLOBAL)
   Objectif : ne jamais "couper" photo/vidéo et éviter que
   le conteneur cache le média.
   ========================================================= */

/* Ne jamais clipper les zones hero : on contraint le MEDIA, pas la section */
.hero,
.page-hero {
  max-height: none !important;
  overflow: visible !important;
}

.hero-container {
  max-height: none !important;
  align-items: flex-start;
}

/* Conteneur visuel : garde une taille raisonnable sans couper */
.hero-visual {
  max-height: none !important;
}

.hero-visual img,
.hero-visual video {
  width: 100% !important;
  height: auto !important;
  max-height: 70vh !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Wrapper vidéo : pas de hauteur fixe qui clippe */
.video-wrapper {
  max-height: none !important;
}

.video-wrapper video {
  width: 100% !important;
  height: auto !important;
  max-height: 70vh !important;
  object-fit: contain !important;
}

/* Pages internes : mêmes règles */
.page-hero .video-wrapper video,
.page-hero img {
  max-height: 60vh !important;
}

@media (max-width: 768px) {

  .hero-visual img,
  .hero-visual video,
  .video-wrapper video {
    max-height: 55vh !important;
  }
}


/* === LOADER FIX === */
#app-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #071021;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#app-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

#main-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#main-content.loaded {
  opacity: 1;
}