/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #050505;
  font-family: "Oxanium", sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* ====== GLOBAL ====== */
:root {
  --red: #ff1a2d;
  --white: #ffffff;
  --dark: #050505;
  --light-gray: #b1b1b1;
  --glass: rgba(255,255,255,0.07);
}

body.inner-page {
  padding-top: 80px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-dark::before,
.section-accent::before,
.section-dark-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.section-dark::before {
  background: radial-gradient(circle at top, rgba(255,26,45,0.18), rgba(0,0,0,0.92));
}

.section-accent::before {
  background: radial-gradient(circle at top, rgba(255,26,45,0.26), rgba(10,0,0,0.96));
}

.section-dark-soft::before {
  background: radial-gradient(circle at top, rgba(255,26,45,0.12), rgba(3,3,3,0.96));
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--light-gray);
  margin-bottom: 8px;
}

.section-subtitle {
  max-width: 640px;
  margin: 8px auto 0;
  font-size: 0.98rem;
  color: #d0d0d0;
}

/* ====== LOADER ====== */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #20000a 0, #050505 55%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loader-inner {
  text-align: center;
  position: relative;
}

.loader-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--red);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 30px rgba(255,26,45,0.4);
  margin: 0 auto 18px;
}

.loader-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -105%);
  border-radius: 8px;
  background: radial-gradient(circle at top left, #ff5a70, #8b0012);
  box-shadow: 0 0 28px rgba(255,26,45,0.8);
}

#loader p {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--light-gray);
}

.dots::after {
  content: "...";
  animation: dots 1.3s steps(3,end) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

/* ====== HEADER ====== */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s;
}

.site-header.scrolled {
  background: rgba(5,5,5,0.96);
  border-bottom-color: rgba(255,255,255,0.16);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: white;
}

.brand-mark {
  font-family: "Orbitron";
  border: 2px solid var(--red);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--red);
}

.brand-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  font-family: "Orbitron";
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--light-gray);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--light-gray);
  text-decoration: none;
  transition: 0.2s;
}

.nav-link:hover {
  color: var(--red);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
}

.nav-cta:hover {
  background: var(--red);
  border-color: transparent;
  color: #fff;
}

/* ====== HERO / SLIDER ====== */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  margin-top: 80px;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,26,45,0.35), rgba(5,5,5,0.9));
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  width: min(90vw, 840px);
  padding: 28px 34px;
  border-radius: 18px;
  background: rgba(3,3,3,0.88);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.hero-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--light-gray);
  margin-bottom: 8px;
}

.hero-title {
  font-family: "Orbitron";
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.highlight {
  color: var(--red);
}

.slide-content p {
  font-size: 1rem;
  color: #dedede;
  margin-bottom: 18px;
}

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

.btn-link {
  font-size: 0.9rem;
  color: var(--light-gray);
  text-decoration: none;
}

.btn-link:hover {
  color: var(--white);
}

/* Slider buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  color: var(--red);
  border: 1px solid var(--red);
  padding: 8px 14px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.2s;
  z-index: 3;
}

.slider-btn:hover {
  background: var(--red);
  color: #fff;
}

.slider-btn.prev {
  left: 18px;
}

.slider-btn.next {
  right: 18px;
}

/* ====== ABOUT ====== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 14px;
  color: #e0e0e0;
}

.about-points {
  list-style: none;
  margin-top: 6px;
  color: #d0d0d0;
  font-size: 0.96rem;
}

.about-points li {
  margin-bottom: 4px;
}

.about-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(5,5,5,0.9);
  border: 1px solid rgba(255,255,255,0.1);
}

.about-card.mini {
  padding: 16px 18px;
}

.about-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--light-gray);
  margin-bottom: 6px;
}

.about-card h3 {
  margin-bottom: 10px;
}

.about-small {
  font-size: 0.9rem;
  color: #d0d0d0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.about-tags span {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
}

/* ====== SERVICES ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 26px;
}

.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 22px;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 18px 36px rgba(0,0,0,0.7);
}

.card-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--light-gray);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--red);
}

.card-text {
  color: #ccc;
  font-size: 0.94rem;
}

/* ====== PORTFOLIO / PROJECTS ====== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 26px;
}

.portfolio-grid.big {
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
}

.project {
  border-radius: 18px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: 0.3s;
}

.project img {
  width: 100%;
  display: block;
}

.project-inner {
  padding: 18px 20px 20px;
}

.project:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 18px 36px rgba(0,0,0,0.78);
}

.project h4, .project h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-family: "Orbitron", sans-serif;
}

.project-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--light-gray);
  margin-bottom: 6px;
}

.project p {
  color: #d0d0d0;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.project-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 0.9rem;
  color: #c8c8c8;
}

.project-list li {
  margin-bottom: 4px;
}

.featured-footer,
.portfolio-footer {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ====== CONTACT ====== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 34px;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  font-size: 0.98rem;
  margin-top: 16px;
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-list a {
  color: var(--red);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ====== CONTACT FORM ====== */
form.contact-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
}

