/* ========================================
   NUCLEOR — Custom CSS
   Dark navy theme, lime/magenta accents
   Values extracted from original site
   ======================================== */

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

:root {
  --navy: #0a0e27;
  --navy-light: #111640;
  --navy-mid: #0d1235;
  --blue: #0052CC;
  --lime: #99FF00;
  --magenta: #CC66FF;
  --white: #F0F4FF;
  --white-pure: #ffffff;
  --gray-300: #b0b3c6;
  --gray-600: #6b6e85;
  --text-dark: #000038;
  --text-blue: #0000EA;
  --radius: 16px;
  --radius-sm: 8px;
  --container: 1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.text-lime { color: var(--lime); }

/* --- NAV --- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--lime); }
.nav-links .nav-accent { color: var(--lime); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 750px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.75) 0%,
    rgba(10, 14, 39, 0.3) 50%,
    rgba(10, 14, 39, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  padding-top: 2rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.78rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-divider {
  width: 200px;
  height: 3px;
  background: var(--lime);
  margin-top: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-img--hero {
  width: 380px;
  height: 280px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.12);
}

.circle-img--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SUBTITLE BAND --- */
.section-subtitle-band {
  background: var(--white-pure);
  padding: 2.5rem 0;
}

.section-subtitle-band .container {
  max-width: 1200px;
}

.subtitle-headline {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--text-blue);
  line-height: 1.3;
}

.subtitle-headline strong {
  color: var(--text-blue);
  font-weight: 700;
}

.subtitle-headline .text-lime {
  color: var(--text-blue);
  font-weight: 700;
}

/* --- SECTION INTRO --- */
.section-intro {
  padding: 4rem 0 4rem;
  background: var(--navy);
}

.intro-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.intro-text p {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.54rem;
  line-height: 1.6;
}

