/* =====================================================
   SysCore SRL — Main Stylesheet v1.0
   ===================================================== */

/* Les couleurs dynamiques sont injectées via PHP (functions.php) */
:root {
  --indigo:        #3B3FA0;
  --indigo-light:  #5358C8;
  --indigo-pale:   #ECEDF8;
  --indigo-xpale:  #F5F5FC;
  --amber:         #E8872A;
  --green-soft:    #2A9E6A;
  --bg:            #FAFAFA;
  --white:         #ffffff;
  --text:          #111827;
  --text-mid:      #4B5563;
  --text-soft:     #9CA3AF;
  --border:        #E5E7EB;
  --border-light:  #F3F4F6;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.09), 0 4px 12px rgba(0,0,0,.05);
  --radius:        12px;
  --radius-lg:     20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 900;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 60px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img,
.nav-logo .custom-logo { height: 36px; width: auto; }
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--text); letter-spacing: -.3px;
  white-space: nowrap;
}
.nav-logo-text span { color: var(--indigo); }
.nav-srl { color: var(--text-soft) !important; font-weight: 400 !important; }

/* WordPress wp_nav_menu output */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links li a {
  font-size: 14px; font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 7px 14px; border-radius: 8px;
  transition: all .2s; white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li.current-menu-item a {
  background: var(--indigo-xpale);
  color: var(--indigo);
}

.nav-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Burger (mobile) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all .2s; cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--indigo); color: white; }
.btn-primary:hover {
  background: var(--indigo-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,63,160,.25);
  color: white;
}
.btn-ghost {
  background: white; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--indigo); color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  padding: 140px 60px 80px;
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 600px at 75% 40%, rgba(59,63,160,.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 20% 80%, rgba(59,63,160,.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--indigo-pale); color: var(--indigo);
  font-size: 12px; font-weight: 500;
  font-family: 'DM Mono', monospace; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--indigo); border-radius: 50%;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800; line-height: 1.06; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 20px;
  animation: fadeUp .6s .08s ease both;
}
.hero-title .accent {
  color: var(--indigo); position: relative; display: inline;
}
.hero-title .accent::after {
  content: ''; position: absolute; bottom: 4px; left: 0; right: 0;
  height: 4px; background: var(--indigo-pale); z-index: -1; border-radius: 2px;
}
.hero-desc {
  font-size: 17px; color: var(--text-mid); line-height: 1.7;
  max-width: 480px; margin-bottom: 40px; font-weight: 400;
  animation: fadeUp .6s .16s ease both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp .6s .24s ease both;
}

/* Hero Visual (carte flottante) */
.hero-visual { position: relative; animation: fadeUp .6s .32s ease both; }
.hero-card-main {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
  position: relative; z-index: 2;
}
.hero-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.card-dots { display: flex; gap: 6px; }
.card-dot  { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #FF6058; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #27C93F; }
.card-tag { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-soft); letter-spacing: 1px; }
.hero-entities { display: flex; flex-direction: column; gap: 10px; }
.hero-entity-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: 10px; background: var(--border-light); transition: all .2s; cursor: pointer;
}
.hero-entity-row:hover, .hero-entity-row.active { background: var(--indigo-xpale); }
.entity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.entity-dot-indigo { background: var(--indigo); }
.entity-dot-amber  { background: var(--amber); }
.entity-dot-green  { background: var(--green-soft); }
.entity-label { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; }
.entity-sub   { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-soft); }
.hero-card-float {
  position: absolute; background: white; border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  animation: float 4s ease-in-out infinite; white-space: nowrap;
}
.float-1 { bottom: -24px; right: -32px; color: var(--indigo); }
.float-2 { top: -20px; left: -28px; color: var(--green-soft); animation-delay: -2s; }
.float-icon { font-size: 18px; }

/* ── STATS STRIP ─────────────────────────────────── */
.stats-strip {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 60px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; text-align: center;
}
.stat-num   { font-family: 'Syne', sans-serif; font-size: 38px; font-weight: 800; color: var(--indigo); line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* ── SECTIONS GENERIQUES ─────────────────────────── */
.section { padding: 100px 60px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-pre {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px;
  color: var(--indigo); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 3.5vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}
.section-title span { color: var(--indigo); }
.section-desc { font-size: 16px; color: var(--text-mid); max-width: 520px; line-height: 1.7; }

/* ── SERVICES ────────────────────────────────────── */
.services-bg { background: white; }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px;
}
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--indigo-light));
  opacity: 0; transition: opacity .25s;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; background: white; }
.service-card:hover::before { opacity: 1; }
.service-icon-wrap {
  width: 48px; height: 48px; background: var(--indigo-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px; transition: all .25s;
}
.service-card:hover .service-icon-wrap { background: var(--indigo); }
.service-card-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-card-desc  { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
.service-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 20px;
  font-size: 13px; font-weight: 500; color: var(--indigo); text-decoration: none; transition: gap .2s;
}
.service-link:hover { gap: 10px; }

/* ── ENTITÉS ─────────────────────────────────────── */
.entities-section { background: var(--indigo-xpale); }
.entities-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }

