/* ============================================================
   CSS VARIABLES – Design System DRONE BXL
   ============================================================ */
:root {
  --background: 0 0% 4%;
  --background-secondary: 0 0% 8%;
  --foreground: 0 0% 100%;
  --card: 0 0% 10%;
  --card-foreground: 0 0% 100%;
  /* Or héraldique du blason — accent unique de la marque */
  --accent: 45 65% 47%;
  --primary: 45 65% 47%;
  --primary-foreground: 0 0% 4%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 60%;
  --border: 0 0% 20%;
  --radius: 0.5rem;
  --destructive: 0 72% 51%;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:flex { display: flex; }
}

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid hsl(var(--border)); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border-b { border-bottom: 1px solid hsl(var(--border)); }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-8 { padding-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.object-cover { object-fit: cover; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }

.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.list-none { list-style: none; }

.transition { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.opacity-0 { opacity: 0; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }

.aspect-video { aspect-ratio: 16/9; }

/* ============================================================
   BXL BRANDING
   ============================================================ */
.bxl-brand { display: inline-flex; align-items: center; }
.bxl-b { color: hsl(var(--foreground)); }
.bxl-x { color: hsl(45, 60%, 70%); text-shadow: 0 0 8px hsla(45,60%,70%,0.4); }
.bxl-l { color: hsl(352, 50%, 65%); text-shadow: 0 0 8px hsla(352,50%,65%,0.4); }

/* ============================================================
   TECH CARD
   ============================================================ */
.tech-card {
  border-radius: var(--radius);
  border: 1px solid hsla(0,0%,100%,0.1);
  background-color: hsl(var(--card));
  padding: 2rem;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.tech-card:hover {
  transform: translateY(-8px);
  border-color: hsla(0,0%,100%,0.25);
  box-shadow: 0 0 30px hsla(0,0%,100%,0.08), 0 8px 32px hsla(0,0%,0%,0.3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--accent));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 20px hsla(45,65%,47%,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px hsla(45,65%,47%,0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsla(0,0%,100%,0.3);
  color: hsl(var(--foreground));
  background: transparent;
  transition: all 0.2s ease;
  font-family: inherit;
  cursor: pointer;
  font-size: 1rem;
}
.btn-outline:hover {
  background-color: hsla(0,0%,100%,0.05);
  border-color: hsla(0,0%,100%,0.5);
}

/* ============================================================
   QUESTIONNAIRE OPTION
   ============================================================ */
.questionnaire-option {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsla(0,0%,100%,0.1);
  background-color: hsl(var(--card));
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  font-family: inherit;
}
.questionnaire-option:hover {
  transform: translateY(-4px);
  border-color: hsla(0,0%,100%,0.3);
  box-shadow: 0 0 20px hsla(0,0%,100%,0.06);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}
.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  max-width: 42rem;
}
.text-gradient-white {
  background: linear-gradient(135deg, hsl(0,0%,100%) 0%, hsl(0,0%,70%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-glow { text-shadow: 0 0 20px hsla(0,0%,100%,0.3); }
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-white { color: #ffffff; }

/* ============================================================
   BACKGROUNDS
   ============================================================ */
.bg-gradient-glow {
  background: radial-gradient(ellipse at top, hsla(0,0%,100%,0.05) 0%, transparent 50%);
}
.grid-pattern {
  background-image:
    linear-gradient(hsla(0,0%,100%,0.02) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0,0%,100%,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}
.bg-secondary { background-color: hsl(var(--background-secondary)); }

/* ============================================================
   SCAN LINE ANIMATION
   ============================================================ */
.scan-line { position: relative; overflow: hidden; }
.scan-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(0,0%,100%,0.3), transparent);
  animation: scan 4s linear infinite;
  top: 0;
}
@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* ============================================================
   INPUTS
   ============================================================ */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground));
  /* 16px minimum : en dessous, Safari iOS zoome automatiquement au focus */
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
  .input-field { font-size: 14px; }
}
.input-field:focus {
  border-color: hsl(var(--accent));
  box-shadow: 0 0 15px hsla(45,65%,47%,0.2);
}
.input-field::placeholder { color: hsl(var(--muted-foreground)); }
.input-field option { background-color: hsl(var(--card)); }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.5rem 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background-color: hsla(0,0%,4%,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: hsl(var(--border));
  padding: 1rem 0;
}
#navbar .nav-inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#navbar .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
}
#navbar .nav-links {
  display: none;
  align-items: center;
  list-style: none;
}
@media (min-width: 768px) {
  #navbar .nav-links { display: flex; }
}
#navbar .nav-links a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
  position: relative;
}
#navbar .nav-links a:hover,
#navbar .nav-links a.active {
  color: hsl(var(--foreground));
}
#navbar .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: hsl(var(--accent));
  box-shadow: 0 0 10px hsla(45,65%,47%,0.5);
  border-radius: 2px;
}
#navbar .nav-cta { display: none; }
@media (min-width: 768px) {
  #navbar .nav-cta { display: flex; }
}
#hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
@media (min-width: 768px) {
  #hamburger { display: none; }
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: none;
  background: hsla(0,0%,4%,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#mobile-menu.open { display: block; }
#mobile-menu .drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 75%;
  max-width: 24rem;
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border));
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}
#mobile-menu nav a {
  display: block;
  padding: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}
