/*
Theme Name: Next.Storia
Theme URI: https://next-storia.fr
Author: Next.Storia
Author URI: https://next-storia.fr
Description: Thème officiel Next.Storia — Intégrateur IT & Cloud Microsoft, Reims France
Version: 1.6.0
License: Proprietary
Text Domain: nextstoria
Tags: business, technology, one-page, parallax, custom-colors, custom-logo
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:        #6B2D8B;
  --purple-light:  #8B45AE;
  --purple-pale:   #E8E0F0;
  --purple-faint:  #F4F0F8;
  --black:         #1A1A1A;
  --gray:          #5A5A6A;
  --gray-light:    #9A9AAA;
  --light:         #F9F7FC;
  --white:         #FFFFFF;
  --silver:        #C0C0C8;
  --font-display:  'Plus Jakarta Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-card:   0 4px 24px rgba(107,45,139,0.08);
  --shadow-hover:  0 8px 40px rgba(107,45,139,0.14);
  --transition:    0.22s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--black);
}
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(17px, 2vw, 21px); font-weight: 600; }
p  { font-size: 15px; line-height: 1.75; color: var(--gray); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section    { padding: 6rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.9rem;
}
.divider {
  width: 44px; height: 4px;
  background: var(--purple);
  border-radius: 2px;
  margin: 1.4rem 0 2.8rem;
}
.divider.center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple-pale); }

/* ============================================================
   BACKGROUND LOGO (filigrane) + PARALLAX
   ============================================================ */
.bg-logo {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
  will-change: transform;
}
/* Toute section marquée .parallax reçoit un décalage vertical
   piloté par main.js en fonction du scroll, pour un effet de
   profondeur façon thème Blockstar. */
.parallax-layer {
  transition: transform 0.05s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--purple-pale);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(107,45,139,0.10); }

.nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.site-logo { display: flex; align-items: center; gap: 0; }
.logo-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  overflow: hidden; flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-divider {
  width: 2.5px; height: 34px;
  background: var(--purple);
  margin: 0 10px; flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.5px;
  color: var(--black);
}
.logo-text .dot { color: var(--purple); }
.logo-fallback {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--black);
}
.logo-fallback span { color: var(--purple); }

.nav-menu { display: flex; gap: 2.2rem; align-items: center; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--gray); position: relative; padding-bottom: 3px; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--purple); transition: width var(--transition); }
.nav-menu a:hover { color: var(--purple); }
.nav-menu a:hover::after { width: 100%; }

.nav-cta {
  background: var(--purple); color: #fff !important;
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
}
.nav-cta:hover { background: var(--purple-light) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--black); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   LANGUAGE SWITCHER (Polylang FR / EN)
   ============================================================ */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  margin-left: 0.5rem; padding-left: 1rem;
  border-left: 1px solid var(--purple-pale);
}
.lang-link {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  color: var(--gray-light);
  transition: all var(--transition);
}
.lang-link:hover { color: var(--purple); background: var(--purple-pale); }
.lang-link.active { color: var(--purple); background: var(--purple-pale); }
.lang-link::after { display: none !important; }
.lang-code { letter-spacing: 0.5px; }

/* ============================================================
   HERO — photo plein cadre + overlay + parallax (esprit Blockstar)
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #4A1F66 0%, var(--purple) 55%, var(--purple-light) 100%);
  padding: 100px 5% 6rem;
  position: relative; overflow: hidden;
}
.hero-photo {
  position: absolute;
  top: -10%; left: 0; right: 0; height: 120%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,31,102,0.92) 0%, rgba(107,45,139,0.82) 55%, rgba(139,69,174,0.75) 100%);
  z-index: 1;
}
.hero-grid {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  position: relative; z-index: 2;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 7px 16px;
  border-radius: 20px; margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
}
.hero-tag::before { content: ''; width: 7px; height: 7px; background: #fff; border-radius: 50%; display: block; }

.hero-content h1 { margin-bottom: 1.3rem; color: #fff; }
.hero-content h1 .accent { color: #E8D9F2; display: block; }
.hero-content > p { font-size: 16px; max-width: 480px; margin-bottom: 2.5rem; color: rgba(255,255,255,0.82); }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.hero-visual-card {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 2.2rem;
  box-shadow: 0 20px 60px rgba(20,5,30,0.35);
  position: relative;
  backdrop-filter: blur(10px);
}
.hero-visual-card::before {
  content: ''; position: absolute; top: -2px; left: 32px; right: 32px; height: 4px;
  background: var(--purple); border-radius: 0 0 4px 4px;
}
.card-logo-icon { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.card-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; }
.card-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.card-header p { font-size: 12.5px; color: var(--purple); font-weight: 600; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.badge { background: var(--purple-pale); color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 5px 13px; border-radius: 20px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box { background: var(--light); border-radius: var(--radius-md); padding: 1rem 1.2rem; border: 1px solid var(--purple-pale); text-align: center; }
.stat-box .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--purple); display: block; }
.stat-box .lbl { font-size: 11px; color: var(--gray-light); margin-top: 3px; }

/* Scroll indicator (esprit Blockstar) */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2; opacity: 0.6;
}
.scroll-indicator span { font-family: var(--font-display); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.scroll-indicator .scroll-dot-track { width: 1.5px; height: 32px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.scroll-indicator .scroll-dot { position: absolute; top: 0; left: -1.5px; width: 4.5px; height: 10px; background: #fff; border-radius: 3px; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { top: -10px; } 60% { top: 28px; } 100% { top: 28px; opacity: 0; } }

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: var(--white); position: relative; overflow: hidden; }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 0; position: relative; z-index: 2; }
.services-header .divider { margin-bottom: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; position: relative; z-index: 2; }
.service-card {
  display: block;
  background: var(--white); border: 1.5px solid var(--purple-pale);
  border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  transition: all var(--transition); position: relative; overflow: hidden;
  color: inherit; text-decoration: none;
}
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.service-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; background: var(--purple-faint); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem; }
.service-icon svg { width: 26px; height: 26px; stroke: var(--purple); fill: none; stroke-width: 1.7; }
.service-card h3 { font-size: 16.5px; margin-bottom: 0.6rem; }
.service-card p  { font-size: 13.5px; line-height: 1.65; }

