/* IMPORT FONTS AND CSS */
@import url(./reset.css);
@import url(./HelveticaNowDisplay.css);

/* START CSS */

html{

  font-family: "Helvetica Now Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
}

body {
  /* Responsive tweaks */
  /* min-height: 100ddvh; */
  min-width: 320px;
  /* Typo tweaks */
  font-size: 16px;
  overflow-y: auto;

  /* Base colors */
  --transparent: #ffffff00;

  /* Customs Colors */
  --pure-white: #ffffff;
  --near-white: #ededed;
  --gray-700: #dedee0;
  --gray-600: #d0d0d2;
  --gray-500: #777779;
  --gray-400: #444446;
  --gray-300: #222224;
  --gray-200: #111113;
  --near-black: #020203;
  --pure-black: #000000;
  /* Primary */
  --green: #2bed6d;
  --background: #0e0e0e;
  --mid-gray: #1b1b1b;
  --mid-gray-hover: #2b2b2b;
  --radial-lights: radial-gradient(
    #ff6b34 0%,
    #ff001a 45.86%,
    #ff0083 77.35%,
    #c600c6 100%
  );
  --highlight-fill: radial-gradient(#ffffff 0%, #d9d9d9 100%);
  --highlight-border: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 32.59%,
    #ffffff 69.57%,
    #ffffff 100%
  );
  --text-linear: linear-gradient(to bottom, #ff763d 0%, #ff6672 100%);
  --btn-highlight: radial-gradient(#ffffff 0%, #d9d9d9 100%);

  /* Others */

  /* Transitions */
  --transition-300ms: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
  --transition-600ms: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
  /* Globals variables */
  --navbar-height: 116px;
  --navbar-height-mobile: 96px;

  --font-10px-0_625rem: 0.625rem;
  --font-12px-0_75rem: 0.75rem;
  --font-14px-0_875rem: 0.875rem;
  --font-16px-1rem: 1rem;
  --font-20px-1_25rem: 1.25rem;
  --font-24px-1_5rem: 1.5rem;
  --font-32px-2rem: 2rem;
  --font-48px-3rem: 3rem;
  --font-64px-4rem: 4rem;
  --font-80px-5rem: 5rem;
  --font-96px-6rem: 6rem;
  --font-128px-8rem: 8rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* overflow-x: hidden !important; */
  background-color: var(--background);
}

:root{
  --mauve-dark: #1a0f22;  /* fond mauve foncé */
  --mauve-light: #c06bff; /* remplissage mauve clair */
  --white: #ffffff;
}

/* ===== LOADER ARRIVÉE SITE ===== */
.site-loader{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: var(--mauve-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.site-loader.is-active{
  opacity: 1;
  pointer-events: auto;
}

.site-loader-inner{
  display: grid;
  place-items: center;
  gap: 18px;
  transform: translateY(-10px);
}

.loader-logo{
  width: min(360px, 70vw);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.45));
}

/* Ring */
.loader-ring{
  position: relative;
  width: 140px;
  height: 140px;
}

.ring-svg{
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg{
  fill: none;
  stroke: rgba(255,255,255,.18);
  stroke-width: 10;
}

.ring-fg{
  fill: none;
  stroke: var(--mauve-light);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;     /* 2πr (r=52) ≈ 326.7 */
  stroke-dashoffset: 327;    /* 100% vide au départ */
  transition: stroke-dashoffset .15s linear;
}

.ring-text{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}

/* ===== TRANSITION ENTRE PAGES ===== */
/* ===== TRANSITION ENTRE PAGES (SWIPE) ===== */
.page-transition{
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  overflow: hidden;

  /* état initial : hors écran à gauche */
  transform: translateX(-110%);
  opacity: 1;
  background: var(--mauve-dark);
}

/* visible (swipe in) */
.page-transition.is-active{
  pointer-events: auto;
  animation: swipeIn 0.9s cubic-bezier(.22,1,.36,1) forwards; /* ← durée */
}

/* quand la page arrive, on fait un "reveal" rapide */
.page-transition.is-out{
  animation: swipeOut 0.8s cubic-bezier(.22,1,.36,1) forwards; /* ← durée */
}

@keyframes swipeIn{
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(0%); }
}

@keyframes swipeOut{
  0%   { transform: translateX(0%); }
  100% { transform: translateX(110%); }
}

/* logo au milieu + petite balance */
.transition-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 72vw);
  transform: translate(-50%, -50%) rotate(0deg);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.45));
  opacity: .95;
}

