:root {
  --navy: #0B1F40;
  --navy-hover: #122a5c;

  --grad-top: #B0BF30;
  --grad-bottom: #5C9254;
  --grad-signature-v: linear-gradient(180deg, #B0BF30 0%, #5C9254 100%);
  --grad-signature-h: linear-gradient(90deg, #B0BF30 0%, #5C9254 100%);

  --accent-light: #B0BF30;
  --accent-dark: #5C9254;

  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --card: #ffffff;

  --text-primary: #0B1F40;
  --text-secondary: #2D3748;
  --text-muted: #6B7280;

  --border: rgba(11, 31, 64, 0.12);
  --border-hover: #0B1F40;

  --wash-navy: rgba(11, 31, 64, 0.03);
  --wash-green: rgba(176, 191, 48, 0.06);

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text-secondary);
  line-height: 1.7;
  scroll-behavior: smooth;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.topbar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.topbar-link:hover,
.topbar-link:focus {
  color: var(--navy);
  border-color: var(--border);
  background: var(--bg-alt);
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 7px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn.is-active {
  color: var(--navy);
  background: var(--wash-green);
}

.lang-sep {
  color: var(--border);
  font-weight: 800;
}

.hero {
  text-align: center;
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 120px 20px 140px;
  background: var(--bg);
}

.logo {
  width: min(600px, 80vw);
  max-width: 600px;
  margin-bottom: 40px;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  max-width: 820px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
}

.cta-button {
  position: relative;
  display: inline-block;
  margin-top: 24px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cta-button::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  background: var(--grad-signature-h);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cta-button:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
}

.cta-button:hover::after {
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0);
}

.section {
  padding: clamp(48px, 6vw, 80px) 20px;
  background: var(--bg);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.dark-section {
  background: var(--wash-navy);
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.container p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.features {
  margin-top: 50px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 24px 28px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--grad-signature-v);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature:hover::before {
  opacity: 1;
}

.feature.span-2 {
  grid-column: span 2;
}

.feature-icon {
  font-size: 24px;
  line-height: 1;
  color: var(--navy);
}

.feature-content {
  flex: 1;
}

.feature h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.feature p {
  color: var(--text-secondary);
  word-break: break-word;
  hyphens: auto;
}

.contact-box {
  margin-top: 50px;
  padding: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.contact-box h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.contact-box p {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.email-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.email-link:hover,
.email-link:focus {
  text-decoration-color: var(--accent-dark);
}

.dendrontech-floating {
  position: fixed;
  top: 32px;
  right: 32px;
  width: 300px;
  height: 200px;
  z-index: 1000;
}

/* Section créateur */
.creator-section {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 28px;
  padding: 48px 20px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
}

.creator-section img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.creator-text {
  max-width: 640px;
  line-height: 1.7;
  flex: 1 1 auto;
}

.creator-text h3,
.creator-text h2 {
  color: var(--navy);
  margin-bottom: 12px;
}

.dendrontech-box {
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
}

.dendrontech-logo-wrap,
.dendrontech-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dendrontech-logo-wrap {
  padding-right: 0;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
}

.dendrontech-text {
  padding-left: 0;
  flex: 0 0 auto;
}

.dendrontech-box img.dendrontech-logo {
  width: min(240px, 92%);
  margin: 0;
  filter: none;
  transform: none;
}

.dendrontech-box p {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

.dendrontech-box a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
}

.dendrontech-box a:hover {
  color: var(--accent-dark);
}

/* Encart flottant Partenaires */
.floating-partners {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(11, 31, 64, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-partners:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(11, 31, 64, 0.1);
  color: var(--navy);
}

.floating-partners small {
  color: var(--accent-dark);
  font-weight: 600;
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
}

/* ─── Roadmap Teaser Section ─── */
#roadmap {
  position: relative;
  padding: clamp(36px, 6vw, 68px) 0 0;
  background: var(--bg);
}

.roadmap-header {
  text-align: center;
  margin-bottom: 0;
  padding: 0 20px;
}

.roadmap-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.roadmap-header p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.roadmap-iframe-wrap {
  position: relative;
  max-height: 420px;
  overflow: hidden;
  transition: max-height 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-iframe-wrap.expanded {
  max-height: 6000px;
}

.roadmap-iframe-wrap iframe {
  width: 100%;
  height: 3400px;
  border: none;
  display: block;
  background: transparent;
}

.roadmap-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 85%);
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 2;
}

.roadmap-iframe-wrap.expanded .roadmap-fade {
  opacity: 0;
}

.roadmap-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 18px 32px;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  z-index: 3;
}

.roadmap-toggle-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  transition: color 0.3s ease;
}

.roadmap-toggle:hover .roadmap-toggle-label {
  color: var(--accent-dark);
}

.roadmap-toggle-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: arrowPulse 2.5s ease-in-out infinite;
}

.roadmap-toggle:hover .roadmap-toggle-arrow {
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(11, 31, 64, 0.08);
}

.roadmap-toggle-arrow svg {
  transition: transform 0.4s ease;
}

.roadmap-iframe-wrap.expanded + .roadmap-toggle .roadmap-toggle-arrow {
  transform: rotate(180deg);
  animation: none;
}

.roadmap-iframe-wrap.expanded + .roadmap-toggle .roadmap-toggle-arrow svg {
  transform: rotate(0deg);
}

@keyframes arrowPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

footer {
  text-align: center;
  padding: 38px 20px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

footer p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

#partners.section {
  padding-top: clamp(28px, 5vw, 52px);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--navy);
}

a:focus-visible,
.cta-button:focus-visible,
.topbar-link:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .hero {
    padding: 90px 20px 110px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .topbar-link {
    padding: 8px 8px;
    font-size: 0.88rem;
  }

  .cta-button {
    padding: 14px 28px;
  }

  .section {
    padding: 48px 0;
  }

  .logo {
    width: min(340px, 80vw);
    max-width: 340px;
  }

  .feature {
    text-align: left;
  }

  .feature.span-2 {
    grid-column: span 1;
  }

  .contact-box {
    text-align: left;
  }

  .dendrontech-floating {
    position: static;
    width: 200px;
    height: 200px;
    margin: 20px auto 0;
  }

  .creator-section {
    flex-direction: column;
    text-align: center;
    padding: 48px 20px;
  }

  .creator-section img {
    margin: 0 auto 20px;
  }

  .floating-partners {
    top: auto;
    bottom: 20px;
    left: 15px;
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}

@media (max-width: 420px) {
  .topbar-link {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
    padding: 5px 9px;
    gap: 6px;
  }

  .lang-btn {
    font-size: 0.78rem;
    padding: 3px 4px;
  }
}

/* ─── Refonte éditoriale : nouveaux composants ─── */

/* Bandeau Alpha */
.alpha-banner {
  background: var(--wash-green);
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 20px;
  line-height: 1.5;
}
.alpha-banner strong { font-weight: 700; color: var(--navy); }
.alpha-banner a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
}
.alpha-banner a:hover { text-decoration: underline; }

/* Hero */
.hero-intro {
  max-width: 780px;
  margin: 6px auto 12px;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2vw, 1.05rem);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}
