/* ============================================================
   VIRTUA TOOLS — SITE.CSS
   Direction visuelle : premium / studio digital / sobre
   Compatible avec le HTML actuel — aucun changement obligatoire.
   ============================================================ */

/* Pacifico */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Pacifico-Regular.ttf') format('truetype');
}

/* Space Grotesk */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
}

/* IBM Plex Sans */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-SemiBold.ttf') format('truetype');
}

:root {
  --blue: #3c8cdc;
  --blue-deep: #256bb0;
  --blue-dark: #173f69;
  --blue-soft: #edf6ff;
  --blue-pale: #f6faff;

  --coral: #ef5f77;
  --coral-bg: #fde9ed;
  --amber: #d69b27;
  --amber-bg: #fbf1dd;
  --violet: #8172dd;
  --violet-bg: #eeeafd;
  --green: #299665;
  --green-bg: #e5f6ee;

  --ink: #172536;
  --ink-soft: #304255;
  --muted: #657587;
  --white: #fff;
  --line: #dfe8f0;
  --line-strong: #cbd9e5;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Pacifico', cursive;

  --container: 1440px;
  --gutter: clamp(22px, 5vw, 88px);
  --radius: 16px;
  --section-space: clamp(72px, 9vw, 132px);

  --shadow-sm: 0 2px 10px rgba(23,37,54,.045);
  --shadow-md: 0 18px 45px rgba(23,37,54,.09);
  --shadow-blue: 0 20px 55px rgba(37,107,176,.17);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 85% -10%, rgba(60,140,220,.055), transparent 28rem),
    var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2.55rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.9rem, 3.25vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: clamp(1rem, 1.2vw, 1.14rem); color: var(--muted); line-height: 1.75; }
strong.hl { color: var(--blue-deep); font-weight: 600; }

a {
  color: var(--blue-deep);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-deep);
  color: white;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: var(--section-space) 0;
}

section.tinted {
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.7), transparent 28rem),
    linear-gradient(180deg, #f2f8fe 0%, #edf6ff 100%);
  border-top: 1px solid rgba(37,107,176,.055);
  border-bottom: 1px solid rgba(37,107,176,.055);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--blue-deep);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); line-height: 1.7; }

/* --- Boutons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .94rem;
  padding: 14px 23px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-deep);
  color: white;
  box-shadow: 0 12px 28px -10px rgba(37,107,176,.6);
}

.btn-primary:hover {
  background: #1f5c98;
  box-shadow: 0 18px 34px -11px rgba(37,107,176,.68);
}

.btn-secondary {
  background: rgba(255,255,255,.72);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: rgba(37,107,176,.45);
  color: var(--blue-deep);
  background: white;
}

.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- Cartes --- */
.card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card.is-highlight {
  border-color: rgba(60,140,220,.55);
  box-shadow: 0 0 0 1px rgba(60,140,220,.18), var(--shadow-blue);
}

/* --- Icônes --- */
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge svg { width: 21px; height: 21px; }
.icon-badge.blue { background: var(--blue-soft); color: var(--blue-deep); }
.icon-badge.coral { background: var(--coral-bg); color: var(--coral); }
.icon-badge.amber { background: var(--amber-bg); color: var(--amber); }
.icon-badge.violet { background: var(--violet-bg); color: var(--violet); }
.icon-badge.green { background: var(--green-bg); color: var(--green); }