.page-transition.is-active .transition-logo{
  animation: wobble 0.9s ease-in-out both; /* synchronisé au swipeIn */
}

@keyframes wobble{
  0%   { transform: translate(-50%,-50%) rotate(-6deg) scale(.98); }
  35%  { transform: translate(-50%,-50%) rotate(6deg)  scale(1.02); }
  70%  { transform: translate(-50%,-50%) rotate(-3deg) scale(1.00); }
  100% { transform: translate(-50%,-50%) rotate(0deg)  scale(1.00); }
}



/************************
    START CUSTOM CSS
************************/
.custom-cursor {
  mix-blend-mode: difference;
  position: fixed;
  margin-top: -10px;
  margin-left: -10px;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: var(--near-white);
  pointer-events: none;
  z-index: 21000;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.no-select {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== NAVBAR (dropdown + blur) ===== */

/* ===== NAVBAR : largeur + position ===== */
.navbar{
  position: fixed;
  top: max(16px, env(safe-area-inset-top));              /* enlève la marge en haut */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20000;

  width: fit-content;     /* la navbar prend la largeur du contenu */
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 10px 14px;     /* ↓ réduit ici la "longueur" visuelle */
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 15px 50px rgba(0,0,0,.35);
}



.navlogo{
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.navlogo img{
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
  transition: transform .25s ease, opacity .25s ease;
}
.navlogo:hover img{
  transform: scale(1.05);
  opacity: .95;
}

/* ===== BURGER ===== */
/* ===== BURGER BUTTON (clean & stable) ===== */

/* Bouton */
.navbar-burger-toggle{
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}

/* Traits */
.navbar-burger-toggle span{
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .45s cubic-bezier(.2,.9,.2,1), opacity .25s ease;
  transform-origin: center;
}

/* Position de base */
.navbar-burger-span1{ transform: translateY(-5px); }
.navbar-burger-span2{ transform: translateY(5px); }

/* ✅ État ouvert → CROIX (même classe que ton JS : is-open) */
.navbar.is-open .navbar-burger-span1{
  transform: translateY(0) rotate(45deg);
}

.navbar.is-open .navbar-burger-span2{
  transform: translateY(0) rotate(-45deg);
}



/* ===== MENU DROPDOWN ===== */
.navbar-menu{
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);

  width: 280px; /* largeur du menu */
  padding: 14px;
  border-radius: 20px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  display: flex;
  flex-direction: column;
  gap: 10px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}


.navbar.is-open .navbar-menu{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


.navbar-menu-link{
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: -0.01em;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.navbar-menu-link:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

/* ===== OVERLAY FLOU DERRIÈRE (très opaque) ===== */
.menu-blur-overlay{
  position: fixed;
  inset: 0;
  z-index: 10040; /* juste sous la navbar (10050) */

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(55px) saturate(0.7);
  -webkit-backdrop-filter: blur(55px) saturate(0.7);

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.menu-blur-overlay.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* Mobile spacing */
@media (max-width: 700px){
  .navbar{
    top: 14px;
    width: calc(100% - 28px);
    height: 68px;
  }

  .navlogo img{ height: 52px; }

  .navbar-menu{
    right: 10px;
    width: min(92vw, 320px);
  }
}


/* ------------ Hero ------------ */
.section-hero {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* height: calc(100vh - var(--navbar-height)); */
  height: 100dvh;
  width: 100%;
  padding: 2 6rem;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}
.hero-logo{
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img{
 width: 85vw;        /* prend presque toute la largeur écran */
  max-width: 1400px;  /* limite sur très grands écrans */
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55));
}
.hero-light1 {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  object-fit: cover;
}
.hero-light2 {
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
  transform: translateX(50%) translateY(50%);
}
.hero-light3 {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  transform: translateX(50%) translateY(-50%);
}

.hero-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 1;
}
.hero-title {
  color: var(--near-white);
  text-align: center;
  font-size: var(--font-96px-6rem);
  /* font-size: var(--font-128px-8rem); */
  font-style: normal;
  font-weight: 700;
  line-height: 107%;
}

.hero-subtitle {
  color: var(--near-white);
  text-align: center;
  font-size: var(--font-20px-1_25rem);
  opacity: 0.7;
}

.hero-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--near-white);
  opacity: 0.7;
  animation: hero-arrow 2.2s infinite ease-in-out;
}
@keyframes hero-arrow {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-1rem);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* ------------ Section Projects ------------ */
.section-projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* height: 100dvh; */
  width: 100%;
  padding: 6rem 6rem;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.projects-wrapper {
  display: grid;
  /* 2 by 2 grid */
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  z-index: 1;
}

.projects-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.projects-item-image {
  border-radius: 1.5rem;
  height: 320px;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}
.projects-item-bottom {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.projects-item-title {
  color: var(--near-white);
  font-size: var(--font-24px-1_5rem);
  font-weight: var(--font-weight-bold);
}

.projects-item-button {
  display: flex;
  padding: 0.625rem 2rem;
  justify-content: center;
  align-items: center;
  background-color: var(--mid-gray);
  color: var(--near-white);
  border-radius: 100vmax;
  transition: var(--transition-300ms);
  position: relative;
  overflow: hidden;
}
.projects-item:hover .projects-item-button {
  background-color: var(--near-white);
  color: var(--background);
  transition: var(--transition-300ms);
}
/* ------------ Section Focused ------------ */
.section-focused {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  width: 100%;
  padding: 6rem 6rem;
  background-color: var(--background);
  position: relative;
    word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
.focused-text {
  font-size: var(--font-48px-3rem);
  font-size: 2.5rem;
  font-weight: var(--font-weight-regular);
  color: var(--near-white);
  text-align: center;
  line-height: 1.5;
}

/* Empêche SplitType de couper les mots */
.focused-text{
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance; /* optionnel mais joli */
}

/* IMPORTANT : SplitType met une classe .word sur chaque mot */
.focused-text .word{
  white-space: nowrap;
}
.focused-text-gradient1 {
  color: #ff763d;
}
.focused-text-gradient2 {
  color: #ff6672;
}

/* ------------ Section About ------------ */
.section-about{
  padding: 6rem 0;
}

.about-wrapper{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6rem;
}

/* Card layout */
.about-card{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.25);
  overflow: visible; 
}

/* Photo */
.about-photo{
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}

.about-photo img{
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(1.05);
}

/* Text */
.about-title{
  margin: 0 0 1rem;
  color: var(--near-white);
}

.about-desc{
  margin: 0 0 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  max-width: 70ch;
}

/* ===== ABOUT TOOLS MARQUEE (dans la card) ===== */

/* important : permet les masques/overlays */
.about-card{ position: relative; }
.about-photo{ position: relative; z-index: 3; }
.about-content{
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.about-desc{ max-width: 100%; }

/* conteneur de la bande */
.about-tools{
  width: 100%;
  margin-top: 1.4rem;
  position: relative;
  overflow: hidden;   /* empêche tout débordement */
}

/* la bande */
.tools-marquee{
  width: 100%;
  max-width: 100%;
  overflow: hidden;

  border-radius: 1rem;
  padding: 16px 0;
  margin-right: 150px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(173, 67, 255, 0.07);

  position: relative;
}

/* défilement */
.tools-track{
  display: flex;
  align-items: center;
  gap: 40px;
  fill: rgba(214, 66, 255, 0.367);     /* couleur des logos */
  width: max-content;
  animation: toolsScroll 22s linear infinite;
}

.tools-track img{
  height: 34px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: transform .25s ease, opacity .25s ease, filter .25s ease;
}

.tools-track img:hover{
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px) scale(1.08);
}

@keyframes toolsScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===== FONDU SUR LES CÔTÉS ===== */
.tools-marquee::before,
.tools-marquee::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:80px;
  z-index:2;
  pointer-events:none;
}

/* ===== EFFET "ÇA PASSE SOUS LA PHOTO" ===== */
/* On ajoute un masque sur la gauche qui "mange" la bande sous la photo */
.about-tools::before{
  content:"";
  position: absolute;
  left: -20px;
  top: -20px;
  bottom: -20px;
  width: 180px;
  z-index: 4; /* au-dessus de la bande */

  pointer-events:none;
}

/* En mobile, on enlève le "sous la photo" car photo au-dessus */
@media (max-width: 1000px){
  .about-tools::before{ display:none; }
}

/* Button */
.about-actions{
  margin-top: 1.25rem;
}

.btn-cv{
  border: none;
  cursor: pointer;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  background: rgba(236,41,123,.18);
  border: 1px solid rgba(236,41,123,.35);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn-cv:hover{
  transform: translateY(-2px);
  background: rgba(236,41,123,.24);
  border-color: rgba(236,41,123,.55);
}

/* ===== MODAL ===== */
.cv-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cv-modal.is-open{
  display: block;
}

.cv-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}

.cv-modal-content{
  position: relative;
  width: min(1000px, 92vw);
  height: min(86vh, 820px);
  margin: 6vh auto 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(10,10,12,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 40px 140px rgba(0,0,0,.6);
}

.cv-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.cv-frame{
  width: 100%;
  height: 100%;
  border: none;
}



@media (max-width: 1000px){
  .about-wrapper{ padding: 0 2rem; }
  .about-card{ grid-template-columns: 1fr; }
  .about-photo img{ min-height: 280px; }
}
/* Section contact */
/* ===== CONTACT ===== */

.section-contact{
  padding: 6rem 0;
}

.contact-wrapper{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6rem;
}

.contact-head{
  margin-bottom: 2rem;
}

.contact-title{
  margin: 0 0 .75rem;
  color: var(--near-white);
}

.contact-subtitle{
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 70ch;
}

.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.contact-card{
  text-decoration: none;
  padding: 1.6rem;
  border-radius: 1.5rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  display: grid;
  gap: .85rem;
}

.contact-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,0.06);
}

