/* =========================================================================
   accueil.css — styles propres a la page d'accueil.
   Le socle (variables, typographie, nav, formulaire, footer) est dans
   base.css et composants.css.
   ========================================================================= */

/* ================= intro ================= */
/* image mobile par défaut, image desktop au-delà de 768px */
#intro {
  position: fixed;
  inset: 0 auto 0 0;
  width: 100vw;
  z-index: 300;
  background-image: linear-gradient(to right, #1a5f97 0%, #b0b5bf 20%, #fdc798 40%, #fdb55b 60%, #e39b84 80%, #4d608a 100%);
  background-size: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: width, transform
}



#intro .mot {
  position: absolute;
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 6.4rem);
  letter-spacing: -.03em;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap
}

#intro .mot span {
  display: block;
  transform: translateY(115%);
  will-change: transform
}


/* ================= sections plein écran & snap ================= */
main section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: clip
}

@supports (height:100svh) {
  main section {
    height: 100svh
  }
}

/* ================= SECTION 1 ================= */
#section1 {
  display: flex;
  flex-direction: column
}

.s1-haut {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: end;
  padding: calc(var(--nav-h) + 3vh) var(--pad) 3vh;
  min-height: 0
}

.s1-haut p,
.s1-haut h1 {
  width: 100%;
  font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  line-height: 1.42;
  letter-spacing: -.012em
}

.char {
  color: var(--gris-clair);
  color: white;
}

/* défilement des logos sous le texte */
.s1-marques {
  flex: 0 0 auto;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  display: none;
}

.marques__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
  padding: 22px 0
}

.s1-marques:hover .marques__track {
  animation-play-state: paused
}

.marques__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(.85rem, 1.4vw, 1.1rem);
  letter-spacing: .04em;
  color: var(--gris);
  white-space: nowrap;
  padding: 0 3.2vw;
  text-transform: uppercase;
  transition: color .3s
}

.marques__item:hover {
  color: var(--ink)
}

.marques__logo {
  height: clamp(18px, 2.2vw, 26px);
  width: auto;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5
}

.marques__item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hairline);
  margin-left: 3.2vw
}

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

.s1-bas {
  flex: 0 0 26%;
  position: relative;
  background: var(--ink);
  overflow: hidden
}

.s1-bas__img {
  position: absolute;
  background-image: linear-gradient(to left, #1a5f97 0%, #b0b5bf 20%, #fdc798 40%, #fdb55b 60%, #e39b84 80%, #4d608a 100%);
  left: 0;
  top: -18%;
  width: 100%;
  height: 136%;
  transform: scale(1.18);
  will-change: transform
}

@media (max-width:768px) {
  .s1-haut {
    align-items: flex-end;
    padding-bottom: 4vh
  }
}

/* ================= SECTIONS OFFRE (2 & 3) : contenu 40% / galerie 60% ================= */
.offre {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline)
}

.offre-haut {
  height: 40%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2vh;
  padding: calc(var(--nav-h) + 2vh) var(--pad) 2vh;
  align-content: center
}

@media (min-width:900px) {
  .offre-haut {
    grid-template-columns: .85fr 1.15fr;
    gap: 4vw;
    align-items: end
  }

  /* la description, avec son lien, plaquée bien à droite */
  .offre-droite {
    justify-self: end;
    max-width: 65%;
    text-align: left;
    padding-bottom: .2em
  }

  .offre-desc {
    margin-top: 0
  }
}

.offre-titre h2 {
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  letter-spacing: -.025em;
  line-height: 1.42
}

.offre-titre h2 .mask {
  display: block;
  overflow: hidden
}

.offre-titre h2 .mask span {
  display: block;
  transform: translateY(115%)
}

.offre-desc {
  margin-top: 2vh;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 100%
}

.ensavoir {
  display: inline;
  white-space: nowrap;
  transition: opacity .25s;
  color: orangered;
}

.ensavoir:hover {
  opacity: .55
}

.offre-droite {
  position: relative
}

/* galerie automatique : images collées, défilement continu */
.offre-galerie {
  height: 60%;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  position: relative
}

.gtrack {
  display: flex;
  gap: 0;
  height: 100%;
  width: max-content;
  will-change: transform;
  touch-action: pan-y
}

.offre-galerie {
  cursor: grab
}

.offre-galerie.is-dragging {
  cursor: grabbing
}

.gitem {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 9/16;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer
}

.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform .8s var(--ease)
}

.gitem:hover img {
  transform: scale(1.12)
}

.gitem::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 8px;
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity .3s;
  z-index: 2
}

.gitem:hover::after {
  opacity: 1
}

.gitem .gveil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 30, .72), rgba(10, 18, 30, .05) 55%)
}

.gitem .glabel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  z-index: 2
}

.gitem .glabel strong {
  display: block;
  font-weight: 500;
  font-size: .95rem
}

.gitem .glabel span {
  font-size: .74rem;
  color: rgba(255, 255, 255, .7)
}

/* modale projet : plein écran, noire.
   mobile : image en haut, texte en dessous.
   desktop : contenu à gauche 50%, image à droite 50%. */
#fiche {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: var(--black);
  color: #fff
}

#fiche.is-open {
  display: block
}

#fiche article {
  position: absolute;
  inset: 0;
  overflow: auto;
  opacity: 0
}

#fiche.is-open article {
  animation: ficheIn .5s var(--ease) forwards
}

.fiche-img {
  width: 100%;
  height: min(56vh, 60svh);
  overflow: hidden;
  background: #000
}

