/* TradeNeuralLab — Laboratoire pédagogique */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --lab-blue: #0EA5E9;
  --sky: #F0F9FF;
  --navy: #082F49;
  --grey: #94A3B8;
  --emerald: #059669;
  --white: #ffffff;
  --text: #1e293b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(8, 47, 73, 0.08);
  --radius: 12px;
  --max-w: 1200px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--lab-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
}

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-slogan {
  font-size: 0.72rem;
  color: var(--grey);
  font-style: italic;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9rem;
}

.main-nav a:hover { color: var(--lab-blue); }

.nav-cta {
  background: var(--lab-blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--sky) 0%, var(--white) 60%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--lab-blue); }

.hero-lead {
  font-size: 1.1rem;
  color: var(--grey);
  margin-bottom: 32px;
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--lab-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.hero-visual-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(8, 47, 73, 0.85);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
}

/* Stats band */
.stats-band {
  background: var(--navy);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--lab-blue);
  display: block;
}

.stat-item .stat-label {
  color: var(--grey);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt { background: var(--sky); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lab-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--grey);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--sky);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--lab-blue);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--grey);
  font-size: 0.92rem;
}

/* Protocol band */
.protocol-band {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
}

.protocol-band h2 { color: var(--white); }

.protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.protocol-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
}

.protocol-block h3 {
  color: var(--lab-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.protocol-block p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Reasons */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.reason-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.reason-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--lab-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.reason-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.reason-item p {
  color: var(--grey);
  font-size: 0.9rem;
}

/* Process steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-left: 3px solid var(--lab-blue);
  margin-left: 20px;
  padding-left: 32px;
  position: relative;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: -22px;
  top: 24px;
  width: 40px;
  height: 40px;
  background: var(--lab-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--grey);
  font-size: 0.9rem;
}

/* Format cards */
.format-card {
  text-align: center;
  padding: 36px 28px;
}

.format-card .format-type {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

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

/* Case study */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-study img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hypothesis-box {
  background: var(--sky);
  border-left: 4px solid var(--lab-blue);
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hypothesis-box strong {
  font-family: var(--font-heading);
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

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

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--grey);
}

.testimonial cite strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--lab-blue);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--grey);
  font-size: 0.92rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--lab-blue) 0%, #0284c7 100%);
  padding: 72px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--lab-blue);
}

.cta-section .btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}

/* Disclaimer */
.disclaimer-box {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 48px auto;
  max-width: var(--max-w);
}

.disclaimer-box p {
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.7;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--sky);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--grey);
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--lab-blue); }

/* Programs table */
.programs-grid {
  display: grid;
  gap: 24px;
}

.program-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.program-card:hover { box-shadow: var(--shadow); }

.program-code {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--lab-blue);
  font-size: 0.9rem;
  background: var(--sky);
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.program-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.program-card p {
  color: var(--grey);
  font-size: 0.9rem;
}

.program-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--grey);
}

.program-meta span {
  display: block;
  color: var(--emerald);
  font-weight: 600;
}

/* Services */
.service-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}

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

.service-card p { color: var(--grey); font-size: 0.92rem; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-tags span {
  background: var(--sky);
  color: var(--navy);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-block {
  background: var(--sky);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-info-block h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-info-item {
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.contact-info-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--lab-blue);
}

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

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--grey);
}

.form-check input { margin-top: 4px; }

.form-message {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 36px 0 16px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.95rem;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--text);
  font-size: 0.95rem;
}

.legal-content li { margin-bottom: 8px; }

.legal-updated {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 32px;
}

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

.team-member {
  text-align: center;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.team-member .role {
  color: var(--lab-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-member h3 { margin-bottom: 8px; }

.team-member p {
  color: var(--grey);
  font-size: 0.88rem;
}

/* Seminar calendar */
.seminar-list { display: grid; gap: 20px; }

.seminar-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.seminar-date {
  text-align: center;
  background: var(--sky);
  padding: 12px;
  border-radius: 8px;
}

.seminar-date .day {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.seminar-date .month {
  font-size: 0.8rem;
  color: var(--grey);
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--grey);
  padding: 64px 0 32px;
}

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

.footer-brand .logo-name {
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--grey);
  font-size: 0.88rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 24px;
  line-height: 1.6;
  max-width: 900px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.5;
  min-width: 280px;
}

.cookie-text a { color: var(--lab-blue); }

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-cookie-accept {
  background: var(--emerald);
  color: var(--white);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .protocol-grid,
  .case-study,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-meta { text-align: left; }

  .service-card {
    grid-template-columns: 1fr;
  }

  .seminar-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

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

  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
}