.contact-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.contact-label{
  color: rgba(255,255,255,.70);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .78rem;
}

.contact-chip{
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}

.contact-value{
  color: var(--near-white);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-hint{
  color: rgba(255,255,255,.62);
}

@media (max-width: 1000px){
  .contact-wrapper{ padding: 0 2rem; }
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ------------ Section Footer ------------ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 6rem;
}
.footer-copy {
  color: var(--near-white);
  font-size: var(--font-14px-0_875rem);
  font-weight: var(--font-weight-regular);
  opacity: 0.7;
  text-align: center;
}

.footer-legals {
  color: var(--near-white);
  font-size: var(--font-14px-0_875rem);
  font-weight: var(--font-weight-regular);
  text-align: center;
  opacity: 0.7;
  text-decoration: none;
}
.footer-legals:hover {
  text-decoration: underline;
}

/* ===== SCROLL TO TOP ===== */

.scroll-top{
  position: fixed;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;

  color: rgba(255,255,255,.9);
  font-weight: 700;
  letter-spacing: .02em;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 15px 50px rgba(0,0,0,.35);

  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;

  transition: all .35s ease;
  z-index: 9999;
}

.scroll-top.show{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,0.10);
}

.scroll-top .arrow{
  font-size: 20px;
}

.scroll-top .label{
  font-size: .9rem;
}

