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

:root {
  --navy: #0b1c3d;
  --navy2: #0f2450;
  --smoke: #f5f7fa;
  --gray: #e8ecf2;
  --accent: #2f5bff;
  --gold: #c9a84c;
  --white: #ffffff;
  --text-muted: #6b7a99;
  --shadow-soft: 0 20px 60px rgba(11, 28, 61, 0.12);
  --shadow-card: 0 12px 40px rgba(11, 28, 61, 0.18);
  --primary-color: #1a1a1a;
  --text-gray: #666;
  --radius: 60px;
  --transition: 0.5s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--smoke);
  color: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ══════════════════════════════════════
       MUSIC FLOATING BUTTON
    ══════════════════════════════════════ */
#musicBtn {
  position: fixed;
  bottom: clamp(16px, 4vw, 32px);
  right: clamp(16px, 4vw, 32px);
  z-index: 9000;
  width: clamp(46px, 10vw, 56px);
  height: clamp(46px, 10vw, 56px);
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s;
  animation: mPulse 2.8s ease-in-out infinite;
}
#musicBtn:hover {
  transform: scale(1.12);
}
#musicBtn.playing {
  background: var(--green);
  color: var(--gold);
  animation: none;
}
@keyframes mPulse {
  0%,
  100% {
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow:
      0 6px 48px rgba(212, 175, 55, 0.85),
      0 0 0 10px rgba(212, 175, 55, 0.1);
  }
}

/* ══════════════════════════════════════
         NAV
      ══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5vw;
  background: rgba(245, 247, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 28, 61, 0.06);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 30px rgba(11, 28, 61, 0.1);
}

.nav-logo {
  font-family: "Great Vibes", cursive;
  font-size: 1.6rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-cta a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.nav-btn {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-size: 0.875rem !important;
  transition:
    background 0.2s,
    transform 0.15s;
}
.nav-btn:hover {
  background: var(--accent) !important;
  transform: scale(1.03);
}

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

/* ══════════════════════════════════════
         HERO
      ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 80px;
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #edf0f7 60%, #e8ecf2 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #e8ecfa;
  clip-path: polygon(0 0, 58% 0, 52% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.angelo-hero {
  top: 20px; /* même offset que le padding-top du .hero */
  align-items: flex-start; /* ancre en haut au lieu de flex-end */
  position: absolute;
  bottom: -40px;
  right: 20%;
  width: 48%;
  display: flex;
  justify-content: center;
}
.angelo-hero img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero-left {
  padding: 5rem 3vw 5rem 6vw;
  position: relative;
  z-index: 2;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 91, 255, 0.08);
  border: 1px solid rgba(47, 91, 255, 0.18);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
  color: var(--navy);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}
.hero-title .line-gold {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}
.hero-title .line-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #7b9bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.5s;
}
.hero-sub strong {
  color: var(--navy);
  font-weight: 500;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.88rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(11, 28, 61, 0.25);
}
.btn-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), #1a3fd4);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.btn-main:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px rgba(47, 91, 255, 0.45);
}
.btn-main:hover::after {
  opacity: 1;
}
.btn-main span {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.2s,
    gap 0.2s;
}
.btn-ghost:hover {
  color: var(--navy);
  gap: 10px;
}
.btn-ghost::after {
  content: "→";
}

.stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
  padding-top: 2rem;
  border-top: 1px solid rgba(11, 28, 61, 0.08);
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-num {
  font-family: "Great Vibes", cursive;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-right {
  position: relative;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.dots-pattern {
  position: absolute;
  top: 60px;
  right: -20px;
  width: 180px;
  height: 160px;
  background-image: radial-gradient(
    circle,
    rgba(47, 91, 255, 0.3) 1.5px,
    transparent 1.5px
  );
  background-size: 16px 16px;
  border-radius: 8px;
  z-index: 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}
.dots-pattern-2 {
  position: absolute;
  bottom: 80px;
  left: -10px;
  width: 120px;
  height: 100px;
  background-image: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.35) 1.5px,
    transparent 1.5px
  );
  background-size: 14px 14px;
  z-index: 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}