.accent-text {
  color: var(--lime) !important;
  font-weight: 700 !important;
  font-size: 1.84rem !important;
  margin-top: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.accent-upper {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.intro-images {
  display: flex;
  gap: -1rem;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
}

.intro-images .circle-img--md {
  margin-left: -1.5rem;
  border: 3px solid var(--navy);
}

.intro-images .circle-img--md:first-child {
  margin-left: 0;
}

.intro-images .circle-img--md:nth-child(2) {
  width: 320px;
  height: 320px;
  z-index: 1;
}

/* --- Circle images --- */
.circle-img {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.circle-img--md {
  width: 280px;
  height: 280px;
  position: relative;
}

.circle-img--lg {
  width: 260px;
  height: 260px;
}

.circle-img--xl {
  width: 320px;
  height: 320px;
}

.circle-img--sm {
  width: 85px;
  height: 85px;
}

.circle-img--tall {
  width: 100px;
  height: 130px;
  border-radius: 999px;
}

.circle-img--portrait {
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.carrieres-portraits {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

/* --- SECTION MISSION --- */
.section-mission {
  padding: 4rem 0;
  background: var(--navy);
}

.mission-header {
  margin-bottom: 2.5rem;
}

.mission-header::after {
  content: '';
  display: block;
  width: 200px;
  height: 3px;
  background: var(--magenta);
  margin-top: 1.5rem;
}

.mission-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.86rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.3rem;
  line-height: 1.3;
}

.mission-header .label-accent {
  font-size: clamp(1.8rem, 3.5vw, 2.86rem);
}

.label-accent {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.label-magenta {
  color: var(--magenta);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 2.86rem;
}

.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-text p {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mission-image-wrap {
  position: relative;
}

.mission-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.mission-circle-accent {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  background: var(--lime);
  border-radius: 50%;
  z-index: 2;
}

/* --- STATEMENTS (White cards) --- */
.section-statements {
  padding: 3rem 0;
}

.statement-card {
  background: var(--white-pure);
  color: var(--text-dark);
  border-radius: 32px;
  padding: 2.5rem 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.statement-card p {
  font-size: 1.46rem;
  line-height: 1.4;
  color: var(--text-blue);
}

.statement-card strong {
  font-weight: 700;
}

.statement-card h3 {
  margin-bottom: 1.2rem;
}

.statement-highlight {
  font-weight: 700 !important;
  margin-top: 1.2rem !important;
  font-size: 1.1rem !important;
  color: var(--text-blue) !important;
}

.statement-shape {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: auto;
}

/* --- EXPERTS --- */
.section-experts {
  padding: 5rem 0;
}

.experts-title {
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.experts-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.86rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.3rem;
  line-height: 1.3;
}

.experts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}


.experts-text p {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.43rem;
  line-height: 1.6;
}

.experts-images {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.experts-images .circle-img--lg {
  border: 3px solid var(--navy);
}

.experts-images .circle-img--xl {
  margin-left: -2rem;
  border: 3px solid var(--navy);
  z-index: 1;
}

/* --- REJOIGNEZ-NOUS --- */
.section-rejoignez {
  padding: 4rem 0;
  text-align: left;
}

.section-rejoignez .container {
  border-bottom: 2px solid var(--lime);
  padding: 3rem 2rem;
}

.section-rejoignez h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.86rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

/* --- CARRIÈRES --- */
.section-carrieres {
  padding: 3rem 0 4rem;
}

.carrieres-headline {
  font-size: clamp(1.2rem, 2vw, 1.47rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.section-carrieres h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.carrieres-portraits {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.carrieres-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.carrieres-list li {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.8;
}

/* --- CONTACT --- */
.section-contact {
  padding: 5rem 0 3rem;
}

.contact-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--white-pure);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.required { color: #e53e3e; }

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d0d0d8;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white-pure);
  transition: border-color 0.2s;
  margin-top: 0.3rem;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--text-blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 234, 0.12);
}

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

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-send {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--magenta);
  color: var(--text-blue);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.19rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.btn-send:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-send:active {
  transform: translateY(0);
}

.form-result { margin-top: 1rem; }
.result.success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: var(--radius-sm);
}
.result.error {
  background: #ffebee;
  color: #b71c1c;
  padding: 1rem;
  border-radius: var(--radius-sm);
}

/* --- FOOTER --- */
#site-footer {
  background: var(--blue);
  padding: 1.2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 24px;
  width: auto;
}

.footer-center {
  font-size: 0.875rem;
  color: var(--white);
}

.footer-center a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-center a:hover { color: var(--white-pure); }

.footer-social a {
  color: var(--white);
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 0.7; }

/* --- COOKIE BANNER --- */
.cookie-dialog {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--text-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 560px;
  width: calc(100% - 2rem);
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.cookie-dialog[open] { display: block; }

.cookie-dialog p {
  font-size: 0.875rem;
  color: var(--lime);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-actions button,
.cookie-actions a {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s;
}

.cookie-accept {
  background: var(--lime);
  color: var(--text-dark);
}

.cookie-refuse {
  background: var(--text-dark);
  border: 1px solid var(--lime) !important;
  color: var(--lime);
}

.cookie-links {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.cookie-links a {
  color: var(--lime);
  text-decoration: underline;
}

/* --- LEGAL PAGE --- */
.section-legal {
  padding: 8rem 0 4rem;
}

.section-legal h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.section-legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-legal p {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-info {
  margin-bottom: 2rem;
}

.legal-info li {
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.legal-info strong {
  color: var(--white-pure);
}

/* --- Honeypot --- */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- HTMX indicator --- */
.htmx-indicator {
  display: none;
  color: var(--gray-600);
  font-size: 0.85rem;
}
.htmx-request .htmx-indicator { display: inline; }
.htmx-request .btn-send { opacity: 0.5; pointer-events: none; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image { display: none; }

  .hero-text h1 { font-size: 2rem; }

  .hero-divider { margin: 1.5rem auto 0; }

  .intro-images .circle-img--md {
    width: 100px;
    height: 100px;
  }

  .intro-images .circle-img--md:nth-child(2) {
    width: 120px;
    height: 120px;
  }

  .intro-text p { font-size: 1.1rem; }
  .accent-text { font-size: 1.2rem !important; }

  .mission-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .experts-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .experts-images {
    order: -1;
  }

  .circle-img--lg {
    width: 130px;
    height: 130px;
  }

  .circle-img--xl {
    width: 170px;
    height: 170px;
  }

  .carrieres-portraits {
    gap: 0.6rem;
  }

  .circle-img--sm {
    width: 60px;
    height: 60px;
  }

  .circle-img--tall {
    width: 70px;
    height: 95px;
  }

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

  .contact-card {
    padding: 1.5rem;
  }

  .statement-card {
    padding: 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