#mobile-menu nav a:hover,
#mobile-menu nav a.active {
  background: hsla(0,0%,100%,0.1);
  color: white;
}
#mobile-menu .mobile-cta {
  margin-top: auto;
  padding-top: 2rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
/* Le masquage n'est appliqué QUE si le JavaScript tourne réellement
   (classe .js posée dans le <head>). Sans JS, le contenu reste visible. */
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Décalage VERTICAL et non horizontal : un translateX crée une barre de
   défilement latérale sur mobile tant que le bloc n'est pas apparu. */
.js .animate-slide-left,
.js .animate-slide-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
/* Sur écran large, on peut se permettre le glissement latéral d'origine */
@media (min-width: 1024px) {
  .js .animate-slide-left  { transform: translateX(-40px); }
  .js .animate-slide-right { transform: translateX(40px); }
}
.animate-slide-left.visible,
.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hero specific — immediately visible (no scroll trigger) */
.animate-hero {
  animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
.animate-hero.delay-1 { animation-delay: 0.1s; }
.animate-hero.delay-2 { animation-delay: 0.2s; }
.animate-hero.delay-3 { animation-delay: 0.3s; }
.animate-hero.delay-4 { animation-delay: 0.4s; }
.animate-hero.delay-5 { animation-delay: 0.5s; }
.animate-hero.delay-6 { animation-delay: 0.6s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  min-height: 100svh; /* iOS : hauteur réellement visible, barre d'URL comprise */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: hsl(var(--background));
}
#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, hsla(0,0%,100%,0.03) 0%, transparent 70%);
  pointer-events: none;
}
#hero .hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, hsl(var(--background)));
  pointer-events: none;
}
#hero .hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}
#hero .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
#hero .logo-img {
  width: 160px;
  height: 192px;
  object-fit: contain;
  margin: 0 auto -24px;
}
@media (min-width: 640px) {
  #hero .logo-img { width: 208px; height: 256px; margin-bottom: -32px; }
}
#hero .hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
#hero .tagline1 {
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
#hero .tagline2 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: hsl(var(--accent));
  text-shadow: 0 0 20px hsla(45,65%,47%,0.3);
  margin-bottom: 2.5rem;
}
#hero .hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  #hero .hero-ctas { flex-direction: row; justify-content: center; }
}
#hero .location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsla(0,0%,100%,0.15);
  background: hsla(0,0%,100%,0.05);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
#hero .scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   FAQ (details/summary)
   ============================================================ */
details.faq-item {
  border: 1px solid hsla(0,0%,100%,0.1);
  border-radius: var(--radius);
  background: hsl(var(--card));
  overflow: hidden;
}
details.faq-item + details.faq-item { margin-top: 0.75rem; }

details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 16px);
  color: hsl(var(--foreground));
  list-style: none;
  gap: 1rem;
  transition: color 0.2s ease;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { color: hsl(var(--primary)); }
details.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary .faq-icon { transform: rotate(180deg); }
details.faq-item[open] summary { color: hsl(var(--primary)); }
details.faq-item .faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: clamp(14px, 1.5vw, 16px);
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  border-top: 1px solid hsla(0,0%,100%,0.05);
  padding-top: 1rem;
}

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
#testimonials-carousel { position: relative; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.carousel-btn:hover {
  color: hsl(var(--foreground));
  border-color: hsla(0,0%,100%,0.5);
}
.carousel-dot {
  height: 12px;
  border-radius: 6px;
  background: hsl(var(--muted));
  cursor: pointer;
  border: none;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 12px;
}
.carousel-dot.active {
  width: 32px;
  background: hsl(var(--primary));
}

/* ============================================================
   QUOTE POPUP
   ============================================================ */
#quote-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#quote-popup.visible {
  opacity: 1;
  visibility: visible;
}
#quote-popup .popup-inner {
  width: 100%;
  max-width: 28rem;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
