/* tokens */
:root {
  --black: #0b0b0b;
  --white: #f6f4ef;
  --ink: #141414;
  --muted-dark: #bdbdbd;
  --muted-light: #4a4a4a;
  --orange: #f08134;
  --blue: #39bde5;
  --pink: #ea5390;
  --green: #8dc045;
  --focus: #ffd166;
  --focus-ink: #111;
  --radius: 5px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --line: #2a2a2a;
  --border: 1px solid var(--line);
}

/*utilise la couleur de la section*/
.s-orange {
    --accent: var(--orange);
}
.s-blue {
    --accent: var(--blue);
}
.s-pink {
    --accent: var(--pink);
}
.s-green {
    --accent: var(--green);
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; }

body {
  font-family: "soleil", Arial, Helvetica, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--focus);
  color: var(--focus-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
}

/* header — mobile = burger */

header.site {
  position: fixed;
  top: calc(var(--pad) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: none;
  border: 0;
  padding: 0 var(--pad);
  transform: translateY(0);
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
  pointer-events: none;
}
header.site.is-on { opacity: 1; }
header.site.is-on .nav-pill,
header.site.is-on .nav-toggle { pointer-events: auto; }

header.site.is-hidden {
  transform: translateY(calc(-100% - 1rem));
}

header.site.nav-on-dark { color: var(--white); }
header.site.nav-on-light { color: var(--ink); }


.nav-panel a {
  color: #fff;
}

.nav-panel a::before {
  content: "";
  display: inline-block;
  width: .55rem;
  height: .55rem;
  margin-right: .6rem;
  border-radius: 1px;
  vertical-align: middle;
  background: currentColor;
}

.nav-panel a.s-orange::before { background: var(--orange); }
.nav-panel a.s-blue::before   { background: var(--blue); }
.nav-panel a.s-pink::before   { background: var(--pink); }
.nav-panel a.s-green::before  { background: var(--green); }

.nav-pill,
.nav-toggle { pointer-events: auto; }
.nav-pill { display: none; }

.nav-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--border);
  border-radius: var(--radius);
  background: none;
  color: inherit;
  border-color: currentColor;
  cursor: pointer;
}
.nav-toggle svg,
.to-top-icon {
    width: 2rem;
    height: 2rem;
  fill: currentColor;
}

.nav-toggle-open { display: block; }
.nav-toggle-close { display: none; }

.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }

.nav-toggle[aria-expanded="true"] {
  color: var(--white);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

.nav-panel {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1.2rem;
  position: fixed;
  inset: 0;
  z-index: 35;
  padding: 10vh var(--pad) var(--pad);
  background: #0b0b0b;
}
.nav-panel[hidden] { display: none; }
.nav-panel a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
}

body.menu-open { overflow: hidden; }

.nav-pill a {
  margin: 0;
  padding: .55rem .9rem;
  border-radius: var(--radius);
  font-size: 1.2rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.1rem;

}


.brand {
  display: block;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}



.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}




.to-top.is-on-light { color: var(--ink); }

.to-top[hidden] { display: none; }

.to-top:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}



/* sections */
.section { padding: clamp(4rem, 12vh, 8rem) var(--pad); }

/* hero intro */
.hero {
  min-height: 100vh;
  position: relative;
  padding: clamp(4rem, 12vh, 8rem) var(--pad);
  text-align: center;
}
.hero-intro { overflow: clip; }
.hero-stage {
  min-height: 80vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(.8rem, 1.2vw, 1rem);
}
.hero-copy { width: fit-content; max-width: 100%; }
.hero-copy h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  max-width: none;
}
.hero-copy .lede {
  color: #d7d7d7;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: clamp(.78rem, 1.6vw, 1rem);
  max-width: none;
  width: 100%;
}
.hero-copy,
.hero-cta { opacity: 0; }
.hero.is-assembled .hero-copy,
.hero.is-assembled .hero-cta { opacity: 1; }

.skip-intro {
  position: absolute;
  left: 50%;
  bottom: 5rem;
  transform: translateX(-50%);
  z-index: 5;
  border: var(--border);
  background: transparent;
  color: rgba(246, 244, 239, .7);
  font: inherit;
  font-size: .8rem;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 150px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;

  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, .7);

  pointer-events: none;
  z-index: 5;
}

.scroll-arrow {
  font-size: 2.5rem;
  animation: scrollHint 1.6s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% {
    transform: translateY(0);
    opacity: .5;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  opacity: .7;
}

h1, h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 7vw, 6rem); max-width: 14ch; }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.4rem); max-width: none; }

p.lede {
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--muted-dark);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--white); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: var(--border);
  gap: .5rem;
}
.btn-ghost span { transition: transform .25s ease; }

.theme-dark .btn-ghost {
    border-color: rgba(255,255,255,.45);
}

@media (hover: hover) {
    .theme-dark .btn-ghost:hover,
    .theme-dark .btn-ghost:focus-visible {
        border-color: var(--accent);
        background: var(--accent);
        color: var(--black);
    }
      .to-top:hover {
        background: var(--accent);
        color: var(--black);
    
  }
}