form.contact-form input,
form.contact-form textarea {
  background: rgba(5,5,5,0.9);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 11px 14px;
  border-radius: 10px;
  color: white;
  font-size: 0.98rem;
  outline: none;
  font-family: Oxanium, sans-serif;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(255,20,30,0.4);
}

.btn-glow {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background: radial-gradient(circle at top left, #ff5a70, #a10018);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  font-family: Orbitron, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 0 22px rgba(255,30,40,0.45);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.btn-glow.small {
  padding: 9px 18px;
  font-size: 0.8rem;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,30,40,0.85);
}

.form-status {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--light-gray);
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 22px 0 28px;
  text-align: center;
  color: #aaa;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,5,0.96);
}

/* ====== BACKGROUND NEURAL ====== */
#bg-neural {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: transparent;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ====== HOLOGRAM EFFECT ====== */
.holo, .holo-card {
  position: relative;
  overflow: hidden;
}

.holo::before,
.holo-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 120deg, rgba(255,26,45,0.65), transparent, rgba(255,255,255,0.5), transparent, rgba(255,26,45,0.85));
  opacity: 0;
  transition: opacity 0.35s;
  mix-blend-mode: screen;
}

.holo::after,
.holo-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), rgba(5,5,5,0.96));
  z-index: -1;
}

.holo:hover::before,
.holo-card:hover::before {
  opacity: 1;
}

/* ====== REVEAL ====== */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out, filter 0.75s ease-out;
}

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

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  .hero {
    height: 90vh;
  }

  .slide-content {
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    max-width: 90%;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    flex-wrap: wrap;
  }

  body.inner-page {
    padding-top: 90px;
  }
}

@media (max-width: 640px) {
  .hero {
    margin-top: 76px;
  }

  .slide-content {
    padding: 18px 18px;
  }

  .hero-title {
    font-size: 1.7rem;
    letter-spacing: 0.06em;
  }

  .section {
    padding: 60px 0;
  }

  .cards-grid,
  .portfolio-grid {
    gap: 20px;
  }
}

/* ====== TRANSLATION MODULE ====== */
.translate-module {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.translate-module > summary {
  cursor: pointer;
  list-style: none;
}

.translate-module > summary::-webkit-details-marker {
  display: none;
}

.translate-module > summary::before {
  content: "▶ ";
  font-size: 0.8rem;
}

.translate-module[open] > summary::before {
  content: "▼ ";
}

.translate-inner {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: radial-gradient(circle at top, rgba(10,10,10,0.95), rgba(0,0,0,0.9));
  border: 1px solid rgba(255,255,255,0.08);
}


/* ====== WORKFLOW TERMINAL SECTION ====== */
.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
}