/* Floating card */
.float-card {
  position: absolute;
  bottom: 50px;
  left: -20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  opacity: 0;
  animation:
    cardPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.3s,
    floatY 4s ease-in-out infinite 2.2s;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff3d0, #ffe5a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.card-text {
  flex: 1;
  min-width: 0;
}
.card-name {
  font-family: "Great Vibes", cursive;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  white-space: nowrap;
}
.card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}
.card-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  animation: pulse-ring 2s ease-in-out infinite 2.5s;
}
.card-badge svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.float-badge-top {
  position: absolute;
  top: 40px;
  right: -1px;
  z-index: 10;
  background: var(--navy);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(11, 28, 61, 0.35);
  opacity: 0;
  animation:
    cardPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.6s,
    floatY2 5s ease-in-out infinite 2.8s;
}
.badge-top-icon {
  font-size: 18px;
}
.badge-top-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.badge-top-val {
  font-family: "Great Vibes", cursive;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.badge-top-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.8s;
  z-index: 5;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 1.8s ease-in-out infinite 2s;
}
.scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ══════════════════════════════════════
         SECTION ABOUT
      ══════════════════════════════════════ */
.section-about {
  padding: 100px 5vw;
  background: var(--white);
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-img-container {
  position: relative;
}
.about-img-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-radius: 2%;
}
.about-img-frame img {
  width: 100%;
  display: block;
}
.badge-dev {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 20px rgba(201, 168, 76, 0.3);
}

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}
.about-content h2 span {
  color: var(--accent);
}
.title-underline {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 35px;
  border-radius: 2px;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

.feature-box {
  background: var(--smoke);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid transparent;
}
.feature-box:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(47, 91, 255, 0.1);
}
.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}
.feature-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Skills cards row in about */
.skills-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.skill-chip:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
         SECTION QUALITIES — PARALLAX
   ══════════════════════════════════════ */
.qualites-wrapper {
  position: relative;
  /* hauteur totale = scène fixe + espace pour faire défiler les cartes */
  height: 320vh;
}

/* ══════════════════════════════════════
       SCÈNE STICKY — reste fixe au scroll
    ══════════════════════════════════════ */
.qualites-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background-image: url("images/qualites-background.png"); /* <--- TON IMAGE ICI */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* Prend toute la largeur de la section */
}

/* ─── Motif grain + pattern ─────────── */
.qualites-scene::before {
  opacity: 0.5; /* Plus subtil */
}
/* Dégradé d'accentuation gauche */
.qualites-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 60% at 0% 50%,
      rgba(47, 91, 255, 0.055) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 50% at 100% 100%,
      rgba(201, 168, 76, 0.06) 0%,
      transparent 70%
    );
  z-index: 0;
  pointer-events: none;
}

/* ─── Background layer (bougera lentement) */
.scene-bg-layer {
  position: absolute;
  inset: -10%;
  z-index: 0;
  will-change: transform;
}

/* ══════════════════════════════════════
       CÔTÉ GAUCHE — texte fixe
    ══════════════════════════════════════ */
.qualites-left {
  position: relative;
  z-index: 2;
  /* Espacement propre à gauche, réduit par rapport à avant */
  padding: 5rem 2rem 5rem 6rem;
  width: 50%; /* Occupe la moitié gauche */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  will-change: transform;
}

/* Badge */
.q-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 91, 255, 0.08);
  border: 1px solid rgba(47, 91, 255, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.42rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease forwards 0.15s;
}

/* Titre */
.q-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}
.q-title .word-accent {
  color: var(--accent);
  font-style: italic;
}
.q-title .word-gold {
  color: var(--gold);
}

/* Décoratif sous le titre */
.q-title-line {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: scaleIn 0.6s ease forwards 0.55s;
  transform-origin: left;
  transform: scaleX(0);
}

