/* ============================================================
   ALT TAB STUDIO — « Le Switcher »
   Direction : atelier éditorial · papier crème / encre / cobalt
   ============================================================ */

:root {
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', monospace;

  --paper:  #F3EFE9;   /* lin clair */
  --paper-2:#EAE3D6;   /* panneaux clairs */
  --ink:    #141A2E;   /* bleu nuit profond */
  --ink-2:  #1E2540;   /* surface bleu nuit */
  --ink-soft:#5A6072;  /* texte atténué sur lin */
  --cream-soft: rgba(243,239,233,0.64); /* texte atténué sur bleu nuit */
  --line:   rgba(20,26,46,0.15);
  --line-cream: rgba(243,239,233,0.16);
  --accent: #E87A5D;   /* corail (chaud, accent principal) */
  --accent-2:#4659C7;  /* bleu électrique (froid, secondaire) */
  --on-accent:#FBF6F1;

  /* rayons — tout arrondi */
  --r-xs: 10px;
  --r-sm: 14px;
  --r:    18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-pill: 999px;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { display: block; }
::selection { background: var(--accent); color: var(--on-accent); }

/* grain */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============ KEYCAPS / BRAND ============ */
.key {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 2px 0 rgba(22,20,14,0.55);
  line-height: 1;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-keys { display: inline-flex; gap: 4px; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.4px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 0.92rem;
  padding: 14px 28px; border-radius: var(--r-pill); cursor: pointer;
  border: 1.5px solid var(--ink); transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); box-shadow: 0 12px 26px -8px rgba(232,122,93,0.6); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); box-shadow: 0 12px 26px -10px rgba(20,26,46,0.35); }
