/* ==========================================================================
   MALAGASTANDS.COM • DIFFUSED OCEAN BLUE & ANTHRACITE DESIGN SYSTEM 2026
   - Zero Black / Zero Gold
   - Zero Horizontal Mobile Overflow (Strict Grid min-width: 0 & Compact Header)
   - Includes Lightbox, Cookie Consent Banner, RGPD Form Layer & Legal Pages
   ========================================================================== */

:root {
  /* Anthracite Grey Typography */
  --text-anthracite: #27313F;
  --text-body: #3E4C5E;
  --text-muted: #64748B;
  --text-light: #FFFFFF;
  --text-sky-soft: #E0F2FE;

  /* Ocean / Slate Blue Palette */
  --brand-deep: #1B3B5A;
  --brand-mid: #0E5A8A;
  --brand-vivid: #0284C7;
  --brand-sky: #38BDF8;
  --brand-ice: #E0F2FE;
  --brand-frost: #F0F9FF;

  /* Diffused Mesh Gradients */
  --mesh-hero:
    radial-gradient(circle at 16% 22%, rgba(56, 189, 248, 0.42) 0%, transparent 45%),
    radial-gradient(circle at 84% 18%, rgba(2, 132, 199, 0.52) 0%, transparent 48%),
    radial-gradient(circle at 72% 82%, rgba(125, 211, 252, 0.28) 0%, transparent 42%),
    linear-gradient(135deg, #16334E 0%, #1F4B73 48%, #0E5A8A 100%);

  --mesh-section-blue:
    radial-gradient(circle at 12% 78%, rgba(56, 189, 248, 0.34) 0%, transparent 46%),
    radial-gradient(circle at 88% 20%, rgba(14, 90, 138, 0.65) 0%, transparent 50%),
    linear-gradient(140deg, #1B3B5A 0%, #15456B 52%, #1E5682 100%);

  --mesh-soft-light:
    radial-gradient(circle at 10% 15%, rgba(186, 230, 253, 0.55) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(224, 242, 254, 0.75) 0%, transparent 45%),
    linear-gradient(180deg, #F8FAFC 0%, #F1F6FB 100%);

  /* Card & Border Tokens */
  --bg-white: #FFFFFF;
  --border-soft: rgba(14, 90, 138, 0.13);
  --shadow-card: 0 14px 34px -10px rgba(22, 51, 78, 0.10), 0 4px 12px -2px rgba(22, 51, 78, 0.05);
  --shadow-card-hover: 0 24px 48px -12px rgba(2, 132, 199, 0.22), 0 8px 20px -4px rgba(22, 51, 78, 0.08);

  /* Layout */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-width: 1220px;
  --container-padding: 1.5rem;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --transition-fast: 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-med: 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 1. Reset & Anti-Overflow Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-anthracite);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--text-anthracite);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

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

/* Prevent any CSS Grid child from pushing out the mobile viewport */
.hero-grid > *,
.bento-grid > *,
.dual-audience-grid > *,
.tech-form-container > *,
.form-grid-2 > *,
.venues-grid > *,
.portfolio-grid > *,
.footer-grid > * {
  min-width: 0;
  max-width: 100%;
}

.highlight {
  color: #7DD3FC;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-vivid);
  color: var(--text-light);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}

/* --- 2. Topbar --- */
.topbar {
  background: linear-gradient(90deg, #16334E 0%, #0E5A8A 55%, #16334E 100%);
  color: var(--text-sky-soft);
  font-size: 0.81rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.48rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.topbar-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-weight: 600;
}

.topbar-contact a {
  color: var(--text-light);
}
.topbar-contact a:hover {
  color: #7DD3FC;
}

/* --- 3. Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(24, 56, 86, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 8px 28px rgba(22, 51, 78, 0.14);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  height: 44px;
  width: auto;
  max-width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-menu a {
  color: #F0F9FF;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.45rem 0.2rem;
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #38BDF8, #BAE6FD);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #7DD3FC;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* Native Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(186, 230, 253, 0.25);
  border-radius: 99px;
  padding: 0.2rem;
  gap: 0.12rem;
}

.lang-link {
  font-size: 0.74rem;
  font-weight: 800;
  color: #BAE6FD;
  padding: 0.32rem 0.54rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.lang-link:hover {
  color: var(--text-light);
}

.lang-link.active {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.65rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0E5A8A 55%, #0369A1 100%);
  color: var(--text-light);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 8px 22px -4px rgba(2, 132, 199, 0.42);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.55);
  color: var(--text-light);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--brand-deep);
  border-color: rgba(14, 90, 138, 0.22);
  box-shadow: 0 4px 12px rgba(22, 51, 78, 0.06);
}

.btn-secondary:hover {
  border-color: var(--brand-vivid);
  background: var(--brand-frost);
  color: var(--brand-vivid);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  color: var(--text-light);
  border-color: rgba(186, 230, 253, 0.40);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: #7DD3FC;
  color: var(--text-light);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 0.62rem 1.2rem !important;
  font-size: 0.87rem !important;
  border-radius: 99px !important;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
}
.nav-cta::after {
  display: none !important;
}

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: 8px;
  cursor: pointer;
  width: 40px;
  height: 38px;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  position: absolute;
  width: 20px;
  height: 2.2px;
  left: 9px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle .hamburger {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle .hamburger::before {
  content: '';
  left: 0;
  top: -6px;
}
.nav-toggle .hamburger::after {
  content: '';
  left: 0;
  bottom: -6px;
}

.nav-toggle.open .hamburger {
  background: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: translateY(6px) rotate(45deg);
  background: #7DD3FC;
}
.nav-toggle.open .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
  background: #7DD3FC;
}

/* --- 4. Hero Section --- */
.hero-expo {
  position: relative;
  background: var(--mesh-hero);
  color: var(--text-light);
  padding: 4.75rem 0 5.25rem;
  overflow: hidden;
}

.hero-expo::before,
.hero-expo::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
}

.hero-expo::before {
  width: 420px;
  height: 420px;
  background: rgba(56, 189, 248, 0.32);
  top: -120px;
  left: -90px;
}

.hero-expo::after {
  width: 480px;
  height: 480px;
  background: rgba(2, 132, 199, 0.36);
  bottom: -160px;
  right: -80px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(186, 230, 253, 0.35);
  color: #BAE6FD;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 100%;
}

.hero-expo h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.hero-lead {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: #E0F2FE;
  margin-bottom: 2rem;
  max-width: 640px;
  opacity: 0.94;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(186, 230, 253, 0.22);
}

.metric-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.metric-item strong {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  color: #7DD3FC;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.metric-item span {
  font-size: 0.8rem;
  color: #E0F2FE;
  line-height: 1.35;
  display: block;
}

.hero-showcase-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(186, 230, 253, 0.32);
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  box-shadow: 0 28px 60px rgba(12, 34, 56, 0.38);
}

.hero-showcase-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.hero-showcase-caption {
  padding: 0.95rem 0.65rem 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.hero-showcase-caption div strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-light);
}