/* Description */
.q-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards 0.5s;
}
.q-desc strong {
  color: var(--navy);
  font-weight: 500;
}

/* Compteur discret */
.q-scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.75s;
}
.q-scroll-hint .hint-line {
  width: 28px;
  height: 1px;
  background: var(--muted);
}
.q-scroll-hint .hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}

/* ══════════════════════════════════════
       CÔTÉ DROIT — image portrait
    ══════════════════════════════════════ */
.qualites-right {
  position: relative;
  height: 100vh; /* Toute la hauteur de l'écran */
  width: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  will-change: transform;
}

.portrait-container {
  position: relative;
  height: 90vh; /* L'image s'ajuste à 90% de la hauteur */
  width: fit-content; /* S'adapte parfaitement à l'image */
  display: flex;
  align-items: flex-end;
  /* On enlève overflow: hidden ici pour que le badge puisse déborder légèrement */
}

.portrait-img {
  height: 100%; /* Toute la hauteur du container (90vh) */
  width: auto; /* Largeur automatique */
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}
/* Image placeholder (si aucune image fournie) */
.portrait-placeholder {
  width: 340px;
  height: 580px;
  border-radius: 200px 200px 0 0;
  background: linear-gradient(160deg, var(--gray) 0%, #d8e0ef 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.portrait-placeholder::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--smoke);
}
.portrait-placeholder svg {
  position: relative;
  z-index: 1;
}

/* Décor derrière l'image */
.portrait-decor {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 420px;
  background: linear-gradient(
    165deg,
    rgba(47, 91, 255, 0.07) 0%,
    rgba(201, 168, 76, 0.06) 100%
  );
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  z-index: -1;
}

/* Floating badge sur l'image */
.portrait-badge {
  position: absolute;
  bottom: 15%; /* Remonté un peu pour être plus central */
  left: -50px; /* Déborde légèrement sur la gauche de l'IMAGE */
  background: var(--white);
  border: 1px solid rgba(11, 28, 61, 0.08);
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  z-index: 5; /* Moins que les cartes, mais plus que l'image */
  white-space: nowrap; /* Empêche le texte de revenir à la ligne */
  animation: floatY 4s ease-in-out infinite 1s;
}

.pb-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e8f0fe, #c5d5ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pb-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.pb-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
}

/* ══════════════════════════════════════
       ZONE CARTES — défile par-dessus la scène
    ══════════════════════════════════════ */
.qualites-cards-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320vh;
  pointer-events: none; /* laisse la scène gérer le scroll */
  z-index: 20;
}

/* Container ancré en haut de la fenêtre via JS */
.cards-floating-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
  /* Caché par défaut, révélé via JS quand on est dans la section */
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cards-floating-layer.in-view {
  pointer-events: auto;
}

/* ══════════════════════════════════════
       GRILLE DE CARTES (positionnée en absolu
       dans le wrapper, défile avec le scroll)
    ══════════════════════════════════════ */
.cards-scroll-container {
  position: absolute;
  left: 0;
  width: 45%; /* Réduit pour ne pas chevaucher complètement l'homme */
  top: 100vh; /* Commence après le premier écran */
  /* Aligné avec le padding du texte de gauche */
  padding: 0 2rem 80px 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  z-index: 25; /* Supérieur au badge, inférieur au floating layer */
  pointer-events: auto; /* <--- Active le hover sur les cartes */
}

/* ──────────────────────────────────────
       CARTE INDIVIDUELLE — glassmorphism
    ────────────────────────────────────── */
.q-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 28px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(11, 28, 61, 0.1);
  position: relative;
  overflow: hidden;
  cursor: default;

  /* ÉTAT INITIAL — Plus bas pour une montée plus longue */
  opacity: 0;
  transform: translateY(100px);

  /* TRANSITION PLUS LENTE */
  /* Durée : 1.2s | Timing : focus sur la fin du mouvement */
  transition:
    opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    transform 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.3s ease;

  will-change: transform, opacity;
}
/* Halo coloré en haut de la carte */
.q-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--card-halo, rgba(47, 91, 255, 0.12));
  filter: blur(28px);
  pointer-events: none;
}

