/* =========================================================
   LIGHT-DEC HUB — STYLESHEET
   Palette : #282828 (fond), #ffffff (texte/accent), #d9d9d9 (texte secondaire)
   Le Hub est volontairement neutre (blanc + gris) : c'est la combinaison
   de tout le spectre des pôles. Les couleurs de pôle (violet/bleu/vert)
   n'apparaissent que dans les cases "Notre spectre".
   Polices : Montserrat (titres), Urbanist (texte courant)
   ========================================================= */

:root {
  --bg: #282828;
  --bg-alt: #232323;
  --card: #323232;
  --white: #ffffff;
  --gray: #d9d9d9;
  --gray-dim: #9a9a9a;
  --accent: #ffffff;
  --accent-dim: #d9d9d9;
  --accent-soft: rgba(255, 255, 255, 0.12);

  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Urbanist', sans-serif;

  --container: 1320px;
  --radius: 4px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-title); margin: 0; color: var(--white); }
p { margin: 0; color: var(--gray); text-align: justify; text-justify: inter-word; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-dim); }

#submit-btn.btn-primary {
  background: var(--bg);
  color: var(--white);
}
#submit-btn.btn-primary:hover {
  background: #000000;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 10px 20px; font-size: 0.75rem; }
.btn-full { width: 100%; }

/* ---------- Éléments signature : LED + traces de circuit ---------- */
.led-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7);
  animation: led-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes led-pulse {
  0%   { box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7), 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7), 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7), 0 0 0 0 rgba(255, 255, 255, 0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.circuit-divider {
  position: relative;
  z-index: 5;
  height: 8px;
  margin: 0;
}
.circuit-divider::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 92%;
  height: 130px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.09) 35%, rgba(255, 255, 255, 0.03) 60%, transparent 85%);
  filter: blur(36px);
  pointer-events: none;
}
.circuit-divider::after {
  display: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1500px;
  padding: 0 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transform: translateZ(0);
}
.logo-mark-footer {
  height: 36px;
}
.logo-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.09em;
  color: var(--white);
}
.logo-dash {
  display: inline-block;
  width: 9px;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  margin: 0 7px 0 3px;
}
.footer-inner .logo-dash {
  width: 10px;
  height: 4px;
  margin: 0 8px 0 4px;
}
.footer-inner .logo-text {
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  gap: clamp(8px, 1.4vw, 26px);
  margin-left: clamp(16px, 3vw, 48px);
}
.main-nav a {
  font-family: var(--font-title);
  font-size: clamp(0.66rem, 0.95vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--white); }

/* Liens vers les pôles : couleur propre à chaque pôle */
.main-nav a[href*="systems.light-dec.com"] {
  color: #8A70D6;
}
.main-nav a[href*="systems.light-dec.com"]::after { background: #8A70D6; }
.main-nav a[href*="systems.light-dec.com"]:hover { color: #a690e3; }

.main-nav a[href*="factory.light-dec.com"] {
  color: #6C8CFF;
}
.main-nav a[href*="factory.light-dec.com"]::after { background: #6C8CFF; }
.main-nav a[href*="factory.light-dec.com"]:hover { color: #8fa6ff; }

.scroll-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--gray), var(--white));
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.6);
  transition: width 0.1s linear;
}

.mobile-only-link { display: none; }
.mobile-link-logo {
  height: 22px;
  width: auto;
  display: block;
}

.pole-links {
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
  margin-left: clamp(8px, 1.5vw, 20px);
  flex-shrink: 0;
}
.pole-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1.5px solid currentColor;
  transition: transform var(--transition), filter var(--transition), background var(--transition);
}
.pole-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}
.pole-link-logo {
  height: 24px;
  width: auto;
  display: block;
}
.pole-link--systems:hover { background: rgba(138, 112, 214, 0.1); border-color: #8A70D6; }
.pole-link--factory:hover { background: rgba(108, 140, 255, 0.1); border-color: #6C8CFF; }
.pole-link--systems { border-color: rgba(138, 112, 214, 0.5); }
.pole-link--factory { border-color: rgba(108, 140, 255, 0.5); }

.header-cta {
  margin-left: clamp(8px, 1.5vw, 16px);
  padding: clamp(6px, 0.7vw, 9px) clamp(10px, 1.2vw, 16px);
  font-size: clamp(0.6rem, 0.7vw, 0.68rem);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 50px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(560px, 0.58fr) minmax(0, 1.75fr);
  gap: 8px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
}
.hero-copy .accent { color: var(--accent); }
.hero-copy .no-wrap { white-space: nowrap; }

.hero-lead {
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media {
  position: relative;
  min-width: 0;
  margin-left: -220px;
  margin-right: -17vw;
}
.hero-glow {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 55%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 72%);
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 66% 50%, #000 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 66% 50%, #000 82%, transparent 100%);
}

/* ---------- Sections génériques ---------- */
.section {
  position: relative;
  padding: 110px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.section::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 50%;
  width: 200px;
  max-width: 55%;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.8;
  pointer-events: none;
}
#mission {
  padding-top: 100px;
}
#mission,
#locaux,
#equipe,
#partenaires,
#contact {
  border-top-color: rgba(40, 40, 40, 0.09);
}
#mission::before,
#locaux::before,
#equipe::before,
#partenaires::before,
#contact::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
}
.section-alt { background: var(--bg); }

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  max-width: 720px;
  margin-bottom: 64px;
  text-transform: uppercase;
}

