/* ==========================================================
   Biznex Gab – feuille de style
   Sommaire :
   1. Variables et base      5. Services (carrousel)
   2. Boutons                6. Engagements, équipe, FAQ
   3. En-tête et menu        7. Contact et pied de page
   4. Hero et chiffres       8. Animations, responsive
   Palette : bleu nuit (--nuit), blanc, blanc cassé (--creme)
   ========================================================== */

:root {
  --nuit: #0b1f3a;
  --nuit2: #07162b;
  --creme: #f5f3ee;
  --papier: #f5f3ee;
  --blanc: #fff;
  --encre: #0b1f3a;
  --gris: #566278;
  --trait: #dcdfe5;
  --r: 16px;
  --max: 1160px
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 'Figtree', system-ui, sans-serif;
  color: var(--encre);
  background: var(--papier)
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.015em
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500
}

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

a {
  color: inherit
}

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

.hero :focus-visible,
.dark :focus-visible {
  outline-color: var(--creme)
}

.wrap {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto
}

section {
  padding: clamp(3.5rem, 8vw, 6rem) 0
}

.eyebrow {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nuit);
  margin-bottom: .7rem
}

.dark .eyebrow,
.hero .eyebrow {
  color: #aebcd6
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700
}

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font: 600 1rem 'Figtree', sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-clair {
  background: var(--creme);
  color: var(--nuit2)
}

.btn-clair:hover {
  background: #fff
}

.btn-nuit {
  background: var(--nuit);
  color: #fff
}

.btn-nuit:hover {
  background: var(--nuit2)
}

.btn-wa {
  background: #25d366;
  color: #07200f
}

.btn-wa:hover {
  background: #1ebe5a
}

.btn-ligne {
  border-color: rgba(255, 255, 255, .55);
  color: #fff
}

.btn-ligne:hover {
  background: rgba(255, 255, 255, .1)
}

/* En-tête */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait)
}

.nav.wrap {
  width: calc(100% - 3rem);
  max-width: none
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: .22rem;
  line-height: 1;
  text-decoration: none
}

.logo-mot {
  font: 800 1.55rem 'Figtree', system-ui, sans-serif;
  letter-spacing: .01em;
  text-align: center
}

.logo-biz {
  color: #264c92
}

.logo-nex {
  color: #55962f
}

.logo-gab {
  display: flex;
  align-items: center;
  gap: .45rem;
  font: 500 .62rem 'Figtree', system-ui, sans-serif;
  letter-spacing: .5em;
  text-indent: .5em;
  color: #c4a352
}

.logo-gab::before,
.logo-gab::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: #c4a352
}

nav ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--nuit2)
}

nav a.btn {
  color: #fff
}

nav a:not(.btn):hover {
  color: var(--nuit);
  text-decoration: underline;
  text-decoration-color: var(--nuit);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px
}

.burger {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--encre);
  margin: 5px 0
}

/* Hero */
.hero {
  background: var(--nuit);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0 0;
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 700
}

.hero .lead {
  color: #c5cfe0;
  max-width: 33rem;
  margin: 1.3rem 0 2rem
}

.actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap
}

.hero-img {
  position: relative
}

.hero-img img {
  border-radius: var(--r) var(--r) 0 0;
  aspect-ratio: 4/4.3;
  object-fit: cover;
  width: 100%;
  background: var(--nuit2)
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.actions {
  animation: monte .8s cubic-bezier(.2, .7, .2, 1) both
}

.hero h1 {
  animation-delay: .08s
}

.hero .lead {
  animation-delay: .16s
}

.actions {
  animation-delay: .24s
}

@keyframes monte {
  from {
    opacity: 0;
    transform: translateY(60px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 0;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, .18)
}

.chiffres strong {
  display: block;
  font: 700 clamp(2rem, 4vw, 2.9rem) 'Fraunces', serif;
  color: #fff;
  line-height: 1
}

.chiffres span {
  display: block;
  margin-top: .4rem;
  font-size: .95rem;
  color: #c5cfe0
}

/* Carrousel */
.tete {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem
}

.fleches {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--gris);
  font-size: .9rem
}

.fl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--trait);
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  transition: .2s
}

.fl:hover {
  background: var(--nuit);
  color: #fff;
  border-color: var(--nuit)
}

.piste {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .3rem .2rem 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--nuit) var(--trait)
}

.carte {
  flex: 0 0 min(330px, 82%);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s
}

.carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(11, 31, 58, .15)
}

.carte img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: var(--trait)
}

.carte div {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1
}

.carte h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem
}

.carte p {
  margin: 0 0 1rem;
  color: var(--gris);
  font-size: 1rem;
  flex: 1
}

.carte a {
  font-weight: 600;
  color: var(--nuit);
  text-decoration: none
}

.carte a:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

/* Engagements */
#pourquoi {
  background: #fff;
  border-block: 1px solid var(--trait)
}

.engage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem
}

