/* =============================================
   COMPRESSOR EVENT — Design System
   Dark theme + Rouge #E30613 (couleur logo)
   ============================================= */

/* ---- VARIABLES ---- */
:root {
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #181818;
  --bg-card-hover: #1f1f1f;

  --accent:        #FFFFFF;
  --accent-light:  #E8E8E8;
  --accent-dark:   #CCCCCC;
  --accent-glow:   rgba(255, 255, 255, 0.08);

  --text-primary:  #FFFFFF;
  --text-secondary:#A0A0A0;
  --text-muted:    #555555;

  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(255,255,255,0.25);

  --nav-height:    72px;
  --radius:        10px;
  --radius-lg:     16px;

  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-accent: 0 0 40px rgba(255,255,255,0.1);

  --font-main:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Syne', 'Bebas Neue', 'Inter', sans-serif;

  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

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

.accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

/* Section header */
.section-header {
  margin-bottom: 60px;
}

.section-header .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-header p {
  max-width: 560px;
  font-size: 1.05rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255,255,255,0.3), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: #0a0a0a;
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255,255,255,0.2), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 20px;
}
.btn-ghost:hover {
  background: var(--accent-glow);
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav end: social icons + toggle (right column) */
.nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(227,6,19,0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border-radius: 50px;
  padding: 6px 6px 6px 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  overflow: hidden;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #111111;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  overflow: visible;
}

/* Beam spot venant du haut */
.nav-links a::before {
  content: '';
  position: absolute;
  top: -var(--nav-height);
  top: -72px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 90px;
  background: conic-gradient(
    from 180deg at 50% 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

/* Halo glow sous le texte */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000000;
  text-shadow: none;
  font-weight: 700;
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.7rem;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.06);
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Bouton "Nous contacter" dans nav-end */
.nav-end > .btn-primary {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0a0a 50%, #E30613 100%);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 2px 16px rgba(227,6,19,0.35);
  transition: box-shadow 0.3s ease, transform 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-end > .btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(227,6,19,0.55);
}

.nav-end > .btn-primary:active,
.nav-end > .btn-primary:focus {
  filter: none;
  transform: none;
  box-shadow: 0 2px 16px rgba(227,6,19,0.35);
}

/* Nav right group — no longer needed, kept for backwards compat */
.nav-right {
  display: contents;
}

/* Nav Social Icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 0;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.nav-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.nav-social svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Logo texte dans l'en-tête du menu mobile ouvert */
.nav-mobile-header {
  display: none;
  list-style: none;
}

.nav-mobile-brand {
  font-family: 'Syne', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #111111;
  text-transform: uppercase;
}

.nav-mobile-brand span {
  color: #E30613;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 110px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-video.loaded {
  opacity: 1;
}

/* Image animée mobile (Ken Burns) */
@keyframes kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  33%  { transform: scale(1.06) translate(-1%, -1%); }
  66%  { transform: scale(1.1)  translate(1%, 0.5%); }
  100% { transform: scale(1)    translate(0, 0); }
}

.hero-bg-mobile {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: kenburns 14s ease-in-out infinite;
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.0) 0%,
    rgba(10,10,10,0.0) 40%,
    rgba(10,10,10,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-logo-eyebrow {
  display: block;
  width: 90px;
  height: auto;
  margin: 0 auto 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
  filter: drop-shadow(0 0 18px rgba(227,6,19,0.45)) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.hero-title {
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-title-main {
  font-family: 'Bebas Neue', 'Syne', sans-serif;
  font-size: clamp(0.75rem, 1.6vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.92;
  display: block;
  text-shadow:
    0 2px 30px rgba(0,0,0,0.6),
    0 0 80px rgba(0,0,0,0.3);
}

.hero-title-sub {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(0.75rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-top: 8px;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 255, 255, 0.15);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ---- STATS BAND ---- */
.stats-band {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Syne', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---- SERVICES SECTION ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* ---- CATALOGUE PREVIEW ---- */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-card-body {
  padding: 20px;
}

.product-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- FULL CATALOGUE PAGE ---- */
.catalogue-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.catalogue-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Product Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(10px);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.modal-body { padding: 28px; }

.modal-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.modal-specs { margin-bottom: 24px; }

.modal-specs h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.spec-list { display: grid; gap: 6px; }

.spec-item {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  align-items: flex-start;
}

.spec-item::before {
  content: '•';
  color: var(--accent);
  flex-shrink: 0;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); border-color: var(--accent); }

/* ---- PARTNERS ---- */
.partners-track {
  overflow: hidden;
  mask: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.partners-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.partners-inner img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(0.5);
  transition: var(--transition);
}

.partners-inner img:hover { filter: brightness(0) invert(1); }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255,255,255,0.03) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 16px; }
.cta-band p { margin-bottom: 36px; font-size: 1.05rem; }

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail-text span {
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer-brand img { height: 36px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* ---- PRESTATIONS PAGE ---- */
.prestations-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

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

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}

.team-card-body { padding: 20px; }

.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

.team-card .role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---- BLOG PAGE ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== CLIENTS GRID ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
  transition: var(--transition);
  min-height: 90px;
}

.client-logo:hover {
  border-color: var(--border-accent);
  color: var(--text-secondary);
  transform: translateY(-2px);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-body { padding: 20px; }

.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---- NOUVEAUTÉS 2026 ---- */
.nouveautes-banner {
  background: var(--bg-secondary);
  border: 1px solid rgba(227,6,19,0.25);
  border-radius: var(--radius-lg);
  padding: 28px 48px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.nouveautes-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: #E30613;
  border-radius: 4px 0 0 4px;
}

.nouveautes-banner-content { flex: 1; }

.nouveautes-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(227,6,19,0.1);
  color: #E30613;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(227,6,19,0.25);
  margin-bottom: 14px;
}

.nouveautes-banner-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.1;
}

.nouveautes-banner-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 24px;
  max-width: 480px;
  line-height: 1.6;
}

.nouveautes-stat {
  text-align: center;
  flex-shrink: 0;
  padding: 20px 32px;
  background: rgba(227,6,19,0.06);
  border: 1px solid rgba(227,6,19,0.18);
  border-radius: var(--radius);
}

.nouveautes-stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: #E30613;
  line-height: 1;
  display: block;
}