/* ---------- Mission ---------- */
#mission {
  background: var(--white);
}
#mission .section-title {
  color: var(--bg);
}
#mission .mission-card p {
  color: #5a5a5a;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mission-card {
  background: #f4f3f8;
  border: 1px solid rgba(40, 40, 40, 0.08);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color var(--transition), transform var(--transition);
}
.mission-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.mission-index {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
#mission .mission-index {
  color: var(--bg);
  border-color: var(--bg);
}
.mission-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  text-transform: none;
  color: var(--bg);
}
.mission-card p { font-size: 0.95rem; }

/* ---------- Produits ---------- */
/* ---------- Produits ---------- */
.products-section {
  position: relative;
  overflow: hidden;
}
.products-bg {
  display: none;
}
.products-section .container {
  max-width: 1520px;
}

.product-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 0;
}
.product-row-reverse {
  grid-template-columns: 1fr 1.4fr;
}
.product-row-reverse .product-media { order: 2; }
.product-row-reverse .product-copy { order: 1; }

.product-media img {
  width: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, #000 45%, transparent 100%);
}
.product-copy h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.product-tagline {
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.22rem;
  margin-bottom: 20px;
}
.product-copy p:not(.product-tagline) { font-size: 1.22rem; line-height: 1.7; }

.badge {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 5px 12px;
  vertical-align: middle;
}

/* ---------- Partenaires ---------- */
#partenaires {
  background: var(--white);
}
#partenaires .section-title {
  color: var(--bg);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner-logo {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(40, 40, 40, 0.04), 0 4px 12px rgba(40, 40, 40, 0.06);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.partner-logo:hover {
  border-color: rgba(40, 40, 40, 0.15);
  box-shadow: 0 8px 16px rgba(40, 40, 40, 0.1), 0 16px 32px rgba(40, 40, 40, 0.08);
  transform: translateY(-4px);
}
.partner-logo img {
  max-height: 42px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition);
}
.partner-logo:hover img {
  transform: scale(1.08);
}

/* ---------- Nos locaux ---------- */
#locaux {
  background: var(--white);
}
#locaux .section-title {
  color: var(--bg);
}
.facility-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 40px;
  color: #5a5a5a;
}
.facility-media {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
}
.facility-media img {
  width: 100%;
  display: block;
  filter: grayscale(1);
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.facility-card {
  background: #f4f3f8;
  border: 1px solid rgba(40, 40, 40, 0.08);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.facility-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 40px -12px rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}
.facility-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--bg);
  text-transform: none;
}
.facility-card p {
  font-size: 0.95rem;
  color: #5a5a5a;
}

