/* =========================================================
   Taptaptapmobile — Landing
   ========================================================= */

:root {
  --c-black:   #1E1E24;
  --c-blue:    #3D52D5;
  --c-red:     #E03616;
  --c-green:   #B9C6AE;
  --c-cream:   #FBFEF9;
  --c-grey-1:  #EDEEF0;
  --c-grey-2:  #D4D6DB;

  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-head:  'Syne', 'Inter', sans-serif;

  --container-w: 1280px;
  --gap-section: 5rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-black);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

html, body { overflow-x: clip; }

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography ---------- */
.section-title,
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.hero-title { margin: 0 0 1.25rem; }

.hero-title       { font-size: clamp(1.5rem, 5.5vw, 2.8rem); }
.section-title    { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.section-title--big { font-size: clamp(2rem, 3.8vw, 3.6rem); }

.t-blue { color: var(--c-blue); }
.t-red  { color: var(--c-red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }

.btn--primary {
  background: var(--c-red);
  color: var(--c-cream);
}

/* ---------- Logos ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 100%; width: auto; }
.logo--header {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-left: 1px solid var(--c-grey-2);
  border-right: 1px solid var(--c-grey-2);
}
.logo--header img { height: 50px; }
.logo--hero { height: auto; }
.logo--hero img { height: 120px; width: auto; }
.logo--footer { height: 64px; }
.logo--footer img { height: 64px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-grey-2);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.header-banner {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-blue);
  margin-right: auto;
}
.header-banner strong {
  color: var(--c-blue);
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: var(--c-cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  justify-content: center;
  max-width: 1050px;
  margin: 0 auto;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 0.3rem;
}
.partners {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.partner-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}
.partner-x {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--c-black);
}
.hero-text { font-size: 0.95rem; color: var(--c-black); margin-bottom: 0.6rem; }
.hero-text--bold { font-weight: 700; }

/* ---------- Arrow down ---------- */
.arrow-down {
  text-align: center;
  font-size: 1.6rem;
  color: var(--c-blue);
  margin: 0;
  font-weight: 700;
}
.arrow-down--inline { margin: 1rem 0 0; }

/* ---------- Sections sur fond bleu (vidéo + early bird) ---------- */
/* Watermark blueprint blanc des deux côtés, comme dans le PDF */
.video-section,
.early-bird {
  background-color: var(--c-blue);
  position: relative;
  overflow: hidden;
}
.video-section::before,
.video-section::after,
.early-bird::before,
.early-bird::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 320px;
  background-image: url('images/tapmobile-blueprint-2d-blanc.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
/* Blueprints ancrés relativement au centre — dissociés vidéo / early bird */
.video-section::before { right: calc(50% + 480px); }
.video-section::after  { left:  calc(50% + 480px); }
.early-bird::before    { right: calc(50% + 460px); }
.early-bird::after     { left:  calc(50% + 460px); }

/* ---------- Vidéo ---------- */
.video-section {
  padding: 1.5rem 0;
}
.video-section .container { position: relative; z-index: 1; }
.video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.placeholder {
  background: var(--c-grey-1);
  border: 1px dashed var(--c-grey-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255,255,255,.85);
  padding: .25rem .6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}
.play-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 80px;
  height: 80px;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Performance ---------- */
.perf {
  padding: var(--gap-section) 0 2rem;
  background: var(--c-cream);
}
.perf-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}
.perf-left,
.perf-right { min-width: 0; }
.schema {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.perf-left .schema { max-width: 420px; margin: 0 auto; }

/* ---------- Stats ---------- */
.stats {
  background: var(--c-cream);
  border-top: 1px solid var(--c-grey-2);
  border-bottom: 1px solid var(--c-grey-2);
  padding: 2rem 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat { text-align: center; flex: 1; min-width: 100px; }
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.9vw, 2.1rem);
  color: var(--c-black);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--c-blue);
  font-weight: 600;
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}
.stat--logo { display: flex; justify-content: center; }
.stat--logo img { height: 72px; width: auto; }

/* Séparateurs verticaux entre les stats */
.stat + .stat {
  border-left: 1px solid var(--c-grey-2);
}

/* ---------- Features / Fonctions ---------- */
.features {
  background: var(--c-blue);
  padding: var(--gap-section) 0;
  position: relative;
  overflow: hidden;
}
.features::before,
.features::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 320px;
  background-image: url('images/tapmobile-blueprint-2d-blanc.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.features::before { right: calc(50% + 520px); }
.features::after  { left:  calc(50% + 520px); }
.features .container { position: relative; z-index: 1; }
.features-title { text-align: center; margin-bottom: 2.5rem; }
.t-cream { color: var(--c-cream); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--c-cream);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-black);
}
.feature-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--c-black);
  margin: 1.25rem 1.25rem 0.25rem;
  line-height: 1.1;
}
.feature-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-red);
  margin: 0 1.25rem 0.75rem;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--c-black);
  margin: 0 1.25rem 1.5rem;
  line-height: 1.5;
}

