/**
 * SABIRWEB - FEUILLE DE STYLE PRINCIPALE GLASSMORPHISM
 * Hafid Sabir - Portfolio Développeur Desktop & Web
 */

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 15% 15%, var(--bg-gradient-mid) 0%, var(--bg-gradient-start) 45%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* FOND LUMINEUX ORBES GLASSMORPHISM */
.glass-orbs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: -80px;
  left: -80px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: 5%;
  right: -100px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: var(--accent);
  top: 40%;
  left: 30%;
  animation-duration: 24s;
  animation-delay: -10s;
  opacity: 0.25;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.12); }
  100% { transform: translate(-40px, 40px) scale(0.95); }
}

/* TYPOGRAPHIE & HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* CARTES GLASSMORPHISM */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass-lg), 0 0 25px var(--primary-glow);
}

/* BOUTONS GLASS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px var(--primary-glow);
  color: #ffffff;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20ba59;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* BADGES & PILLS */
.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  color: var(--primary);
}

/* NAVBAR NAVIGATION */
.glass-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.glass-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.4rem;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glass);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.nav-brand img {
  height: 34px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.nav-brand .brand-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* SECTION COMMUNE */
section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2.5rem;
  margin: 0.8rem 0 1rem 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* HERO SECTION */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title .name-highlight {
  background: linear-gradient(135deg, var(--text-main) 15%, var(--primary) 65%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

[data-theme="glass-frost-light"] .hero-title {
  color: #0f172a !important;
}

[data-theme="glass-frost-light"] .hero-title .name-highlight {
  background: linear-gradient(135deg, #1e1b4b 0%, #2563eb 55%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #1e1b4b !important;
  font-weight: 800 !important;
}

[data-theme="glass-frost-light"] .hero-badge-wrap .badge-glass {
  color: #1e40af !important;
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* HERO CARTE PROFILE & PREVIEW */
.hero-profile-card {
  padding: 2rem;
  text-align: center;
  position: relative;
}

.profile-avatar-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  box-shadow: 0 0 35px var(--primary-glow);
  position: relative;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 18px;
  height: 18px;
  background: #10b981;
  border-radius: 50%;
  border: 3px solid #0f172a;
  box-shadow: 0 0 10px #10b981;
}

.profile-name {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.profile-role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profile-mini-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.profile-quick-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}

.profile-quick-contact div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* SECTION COMPÉTENCES (SKILLS) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
}

.skill-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill-cat {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.skill-percentage {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 0 12px currentColor;
}

.skill-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SECTION PROCESSUS DE CRÉATION - AFFICHAGE HORIZONTAL SUR UNE SEULE LIGNE */
.process-horizontal-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.35rem;
  align-items: stretch;
  position: relative;
  margin: 2rem 0;
}

.process-h-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem 1rem 1.4rem;
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-h-step:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
  z-index: 15 !important;
}

.step-h-num {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.step-h-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.16));
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
  margin-bottom: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-h-step:hover .step-h-icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.step-h-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-h-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.step-h-arrow {
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.62rem;
  z-index: 20;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
  pointer-events: none;
}

@media (max-width: 1200px) {
  .process-horizontal-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .process-h-step {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}

/* SECTION PROCESSUS DE CRÉATION (MODE VERTICAL RÉTROCOMPATIBLE) */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 35px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  opacity: 0.4;
}

.process-step-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  position: relative;
}

.step-number-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.step-number-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--nav-bg);
  border: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: var(--transition-bounce);
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.step-ico {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-top: 2px;
}

.step-card {
  padding: 1.8rem 2rem;
}

.step-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.4rem;
}

.step-subtitle {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

.step-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.step-deliverables-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.step-deliverables-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: pre-line;
  border-left: 3px solid var(--primary);
}

