/* ==========================================================================
   K13 STUDIOS - STYLESHEET
   ========================================================================== */

/* ── VARIABLES ── */
:root {
  --bg:    #080f0e;
  --teal:  #0d3b38;
  --teal2: #144d49;
  --teal3: #1a6360;
  --acc:   #a3c4bf;
  --cream: #ede9e0;
  --muted: rgba(237, 233, 224, 0.36);
  --fd:    'Cormorant Garamond', Georgia, serif;
  --fm:    'DM Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--fm);
  overflow-x: hidden;
  cursor: none;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

/* Texture de fond globale (Bruit) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.7;
}

section {
  position: relative;
  z-index: 2;
}


/* ── CURSEUR PERSONNALISÉ ── */
#cur {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

#cdot {
  width: 8px;
  height: 8px;
  background: var(--cream);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-radius 0.3s;
}

#cring {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(237, 233, 224, 0.4);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1), height 0.5s, border-color 0.3s, opacity 0.3s;
}

#clbl {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* État Hover "on-card" */
body.on-card #cdot {
  width: 70px;
  height: 70px;
  background: transparent;
  border: 1px solid var(--acc);
}
body.on-card #cring { opacity: 0; }
body.on-card #clbl  { opacity: 1; }

/* Désactivation sur Tactile */
@media (hover: none) and (pointer: coarse) {
  #cur { display: none !important; }
  body, .gi, .pcard, .gm-close, .gm-nav, a, button, input, select, textarea { cursor: auto !important; }
}


/* ── NAVIGATION (TOP BAR) ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  transition: background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

#nav.solid {
  background: rgba(8, 15, 14, 0.9);
  backdrop-filter: blur(20px);
  border-color: rgba(163, 196, 191, 0.1);
}

.nlogo {
  display: flex;
  align-items: center;
}

.npills {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(13, 59, 56, 0.45);
  border: 1px solid rgba(163, 196, 191, 0.12);
  border-radius: 100px;
  padding: 4px;
}

.npill {
  position: relative;
  padding: 7px 18px;
  font-family: var(--fm);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-radius: 100px;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
}

.npill.act {
  color: var(--bg);
}

.npill-bg {
  position: absolute;
  inset: 0;
  background: var(--acc);
  border-radius: 100px;
  z-index: -1;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.npill.act .npill-bg {
  transform: scale(1);
}

/* Réseaux Sociaux Navbar */
.nsocials-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nig, .nwa-btn {
  text-decoration: none;
  font-family: var(--fm);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(163, 196, 191, 0.2);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nig {
  color: var(--muted);
  gap: 8px;
  padding: 8px 16px;
}

.nwa-btn {
  color: var(--muted);
  padding: 8px 12px;
}

.nwa-btn svg { display: block; }
.nig:hover, .nwa-btn:hover { background: var(--acc); color: var(--bg); }


/* ── SECTION HERO ── */
#hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.waves-bg { position: absolute; inset: 0; overflow: hidden; }
.waves-bg svg {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  animation: waveDrift 18s ease-in-out infinite;
}
.waves-bg svg:nth-child(2) { animation-duration: 24s; animation-direction: reverse; opacity: 0.5; }
.waves-bg svg:nth-child(3) { animation-duration: 30s; animation-delay: -6s; opacity: 0.3; }

.hcenter { position: relative; z-index: 2; text-align: center; }
.heyebrow { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--acc); margin-bottom: 28px; overflow: hidden; }
.heyebrow span { display: inline-block; animation: su 0.8s 0.15s cubic-bezier(0.23, 1, 0.32, 1) both; }
.htitle { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

.htag {
  margin-top: 24px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  overflow: hidden;
}
.htag > span { display: inline-block; animation: su 0.8s both; }
.htag > span:nth-child(1) { animation-delay: 0.65s; }
.htag > span:nth-child(2) { animation-delay: 0.75s; }
.htag > span:nth-child(3) { animation-delay: 0.85s; }
.htag > span:nth-child(4) { animation-delay: 0.95s; }
.htag > span:nth-child(5) { animation-delay: 1.05s; }
.htag > span:nth-child(6) { animation-delay: 1.15s; }
.htag > span:nth-child(7) { animation-delay: 1.25s; }
.htag > span:nth-child(8) { animation-delay: 1.35s; }
.htag > span:nth-child(9) { animation-delay: 1.45s; }
.htag .dot { color: var(--teal3); opacity: 0.7; }

.hscroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fi 1s 1.5s both;
}
.hscroll-t { font-size: 0.52rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.hscroll-l {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--acc), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* Bandeau Marquee (Défilement infini) */
.mbar {
  overflow: hidden;
  border-top: 1px solid rgba(163, 196, 191, 0.1);
  border-bottom: 1px solid rgba(163, 196, 191, 0.1);
  padding: 17px 0;
  background: var(--teal);
}
.minner { display: flex; white-space: nowrap; will-change: transform; }
.mi { font-family: var(--fd); font-style: italic; font-size: 1.05rem; color: var(--acc); padding: 0 28px; }
.ms { color: rgba(163, 196, 191, 0.3); padding: 0 6px; font-style: normal; }


/* ── TYPOGRAPHIE GLOBALE SECTIONS ── */
.slbl {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acc);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.slbl::after {
  content: '';
  flex: 0 0 36px;
  height: 1px;
  background: var(--acc);
  opacity: 0.35;
}
.stitle { font-family: var(--fd); font-weight: 700; line-height: 0.9; color: var(--cream); }


/* ── SECTION SERVICES ── */
#services { padding: 120px 60px; }
.svcs-hd { margin-bottom: 72px; }
.svcs-hd .stitle { font-size: clamp(3rem, 7vw, 5.5rem); }

.svcs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(163, 196, 191, 0.07);
}