/* Carte visible */
.q-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover */
.q-card:hover {
  box-shadow:
    0 20px 50px rgba(11, 28, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-5px) scale(1.015);
}

/* Icône emoji avec animation flottante */
.card-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
  animation: emojiFloat 3s ease-in-out infinite;
  will-change: transform;
}
/* Chaque carte a un délai différent */
.q-card:nth-child(1) {
  transition-delay: 0.1s;
}
.q-card:nth-child(2) {
  transition-delay: 0.3s;
}
.q-card:nth-child(3) {
  transition-delay: 0.5s;
}
.q-card:nth-child(4) {
  transition-delay: 0.7s;
}
.q-card:nth-child(5) {
  transition-delay: 0.9s;
}
.q-card:nth-child(6) {
  transition-delay: 1.1s;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}
.card-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}

/* Ligne basse décorative */
.card-accent-line {
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--card-line-from, var(--accent)),
    var(--card-line-to, var(--gold))
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.q-card:hover .card-accent-line {
  opacity: 1;
}

/* Couleurs personnalisées par carte */
.q-card:nth-child(1) {
  --card-halo: rgba(47, 91, 255, 0.12);
  --card-line-from: #2f5bff;
  --card-line-to: #7b9bff;
}
.q-card:nth-child(2) {
  --card-halo: rgba(201, 168, 76, 0.14);
  --card-line-from: #c9a84c;
  --card-line-to: #e8c76a;
}
.q-card:nth-child(3) {
  --card-halo: rgba(16, 185, 129, 0.12);
  --card-line-from: #10b981;
  --card-line-to: #34d399;
}
.q-card:nth-child(4) {
  --card-halo: rgba(239, 68, 68, 0.1);
  --card-line-from: #ef4444;
  --card-line-to: #fb7185;
}
.q-card:nth-child(5) {
  --card-halo: rgba(139, 92, 246, 0.12);
  --card-line-from: #8b5cf6;
  --card-line-to: #c4b5fd;
}
.q-card:nth-child(6) {
  --card-halo: rgba(245, 158, 11, 0.12);
  --card-line-from: #f59e0b;
  --card-line-to: #fcd34d;
}

/* Delay d'apparition en cascade */
.q-card:nth-child(1) {
  transition-delay: 0ms;
}
.q-card:nth-child(2) {
  transition-delay: 90ms;
}
.q-card:nth-child(3) {
  transition-delay: 180ms;
}
.q-card:nth-child(4) {
  transition-delay: 270ms;
}
.q-card:nth-child(5) {
  transition-delay: 360ms;
}
.q-card:nth-child(6) {
  transition-delay: 450ms;
}

/* ══════════════════════════════════════
       BANDE DE PROGRESSION — scroll indicator
    ══════════════════════════════════════ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.05s linear;
}
.scroll-progress-bar.show {
  opacity: 1;
}

/* ══════════════════════════════════════
       RESPONSIVE — MOBILE
    ══════════════════════════════════════ */
@media (max-width: 768px) {
  .qualites-wrapper {
    height: auto;
    min-height: auto;
  }
  /* Désactive le sticky sur mobile */
  .qualites-scene {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    padding-top: 80px;
  }
  /* Image en haut */
  .qualites-right {
    order: -1;
    height: 50vh;
    min-height: 300px;
  }
  .portrait-container {
    height: 48vh;
  }
  .portrait-badge {
    bottom: 20px;
    left: 10px;
  }

  /* Texte en dessous */
  .qualites-left {
    padding: 2.5rem 5vw;
  }
  .q-title {
    font-size: 2rem;
  }

  /* Cartes en 1 colonne, flux normal */
  .cards-scroll-container {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 2rem 5vw 4rem;
    grid-template-columns: 1fr;
  }
  /* Réactive pointer-events sur mobile */
  .cards-scroll-container .q-card {
    pointer-events: auto;
  }
}