.hero-showcase-caption div span {
  font-size: 0.78rem;
  color: #BAE6FD;
}

.venue-badge-float {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: var(--text-light);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.34rem 0.75rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* --- 5. Brands Strip --- */
.brands-strip {
  background: linear-gradient(90deg, #F0F9FF 0%, #FFFFFF 50%, #F0F9FF 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 1.9rem 0;
}

.brands-strip-title {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-mid);
  margin-bottom: 1.15rem;
}

.brands-tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.brand-pill {
  background: var(--bg-white);
  border: 1px solid rgba(14, 90, 138, 0.16);
  color: var(--text-anthracite);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(14, 90, 138, 0.05);
}

/* --- 6. Sections & Bento Cards --- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-soft {
  background: var(--mesh-soft-light);
}

.section-dark {
  background: var(--mesh-section-blue);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-mid);
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
  padding: 0.34rem 0.88rem;
  border-radius: 99px;
  margin-bottom: 0.85rem;
}

.section-dark .section-eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #BAE6FD;
  border: 1px solid rgba(186, 230, 253, 0.3);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  margin-bottom: 0.8rem;
}

.section-header p {
  font-size: 1.04rem;
  color: var(--text-body);
}

.section-dark .section-header p {
  color: #E0F2FE;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.bento-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  border: 1px solid rgba(2, 132, 199, 0.16);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-med);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #38BDF8 0%, #0284C7 50%, #1B3B5A 100%);
  opacity: 0.85;
}

.bento-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(2, 132, 199, 0.42);
}

.bento-img-wrap {
  position: relative;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--brand-deep);
}

.bento-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 51, 78, 0.05) 45%, rgba(22, 51, 78, 0.55) 100%);
  pointer-events: none;
}

.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  cursor: zoom-in;
}

.bento-card:hover .bento-img-wrap img {
  transform: scale(1.05);
}

.bento-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  background: rgba(27, 59, 90, 0.86);
  backdrop-filter: blur(10px);
  color: #E0F2FE;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.32rem 0.72rem;
  border-radius: 99px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bento-step-num {
  position: absolute;
  bottom: 0.75rem;
  right: 0.8rem;
  z-index: 2;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.8rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.bento-body {
  padding: 1.35rem 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-body h3 {
  font-size: 1.24rem;
  margin-bottom: 0.6rem;
}

.bento-body p {
  color: var(--text-body);
  font-size: 0.93rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.bento-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(14, 90, 138, 0.15);
}

.spec-chip {
  font-size: 0.74rem;
  font-weight: 700;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  color: var(--brand-mid);
  border: 1px solid rgba(2, 132, 199, 0.20);
  padding: 0.26rem 0.62rem;
  border-radius: 8px;
}

/* --- 7. Dual Audience Cards --- */
.dual-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.85rem;
}

