/* ════════════════════════════════════════════════════════
   home.css — Gribouille Event Lab
   Styles spécifiques à la page d'accueil (index.html).
════════════════════════════════════════════════════════ */
 
/* ── HERO — FULLSCREEN ── */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
}
 
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(18%);
  transform-origin: center center;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.07); }
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18,2,30,0)    0%,
    rgba(18,2,30,.15)  30%,
    rgba(18,2,30,.72)  65%,
    rgba(18,2,30,.97)  100%
  );
  z-index: 1;
}
 
#hero-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 2; opacity: .08;
}
 
.hero-ghost {
  position: absolute;
  top: 40%; left: -1rem;
  transform: translateY(-60%);
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(7rem, 18vw, 18rem);
  line-height: 1; letter-spacing: -.05em;
  color: rgba(255,254,240,.08);
  pointer-events: none; user-select: none;
  z-index: 2;
}
 
.hero-inner {
  position: relative; z-index: 3;
  width: 100%;
}
 
/* Bandeau LIVE STATUS en haut */
.hero-status-bar {
  position: absolute;
  top: 100px; left: 0; right: 0;
  z-index: 4;
  pointer-events: none;
}
.hero-status-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem;
}
.hero-tag-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(250,183,34,.12);
  border: 1.5px solid rgba(250,183,34,.45);
  backdrop-filter: blur(6px);
  padding: .4rem 1rem;
  font-family: var(--f-head); font-weight: 800;
  font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.hero-tag-pill .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}
.hero-location {
  font-family: var(--f-head); font-weight: 800;
  font-size: .88rem; letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,254,240,1);
}
 
/* Corps du hero */
.hero-body { padding: 0 0 3.5rem; }
.hero-body .label { color: var(--accent); margin-bottom: 1.2rem; }
 
.hero-body h1 {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(3.2rem, 7vw, 8rem);
  line-height: .9; letter-spacing: -.04em;
  color: var(--bg);
  margin-bottom: -2rem;
}
.hero-body h1 .hl {
  position: relative; display: inline-block;
}
.hero-body h1 .hl::after {
  content: ''; position: absolute;
  bottom: 6px; left: 0;
  width: 100%; height: 10px;
  background: var(--accent); z-index: -1;
}
.hero-body h1 em {
  font-style: italic;
  color: var(--accent);
}
 
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}
.hero-desc {
  font-size: 1rem; font-weight: 300;
  color: rgba(255,254,240,.7);
  max-width: 420px; line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
 
/* ── STATS STRIP ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid rgba(255,254,240,.15);
}
.hstat {
  padding: 2rem 1.5rem;
  border-right: 1.5px solid rgba(255,254,240,.15);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.hstat:last-child { border-right: none; }
.hstat:hover { background: rgba(250,183,34,.08); }
 
.hstat-num {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  color: var(--accent); line-height: 1;
  display: block; margin-bottom: .3rem;
}
.hstat-label {
  font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,254,240,.42);
  display: block; margin-bottom: .5rem;
}
.hstat-bar {
  position: absolute; bottom: 0; left: 0;
  height: 3px; background: var(--accent);
  width: 0; transition: width 1.4s cubic-bezier(.22,1,.36,1);
}
.hstat.counted .hstat-bar { width: 100%; }
 
.hstat-status {
  display: inline-flex; align-items: center;
  font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,254,240,.35);
}
.hstat-status.active { color: #5dde8a; }
 
/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 220px; right: 3rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,254,240,.3);
  writing-mode: vertical-rl;
  animation: fadeSlideIn 1.2s 1.2s both;
  z-index: 3;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 42px;
  background: rgba(255,254,240,.22);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: .5; }
  50%      { transform: scaleY(.4); opacity: 1; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
/* Animations d'entrée */
.hero-body .label    { animation: fadeSlideIn .8s .3s both; }
.hero-body h1        { animation: fadeSlideIn .9s .5s both; }
.hero-desc           { animation: fadeSlideIn .9s .7s both; }
.hero-cta            { animation: fadeSlideIn .9s .9s both; }
.hero-stats .hstat:nth-child(1) { animation: fadeSlideIn .7s 1.0s both; }
.hero-stats .hstat:nth-child(2) { animation: fadeSlideIn .7s 1.1s both; }
.hero-stats .hstat:nth-child(3) { animation: fadeSlideIn .7s 1.2s both; }
.hero-stats .hstat:nth-child(4) { animation: fadeSlideIn .7s 1.3s both; }
 
/* ── SECTION ABOUT ── */
#about { padding: 7rem 0; background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }
 
.about-imgs { position: relative; height: 500px; }
.about-img  { position: absolute; object-fit: cover; border: 2.5px solid var(--ink); }
.about-img-a { width: 66%; aspect-ratio: 3/4; top: 0; left: 0; transform: rotate(-2deg); box-shadow: 6px 6px 0 var(--accent); z-index: 2; }
.about-img-b { width: 58%; aspect-ratio: 1/1; bottom: 0; right: 0; transform: rotate(2.5deg); z-index: 1; }
 
.about-copy h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; margin-bottom: 1.5rem; }
.about-copy p  { font-weight: 300; opacity: .82; margin-bottom: 1.1rem; }
.about-copy em { font-style: italic; }
 