.scard {
  background: var(--bg);
  padding: 44px 28px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.scard::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}
.scard:hover { background: var(--teal); }
.scard:hover::before { transform: scaleX(1); }

.scard-icon { font-size: 1.7rem; margin-bottom: 24px; display: block; transition: transform 0.4s; }
.scard:hover .scard-icon { transform: scale(1.18) rotate(-6deg); }

.scard-name { font-family: var(--fd); font-size: 1.5rem; font-weight: 700; color: var(--cream); margin-bottom: 14px; }
.scard-desc { font-size: 0.68rem; line-height: 1.9; color: var(--muted); }

.scard-nr {
  position: absolute;
  top: -8px;
  right: 14px;
  font-family: var(--fd);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(163, 196, 191, 0.045);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s;
}
.scard:hover .scard-nr { color: rgba(163, 196, 191, 0.1); }


/* ── SECTION GALERIE ── */
#galerie { padding: 0 0 120px; }
.gal-hd { padding: 120px 60px 56px; }
.gal-hd .stitle { font-size: clamp(3rem, 7vw, 5.5rem); }

.gal-wrap { overflow: hidden; position: relative; padding: 16px 0; }
.gal-wrap::before, .gal-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 10; pointer-events: none; }
.gal-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.gal-wrap::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.gal-track { display: flex; gap: 24px; padding: 20px 60px; will-change: transform; cursor: none; user-select: none; }

.gi {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gi:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}
.gi:nth-child(3n+1) { width: 340px; height: 460px; }
.gi:nth-child(3n+2) { width: 270px; height: 340px; margin-top: 60px; }
.gi:nth-child(3n)   { width: 300px; height: 420px; margin-top: 30px; }

.gi-bg {
  width: 100%;
  height: 100%;
  background-color: var(--teal2);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border: 1px solid rgba(163, 196, 191, 0.1);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
  box-shadow: inset 0 -80px 80px -20px rgba(8, 15, 14, 0.95);
}
.gi:hover .gi-bg { border-color: rgba(163, 196, 191, 0.3); }

.gi-lbl { position: relative; z-index: 1; font-size: 0.54rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }

/* Placeholder for video-only galleries (no cover image) */
.gi-bg--empty {
  background: linear-gradient(160deg, var(--teal2) 0%, var(--teal) 100%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.gi-bg--empty .gi-lbl { position: absolute; bottom: 22px; left: 22px; }
.gi-placeholder {
  position: relative; z-index: 1;
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--acc);
  text-align: center;
  padding: 0 18px;
  line-height: 1.3;
}
.gi-bg--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(163,196,191,0.12);
  background: radial-gradient(ellipse at 30% 40%, rgba(163,196,191,0.06) 0%, transparent 70%);
}

.gi-ov {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 14, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s;
}
.gi:hover .gi-ov { opacity: 1; }

.gi-plus {
  width: 52px;
  height: 52px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--cream);
  transform: scale(0.5) rotate(-45deg);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.gi:hover .gi-plus { transform: scale(1) rotate(0deg); }

