/* ═══════════════════════════════════════════
   COLLECTIF COBALT — Shared Styles v3
═══════════════════════════════════════════ */
:root {
  --cream:  #F0EBD8;
  --noir:   #1A1A1A;
  --bleu:   #4A82DC;
  --jaune:  #F1CB4F;
  --vert:   #5DA16B;
  --rouge:  #BB3B34;
  --muted:  #888;
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   32px;
  --r-pill: 999px;
  --glass-light: rgba(255,255,255,0.18);
  --glass-dark:  rgba(26,26,26,0.25);
  --glass-cream: rgba(240,235,216,0.15);
  --blur: blur(18px);
  --shadow: 0 8px 32px rgba(26,26,26,0.10);
  --shadow-lg: 0 20px 60px rgba(26,26,26,0.16);
  --f-display: 'Hammersmith One', sans-serif;
  --f-serif:   'Instrument Serif', serif;
  --f-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; cursor: none; }
body { font-family: var(--f-body); background: var(--cream); color: var(--noir); overflow-x: hidden; cursor: none; }
a { color: inherit; text-decoration: none; cursor: none; }
button, input, textarea { font-family: var(--f-body); cursor: none; }
img { display: block; width: 100%; }

/* ── CURSOR ── */
#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--noir); transform: translate(-50%,-50%);
  pointer-events: none; transition: background .2s, transform .1s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(26,26,26,.4); transform: translate(-50%,-50%);
  pointer-events: none;
  transition: width .22s, height .22s, border-color .2s;
}
body.hov #cursor-ring { width: 54px; height: 54px; border-color: var(--bleu); }
body.hov #cursor-dot  { background: var(--bleu); }

/* ── COLOR STRIPE ── */
.stripe {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 600;
  background: linear-gradient(90deg, var(--bleu) 25%, var(--jaune) 25% 50%, var(--vert) 50% 75%, var(--rouge) 75%);
}

/* ── NAV ── */
body > nav {
  position: fixed; top: 4px; left: 0; right: 0; z-index: 500;
  background: rgba(240,235,216,0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(26,26,26,.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 44px; height: 62px;
}
.nav-logo {
  font-family: var(--f-body); font-weight: 800;
  font-size: 1.75rem; letter-spacing: -.04em; color: var(--noir); line-height: 1;
  transition: color .2s;
}
.nav-logo:hover { color: var(--bleu); }
.nav-logo .dot { color: var(--bleu); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(26,26,26,.45);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--noir); }
.nav-links a.active { border-bottom: 2px solid var(--bleu); padding-bottom: 2px; }
.nav-cta {
  position: relative; overflow: hidden;
  padding: 9px 22px; border-radius: var(--r-pill);
  border: 1.5px solid var(--noir);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--noir); background: transparent;
  transition: color .35s; display: inline-flex;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--noir); border-radius: var(--r-pill);
  transform: scale(0); opacity: 0;
  transition: transform .35s cubic-bezier(.76,0,.24,1), opacity .35s;
}
.nav-cta:hover { color: var(--cream); }
.nav-cta:hover::before { transform: scale(1); opacity: 1; }
.nav-cta span { position: relative; z-index: 1; }

