/* layout.css : nav, menu mobile, hero, structure des sections et footer */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6%;
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

nav .logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav .logo-group img {
  height: 40px;
}

nav .logo-group span {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul a {
  position: relative;
  display: inline-block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding-bottom: 6px;
  transition: color 0.25s;
}

nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: width 0.25s ease;
}

nav ul a:hover { color: var(--text); }
nav ul a:hover::after { width: 100%; }

nav .cta-btn {
  background: var(--purple);
  color: #f5f3ff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(123, 92, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

nav .cta-btn:hover {
  background: #6a4ce8;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(123, 92, 255, 0.45);
}

/* burger + menu plein écran pour mobile */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 210;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s;
}

body.menu-open .nav-burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 23, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.mobile-menu a .num {
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 2px;
}

body.menu-open .mobile-menu a {
  transform: translateY(0);
  opacity: 1;
}

body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.25s; }

.mobile-menu .menu-cta {
  border-bottom: none;
  color: var(--cyan);
  font-size: 1.15rem;
  margin-top: 28px;
}

@media (max-width: 800px) {
  nav ul { display: none; }
  nav .cta-btn { display: none; }
  .nav-burger { display: flex; }
}

@media (min-width: 801px) {
  .mobile-menu { display: none; }
}

.hero {
  padding: 110px 6%;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: left;
}

.hero-visual {
  flex: 1.3;
  height: 560px;
  position: relative;
  overflow: hidden;
}

.hero-visual video,
.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual video {
  object-fit: cover;
  aspect-ratio: 16 / 9;
  mix-blend-mode: screen; /* fond quasi-noir de la vidéo : screen le rend invisible sur le fond sombre du site */
  margin: auto; /* aspect-ratio + inset:0 peut laisser un espace, on le recentre */
  opacity: 0;
  animation: hero-video-in 1.8s ease-out 0.3s forwards;
  transition: opacity 1.2s ease;
  /* le watermark ET le fondu sur les bords sont cuits directement dans le fichier
     vidéo (background-final.mp4, traité image par image en Python) : pas de mask-image ici,
     combiné au mix-blend-mode il faisait ramer la lecture. */
}

.hero-visual video.is-hidden {
  opacity: 0;
}

.hero-visual canvas {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-visual canvas.is-visible {
  opacity: 1;
}

@keyframes hero-video-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 120px; }
  .hero-visual { width: 100%; height: 360px; }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 26px;
}

.hero-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s;
}

.hero-scroll:hover { color: var(--text); }

.hero-scroll .line {
  width: 1px;
  height: 42px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--cyan);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

@media (max-width: 900px) {
  .hero-scroll { display: none; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 22px;
}

/* accent violet avec un reflet lumineux qui balaye le mot en boucle (ton sur ton,
   rien à voir avec un dégradé cyan-violet criard), et un trait qui se dessine à l'arrivée */
.hero h1 span {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(110deg, var(--purple) 42%, #c4b5ff 50%, var(--purple) 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 4.5s ease-in-out 2.2s infinite;
}

@keyframes sheen {
  0%, 55% { background-position: 115% 0; }
  100% { background-position: -55% 0; }
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 3px;
  width: 100%;
  background: rgba(123, 92, 255, 0.45);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 0.7s ease-out 1.4s forwards;
}

@keyframes underline-in {
  to { transform: scaleX(1); }
}

.hero p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 0 36px;
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--cyan);
  color: #06101c;
  box-shadow: 0 0 30px rgba(0,212,255,0.25);
}

.btn-primary::after {
  content: "→";
  transition: transform 0.25s ease;
}

.btn-primary:hover::after {
  transform: translateX(5px);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.btn-secondary:hover {
  border-color: var(--text-dim);
}

section { padding: 100px 6%; }

/* têtes de section alignées à gauche avec numéro : moins "template SaaS centré" */
.section-head {
  max-width: 1200px;
  margin: 0 auto 64px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.section-head .sec-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.1;
}

.section-head p {
  color: var(--text-dim);
  line-height: 1.6;
  margin-left: auto;
  max-width: 340px;
  font-size: 0.92rem;
  text-align: right;
}

@media (max-width: 800px) {
  .section-head { flex-wrap: wrap; gap: 12px; }
  .section-head p { margin-left: 0; text-align: left; max-width: none; }
}

footer {
  border-top: 1px solid var(--border);
  padding: 70px 6% 36px;
  color: var(--text-dim);
  font-size: 0.85rem;
  overflow: hidden;
}

/* grand wordmark en contour, la signature du bas de page */
.footer-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(139, 150, 171, 0.35);
  user-select: none;
  margin-bottom: 48px;
  transition: -webkit-text-stroke-color 0.4s;
}

.footer-word:hover {
  -webkit-text-stroke-color: rgba(0, 212, 255, 0.55);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer .logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .logo-group img { height: 26px; }
footer .logo-group span { color: var(--text); font-weight: 700; }

footer a {
  color: var(--cyan);
  text-decoration: none;
}

/* respiration réduite sur petit écran : les grands paddings desktop mangent tout le viewport */
@media (max-width: 700px) {
  section { padding: 60px 6%; }
  .hero { padding: 80px 6% 50px; min-height: auto; gap: 20px; }
  .hero-visual { height: 300px; }
  .hero p { font-size: 0.98rem; }
  .section-head { margin-bottom: 40px; padding-bottom: 20px; }
  .about-box { padding-left: 22px; }
  .footer-word { margin-bottom: 32px; }
  footer { padding-top: 50px; }
  .faq-item summary { font-size: 0.95rem; padding: 20px 4px; }
  .faq-item summary:hover { padding-left: 4px; } /* pas de décalage au tap, c'est un effet souris */
}