/* Static gallery mode (all items fit — no scroll) */
.gal-wrap--static::before, .gal-wrap--static::after { display: none; }
.gal-static { justify-content: center; cursor: default; }


/* ── MODALE GALERIE ── */
#gmodal { position: fixed; inset: 0; background: rgba(8, 15, 14, 0.98); z-index: 8000; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(15px); }
#gmodal.active { opacity: 1; pointer-events: auto; }

.gm-close { position: absolute; top: 40px; right: 48px; color: var(--acc); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 10px; cursor: pointer; z-index: 8001; transition: color 0.3s; }
.gm-close:hover { color: var(--cream); }

.gm-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--acc); font-family: var(--fd); font-size: 3rem; font-style: italic; cursor: pointer; padding: 40px; z-index: 8001; transition: color 0.3s, transform 0.3s; user-select: none; }
.gm-nav:hover { color: var(--cream); transform: translateY(-50%) scale(1.1); }
.gm-prev { left: 20px; } 
.gm-next { right: 20px; }

.gm-content { position: relative; max-width: 80vw; max-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
#gm-img { max-width: 100%; max-height: 75vh; object-fit: contain; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); opacity: 0; transform: scale(0.98); transition: opacity 0.4s, transform 0.4s; }
#gm-img.loaded { opacity: 1; transform: scale(1); }

#gm-count { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted); position: absolute; bottom: 40px; text-transform: uppercase; }


/* ── SECTION PROJETS ── */
#projets { padding: 120px 60px; background: var(--teal); }
.proj-hd { margin-bottom: 72px; }
.proj-hd .stitle { font-size: clamp(3rem, 7vw, 5.5rem); }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pcard {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--teal2);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.5s ease;
}
.pcard:hover { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7); }

.pbg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  background-size: cover;
  background-position: center;
}
.pcard:hover .pbg { transform: scale(1.07); }

.pinner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(8, 15, 14, 0.95) 0%, rgba(8, 15, 14, 0.1) 60%, rgba(8, 15, 14, 0.4) 100%);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.pinfo { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 28px; transform: translateY(10px); opacity: 0; transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s; }
.pcard:hover .pinfo { opacity: 1; transform: translateY(0); }

.ptag { font-size: 0.53rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin-bottom: 9px; display: block; }
.pname { font-family: var(--fd); font-size: 1.6rem; font-weight: 700; color: var(--cream); margin-bottom: 6px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.psub { font-size: 0.62rem; color: rgba(237, 233, 224, 0.7); line-height: 1.6; }
.pnr { position: absolute; top: 24px; right: 24px; font-family: var(--fd); font-size: 4.5rem; font-weight: 700; color: rgba(255, 255, 255, 0.1); line-height: 1; pointer-events: none; mix-blend-mode: overlay; }
.bbadge { position: absolute; top: 24px; left: 24px; font-size: 0.48rem; letter-spacing: 0.18em; text-transform: uppercase; background: var(--acc); color: var(--bg); padding: 4px 10px; font-weight: 700; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }

/* Transition inter-pages */
#ptrans { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); z-index: 9999; pointer-events: none; transform: scaleY(0); transform-origin: bottom; transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1); }
#ptrans.active { transform: scaleY(1); pointer-events: auto; }
#ptrans.exit { transform-origin: top; transform: scaleY(0); }


/* ── SECTION ABOUT ── */
#about { padding: 120px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }

.aquote { font-family: var(--fd); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 300; font-style: italic; line-height: 1.25; color: var(--cream); position: relative; }
.aquote::before { content: '"'; position: absolute; top: -50px; left: -10px; font-size: 10rem; color: rgba(163, 196, 191, 0.07); font-family: var(--fd); line-height: 1; pointer-events: none; }
.aquote strong { font-style: normal; font-weight: 700; color: var(--acc); }

.abody { font-size: 0.72rem; line-height: 2.1; color: var(--muted); margin-bottom: 36px; }

.apillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.apil { padding: 22px; border: 1px solid rgba(163, 196, 191, 0.11); background: rgba(8, 15, 14, 0.35); transition: border-color 0.3s, background 0.3s; }
.apil:hover { border-color: rgba(163, 196, 191, 0.28); background: rgba(8, 15, 14, 0.65); }
.apil-icon { font-size: 1.2rem; margin-bottom: 10px; display: block; }
.apil-t { font-family: var(--fd); font-size: 1.05rem; font-weight: 700; color: var(--cream); margin-bottom: 5px; }
.apil-d { font-size: 0.63rem; color: var(--muted); line-height: 1.7; }


/* ── SECTION CONTACT ── */
#contact { padding: 120px 60px; position: relative; overflow: hidden; }

.cghost { position: absolute; bottom: -110px; right: -30px; font-family: var(--fd); font-size: 20rem; font-weight: 700; color: rgba(163, 196, 191, 0.022); line-height: 1; white-space: nowrap; pointer-events: none; user-select: none; }
.cgrid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; position: relative; z-index: 1; }