/* ============================================================
   WHY US — section parallax
   ============================================================ */
#why { background: var(--purple); padding: 6rem 5%; position: relative; overflow: hidden; }
.why-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; position: relative; z-index: 2; }
#why .eyebrow   { color: rgba(255,255,255,0.55); }
#why h2         { color: #fff; }
#why .section-sub { color: rgba(255,255,255,0.72); font-size: 15.5px; line-height: 1.7; margin-top: 1rem; }
#why .divider   { background: rgba(255,255,255,0.35); }
.why-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 0.5rem; }
.why-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-num { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; }
.why-item h4   { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.why-item p    { font-size: 13px; color: rgba(255,255,255,0.68); line-height: 1.62; }

/* ============================================================
   PARTNERS — section parallax
   ============================================================ */
#partners { background: var(--light); padding: 5rem 5%; text-align: center; position: relative; overflow: hidden; }
#partners h2 { margin-bottom: 0.5rem; position: relative; z-index: 2; }
#partners p  { color: var(--gray); max-width: 480px; margin: 0 auto 3rem; position: relative; z-index: 2; }
#partners .eyebrow { position: relative; z-index: 2; }
.partners-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; align-items: center; position: relative; z-index: 2; }
.partner-pill { background: var(--white); border: 1.5px solid var(--purple-pale); border-radius: var(--radius-md); padding: 1rem 2rem; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--gray); transition: all var(--transition); }
.partner-pill:hover { border-color: var(--purple); color: var(--purple); }
.partner-pill.featured { border-color: var(--purple); color: var(--purple); background: var(--purple-pale); }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--white); position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 2; }
.about-visual { background: var(--purple-faint); border-radius: var(--radius-xl); border: 1.5px solid var(--purple-pale); min-height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.about-visual .bg-logo { position: absolute; width: 200px; height: 200px; opacity: 0.18; }
.about-info { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2rem; }
.info-row { display: flex; align-items: center; gap: 0.9rem; font-size: 14px; color: var(--gray); }
.info-row svg { width: 18px; height: 18px; stroke: var(--purple); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.info-row a:hover { color: var(--purple); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--purple-faint); padding: 6rem 5%; position: relative; overflow: hidden; }
.contact-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.contact-inner .eyebrow { display: block; }
.contact-inner > p { text-align: center; margin: 0.8rem auto 2.8rem; max-width: 440px; }
.contact-form { background: var(--white); border-radius: var(--radius-xl); border: 1.5px solid var(--purple-pale); padding: 2.8rem; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 1.2rem; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--black); }
.form-group input, .form-group textarea, .form-group select { border: 1.5px solid var(--purple-pale); border-radius: var(--radius-sm); padding: 11px 14px; font-family: var(--font-body); font-size: 14px; color: var(--black); outline: none; background: var(--white); transition: border-color var(--transition); width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--purple); }
.form-group textarea { resize: vertical; min-height: 120px; }
.wpcf7-submit, .form-submit-btn { width: 100%; padding: 15px; background: var(--purple); color: #fff; border: none; border-radius: var(--radius-md); font-family: var(--font-display); font-size: 15px; font-weight: 700; cursor: pointer; transition: background var(--transition); margin-top: 0.5rem; }
.wpcf7-submit:hover, .form-submit-btn:hover { background: var(--purple-light); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--black); color: #fff; padding: 4rem 5% 2.5rem; position: relative; overflow: hidden; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; position: relative; z-index: 2; }
.footer-brand .logo-footer { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-brand .logo-footer span { color: var(--silver); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.48); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.3); position: relative; z-index: 2; }
.footer-bg-logo { position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; object-fit: contain; opacity: 0.07; filter: brightness(0) invert(1); z-index: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid, .services-header, .why-grid, .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual-card { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 5%; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); padding: 2rem 5%; border-top: 1px solid var(--purple-pale); box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 998; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-switcher { border-left: none; border-top: 1px solid var(--purple-pale); margin: 1rem 0 0; padding: 1rem 0 0; width: 100%; }
  .scroll-indicator { display: none; }
}
/* Respecte les préférences d'accessibilité : pas de parallax si
   l'utilisateur a demandé de réduire les animations. */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer { transform: none !important; transition: none !important; }
}