/* ---------- Gallery ---------- */
.gallery { padding: 0; background: var(--c-cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* ---------- Dream Team ---------- */
.team {
  padding: var(--gap-section) 0 0;
  background: var(--c-cream);
}
.team-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.team-header { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.team-partners { display: flex; flex-direction: column; gap: 1.5rem; }
.team-partner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.75rem;
  align-items: center;
  border-bottom: 1px solid var(--c-grey-2);
  padding-bottom: 1.75rem;
}
.team-partner:last-child { border-bottom: none; }
.team-partner p { margin: 0; font-size: 0.95rem; }
.team-partner-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.team-photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* ---------- Early Bird ---------- */
.early-bird {
  padding: var(--gap-section) 0;
}
.early-bird .container { position: relative; z-index: 1; }
.early-card {
  background: var(--c-cream);
  border-radius: 10px;
  padding: 3rem 3rem 3rem 0;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.2fr);
  gap: 2rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.early-right { min-width: 0; overflow: hidden; }
.early-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}
.early-left .schema { max-width: 100%; width: 100%; margin: 0; }
.price {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 1;
  white-space: nowrap;
}
.early-right .section-title { font-size: clamp(1.9rem, 3.2vw, 2.35rem); }
.early-right .btn { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-green);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-black);
}

/* =========================================================
   Responsive — < 768px
   ========================================================= */
@media (max-width: 768px) {
  :root { --gap-section: 3.5rem; }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .header-banner {
    order: -1;
    width: 100%;
    text-align: center;
    flex-basis: 100%;
    font-size: 0.72rem;
    margin: 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--c-grey-2);
  }
  .logo--header {
    border: none;
    padding: 0;
  }
  .logo--header img { height: 36px; }
  .header-inner .btn {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
  }

  .hero-inner,
  .perf-inner,
  .team-inner,
  .early-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title    { font-size: clamp(1rem, 5.8vw, 2.2rem); }
  .section-title--big { font-size: clamp(1.6rem, 8vw, 2.8rem); }
  .hero-title       { font-size: clamp(1.4rem, 6vw, 2rem); }

  .logo--hero,
  .logo--hero img { height: 100px; }

  .partner-logo { height: 56px; }

  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .features-title { margin-bottom: 2rem; }

  .features::before,
  .features::after { display: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-photos  { grid-template-columns: 1fr; }
  .team-photos img { aspect-ratio: 4 / 3; }

  .stats-inner { gap: 1.5rem 1rem; }
  .stat { flex-basis: 30%; }
  .stat--logo { flex-basis: 100%; order: -1; }

  .early-card { padding: 2rem 1.25rem; overflow: hidden; }
  .price { font-size: clamp(1.25rem, 6.5vw, 2.8rem); }

  .video-section::before,
  .video-section::after,
  .early-bird::before,
  .early-bird::after { display: none; }
}