#quote-popup.visible .popup-inner {
  transform: scale(1) translateY(0);
}
#quote-popup .popup-border {
  padding: 1px;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, hsla(0,0%,100%,0.2), transparent, hsla(0,0%,100%,0.1));
}
#quote-popup .popup-content {
  border-radius: calc(1rem - 1px);
  background: hsl(var(--card));
  padding: clamp(2rem, 4vw, 2.5rem);
  position: relative;
}
#quote-popup .popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: hsla(0,0%,15%,0.3);
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: color 0.2s ease;
}
#quote-popup .popup-close:hover { color: white; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-step {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.process-number {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsla(0,0%,100%,0.1);
  white-space: nowrap;
  z-index: 1;
}
.process-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  border: 1px solid hsla(0,0%,100%,0.1);
  background: hsl(var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.process-connector {
  display: none;
  position: absolute;
  top: 50%;
  left: calc(50% + 2rem);
  right: calc(-50% + 2rem);
  height: 1px;
  background: linear-gradient(90deg, hsla(0,0%,100%,0.2), transparent);
}
@media (min-width: 768px) {
  .process-connector { display: block; }
}

/* ============================================================
   QUESTIONNAIRE
   ============================================================ */
#questionnaire-steps > div { display: none; }
#questionnaire-steps > div.active { display: block; }

/* ============================================================
   PROSE (Privacy / Terms)
   ============================================================ */
.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', sans-serif;
}
.prose-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}
.prose-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}
.prose-content li { margin-bottom: 0.25rem; }
.prose-content a { color: hsl(var(--primary)); }
.prose-content a:hover { text-decoration: underline; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--muted)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }

/* ============================================================
   ALERT / FORM FEEDBACK
   ============================================================ */
.alert-success {
  padding: 1rem;
  border-radius: var(--radius);
  background: hsla(120,50%,50%,0.1);
  border: 1px solid hsla(120,50%,50%,0.3);
  color: hsl(120,50%,70%);
  font-size: 0.875rem;
}
.alert-error {
  padding: 1rem;
  border-radius: var(--radius);
  background: hsla(0,72%,51%,0.1);
  border: 1px solid hsla(0,72%,51%,0.3);
  color: hsl(0,72%,70%);
  font-size: 0.875rem;
}

/* ============================================================
   FOCUS VISIBLE (accessibilité clavier)
   ============================================================ */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.questionnaire-option:focus-visible,
.input-field:focus-visible,
details.faq-item summary:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
  border-radius: calc(var(--radius) - 2px);
}

/* ============================================================
   FAÇADE YOUTUBE (l'iframe ne charge qu'au clic / au tap)
   Pensée mobile-first : rien ne dépend du survol, le bouton de
   lecture est toujours visible et fait plus de 44x44 px.
   ============================================================ */
.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
/* Voile léger : garantit le contraste du bouton sur les miniatures claires.
   z-index 1 → il reste SOUS le bouton de lecture (z-index 2). */
.yt-facade::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, hsla(0,0%,0%,0.35) 0%, hsla(0,0%,0%,0.12) 45%, transparent 70%);
  pointer-events: none;
}
.yt-facade.is-playing::after { display: none; }
.yt-facade .yt-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  /* État par défaut = état "actif" visuellement : pas besoin de survoler */
  background: hsl(var(--accent));
  border: 2px solid hsl(var(--accent));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px; /* recentre optiquement le triangle */
  box-shadow: 0 4px 18px hsla(0, 0%, 0%, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Retour tactile au doigt (fonctionne aussi à la souris) */
.yt-facade:active .yt-play,
.yt-facade .yt-play:active {
  transform: translate(-50%, -50%) scale(0.92);
  box-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.5);
}
/* Le survol n'est qu'un bonus, uniquement sur les appareils qui en ont un */
@media (hover: hover) and (pointer: fine) {
  .yt-facade:hover .yt-play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 24px hsla(45, 65%, 47%, 0.45);
  }
}
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   PORTFOLIO — grille et cadres vidéo
   ============================================================ */
#portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  #portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-card { display: flex; flex-direction: column; }
/* Cadre paysage 16/9 (par défaut) */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
/* Cadre vertical 9/16 pour les Shorts — hauteur bridée pour ne pas
   occuper tout l'écran d'un téléphone */
.video-frame-vertical {
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  max-width: 360px;
  margin: 0 auto;
}
.video-meta {
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}
.video-meta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}
.video-meta .video-place {
  font-size: 0.75rem;
  color: hsl(var(--accent));
  margin-bottom: 0.25rem;
}
.video-meta .video-desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}
.video-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  min-height: 36px;
  background: hsl(var(--accent));
  color: hsl(var(--primary-foreground));
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.video-cta:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .video-cta:hover { box-shadow: 0 4px 16px hsla(45, 65%, 47%, 0.35); }
}
/* Sur petit écran, la description passe au-dessus du bouton */
@media (max-width: 420px) {
  .video-meta { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .video-cta { justify-content: center; }
}

/* ============================================================
   BOUTON WHATSAPP FLOTTANT
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  /* --cookie-h : hauteur de la bannière cookies, posée par le JS tant qu'elle
     est affichée. Sans elle, le bouton serait recouvert et le tap tomberait
     sur « Refuser ». env() protège la barre d'accueil des iPhone récents. */
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px) + var(--cookie-h, 0px));
  right: 1.5rem;
  transition: bottom 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  }
}