/* ── COLLECTIF PANEL ── */
#collectif-panel {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 490;
  background: rgba(26,26,26,0.92);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(240,235,216,.1);
  padding: 40px 44px 48px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  transform: translateY(calc(-100% - 66px));
  opacity: 0;
  visibility: hidden;
  transition: transform .45s cubic-bezier(.76,0,.24,1), opacity .3s, visibility 0s .45s;
  pointer-events: none;
}
#collectif-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: transform .45s cubic-bezier(.76,0,.24,1), opacity .3s, visibility 0s;
}
.cp-item {
  background: var(--glass-cream);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(240,235,216,.15);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: background .2s, border-color .2s;
}
.cp-item:hover { border-color: rgba(240,235,216,.3); }
.cp-num { font-family: var(--f-display); font-size: 36px; line-height: 1; margin-bottom: 12px; }
.cp-tag { font-size: .58rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.cp-name { font-family: var(--f-display); font-size: 15px; color: var(--cream); margin-bottom: 8px; }
.cp-desc { font-size: .72rem; line-height: 1.65; color: rgba(240,235,216,.4); font-weight: 300; }
/* nth-child(1) = bouton Fermer → les cp-items commencent à nth-child(2) */
/* 01 Studio → bleu | 02 Atelier → vert | 03 Bleu de Cobalt → jaune | 04 Média → rouge */
.cp-item:nth-child(2) { background: rgba(74,130,220,.18); border-color: rgba(74,130,220,.35); }
.cp-item:nth-child(2):hover { background: rgba(74,130,220,.28); border-color: rgba(74,130,220,.6); }
.cp-item:nth-child(2) .cp-num, .cp-item:nth-child(2) .cp-tag { color: var(--bleu); }

.cp-item:nth-child(3) { background: rgba(93,161,107,.18); border-color: rgba(93,161,107,.35); }
.cp-item:nth-child(3):hover { background: rgba(93,161,107,.28); border-color: rgba(93,161,107,.6); }
.cp-item:nth-child(3) .cp-num, .cp-item:nth-child(3) .cp-tag { color: var(--vert); }

.cp-item:nth-child(4) { background: rgba(241,203,79,.18); border-color: rgba(241,203,79,.35); }
.cp-item:nth-child(4):hover { background: rgba(241,203,79,.28); border-color: rgba(241,203,79,.6); }
.cp-item:nth-child(4) .cp-num, .cp-item:nth-child(4) .cp-tag { color: var(--jaune); }

.cp-item:nth-child(5) { background: rgba(187,59,52,.18); border-color: rgba(187,59,52,.35); }
.cp-item:nth-child(5):hover { background: rgba(187,59,52,.28); border-color: rgba(187,59,52,.6); }
.cp-item:nth-child(5) .cp-num, .cp-item:nth-child(5) .cp-tag { color: var(--rouge); }
.cp-close {
  position: absolute; top: 20px; right: 44px;
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(240,235,216,.3); background: none; border: none; font-family: var(--f-body);
  transition: color .15s;
}
.cp-close:hover { color: rgba(240,235,216,.7); }

/* ── SCROLL REVEAL ── */
.sr { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.sr.in { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: .1s; } .sr-d2 { transition-delay: .2s; }
.sr-d3 { transition-delay: .3s; } .sr-d4 { transition-delay: .4s; }

/* ── SECTION LABEL ── */
.s-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--bleu);
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.s-label::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.s-label.on-dark { color: rgba(240,235,216,.35); }
.s-label.on-dark::before { background: rgba(240,235,216,.35); }
.s-label.on-color { color: rgba(26,26,26,.45); }
.s-label.on-color::before { background: rgba(26,26,26,.4); }

/* ── SECTION BASE ── */
.section { padding: 100px 44px; }

/* ── BUTTONS ── */
.btn {
  position: relative; overflow: hidden; display: inline-flex;
  align-items: center; padding: 14px 36px;
  border-radius: var(--r-pill);
  border: none; font-family: var(--f-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .35s, box-shadow .2s;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--r-pill);
  transform: scale(0); opacity: 0;
  transition: transform .35s cubic-bezier(.76,0,.24,1), opacity .35s;
}
.btn:hover::before { transform: scale(1); opacity: 1; }
.btn span { position: relative; z-index: 1; }
.btn-dark { background: var(--noir); color: var(--cream); box-shadow: 0 4px 20px rgba(26,26,26,.3); }
.btn-dark::before { background: var(--bleu); }
.btn-cream { background: var(--cream); color: var(--noir); box-shadow: 0 4px 20px rgba(240,235,216,.3); }
.btn-cream::before { background: var(--bleu); }
.btn-cream:hover { color: var(--cream); }
.btn-outline { background: transparent; color: var(--noir); border: 1.5px solid var(--noir); }
.btn-outline::before { background: var(--noir); }
.btn-outline:hover { color: var(--cream); }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--noir); height: 52px; overflow: hidden;
  display: flex; align-items: center;
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  font-family: var(--f-body); font-weight: 800;
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(240,235,216,.4);
}
.marquee-item .hi { color: var(--bleu); }
.marquee-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(240,235,216,.15); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FOOTER ── */
footer { background: var(--noir); position: relative; overflow: hidden; }
.footer-silhouette { position: absolute; bottom: -10px; right: -60px; opacity: .04; pointer-events: none; }
.footer-stripe { height: 4px; background: linear-gradient(90deg, var(--bleu) 25%, var(--jaune) 25% 50%, var(--vert) 50% 75%, var(--rouge) 75%); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 80px; padding: 72px 44px 56px; position: relative; z-index: 1; }
.footer-logo { font-family: var(--f-body); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; color: var(--cream); line-height: .9; margin-bottom: 16px; }
.footer-logo .dot { color: var(--bleu); }
.footer-tagline { font-family: var(--f-serif); font-style: italic; font-size: .9rem; color: rgba(240,235,216,.35); line-height: 1.6; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-socials a { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(240,235,216,.2); transition: color .15s; }
.footer-socials a:hover { color: var(--bleu); }
.footer-col-title { font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(240,235,216,.2); margin-bottom: 24px; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a { font-size: .88rem; font-weight: 300; color: rgba(240,235,216,.4); transition: color .15s; }
.footer-nav a:hover { color: var(--cream); }
.footer-contact-item { margin-bottom: 20px; }
.footer-contact-name { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(240,235,216,.2); margin-bottom: 4px; }
.footer-contact-email { font-size: .88rem; font-weight: 300; color: rgba(240,235,216,.4); transition: color .15s; display: block; }
.footer-contact-email:hover { color: var(--bleu); }
.footer-bottom { padding: 20px 44px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(240,235,216,.06); position: relative; z-index: 1; }
.footer-copy { font-size: .62rem; font-weight: 300; color: rgba(240,235,216,.2); letter-spacing: .06em; }
.footer-legal { font-size: .62rem; font-weight: 300; color: rgba(240,235,216,.12); font-style: italic; }

/* ── BURGER (mobile/tablette) ── */
.nav-burger {
  display: none;
  width: 40px; height: 40px; border: none; background: transparent;
  position: relative; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--noir); border-radius: 2px;
  transition: transform .3s cubic-bezier(.76,0,.24,1), top .3s, opacity .2s;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; top: 4px; left: 0; right: 0; bottom: 0; z-index: 480;
  background: var(--cream);
  padding: 90px 28px 40px;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.76,0,.24,1);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--f-display);
  font-size: 1.8rem; line-height: 1.1;
  color: var(--noir); padding: 14px 0;
  border-bottom: 1px solid rgba(26,26,26,.08);
  display: block;
}
.mobile-menu a.active { color: var(--bleu); }
.mobile-menu .mm-cta {
  margin-top: 28px; align-self: flex-start;
  padding: 14px 28px; border-radius: var(--r-pill);
  border: 1.5px solid var(--noir);
  font-family: var(--f-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--noir); color: var(--cream);
}
.mobile-menu .mm-foot {
  margin-top: auto; padding-top: 32px;
  font-family: var(--f-body); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(26,26,26,.35); border-bottom: none;
  display: flex; gap: 18px;
}
.mobile-menu .mm-foot a { font-size: inherit; padding: 0; border: none; color: inherit; }

