/* ========================================
   CA JOUE - Global Styles
   ======================================== */

/* ========================================
   Fonts (self-hosted)
   ======================================== */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* CSS Variables */
:root {
  --bg-primary: #151B28;
  --bg-secondary: #0D1117;
  --bg-card: #1a2332;
  --accent-green: #22c55e;
  --accent-green-hover: #16a34a;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: rgba(148, 163, 184, 0.2);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
}

p {
  color: var(--text-secondary);
}

.accent {
  color: var(--accent-green);
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(21, 27, 40, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Le nav doit rester “compact” et centré */
.header .nav {
  display: flex;
  align-items: center;
}

/* Liens + select sur une ligne et centrés */
.header .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* ✅ Select fermé : texte lisible */
.nav-links .nav-lang select {
  color: #ffffff;            /* force blanc */
}

/* ✅ Liste ouverte (desktop / Chrome) */
.nav-links .nav-lang select option {
  background: #0b1220;        /* fond sombre */
  color: #ffffff;             /* texte blanc */
}

/* ✅ Dans certains navigateurs, le focus met un fond bizarre */
.nav-links .nav-lang select:focus {
  outline: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 100px;
  width: auto;
}

.logo span {
  display: none; /* Hidden because fullLogo.svg already includes the text */
}

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

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =========================
   Minimal language selector (FR ▼)
   ========================= */

.nav-links .nav-lang {
  display: flex;
  align-items: center;
  margin-left: 0; /* pas de décalage */
}

/* select ultra minimal */
.nav-links .nav-lang select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: transparent;  /* ✅ pas de fond */
  border: none;             /* ✅ pas de contour */
  outline: none;

  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.5px;

  padding: 0 18px 0 0;      /* place pour le chevron */
  cursor: pointer;
  line-height: 1;
}

/* chevron */
.nav-links .nav-lang {
  position: relative;
}

.nav-links .nav-lang::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);

  border-right: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  opacity: 0.8;
  pointer-events: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

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

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

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 30px;
    gap: 25px;
    text-align: center;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Container du bouton */
.download-app {
  display: flex;
  justify-content: center;
}

/* Le bouton lui-même */
.download-btn {
  width: 100%;
  max-width: 420px;      /* un peu plus large que 380 */
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25);
}

/* Pour être sûr que le vert est le bon */
.download-btn.btn-primary {
  background: var(--accent-green);
}

.download-btn.btn-primary:hover {
  background: var(--accent-green-hover);
  transform: translateY(-2px);
}


/* Store Badges */
.store-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  height: 50px;
  width: auto;
}

/* QR Codes */
.qr-codes {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.qr-code-img {
  padding: 15px;
  background: #fff;
  border-radius: var(--radius);
}

.qr-code-img img {
  width: 120px;
  height: 120px;
}

.qr-code .store-badge-img {
  height: 40px;
  width: auto;
}

/* QR block title + spacing */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px; /* garde pour Pro */
}

/* Hero QR: réduire l'espace titre -> QR (override fort) */
.hero .qr-block {
  gap: 14px !important;
}

.hero .qr-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1;
}

/* Si l'espace vient du container QR */
.hero .qr-codes {
  margin-top: 0 !important;
}

/* Ajoute de l'air sous les badges (mobile) */
.hero-cta.mobile-only .store-badges {
  margin-bottom: 14px;
}

.qr-title {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  font-size: 1rem;
  opacity: 0.95;
}

/* Plus d'air entre les deux QR */
.qr-codes {
  gap: 42px; /* avant: 30px */
}

.hero .qr-block {
  margin-top: 8px;
}

@media (max-width: 768px) {

  .pro-section .store-badges.mobile-only {
    margin-bottom: 14px;  
  }

  .pro-section .download-app.mobile-only {
    margin-top: 0;        
  }

  .cta-section .hero-cta.mobile-only {
    margin-top: 18px;
  }

  .cta-section .download-app.mobile-only {
    margin-top: 14px;
  }
}


/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.hero-perk {
  max-width: 700px;
  margin: -18px auto 26px; /* rapproche du texte au-dessus, garde de l'air avec les QR */
  color: var(--text-primary);
  opacity: 0.92;
  font-weight: 600;
  font-size: 1rem;
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;

  /* Overlay sombre + image */
  background:
    linear-gradient(135deg, rgba(21, 27, 40, 0.72), rgba(13, 17, 23, 0.72)),
    url('../images/section-titre.webp') center 30%/cover no-repeat;

  opacity: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

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

/* Platform-specific display */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

/* Mobile */
@media (max-width: 768px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }
}


/* ========================================
   Features Section
   ======================================== */

.features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-green);
  box-shadow: var(--shadow-lg);
}

.feature-card-image {
  height: 200px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ========================================
   Pro Section
   ======================================== */

.pro-section {
  background:
    linear-gradient(135deg, rgba(21, 27, 40, 0.72), rgba(13, 17, 23, 0.72)),
    url('../images/pro-section.webp') center 30%/cover no-repeat;
}

.pro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.pro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
}

