/* =========================================================================
   signal.css — styles des pages « Site d'entreprise » et « Solution sur mesure ».
   Univers graphique distinct de l'accueil : fond WebGL, panneaux plein ecran,
   compteur et rail lateral. Les variables redefinies ici surchargent base.css.
   ========================================================================= */

:root {
  --ink: #12100E;
  --ink-60: rgba(18, 16, 14, .58);
  --ink-25: rgba(18, 16, 14, .22);
  --paper: #FFFFFF;
  --accent: #350fe0;
  --unit: clamp(20px, 4vw, 64px);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 70px;
  --pad: 6vw;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #1a5f97;
}

body {
  background: #ffffff;
  color: white;
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#webgl {
  position: fixed;
  inset: 0;
  width: 50vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(125% 95% at 50% 50%, rgba(255, 255, 255, 0) 54%, rgba(255, 255, 255, .9) 100%);
}

.chrome {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: none;
}

.chrome-tl {
  top: var(--unit);
  left: var(--unit);
}

.chrome-tr {
  top: var(--unit);
  right: var(--unit);
  text-align: right;
}

.chrome-bl {
  bottom: var(--unit);
  left: var(--unit);
}

.chrome-br {
  bottom: var(--unit);
  right: var(--unit);
  text-align: right;
}

.mark {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .2em;
}

.counter {
  font-variant-numeric: tabular-nums;
}

.counter b {
  color: var(--ink);
  font-weight: 600;
}

.rail {
  position: fixed;
  z-index: 5;
  right: var(--unit);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
  display: none;
}

.rail i {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink-25);
  transition: width .5s cubic-bezier(.2, .7, .2, 1), background .5s;
}

.rail i.on {
  width: 44px;
  background: var(--accent);
}

main {
  position: relative;
  z-index: 3;
}

.panel {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--unit);
  padding-bottom: calc(var(--unit) * 2.4);
  pointer-events: none;
}

.panel:nth-child(even) {
  justify-content: flex-end;
  text-align: right;
}

.panel-inner {
  max-width: min(60ch, 78vw);
  /*
padding: 30px;
background: #ffffff9e;
border-radius: 4px;
backdrop-filter: blur(8px);
*/



}


.panel:nth-child(even) .eyebrow {
  justify-content: flex-end;
}

.eyebrow s {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  text-decoration: none;
}

h1,
h2 {
  line-height: .95;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  letter-spacing: -.012em;
  color: white;

}

h1 em,
h2 em {
  font-style: italic;
  color: white;
}

.lede {
  margin-top: 22px;
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.55;
  color: black;
  max-width: 100%;
  display: none;
}

.panel:nth-child(even) .lede {
  margin-left: auto;
}

.cta {
  pointer-events: auto;
  display: inline-block;
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  transition: color .3s;
}

.cta:hover {
  color: var(--accent);
}

.hint {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(var(--unit) * .9);
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  display: none;
  transition: opacity .5s;
}

.hint u {
  display: block;
  width: 1px;
  height: 38px;
  background: var(--ink-25);
  position: relative;
  overflow: hidden;
}

.hint u::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: drop 2.1s cubic-bezier(.6, 0, .2, 1) infinite;
}

@keyframes drop {
  0% {
    transform: translateY(-100%);
  }

  55%,
  100% {
    transform: translateY(100%);
  }
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-60);
  transition: opacity .8s ease, visibility .8s;
}

#loader.gone {
  opacity: 0;
  visibility: hidden;
}

@media (max-width:760px) {

  .rail,
  .chrome-tr,
  .chrome-br {
    display: none;
  }

  .panel {
    align-items: flex-end;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .panel-inner {
    max-width: 100%;
    
  }

  .panel:nth-child(even) .eyebrow {
    justify-content: flex-start;
  }

  .panel:nth-child(even) .lede {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .hint u::after {
    animation: none;
  }
}


/* ============================================================
   SUITE — réalisations, contact, pied de page
   (reprise de la page d'accueil, adaptée à la scène 3D)
   ============================================================ */

:root {
  --blanc: #ffffff;
  --black: #000;
  --gris: #6d747c;
  --gris-clair: #d8dadd;
  --hairline: #e7e7e7;
}

/* ---- le dégradé de ciel ne couvre plus que la séquence 3D ---- */
#sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700vh;
  /* recalculé au pixel près en JS */
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, #1a5f97 0%, #b0b5bf 20%, #fdc798 40%, #fdb55b 60%, #e39b84 80%, #4d608a 100%);
}

#webgl {
  z-index: 1;
  transition: opacity .6s var(--ease), visibility .6s;
}