.draw-line {
  height: 0.8rem;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  margin: 0 0 1.5rem;
  will-change: transform;
  background: currentColor;
}

.s-orange { color: var(--orange); }
.s-blue { color: var(--blue); }
.s-pink { color: var(--pink); }
.s-green { color: var(--green); }

.theme-dark { background: var(--black); color: var(--white); }
.hero.theme-dark { background: transparent; }
.theme-light { background: var(--white); color: var(--ink); }
.theme-light p { color: var(--muted-light); }
.theme-light .lede { color: var(--muted-light); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.card { padding: 1.25rem; min-height: 10rem; }
.theme-dark .card { border: var(--border); }
.theme-light .card { border: 1px solid #e2e2e2; }



.logo-build {
  overflow: visible;
  width: min(240px, 70vw);
  flex: 0 0 auto;
}

.logo-build--hero {
  width: min(240px, 70vw);
  position: relative;
}

.logo-build svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  image-rendering: pixelated;
}

.logo-build svg > g {
  transform-box: fill-box;
  transform-origin: center center;
  visibility: hidden;
}

.logo-build svg rect[fill="#13110c"] {
  fill: #1c1c1c;
  stroke: #2a2a2a;
  stroke-width: 0.4;
}

.logo-build--hero > svg:not(.logo-ghost) {
  position: relative;
  z-index: 2;
}

.logo-build--hero > svg.logo-ghost {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  opacity: 1;
  pointer-events: none;
}

.logo-build--hero > svg.logo-ghost > g {
  visibility: hidden;
}

.logo-build--hero > svg.logo-ghost rect {
  stroke: none !important;
}

.logo-build--hero > svg.logo-shine {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0;
}

.logo-build--hero > svg.logo-shine > g {
  visibility: visible !important;
  transform: none !important;
}

.logo-build--hero > svg.logo-shine rect {
  fill: #fff !important;
  stroke: none !important;
}


#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #050505;
}

#motion-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  border: var(--border);
  background: #111;
  color: #fff;
  border-radius: var(--radius);
  padding: .55rem .9rem;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}


.site-footer {
  padding: 2.5rem var(--pad) 3rem;
  font-size: .85rem;
  color: #cecdcd;
  min-height: 80vh;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}
.footer-links,
.footer-social {
  display: flex;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  justify-content: center;
}
.footer-brand {
  display: contents;
}
.footer-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-top: 2rem;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 2.5rem;
}
.footer-social a:hover { color: var(--green); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-infos { margin-bottom: 0; }

@media (hover: hover) {
  .btn-ghost:hover span {
    transform: translate(.15em, -.15em);
  }
}



/* ---------------------------------------------- */
/* ---------------------------------------------- */
/* ----------------- @ MEDIA -------------------- */
/* ---------------------------------------------- */
/* ---------------------------------------------- */


@media (min-width: 701px) {


  .logo-build,
  .logo-build--hero {
    width: min(340px, 40vw);
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1023px) {
  header.site.is-hidden {
    transform: none;
  }
}


@media (min-width: 1024px){
header.site {
    top: 0;
    background: var(--black);
    color: var(--white);
    transition:
      transform .35s ease,
      opacity .35s ease,
      background-color .4s ease,
      color .3s ease;
  }

  header.site.nav-on-dark {
    background: var(--black);
    color: var(--white);
  }

  header.site.nav-on-light {
    background: var(--white);
    color: var(--ink);
  }

  .nav-toggle {
    display: none;
  }

  .nav-pill {
    display: flex;
    gap: .15rem;
    padding: .35rem;
  }

  .nav-panel {
    display: none !important;
  }

.nav-pill a {
  position: relative;
}

.nav-pill a::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .2rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}

.nav-pill a:hover::after,
.nav-pill a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-pill a.s-orange::after { background: var(--orange); }
.nav-pill a.s-blue::after   { background: var(--blue); }
.nav-pill a.s-pink::after   { background: var(--pink); }
.nav-pill a.s-green::after  { background: var(--green); }

}




@media (min-width: 1220px) {
  .site-footer { min-height: 25vh; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand social links";
    align-items: end;
    text-align: left;
    gap: .75rem 1.25rem;
  }
  .footer-brand {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    grid-area: brand;
  }
  .footer-logo-link { line-height: 0; }
  .footer-logo {
    display: block;
    margin-top: 0;
  }
  .footer-infos { margin: 0; line-height: 1.35; }
  .footer-social {
    grid-area: social;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    margin: auto 0;
    padding: 0;
    line-height: 1;
  }
  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    color: #e8e8e8;
  
  }
  .footer-social i {
    display: block;
    line-height: 1;
  }
  .footer-links {
    grid-area: links;
    justify-self: end;
    align-items: flex-end;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw-line { transform: none !important; }
  .logo-build svg > g { transform: none !important; visibility: visible !important; }
  .hero-copy,
  .hero-cta { opacity: 1; }
  header.site { transition: none; }
}