.cleft h3 { font-family: var(--fd); font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--cream); margin-bottom: 36px; }
.cleft h3 em { color: var(--acc); font-style: italic; }

.citems { display: flex; flex-direction: column; gap: 24px; margin-bottom: 44px; }
.citem { display: flex; gap: 14px; align-items: flex-start; }
.cico { width: 34px; height: 34px; border: 1px solid rgba(163, 196, 191, 0.18); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.clbl2 { font-size: 0.53rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc); margin-bottom: 3px; }
.cval { font-size: 0.77rem; color: var(--cream); }

/* Boutons d'Action (Instagram, WhatsApp Contact) */
.c-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; max-width: 280px; }
.igbtn { display: inline-flex; align-items: center; gap: 10px; background: var(--acc); color: var(--bg); text-decoration: none; padding: 13px 26px; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.igbtn::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.15); transform: translateX(-110%) skewX(-20deg); transition: transform 0.4s; }
.igbtn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(163, 196, 191, 0.18); }
.igbtn:hover::after { transform: translateX(110%) skewX(-20deg); }
.tkbtn:hover { background: #fe2c55; color: #fff; border-color: #fe2c55; }
.wabtn:hover { background: #25D366; color: var(--bg); border-color: #25D366; }

/* Formulaire */
.cform { display: flex; flex-direction: column; gap: 18px; }
.crow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cg2 { display: flex; flex-direction: column; gap: 6px; }
.cl2 { font-size: 0.53rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc); }
.ci, .csl, .ct { background: rgba(163, 196, 191, 0.04); border: 1px solid rgba(163, 196, 191, 0.12); color: var(--cream); font-family: var(--fm); font-size: 0.74rem; padding: 12px 15px; outline: none; transition: border-color 0.3s, background 0.3s; border-radius: 0; appearance: none; -webkit-appearance: none; }
.ci::placeholder, .ct::placeholder { color: var(--muted); }
.ci:focus, .csl:focus, .ct:focus { border-color: var(--acc); background: rgba(163, 196, 191, 0.08); }
.csl option { background: var(--bg); color: var(--cream); }
.ct { resize: vertical; min-height: 110px; }

.csend { align-self: flex-start; position: relative; overflow: hidden; background: transparent; border: 1px solid var(--acc); color: var(--acc); font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 14px 36px; cursor: pointer; transition: color 0.35s; margin-top: 10px; }
.cfill { position: absolute; inset: 0; background: var(--acc); transform: translateX(-101%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.csend:hover { color: var(--bg); }
.csend:hover .cfill { transform: translateX(0); }
.csend span { position: relative; z-index: 1; }

.smsg { display: none; text-align: center; padding: 44px 28px; border: 1px solid rgba(163, 196, 191, 0.18); }
.smsg.show { display: block; }
.smsg p { font-family: var(--fd); font-style: italic; font-size: 1.5rem; color: var(--acc); }
.smsg small { font-size: 0.62rem; color: var(--muted); display: block; margin-top: 10px; }
.rgpd-text { font-size: 0.5rem; color: var(--muted); line-height: 1.5; margin-top: 5px; }


/* ── FOOTER ── */
footer { padding: 36px 60px; border-top: 1px solid rgba(163, 196, 191, 0.08); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.flogo { font-family: var(--fd); font-size: 1.2rem; font-weight: 700; color: var(--cream); }
.flogo b { color: var(--acc); }
.fcopy { font-size: 0.56rem; letter-spacing: 0.08em; color: var(--muted); }

.fsocials { display: flex; align-items: center; gap: 12px; }
.fsep { color: var(--muted); font-size: 0.6rem; opacity: 0.5; }
.fwa, .fig, .ftk { color: var(--muted); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: color 0.3s ease; }
.fwa:hover, .fig:hover, .ftk:hover { color: var(--acc); }

.flegal { display: block; margin-top: 6px; }
.flegal a { color: var(--muted); text-decoration: none; font-size: 0.5rem; letter-spacing: 0.06em; transition: color 0.3s; }
.flegal a:hover { color: var(--acc); }
.flegal .fsep { margin: 0 6px; }

/* ── LEGAL PAGES ── */
.lp-nav { padding: 20px 60px; border-bottom: 1px solid rgba(163,196,191,0.08); }
.lp-logo { font-family: var(--fd); font-size: 1.2rem; font-weight: 700; color: var(--cream); text-decoration: none; }
.lp-logo b { color: var(--acc); }

.legal-page {
  max-width: 780px; margin: 0 auto; padding: 80px 40px 60px;
}
.legal-page h1 {
  font-family: var(--fd); font-style: italic; font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream); margin-bottom: 50px; font-weight: 300;
}
.legal-page h2 {
  font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--acc); margin: 40px 0 14px; font-weight: 500;
}
.legal-page p, .legal-page li {
  font-family: var(--fm); font-size: 0.78rem; line-height: 1.8;
  color: rgba(237,233,224,0.7); margin-bottom: 10px;
}
.legal-page ul { padding-left: 20px; margin-bottom: 14px; }
.legal-page li { margin-bottom: 4px; }
.legal-page a { color: var(--acc); text-decoration: none; transition: opacity 0.3s; }
.legal-page a:hover { opacity: 0.7; }
.legal-page strong { color: var(--cream); }
.legal-page em { color: var(--muted); font-style: italic; }
.legal-page section { border-bottom: 1px solid rgba(163,196,191,0.06); padding-bottom: 20px; }
.legal-page section:last-child { border-bottom: none; }

.legal-footer {
  padding: 30px 60px; border-top: 1px solid rgba(163,196,191,0.08);
  display: flex; justify-content: space-between; align-items: center;
}
.legal-footer .fcopy { font-size: 0.56rem; letter-spacing: 0.08em; color: var(--muted); }
.legal-links { display: flex; align-items: center; gap: 6px; }
.legal-links a { color: var(--muted); font-size: 0.52rem; letter-spacing: 0.08em; text-decoration: none; transition: color 0.3s; }
.legal-links a:hover { color: var(--acc); }


/* ── BOUTONS FLOTTANTS (BAS DROITE) ── */
.f-actions {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  gap: 12px;
  z-index: 400;
}

.fa-btn {
  width: 48px;
  height: 48px;
  background: rgba(8, 15, 14, 0.6);
  border: 1px solid rgba(163, 196, 191, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#to-top { opacity: 0; pointer-events: none; transform: translateY(20px); }
#to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fa-btn:hover { background: var(--acc); color: var(--bg); border-color: var(--acc); transform: scale(1.1); }


/* ── EFFETS & ANIMATIONS ── */
.wipe { position: relative; }
.wipe::before { content: ''; position: absolute; inset: 0; background: var(--bg); z-index: 10; transform-origin: left; transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: none; }
.wipe.wiped::before { transform: scaleX(0); transform-origin: right; }

@keyframes waveDrift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(2%, 3%) rotate(1deg); } 66% { transform: translate(-2%, -2%) rotate(-1deg); } }
@keyframes su { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fi { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }
/* tick animation handled by JS for reliable infinite loop */

/* Animations Formulaire (Curseur) */
body.is-sending #cur #cring { border-color: var(--acc); animation: cursorPulseFast 0.4s infinite alternate; }
body.is-sent #cur #cdot { opacity: 0; }
body.is-sent #cur #clbl { opacity: 1; color: var(--acc); font-size: 2rem; transform: translate(-50%, -50%) scale(1); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
body.is-sent #cur #cring { border-color: var(--acc); background: rgba(163, 196, 191, 0.1); animation: cursorExplode 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
body.is-error #cur #cring, body.is-error #cur #cdot { border-color: #ff4444; background: rgba(255, 68, 68, 0.1); }
body.is-error #cur { animation: cursorShake 0.5s ease-in-out; }

@keyframes cursorPulseFast { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.3); opacity: 0.5; } }
@keyframes cursorExplode { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; border-width: 1px; } 50% { border-width: 10px; } 100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-width: 1px; } }
@keyframes cursorShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }


