/* ================================================================
   JUNKAN — styles.css
   Design système : Tech Minimal (Geist + Geist Mono)
   Fidèle à design-reference.html — tokens, espacements, rayons exacts
   Mobile-first breakpoints : 768px · 1024px
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:                #fbfaf7;
  --bg-2:              #f1ede4;
  --ink:               #0a0a0a;
  --ink-2:             #3a3a3a;
  --ink-3:             #737373;
  --ink-4:             #a3a3a3;
  --line:              #e7e5e4;
  --line-2:            #f2f0ee;
  --line-alt:          #e4dfd2;
  --orange:            #F97316;
  --orange-hover:      #e2630b;
  --orange-soft:       #fff1e6;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0;
}

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

/* Offset ancre pour compenser le nav sticky */
[id] { scroll-margin-top: 80px; }

/* ── Conteneur ──────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

/* Variante sans padding latéral (grille services bord-à-bord) */
.wrap-full {
  padding-left: 0;
  padding-right: 0;
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes pulse {
  0%,  100% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }
  50%        { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);   }
}


/* ════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════ */

nav.top {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo / brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  flex-shrink: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg { display: block; }

/* Liens centraux */
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

/* Groupe droit */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Chip "Disponible" */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  background: var(--orange-soft);
  border: 1px solid #f6dabb;
  border-radius: 99px;
}

.nav-status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Bouton nav CTA */
.nav-cta {
  font-size: 14px;
  padding: 8px 16px;
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
  border-radius: 7px;
  font-weight: 500;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover { background: var(--orange-hover); border-color: var(--orange-hover); }

/* Burger (affiché uniquement sur mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.2s;
}

/* Panneau mobile (masqué par défaut via [hidden]) */
.mobile-nav {
  background: rgba(250, 250, 249, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .wrap {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.15s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--ink); }


/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */

.hero {
  padding: 140px 0 120px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 40px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

h1.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 36px;
}

h1.hero-title .accent { color: var(--orange); }

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 48px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Bouton primaire (réutilisé dans hero + contact) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 14px 22px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.btn-primary:hover { background: var(--orange-hover); }

.btn-primary .arr {
  display: inline-block;
  transition: transform 0.2s;
}

.btn-primary:hover .arr { transform: translateX(3px); }

/* Bouton fantôme */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  padding: 14px 18px;
  font-size: 15px;
  transition: color 0.15s;
}

.btn-ghost:hover { color: var(--ink); }

/* Focus visible global */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ════════════════════════════════════════════════════════════
   PATTERN SECTION (sec-head + sec-tag + sec-title)
   ════════════════════════════════════════════════════════════ */

.sec {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}

.sec.alt {
  background: var(--bg-2);
  border-bottom-color: var(--line-alt);
}

.sec.dark {
  background: var(--ink);
  color: #fafaf9;
  border-bottom-color: #1c1c1c;
}

/* En-tête de section : colonne tag | titre */
.sec-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

.sec-tag {
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 14px;
  border-top: 2.5px solid var(--orange);
  display: inline-block;
}

.sec.dark .sec-tag { color: #fafaf9; }

.sec-title {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 24ch;
}


/* ════════════════════════════════════════════════════════════
   01 — SERVICES
   ════════════════════════════════════════════════════════════ */

/* Grille 3 colonnes séparées par des filets d'1px (trick background) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-alt);
  border-top: 1px solid var(--line-alt);
  border-bottom: 1px solid var(--line-alt);
}

.svc {
  background: var(--bg-2);
  padding: 44px 32px 40px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.svc-num {
  font-size: 15px;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  font-weight: 500;
}

.svc h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.svc p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: auto;
  padding-bottom: 32px;
}

.svc-foot {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.svc-foot .dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   02 — À PROPOS
   ════════════════════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

/* Conteneur portrait 4:5 */
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: #e7e5e4; /* fallback si img non chargée */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.03);
}

/*
 * Filtre CSS très subtil — adoucit l'aspect "iPhone vif" sans désaturer.
 * saturate(0.96) : −4% saturation max, jamais en dessous de 0.90.
 * contrast(1.04) : +4% présence visage sur fond blanc.
 * brightness(1.01) : +1% pour rééquilibrer la légère baisse de saturation.
 * Pas de grayscale, sepia, hue-rotate, mix-blend-mode ni background-blend-mode.
 */
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.96) contrast(1.04) brightness(1.01);
}

.about-text h2 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 22ch;
  color: var(--ink);
}