/* ══════════════════════════════════════
         GALERIE PHOTOS
      ══════════════════════════════════════ */
.section-gallery {
  padding: 100px 5vw;
  background: var(--smoke);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge-light {
  display: inline-block;
  background: rgba(47, 91, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(47, 91, 255, 0.18);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.section-header h2 span {
  color: var(--accent);
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════
     GALERIE PHOTOS — LOGIQUE MASONRY
══════════════════════════════════════ */
/* SECTION */
.section-gallery {
  padding: 100px 5vw;
  background: var(--smoke);
}

/* GRID MASONRY */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 20px;
}

/* ITEMS */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

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

/* IMAGES */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* OVERLAY */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 28, 61, 0.85),
    rgba(11, 28, 61, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;

  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* TEXT */
.gallery-label {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.gallery-sublabel {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* ══════════════════════════════════════
         SECTION QUIZ
      ══════════════════════════════════════ */
.section-quiz {
  padding: 100px 5vw;
  background: var(--white);
}

.quiz-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.quiz-progress-bar {
  height: 6px;
  background: var(--gray);
  border-radius: 10px;
  margin-bottom: 50px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7b9bff);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
}
.quiz-progress-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 10px;
  text-align: right;
}

.quiz-question {
  display: none;
  animation: fadeUp 0.5s ease;
}
.quiz-question.active {
  display: block;
}

.quiz-q-number {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.quiz-q-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--smoke);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.quiz-option:hover {
  border-color: rgba(47, 91, 255, 0.3);
  background: rgba(47, 91, 255, 0.04);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: rgba(47, 91, 255, 0.08);
}
.quiz-option.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.quiz-option.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}
.quiz-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.quiz-option.selected .quiz-radio-circle {
  border-color: var(--accent);
  background: var(--accent);
}
.quiz-option.correct .quiz-radio-circle {
  border-color: #10b981;
  background: #10b981;
}
.quiz-option.wrong .quiz-radio-circle {
  border-color: #ef4444;
  background: #ef4444;
}
.quiz-radio-circle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.quiz-option.selected .quiz-radio-circle::after,
.quiz-option.correct .quiz-radio-circle::after,
.quiz-option.wrong .quiz-radio-circle::after {
  display: block;
}

.quiz-option-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
}

.quiz-feedback {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.quiz-feedback.show {
  display: block;
  animation: fadeUp 0.3s ease;
}
.quiz-feedback.correct-fb {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.quiz-feedback.wrong-fb {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.quiz-btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(11, 28, 61, 0.2);
}
.quiz-btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.quiz-btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--gray);
}
.quiz-btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.quiz-score-screen {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.quiz-score-screen.show {
  display: block;
  animation: fadeUp 0.5s ease;
}
.score-emoji {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}
.score-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.score-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.score-number {
  font-family: "Great Vibes", cursive;
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}
.quiz-restart {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 2.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.quiz-restart:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   SECTION MESSAGES — CAROUSEL INFINI
══════════════════════════════════════ */
.section-messages {
  padding: 100px 0;
  background: var(--smoke);
  overflow: hidden;
}

.section-messages .section-header {
  padding: 0 5vw;
  margin-bottom: 60px;
}

/* ─── Wrapper du carousel ─────────────
   Masque le débordement et ajoute les
   dégradés de fondu sur les côtés       */
.messages-carousel-wrap {
  position: relative;
  width: 100%;
}

/* Fondu gauche */
.messages-carousel-wrap::before,
.messages-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.messages-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--smoke) 0%, transparent 100%);
}
.messages-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--smoke) 0%, transparent 100%);
}

/* ─── Track — double les cartes pour
   un effet infini continu               */
.messages-track {
  display: flex;
  gap: 24px;
  width: max-content;
  /* Animation : défile en continu vers la gauche */
  animation: scrollLeft 45s linear infinite;
}

/* Pause au survol */
.messages-carousel-wrap:hover .messages-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
  /* -50% car le track contient 2× les cartes (clone) */
}