/* Page réalisationdetails */
/* Realisation details */
.section-realisation-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6rem 6rem;
  margin-top: var(--navbar-height);
  background-color: var(--background);
  /* background-color: red; */
}

.realdetails-wrapper {
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.realdetails-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.realdetails-title {
  color: var(--near-white);
  font-size: var(--font-48px-3rem);
  font-weight: var(--font-weight-bold);
  text-align: left;
  line-height: 107%;
}
.realdetails-subtitle {
  color: var(--near-white);
  font-size: var(--font-20px-1_25rem);
  font-weight: var(--font-weight-regular);
  text-align: right;
  line-height: 107%;
  opacity: 0.8;
  max-width: 40ch;
}

.realdetails-img-cover {
  object-fit: cover;
  width: 100%;
  border-radius: 2rem;
  pointer-events: none;
}

.realdetails-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 4rem;
}

.realdetails-info-title {
  color: var(--near-white);
  font-size: var(--font-32px-2rem);
  font-weight: var(--font-weight-bold);
  text-align: left;
  line-height: 107%;
}

.realdetails-info-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  /* width: 100%; */
}
.realdetails-details-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  width: 450px;
}
.realdetails-details-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.realdetails-details-item-type {
  font-size: var(--font-16px-1rem);
  font-weight: var(--font-weight-bold);
  color: var(--near-white);
}
.realdetails-details-item-content {
  font-size: var(--font-16px-1rem);
  font-weight: var(--font-weight-regular);
  color: var(--near-white);
  opacity: 0.8;
  text-align: right;
  max-width: 20ch;
}