.entity-card {
  border-radius: var(--radius-lg); padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: all .3s; cursor: pointer;
  display: flex; flex-direction: column;
}
.entity-card:hover { transform: translateY(-6px); }
.ec-syscore { background: var(--indigo); color: white; }
.ec-solar, .ec-sound { background: white; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ec-syscore:hover { box-shadow: 0 20px 60px rgba(59,63,160,.35); }
.ec-solar:hover, .ec-sound:hover { box-shadow: var(--shadow-lg); }

.entity-tag {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 24px;
}
.ec-syscore .entity-tag { color: rgba(255,255,255,.7); }
.ec-solar   .entity-tag { color: var(--amber); }
.ec-sound   .entity-tag { color: var(--green-soft); }

.entity-name {
  font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800;
  letter-spacing: -.5px; line-height: 1.1; margin-bottom: 8px;
}
.ec-syscore .entity-name { color: white; }
.ec-solar   .entity-name,
.ec-sound   .entity-name { color: var(--text); }

.entity-domain { font-family: 'DM Mono', monospace; font-size: 12px; margin-bottom: 20px; }
.ec-syscore .entity-domain { color: rgba(255,255,255,.45); }
.ec-solar   .entity-domain,
.ec-sound   .entity-domain { color: var(--text-soft); }

.entity-desc { font-size: 14px; line-height: 1.7; flex: 1; margin-bottom: 28px; }
.ec-syscore .entity-desc { color: rgba(255,255,255,.75); }
.ec-solar   .entity-desc,
.ec-sound   .entity-desc { color: var(--text-mid); }

.entity-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.entity-feat-pill { font-size: 12px; padding: 4px 12px; border-radius: 100px; font-weight: 500; }
.ec-syscore .entity-feat-pill { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.ec-solar   .entity-feat-pill { background: rgba(232,135,42,.1); color: var(--amber); }
.ec-sound   .entity-feat-pill { background: rgba(42,158,106,.1); color: var(--green-soft); }

.entity-cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: 8px;
  transition: all .2s; align-self: flex-start;
}
.ec-syscore .entity-cta { background: rgba(255,255,255,.2); color: white; }
.ec-syscore .entity-cta:hover { background: white; color: var(--indigo); }
.ec-solar   .entity-cta { background: rgba(232,135,42,.1); color: var(--amber); }
.ec-solar   .entity-cta:hover { background: var(--amber); color: white; }
.ec-sound   .entity-cta { background: rgba(42,158,106,.1); color: var(--green-soft); }
.ec-sound   .entity-cta:hover { background: var(--green-soft); color: white; }

/* ── CONTACT ─────────────────────────────────────── */
.contact-section { background: white; padding: 100px 60px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
}
.contact-pills { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.contact-pill {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; transition: all .2s;
}
.contact-pill:hover { border-color: var(--indigo-pale); box-shadow: var(--shadow-sm); }
.pill-icon {
  width: 40px; height: 40px; background: var(--indigo-pale); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.pill-label { font-size: 11px; color: var(--text-soft); font-family: 'DM Mono', monospace; letter-spacing: .5px; margin-bottom: 2px; }
.pill-value { font-size: 14px; font-weight: 500; color: var(--text); }

.contact-form-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 28px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 16px; border: 1px solid var(--border);
  border-radius: 8px; background: white;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(59,63,160,.1);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-submit {
  width: 100%; padding: 13px; background: var(--indigo); color: white;
  border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all .2s; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover { background: var(--indigo-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,63,160,.25); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success {
  padding: 14px 18px; background: #ECFDF5; border: 1px solid #6EE7B7;
  border-radius: 8px; color: #065F46; font-size: 14px; margin-bottom: 16px;
}
.form-error {
  padding: 14px 18px; background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 8px; color: #991B1B; font-size: 14px; margin-bottom: 16px;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--text); color: rgba(255,255,255,.85);
  padding: 72px 60px 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-img, .footer-logo-row .custom-logo { height: 30px; filter: brightness(0) invert(1); }
.footer-logo-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: white; }
.footer-brand p   { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.footer-col ul    { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom    { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy      { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-links     { display: flex; gap: 24px; }
.footer-links a   { font-size: 13px; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.7); }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  nav { padding: 0 32px; }
  .hero, .section, .contact-section, footer, .stats-strip { padding-left: 32px; padding-right: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .entities-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  nav  { padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 12px 24px; border-radius: 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 110px 20px 60px; }
  .section, .contact-section, .stats-strip { padding-left: 20px; padding-right: 20px; }
  footer { padding: 48px 20px 32px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .entities-grid { grid-template-columns: 1fr; }
}

/* ── PRINT ────────────────────────────────────────── */
@media print {
  nav, .hero-card-float { display: none; }
  .hero { padding-top: 20px; min-height: auto; }
}