/* ─── CARTE ───────────────────────────── */
.msg-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 28px;
  width: 340px; /* largeur fixe pour le carousel */
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--accent);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  cursor: default;
}

/* Couleurs de bordure par position
   (appliquées via nth-child sur le
   premier set ; le clone hérite du même) */
.msg-card:nth-child(14n + 1) {
  border-top-color: var(--accent);
}
.msg-card:nth-child(14n + 2) {
  border-top-color: var(--gold);
}
.msg-card:nth-child(14n + 3) {
  border-top-color: #10b981;
}
.msg-card:nth-child(14n + 4) {
  border-top-color: #f59e0b;
}
.msg-card:nth-child(14n + 5) {
  border-top-color: #8b5cf6;
}
.msg-card:nth-child(14n + 6) {
  border-top-color: #ef4444;
}
.msg-card:nth-child(14n + 7) {
  border-top-color: #06b6d4;
}
.msg-card:nth-child(14n + 8) {
  border-top-color: #ec4899;
}
.msg-card:nth-child(14n + 9) {
  border-top-color: var(--accent);
}
.msg-card:nth-child(14n + 10) {
  border-top-color: #16a34a;
}
.msg-card:nth-child(14n + 11) {
  border-top-color: var(--gold);
}
.msg-card:nth-child(14n + 12) {
  border-top-color: #7c3aed;
}
.msg-card:nth-child(14n + 13) {
  border-top-color: #dc2626;
}
.msg-card:nth-child(14n + 14) {
  border-top-color: #0891b2;
}

.msg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

/* ─── Contenu carte ───────────────────── */
.msg-quote-icon {
  font-size: 2.5rem;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1;
  display: block;
}
.msg-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
  /* Limite à 4 lignes pour uniformiser les hauteurs */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msg-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.msg-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--gray);
  flex-shrink: 0;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
}
.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.msg-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.msg-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
/* ══════════════════════════════════════
         SECTION SURPRISE
      ══════════════════════════════════════ */
.section-surprise {
  padding: 120px 5vw;
  background: linear-gradient(135deg, #0b1c3d 0%, #0f2450 50%, #112870 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.surprise-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: particleDrift linear infinite;
  opacity: 0;
}

.surprise-content {
  position: relative;
  z-index: 2;
}
.surprise-content .section-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.surprise-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.1;
}
.surprise-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--gold), #a07830);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2.8rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.surprise-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.55);
}
.surprise-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffe99a, var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.surprise-btn:hover::before {
  opacity: 1;
}
.surprise-btn span {
  position: relative;
  z-index: 1;
}

.surprise-reveal {
  display: none;
  margin-top: 60px;
  max-width: 800px;
  margin-inline: auto;
  animation: fadeUp 0.7s ease;
}
.surprise-reveal.show {
  display: block;
}

.surprise-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 50px 40px;
  backdrop-filter: blur(20px);
}
.surprise-big-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 24px;
  animation: floatY 3s ease-in-out infinite;
}
.surprise-msg-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  margin-bottom: 20px;
}
.surprise-msg-body {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 30px;
}
.confetti-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 2rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
         FOOTER
      ══════════════════════════════════════ */