.realdetails-details-separator {
  width: 100%;
  height: 1px;
  background-color: var(--near-white);
  opacity: 0.2;
}

.realdetails-info-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.realdetails-about-text {
  color: var(--near-white);
  font-size: var(--font-16px-1rem);
  font-weight: var(--font-weight-regular);
  text-align: left;
  line-height: 1.5;
  max-width: 120ch;
  opacity: 0.8;
}

.realdetails-img-large {
  object-fit: cover;
  width: 100%;
  border-radius: 2rem;
  pointer-events: none;
}

.section-legals {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 6rem 6rem;
  background-color: var(--background);
  /* background-color: red; */
  margin-top: var(--navbar-height);
}

.legals-wrapper {
  gap: 2rem;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}
.legals-title {
  color: var(--near-white);
  font-size: var(--font-48px-3rem);
  font-weight: var(--font-weight-bold);
  text-align: left;
  line-height: 107%;
}

.legals-subtitle {
  color: var(--near-white);
  font-size: var(--font-24px-1_5rem);
  font-weight: var(--font-weight-bold);
  text-align: left;
  line-height: 107%;
}

.legals-text {
  color: var(--near-white);
  font-size: var(--font-16px-1rem);
  font-weight: var(--font-weight-regular);
  text-align: left;
  line-height: 1.5;
  max-width: 80ch;
  opacity: 0.8;
}

/* =========================
   RESPONSIVE (CLEAN)
========================= */

/* <= 1024px */
@media screen and (max-width: 1024px) {

  .section-hero,
  .section-projects,
  .section-focused,
  .section-about,
  .section-contact,
  .section-legals{
    padding: 6rem 4rem;
  }

  .realdetails-details-wrapper{ width: 100%; }

  .realdetails-info{
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
  }

  .realdetails-info-details{ width: 100%; }
}

/* On cache le curseur seulement sur vrais appareils tactiles */
@media (hover: none), (pointer: coarse){
  .custom-cursor{ display: none; }
}

/* <= 768px */
@media screen and (max-width: 768px) {

  .section-hero,
  .section-projects,
  .section-focused,
  .section-about,
  .section-contact,
  .section-legals{
    padding: 6rem 3rem;
  }

  .hero-title{ font-size: var(--font-80px-5rem); }
  .focused-text{ font-size: var(--font-32px-2rem); }

  /* ✅ Projets en 1 colonne seulement en mobile */
  .projects-wrapper{
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-realisation-details{
    padding: 6rem 3rem;
    align-items: flex-start;
    margin-top: 0;
  }

  .realdetails-subtitle{
    text-align: left;
    font-size: var(--font-16px-1rem);
  }

  .realdetails-info-title{
    text-align: left;
    font-size: var(--font-24px-1_5rem);
  }

  .realdetails-wrapper{ gap: 3rem; }

  .realdetails-top{
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .realdetails-title{ font-size: var(--font-32px-2rem); }

  .realdetails-info{
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
  }
}

/* <= 700px */
@media screen and (max-width: 700px){

  .navbar{
    top: max(12px, env(safe-area-inset-top));
    width: calc(100% - 28px);
    height: 68px;
  }

  .navlogo img{ height: 52px; }

  .navbar-menu{
    width: min(92vw, 320px);
  }

  .section-hero,
  .section-projects,
  .section-focused,
  .section-about,
  .section-contact,
  .section-realisation-details,
  .section-legals{
    padding: 6rem 2rem;
  }

  .hero-title{ font-size: var(--font-48px-3rem); }
  .hero-subtitle{ font-size: var(--font-16px-1rem); }

  .hero-light1{
    top: 2rem;
    transform: scale(2) translateX(10%) translateY(10%);
  }

  /* Projets toujours 1 colonne ici */
  .projects-wrapper{
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .focused-text{ font-size: var(--font-24px-1_5rem); }

  .contact-links{ flex-direction: column; }

  .footer{
    flex-direction: column;
    gap: 0rem;
    padding: 1.5rem 2rem;
  }
}