/* SECTION PROJETS */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-thumb-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.8) 0%, rgba(10, 15, 29, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb {
  transform: scale(1.08);
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid var(--card-border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-client-tag {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.project-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--secondary);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--secondary-rgb), 0.2) 100%);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.service-title {
  font-size: 1.3rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-features {
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: pre-line;
  line-height: 1.6;
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-info-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid var(--card-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.contact-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-form-card {
  padding: 2.5rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

select.form-control,
select.admin-form-control,
select {
  cursor: pointer;
  background-color: var(--card-bg, #0f172a);
  color: var(--text-main, #f8fafc) !important;
  color-scheme: dark;
}

select.form-control option,
.form-control option,
select.admin-form-control option,
.admin-form-control option,
select option,
select optgroup {
  background-color: #0b1329 !important;
  color: #f8fafc !important;
  padding: 10px 14px;
}

[data-theme="glass-frost-light"] select.form-control,
[data-theme="glass-frost-light"] select.admin-form-control,
[data-theme="glass-frost-light"] select {
  color-scheme: light;
  background-color: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="glass-frost-light"] select.form-control option,
[data-theme="glass-frost-light"] .form-control option,
[data-theme="glass-frost-light"] select.admin-form-control option,
[data-theme="glass-frost-light"] .admin-form-control option,
[data-theme="glass-frost-light"] select option,
[data-theme="glass-frost-light"] select optgroup {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 10px 14px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* FOOTER */
.glass-footer {
  margin-top: 5rem;
  padding: 3rem 0 4rem 0;
  background: var(--footer-bg, rgba(10, 15, 30, 0.75));
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  max-width: 400px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  padding-right: 4.5rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* THÈME CLAIR (FROST LIGHT) : FOOTER PARFAITEMENT LISIBLE */
[data-theme="glass-frost-light"] .glass-footer {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="glass-frost-light"] .footer-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="glass-frost-light"] .footer-brand p {
  color: #475569 !important;
}

[data-theme="glass-frost-light"] .footer-links a {
  color: #475569 !important;
}

[data-theme="glass-frost-light"] .footer-links a:hover {
  color: #2563eb !important;
}

[data-theme="glass-frost-light"] .footer-links span {
  color: #475569 !important;
}

[data-theme="glass-frost-light"] .footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
}

[data-theme="glass-frost-light"] .footer-bottom div,
[data-theme="glass-frost-light"] .footer-bottom p,
[data-theme="glass-frost-light"] .footer-bottom span {
  color: #64748b !important;
}

[data-theme="glass-frost-light"] .glass-footer .btn-glass {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
}

[data-theme="glass-frost-light"] .glass-footer .btn-glass:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

/* MODAL DE DÉTAILS PROJET */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  background: #0f172a !important;
  backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  padding: 2.5rem;
  position: relative;
  transform: scale(0.92);
  transition: var(--transition-bounce);
  color: #f8fafc !important;
}

.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-container h2,
.modal-container h3,
.modal-container h4 {
  color: #ffffff !important;
}

.modal-container p,
.modal-container .modal-desc {
  color: #cbd5e1 !important;
}

.modal-container li {
  color: #f8fafc !important;
}

[data-theme="glass-frost-light"] .modal-container {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="glass-frost-light"] .modal-container h2,
[data-theme="glass-frost-light"] .modal-container h3,
[data-theme="glass-frost-light"] .modal-container h4 {
  color: #0f172a !important;
}

[data-theme="glass-frost-light"] .modal-container p,
[data-theme="glass-frost-light"] .modal-container .modal-desc {
  color: #334155 !important;
}

[data-theme="glass-frost-light"] .modal-container li {
  color: #0f172a !important;
}

[data-theme="glass-frost-light"] .modal-close-btn {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--danger);
  transform: rotate(90deg);
}

/* WIDGET FLOTTANT CHANGEMENT DE THÈME GLASS */
.theme-switcher-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.theme-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  color: var(--primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-bounce);
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(25deg);
  box-shadow: 0 0 25px var(--primary-glow);
}

.theme-palette-menu {
  position: absolute;
  bottom: 64px;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  width: 220px;
  box-shadow: var(--shadow-glass-lg);
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}

.theme-palette-menu.show {
  display: flex;
}

.theme-preset-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.theme-preset-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.preset-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1200px) {
  .nav-menu {
    gap: 0.4rem;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: var(--modal-bg);
    backdrop-filter: blur(28px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    flex-direction: column;
    gap: 1.2rem;
    display: none;
    box-shadow: var(--shadow-glass-lg);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-timeline::before {
    left: 25px;
  }
  
  .process-step-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  
  .step-number-circle {
    width: 50px;
    height: 50px;
  }
  
  .step-num {
    font-size: 1.1rem;
  }
  
  .step-ico {
    display: none;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION FAQ & ACCORDION GLASS
   ========================================================================== */
.faq-section {
  position: relative;
  z-index: 10;
}

.faq-item {
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: var(--card-bg);
}

.faq-item summary {
  outline: none;
  cursor: pointer;
  user-select: none;
  color: var(--text-main) !important;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 1.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary span {
  color: var(--text-main) !important;
  font-weight: 700 !important;
}

.faq-item p {
  color: var(--text-muted) !important;
  padding: 0 1.75rem 1.35rem 1.75rem;
  line-height: 1.75;
  font-size: 0.96rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--card-bg-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Surcharge FAQ pour le Thème Clair (Clean Frost Light) */
[data-theme="glass-frost-light"] .faq-item {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="glass-frost-light"] .faq-item summary,
[data-theme="glass-frost-light"] .faq-item summary span {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="glass-frost-light"] .faq-item p {
  color: #334155 !important;
}

[data-theme="glass-frost-light"] .faq-item[open] {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12) !important;
}

@media (max-width: 992px) {
  .apropos-unified-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ===================================================================
   SECTION PARTENAIRES & CAROUSEL GLASSMORPHISM
   =================================================================== */
.partners-section {
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.partners-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 100%;
}

.partners-carousel-track-container {
  overflow: hidden;
  width: 100%;
  padding: 1.2rem 0;
  cursor: grab;
  user-select: none;
}

.partners-carousel-track-container:active {
  cursor: grabbing;
}

.partners-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.partner-card {
  flex: 0 0 calc(25% - 1.15rem);
  min-width: 250px;
  max-width: 320px;
  padding: 1.8rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  text-align: center;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.partner-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-border-hover);
  box-shadow: 0 15px 35px -10px rgba(59, 130, 246, 0.25);
}

.partner-card-link,
.partner-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.partner-logo-wrap {
  height: 65px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.partner-logo-wrap img {
  max-height: 52px;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo-wrap img {
  transform: scale(1.08);
}

.partner-info {
  margin-top: 0.2rem;
}

.partner-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  transition: color 0.3s ease;
}

.partner-card:hover .partner-name {
  color: var(--primary);
}

.partner-category {
  font-size: 0.78rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Boutons Navigation Carousel */
.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--card-border);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--primary);
}

/* Theme Frost Light Adaptation */
[data-theme="glass-frost-light"] .partners-section {
  background: rgba(255, 255, 255, 0.65);
  border-top-color: rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="glass-frost-light"] .partner-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

[data-theme="glass-frost-light"] .partner-name {
  color: #0f172a;
}

[data-theme="glass-frost-light"] .partner-category {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="glass-frost-light"] .carousel-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

@media (max-width: 992px) {
  .partner-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 220px;
  }
}

@media (max-width: 576px) {
  .partner-card {
    flex: 0 0 calc(100% - 1rem);
    min-width: 100%;
    max-width: 100%;
  }
  .carousel-nav-btn {
    display: none;
  }
}