.vignette {
  z-index: 2;
  transition: opacity .6s var(--ease), visibility .6s;
}

/* ---- une fois le vortex passé, la scène s'efface et la nav passe en encre ---- */
body.is-past-vortex #webgl,
body.is-past-vortex .vignette,
body.is-past-vortex .hint {
  opacity: 0;
  visibility: hidden;
}


/* ---- conteneur opaque au-dessus de la scène ---- */
#suite {
  position: relative;
  z-index: 4;
  background: var(--blanc);
  color: var(--ink);
}

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

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

#suite button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--ink);
    color: #fff;
}

#suite h2,
#suite h3 {
  color: var(--ink);
  font-weight: 500;
}

/* ================= RÉALISATIONS : 40 % contenu / 60 % galerie ================= */
#suite .offre {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--hairline);
}

@supports (height:100svh) {
  #suite .offre {
    height: 100svh;
  }
}

#suite .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) {
  #suite .offre-haut {
    grid-template-columns: .85fr 1.15fr;
    gap: 4vw;
    align-items: end;
  }

  #suite .offre-droite {
    justify-self: end;
    max-width: 65%;
    text-align: left;
    padding-bottom: .2em;
  }

  #suite .offre-desc {
    margin-top: 0;
  }
}

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

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

#suite .offre-titre h2 .mask span {
  display: block;
}

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

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

#suite .ensavoir:hover {
  opacity: .55;
}

#suite .offre-droite {
  position: relative;
}

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

#suite .offre-galerie.is-dragging {
  cursor: grabbing;
}

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

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

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

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

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

#suite .gitem:hover::after {
  opacity: 1;
}

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

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

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

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

/* ================= MODALE PROJET ================= */
#fiche {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: var(--black);
  color: #fff;
}

#fiche.is-open {
  display: block;
}

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

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

#fiche button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: 0 0;
  color: inherit;
}

#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);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}

#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;
  }
}

@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;
  }
}

.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);
}

#ficheClose {
  top: clamp(10px, 3vw, 34px);
  right: clamp(10px, 3vw, 34px);
  transform: none;
  z-index: 6;
}

#ficheClose:hover {
  transform: none;
}


/* ================= PARCOURS : phrase qui s'écrit + entreprises ================= */
.parcours {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2vh) var(--pad) 6vh;
  overflow: clip
}

@supports (height:100svh) {
  .parcours { min-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
}

.marques {
  margin-top: clamp(26px, 5vh, 64px);
  margin-left: auto;
  margin-right: auto;
}

.marques__label {
  display: block;
  text-align: center;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: clamp(16px, 2.6vh, 28px)
}

.marques__grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
}

@media (min-width:700px) {
  .marques { max-width: 70% }
  .marques__grille { grid-template-columns: repeat(3, 1fr) }
}

.marques__cell {
  background: var(--blanc);
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 28px)
}

@media (min-width:700px) {
  .marques__cell { aspect-ratio: 16/9 }
}

.marques__cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: .5;
  transition: filter .35s var(--ease), opacity .35s var(--ease)
}

.marques__cell:hover img { opacity: 1 }

@media (prefers-reduced-motion: reduce) {
  .parcours .char { opacity: 1 !important }
}


/* ===== panneaux a liste : page Solution sur mesure ===== */
/* ================= PANNEAUX : titre + liste ================= */
.panel-inner .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.panel-inner h1,
.panel-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.panel-inner ul {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.panel-inner li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(.9rem, 1.05vw, 1.02rem);
  line-height: 1.35;
  letter-spacing: .005em;
  color: rgba(255, 255, 255, .94);
}

.panel-inner li::before {
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  transform: translateY(-.34em);
}

.panel:nth-child(even) .panel-inner ul {
  align-items: flex-end;
}

.panel:nth-child(even) .panel-inner li {
  flex-direction: row-reverse;
}

.panel-inner .cta {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .75);
}

.panel-inner .cta:hover {
  color: rgba(255, 255, 255, .7);
}

@media (max-width:760px) {
  .panel-inner .eyebrow {
    justify-content: flex-start !important;
  }

  .panel:nth-child(even) .panel-inner ul {
    align-items: flex-start;
  }

  .panel:nth-child(even) .panel-inner li {
    flex-direction: row;
  }
}

  