/* ── MEDIA QUERIES (RESPONSIVE) ── */
@media (max-width: 1000px) {
  #nav { padding: 0 20px; }
  .npills { gap: 1px; }
  .npill { padding: 6px 11px; font-size: 0.53rem; }
  #services, #projets, #about, #contact { padding: 80px 24px; }
  .svcs-grid { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  #about { grid-template-columns: 1fr; gap: 44px; }
  .cgrid { grid-template-columns: 1fr; gap: 44px; }
  .crow2 { grid-template-columns: 1fr; }
  .gal-hd { padding: 80px 24px 44px; }
  .gal-track { padding: 0 24px; }
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 28px 24px; }
  .cghost { font-size: 8rem; bottom: -20px; }
}

@media (max-width: 768px) {
  .f-actions { bottom: 20px; right: 20px; gap: 8px; }
  .fa-btn { width: 42px; height: 42px; }
}

@media (max-width: 640px) {
  .npills { display: none; }
  .svcs-grid, .pgrid, .apillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PROJECT PAGE STYLES
   ========================================================================== */

.nback { color: var(--acc); text-decoration: none; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; border: 1px solid rgba(163,196,191,.2); padding: 10px 24px; border-radius: 100px; transition: all .3s; }
.nback:hover { background: var(--acc); color: var(--bg); }

.float-wrap { display: block; will-change: transform, opacity; }
.float-1 { display: inline-block; animation: floatAnim 6s ease-in-out infinite; will-change: transform; }
.float-2 { display: inline-block; animation: floatAnim 8s ease-in-out infinite alternate; will-change: transform; }

@keyframes floatAnim {
  0%   { transform: translateY(0px) rotate(0deg); }
  33%  { transform: translateY(-8px) rotate(1deg); }
  66%  { transform: translateY(5px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

#p-header { padding: 180px 48px 80px; text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
#p-tag-wrap { margin-bottom: 24px; }
.p-tag { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--acc); display: block; margin: 0; }
#p-title-wrap { margin-bottom: 40px; }
.p-title { font-family: var(--fd); font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; color: var(--cream); line-height: 1; margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.p-desc { font-size: 0.8rem; line-height: 2; color: var(--muted); text-align: left; column-count: 1; margin-top: 40px; position: relative; z-index: 3; }
@media(min-width: 768px) { .p-desc { column-count: 2; column-gap: 60px; text-align: justify; } }

.section-title { font-family: var(--fd); font-size: 2.5rem; font-style: italic; color: var(--cream); text-align: center; margin: 80px 0 40px; position: relative; z-index: 2; }

.carousel-wrap {
  overflow: hidden; position: relative; padding: 20px 0 80px;
  cursor: none; z-index: 2;
}
.carousel-wrap::before, .carousel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 10; pointer-events: none; }
.carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.carousel-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.carousel-track {
  display: flex; gap: 30px; width: max-content;
  will-change: transform; user-select: none; padding: 0 60px;
}

.c-img, .c-video {
  flex-shrink: 0; height: clamp(300px, 60vh, 700px); width: auto;
  object-fit: contain; box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(163,196,191,0.1);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.c-img.loaded, .c-video.loaded { opacity: 1; transform: translateY(0); }

/* Video thumbnail placeholder in project carousels */
.c-video-thumb {
  flex-shrink: 0; height: clamp(300px, 60vh, 700px); width: clamp(200px, 40vh, 500px);
  background: linear-gradient(135deg, #0a1a18, #0d2825);
  border: 1px solid rgba(163,196,191,0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.c-video-thumb:hover {
  border-color: rgba(163,196,191,0.35);
  box-shadow: 0 15px 50px rgba(0,0,0,0.8);
}
.c-play-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(163,196,191,0.12); border: 2px solid rgba(163,196,191,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(163,196,191,0.7);
  transition: all 0.3s ease; padding-left: 4px;
}
.c-video-thumb:hover .c-play-icon {
  background: rgba(163,196,191,0.2); border-color: rgba(163,196,191,0.5);
  color: rgba(163,196,191,0.9); transform: scale(1.1);
}

.gm-video-player {
  max-width: 90vw; max-height: 80vh;
  background: #000; border-radius: 4px;
  outline: none;
}

/* No-scroll utility */
body.no-scroll { overflow: hidden; }

@media(max-width: 768px) {
  #p-header { padding: 120px 24px 40px; }
  .c-img, .c-video { height: 45vh; }
  .c-video-thumb { height: 45vh; width: 30vh; }
}

/* Project page footer (simpler) */
.p-footer { padding: 36px 48px; border-top: 1px solid rgba(163,196,191,.08); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
@media(max-width: 768px) { .p-footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 24px; } }