/* ── TACTILE : désactive le curseur custom ── */
@media (hover: none), (pointer: coarse) {
  html, body, a, button, input, textarea { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none !important; }
  /* annule les hovers qui sinon "collent" au tap */
  .feat-card:hover img,
  .proj-card:hover .proj-img img,
  .hero-photo:hover img { transform: none; }
  .feat-card-title, .proj-title { opacity: 1; transform: none; }
}

/* ── RESPONSIVE TABLETTE PAYSAGE / PETIT DESKTOP (≤1100px) ── */
@media (max-width: 1100px) {
  body > nav { padding: 0 28px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: .68rem; }
  .section { padding: 84px 28px; }
  #collectif-panel { padding: 32px 28px 36px; gap: 14px; }
  .footer-top { padding: 64px 28px 48px; gap: 56px; }
  .footer-bottom { padding: 20px 28px; }
}

/* ── RESPONSIVE TABLETTE / GRAND MOBILE (≤960px) ── */
@media (max-width: 960px) {
  body > nav { padding: 0 20px; height: 58px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-logo { font-size: 1.5rem; }

  .section { padding: 64px 20px; }

  #collectif-panel {
    top: 62px;
    grid-template-columns: 1fr 1fr;
    padding: 80px 20px 24px;
    gap: 12px;
    transform: translateY(calc(-100% - 62px));
  }
  .cp-item { padding: 22px 18px; }
  .cp-num { font-size: 28px; margin-bottom: 8px; }
  .cp-name { font-size: 14px; }
  .cp-desc { font-size: .68rem; line-height: 1.55; }
  .cp-close { top: 16px; right: 20px; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 52px 20px 40px; }
  .footer-logo { font-size: 2.2rem; }
  .footer-bottom { flex-direction: column; gap: 10px; padding: 20px; text-align: center; }
  .footer-legal { text-align: center; }

  .marquee-wrap { height: 44px; }
  .marquee-item { font-size: .68rem; gap: 22px; padding: 0 22px; }
}

/* ── RESPONSIVE MOBILE (≤560px) ── */
@media (max-width: 560px) {
  body > nav { padding: 0 16px; height: 54px; }
  .nav-logo { font-size: 1.35rem; }
  .nav-burger { width: 36px; height: 36px; }

  .section { padding: 52px 16px; }

  .stripe { height: 3px; }

  .btn { padding: 12px 26px; font-size: .68rem; letter-spacing: .08em; }

  #collectif-panel {
    top: 58px;
    grid-template-columns: 1fr;
    padding: 70px 16px 24px;
    transform: translateY(calc(-100% - 58px));
  }
  .cp-close { right: 16px; }

  .mobile-menu { padding: 78px 20px 32px; }
  .mobile-menu a { font-size: 1.5rem; padding: 12px 0; }

  .footer-top { padding: 44px 18px 32px; gap: 32px; }
  .footer-logo { font-size: 2rem; }
  .footer-tagline { font-size: .85rem; }
  .footer-col-title { margin-bottom: 16px; }
  .footer-nav { gap: 10px; }
  .footer-nav a, .footer-contact-email { font-size: .82rem; }
  .footer-bottom { padding: 16px; }
  .footer-silhouette { display: none; }

  .marquee-wrap { height: 40px; }
  .marquee-item { font-size: .62rem; gap: 18px; padding: 0 16px; }
}
