/* ============================================================
   dev.studio — Feuille de style globale
   Sadji Huon · Développeur full-stack freelance · Brest
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:     #0c0c0e;
  --surf:   #0f0f12;
  --border: rgba(255, 255, 255, 0.07);
  --acc:    #c8f135;
  --text:   #e8e8e2;
  --muted:  #5a5a60;
  --muted2: #8a8a90;

  --font-serif: 'DM Serif Display', serif;
  --font-mono:  'DM Mono', monospace;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --transition: .25s ease;
  --transition-slow: .4s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
  opacity: .5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -.03em;
  line-height: 1.05;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 4rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-slow),
              background var(--transition-slow),
              backdrop-filter var(--transition-slow);
}
nav.scrolled {
  border-color: var(--border);
  background: rgba(12, 12, 14, .88);
  backdrop-filter: blur(20px);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--acc); }

.logo {
  max-width: 140px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
nav ul li a {
  text-decoration: none;
  color: var(--muted2);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
nav ul li a:hover { color: var(--text); }
nav ul li a.active { color: var(--acc); }
.nav-cta {
  background: var(--acc) !important;
  color: #0c0c0e !important;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
}

/* ── BUTTONS ── */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--acc);
  color: #0c0c0e;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .9rem 1.8rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), gap var(--transition);
}
.btn-main:hover { opacity: .88; gap: 1.1rem; }
.btn-main:active { transform: scale(.98); }

.btn-ghost {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition), gap var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
}
.btn-ghost:hover { color: var(--text); gap: .8rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted2);
  text-decoration: none;
  padding: .85rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition);
  font-family: var(--font-mono);
}
.btn-outline:hover { border-color: rgba(200, 241, 53, .25); color: var(--text); }

/* ── SECTION EYEBROW ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--acc);
  flex-shrink: 0;
}
.eyebrow-center {
  justify-content: center;
}
.eyebrow-center::before { display: none; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--acc); }

/* ── DIVIDER ── */
.divider {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-label {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
}
.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
}
.ticker span {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 2rem;
}
.ticker span.acc { color: var(--acc); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── FADE UP (hero load) ── */
.fade-up {
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .34s; }
.delay-4 { animation-delay: .46s; }
.delay-5 { animation-delay: .58s; }
.delay-6 { animation-delay: .70s; }

/* ── CTA BANNER ── */
.cta-banner {
  margin: 0 4rem 8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #111114, #0f0f0a);
  padding: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200, 241, 53, .06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  max-width: 14ch;
}
.cta-banner h2 em { font-style: italic; color: var(--muted2); }
.cta-banner .cta-right p {
  font-size: .8rem;
  color: var(--muted2);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
}

.footer-logo {
  max-width: 115px;
}

.footer-logo span { color: var(--acc); }
footer p { font-size: .62rem; color: var(--muted); letter-spacing: .08em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* ── GRID HELPERS ── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 4rem;
}
.section { padding: 6rem 0; }

/* ── FORM ELEMENTS ── */
.field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
}
.field label {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.field:focus-within label { color: var(--acc); }
.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .78rem;
  font-family: var(--font-mono);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(200, 241, 53, .4);
  background: rgba(200, 241, 53, .025);
  box-shadow: 0 0 0 3px rgba(200, 241, 53, .06);
}
.field.valid input,
.field.valid textarea { border-color: rgba(200, 241, 53, .25); }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lineReveal {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.75); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── BURGER MENU ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 9px;
  z-index: 300;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.burger:hover { border-color: rgba(200, 241, 53, .3); }
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              opacity .25s ease,
              width .3s ease;
  transform-origin: center;
}
.burger span:nth-child(2) { width: 70%; }

/* Burger ouvert → croix */
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 100%; }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 100%; }

/* Menu mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: rgba(12, 12, 14, .97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 3rem 3rem;
  gap: 0;
}
.nav-mobile.open { display: flex; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.nav-mobile ul li {
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .4s ease, transform .4s ease;
}
.nav-mobile ul li:first-child { border-top: 1px solid var(--border); }
.nav-mobile.open ul li { opacity: 1; transform: none; }
.nav-mobile.open ul li:nth-child(1) { transition-delay: .05s; }
.nav-mobile.open ul li:nth-child(2) { transition-delay: .10s; }
.nav-mobile.open ul li:nth-child(3) { transition-delay: .15s; }
.nav-mobile.open ul li:nth-child(4) { transition-delay: .20s; }
.nav-mobile.open ul li:nth-child(5) { transition-delay: .25s; }

.nav-mobile ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -.02em;
  color: var(--muted2);
  transition: color var(--transition);
}
.nav-mobile ul li a::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: .9rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s, transform .2s;
}
.nav-mobile ul li a:hover { color: var(--text); }
.nav-mobile ul li a:hover::after { opacity: 1; transform: none; }
.nav-mobile ul li a.active { color: var(--acc); }

.nav-mobile-footer {
  margin-top: 3rem;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 1.5rem 2rem; }
  nav ul { display: none; }
  .burger { display: flex; }
  .container { padding: 0 2rem; }
  .divider { padding: 0 2rem; }
  .cta-banner {
    margin: 0 2rem 5rem;
    padding: 3rem 2rem;
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    padding: 2rem;
    flex-direction: column;
    gap: .8rem;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}
