:root {
  --white: #ffffff;
  --off-white: #f7f8fc;
  --light-blue: #eef3fb;
  --pale-blue: #dde9f8;
  --blue: #2563eb;
  --blue-mid: #1d4ed8;
  --blue-dark: #1e3a8a;
  --ink: #0f172a;
  --ink2: #1e293b;
  --muted: #64748b;
  --muted2: #94a3b8;
  --border: #e2e8f0;
  --border-blue: #bfdbfe;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; transform: translateY(-1px) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink2);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 49;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ink2);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 3rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--light-blue) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.hero-text { flex: 1; min-width: 0; order: 1; }
.hero-logo-area { order: 2; }

.hero-logo-area {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-blue);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  width: fit-content;
  animation: fadeUp 0.6s ease both;
}

.hero-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
  color: var(--ink);
}

.hero h1 .name-dim { color: var(--muted2); }
.hero h1 .accent { color: var(--blue); display: block; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
  animation: fadeUp 0.6s 0.2s ease both;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--ink2);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--light-blue);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted2);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: fadeUp 0.6s 0.5s ease both;
}
.scroll-line {
  width: 36px; height: 1px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--blue);
  animation: scan 2s ease infinite;
}

/* ── SHARED ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 3rem;
  line-height: 1.1;
  color: var(--ink);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── STRIPE BACKGROUNDS ── */
.bg-off { background: var(--off-white); }
.bg-light-blue { background: var(--light-blue); }
.bg-white { background: var(--white); }
.full-width-section { width: 100%; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  transition: all 0.25s;
  cursor: default;
}
.skill-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(37,99,235,0.08);
}

.skill-icon { font-size: 1.7rem; margin-bottom: 0.9rem; }

.skill-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

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

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 1.5rem;
  align-items: stretch;
}

.project-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(37,99,235,0.10);
}

.project-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-thumb.console { background: linear-gradient(135deg, #dde9f8 0%, #bfdbfe 100%); }
.project-thumb.paris   { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(255,255,255,0.8) 100%);
}

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

.project-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

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

.project-techs { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tech-pill {
  background: var(--light-blue);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}

.project-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.project-link:hover { color: var(--blue); }
.project-link::after { content: '→'; }

.project-avis {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: all 0.3s;
  height: 100%;
}
.project-avis:hover {
  border-color: var(--border-blue);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(37,99,235,0.10);
}

.avis-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.avis-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avis-nom {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.avis-entreprise {
  font-size: 0.78rem;
  color: var(--muted);
}

.avis-etoiles {
  margin-left: auto;
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.avis-texte {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}

.avis-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted2);
}

.avis-projet { font-weight: 600; }

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

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--pale-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 0 0 2px 2px;
}
.service-card:hover { border-color: var(--border-blue); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.08); }
.service-card:hover::after { transform: scaleX(1); }

.service-price {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.service-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.service-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CONTACT ── */
.contact-box {
  background: var(--blue);
  border-radius: 28px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.contact-box::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.contact-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.contact-box p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.contact-email {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}
.contact-email:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

footer p {
  font-size: 0.8rem;
  color: var(--muted2);
}

footer .footer-right {
  display: flex;
  gap: 1.5rem;
}

footer .footer-right a {
  font-size: 0.8rem;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.2s;
}
footer .footer-right a:hover { color: var(--blue); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

@keyframes scan {
  to { left: 100%; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .hero {
    padding: 7rem 1.5rem 4rem;
    min-height: auto;
  }
  .hero::before { width: 280px; height: 280px; top: 5%; right: -15%; }
  .hero h1 { letter-spacing: -1.5px; }
  .scroll-hint { display: none; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-logo-area { align-self: center; order: 1; }
  .hero-text { order: 2; }

  .section { padding: 4rem 1.5rem; }

  .skills-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .skill-card { padding: 1.3rem; }

  .projects-grid { gap: 2rem; }
  .project-row { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }

  .contact-box { padding: 3rem 1.5rem; border-radius: 20px; }
  .contact-email { font-size: 0.85rem; padding: 0.8rem 1.5rem; word-break: break-all; }

  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem;
  }

  .footer-right { gap: 1rem; }
}

@media (max-width: 420px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
}