/* ============================================================
   JUSTE DES SOLUTIONS INC. / ONLY SOLUTIONS INC.
   Main Stylesheet — Production
   Palette: Warm white · Ice blue · Deep navy · Teal accent
   Font: Fraunces (display) + DM Sans (body)
   BG: Visible animated mesh gradient
   ADDED: surething.io inspired animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --white:        #ffffff;
  --ice:          #f0f6ff;
  --ice-mid:      #e4eefb;
  --ice-deep:     #d0e4f7;
  --navy:         #0f2545;
  --navy-mid:     #1a3a6b;
  --blue-accent:  #2563eb;
  --teal:         #0d9488;
  --teal-light:   #14b8a8;
  --teal-glow:    rgba(13, 148, 136, 0.12);
  --text-dark:    #0f2545;
  --text-mid:     #3a5068;
  --text-light:   #6b8ca8;
  --text-muted:   #94afc5;
  --shadow-sm:    0 2px 8px rgba(15, 37, 69, 0.06);
  --shadow-md:    0 8px 32px rgba(15, 37, 69, 0.10);
  --shadow-lg:    0 20px 60px rgba(15, 37, 69, 0.14);
  --shadow-teal:  0 8px 32px rgba(13, 148, 136, 0.20);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;
}

/* --------------------------------------------------------------
   ANIMATED MESH BACKGROUND — Visible, alive, professional
   -------------------------------------------------------------- */
body {
  position: relative;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 75% 55%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 45% 75%, rgba(13, 148, 136, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(20, 184, 168, 0.08) 0%, transparent 50%);
  background-size: 150% 150%, 150% 150%, 150% 150%, 150% 150%;
  animation: meshShift 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshShift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 100% 0%; }
  25%  { background-position: 40% 20%, 75% 85%, 65% 35%, 85% 15%; }
  50%  { background-position: 80% 40%, 15% 75%, 35% 65%, 65% 30%; }
  75%  { background-position: 35% 25%, 65% 65%, 55% 40%, 75% 20%; }
  100% { background-position: 100% 15%, 0% 55%, 25% 55%, 55% 30%; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal-light); }
.hidden { display: none !important; }

/* --------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(13,148,136,0.10); transition: all 0.3s var(--ease); }
.navbar.scrolled { background: rgba(255,255,255,0.97); box-shadow: var(--shadow-sm); }
.nav-container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; line-height: 1.2; }
.logo-text span { display: block; font-size: 0.7rem; font-family: var(--font-body); font-weight: 400; color: var(--text-light); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text-mid); padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); transition: all 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--teal-glow); }
.lang-toggle { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--teal); background: var(--teal-glow); border: 1.5px solid rgba(13,148,136,0.20); border-radius: 20px; padding: 0.35rem 0.85rem; cursor: pointer; transition: all 0.2s var(--ease); }
.lang-toggle:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s var(--ease); }

/* --------------------------------------------------------------
   FLOATING DOWNLOAD BUTTON
   -------------------------------------------------------------- */
.floating-download {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--teal);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--ease-spring);
  letter-spacing: 0.02em;
  animation: softFloat 3s ease-in-out infinite;
}
.floating-download:hover {
  background: #0b8076;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.45);
  animation: none;
}
.floating-download svg { width: 18px; height: 18px; flex-shrink: 0; }

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --------------------------------------------------------------
   HERO
   -------------------------------------------------------------- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 2rem 80px; position: relative; overflow: hidden; background-attachment: fixed; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.07) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 80% 80%, rgba(13,148,136,0.06) 0%, transparent 60%), linear-gradient(180deg, var(--ice) 0%, var(--white) 100%); }
.hero::before { content: ''; position: absolute; top: 15%; right: 8%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%); border-radius: 50%; animation: float 8s ease-in-out infinite; pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 20%; left: 5%; width: 240px; height: 240px; background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%); border-radius: 50%; animation: float 10s ease-in-out infinite reverse; pointer-events: none; }
@keyframes float { 0%, 100% { transform: translateY(0px) scale(1); } 50% { transform: translateY(-20px) scale(1.04); } }
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--navy); margin-bottom: 1.5rem; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); font-weight: 300; color: var(--text-mid); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.75; }

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--teal);
  animation: blink 0.75s step-end infinite;
}
@keyframes blink {
  50% { border-color: transparent; }
}
@media (max-width: 640px) {
  .typewriter { white-space: normal; border-right: none; animation: none; }
}

/* --------------------------------------------------------------
   STAGGERED ANIMATIONS
   -------------------------------------------------------------- */
.stagger-container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger-container.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-container.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-container.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-container.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-container.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-container.visible > * { opacity: 1; transform: translateY(0); }

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------
   ABOUT BRIEF
   -------------------------------------------------------------- */
.about-brief { background: var(--white); padding: 6rem 2rem; text-align: center; position: relative; }
.about-brief::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, var(--teal), var(--blue-accent)); border-radius: 2px; }
.about-brief .section-inner { max-width: 720px; margin: 0 auto; }
.about-brief h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; color: var(--navy); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.about-brief p { font-size: 1.2rem; font-weight: 300; color: var(--text-mid); line-height: 1.8; }

/* --------------------------------------------------------------
   PROJECT CARDS
   -------------------------------------------------------------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.75rem; max-width: 1180px; margin: 0 auto; padding: 0 2rem 5rem; }
.project-card { position: relative; background: var(--white); border: 1px solid var(--ice-deep); border-radius: var(--radius-lg); padding: 2.25rem 2rem; overflow: hidden; transition: all 0.35s var(--ease-spring); isolation: isolate; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--teal), var(--blue-accent));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.project-card:hover::after { opacity: 0.3; }
.myvita-card { border-top: 3px solid var(--teal); }
.pilote-card { border-top: 3px solid var(--blue-accent); }
.project-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.project-logo-img { height: 40px; width: auto; object-fit: contain; }
.project-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.project-card p { font-size: 1rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------
   TRUST STRIP
   -------------------------------------------------------------- */