.btn-full { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(241,234,218,0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.4px; color: var(--ink-soft);
  position: relative; transition: color 0.2s;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: var(--ink) !important; font-weight: 600; }
.nav-cta:hover { color: var(--accent) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ============ HERO ============ */
.hero { position: relative; padding: 150px 0 0; }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; min-height: 70vh;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 30px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:0.4; transform:scale(0.7);} }

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  font-weight: 700; line-height: 0.96; letter-spacing: -2.5px;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal; color: var(--accent);
  position: relative; white-space: nowrap;
}
.hero-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: var(--accent); opacity: 0.16; z-index: -1; transform: skewX(-12deg);
}
.hero-sub {
  font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 44ch; margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.reassure {
  margin-top: 20px; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.3px; color: var(--ink-soft);
}
.form-reassure { grid-column: 1 / -1; margin: 0; color: var(--accent); }

/* ---- signature switcher ---- */
.hero-switch { position: relative; }
.switch-cue {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 16px;
}
.key-lg { font-size: 0.78rem; padding: 7px 12px; }
.plus { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-soft); }
.switch-hint {
  flex-basis: 100%; margin-top: 8px;
  font-family: var(--body); font-size: 0.92rem; font-weight: 500;
  color: var(--ink);
}
.switcher {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: var(--ink); border-radius: var(--r-xl); padding: 18px;
  box-shadow: 0 30px 60px -24px rgba(20,26,46,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
/* calque orange morphant placé derrière la tuile active (dimensions/position pilotées en JS) */
.morph-layer {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 0; pointer-events: none;
  transform-origin: center; will-change: transform;
  filter: drop-shadow(0 10px 20px rgba(232,122,93,0.4));
}
.morph-blob { fill: var(--accent); }
.tile {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; border: 1px solid transparent;
  color: var(--cream-soft); font-family: var(--body);
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
}
.tile-ico { width: 30px; height: 30px; }
.tile-ico svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-name { font-size: 0.74rem; font-weight: 500; text-align: center; line-height: 1.2; }
.tile.is-active {
  color: var(--on-accent);
  transform: translateY(-3px) scale(1.03);
}
/* fallback si JS/anime.js absent : le blob reste caché, on garde un highlight propre */
.no-morph .morph-layer { display: none; }
.no-morph .tile.is-active {
  background: var(--accent); border-radius: var(--r-sm);
  box-shadow: 0 14px 30px -10px rgba(232,122,93,0.7);
}
.switch-caption {
  margin-top: 16px; font-family: var(--mono); font-size: 0.82rem;
  font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 9px;
}
.switch-arrow { color: var(--accent); font-weight: 600; }
#switch-label { transition: opacity 0.25s; }

/* hero marquee */
.hero-marquee {
  margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 14px 0;
}
.hero-marquee-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  animation: slide 32s linear infinite;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-soft);
}
.hero-marquee-track .sep { color: var(--accent); }
@keyframes slide { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section-soft { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .sec-lead { color: var(--cream-soft); }

.sec-head {
  display: flex; gap: 26px; align-items: baseline;
  margin-bottom: 60px; max-width: 760px;
}
.sec-num {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  color: var(--accent); padding-top: 8px; flex-shrink: 0;
}
.section-ink .sec-num { color: var(--accent); }
.sec-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -1.2px;
  margin-bottom: 14px;
}
.sec-lead { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.55; max-width: 52ch; }

/* ============ OFFERS ============ */
.guide {
  font-size: 1.05rem; line-height: 1.6; color: var(--cream-soft);
  max-width: 64ch; margin-bottom: 34px;
}
.guide strong { color: var(--accent); font-weight: 700; }
.section-soft .guide, .section:not(.section-ink) .guide { color: var(--ink-soft); }

.offers { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-bottom: 56px; }
.offer {
  border: 1px solid var(--line-cream); border-radius: var(--r-lg);
  padding: 36px 34px; position: relative;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.offer:hover { transform: translateY(-4px); }
.offer-main { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.offer-sub { background: transparent; border-color: var(--line-cream); }
.offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.offer-flag {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--accent); color: var(--on-accent);
  padding: 5px 12px; border-radius: var(--r-pill);
}
.offer-flag-alt { background: transparent; color: var(--cream-soft); border: 1px solid var(--line-cream); }
.offer h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.02; letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.offer-aka {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3px;
  color: var(--ink-soft); margin: -8px 0 18px;
}
.offer p { font-size: 0.98rem; line-height: 1.6; margin-bottom: 22px; }
.offer-main p { color: var(--ink-soft); }
.offer-sub p { color: var(--cream-soft); }
.offer-main p em { font-style: italic; color: var(--accent); font-weight: 600; }
.offer-list { display: flex; flex-direction: column; gap: 11px; }
.offer-list li {
  position: relative; padding-left: 24px; font-size: 0.9rem; line-height: 1.45;
}
.offer-main .offer-list li { color: var(--ink); }
.offer-sub .offer-list li { color: var(--paper); }
.offer-list li::before {
  content: '→'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}
.offer-sub .offer-list li::before { color: var(--accent); }

/* included chips */
.included-title {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream-soft);
  margin-bottom: 16px;
}
.included-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.chip {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.3px;
  color: var(--paper); border: 1px solid var(--line-cream);
  padding: 10px 16px; border-radius: var(--r-pill);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* model band */
.model {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center;
  border-top: 1px solid var(--line-cream); padding-top: 40px;
}
.model-part { display: flex; flex-direction: column; gap: 8px; }
.model-k {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.6px; color: var(--accent);
}
.model-v { font-size: 0.95rem; color: var(--cream-soft); line-height: 1.5; max-width: 36ch; }
.model-op { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--cream-soft); }

/* ============ TEAM ============ */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.member {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  padding: 30px; border-radius: var(--r-lg); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(20,26,46,0.35); }
.member-mono {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.7rem;
  background: var(--ink); color: var(--paper);
}
.member-mono-c { background: var(--accent-2); }
.member h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.5px; margin-bottom: 4px; }
.member-role {
  display: inline-block; font-family: var(--mono); font-size: 0.64rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 14px;
}
.member p { font-size: 0.94rem; color: var(--ink-soft); }
.team-note {
  text-align: center; max-width: 640px; margin: 44px auto 0;
  font-size: 1rem; color: var(--ink-soft); line-height: 1.7;
}

