/* ==========================================================================
   SolynOS Stylesheet - Aligned with SimplTech.fr Brand Identity
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors - Inherited from SimplTech but overridden with Purple theme */
  --blue-primary: #8521e3;
  --blue-primary-hover: #6c1ab8;
  --blue-france: var(--blue-primary);
  --blue-soft: #f4ebff;
  --blue-accent: #e9d5ff;
  --white: #FFFFFF;
  --slate: #161616;      /* Dark text */
  --pierre: #666666;     /* Grey text */
  --smoke: #F6F6F6;      /* Light background */
  --border: #E5E5E5;     /* Light border */
  --error: #CE0500;
  --success: #18753C;
  --info: #8521e3;

  /* SolynOS Monochromatic Purple Accents */
  --solynos-purple: #8521e3;
  --solynos-purple-light: #a855f7;
  --solynos-purple-dark: #5b14b7;
  
  /* Gradients */
  --gradient-solynos: linear-gradient(90deg, var(--solynos-purple-dark) 0%, var(--solynos-purple) 50%, var(--solynos-purple-light) 100%);
  --gradient-solynos-bg: linear-gradient(135deg, rgba(133, 33, 227, 0.04) 0%, rgba(168, 85, 247, 0.02) 50%, rgba(91, 20, 183, 0.03) 100%);
  
  /* Layout tokens - Strict square corners */
  --r-btn: 0px;
  --r-card: 0px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.2s ease-in-out;
  --container-pad: clamp(1.5rem, 5vw, 6rem);
  --section-v-pad: clamp(3.5rem, 8vh, 5.5rem);
}

/* Accessible Focus Outline */
*:focus-visible {
  outline: 3px solid var(--blue-france) !important;
  outline-offset: 2px !important;
}

/* Skip Links (Liens d'accès rapide) */
.skip-links {
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  background: var(--blue-france);
  z-index: 9999;
  padding: 12px 6%;
  display: flex;
  gap: 16px;
  list-style: none;
  transition: top 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.skip-links a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  font-size: 14px;
}

.skip-links:focus-within {
  top: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--smoke);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-primary);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-solynos);
  z-index: 2000;
  width: 0%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

nav {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6%;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-agency {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-agency-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.solynos-logo-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}



.brand-agency-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-agency-title span {
  background: var(--gradient-solynos);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-agency-subtitle {
  font-size: 10px;
  color: var(--pierre);
  font-weight: 500;
  margin-top: 1px;
}

.nav-menu-bar {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 0 6%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links>a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.nav-links>a:hover {
  background-color: var(--smoke);
  border-bottom-color: var(--blue-primary);
}

/* Info Banner */
.info-banner {
  background-color: var(--blue-soft);
  border-top: 1px solid var(--blue-accent);
  padding: 10px 6%;
  width: 100%;
}

.info-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--slate);
}

.info-banner-icon {
  color: var(--blue-france);
  font-size: 16px;
  flex-shrink: 0;
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate);
  padding: 8px;
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 6%;
  background-color: var(--smoke);
  background-image: var(--gradient-solynos-bg);
  width: 100%;
  border-bottom: 1px solid var(--border);
  margin-top: 164px; /* NAV HEIGHT + BANNER CLEARANCE */
  min-height: calc(100vh - 164px);
  box-sizing: border-box;
}

.hero-content {
  flex: 1.1;
  max-width: 650px;
}

.hero-logo-large {
  display: flex;
  margin-bottom: 24px;
}

.hero-logo-large svg {
  filter: drop-shadow(0 4px 12px rgba(133, 33, 227, 0.15));
  animation: pulseGlowLarge 4s infinite alternate;
}

@keyframes pulseGlowLarge {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(133, 33, 227, 0.15));
  }
  100% {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 24px rgba(133, 33, 227, 0.3));
  }
}

.hero-tag {
  color: var(--solynos-purple);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 12px;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--slate);
  margin-bottom: 20px;
}

header h1 .gradient-text {
  background: var(--gradient-solynos);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

header .hero-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--pierre);
  max-width: 650px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

/* ==========================================================================
   Interactive Progress Panel (Strict Square Corners)
   ========================================================================== */

.progress-panel {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--solynos-purple);
  padding: 32px;
  width: 100%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  color: var(--blue-primary);
}

.panel-badge {
  font-size: 10px;
  background-color: #fff3e0;
  color: #e65100;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.5px;
  animation: blink 2.2s infinite alternate;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 12px;
}

.progress-status {
  color: var(--pierre);
  font-weight: 500;
  font-family: monospace;
}

.progress-percentage {
  font-weight: 700;
  color: var(--slate);
  font-family: monospace;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--smoke);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 32px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gradient-solynos);
  position: relative;
  transition: width 0.3s ease-out;
}

.progress-bar-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(2px);
  animation: shine 2s infinite linear;
}

.subsystems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.subsystem-item {
  background-color: var(--smoke);
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.subsystem-item.active {
  background-color: var(--blue-soft);
  border-color: var(--blue-accent);
}

.subsystem-item.loading {
  background-color: var(--white);
  border-color: var(--blue-primary);
}

.subsystem-item.waiting {
  opacity: 0.55;
}

.sub-status {
  font-size: 14px;
}

.subsystem-item.active .sub-status {
  color: var(--success);
}

.subsystem-item.loading .sub-status {
  color: var(--blue-primary);
}

.sub-name {
  font-size: 12px;
  font-weight: 600;
  flex-grow: 1;
}

.sub-state {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.subsystem-item.active .sub-state {
  color: var(--success);
}

.subsystem-item.loading .sub-state {
  color: var(--blue-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-devis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  height: 44px;
}

.btn-mail {
  background-color: var(--blue-france);
  color: var(--white);
  border: none;
}

.btn-mail:hover {
  background-color: var(--blue-primary-hover);
}

.btn-tel {
  background-color: transparent;
  color: var(--blue-france);
  border: 1px solid var(--blue-france);
}

.btn-tel:hover {
  background-color: rgba(0, 122, 166, 0.05);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */

section {
  padding: var(--section-v-pad) var(--container-pad);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 800px;
}

.section-head .hero-tag {
  color: var(--blue-france);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--slate);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--pierre);
  font-size: 15px;
  line-height: 1.6;
}


/* ==========================================================================
   Overlay & Phone Popup Modal
   ========================================================================== */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(22, 22, 22, 0.4);
  display: none;
  z-index: 1002;
}

.popup-overlay.active {
  display: block;
}

.call-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  z-index: 1003;
  width: 90%;
  max-width: 440px;
  display: none;
}

.call-popup.active {
  display: block;
}

.call-popup h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.call-popup p {
  font-size: 13.5px;
  color: var(--pierre);
  margin-bottom: 24px;
}

.phone-display {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-france);
  text-align: center;
  background-color: var(--smoke);
  padding: 16px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.btn-close-popup {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--blue-france);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-popup:hover {
  background-color: var(--blue-primary-hover);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes blink {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes shine {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(350px); }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 991px) {
  header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 32px;
    padding: 40px 6%;
    margin-top: 110px;
    min-height: calc(100vh - 110px);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-logo-large {
    justify-content: center;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-image {
    max-width: 100%;
    width: 100%;
  }

  .vision-grid.full-width {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .newsletter-box {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-main {
    padding: 12px 4%;
  }

  .nav-menu-bar {
    position: fixed;
    top: 68px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 6%;
    transition: right 0.3s ease-in-out;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .nav-menu-bar.active {
    right: 0;
  }

  header {
    margin-top: 110px; /* Clearance for fixed bar + banner */
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .nav-links>a {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