/* ============================================================
   BANNIÈRE COOKIES (Consent Mode v2)
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 26rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  display: none;
}
#cookie-banner.visible { display: block; }
#cookie-banner p {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1rem;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
#cookie-banner .cookie-accept {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--accent));
  color: hsl(var(--primary-foreground));
}
#cookie-banner .cookie-refuse {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  background: transparent;
}
#cookie-banner .cookie-refuse:hover { color: hsl(var(--foreground)); }
#cookie-banner a { color: hsl(var(--accent)); }

/* ============================================================
   GRILLES RESPONSIVE (remplace les media queries inline cassées)
   ============================================================ */
@media (min-width: 640px) {
  .quiz-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .quiz-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .form-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  #features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 768px) {
  #vision-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 900px) {
  .about-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .about-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .contact-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 72rem !important; }
}
@media (min-width: 1024px) {
  #services-home-grid { grid-template-columns: repeat(3, 1fr) !important; }
  #choose-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #home-contact-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #services-home-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   CORRECTIFS COMPATIBILITÉ MOBILE — audit du 16/08/2026
   ============================================================ */

/* B1 — les enfants de grille doivent pouvoir se comprimer.
   Par défaut un élément de grille a min-width:auto : il refuse de
   descendre sous la largeur de son contenu et déborde de l'écran. */
#choose-grid > *, #vision-grid > *, #features-grid > *,
#services-home-grid > *, #home-contact-grid > *, #portfolio-grid > *,
.contact-grid > *, .about-grid-2 > *, .about-grid-3 > *,
.footer-grid > *, .quiz-grid > *, .form-grid-2 > * {
  min-width: 0;
}

/* B1 — respiration réduite sur les très petits écrans (320–380 px) :
   section + conteneur + carte cumulaient 160 px de rembourrage. */
@media (max-width: 380px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .tech-card { padding: 1.25rem; }
}

/* B1 — filet de sécurité : aucun défilement latéral, quoi qu'il arrive */
html, body { overflow-x: clip; }

/* B2 — sans JavaScript ou en mouvement réduit, tout le contenu reste visible */
@media (prefers-reduced-motion: reduce) {
  .js .animate-on-scroll,
  .js .animate-slide-left,
  .js .animate-slide-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* M4 — cibles tactiles : 44 px minimum (recommandation Apple et Google) */
footer ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}
#navbar .logo { min-height: 44px; }
#hamburger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#navbar .nav-cta, #mobile-menu .mobile-cta a { min-height: 44px; }
/* liens « Demander un devis » des cartes Services */
.tech-card > a[href="/contact"] {
  min-height: 44px;
  align-items: center;
}

/* Confort tactile général : pas de flash gris au tap sur les zones cliquables */
a, button, summary, .questionnaire-option {
  -webkit-tap-highlight-color: transparent;
}

/* M4 (suite) — cibles tactiles restantes relevées au second passage */
#cookie-banner .cookie-accept,
#cookie-banner .cookie-refuse { min-height: 44px; }
.video-cta { min-height: 44px; }
/* coordonnées cliquables dans les cartes (contact rapide, infos, pages légales) */
.tech-card a[href^="mailto:"],
.tech-card a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ============================================================
   Menu mobile — accès rapide Appeler / WhatsApp sous le CTA
   (réduit la friction pour les visiteurs mobiles prêts à agir)
   ============================================================ */
.mobile-quick-contact {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.mobile-quick-contact a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  min-height: 44px;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  background: hsla(var(--primary), 0.06);
}
.mobile-quick-contact a[href^="https://wa.me"] {
  color: #25d366;
  border-color: hsla(147, 64%, 45%, 0.3);
  background: hsla(147, 64%, 45%, 0.08);
}

/* ============================================================
   PROCESSUS (accueil) — rangée d'étapes "Comment ça marche"
   Bureau : rangée horizontale avec défilement si besoin.
   Mobile : empilé verticalement, flèches tournées à 90°.
   ============================================================ */
.process-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.process-step {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 150px;
}
@media (max-width: 767px) {
  .process-steps {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
    gap: 0.5rem;
  }
  .process-step {
    flex: none;
    min-width: 100%;
    width: 100%;
  }
  .process-step .tech-card {
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.25rem !important;
  }
  .process-step .tech-card > p {
    text-align: left;
  }
  .process-arrow {
    width: 100%;
    padding: 0.1rem 0 !important;
    transform: rotate(90deg);
  }
}
