:root {
  --cyan: #7df9ff;
  --blue: #4f8cff;
  --violet: #a645fb;
  --pink: #ff4cd2;
  --deep: #050816;
  --glass: rgba(255,255,255,.085);
  --border: rgba(255,255,255,.17);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 260vh;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background:
    radial-gradient(circle at 12% 10%, rgba(125, 248, 255, 0.116), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(247, 95, 255, 0.243), transparent 28%),
    radial-gradient(circle at 50% 95%, rgba(79, 141, 255, 0.086), transparent 36%),
    linear-gradient(135deg, #03040c 0%, #06091d 48%, #130721 100%);
}
a { color: inherit; text-decoration: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.top-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(5,8,22,.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 70px rgba(0,0,0,.30);
  transform: translateX(-50%);
}
.brand {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-nav a:not(.brand) {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.top-nav a:hover,
.top-nav .is-active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(125,249,255,.16), rgba(185,103,255,.20));
}
.top-nav a:hover { transform: translateY(-1px); }

.scroll-indicator {
  position: fixed;
  right: 24px;
  top: 50%;
  z-index: 41;
  width: 5px;
  height: 210px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  transform: translateY(-50%);
}
.scroll-indicator span {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(var(--cyan), var(--pink), var(--violet));
  box-shadow: 0 0 16px rgba(125,249,255,.7);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: white;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 14px 48px rgba(0,0,0,.22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  backdrop-filter: blur(100px);
}

.cta:hover { transform: translateY(-3px); background: rgba(255,255,255,.15); }
.cta { background: linear-gradient(135deg, rgba(125,249,255,.27), rgba(185,103,255,.30)); }
.cta.secondary { background: rgba(255,255,255,.08); }

.wave-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.aurora {
  position: absolute;
  inset: -20vh -20vw;
  opacity: .55;
  background:
    radial-gradient(circle at 28% 56%, rgba(125,249,255,.18), transparent 30%),
    radial-gradient(circle at 72% 62%, rgba(185,103,255,.17), transparent 34%);
  filter: blur(18px);
  will-change: transform, opacity;
}
.soft-glow {
  position: absolute;
  left: 50%;
  bottom: -32vh;
  width: 132vw;
  height: 76vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(125,249,255,.32), rgba(255,95,215,.18) 38%, rgba(79,140,255,.13) 54%, transparent 72%);
  transform: translate3d(-50%, 0, 0);
  filter: blur(8px);
  will-change: transform, opacity;
}
.wave-wrap {
  position: absolute;
  left: -48vw;
  bottom: -30vh;
  width: 196vw;
  height: 94vh;
  will-change: transform;
}
.wave-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.wave-back { fill: url(#waterDepth); opacity: .54; }
.wave-mid { fill: url(#waterMid); opacity: .66; }
.wave-main { fill: url(#waterGradient); opacity: .88; }
.wave-foam,
.wave-foam-soft {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wave-foam {
  stroke: rgba(255,255,255,.74);
  stroke-width: 9;
  opacity: .70;
}
.wave-foam-soft {
  stroke: rgba(125,249,255,.34);
  stroke-width: 19;
  opacity: .48;
}
.particles { position: absolute; inset: 0; }
.particle, .spark {
  position: absolute;
  border-radius: 999px;
  opacity: 0;
  will-change: transform, opacity;
}
.particle {
  width: 8px;
  height: 8px;
  background: rgba(125,249,255,.92);
  box-shadow: 0 0 18px rgba(125,249,255,.62), 0 0 30px rgba(185,103,255,.24);
}
.spark {
  width: 3px;
  height: 18px;
  background: linear-gradient(to bottom, rgba(255,255,255,.95), rgba(125,249,255,0));
  border-radius: 999px;
}

main { position: relative; z-index: 5; }
.page {
  position: relative;
  min-height: 235vh;
  padding: 136px 8vw 130px;
}
.page-inner {
  width: min(1300px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 1fr);
  gap: 44px;
  align-items: flex-start;
}
.content {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
  backdrop-filter: blur(100px);
  box-shadow: 0 26px 90px rgba(0,0,0,.28);
  height: auto;
  text-align: justify;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  max-width: 880px;
  font-size: clamp(44px, 8.4vw, 100px);
  line-height: .92;
  letter-spacing: -.075em;
  background: linear-gradient(92deg, #fff 0%, var(--cyan) 40%, var(--pink) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 44px rgba(125,249,255,.08);
  padding-bottom: .1em;
}
.lead {
  max-width: 700px;
  margin-top: 28px;
  color: rgba(255,255,255,.84);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.68;
  text-align: justify;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.panel {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
  backdrop-filter: blur(100px);
  box-shadow: 0 26px 90px rgba(0,0,0,.28);
}
h3 { margin-bottom: 16px; font-size: 22px; }
.list { text-align: justify; display: grid; gap: 14px; padding-left: 18px; color: rgba(255,255,255,.80); line-height: 1.56; }
.list b {
  color: var(--cyan);
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.stat {
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.stat b { display: block; font-size: 20px; color: #fff; }
.stat span { color: rgba(255,255,255,.62); font-size: 12px; }
.page-number {
  position: fixed;
  right: 6vw;
  bottom: 7vh;
  z-index: -10;
  color: rgba(255,255,255,.085);
  font-size: clamp(86px, 18vw, 250px);
  font-weight: 900;
  line-height: .8;
}

h3::after {
  content: "";
  display: block;
  width: 60px;          /* longueur du trait */
  height: 3px;          /* épaisseur */
  margin-top: 8px;      /* espace sous le texte */
  border-radius: 2px;

  background: linear-gradient(90deg, #7df9ff, #ff4cd2);
}
ul {
  margin-left: 2em;
}

/* Carousel */

.carousel {
    width: 1000px;
    overflow: hidden;
    margin: auto;
}

.slides {
    display: flex;
    width: 100%;
}

.slide {
    flex: 0 0 calc(100% / 3); /* sera écrasé dynamiquement si besoin */
    padding: 10px;
    box-sizing: border-box;
}

.slide img {
    width: 300px;
    height: 280px;
    border-radius: 10px;
    display: block;
}

.caption {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.slide p {
    margin-top: 5px;
    color: var(--pink);
}

.instagram-media {
    width: 100% !important;
    max-width: 400px;
    margin: auto !important;
    border-radius: 12px;
    overflow: hidden;
}

.video {
  display: flex;
  gap: 40px;
}

/* =========================
   TABLETTE
========================= */
@media (max-width: 1024px) {

  .page {
    padding: 120px 5vw 100px;
    min-height: auto;
  }

  .page-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content,
  .panel {
    padding: 24px;
  }

  .wave-wrap {
    left: -70vw;
    width: 240vw;
    height: 80vh;
    bottom: -24vh;
  }

  .page-number {
    font-size: clamp(70px, 14vw, 160px);
    right: 4vw;
    bottom: 4vh;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-nav {
    top: 16px;

    /* comme PC */
    left: 50%;
    transform: translateX(-50%);

    width: auto;
    max-width: calc(100% - 40px);

    justify-content: center;

    padding: 8px;
    gap: 6px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
}


/* =========================
   TELEPHONE
========================= */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

  body {
    min-height: auto;
  }

  body::before {
    background-size: 52px 52px;
    opacity: .12;
  }

  /* NAVBAR */
  .top-nav {
    top: 12px;

    width: calc(100% - 16px);

    left: 50%;
    transform: translateX(-50%);

    justify-content: center;

    padding: 6px;
    gap: 4px;

    overflow-x: hidden;
  }

  /* masque Agence Infini */
  .top-nav .brand {
    display: none;
  }

  .top-nav a:not(.brand) {
    flex: 1;
    text-align: center;

    padding: 11px 10px;
    font-size: 12px;
  }

  .brand {
    padding: 10px 12px;
    font-size: 11px;
    flex-shrink: 0;
  }

  /* SECTION */
  .page {
    padding: 108px 16px 80px;
    min-height: auto;
  }

  .content,
  .panel {
    padding: 20px;
    border-radius: 22px;

    /* mobile perf */
    backdrop-filter: blur(100px);
  }

  /* TITRES */
  h1 {
    font-size: clamp(38px, 14vw, 64px);
    line-height: .95;
    letter-spacing: -.06em;
  }

  .lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.7;
  }

  h3 {
    font-size: 20px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .14em;
  }

  /* CTA */
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    width: 100%;
  }

  /* STATS */
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 16px;
  }

  /* SCROLL BAR */
  .scroll-indicator {
    display: none;
  }

  /* WAVES */
  .wave-wrap {
    left: -120vw;
    width: 340vw;
    height: 58vh;
    bottom: -18vh;
    opacity: .9;
  }

  .soft-glow {
    width: 190vw;
    height: 52vh;
    bottom: -22vh;
  }

  /* NUMERO BG */
  .page-number {
    font-size: 28vw;
    right: 0;
    bottom: 2vh;
    opacity: .06;
  }

  /* LISTES */
  ul {
    margin-left: 1.2em;
  }

  .list {
    gap: 12px;
    line-height: 1.7;
  }

  /* particles moins lourdes */
  .particle:nth-child(n+12),
  .spark:nth-child(n+10) {
    display: none;
  }

  .video {
    display: block;
  }
}


/* =========================
   PETITS TELEPHONES
========================= */
@media (max-width: 480px) {

  h1 {
    font-size: clamp(32px, 13vw, 52px);
  }

  .lead {
    font-size: 15px;
  }

  .content,
  .panel {
    padding: 18px;
  }

  .wave-wrap {
    left: -140vw;
    width: 390vw;
    height: 52vh;
  }

  .top-nav {
    border-radius: 22px;
  }

  .page {
    padding-left: 14px;
    padding-right: 14px;
  }
}