.terminal {
  background: radial-gradient(circle at top, #1a1016, #050507 70%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 55px rgba(0,0,0,0.9);
  padding: 14px 16px 18px;
  font-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
  color: #e6ffe6;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.terminal-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-header .red { background: #ff5f57; }
.terminal-header .amber { background: #febc2e; }
.terminal-header .green { background: #28c840; }

.terminal-title {
  margin-left: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.terminal-output {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
  color: #e7ffe7;
  min-height: 150px;
}

@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ====== SECTION BACKGROUND ANIMATIONS ====== */
.section-dark::before,
.section-accent::before,
.section-dark-soft::before {
  animation-duration: 18s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.section-dark::before {
  animation-name: sectionPulseDark;
}

.section-accent::before {
  animation-name: sectionPulseAccent;
}

.section-dark-soft::before {
  animation-name: sectionPulseSoft;
}

.no-anim::before {
  animation: none !important;
}

@keyframes sectionPulseDark {
  0% { transform: translateY(0px) scale(1); opacity: 0.95; }
  50% { transform: translateY(-8px) scale(1.02); opacity: 1; }
  100% { transform: translateY(4px) scale(1.01); opacity: 0.9; }
}

@keyframes sectionPulseAccent {
  0% { transform: translateX(0px) scale(1); opacity: 0.96; }
  50% { transform: translateX(-10px) scale(1.03); opacity: 1; }
  100% { transform: translateX(6px) scale(1.01); opacity: 0.92; }
}

@keyframes sectionPulseSoft {
  0% { transform: translateY(0px) scale(1); opacity: 0.94; }
  50% { transform: translateY(-6px) scale(1.02); opacity: 0.99; }
  100% { transform: translateY(3px) scale(1.0); opacity: 0.93; }
}

/* ====== MICRO-INTERACTIONS ====== */
.holo-card,
.card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.holo-card:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(0,0,0,0.9);
}

.about-tags span,
.card-tag {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-tags span:hover,
.card-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255,60,90,0.7);
  background: linear-gradient(135deg, #ff4b5c, #ff7a8a);
}

.btn-glow {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255,40,60,0.95);
}

.btn-link {
  position: relative;
  overflow: hidden;
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, #ff4b5c, #ffffff);
  transition: width 0.3s ease;
}

.btn-link:hover::after {
  width: 100%;
}

/* Hero slide content fade-in per slide */
.slide-content {
  opacity: 0;
  transform: translate(-50%, -44%);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* === Fix clics bloqués par les calques holographiques === */
.holo::before,
.holo::after,
.holo-card::before,
.holo-card::after {
  pointer-events: none;
}

/* S'assure que le contenu reste au-dessus visuellement */
.project-inner,
.ai-news-panel,
.ai-news-list {
  position: relative;
  z-index: 1;
}

/* Conteneur scroll IA (si utilisé) */
.ai-news-scroll {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.ai-news-scroll::-webkit-scrollbar {
  display: none;
}


/* ====== NEW HERO LAYOUT ====== */
.hero.hero-static {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  margin-top: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-main .hero-title {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-text {
  font-size: 1rem;
  color: #dedede;
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-actions {
  margin-bottom: 20px;
}

.hero-secondary {
  font-size: 0.9rem;
}

.hero-metas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.hero-meta {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(5,5,5,0.96));
}

.hero-meta-value {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--light-gray);
  margin-top: 3px;
}

.hero-panel {
  padding: 22px 22px 20px;
  border-radius: 18px;
}

.hero-panel-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--light-gray);
  margin-bottom: 10px;
}

.hero-panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: #e0e0e0;
}

.hero-panel-list li {
  margin-bottom: 6px;
}

.hero-panel-note {
  font-size: 0.82rem;
  color: var(--light-gray);
}

/* Hero responsive */
@media (max-width: 960px) {
  .hero.hero-static {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-main .hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 640px) {
  .hero.hero-static {
    margin-top: 76px;
  }

  .hero-main .hero-title {
    font-size: 1.8rem;
  }

  .hero-metas {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ====== AI LIVE FEED ====== */
#ai-feed {
  position: relative;
  z-index: 1;
}

.ai-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.ai-feed-placeholder {
  font-size: 0.9rem;
  color: var(--light-gray);
}

.ai-feed-card {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at top, rgba(255,255,255,0.05), rgba(5,5,5,1));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-feed-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--light-gray);
}

.ai-feed-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.ai-feed-meta {
  font-size: 0.78rem;
  color: var(--light-gray);
}

.ai-feed-summary {
  font-size: 0.85rem;
  color: #e0e0e0;
}

.ai-feed-link {
  font-size: 0.8rem;
  margin-top: 4px;
  text-decoration: none;
  text-underline-offset: 3px;
  color: var(--white);
}

.ai-feed-link:hover {
  text-decoration: underline;
}


/* ====== METHODE & LAB GRIDS ====== */
.method-grid,
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.method-step {
  min-height: 180px;
}

@media (max-width: 640px) {
  .method-grid,
  .lab-grid {
    gap: 16px;
  }
}


/* ====== QUANTUM GRID & SCANLINE ====== */
.quantum-grid {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(160,220,255,0.12) 1px, transparent 1px),
    linear-gradient(to right, rgba(160,220,255,0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  transform: translate3d(0,0,0);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(160,220,255,0.18) 45%,
    rgba(160,220,255,0.25) 50%,
    rgba(160,220,255,0.18) 55%,
    transparent 100%
  );
  mix-blend-mode: screen;
  animation: scanMove 12s linear infinite;
}

@keyframes scanMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}


/* ====== SECTION DIVIDERS ANIMÉS ====== */
.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, rgba(160,220,255,0.7), transparent);
  background-size: 200% 100%;
  opacity: 0.55;
  pointer-events: none;
  animation: dividerFlow 14s linear infinite;
}

@keyframes dividerFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ====== SECTION MÉTHODE - TIMELINE ====== */
#method .section-header {
  text-align: center;
}