/* ── SERVICES ── */
#services { padding: 7rem 0; }
.services-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap;
}
.services-head h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; max-width: 480px; }
 
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink);
}
.svc { background: var(--bg); padding: 2.5rem 2rem; position: relative; overflow: hidden; transition: background .25s; }
.svc:hover { background: var(--accent); }
.svc-num { font-family: var(--f-head); font-weight: 900; font-size: 3.5rem; line-height: 1; color: rgba(18,2,30,.07); position: absolute; top: .75rem; right: 1rem; transition: color .25s; }
.svc:hover .svc-num { color: rgba(18,2,30,.13); }
.svc-icon { width: 84px; height: 84px; object-fit: contain; margin-bottom: 1.2rem; }
.svc h3   { font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; margin-bottom: .65rem; }
.svc p    { font-size: .88rem; font-weight: 300; opacity: .72; line-height: 1.58; }
 
/* ── PROJETS (aperçu) ── */
#projects { padding: 7rem 0; background: var(--ink); color: var(--bg); }
#projects .label { color: var(--accent); }
#projects h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 3rem; }
 
.proj-card-link { display: block; }
.proj-link-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .7rem;
  font-family: var(--f-head); font-weight: 800;
  font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(250,183,34,.35);
  padding-bottom: 2px;
  transition: gap .25s, border-color .25s;
}
.proj-card:hover .proj-link-cta { gap: .75rem; border-color: var(--accent); }
 
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.proj { position: relative; overflow: hidden; cursor: pointer; }
.proj:nth-child(1) { grid-column: 1/7; }
.proj:nth-child(2) { grid-column: 7/13; }
.proj:nth-child(3) { grid-column: 1/5; }
.proj:nth-child(4) { grid-column: 5/9; }
.proj:nth-child(5) { grid-column: 9/13; }
 
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; filter: grayscale(15%); }
.proj:nth-child(1) img, .proj:nth-child(2) img { aspect-ratio: 16/10; }
.proj:nth-child(3) img, .proj:nth-child(4) img, .proj:nth-child(5) img { aspect-ratio: 4/3; }
.proj:hover img { transform: scale(1.05); filter: grayscale(0%); }
 