.about-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 54ch;
}

.about-meta {
  margin-top: 36px;
  display: flex;
  gap: 48px;
  font-size: 14px;
  flex-wrap: wrap;
}

.about-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-meta .k {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-meta .v {
  color: var(--ink);
  font-weight: 500;
}


/* ════════════════════════════════════════════════════════════
   03 — MÉTHODE
   ════════════════════════════════════════════════════════════ */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

/* Ligne pointillée orange reliant les pastilles */
.method-grid::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8%;
  right: 8%;
  height: 0;
  border-top: 1.5px dashed var(--orange);
  opacity: 0.45;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
}

/* Étape active (01) */
.step:nth-child(1) .step-dot {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.step h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 6px;
  color: var(--ink);
}

.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.step .dur {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 10px;
}


/* ════════════════════════════════════════════════════════════
   04 — CONTACT
   ════════════════════════════════════════════════════════════ */

.contact-tag-wrap {
  margin-bottom: 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.contact-left h2 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 32px;
}

.contact-left h2 .accent { color: var(--orange); }

.contact-left p {
  font-size: 18px;
  color: rgba(250, 250, 249, 0.7);
  max-width: 36ch;
  line-height: 1.5;
  margin-bottom: 36px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(250, 250, 249, 0.12);
}

.contact-item:last-child {
  border-bottom: 1px solid rgba(250, 250, 249, 0.12);
}

.contact-item .k {
  font-size: 12px;
  color: rgba(250, 250, 249, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Geist Mono", monospace;
  padding-top: 3px;
}

.contact-item .v {
  font-size: 18px;
  color: #fafaf9;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-item .v small {
  display: block;
  font-weight: 400;
  color: rgba(250, 250, 249, 0.5);
  font-size: 14px;
  margin-top: 4px;
  letter-spacing: 0;
}

.contact-item .v a { transition: color 0.15s; }
.contact-item .v a:hover { color: var(--orange); }


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

footer {
  padding: 48px 0 40px;
  background: var(--ink);
  color: rgba(250, 250, 249, 0.55);
  border-top: 1px solid rgba(250, 250, 249, 0.08);
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-family: "Geist Mono", monospace;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(250, 250, 249, 0.8);
}

.foot-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.foot-row a { transition: color 0.15s; }
.foot-row a:hover { color: #fafaf9; }

/* Mentions légales LCEN 2004 */
.foot-legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 250, 249, 0.08);
}

.foot-legal p {
  font-size: 12px;
  color: #737373;
  line-height: 1.7;
  font-family: "Geist Mono", monospace;
  max-width: 90ch;
}

.foot-legal p + p {
  margin-top: 6px;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 768px
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Conteneur */
  .wrap        { padding: 0 24px; }
  .wrap-full   { padding: 0; }
  [id]         { scroll-margin-top: 72px; }

  /* Nav */
  .nav-links   { display: none; }
  .nav-status  { display: none; }
  .burger      { display: flex; }

  /* Hero */
  .hero        { padding: 80px 0 60px; }
  .eyebrow     { margin-bottom: 28px; }
  .hero-sub    { font-size: 17px; max-width: 100%; margin-bottom: 36px; }

  /* Sections */
  .sec         { padding: 80px 0; }
  .sec-head    { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }

  /* Services : 1 colonne, filets horizontaux */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border-top: none;
    border-bottom: none;
  }

  .svc {
    border-top: 1px solid var(--line-alt);
    min-height: auto;
    padding: 32px 24px 28px;
  }

  .svc:last-child { border-bottom: 1px solid var(--line-alt); }

  /* About : portrait au-dessus du texte */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portrait   { max-width: 260px; }

  .about-meta { gap: 24px; }

  /* Méthode : 1 colonne, ligne pointillée masquée */
  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .method-grid::before { display: none; }

  /* Contact */
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .contact-item  { grid-template-columns: 80px 1fr; gap: 16px; }
  .contact-item .v { font-size: 16px; }

  /* Footer */
  .foot-row   { flex-direction: column; align-items: flex-start; gap: 20px; }
  .foot-links { gap: 16px; }

  /* Mentions légales sur mobile */
  .foot-legal p { font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px (tablette/laptop intermédiaire)
   ════════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .wrap        { padding: 0 40px; }
  .about-grid  { grid-template-columns: 280px 1fr; gap: 48px; }
  .about-meta  { gap: 32px; }
  .nav-status  { display: none; } /* trop serré sur tablet */
}