.audience-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid rgba(186, 230, 253, 0.26);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(12, 34, 56, 0.22);
}

.audience-card.highlight-b2b {
  background:
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.28), transparent 50%),
    rgba(255, 255, 255, 0.13);
  border-color: rgba(125, 211, 252, 0.48);
}

.audience-card h3 {
  font-size: 1.48rem;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.audience-card p {
  color: #E0F2FE;
  margin-bottom: 1.35rem;
}

.check-list {
  margin-bottom: 1.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: #F0F9FF;
  font-size: 0.93rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.25);
  color: #7DD3FC;
  font-size: 0.74rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* --- 8. Technical Briefing Form + RGPD Consent Layer --- */
.tech-form-container {
  background: var(--bg-white);
  border: 1.5px solid rgba(2, 132, 199, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
}

.tech-form-main {
  padding: 2.35rem;
}

.tech-form-sidebar {
  background: var(--mesh-section-blue);
  color: var(--text-light);
  padding: 2.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-anthracite);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid rgba(14, 90, 138, 0.18);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-anthracite);
  background: #F8FAFC;
  transition: all var(--transition-fast);
  text-overflow: ellipsis;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-vivid);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

.file-drop-zone {
  border: 1.5px dashed rgba(2, 132, 199, 0.42);
  background: #F0F9FF;
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
}

.file-drop-zone input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.5rem auto 0;
  font-size: 0.82rem;
}

/* RGPD Checkbox & First-Layer Legal Info */
.rgpd-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.86rem;
  color: var(--text-body);
}

.rgpd-check-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand-vivid);
  flex-shrink: 0;
  cursor: pointer;
}

.rgpd-check-wrap a {
  color: var(--brand-vivid);
  text-decoration: underline;
  font-weight: 600;
}

.form-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.rgpd-legal-summary {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  background: #F8FAFC;
  border: 1px solid rgba(14, 90, 138, 0.12);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-status-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}

.form-status-msg.success {
  display: block;
  background: #ECFDF5;
  border: 1px solid #10B981;
  color: #065F46;
}

.form-status-msg.error {
  display: block;
  background: #FEF2F2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

.tech-contact-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(186, 230, 253, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 0.95rem;
}

.tech-contact-card strong {
  display: block;
  color: #7DD3FC;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

/* --- 9. Technical Table --- */
.geo-specs-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.geo-specs-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.geo-specs-table th {
  background: linear-gradient(90deg, #1B3B5A 0%, #0E5A8A 100%);
  color: var(--text-light);
  padding: 1rem 1.2rem;
  font-weight: 700;
}

.geo-specs-table td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid rgba(14, 90, 138, 0.10);
  color: var(--text-body);
}

.geo-specs-table tr:nth-child(even) td {
  background: #F8FBFF;
}

/* --- 10. Venues Grid --- */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.venue-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FAFF 100%);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.venue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38BDF8, #0284C7);
}

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

.venue-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.venue-distance {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--brand-mid);
  background: var(--brand-ice);
  padding: 0.24rem 0.62rem;
  border-radius: 99px;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