.engage div {
  background: var(--papier);
  border-radius: var(--r);
  padding: 1.5rem;
  border-top: 4px solid var(--nuit)
}

.engage h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem
}

.engage p {
  margin: 0;
  color: var(--gris);
  font-size: 1rem
}

/* Équipe / citation */
.equipe {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center
}

.equipe img {
  border-radius: var(--r);
  width: 100%;
  aspect-ratio: 4/4.4;
  object-fit: cover;
  background: var(--trait)
}

blockquote {
  margin: 1.2rem 0 1.5rem;
  padding-left: 1.2rem;
  border-left: 4px solid var(--nuit);
  font: 500 italic clamp(1.3rem, 2.4vw, 1.7rem)/1.35 'Fraunces', serif
}

.equipe p {
  color: var(--gris);
  max-width: 34rem;
  margin: 0 0 1.5rem
}

/* Contact */
.dark {
  background: var(--nuit);
  color: #fff
}

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start
}

.dark .lead {
  color: #c5cfe0;
  margin-top: 1rem;
  max-width: 27rem
}

form {
  background: var(--papier);
  color: var(--encre);
  padding: 1.75rem;
  border-radius: 20px;
  display: grid;
  gap: 1rem
}

label {
  font-weight: 600;
  font-size: .95rem;
  display: grid;
  gap: .35rem
}

input,
select,
textarea {
  font: inherit;
  padding: .8rem .9rem;
  border: 1.5px solid var(--trait);
  border-radius: 10px;
  background: #fff;
  width: 100%
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--nuit);
  border-color: var(--encre)
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.statut {
  margin: 0;
  font-weight: 600;
  min-height: 1.5rem
}

footer {
  background: var(--nuit2);
  color: #b3bfd3;
  padding: 2.5rem 0 5rem;
  font-size: .95rem
}

.pied {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem
}

footer ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap
}

footer a {
  text-decoration: none
}

footer a:hover {
  color: #fff
}

/* FAQ */
#faq {
  background: #fff;
  border-block: 1px solid var(--trait)
}

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start
}

.faq-intro {
  color: var(--gris);
  margin: 1.2rem 0 1.6rem;
  max-width: 26rem
}

.faq-liste {
  display: grid;
  gap: .75rem
}

details {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r);
  transition: border-color .2s, background .2s
}

details[open] {
  border-color: var(--nuit);
  background: #fff
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font: 600 1.1rem 'Fraunces', serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem
}

summary::-webkit-details-marker {
  display: none
}

summary::after {
  content: "+";
  font: 500 1.6rem/1 'Figtree', sans-serif;
  flex: none;
  transition: transform .3s
}

details[open] summary::after {
  transform: rotate(45deg)
}

.faq-rep {
  padding: 0 1.4rem 1.3rem;
  color: var(--gris)
}

.faq-rep p {
  margin: 0
}

details[open] .faq-rep {
  animation: deplie .35s ease
}

@keyframes deplie {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* Pages de texte (mentions légales) */
.legal {
  padding: clamp(3rem, 7vw, 5rem) 0
}

.legal .wrap {
  max-width: 780px
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 2rem
}

.legal h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 .6rem
}

.legal p,
.legal li {
  color: var(--gris)
}

.legal mark {
  background: #e6ebf5;
  color: var(--nuit);
  padding: 0 .3em;
  border-radius: 4px
}

@media (max-width:900px) {

  .hero-grid,
  .equipe,
  .contact,
  .faq-grid {
    grid-template-columns: 1fr
  }

  .hero-img {
    display: none
  }

  .nav.wrap {
    width: calc(100% - 2rem)
  }

  .chiffres {
    grid-template-columns: 1fr 1fr
  }

  .engage {
    grid-template-columns: 1fr 1fr
  }

    .burger {
  display: block;
  margin-left: auto;
  flex-shrink: 0;
}

  .nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav > nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(320px, calc(100vw - 2rem));
  z-index: 100;
}

  nav ul {
  position: static;
  width: 100%;
  background: var(--papier);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: .5rem 1.25rem 1.25rem;
  border: 1px solid var(--trait);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 16px 30px rgba(11, 31, 58, .15);
  display: none;
}
  nav ul.ouvert {
    display: flex
  }

  nav li a:not(.btn) {
    display: block;
    padding: .85rem 0
  }
}

@media (max-width:600px) {

  .logos li {
    flex-basis: calc(50% - .65rem);
    --h: 110px
  }

  .engage,
  .duo {
    grid-template-columns: 1fr
  }
}

/* ===== Animations ===== */
.hero,
.hero .wrap {
  position: relative
}

.hero .wrap {
  z-index: 1
}

.hero-img {
  overflow: hidden;
  border-radius: var(--r) var(--r) 0 0
}

.hero-img img {
  animation: zoom 1.8s cubic-bezier(.2, .7, .2, 1) both .2s
}