footer {
  background: var(--smoke);
  padding: 60px 5vw;
  border-top: 1px solid var(--gray);
  text-align: center;
}
.footer-logo {
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.footer-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.footer-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  margin: 24px auto;
}
.footer-made {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}
.footer-made .heart {
  color: #ef4444;
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copyright {
  margin-top: 30px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
         REVEAL ON SCROLL
      ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
        GALLERY CAROUSEL / SLIDER
      ══════════════════════════════════════ */
.section-slider {
  background: #0b1c3d;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

/* Halo lumineux en haut */
.section-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 55% at 50% -5%,
    rgba(47, 91, 255, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Grain subtil */
.section-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
/* .section-slider {
        padding: 100px 5vw;
        background: var(--navy);
        overflow: hidden;
      } */
.slider-header {
  text-align: center;
  margin-bottom: 60px;
}
.slider-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
}
.slider-header h2 span {
  color: var(--gold);
}
.slider-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 14px;
}

.wrap {
  position: relative;
}
.stage {
  display: flex;
  align-items: center; /* ← garde le centrage vertical */
  gap: 16px;
}
.viewport {
  flex: 1;
  overflow: hidden;
}
.track {
  display: flex;
  gap: 24px;
  align-items: center; /* ← cartes centrées verticalement */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ─── CARTE BASE ─────────────────────── */
.card {
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* L'image s'adapte toujours au container de la carte */
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← couvre sans déformer */
  object-position: top center; /* ← priorité au visage/haut */
  transition: transform 0.5s ease;
}

.card .overlay {
  position: absolute;
  inset: 0;
  transition: background 0.4s;
}

/* ─── CARTE ACTIVE (grande, centrale) ── */
.card.active {
  width: 380px;
  height: 480px; /* ← hauteur augmentée pour les portraits */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.card.active .overlay {
  background: linear-gradient(
    to top,
    rgba(11, 28, 61, 0.7) 0%,
    transparent 60%
  );
}
.card.active:hover img {
  transform: scale(1.04);
}

/* ─── CARTE ADJACENTE ───────────────── */
.card.adjacent {
  width: 200px;
  height: 380px;
  opacity: 0.7;
  filter: brightness(0.8);
}
.card.adjacent .overlay {
  background: rgba(11, 28, 61, 0.3);
}

/* ─── CARTE LATÉRALE ────────────────── */
.card.side {
  width: 140px;
  height: 300px;
  opacity: 0.4;
  filter: brightness(0.6);
}
.card.side .overlay {
  background: rgba(11, 28, 61, 0.5);
}

/* ─── LABELS & BADGES ───────────────── */
.bico {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}
.lbl {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ibadge {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.lbl h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.lbl p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ─── BOUTONS NAV ────────────────────── */
.nav-btn.prev,
.nav-btn.next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
  color: #fff;
}
.nav-btn.prev:hover,
.nav-btn.next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.nav-btn.prev svg,
.nav-btn.next svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── DOTS & PROGRESS ────────────────── */
.bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}
.dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.on {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}
.ring-wrap {
  position: relative;
  width: 30px;
  height: 30px;
}
.progress-ring {
  width: 30px;
  height: 30px;
  transform: rotate(-90deg);
}
.progress-ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 81.7;
  stroke-dashoffset: 81.7;
  stroke-linecap: round;
}
.pause-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.pause-btn svg {
  width: 10px;
  height: 12px;
  fill: var(--white);
}
/* ══════════════════════════════════════
         ANIMATIONS
      ══════════════════════════════════════ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes photoReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes cardPop {
  from {
    opacity: 0;
    transform: scale(0.75) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes floatY2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08);
  }
}
@keyframes scrollPulse {
  0% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1.15);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }
}
@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
@keyframes particleDrift {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
         RESPONSIVE
      ══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 6vw 3rem;
    gap: 2rem;
    background: #e8ecfa;
  }
  .hero::before {
    display: none;
  }
  .hero-left {
    padding: 0;
  }
  .hero-right {
    order: -1;
  }
  .float-card {
    bottom: 20px;
    left: 0;
  }
  .float-badge-top {
    top: 20px;
    right: 0;
  }
  .nav-links {
    display: none;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-content h2 {
    font-size: 2.5rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 2;
  }
  .hamburger {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-cta.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(245, 247, 250, 0.97);
    padding: 20px 5vw;
    border-bottom: 1px solid var(--gray);
    z-index: 99;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(36px, 10vw, 52px);
  }
  .stats-row {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .float-badge-top {
    display: none;
  }
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
  }
  .messages-grid {
    grid-template-columns: 1fr;
  }
  .qualities-grid {
    grid-template-columns: 1fr;
  }
  .surprise-card {
    padding: 30px 20px;
  }
}