/* --- Champs --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 16px;
}

.field label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--muted);
}

.field input {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(60,140,220,.12);
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-success {
  background: var(--green-bg);
  border: 1px solid rgba(41,150,101,.4);
  color: #1f6b47;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: .9rem;
  margin-bottom: 16px;
}
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* ============================================================
   NAVIGATION — studio premium / hiérarchie éditoriale
   ============================================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 var(--gutter);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(219,230,240,.72);
  box-shadow: 0 4px 22px rgba(23,37,54,.025);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  transition:
    min-height .3s ease,
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

nav.is-scrolled {
  min-height: 64px;
  background: rgba(255,255,255,.94);
  border-bottom-color: rgba(203,217,229,.82);
  box-shadow: 0 12px 32px rgba(23,37,54,.065);
}

nav .company_name.navbar {
  display: flex;
  align-items: center;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.86rem;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 0;
  white-space: nowrap;
  letter-spacing: -.015em;
  transition: opacity .2s ease, transform .2s ease;
}

nav .company_name.navbar:hover {
  opacity: .82;
  transform: translateY(-1px);
}

nav ul {
  display: flex;
  align-items: stretch;
  gap: clamp(15px, 2.25vw, 30px);
  margin-right: 0;
}

nav ul li { display: flex; align-items: center; }

nav ul a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s ease;
}

nav ul a:not(.nav_cta):not(.nav_button a)::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-deep);
  transform: scaleX(.25);
  transform-origin: center;
  opacity: 0;
  transition:
    transform .28s cubic-bezier(.22,1,.36,1),
    opacity .2s ease;
}

nav ul a:hover { color: var(--blue-deep); }

nav ul a:not(.nav_cta):not(.nav_button a):hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  color: var(--ink-soft);
  opacity: .66;
  border-radius: 9px;
  transition:
    color .2s ease,
    opacity .2s ease,
    background .2s ease;
}

.nav-home-icon:hover {
  color: var(--blue-deep);
  opacity: 1;
  background: var(--blue-pale);
}

nav .nav_button {
  margin-right: 0;
  background: transparent;
  display: flex;
  align-items: center;
}

nav .nav_button a {
  height: auto;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: white;
  background: var(--blue-deep);
  border: 1px solid rgba(37,107,176,.2);
  border-radius: 11px;
  font-weight: 600;
  font-size: .83rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow:
    0 10px 24px -12px rgba(37,107,176,.72),
    inset 0 1px 0 rgba(255,255,255,.12);
  transition:
    background .2s ease,
    transform .22s cubic-bezier(.22,1,.36,1),
    box-shadow .22s ease;
}

nav .nav_button a::after {
  content: "→";
  font-size: .95rem;
  line-height: 1;
  transition: transform .22s ease;
}

nav .nav_button a:hover {
  color: white;
  background: #1f5c98;
  transform: translateY(-2px);
  box-shadow:
    0 15px 30px -12px rgba(37,107,176,.78),
    inset 0 1px 0 rgba(255,255,255,.14);
}

nav .nav_button a:hover::after {
  transform: translateX(3px);
}

#menuIcon {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}

#menuIcon:hover {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

#fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23,37,54,.34);
  z-index: 49;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#verticalNav_heading { display: none; }

@media screen and (max-width: 1200px) {
  nav {
    position: fixed;
    width: 100%;
    min-height: 68px;
    height: 68px;
    padding: 0 var(--gutter);
  }

  nav.is-scrolled {
    min-height: 64px;
    height: 64px;
  }

  #menuIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav .company_name.navbar {
    padding: 0;
    font-size: 1.68rem;
  }

  nav > #menuIcon { margin-right: 0; }
  main { padding-top: 68px; }

  nav ul {
    display: flex;
    justify-content: flex-start;
    flex-flow: column;
    align-items: stretch;
    position: fixed;
    max-width: 100%;
    top: 0;
    right: 0;
    width: min(380px, 90vw);
    height: 100dvh;
    padding: 22px 22px 28px;
    margin: 0;
    background: rgba(255,255,255,.975);
    box-shadow: -22px 0 60px rgba(23,37,54,.15);
    transform: translateX(100%);
    text-align: left;
    z-index: 51;
    gap: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  nav ul li {
    width: 100%;
    min-height: 50px;
  }

  nav ul a {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 11px;
  }

  nav ul a:not(.nav_cta):not(.nav_button a)::after { display: none; }

  nav ul a:hover {
    background: var(--blue-pale);
  }

  #verticalNav_heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 8px;
    font-size: 20px;
    line-height: 50px;
  }

  #verticalNav_heading button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    color: var(--ink);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }

  #verticalNav_heading button:hover {
    background: var(--blue-pale);
    border-color: var(--line-strong);
  }

  nav ul li.nav_button {
    width: 100%;
    margin-right: 0;
    background: none;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }

  nav ul li.nav_button a {
    height: auto;
    padding: 14px 20px;
    background: var(--blue-deep);
    border-radius: 11px;
    justify-content: center;
  }

  nav ul li.nav_button a::after {
    display: block;
  }
}

@keyframes mobile_navbar {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes mobile_navbar_reverse {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  nav,
  nav .company_name.navbar,
  nav .nav_button a,
  nav ul a::after,
  #menuIcon {
    transition: none !important;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  padding: 60px var(--gutter) 24px;
  background:
    radial-gradient(circle at 82% 5%, rgba(60,140,220,.22), transparent 25rem),
    #173f69;
  color: white;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 45%, rgba(255,255,255,.025) 45% 46%, transparent 46% 100%);
}

footer .footer_head {
  position: relative;
  display: grid;
  grid-template-areas: 'left center right';
  grid-template-columns: 1fr 1.2fr 1.5fr;
  padding-bottom: 40px;
  gap: 42px;
}

footer .footer_head_left {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  grid-area: left;
}

footer .footer_head_left .company_name {
  font-family: var(--font-logo);
  font-size: 1.65rem;
  color: white;
  text-decoration: none;
}

footer .footer_tagline {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  max-width: 34ch;
  margin: 14px 0 0;
  line-height: 1.65;
}

footer .footer_head_center { grid-area: center; }
footer .footer_head_center ul {
  display: flex;
  flex-flow: column;
  gap: 9px;
  align-items: flex-start;
}
footer .footer_head_center ul li:first-of-type {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 5px;
}

footer .footer_head_right {
  grid-area: right;
  display: flex;
  flex-flow: column;
  gap: 9px;
}

footer .footer_cta_title {
  font-family: var(--font-display);
  font-weight: 600;
  color: white;
  margin: 0;
}

footer .footer_cta_sub {
  font-size: .84rem;
  color: rgba(255,255,255,.76);
  margin: 0 0 7px;
  max-width: 40ch;
}

footer form { display: flex; gap: 8px; flex-wrap: wrap; }
footer input {
  flex: 1;
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  outline: none;
  font-size: .9rem;
  background: rgba(255,255,255,.08);
  color: white;
  font-family: var(--font-body);
}
footer input::placeholder { color: rgba(255,255,255,.6); }
footer input:focus { border-color: rgba(255,255,255,.75); }

footer form button {
  background: white;
  padding: 12px 18px;
  color: var(--blue-dark);
  font-size: .88rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
footer form button:hover {
  background: #f0f7fd;
  transform: translateY(-1px);
}

footer a { color: white; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer hr {
  position: relative;
  border: none;
  border-top: 1px solid rgba(255,255,255,.18);
  margin: 0;
}
footer .watermark {
  position: relative;
  margin: 18px 0 0;
  font-size: .78rem;
  color: rgba(255,255,255,.62);
}

@media screen and (max-width: 1000px) {
  footer .footer_head {
    grid-template-areas: 'left right' 'center right';
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 640px) {
  footer {
    padding: 48px var(--gutter) 22px;
  }

  footer .footer_head {
    grid-template-areas: 'left' 'center' 'right';
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  footer .footer_head_left,
  footer .footer_head_center,
  footer .footer_head_right { align-items: center; }

  footer .footer_head_center ul { align-items: center; }
  footer form { justify-content: center; }
  footer .watermark { text-align: center; }
}