#method .section-header h2 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  margin-top: 32px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.method-step {
  position: relative;
  flex: 1 0 200px;
}

.method-step .card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.method-step .card-title {
  color: #ff4b5c;
}

.method-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(160,220,255,0.0), rgba(160,220,255,0.8));
  opacity: 0.7;
}

.method-step:last-child::after {
  display: none;
}

@media (max-width: 880px) {
  .method-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .method-step {
    min-width: 240px;
  }
}


/* ====== NEURAL LINK PLAYGROUND ====== */
.neural-link {
  padding-top: 40px;
  padding-bottom: 40px;
}

.neural-link-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: center;
}

.neural-link-copy h2 {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.neural-link-hint {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--light-gray);
}

.neural-link-stage {
  min-height: 260px;
  padding: 16px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#neural-link-canvas {
  flex: 1;
  width: 100%;
  border-radius: 14px;
  display: block;
  background: radial-gradient(circle at top, #1a0004, #050509);
}

.neural-link-status {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--light-gray);
}

.neural-link-status.active {
  color: #ff4b5c;
}

.neural-link-status.hint {
  color: #f5f5f5;
}

@media (max-width: 960px) {
  .neural-link-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .neural-link {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Neutralisation des anciens backgrounds globaux */
#bg-neural,
.quantum-grid,
.scanline {
  display: none !important;
}

.section::before {
  content: none !important;
}


/* ====== SECTION MÉTHODE - CARDS & BACKGROUND ====== */
#method {
  position: relative;
  overflow: hidden;
}

#method .container {
  position: relative;
  z-index: 1;
}

#method::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,40,60,0.12), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(255,40,60,0.18), transparent 60%);
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: methodGlow 16s ease-in-out infinite alternate;
}

@keyframes methodGlow {
  0% {
    transform: translate3d(-10px, -6px, 0);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(10px, 8px, 0);
    opacity: 1;
  }
}

#method .method-step {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,10,12,0.96), rgba(20,0,6,0.96));
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}


/* ====== NEURO CANVAS GLOBAL BACKGROUND ====== */
.neuro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


/* Lang switcher */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding: 4px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), rgba(10,10,15,0.96));
  border: 1px solid rgba(255,255,255,0.12);
}

.lang-btn {
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: #f5f5f5;
  opacity: 0.7;
}

.lang-btn.lang-active {
  opacity: 1;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.3), rgba(255,70,100,0.9));
  box-shadow: 0 0 14px rgba(255,70,100,0.85);
}

/* RGPD note */
.rgpd-note {
  margin-top: 6px;
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.7;
}
