/* ============================================
   STUDIO NATHAN — Feuille de style principale
   Palette : Orange #E85D04 / Dark #0D0D0D
   Typo : Space Grotesk (titres) + Inter (corps)
   ============================================ */

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

/* ─── Variables ────────────────────────────── */
:root {
  --orange:       #E85D04;
  --orange-dim:   #B84A03;
  --orange-light: #FFF0E8;
  --dark:         #0D0D0D;
  --dark-2:       #1A1A1A;
  --dark-3:       #2A2A2A;
  --light:        #FAFAF9;
  --light-2:      #F2F2F0;
  --text:         #1A1A1A;
  --text-muted:   #6B6B6B;
  --text-on-dark: #F0EDE8;
  --border:       #E5E5E2;
  --border-dark:  #2A2A2A;

  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h:        72px;
  --radius:       6px;
  --radius-lg:    12px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.7, 0, 0.84, 0);
}

/* ─── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typographie ──────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; line-height: 1.75; color: var(--text-muted); }

/* ─── Utilitaires ──────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Navigation ───────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-color: var(--border-dark);
}
.nav--dark { background: transparent; }
.nav--light { background: var(--light); border-color: var(--border); }
.nav--light.scrolled { background: rgba(250,250,249,0.95); }

.nav__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav__logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-on-dark);
  text-transform: uppercase;
}
.nav--light .nav__logo { color: var(--text); }

.nav__logo-icon { width: 36px; height: 36px; flex-shrink: 0; }

.nav__links {
  display: flex; align-items: center; gap: 36px;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(240,237,232,0.7);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}
.nav--light .nav__link { color: var(--text-muted); }
.nav__link:hover,
.nav__link.active { color: var(--text-on-dark); }
.nav--light .nav__link:hover,
.nav--light .nav__link.active { color: var(--text); }
.nav__link.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav__cta {
  padding: 10px 20px;
  background: var(--orange);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav__cta:hover { background: var(--orange-dim); transform: translateY(-1px); }

.nav__hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer;
  background: none; border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block; height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav--light .nav__hamburger span { background: var(--text); }

/* ─── Boutons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-dim); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,93,4,0.3); }
.btn--outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(240,237,232,0.3);
}
.btn--outline:hover { border-color: rgba(240,237,232,0.7); transform: translateY(-2px); }
.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline-dark:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

/* ─── Effet Roll (scroll reveal) ───────────── */
.roll {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.roll.visible {
  opacity: 1;
  transform: translateY(0);
}
.roll-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.roll-left.visible { opacity: 1; transform: translateX(0); }
.roll-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.roll-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── Hero ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,93,4,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,93,4,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner { max-width: 1160px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--orange);
}

.hero__title {
  color: var(--text-on-dark);
  margin-bottom: 24px;
  max-width: 820px;
}
.hero__title span { color: var(--orange); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(240,237,232,0.55);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.65;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(240,237,232,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(240,237,232,0.3));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ─── Page Hero (sous-pages) ───────────────── */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  text-align: left;
}
.page-hero__inner { max-width: 1160px; margin: 0 auto; }
.page-hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--orange); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 20px;
}
.page-hero__tag::before {
  content: ''; width: 24px; height: 1px; background: var(--orange);
}
.page-hero h1 { color: var(--text-on-dark); margin-bottom: 16px; }
.page-hero p { color: rgba(240,237,232,0.55); max-width: 560px; }

/* ─── Sections ─────────────────────────────── */
.section { padding: 100px 24px; }
.section--dark { background: var(--dark); }
.section--gray { background: var(--light-2); }

.section__header { margin-bottom: 64px; }
.section__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--orange); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section__tag::before {
  content: ''; width: 20px; height: 1px; background: var(--orange);
}
.section--dark .section__tag { color: var(--orange); }

.section h2 { margin-bottom: 16px; }
.section--dark h2 { color: var(--text-on-dark); }
.section p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
}
.section--dark p.lead { color: rgba(240,237,232,0.5); }

/* ─── Cards services ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(232,93,4,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--orange);
}
.service-card h3 { color: var(--text-on-dark); margin-bottom: 12px; }
.service-card p { color: rgba(240,237,232,0.5); font-size: 0.9375rem; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap 0.2s ease;
}
.service-card__link:hover { gap: 10px; }

/* ─── Process steps ────────────────────────── */
.process { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-step__num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.process-step h4 { margin-bottom: 8px; font-size: 1rem; }
.process-step p { font-size: 0.9375rem; }

/* ─── Demo sites grid ──────────────────────── */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.demo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.1);
}
.demo-card__preview {
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.demo-card__meta {
  padding: 24px;
  background: var(--light);
}
.demo-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.demo-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.demo-card p { font-size: 0.875rem; }
.demo-card__action {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text);
  transition: gap 0.2s ease;
}
.demo-card__action:hover { gap: 10px; }

/* ─── CTA Section ──────────────────────────── */
.cta-section {
  background: var(--dark);
  padding: 100px 24px;
  text-align: center;
}
.cta-section__inner { max-width: 640px; margin: 0 auto; }
.cta-section h2 { color: var(--text-on-dark); margin-bottom: 16px; }
.cta-section p { color: rgba(240,237,232,0.5); margin-bottom: 40px; font-size: 1.125rem; }
.cta-section .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Contact Form ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; }
.contact-item {
  display: flex; gap: 14px; align-items: start;
  margin-bottom: 20px;
}
.contact-item__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--orange-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.contact-item__label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-item__value { font-weight: 500; font-size: 0.9375rem; }

.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  background: var(--light-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.08);
}
.form-group textarea { min-height: 140px; }
.form__note { font-size: 0.8125rem; color: var(--text-muted); }

/* ─── À propos ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  aspect-ratio: 4/5;
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}
.about-visual__placeholder {
  font-family: var(--font-head);
  font-size: 0.875rem;
  color: rgba(240,237,232,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-visual__accent {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,4,0.15), transparent);
}
.about-content h2 { margin-bottom: 24px; }
.about-content p { margin-bottom: 20px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill-tag {
  padding: 8px 16px;
  background: var(--light-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

/* ─── Catalogue placeholder ────────────────── */
.coming-soon {
  text-align: center;
  padding: 120px 24px;
}
.coming-soon__badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 32px;
}
.coming-soon h2 { max-width: 500px; margin: 0 auto 16px; }
.coming-soon p { max-width: 440px; margin: 0 auto 40px; }

/* ─── Footer ────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 60px 24px 32px;
}
.footer__inner {
  max-width: 1160px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 32px;
}
.footer__brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 12px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.footer__brand p {
  font-size: 0.875rem;
  color: rgba(240,237,232,0.35);
  max-width: 240px;
}
.footer__col h5 {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(240,237,232,0.4);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--text-on-dark); }
.footer__bottom {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(240,237,232,0.25);
}
.footer__bottom a { color: var(--orange); }

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: var(--nav-h) 0 0;
    background: var(--dark);
    padding: 40px 24px;
    gap: 24px; z-index: 99;
  }
  .nav__link { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 72px 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .roll, .roll-left, .roll-right {
    opacity: 1 !important; transform: none !important;
    transition: none !important;
  }
  .hero__scroll-line { animation: none; }
}