.pro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-text h2 {
  margin-bottom: 20px;
}

.pro-text p {
  margin-bottom: 15px;
}

/* Pro split (2 cards) */
.pro-split {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

@media (max-width: 768px) {
  .pro-section .pro-split {
    margin-bottom: 18px; 
  }

  .pro-section .store-badges.mobile-only {
    margin-top: 0; 
  }
}

.pro-card {
  background: rgba(26, 35, 50, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.pro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: var(--shadow-lg);
}

.pro-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

/* Sous-titre (phrase courte) */
.pro-card-sub {
  margin: 0 0 14px 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.35;
}

/* Liste en points (bullets propres) */
.pro-bullets {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pro-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* petite pastille + check */
.pro-bullets li::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  width: 24px;
  height: 24px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Card highlight (par défaut sur Events) */
.pro-card--highlight {
  position: relative;
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.10) 0%,
    rgba(26, 35, 50, 0.75) 55%,
    rgba(13, 17, 23, 0.55) 100%
  );
}

.pro-card--highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.75), rgba(34, 197, 94, 0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.25s ease;
  opacity: 1;
}

/* IMPORTANT: la carte match doit pouvoir contenir son ::before */
.pro-card--switch {
  position: relative;
}

/* Switch = seulement quand on hover la carte match */
.pro-card--switch:hover {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.10) 0%,
    rgba(26, 35, 50, 0.75) 55%,
    rgba(13, 17, 23, 0.55) 100%
  );
}

.pro-card--switch:hover::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.75), rgba(34, 197, 94, 0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 1;
}

/* Pendant le hover match -> on "éteint" Events */
.pro-card--switch:hover ~ .pro-card--highlight {
  border-color: var(--border-color);
  background: rgba(26, 35, 50, 0.7);
}

.pro-card--switch:hover ~ .pro-card--highlight::before {
  opacity: 0;
}