/* ---------- Équipe ---------- */
#equipe {
  background: var(--white);
}
#equipe .section-title {
  color: var(--bg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 140px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.team-card {
  text-align: center;
}
.team-photo {
  position: relative;
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f3f8;
  border: 1px solid rgba(40, 40, 40, 0.1);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}
.team-photo-overlay svg {
  width: 34px;
  height: 34px;
}
.team-photo:hover .team-photo-overlay {
  opacity: 1;
}
.team-card:hover .team-photo {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 32px 6px rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
}
.team-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-title);
  text-transform: none;
  margin-bottom: 6px;
  color: var(--bg);
}
.team-role {
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.team-bio {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5a5a5a;
  margin-top: 10px;
}

/* ---------- Contact ---------- */
#contact {
  background: var(--white);
}
#contact .section-title {
  color: var(--bg);
}
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.contact-lead {
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 420px;
  color: #5a5a5a;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-details li { display: flex; align-items: center; gap: 14px; }
.contact-details a { color: #444; transition: color var(--transition); font-size: 1rem; }
.contact-details a:hover { color: var(--accent); }
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-form {
  background: #f4f3f8;
  border: 1px solid rgba(40, 40, 40, 0.08);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}
.form-row input,
.form-row textarea {
  background: var(--white);
  border: 1px solid rgba(40, 40, 40, 0.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.char-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 1;
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(40, 40, 40, 0.55);
  pointer-events: none;
  user-select: none;
}

.form-row {
  position: relative;
}

.form-row input {
  padding-right: 74px;
}

.form-row textarea {
  padding-right: 74px;
  padding-bottom: 30px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}
.form-status.success { color: #7fd68a; }
.form-status.error { color: #e57373; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-tagline { font-size: 0.9rem; color: var(--gray-dim); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-size: 0.82rem;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--gray-dim); width: 100%; text-align: center; margin-top: 10px; }
.footer-copy a { color: var(--gray-dim); text-decoration: underline; }
.footer-copy a:hover { color: var(--white); }

/* ---------- Reveal au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.product-copy.reveal {
  transition-delay: 0.12s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .section-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
}

/* Écrans de faible hauteur (PC portable) : on resserre pour que
   les cartes du spectre restent visibles sans scroller */
@media (max-height: 800px) and (min-width: 961px) {
  .hero-nomedia { padding: 78px 0 0; }
  .hero-copy h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
  .hero-copy .eyebrow { margin-bottom: 6px; }
  .spectrum-rays { height: 60px; margin-top: 6px; }
  .spectrum-intro { margin-top: 0; }
  .rayons-grid { margin-bottom: -30px; }
  .scroll-hint { display: none; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 1; max-width: 100%; }
  .hero-media { order: 2; margin-right: 0; margin-left: 0; }
  .product-row,
  .product-row-reverse { grid-template-columns: 1fr; }
  .product-row-reverse .product-media,
  .product-row-reverse .product-copy { order: initial; }
  .facility-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .main-nav, .header-cta, .pole-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-only-link { display: block; }

  .main-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 0 24px;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  }
  .main-nav.is-open {
    max-height: 400px;
    opacity: 1;
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .hero-copy .no-wrap { white-space: normal; }

  .hero { padding: 128px 0 70px; }
  .section { padding: 80px 0; }
  .mission-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; gap: 40px; max-width: 360px; }
  .team-photo { width: 120px; height: 120px; }
  .section-title { margin-bottom: 44px; }
}

@media (max-width: 480px) {
  .container { padding: 0 28px; }
  .contact-form { padding: 28px 22px; }
  .hero-copy .no-wrap { white-space: normal; }
}

/* =========================================================
   HUB — styles spécifiques au site vitrine principal
   ========================================================= */

/* Hero centré sans photo (page d'accueil du groupe) */
.hero-nomedia { padding: 100px 0 0; }
.hero-with-spectrum { padding-bottom: 30px; position: relative; z-index: 2; }
.hero-inner-centered {
  display: block;
  text-align: center;
}
.hero-copy-wide {
  max-width: 720px;
  margin: 0 auto;
}
.hero-inner-centered .eyebrow,
.hero-inner-centered .hero-actions {
  justify-content: center;
}
.hero-inner-centered .hero-lead {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.spectrum-cta-heading {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
  text-align: center;
  text-transform: none;
}
.spectrum-intro {
  text-align: center;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .spectrum-cta-heading { font-size: 1.5rem; gap: 8px; }
}
.spectrum-cta-gradient {
  background: linear-gradient(90deg, #8A70D6, #6C8CFF, #67D5A5, #8A70D6);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cta-gradient-shift 6s ease-in-out infinite;
}
@keyframes cta-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.spectrum-cta-arrow {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  font-weight: 700;
  animation: cta-arrow-bounce 1.6s ease-in-out infinite;
}
@keyframes cta-arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}
.eyebrow-centered {
  justify-content: center;
}

.spectrum-rays {
  width: 100%;
  height: 100px;
  margin-top: 15px;
  margin-bottom: 0;
}
.spectrum-rays svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.ray {
  fill: none;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-ray 0.7s ease-out forwards;
}
.ray--systems {
  stroke: #8A70D6;
  filter: drop-shadow(0 0 5px rgba(138, 112, 214, 0.9));
  animation-delay: 0.1s;
}
.ray--factory {
  stroke: #6C8CFF;
  filter: drop-shadow(0 0 5px rgba(108, 140, 255, 0.9));
  animation-delay: 0.35s;
}
.ray--blink {
  stroke: rgba(255, 255, 255, 0.35);
  animation-delay: 0.6s;
}
@keyframes draw-ray {
  to { stroke-dashoffset: 0; }
}
@media (max-width: 960px) {
  .spectrum-rays { display: none; }
}

/* Nos rayons */
.spectrum-bg-bounds {
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.spectrum-gray-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.13) 85%,
    rgba(255, 255, 255, 0.16) 100%
  );
  background-size: 140% 140%;
  background-position: 0% 50%;
  animation: gray-bg-shift 20s ease-in-out infinite;
}
@keyframes gray-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 15% 50%; }
}
@media (max-width: 960px) {
  .spectrum-gray-bg { display: none; }
}

.spectrum-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 960px) {
  .spectrum-particles { display: none; }
}

