:root {
  --gradient-hero: linear-gradient(135deg, #0f47ff, #6e2bff, #d84bff);
  --gradient-card: linear-gradient(135deg, #0d68ff, #712bff);
  --gradient-card-alt: linear-gradient(135deg, #7b2bff, #ff4fd8);
  --gradient-pink: linear-gradient(120deg, #fb67ff, #a855f7);
  --bg-deep: #030823;
  --bg-blue: #061142;
  --brand-deep-blue: #020f57;
  --text-main: #f8fbff;
  --text-muted: #b7c4ff;
  --card-bg: rgba(10, 13, 40, 0.65);
  --border-radius-lg: 32px;
  --shadow-card: 0 25px 60px rgba(13, 20, 68, 0.35);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100svh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.5);
}

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.85rem 1.5rem;
}

.btn.ghost:hover {
  border-color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #fbe1ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #b7c4ff;
  margin-bottom: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  min-height: var(--header-height);
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 10, 34, 0.7);
  box-shadow: 0 12px 30px rgba(3, 5, 20, 0.3);
  backdrop-filter: blur(20px);
  transform: translateY(-1px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 51;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 49;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lang-switch {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: #fff;
  cursor: pointer;
}

.lang-trigger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(9, 14, 48, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.25rem;
  display: none;
  flex-direction: column;
  min-width: 120px;
  box-shadow: 0 20px 40px rgba(3, 7, 30, 0.45);
}

.lang-switch.open .lang-menu {
  display: flex;
}

.lang-menu button {
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
}

.lang-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* Use small viewport height for mobile */
  padding: calc(7rem + var(--header-height)) 4vw 4rem;
  margin-top: calc(var(--header-height) * -1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  background: url('PAFK.png') center/cover no-repeat;
  background-color: #050a22; /* Fallback color */
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-subtitle {
  color: #f8f8ff;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.slogan-section {
  position: relative;
  padding: 5rem 4vw;
  background: #fdfdff;
  background-image: url('background-image.jpg(2).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #0b0f2c;
}

.slogan-section .architecture-pattern {
  position: absolute;
  inset: 0;
  /* on désactive le motif SVG pour ne garder que l'image fournie */
  background-image: none;
  opacity: 0;
  pointer-events: none;
}

.slogan-card {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 920px;
  padding: 3.5rem;
  border-radius: 40px;
  /* même couleur que la section "Une IA qui parle le langage du BTP" */
  background: #071456;
  border: none;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.slogan-line {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.slogan-line:last-of-type {
  color: #a855f7;
}

.slogan-card .btn {
  margin-top: 1.5rem;
}

.ia-btp {
  padding: 6rem 4vw;
  background: #071456;
  text-align: center;
}

.ia-btp h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.ia-btp p {
  color: #dce2ff;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.ia-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ia-list li {
  min-width: 260px;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

.ia-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.features {
  padding: 6rem 4vw;
  background: var(--bg-deep);
}

.features h2 {
  background: linear-gradient(135deg, #3b82f6, #a855f7, #ec4899, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  padding: 2rem;
  background: rgba(7, 10, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 420px;
}

.feature-visual {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  /* hauteur fixe pour aligner le début des textes entre cartes */
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CybeAnalyse - Abstract text lines */
.doc-simulation {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.2rem;
  width: 100%;
}

.text-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.line-full { width: 100%; }
.line-long { width: 85%; }
.line-medium { width: 60%; }
.line-short { width: 45%; }

.highlight-target::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 108, 242, 0.5), rgba(255, 157, 250, 0.7));
  opacity: 0;
  animation: highlightPulse 6s ease-in-out infinite;
}

.text-line:nth-child(3).highlight-target::before {
  animation-delay: 1.5s;
}

.text-line:nth-child(5).highlight-target::before {
  animation-delay: 2.5s;
}

.text-line:nth-child(7).highlight-target::before {
  animation-delay: 3.5s;
}

.feature-content h3 {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.6;
}

.feature-title-main {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #b5c0f0;
}

.feature-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* CybeDocument - Abstract upload flow */
.upload-area {
  display: flex;
  justify-content: center;
  padding: 1.2rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  opacity: 0;
  animation: areaFadeIn 8s ease-in-out infinite;
}

.file-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.file-rect {
  width: 36px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  position: relative;
}

.file-rect::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.file-label {
  width: 48px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.loading-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  opacity: 0;
  animation: barFadeIn 8s ease-in-out infinite;
  animation-delay: 1s;
}

.load-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff6cf2, #ff9dfa);
  border-radius: 8px;
  width: 0%;
  animation: loadGrow 8s ease-out infinite;
  animation-delay: 1s;
}

.output-document {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  opacity: 0;
  animation: outputFadeIn 8s ease-in-out infinite;
  animation-delay: 2.8s;
}

.doc-header-bar {
  height: 10px;
  width: 55%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: headerSlide 8s ease-in-out infinite;
  animation-delay: 3.2s;
}

.output-line {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  width: 0%;
  animation: lineGrow 8s ease-in-out infinite;
}

.output-line:nth-child(2) {
  animation-delay: 3.8s;
}

.output-line:nth-child(3) {
  animation-delay: 4.2s;
}

.output-line:nth-child(4) {
  animation-delay: 4.6s;
}

.output-line:nth-child(5) {
  animation-delay: 5s;
}

/* CybeMeeting - Abstract report structure */
.meeting-visual {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.report-container {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1.1rem;
  width: 100%;
}

.report-header-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  opacity: 0;
  animation: reportHeaderFade 7s ease-in-out infinite;
}

.header-main-line {
  height: 11px;
  width: 70%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.header-sub-line {
  height: 5px;
  width: 40%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.report-block {
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: blockAppear 7s ease-in-out infinite;
}

.report-block:nth-child(2) {
  animation-delay: 1s;
}

.report-block:nth-child(3) {
  animation-delay: 2s;
}

.report-block:nth-child(4) {
  animation-delay: 3s;
}

.block-title-bar {
  height: 8px;
  width: 50%;
  background: linear-gradient(90deg, rgba(255, 108, 242, 0.4), rgba(255, 157, 250, 0.3));
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.block-content-line {
  height: 6px;
  width: 80%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-left: 1rem;
}

.how {
  padding: 6rem 4vw;
  background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 100%);
  color: #050b25;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.step-card {
  padding: 2.5rem 2rem;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.12), 0 5px 15px rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 80px rgba(37, 99, 235, 0.18), 0 10px 25px rgba(124, 58, 237, 0.12);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 32px 32px 0 0;
  opacity: 0.8;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35), 0 0 0 8px rgba(37, 99, 235, 0.08);
}

.step-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1e293b;
  font-weight: 500;
}

.contact {
  position: relative;
  padding: 6rem 4vw;
  background: #071456; /* même fond que la section IA BTP */
  color: #050b25;
  overflow: hidden;
}

.contact .architecture-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23050b25' stroke-opacity='0.07' fill='none'%3E%3Cpath d='M50 400V200l120-80 80 140 80-60V0'/%3E%3Cpath d='M0 300l100-120 80 120 140-220'/%3E%3C/g%3E%3C/svg%3E");
}

.contact-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: start;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 36px;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(30, 58, 138, 0.4);
}

.contact-text h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 1rem;
  color: #fff;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.95);
}

.contact-text .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.contact-form .btn.primary {
  background: #7c3aed;
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}

.contact-form .btn.primary:hover {
  background: #6d28d9;
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.5);
}

.site-footer {
  position: relative;
  padding: 3rem 4vw 4rem 4vw;
  background: #03071c;
  color: #d8dcff;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.3em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #d8dcff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: #fff;
}

.footer-contact-link svg {
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(216, 220, 255, 0.7);
  margin: 0.5rem 0 0 0;
}

.footer-legal {
  position: absolute;
  bottom: 1rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(184, 196, 255, 0.5);
}

.footer-legal a {
  color: rgba(184, 196, 255, 0.5);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-legal a:hover {
  color: rgba(184, 196, 255, 0.8);
}

.footer-legal span {
  color: rgba(184, 196, 255, 0.3);
  font-size: 0.6rem;
}

.footer-copyright {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  font-size: 0.7rem;
  color: rgba(184, 196, 255, 0.5);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(6, 17, 66, 0.9);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

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

/* Animations - CybeAnalyse */
@keyframes highlightPulse {
  0%, 15% {
    opacity: 0;
  }
  25%, 75% {
    opacity: 1;
  }
  85%, 100% {
    opacity: 0;
  }
}

/* Animations - CybeDocument */
@keyframes areaFadeIn {
  0%, 5% {
    opacity: 0;
    transform: scale(0.95);
  }
  12%, 86% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes barFadeIn {
  0%, 11% {
    opacity: 0;
  }
  16%, 86% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes loadGrow {
  0%, 13% {
    width: 0%;
  }
  33% {
    width: 100%;
  }
  86% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

@keyframes outputFadeIn {
  0%, 34% {
    opacity: 0;
    transform: translateY(8px);
  }
  40%, 86% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes headerSlide {
  0%, 39% {
    opacity: 0;
    transform: translateX(-10px);
  }
  45%, 86% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes lineGrow {
  0%, 45% {
    width: 0%;
  }
  58% {
    width: 100%;
  }
  86% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* Animations - CybeMeeting */
@keyframes reportHeaderFade {
  0%, 8% {
    opacity: 0;
    transform: translateY(-8px);
  }
  14%, 84% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes blockAppear {
  0%, 12% {
    opacity: 0;
    transform: translateX(-12px);
  }
  18%, 84% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slide-docs {
  0%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(160%);
  }
  60% {
    transform: translateX(160%);
  }
}

@keyframes wave {
  0%,
  100% {
    height: 20%;
  }
  50% {
    height: 100%;
  }
}

@keyframes newWaveAnim {
  0%, 100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}

@keyframes newFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  20%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: scaleX(0.4);
  }
  40% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  10%,
  60% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (max-width: 1024px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero {
    min-height: 100vh;
    padding-top: calc(6.5rem + var(--header-height));
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: transparent;
  }

  .logo {
    flex: 0 0 auto;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
  }
  
  /* Cacher le bouton RÉSERVEZ VOTRE DÉMO sur mobile */
  .header-actions .btn.primary {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(5, 10, 34, 0.98), rgba(7, 20, 86, 0.98));
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 1.2rem;
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .hero {
    padding: calc(5rem + var(--header-height)) 1.5rem 4rem;
    margin-top: calc(var(--header-height) * -1);
  }

  .slogan-card {
    padding: 2.5rem;
  }

  .feature-card {
    min-height: auto;
  }

  .contact-content {
    padding: 2rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem 2rem 2rem;
  }
  
  .footer-legal {
    position: static;
    margin-top: 2rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    left: auto;
    bottom: auto;
  }
  
  .footer-copyright {
    position: static;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    right: auto;
    bottom: auto;
  }
}

@media (max-width: 520px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero {
    min-height: 100vh;
    padding-top: calc(6rem + var(--header-height));
    padding-bottom: 3.5rem;
  }

  .blueprint-grid {
    width: 100%;
  }

  .ai-card {
    position: static;
    margin-top: 1.5rem;
  }

  .ia-list li {
    min-width: auto;
    width: 100%;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn.primary {
    padding: 0.55rem 0.9rem;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .lang-switch {
    font-size: 0.85rem;
  }

  .lang-trigger {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