/* transitions smooth */
.pro-card--highlight,
.pro-card--switch {
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* (Ancien bloc - tu peux le garder si ailleurs, sinon tu peux supprimer) */
.pro-features {
  margin: 30px 0;
}

.pro-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.pro-features li::before {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-features li::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ========================================
   Partners Section
   ======================================== */

.partners {
  background: var(--bg-secondary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.partner-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.partner-card:hover {
  border-color: var(--accent-green);
}

.partner-placeholder {
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
  position: relative;
  padding-left: 25px;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--accent-green);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.testimonial-info strong {
  display: block;
  color: var(--text-primary);
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /*background: url('../images/cta-bg.jpg') center/cover no-repeat;*/
  opacity: 0.1;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

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

.cta-section p {
  max-width: 600px;
  margin: 0 auto 40px;
}

/* CTA: ne pas appliquer le gros margin aux titres QR */
.cta-section .qr-title {
  max-width: none;
  margin: 0 auto 8px !important; /* ↓ réduit l'espace sous le texte */
  line-height: 1.15;
}

/* ========================================
   Newsletter Section
   ======================================== */

.newsletter {
  background: var(--bg-secondary);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input-group {
  display: flex;
  gap: 10px;
}

@media (max-width: 500px) {
  .newsletter-input-group {
    flex-direction: column;
  }
}

.newsletter-input-group input {
  flex: 1;
  padding: 15px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: var(--transition);
}

.newsletter-input-group input::placeholder {
  color: var(--text-muted);
}

.newsletter-input-group input:focus {
  border-color: var(--accent-green);
}

.newsletter-consent {
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.newsletter-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent-green);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links h4 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  color: var(--accent-green);
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   About Page
   ======================================== */

.page-hero {
  padding: 150px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about-section {
  background: var(--bg-secondary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h3 {
  color: var(--accent-green);
  margin-bottom: 15px;
}

.about-content p {
  margin-bottom: 20px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ✅ centre chaque ligne, y compris la dernière */
  gap: 25px;
  margin-top: 40px;
}

.team-card {
  width: 200px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green) 0%, #16a34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.team-card h4 {
  margin-bottom: 5px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================================
   Contact Page
   ======================================== */

.contact-section {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

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

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.contact-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 15px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-social-link:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
}

.contact-social-link svg {
  width: 28px;
  height: 28px;
  fill: var(--text-primary);
}

.contact-social-link span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-green);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Honeypot field - hidden from users */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* ========================================
   Redirect Page (deep link)
   ======================================== */

.redirect-page {
  background: var(--bg-primary);
}

.redirect-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 40px; /* laisse respirer */
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.redirect-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(26, 35, 50, 0.70); /* proche des pro-cards */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 26px;
  backdrop-filter: blur(8px);
  text-align: center;
}

.redirect-title {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  margin-bottom: 10px;
}

.redirect-text {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.redirect-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.redirect-meta code {
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-primary);
}

/* Overlay */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.redirect-overlay.active {
  display: flex;
}

.redirect-popup {
  width: min(420px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.redirect-popup-body {
  padding: 18px 18px 14px;
  text-align: center;
}

.redirect-popup-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.redirect-popup-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.redirect-popup-actions {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.redirect-popup-btn {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.redirect-popup-btn + .redirect-popup-btn {
  border-left: 1px solid var(--border-color);
}

.redirect-popup-btn-store {
  color: var(--accent-green);
}

/* ========================================
   Redirect Page (deep link) — DA + iPhone full height
   ======================================== */

html, body {
  height: 100%;
}

/* fond plein écran (iOS safe) */
.redirect-page {
  min-height: 100svh;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

@supports (height: 100dvh) {
  .redirect-page {
    min-height: 100dvh;
  }
}

/* main prend toute la hauteur */
.redirect-main {
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: 120px 0 40px;
}

/* card */
.redirect-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(26, 35, 50, 0.70);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 26px;
  backdrop-filter: blur(8px);
  text-align: center;
}

.redirect-title {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  margin-bottom: 10px;
  color: var(--text-primary);
}

.redirect-text {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.45;
}

.redirect-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.redirect-meta code {
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-primary);
}

/* Overlay */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.redirect-overlay.active {
  display: flex;
}

.redirect-popup {
  width: min(420px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.redirect-popup-body {
  padding: 18px 18px 14px;
  text-align: center;
}

.redirect-popup-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.redirect-popup-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.redirect-popup-actions {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.redirect-popup-btn {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.redirect-popup-btn + .redirect-popup-btn {
  border-left: 1px solid var(--border-color);
}

.redirect-popup-btn-store {
  color: var(--accent-green);
}

/* ========================================
   Redirect Page — FULL
   ======================================== */

/* Fond plein écran iOS / Safari */
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-primary);
}

body.redirect-page {
  min-height: 100svh;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden; /* pas de scroll page */
}

@supports (height: 100dvh) {
  body.redirect-page {
    min-height: 100dvh;
  }
}

/* Main plein écran + centrage */
.redirect-main {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Card centrale responsive */
.redirect-card {
  width: min(92vw, 520px);      /* % mobile + limite desktop */
  max-height: 62svh;           /* évite card géante */
  overflow: auto;              /* scroll interne si besoin */
  -webkit-overflow-scrolling: touch;

  background: rgba(26, 35, 50, 0.70);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
  backdrop-filter: blur(8px);
  text-align: center;
}

@supports (height: 100dvh) {
  .redirect-card {
    max-height: 62dvh;
  }
}

/* Textes */
.redirect-title {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  margin-bottom: 10px;
  color: var(--text-primary);
}

.redirect-text {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.redirect-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* URL jamais cassante */
.redirect-meta code {
  display: block;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--text-primary);

  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   Popup Store
   ======================================== */

.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.redirect-overlay.active {
  display: flex;
}

.redirect-popup {
  width: min(420px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.redirect-popup-body {
  padding: 16px 14px 12px;
  text-align: center;
}

.redirect-popup-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.redirect-popup-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.redirect-popup-actions {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.redirect-popup-btn {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.redirect-popup-btn + .redirect-popup-btn {
  border-left: 1px solid var(--border-color);
}

.redirect-popup-btn-store {
  color: var(--accent-green);
}

/* ========================================
   Très petits écrans (iPhone SE etc)
   ======================================== */
@media (max-width: 360px) {
  .redirect-card {
    padding: 14px 12px;
  }

  .redirect-title {
    font-size: 1.1rem;
  }
}

/* ========================================
   Cookie Banner + Modal (RGPD)
   ======================================== */

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3000;

  background: rgba(26, 35, 50, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);

  padding: 14px 14px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-banner__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.35;

  flex: 1;                
  min-width: 0;           
  white-space: nowrap;     
  overflow: hidden;        
  text-overflow: ellipsis; 
  max-width: none;         
}

@media (max-width: 520px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons (cookie) */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: var(--transition);
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: var(--accent-green);
  color: #fff;
}

.cookie-btn--primary:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.25);
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.cookie-btn--secondary:hover {
  border-color: rgba(34, 197, 94, 0.55);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.cookie-btn--tertiary {
  background: rgba(13, 17, 23, 0.65);
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.20);
}

.cookie-btn--tertiary:hover {
  border-color: rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
}

/* Mobile stacking */
@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Modal */
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cookie-modal__card {
  position: relative;
  width: min(560px, 92vw);
  background: rgba(26, 35, 50, 0.96);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-color);
}

.cookie-modal__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.cookie-modal__close {
  background: transparent;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.cookie-modal__close:hover {
  border-color: rgba(34, 197, 94, 0.45);
}

.cookie-modal__body {
  padding: 16px;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.cookie-row__title {
  margin: 0 0 4px 0;
  font-weight: 700;
  color: var(--text-primary);
}

.cookie-row__desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Switch */
.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cookie-switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cookie-switch input::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--text-primary);
  transition: var(--transition);
}

.cookie-switch input:checked {
  background: rgba(34, 197, 94, 0.35);
  border-color: rgba(34, 197, 94, 0.55);
}

.cookie-switch input:checked::before {
  left: 25px;
  background: #fff;
}

.cookie-note {
  margin: 12px 2px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.cookie-modal__footer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}