.trust-strip { background: var(--navy); padding: 2rem 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; }
.trust-strip p { font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,0.90); letter-spacing: 0.03em; }
.trust-badge { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.2); border-radius: 30px; padding: 0.6rem 1.2rem; font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.04em; }
.trust-badge::before { content: '?'; color: var(--teal-light); font-weight: 700; }

/* --------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; padding: 0.75rem 1.75rem; border-radius: 50px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: all 0.25s var(--ease-spring); letter-spacing: 0.01em; white-space: nowrap; }
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); box-shadow: 0 4px 20px rgba(13,148,136,0.28); }
.btn-primary:hover { background: #0b8076; color: var(--white); transform: scale(1.02) translateY(-2px); box-shadow: 0 8px 28px rgba(13,148,136,0.36); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--ice-deep); }
.btn-secondary:hover { background: var(--ice); color: var(--navy); transform: scale(1.02) translateY(-2px); }

/* --------------------------------------------------------------
   PRICING CARDS
   -------------------------------------------------------------- */
.pricing-section { padding: 4rem 2rem; background: linear-gradient(180deg, var(--white) 0%, var(--ice) 100%); text-align: center; }
.pricing-section h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--navy); margin-bottom: 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.pricing-tier { background: var(--white); border: 1.5px solid var(--ice-deep); border-radius: var(--radius-lg); padding: 2.25rem 2rem; transition: all 0.3s var(--ease-spring); text-align: left; }
.pricing-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-tier.featured { border-color: var(--teal); box-shadow: var(--shadow-teal); }
.tier-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.tier-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--navy); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.35rem; }
.tier-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.tier-desc { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.6; }
.pricing-note { text-align: center; margin-top: 2rem; font-size: 0.88rem; color: var(--text-muted); }

/* --------------------------------------------------------------
   STATIC Q&A
   -------------------------------------------------------------- */
.qa-block { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ice-deep); }
.qa-block .q { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 0.5rem; }
.qa-block .a { color: var(--text-mid); line-height: 1.7; font-size: 0.95rem; }

/* --------------------------------------------------------------
   FAQ SECTION
   -------------------------------------------------------------- */
.faq-section { padding: 4rem 2rem; max-width: 800px; margin: 0 auto; }
.faq-section h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--navy); margin-bottom: 2.5rem; text-align: center; }

/* --------------------------------------------------------------
   CONTENT PAGES
   -------------------------------------------------------------- */
.content-page { padding-top: 100px; min-height: 100vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.page-hero { padding: 5rem 2rem 4rem; background: linear-gradient(160deg, var(--ice) 0%, var(--white) 55%); border-bottom: 1px solid var(--ice-deep); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; color: var(--navy); margin-bottom: 1.25rem; }
.page-hero .lead { font-size: 1.15rem; font-weight: 300; color: var(--text-mid); line-height: 1.8; max-width: 620px; }
.page-hero-logo { height: 48px; width: auto; object-fit: contain; }
.page-hero-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.about-content { max-width: 720px; margin: 0 auto; padding: 5rem 2rem; }
.about-content p { font-size: 1.2rem; font-weight: 300; color: var(--text-mid); line-height: 1.85; margin-bottom: 1.75rem; }
.beliefs-list { list-style: none; margin: 2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.beliefs-list li { font-size: 1.1rem; color: var(--text-mid); padding-left: 2rem; position: relative; line-height: 1.6; }
.beliefs-list li::before { content: '\2192'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* --------------------------------------------------------------
   VIDEO
   -------------------------------------------------------------- */
.video-container { position: relative; width: 100%; max-width: 820px; margin: 2.5rem auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 16 / 9; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-caption { text-align: center; font-size: 0.88rem; color: var(--text-muted); margin-top: 1rem; font-style: italic; }

/* --------------------------------------------------------------
   TABLE
   -------------------------------------------------------------- */
.content-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.5rem 0; }
.content-table th { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid var(--ice-deep); }
.content-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--ice-mid); color: var(--text-mid); vertical-align: top; line-height: 1.6; }

/* --------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------- */
.contact-wrapper { max-width: 600px; margin: 0 auto; padding: 5rem 2rem; }
.contact-wrapper h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input, .form-group textarea { font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); background: var(--white); border: 1.5px solid var(--ice-deep); border-radius: var(--radius-md); padding: 0.85rem 1.1rem; transition: all 0.2s var(--ease); outline: none; width: 100%; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }
.form-group textarea { min-height: 160px; resize: vertical; line-height: 1.65; }

/* --------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------- */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 4rem 2rem 2.5rem; }
.footer-content { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; font-size: 0.9rem; }
.footer-content a { color: var(--teal-light); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: center; font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* --------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------- */
.animate-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------- */
@media (max-width: 640px) {
  .nav-links { display: none; position: fixed; inset: 68px 0 0 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(18px); flex-direction: column; padding: 2rem; gap: 0.5rem; z-index: 99; border-top: 1px solid var(--ice-deep); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 1.5rem 60px; background-attachment: scroll; }
  .hero::before, .hero::after { display: none; }
  .projects-grid { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .content-page { padding-top: 80px; }
  .floating-download { bottom: 16px; right: 16px; padding: 0.55rem 1.1rem; font-size: 0.8rem; }
  .trust-strip { gap: 0.5rem 1rem; padding: 1.25rem 1rem; }
  .faq-section { padding: 2rem 1rem; }
}
