/* NOVALYS V8 — finitions responsive : ajout progressif sans modifier le thème ni les animations */
@media (max-width: 900px) {
  .header .nav { height: 76px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 90px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    color: var(--navy);
    cursor: pointer;
  }
  .nav-toggle span { font-size: 20px; line-height: 1; }
  .nav nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 100;
    padding: 12px max(20px, calc((100vw - 720px) / 2)) 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    box-shadow: 0 22px 38px rgba(6,22,51,.14);
    border-bottom: 1px solid #e8edf3;
  }
  .nav nav.open { display: flex; }
  .nav nav > a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 9px;
    white-space: normal;
  }
  .nav nav > a:not(.btn):hover,
  .nav nav > a:not(.btn):focus-visible { background: #f6f8fc; }
  .nav nav > a.btn { margin-top: 8px; min-height: 46px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(2.45rem, 10.3vw, 3.5rem); }
  .hero .intro { line-height: 1.65; }
  .hero .actions { gap: 13px; }
  .hero .actions .btn { min-height: 46px; }
  .stage { height: 300px; margin-top: 34px; border-radius: 22px; }
  .stage-core { width: 158px; height: 158px; font-size: 13px; }
  .stage-card { width: clamp(115px, 34vw, 145px); padding: 11px; gap: 5px; }
  .stage-card strong { font-size: 11px; }
  .stage-card small { font-size: 9px; }
  .card-left { left: 0; top: 5%; }
  .card-right { right: 0; bottom: 3%; }
  .scrolldown { padding-bottom: 48px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .story { padding-top: 72px; padding-bottom: 60px; }
  .story-layout { margin-top: 40px; }
  .story-heading h2 { font-size: clamp(2.2rem, 8.5vw, 3.4rem); }
  .feature-grid { margin-top: 32px; gap: 14px; }
  .feature { padding: 25px; border-radius: 18px; }
  .feature-symbol { margin: 12px 0 9px; }
  .info-grid { gap: 12px; margin-top: 30px; }
  .info { padding: 23px; min-height: 0; }
  .journey-item { gap: 12px; }
  .journey-item h3 { font-size: 21px; }
  .project-section .showcase { border-radius: 18px; }
  .final-cta { padding: 72px 0; }
  .footer-top { padding-top: 48px; }
  .footer-top a, .footer-bottom, .contact-direct a { overflow-wrap: anywhere; }
  .footer-bottom div { flex-wrap: wrap; white-space: normal; }
  .nv8-hero { padding-top: 64px; padding-bottom: 58px; }
  .nv8-hero h1 { font-size: clamp(2.55rem, 10vw, 3.5rem); }
  .nv8-about-art, .nv8-access-visual { min-height: 290px; }
  .nv8-art-note, .nv8-visual-card { padding: 12px 15px; font-size: 12px; }
  .unity-hero { padding-top: 72px; }
  .inner-hero { padding-top: 66px; padding-bottom: 65px; }
  .contact-content { padding: 24px 20px; }
  .contact-top { padding: 15px 16px; gap: 6px; flex-wrap: wrap; }
  .contact-shell { border-radius: 20px; }
  .adapt-intro { padding: 24px 20px; }
  .adapt-form { padding: 23px 18px; }
  .future-form input:not([type=checkbox]),
  .future-form select, .future-form textarea,
  .adapt-form input:not([type=checkbox]),
  .adapt-form select, .adapt-form textarea { font-size: 16px; min-height: 46px; }
  .future-form button[type=submit], .adapt-form button[type=submit] { min-height: 48px; }
  .unity-prose, .unity-prose p, .unity-prose li { overflow-wrap: anywhere; }
  .unity-prose table { max-width: 100%; }
}
/* Sur téléphone, réorganiser la démo au lieu de réduire tous ses textes. */
@media (max-width: 580px) {
  .v5-story .story-layout { gap: 24px; margin-top: 34px; }
  .v5-story .story-visual { top: 82px; max-width: 100%; }
  .v5-dashboard { border-radius: 17px; }
  .v5-topbar { padding: 11px 12px; font-size: 9px; letter-spacing: .07em; }
  .v5-app { grid-template-columns: 28px minmax(0, 1fr); }
  .v5-sidebar { padding: 10px 3px; gap: 9px; }
  .v5-app-monogram { font-size: 15px; padding: 4px 0 10px; }
  .v5-work { padding: 12px 10px 11px; }
  .v5-work-heading h3 { font-size: 19px; }
  .v5-work-heading p { font-size: 11px; line-height: 1.35; }
  .v5-kpis { gap: 6px; margin: 12px 0 10px; }
  .v5-kpis > div { padding: 7px 6px; }
  .v5-kpis span { font-size: 9px; }
  .v5-kpis b { font-size: 19px; }
  .v5-columns { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .v5-panel { padding: 9px; }
  .v5-panel-heading { font-size: 11px; margin-bottom: 5px; }
  .v5-tasks .v5-task { font-size: 10px; padding: 6px 0; }
  .v5-entry { font-size: 10px; padding: 6px; }
  .v5-agenda { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 9px; align-items: center; }
  .v5-agenda .v5-panel-heading { grid-column: 1 / -1; margin-bottom: 0; }
  .v5-calendar { margin: 5px 0; }
  .v5-calendar > span, .v5-calendar i { font-size: 9px; }
  .v5-event { font-size: 9px; padding: 5px; margin: 3px 0; }
  .v5-event-second { display: none; }
  .v5-bottom { margin-top: 9px; padding: 8px; }
  .v5-bottom strong { font-size: 10px; }
  .v5-bottom p { font-size: 9px; line-height: 1.35; }
  .v5-story .story-step { min-height: 43vh; }
  .v5-story .story-caption { margin-top: 10px; font-size: 11px; line-height: 1.4; }
}
@media (max-width: 360px) {
  .nav .logo img { width: 128px; }
  .hero h1 { font-size: 2.35rem; }
  .stage { height: 280px; }
  .stage-core { width: 144px; height: 144px; }
  .stage-card { width: 114px; padding: 9px; }
  .stage-card strong { font-size: 10px; }
  .v5-agenda { grid-template-columns: 1fr; }
  .v5-calendar { margin: 0; }
  .v5-event { margin: 0; }
}
/* Le tableau reste visible à côté du récit seulement si la hauteur le permet. */
@media (max-width: 580px) and (max-height: 700px) {
  .v5-story .story-visual { position: relative; top: auto; }
  .v5-story .story-step { min-height: 0; padding: 25px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .v5-story .story-visual { position: relative; top: auto; }
}