/* ============ TRAVAUX (marquee) ============ */
.marquee { overflow: hidden; padding: 8px 0 4px; }
.marquee-track { display: flex; gap: 18px; width: max-content; padding: 0 9px; animation: slide 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.work {
  width: 320px; flex-shrink: 0; padding: 30px 28px 28px;
  background: var(--ink-2); border: 1px solid var(--line-cream);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; min-height: 220px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.work:hover { background: var(--accent); transform: translateY(-6px); }
.work-idx { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-bottom: auto; }
.work:hover .work-idx { color: var(--on-accent); }
.work h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.5px; margin: 24px 0 6px; color: var(--paper); }
.work p { font-size: 0.86rem; color: var(--cream-soft); margin-bottom: 16px; }
.work:hover p { color: rgba(255,255,255,0.85); }
.work-tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--accent);
  border-top: 1px solid var(--line-cream); padding-top: 14px;
}
.work:hover .work-tag { color: var(--on-accent); border-color: rgba(255,255,255,0.3); }
.work-cta { background: var(--paper); }
.work-cta .work-idx { color: var(--accent); }
.work-cta h3 { color: var(--ink); }
.work-cta p { color: var(--ink-soft); }
.work-cta .work-tag { color: var(--accent); border-color: var(--line); }
.work-cta:hover { background: var(--accent); }
.work-cta:hover h3, .work-cta:hover p { color: var(--on-accent); }

/* ============ CONTACT FORM ============ */
.contact-wrap { max-width: 820px; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  border-top: 1px solid var(--line); padding-top: 44px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft);
}
.form input, .form textarea {
  font-family: var(--body); font-size: 0.98rem; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid transparent;
  border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(90,96,114,0.65); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--paper);
  box-shadow: 0 0 0 4px rgba(232,122,93,0.14);
}
.form textarea { resize: vertical; }
.form .btn-full { grid-column: 1 / -1; margin-top: 8px; }

.form-success { display: none; text-align: center; padding: 60px 0; }
.form-success.show { display: block; animation: rise 0.6s var(--ease); }
.form-success h3 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); }
.success-mark { width: 70px; height: 70px; margin: 0 auto 22px; }
.success-mark svg { width: 100%; height: 100%; }
.success-mark circle { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; animation: stroke 0.6s var(--ease) forwards; }
.success-mark path { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke 0.4s var(--ease) 0.4s forwards; }
@keyframes stroke { to { stroke-dashoffset: 0; } }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--paper); padding: 60px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.brand-footer .brand-name { color: var(--paper); }
.footer .key { background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 rgba(243,239,233,0.25); }
.footer-sub { font-size: 0.95rem; color: var(--cream-soft); }
.footer-copy { font-family: var(--mono); font-size: 0.72rem; color: var(--cream-soft); letter-spacing: 0.3px; }
.footer-copy a { color: var(--accent); }
.footer-copy a:hover { text-decoration: underline; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: none;} }

/* ============ SCROLL PROGRESS ============ */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: var(--accent); transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(232,122,93,0.6);
}

/* section title flourish (tracé piloté par anime.js, cf. script.js) */
.sec-underline {
  display: block; width: 132px; height: 14px; margin: 6px 0 16px;
  color: var(--accent); overflow: visible;
}
.sec-underline path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

/* hero hand-drawn arrow → switcher */
.hero-arrow {
  position: absolute; right: -6px; top: -78px; width: 134px; height: 98px;
  color: var(--accent); pointer-events: none; transform-origin: 80% 100%;
}
.hero-arrow path { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 120px; }
  .hero-arrow { display: none; }
  .offers { grid-template-columns: 1fr; }
  .model { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .model-part { align-items: center; }
  .model-op { transform: rotate(0); }
}
@media (max-width: 760px) {
  .container, .nav-inner, .hero-grid { padding-left: 22px; padding-right: 22px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 24px 28px; display: none;
  }
  .nav.scrolled .nav-links, .nav-links.open { background: var(--paper); }
  .nav-links.open { display: flex; }
  .sec-head { flex-direction: column; gap: 10px; margin-bottom: 44px; }
  .team { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .switcher { grid-template-columns: repeat(3, 1fr); padding: 14px; gap: 8px; }
  .tile { padding: 14px 6px; }
  .section { padding: 80px 0; }
  .hero-marquee { margin-top: 60px; }
}