.rayons-grid {
  position: relative;
  z-index: 2;
  margin-top: 0;
  margin-bottom: -55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rayon-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--card);
  background-clip: padding-box;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.rayon-icon-badge,
.rayon-body,
.rayon-footer {
  position: relative;
  z-index: 5;
}

/* Effet lumineux + couleur propre à chaque pôle */
.rayon-card--systems {
  border: 1.5px solid rgba(138, 112, 214, 0.5);
  box-shadow: 0 0 24px -4px rgba(138, 112, 214, 0.35);
  animation: glow-sweep-systems 1.1s ease-out 0.3s 1;
}

.rayon-card--systems .rayon-eyebrow { color: #8A70D6; }

.rayon-card--factory {
  border: 1.5px solid rgba(108, 140, 255, 0.5);
  box-shadow: 0 0 24px -4px rgba(108, 140, 255, 0.35);
  animation: glow-sweep-factory 1.1s ease-out 0.55s 1;
}

.rayon-card--factory .rayon-eyebrow { color: #6C8CFF; }

.rayon-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 3%;
  z-index: 0;
  display: block;
  transition: transform 0.5s ease;
}
.rayon-card--factory .rayon-photo {
  object-position: center top;
}
.rayon-card:hover .rayon-photo {
  transform: scale(1.04);
}
.rayon-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 190px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, transparent 0%, transparent 55%, rgba(8, 8, 10, 0.9) 100%),
    linear-gradient(to bottom, rgba(8, 8, 10, 0.65) 0%, transparent 18%, rgba(8, 8, 10, 0.75) 45%, rgba(8, 8, 10, 0.95) 62%, rgba(10, 10, 12, 0.98) 100%);
}


/* Les effets de survol sont réservés aux appareils disposant d'une vraie souris.
   Sur mobile, un :hover persistant après un retour navigateur peut absorber
   le premier appui sur une carte. */
@media (hover: hover) and (pointer: fine) {
  .rayon-card:hover {
    transform: none;
  }

  .rayon-card--systems:hover {
    border-color: #8A70D6;
    box-shadow: 0 0 40px -2px rgba(138, 112, 214, 0.6);
  }

  .rayon-card--factory:hover {
    border-color: #6C8CFF;
    box-shadow: 0 0 40px -2px rgba(108, 140, 255, 0.6);
  }

  .rayon-card--blink:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
  }

  .rayon-card:hover .rayon-logo svg {
    transform: translateY(-3px);
  }

  .rayon-card:hover .rayon-icon-badge {
    transform: translateY(-4px) scale(1.05);
  }

  .rayon-card:hover .rayon-footer {
    gap: 12px;
    filter: brightness(1.08);
  }
}

@keyframes glow-sweep-systems {
  0% {
    box-shadow: 0 0 24px -4px rgba(138, 112, 214, 0.35);
  }
  35% {
    box-shadow: 0 0 55px 4px rgba(138, 112, 214, 0.85);
  }
  100% {
    box-shadow: 0 0 24px -4px rgba(138, 112, 214, 0.35);
  }
}
@keyframes glow-sweep-factory {
  0% {
    box-shadow: 0 0 24px -4px rgba(108, 140, 255, 0.35);
  }
  35% {
    box-shadow: 0 0 55px 4px rgba(108, 140, 255, 0.85);
  }
  100% {
    box-shadow: 0 0 24px -4px rgba(108, 140, 255, 0.35);
  }
}


.rayon-card--blink {
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  opacity: 0.85;
  cursor: default;
}

.rayon-card--blink .rayon-logo svg {
  filter: grayscale(1);
}
.rayon-card--blink .rayon-eyebrow { color: var(--gray-dim); }