/* --- 11. Portfolio Grid & Lightbox Zoom --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  background: var(--bg-white);
  border: 1px solid rgba(14, 90, 138, 0.2);
  color: var(--text-anthracite);
  padding: 0.55rem 1.15rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, #0284C7 0%, #1B3B5A 100%);
  color: var(--text-light);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.project-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  border: 1px solid rgba(2, 132, 199, 0.16);
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-med);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-vivid);
}

.project-img-box {
  height: 225px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.project-card:hover .project-img-box img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.2rem 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-client-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-mid);
  background: var(--brand-ice);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.45rem;
}

.project-info h3 {
  font-size: 1.14rem;
  margin-bottom: 0.45rem;
}

.project-info p {
  font-size: 0.89rem;
  color: var(--text-body);
}

/* --- 12. FAQ Accordion --- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(22, 51, 78, 0.05);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-anthracite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--brand-vivid);
  font-weight: 800;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-body);
  font-size: 0.94rem;
  border-top: 1px solid #F0F9FF;
  padding-top: 0.95rem;
}

/* --- 13. Sub-page Hero & Legal Document Content --- */
.page-hero {
  background: var(--mesh-hero);
  color: var(--text-light);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  font-size: 0.82rem;
  color: #BAE6FD;
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: #7DD3FC;
  font-weight: 600;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.page-hero p {
  font-size: 1.05rem;
  color: #E0F2FE;
  max-width: 740px;
}

.legal-doc-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  max-width: 900px;
  margin: 0 auto;
}

.legal-doc-card h2 {
  font-size: 1.4rem;
  margin: 1.75rem 0 0.65rem;
}

.legal-doc-card h2:first-child {
  margin-top: 0;
}

.legal-doc-card p, .legal-doc-card li {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-doc-card ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

/* --- 14. Footer & Legal Links --- */
.site-footer {
  background: linear-gradient(160deg, #152E47 0%, #1B3B5A 60%, #12283E 100%);
  color: #BAE6FD;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(125, 211, 252, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.95rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: #7DD3FC;
}

.footer-bottom {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(186, 230, 253, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.81rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links a {
  color: #E0F2FE;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 15. Lightbox Modal & Cookie Consent Banner --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 32, 50, 0.92);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 1080px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  max-height: 82vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #F0F9FF;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Cookie Banner (RGPD / LSSI) */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 90px;
  max-width: 620px;
  background: rgba(22, 51, 78, 0.96);
  backdrop-filter: blur(16px);
  color: #F0F9FF;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  box-shadow: 0 20px 45px rgba(12, 34, 56, 0.45);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.83rem;
}

.cookie-banner.show {
  display: flex;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #fff;
}

.cookie-btn.reject {
  background: rgba(255, 255, 255, 0.1);
  color: #BAE6FD;
  border-color: rgba(186, 230, 253, 0.3);
}

/* Floating WhatsApp */
#whatsapp-float {
  position: fixed;
  inset: auto 18px 18px auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: transform var(--transition-fast);
}

#whatsapp-float:hover {
  transform: scale(1.08);
}

#whatsapp-float img {
  width: 29px;
  height: 29px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ==========================================================================
   16. TABLET & MOBILE ADAPTATION (ZERO HORIZONTAL CLIPPING)
   ========================================================================== */

@media (max-width: 1060px) {
  .hero-grid,
  .tech-form-container,
  .dual-audience-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .portfolio-grid,
  .venues-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 820px) {
  :root {
    --container-padding: 1rem;
  }

  .topbar {
    display: none;
  }

  .navbar {
    height: 68px;
    gap: 0.5rem;
  }

  .brand img {
    height: 34px;
    max-width: 175px;
  }

  .nav-right {
    gap: 0.45rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 84%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(165deg, #16334E 0%, #0E5A8A 100%);
    border-left: 1px solid rgba(186, 230, 253, 0.25);
    flex-direction: column;
    align-items: flex-start;
    padding: 84px 1.5rem 2rem;
    gap: 0.9rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1001;
    box-shadow: -12px 0 36px rgba(12, 34, 56, 0.45);
  }

  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    font-size: 1.05rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.8rem 1rem !important;
  }

  .hero-expo {
    padding: 2.75rem 0 3.25rem;
  }

  .hero-showcase-card img {
    height: 235px;
  }

  .section {
    padding: 3.25rem 0;
  }

  .bento-grid,
  .portfolio-grid,
  .venues-grid,
  .hero-metrics,
  .form-grid-2,
  .form-actions-row,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .tech-form-main,
  .tech-form-sidebar,
  .audience-card,
  .legal-doc-card {
    padding: 1.35rem;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 84px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .brand img {
    height: 28px;
    max-width: 142px;
  }

  .lang-switcher {
    padding: 0.14rem;
    gap: 0.08rem;
  }

  .lang-link {
    font-size: 0.66rem;
    padding: 0.26rem 0.38rem;
  }

  .nav-toggle {
    width: 36px;
    height: 34px;
  }

  .nav-toggle .hamburger,
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    width: 18px;
    left: 8px;
  }
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    left: 0;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group a {
    width: 100%;
  }

  .hero-showcase-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}
