/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --bg-color:      #111318;
  --bg-secondary:  #1c1f2b;
  --text-color:    #e8eaf0;
  --text-muted:    #8b909e;
  --primary-color: #F5C469;
  --primary-hover: #e0b050;
  --primary-light: #2a2010;
  --border-color:  #252a38;
  --card-bg:       #1c1f2b;
  --footer-bg:     #0a0c12;

  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--primary-color);
  color: #111318;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-accent {
  color: var(--primary-color);
}

.section-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #111318 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #111318 !important;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-color) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.btn-full {
  width: 100%;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 17, 23, 0.97);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-color);
}

.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-menu:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 4px;
}

.burger-menu span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-menu.toggle span:nth-child(2) { opacity: 0; }
.burger-menu.toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #0f1117;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links.nav-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  transition: color 0.25s ease;
}

/* Effet lignes haut/bas au survol (liens simples uniquement) */
.nav-links a:not(.btn-primary) {
  position: relative;
}

.nav-links a:not(.btn-primary)::before,
.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:not(.btn-primary)::before {
  top: 0;
  transform-origin: left;
}

.nav-links a:not(.btn-primary)::after {
  bottom: 0;
  transform-origin: right;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--primary-color);
}

.nav-links a:not(.btn-primary):hover::before,
.nav-links a:not(.btn-primary):hover::after {
  transform: scaleX(1);
}

/* Bouton "Me contacter" — carré */
.nav-links .btn-primary {
  border-radius: 0;
}

/* =============================================
   HERO
   ============================================= */

/* La section hero reste collée en haut — les sections du dessous glissent par-dessus */
.hero-section {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100vh;
  overflow: hidden; /* masque le débordement du wrapper vidéo lors du parallax */
}

/* Wrapper vidéo — cible du translateY parallax */
.hero-video-wrap {
  position: absolute;
  inset: -15% 0;
  /* 130% de hauteur pour laisser de la marge en haut/bas au glissement */
  z-index: -1;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay sombre pour lisibilité du texte sur l'image */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 24, 0.72);
  pointer-events: none;
}

.hero {
  position: relative; /* passe au-dessus de l'overlay */
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.08;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

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

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}

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

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border-color);
  flex-shrink: 0;
}

/* =============================================
   SECTIONS — Superposition sur le hero
   ============================================= */
/* Toutes les sections après le hero ont un z-index supérieur et remontent par-dessus */
.services-section,
.features,
.portfolio-section,
.about-section,
.contact-section,
.site-footer {
  position: relative;
  z-index: 1;
}

/* =============================================
   SERVICES
   ============================================= */
.services-section {
  background-color: var(--bg-secondary);
  padding: 4rem 5%;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-item:first-child {
  border-top: 1px solid var(--border-color);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 0.25rem;
  min-width: 2rem;
  flex-shrink: 0;
}

.service-body {
  flex: 1;
}

.service-body h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-icon {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.service-icon svg {
  display: block;
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: calc(28px + 0.75rem);
}

/* =============================================
   FEATURES / VALEUR
   ============================================= */
.features {
  background-color: var(--bg-color);
  padding: 4rem 5%;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.feature-icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-icon svg {
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-section {
  background-color: var(--bg-secondary);
  padding: 4rem 5%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portfolio-img-placeholder {
  height: 200px;
}

.portfolio-img-1 {
  background: linear-gradient(135deg, #1e2a3a, #2a3a50);
}

.portfolio-img-2 {
  background: linear-gradient(135deg, #1e2a2a, #243a38);
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =============================================
   ABOUT
   ============================================= */
.about-section {
  background-color: var(--bg-color);
  padding: 4rem 5%;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about-text .btn-primary {
  margin-top: 0.5rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  background-color: var(--bg-secondary);
  padding: 4rem 5%;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.contact-card > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(240, 242, 248, 0.08);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.65);
  padding: 3rem 5% 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.site-footer .logo {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links,
.footer-contact,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-links a,
.footer-contact a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
  color: #ffffff;
}

.footer-contact p {
  font-size: 0.9rem;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.animate-fade.visible {
  opacity: 1;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }

/* =============================================
   PARALLAX
   ============================================= */
.parallax-layer {
  will-change: transform;
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-main {
  padding: 4rem 5%;
  min-height: 60vh;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-container h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

.legal-container h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.legal-container p,
.legal-container ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-container ul {
  margin-left: 2rem;
}

.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-card a {
  color: var(--primary-color);
}

/* =============================================
   RESPONSIVE — SMALL (min-width: 640px)
   ============================================= */
@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   RESPONSIVE — MEDIUM (min-width: 768px)
   ============================================= */
@media (min-width: 768px) {
  .burger-menu {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: none;
    gap: 2rem;
    background: transparent;
  }

  .nav-links a {
    padding: 0;
  }

  .services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
  }

  .service-item:nth-child(2) {
    border-top: 1px solid var(--border-color);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-content {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .about-text { flex: 1; }
  .about-visual { flex: 1; }
}

/* =============================================
   RESPONSIVE — DESKTOP (min-width: 1024px)
   ============================================= */
@media (min-width: 1024px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .hero h1 {
    max-width: 820px;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