.rayon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding-top: 14px;
  margin-bottom: 20px;
}
.rayon-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0;
  flex-shrink: 1;
}
.rayon-logo svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.rayon-icon-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.rayon-icon-badge svg {
  width: 30px;
  height: 30px;
  color: #ffffff;
}
.rayon-card--systems .rayon-icon-badge { background: #8A70D6; }
.rayon-card--factory .rayon-icon-badge { background: #6C8CFF; }
.rayon-tagline-text {
  font-size: 1rem;
  line-height: 1.45;
  margin: 30px 0 0;
  text-align: center;
  color: var(--gray);
}
.rayon-body {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.rayon-eyebrow {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rayon-body h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rayon-body p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gray);
  text-align: left;
}
.rayon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  background: var(--card);
  border-radius: 0 0 19px 19px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  transition: gap var(--transition), filter var(--transition);
}

.rayon-button-arrow {
  transition: transform var(--transition);
}
.rayon-card--systems .rayon-footer { background: #8A70D6; }
.rayon-card--factory .rayon-footer { background: #6C8CFF; }
.rayon-card--blink .rayon-footer { background: rgba(255, 255, 255, 0.1); color: var(--gray); }

.rayon-card-soon {
  justify-content: center;
}
.rayon-body-soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 22px 20px;
  flex: 1;
}
.rayon-body-soon .rayon-logo {
  padding-top: 2px;
  margin-bottom: 20px;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.rayon-body-soon h3 {
  color: var(--white);
}

.footer-nav-secondary {
  margin-top: -12px;
}
.footer-pole-link--systems { color: #8A70D6; }
.footer-pole-link--factory { color: #6C8CFF; }

@media (max-width: 960px) {
  .rayons-grid { grid-template-columns: 1fr; }
}

/* Indice de scroll : flou en bas d'écran au chargement, qui s'efface en descendant */
.scroll-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.14) 30%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0.015) 85%,
    transparent 100%
  );
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  opacity: 1;
  transition: opacity 0.5s ease;
}
.scroll-hint.is-hidden {
  opacity: 0;
}

/* ---------- Easter egg : chaos coloré ---------- */
#easter-dot {
  cursor: pointer;
}
body.site-chaos {
  animation: chaos-spin 2s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
  transform-origin: center center;
}
@keyframes chaos-spin {
  0%   { filter: hue-rotate(0deg) saturate(1) brightness(1); transform: rotate(0deg) scale(1); }
  10%  { filter: hue-rotate(60deg) saturate(3) brightness(1.15); transform: rotate(15deg) scale(1.03); }
  20%  { filter: hue-rotate(140deg) saturate(4) brightness(0.95); transform: rotate(-20deg) scale(0.97); }
  30%  { filter: hue-rotate(220deg) saturate(4) brightness(1.2); transform: rotate(25deg) scale(1.05); }
  40%  { filter: hue-rotate(300deg) saturate(5) brightness(0.9); transform: rotate(-30deg) scale(0.95); }
  50%  { filter: hue-rotate(360deg) saturate(4) brightness(1.15); transform: rotate(20deg) scale(1.04); }
  60%  { filter: hue-rotate(440deg) saturate(3) brightness(1); transform: rotate(-15deg) scale(0.98); }
  70%  { filter: hue-rotate(520deg) saturate(3) brightness(1.1); transform: rotate(10deg) scale(1.02); }
  80%  { filter: hue-rotate(600deg) saturate(2) brightness(0.95); transform: rotate(-6deg) scale(0.99); }
  90%  { filter: hue-rotate(680deg) saturate(1.5) brightness(1.05); transform: rotate(3deg) scale(1.01); }
  100% { filter: hue-rotate(720deg) saturate(1) brightness(1); transform: rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.site-chaos { animation: none; }
}

/* ---------- Transition au clic sur une carte du spectre ---------- */
.rayon-card.is-navigating {
  animation: card-launch 0.4s ease forwards;
  pointer-events: none;
}
.rayon-card--systems.is-navigating {
  box-shadow: 0 0 60px 10px rgba(138, 112, 214, 0.7);
}
.rayon-card--factory.is-navigating {
  box-shadow: 0 0 60px 10px rgba(108, 140, 255, 0.7);
}
@keyframes card-launch {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.045); filter: brightness(1.15); }
  100% { transform: scale(1.02); filter: brightness(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .rayon-card.is-navigating { animation: none; }
}

/* ---------- Sélecteur de langue FR / EN ---------- */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: clamp(8px, 1.2vw, 16px);
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.language-switch span {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.2);
}
.language-switch button {
  appearance: none;
  border: 0;
  padding: 3px 4px;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-title);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), opacity var(--transition);
}
.language-switch button:hover,
.language-switch button.is-active {
  color: var(--white);
}
.language-switch button.is-active {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.38);
}
.language-switch button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 1180px) {
  .language-switch {
    margin-left: auto;
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .language-switch {
    gap: 3px;
    margin-right: 10px;
    padding: 4px 6px;
  }
  .language-switch button {
    font-size: 0.62rem;
  }
}