.cta-row.centered { justify-content: center; margin-top: 32px; }
.cta-button.cta-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.cta-button.cta-secondary:hover {
  background: var(--navy);
  color: #fff;
}

/* Section head */
.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 800;
}
.section-tagline {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 400;
}

/* Alt section background */
.alt-section { background: var(--bg-alt); }

/* 3 cards */
.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-signature-h);
}
.card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(11,31,64,0.08);
}
.card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Testimonial */
.testimonial-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-image: var(--grad-signature-v) 1;
  padding: 28px 32px;
  margin: 0 auto 36px;
  max-width: 820px;
  border-radius: var(--radius-sm);
}
.testimonial-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.testimonial-block blockquote {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--navy);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
}
.testimonial-author {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 6px;
}
.testimonial-context {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Benefits list */
.benefits-list {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefits-list li {
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  color: var(--text-secondary);
}
.benefits-list strong { color: var(--navy); font-weight: 700; }

/* AI2Care section */
.ai2care-main {
  max-width: 860px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 2.1vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.8;
}
.three-markers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.marker {
  padding: 18px 20px;
  border-left: 3px solid var(--accent-light);
  background: var(--wash-green);
  border-radius: var(--radius-sm);
}
.marker h4 {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.marker p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Alpha form */
.alpha-intro {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
}
.alpha-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-sm);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 90px; }
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.field-consent input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
.alpha-form .cta-button { margin-top: 6px; align-self: flex-start; }
.form-status {
  font-size: 0.92rem;
  min-height: 1.2em;
  margin-top: 4px;
}
.form-status.success { color: var(--accent-dark); }
.form-status.error { color: #c2410c; }

/* Contact */
.contact-intro {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--text-secondary);
}
.contact-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-list li {
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.email-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.email-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 20px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-line1 { color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.footer-line2 { margin-bottom: 6px; }
.footer-line2 a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 6px;
}
.footer-line2 a:hover { color: var(--navy); text-decoration: underline; }
.footer-line3 { font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 860px) {
  .three-cards, .three-markers {
    grid-template-columns: 1fr;
  }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-button { text-align: center; }
}