@keyframes zoom {
  from {
    transform: scale(1.18);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--nuit);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60
}

header {
  transition: box-shadow .3s
}

header.scrolled {
  box-shadow: 0 6px 24px rgba(11, 31, 58, .12)
}

.nav {
  transition: height .3s
}

header.scrolled .nav {
  height: 60px
}

.marquee {
  background: #fff;
  color: var(--nuit);
  border-bottom: 1px solid var(--trait);
  overflow: hidden;
  white-space: nowrap;
  padding: .95rem 0;
  font: 600 1.2rem 'Fraunces', serif
}

.marquee-track {
  display: inline-flex;
  animation: defile 30s linear infinite
}

.marquee:hover .marquee-track {
  animation-play-state: paused
}

.marquee-track div {
  display: inline-flex;
  gap: 2.5rem;
  padding-right: 2.5rem
}

@keyframes defile {
  to {
    transform: translateX(-50%)
  }
}

.js .rev {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0s)
}

.js .rev.vu {
  opacity: 1;
  transform: none
}

/* Les chiffres du hero montent après le titre */
.chiffres {
  animation: monte 1s cubic-bezier(.22, 1, .36, 1) .45s both
}

.carte img {
  transition: transform .7s cubic-bezier(.2, .7, .2, 1)
}

.carte:hover img {
  transform: scale(1.07)
}

.engage div {
  transition: transform .25s, box-shadow .25s
}

.engage div:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(11, 31, 58, .12)
}

.btn-clair:hover {
  box-shadow: 0 8px 22px rgba(245, 243, 238, .3)
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important
  }

  .js .rev {
    transform: none
  }

  .marquee-track {
    animation: none
  }
}

/* ===== Hero : fond d'images qui défilent ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--nuit);
  z-index: 0
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: diapo 20s linear infinite
}

.hero-bg img:nth-child(2) { animation-delay: 4s }
.hero-bg img:nth-child(3) { animation-delay: 8s }
.hero-bg img:nth-child(4) { animation-delay: 12s }
.hero-bg img:nth-child(5) { animation-delay: 16s }

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 22, 43, .75) 0%, rgba(7, 22, 43, 0) 32%),
    linear-gradient(90deg, rgba(7, 22, 43, .9) 0%, rgba(7, 22, 43, .7) 38%, rgba(7, 22, 43, .3) 70%, rgba(7, 22, 43, .2) 100%)
}

@keyframes diapo {
  0% { opacity: 0; transform: scale(1.02) }
  6% { opacity: 1 }
  20% { opacity: 1 }
  26% { opacity: 0; transform: scale(1.08) }
  100% { opacity: 0; transform: scale(1.08) }
}

/* ===== Partenaires ===== */
.logos {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem
}

.logos {
  --h: 165px
}

.logos li {
  flex: 0 1 200px;
  height: var(--h);
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r);
  transition: transform .25s, box-shadow .25s
}

.logos li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 31, 58, .12)
}

.logos img {
  max-width: 100%;
  max-height: calc(var(--h) - 2.2rem - 2px);
  width: auto;
  height: auto;
  object-fit: contain
}

/* ===== Témoignages ===== */
#temoignages {
  background: #fff;
  border-block: 1px solid var(--trait)
}

.temo {
  text-align: center
}

.temo-sous {
  margin: .8rem 0 2.5rem;
  color: var(--gris);
  font-size: 1.15rem
}

.temo-carte {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--papier);
  border: 2px dashed #c3cad6;
  border-radius: 24px;
  color: var(--nuit);
  display: grid;
  justify-items: center;
  gap: 1rem
}

.temo-carte h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--encre)
}

.temo-carte p {
  margin: 0 0 .75rem;
  color: var(--gris);
  max-width: 30rem
}

/* ===== Coordonnées (section contact) ===== */
.coords {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem
}

.coords li {
  display: grid;
  gap: .15rem
}

.coords span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #aebcd6
}

.coords a,
.coords div {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere
}

.coords a:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

/* ===== Bouton WhatsApp flottant ===== */
.wa-flottant {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 45;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  transition: transform .2s, background .2s
}

.wa-flottant:hover {
  background: #1ebe5a;
  transform: scale(1.08)
}

.faq-rep a {
  color: var(--nuit);
  font-weight: 600
}

@media (prefers-reduced-motion:reduce) {
  .hero-bg img {
    animation: none !important;
    transform: none
  }

  .hero-bg img:first-child {
    opacity: 1
  }
}

@media (max-width:600px) {
  .logos li {
    flex: 0 1 calc(50% - .65rem)
  }
}

.legal p a {
  color: var(--nuit);
  font-weight: 600
}

.hero h1,
.hero .lead {
  text-shadow: 0 2px 18px rgba(7, 22, 43, .55)
}

.hero-grid {
  min-height: clamp(380px, 56vh, 540px);
  padding-bottom: 2.5rem
}

.hero-grid > div {
  max-width: 40rem
}