.nouveautes-stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Badge NOUVEAU sur les cartes produit */
.product-card { position: relative; }

.product-badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #E30613;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(227,6,19,0.45);
}

/* Filtre Nouveautés 2026 */
.filter-btn-new {
  border-color: rgba(227,6,19,0.4) !important;
  color: #E30613 !important;
  background: rgba(227,6,19,0.07) !important;
}

.filter-btn-new:hover,
.filter-btn-new.active {
  background: #E30613 !important;
  border-color: #E30613 !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .nouveautes-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 24px 28px;
    gap: 20px;
  }
  .nouveautes-stat { width: 100%; }
  .nouveautes-banner-title { font-size: 1.5rem; }
}

/* ---- ADMIN PANEL ---- */
.admin-body {
  background: #0d0d0d;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text-primary);
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
}

.admin-login-card img { height: 36px; margin-bottom: 32px; }
.admin-login-card h2 { margin-bottom: 8px; }
.admin-login-card p { font-size: 0.9rem; margin-bottom: 32px; }

.admin-sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.admin-sidebar img { height: 32px; margin-bottom: 32px; padding-left: 8px; }

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 4px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.admin-main {
  margin-left: 240px;
  padding: 40px;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.admin-header h1 { font-size: 1.6rem; }

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.admin-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-table td:first-child { color: var(--text-primary); font-weight: 600; }

.badge-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.action-edit { background: rgba(255,255,255,0.08); color: var(--accent); }
.action-edit:hover { background: rgba(255,255,255,0.15); }
.action-delete { background: rgba(239,68,68,0.1); color: #ef4444; }
.action-delete:hover { background: rgba(239,68,68,0.2); }

.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 760px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- DESKTOP RESET : empêche les styles mobile de déborder sur grand écran ---- */
@media (min-width: 769px) {
  .nav-links,
  .nav-links.open {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    background: #ffffff !important;
    border-radius: 50px !important;
    padding: 6px 6px 6px 10px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15) !important;
    gap: 4px !important;
    width: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    overflow: hidden !important;
  }

  .nav-links a,
  .nav-links.open a {
    color: #111111 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links.open a:hover,
  .nav-links.open a.active {
    color: #000000 !important;
    font-weight: 700 !important;
    background: none !important;
  }

  .nav-links.open .dropdown-menu {
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
    top: calc(100% + 8px) !important;
  }

  .nav-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid,
  .catalogue-grid,
  .team-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .clients-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

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

  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links, .nav-cta { display: none; }
  .nav-social { display: none; }
  .nav-toggle { display: flex; }

  /* Hero mobile : image animée à la place de la vidéo */
  .hero-video { display: none !important; }
  .hero-bg-mobile { display: block; }

  /* Masquer bouton "Nous contacter" dans la nav sur mobile */
  .nav-end > .btn-primary { display: none !important; }

  /* Hero mobile : masquer titre, sous-titre et bouton prestations */
  .hero-title { display: none !important; }
  .hero-title-sub { display: none !important; }
  .hero-subtitle { display: none !important; }
  .hero-actions a.btn-outline { display: none !important; }

  /* Hero mobile : centrer le logo et le bouton catalogue */
  .hero-content {
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
  }

  .hero-logo-eyebrow {
    display: none !important;
    width: 120px;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn-primary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    font-size: 1rem;
    padding: 16px 24px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #ffffff;
    padding: 16px 20px 28px;
    border-bottom: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    gap: 2px;
    border-radius: 0 0 16px 16px;
  }

  /* Logo en tête du menu ouvert */
  .nav-links.open .nav-mobile-header {
    display: flex;
    justify-content: center;
    padding: 4px 0 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    list-style: none;
  }

  /* Liens dans le menu mobile blanc */
  .nav-links.open a {
    color: #111111 !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 11px 16px;
  }

  .nav-links.open a:hover,
  .nav-links.open a.active {
    color: #E30613 !important;
    background: rgba(227,6,19,0.06) !important;
    font-weight: 700;
    text-shadow: none;
  }

  /* Supprime le halo blanc sous le texte (fond blanc = inutile) */
  .nav-links.open a::after {
    background: #E30613;
    box-shadow: 0 0 8px rgba(227,6,19,0.35);
  }

  /* Dropdown sous-menu dans le menu mobile */
  .nav-links.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0,0,0,0.04);
    border: none;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 2px 0 4px;
    box-shadow: none;
  }

  .nav-links.open .dropdown-menu a {
    color: #444444 !important;
    font-size: 0.85rem;
    padding: 9px 12px;
  }

  .nav-links.open .dropdown-menu a:hover {
    color: #E30613 !important;
    background: rgba(227,6,19,0.06) !important;
    text-shadow: none;
  }

  /* Bouton "Nous contacter" en bas du menu mobile */
  .nav-links.open .nav-cta { display: flex; margin: 12px 0 0; }

  .services-grid,
  .catalogue-grid,
  .team-grid,
  .blog-grid { grid-template-columns: 1fr; }

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .form-row { grid-template-columns: 1fr; }

  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 20px; }

  /* Masquer la vidéo dans le bloc "Organisation sur mesure" */
  .about-media { display: none !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ---- NOTIFICATION ---- */
.notif {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: var(--shadow);
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
}

.notif.show { transform: translateY(0); opacity: 1; }
.notif.success { border-color: #22c55e; color: #22c55e; }
.notif.error { border-color: #ef4444; color: #ef4444; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