.fiche-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity
}

.fiche-body {
  padding: 6vh var(--pad) 10vh;
  max-width: 900px
}

#fiche h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -.025em;
  margin-bottom: 20px;
}

#fiche h3,
#ficheInfo {
  will-change: transform, opacity
}

#ficheInfo {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  line-height: 1.75;
  max-width: 58ch;
  color: rgba(255, 255, 255, .85)
}

@keyframes ficheIn {
  to {
    opacity: 1
  }
}

/* mise en page 50 / 50 sur grand écran */
@media (min-width:900px) {
  #fiche article {
    display: flex;
    flex-direction: row-reverse;
    overflow: hidden
  }

  .fiche-img {
    flex: 0 0 50%;
    width: 50%;
    height: 100%
  }

  .fiche-body {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    padding: 8vh clamp(40px, 4vw, 72px) 8vh clamp(104px, 7vw, 130px)
  }

  #ficheInfo {
    max-width: 46ch
  }
}

/* flèches seules, fixées de part et d'autre de l'écran */
.fiche-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  transition: background .25s, transform .25s var(--ease)
}

.fiche-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6
}

.fiche-arrow:hover {
  background: rgba(255, 255, 255, .18)
}

#fichePrev {
  left: clamp(10px, 3vw, 34px)
}

#fichePrev:hover {
  transform: translateY(-50%) translateX(-4px)
}

#ficheNext {
  right: clamp(10px, 3vw, 34px)
}

#ficheNext:hover {
  transform: translateY(-50%) translateX(4px)
}

/* bouton fermer : même traitement que les flèches */
#ficheClose {
  top: clamp(10px, 3vw, 34px);
  right: clamp(10px, 3vw, 34px);
  transform: none;
  z-index: 6
}

#ficheClose:hover {
  transform: rotate(90deg)
}

@media (max-width:640px) {
  .fiche-arrow {
    width: 44px;
    height: 44px
  }
}

/* ================= PARCOURS : portrait qui se réduit + texte ================= */
.parcours {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) var(--pad) 4vh;
  border-top: 1px solid var(--hairline);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: clip
}

@supports (height:100svh) {
  .parcours {
    height: 100svh
  }
}

.parcours .char {
  color: var(--ink);
  opacity: 0
}

.parcours__in {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%
}

.bigtext {
  text-align: center
}

.bigtext p {
  font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  line-height: 1.42;
  letter-spacing: -.012em
}

/* avis google, en gris clair, sous le parcours */
.pavis {
  margin-top: 6vh;
  text-align: center;
  color: var(--gris);
  height: 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center
}

.pavis__anim {
  width: 100%
}

.pavis__stars,
.pavis__quote,
.pavis__who {
  will-change: transform, opacity, filter
}

.pavis__stars {
  font-size: 1rem;
  letter-spacing: .34em;
  color: var(--ink)
}

.pavis__stars i {
  font-style: normal
}

.pavis__stars i.off {
  opacity: .22
}

.pavis__quote {
  margin-top: 14px;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--gris);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.pavis__who {
  margin-top: 12px;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gris)
}

/* ================= KPI carrés : 100vh, remplissage dégradé ================= */
.kpis {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--pad) 4vh;
  border-top: 1px solid var(--hairline);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: clip
}

/* globe filaire, en base, largeur 100%, coupé par le bas de la section */
.kpis__globe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(220px, 34vh, 420px);
  z-index: 0;
  pointer-events: none
}

.kpis__globe canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block
}

/* le rayon du globe est calculé sur la hauteur du cadre : on l'agrandit sur grand écran */
@media (min-width:900px) {
  .kpis__globe {
    height: clamp(320px, 44vh, 540px)
  }
}

@media (min-width:1400px) {
  .kpis__globe {
    height: clamp(420px, 54vh, 700px)
  }
}

@supports (height:100svh) {
  .kpis {
    height: 100svh
  }
}

.kpis__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

@media (min-width:700px) {
  .kpis__grid {
    gap: 22px
  }
}

@media (min-width:1100px) {
  .kpis__grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.kpi {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8%;
  position: relative;
  overflow: hidden;
  background: var(--blanc)
}

/* remplissage : un dégradé monte depuis le bas à l'apparition */
.kpi::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  transform: translateY(calc(130% - 130% * var(--fill, 0)));
  will-change: transform
}

.kpi>* {
  position: relative;
  z-index: 1
}

/* alternance noir / blanc */
.kpi:nth-child(odd) {
  background: var(--ink);
  color: #fff
}

.kpi:nth-child(odd)::before {
  background: linear-gradient(to top, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0))
}


.kpi:nth-child(even)::before {
  background: linear-gradient(to top, rgba(10, 18, 30, .2), rgba(10, 18, 30, 0))
}

.kpi__num {
  font-size: clamp(2.2rem, 8vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--blanc);
}

.kpi__num sup {
font-size: .4em;
margin-left: 4px;
letter-spacing: -2px;
}

.kpi__label {
  margin-top: 14px;
  font-size: .86rem;
  line-height: 1.55;
  opacity: .72;
  max-width: 24ch;
  color: var(--blanc);
}

@media (min-width:1100px) {
  .kpi__num {
    font-size: clamp(3.2rem, 5.4vw, 5.4rem)
  }

  .kpis__grid {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%
  }
}

@media (max-width:699px) {
  .kpi__label {
    font-size: .72rem
  }
}