.proj-ov { position: absolute; inset: 0; background: rgba(18,2,30,.72); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: opacity .3s; }
.proj:hover .proj-ov { opacity: 1; }
.proj-tag  { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.proj-year { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.proj-name { font-family: var(--f-head); font-weight: 800; font-size: 1rem; color: var(--bg); }
.proj-footer { margin-top: 3rem; text-align: center; }
 
/* ── PROCESSUS ── */
#process { padding: 7rem 0; }
#process h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 4rem; }
 
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 8px, transparent 8px, transparent 18px);
}
.step { padding: 0 1.5rem; text-align: center; }
.step-n {
  width: 54px; height: 54px;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 900; font-size: 1.1rem;
  margin: 0 auto 1.5rem; position: relative; z-index: 1;
  transition: background .25s, border-color .25s;
}
.step:hover .step-n { background: var(--accent); border-color: var(--accent); }
.step h3 { font-family: var(--f-head); font-weight: 800; font-size: .98rem; margin-bottom: .55rem; }
.step p  { font-size: .86rem; font-weight: 300; opacity: .72; line-height: 1.55; }
 
/* ── CLIENTS ── */
#clients { padding: 5rem 0; background: var(--bg-alt); border-top: 1.5px solid rgba(18,2,30,.12); border-bottom: 1.5px solid rgba(18,2,30,.12); }
#clients .label { text-align: center; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 4rem; margin-top: 2.5rem; }
.client-name {
  font-family: var(--f-head); font-weight: 900;
  font-size: .95rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(18,2,30,.22); transition: color .3s;
}
.client-name:hover { color: var(--ink); }
 
.client-logo-wrap { display: flex; align-items: center; }
.client-logo {
  height: 56px; max-width: 220px; width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(.45);
  transition: filter .3s;
}
.client-logo-wrap:hover .client-logo { filter: grayscale(0%) opacity(1); }
 
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-row       { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-body h1   { margin-bottom: 0; }
  .hero-stats     { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .hstat:nth-child(2n) { border-right: none; }
  .about-grid     { grid-template-columns: 1fr; }
  .about-imgs     { height: 340px; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps          { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .steps::before  { display: none; }
  .proj-grid      { grid-template-columns: 1fr 1fr; }
  .proj           { grid-column: auto !important; grid-row: auto !important; }
}
 
@media (max-width: 768px) {
  #hero           { padding-top: 70px; }
  .hero-body h1   { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-desc      { font-size: .9rem; margin-bottom: 1.5rem; }
  .hero-cta       { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .hstat          { padding: 1.2rem .9rem; }
  .scroll-hint    { display: none; }
  .hero-location  { display: none; }
  .about-imgs     { display: none; }
  .services-grid  { grid-template-columns: 1fr; }
  .services-head  { flex-direction: column; align-items: flex-start; }
  .proj-grid      { grid-template-columns: 1fr; }
  .steps          { grid-template-columns: 1fr; gap: 2.5rem; }
  #process h2     { margin-bottom: 2.5rem; }
  .step           { text-align: left; display: grid;
                    grid-template-columns: 54px 1fr;
                    column-gap: 1.2rem; align-items: start; padding: 0; }
  .step-n         { margin: 0; grid-column: 1; grid-row: 1 / 3; align-self: start; }
  .step-n::after  { content: ''; position: absolute; top: 54px; left: 50%;
                    transform: translateX(-50%); width: 2px; height: 2.5rem;
                    background: repeating-linear-gradient(180deg,
                      rgba(18,2,30,.22) 0, rgba(18,2,30,.22) 5px,
                      transparent 5px, transparent 11px); }
  .step:last-child .step-n::after { display: none; }
  .step h3        { grid-column: 2; grid-row: 1; align-self: center; margin-bottom: .35rem; }
  .step p         { grid-column: 2; grid-row: 2; }
  #about, #services, #projects, #process { padding: 4rem 0; }
}
 
@media (max-width: 480px) {
  .hstat-num      { font-size: 2rem; }
  .hero-cta .btn  { width: 100%; justify-content: center; text-align: center; }
  .hero-stats     { grid-template-columns: 1fr 1fr; }
}
 
