/* styles.css */
:root {
  --bg: #0E0E0E;
  --text: #d6d6d6;
  --muted: #999999;
  --btn: #EAEAEA;
  --btn-text: #111111;
  --accent: #00FFC1;
  --container: 1800px;
}

* {
  box-sizing: border-box
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  /* scroll fluide */
}


body {
  margin: 0;
  width: 100%;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #191f19;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #d6d6d6;


}
/* Bloquer le scroll pendant le loader */
body.loading {
  overflow: hidden;
  height: 100vh;
}

:where(h1) {
  margin-block: 0.67em;
  font-size: 2em;
}
/* Canvas grain */
#grain {
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
}
#loader {
  position: fixed;
  top:0; left:0;
  width:100vw;
  height:100vh;
  background: #191f19;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* espace entre centre et bas */
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  padding: 40px 0; /* espace top/bottom */
}

/* Wrapper central pour centrer verticalement initiales/titres */
.loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Initiales */
#loader span.initials {
  font-family: 'ClashDisplay-Bold', sans-serif;
  font-size: 10rem;
  color: #fff;
  letter-spacing: 0.1rem;
  opacity: 0.85;
  animation: pulse 1.5s infinite alternate;
  z-index: 1;
}

/* Titre */
#loader span.title {
  font-family: 'ClashDisplay-Light', sans-serif;
  font-size: 2.4rem;
  color: #ccc;
  opacity: 0.7;
  margin-top: -75px;
  z-index: 1;

}
@media (max-width: 768px) {
  #loader span.initials {
    font-size: 6rem;
  }

  #loader span.title {
    font-size: 1.5rem;
    margin-top: -45px;
  }
  #loader span.loading-text {
    position: relative;
    bottom: 60px
  }
}
/* Subtitle */
#loader span.subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 200;
  color: #ccc;
  margin-top: 0.6rem;
  opacity: 0.8;
  animation: pulseSubtitle 1.5s infinite alternate;
  z-index: 1;
}
/* Lien glassy spécifique */
.main-nav a.glass-link {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #c2c2c2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 8px 16px; /* même que les autres liens pour alignement */
}

/* Supprimer la ligne sous le texte pour le glassy */
.main-nav a.glass-link::after {
  content: none;
}

/* Optionnel hover léger */
.main-nav a.glass-link:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

/* Texte de chargement en bas */
#loader span.loading-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: #aaa;
  opacity: 0.7;
  z-index: 1;
}
#loader span.loading-text::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.5s steps(3,end) infinite;
}

/* Animations */
@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes pulseSubtitle {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* Fade out loader */
#loader.fadeOut {
  animation: fadeOut 0.8s forwards;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Contenu principal masqué au départ */
#mainContent {
  opacity: 0;
  transition: opacity 0.5s;
}

/* container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px
}

/* container */
.container2 {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px
}

.site-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.4s, border 0.4s;
  /* 🔹 Élimine toute couleur de fond */

  /* 🔹 Pas d’ombre ni de contour visible */
  box-shadow: none;
  border: none;
}

@media (max-width: 660px) {
  .site-header {
    padding: 0 20px;
    background: rgba(39, 39, 39, 0.45);
    backdrop-filter: blur(15px);
    height: 80px;


  }
}
#dynamic-word {
  display: inline-block;
  /* évite le wrapping automatique */
  white-space: nowrap;
  /* force à rester sur une seule ligne */
  line-height: 1;
  /* réduit l’espacement vertical */
  position: relative;
  transition: opacity 0.6s, transform 0.6s;
}

.fade-out {

  opacity: 0;
  transform: translateY(-20px);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}



/* calques de reflets statiques */

.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

/* Pop-up glassy */
.form-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  min-width: 300px;
  max-width: 90%;
}

/* Bouton OK */
.form-popup .btn-glass {
  margin-top: 20px;
  padding: 10px 25px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}

.form-popup .btn-glass:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Classes pour afficher le pop-up */
.form-overlay.show {
  opacity: 1;
  visibility: visible;
}

.form-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}



.site-header .logo,
.site-header .main-nav a{
  position: relative;
  z-index: 2;
}




.header-inner {
  display: flex;
  align-items: center;
  /* vertical centré */
  justify-content: space-between;
  /* logo à gauche, nav à droite */
  width: 100%;
  height: 100%;
  padding: 0 0px;
  position: relative;
}

.logo {
  font-weight: 1000;
  letter-spacing: 1px;
  text-align: left;
  text-align: center;
  /* important */
  font-family: 'ClashDisplay-Bold', sans-serif;
  font-size: 40px;
}

.main-nav {
  display: flex;
  gap: 24px;
  /* espace entre les liens */
  text-align: right;
  /* important */
}


@font-face {
  font-family: 'sacramento';
  src: url('fonts/sacramento.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.main-nav a {
  display: inline-flex; /* pour aligner verticalement le texte */
  align-items: center;  /* centrer le contenu verticalement */
  padding: 8px 6px;    /* padding uniforme pour tous */
  font-size: 14px;
  text-decoration: none;
  color: white;
  position: relative;
  transition: color 0.3s ease;

}

/* ligne sous le texte */
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  /* juste sous le texte */
  width: 0;
  /* départ : invisible */
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: width 0.35s ease;
}

/* au survol */
.main-nav a:hover::after {
  width: 100%;
  /* s’adapte automatiquement à la largeur du texte */
  color: white;
}

/* --- Cacher le menu et bouton sur desktop --- */
.menu-btn,
.mobile-menu {
  display: none;
}



/* --- Styles menu mobile --- */
@media (max-width: 660px) {
  /* Bouton centré horizontalement et ancré a droite*/
  .menu-btn {
    display: block;
    opacity: 1;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 12px;
    color: #d6d6d6;
    border-radius: 5px;
    margin-left: auto; /* pousse à droite */
    z-index: 1000;
    position: relative; /* pas besoin de top/left, reste dans l’axe du header */

  }


  /* Menu centré dans le header */
  .mobile-menu {
    padding-top: 30px;
    padding-bottom: 10px;
    padding-left: 13px;
    padding-right: 13px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 75px; /* juste en dessous du header */
    right: -38px;
    transform: translateX(-50%) translateY(-20px);
    border-radius: 8px;
    opacity: 0;
    background: rgba(39, 39, 39, 0.45);
    backdrop-filter: blur(15px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
  }

  .mobile-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);

  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    margin: 5px 0;
    font-size: 14px;
    text-align: center;
  }

  .mobile-menu a:hover {
    text-decoration: underline;
  }

  /* Cacher la nav principale sur mobile */
  .main-nav {
    display: none;
  }
}



.portfolio-btn {
  text-decoration: none;
  /* supprime le soulignement */
  position: relative;
  display: inline-block;
  /* nécessaire pour que la ligne suive la taille du texte */
  padding: 8px 0;
  /* top/bottom padding */
  transition: color 0.3s ease;
  color: white;
  /* on cache le curseur classique */
  font-size: 20px;

}

/* ligne sous le texte */
.portfolio-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  /* juste sous le texte */
  width: 0;
  /* départ : invisible */
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: width 0.35s ease;
}

.menu-btn {
  text-decoration: none;
  /* supprime le soulignement */
  position: relative;
  display: inline-block;
  /* nécessaire pour que la ligne suive la taille du texte */
  padding: 15px 0;
  /* top/bottom padding */
  transition: color 0.3s ease;
  color: #d6d6d6;
  /* on cache le curseur classique */
  font-size: 18px;

}

/* au survol */
.portfolio-btn:hover::after {
  width: 100%;
  /* s’adapte automatiquement à la largeur du texte */
  color: white;
}

html {
  scroll-behavior: smooth;
}


/* HERO — plein écran et centré */
.hero {
  position: relative;
  height: 250vh;
  /* 🔥 pleine hauteur */
  width: 100%;
  display: flex;
  align-items: center;
  /* centre verticalement */
  justify-content: center;
  /* centre horizontalement */
  text-align: center;
  padding-bottom: 150vh;
  overflow: hidden;
}

.hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* remplissage vidéo */
  z-index: 0;
}

.main-container {
  position: relative;
  padding-top: 40px;
  width: 100%;
  z-index: 1;
  background: #191f19;
  backdrop-filter: blur(5px);

}


.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 0;
}

.hero-content {
  position: fixed;
  /* reste toujours à l'écran */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* centre horizontal + vertical */
  z-index: 2;
  text-align: center;
  color: var(--text, white);
  width: 100%;
  padding: 0 20px;
  will-change: transform, opacity, filter;
  transform: translateZ(0);
  /* active le GPU pour éviter les blocages */
}

/* ajustement du titre, sous-titre et bouton */
.hero-title {
  font-family: 'ClashDisplay-Bold', sans-serif;
  font-weight: 700;
  /* bien gras 💪 */

  letter-spacing: 2px;
  font-size: clamp(20px, 10vw, 70px);
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.8s ease;
  overflow: hidden;
  /* empêche le texte de sortir du conteneur */
  text-overflow: ellipsis;
}

.hero-content.in-view .hero-title {
  opacity: 1;
  transform: scale(1.05) translateY(0);
  transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.8s ease;
}


.hero-sub {
  font-family: "Inter", serif;
  font-weight: 0;
  font-size: 30px;
  line-height: 0.8;
  opacity: 0;
  transform: translateY(20px);
  transition: all 2s ease;
}

.hero-sub2 {
  font-family: "Inter", serif;
  font-weight: 200;
  opacity: 0;
  transform: translateY(20px);
  transition: all 2s ease;
  z-index: 5;
  font-size: 14px;
  line-height: 0.3;
  margin: 20px;
}

.btn-light {
  margin-top: 40px;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.5s ease;
}

/* animation déclenchée via IntersectionObserver */
[data-animate].in-view .hero-title,
[data-animate].in-view .hero-sub,
[data-animate].in-view .hero-sub2,
[data-animate].in-view .about-grid,
[data-animate].in-view .btn-light {
  opacity: 1;
  transform: none;
}


@media (max-width:640px) {
  .hero {
    height: 100vh;
    /* toujours pleine hauteur */
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(36px, 9vw, 64px);
  }

  .hero-sub {
    font-size: 16px;
  }
}

.btn-glass {
  display: inline-block;
  margin-top: 7px;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 12px;
  font-weight: 200;
  font-family: "Inter", serif;
  color: #c2c2c2;
  /* texte blanc */
  background: rgba(255, 255, 255, 0.10);
  /* verre clair */
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: none;
  /* plus de contour */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.35s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* bord léger blanc */
}

/* hover */
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
  transform: scale(1.04);
  color: #111111;
}


.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 26px;
  transition: all .45s
}


.btn-light:hover {
  transform: translateY(0) scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35)
}

/* reveal animation when in view */
[data-animate].in-view .hero-title,
[data-animate].in-view .hero-sub,
[data-animate].in-view .btn-light {
  opacity: 1;
  transform: none;
}

/* image fixe derrière le contenu */
#services .bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  /* plus grand pour mouvement */
  background-image: url('assets/images/bg1.webp');
  padding-top: 20px;
  padding-bottom: 20px;
  background-size: cover;
  background-position: center;
  transform: translateY(0px);
  transition: transform 0.1s;
  z-index: -1;
  filter: brightness(0.5);
  /* assombrit et booste les couleurs */
}
.bg-image2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* plus grand pour mouvement */
  background-image: url('assets/images/bg2.webp');
  padding-top: 20px;
  padding-bottom: 20px;
  background-size: cover;
  background-position: 50% 72%;
  transform: translateY(0px);
  transition: transform 0.1s;
  z-index: -1;
  filter: brightness(0.3);
  /* assombrit et booste les couleurs */
}



.section {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  z-index: 100;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.section2 {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  z-index: 100;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 50px;
  margin-bottom: 50px;
}

.textsize {
  width: 70%;
  align-items: center;
  margin: auto;

}

.textsize2 {
  padding-top: 40px;
  width: 70%;
  align-items: center;
  margin: auto;
  padding-bottom: 60px;
}

/* Adaptation mobile */
@media (max-width: 1080px) {
  .textsize {
    width: 90%;
    /* Presque toute la largeur */

  }

  .textsize2 {
    width: 90%;
    /* Presque toute la largeur */

  }
}

.section-nav {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

/* Texte à gauche */
.layout-left {
  justify-content: flex-start;
  text-align: left;
}

/* Texte à droite */
.layout-right {
  justify-content: flex-end;
  text-align: right;
}

.nav-dot {
  width: 0.5px;
  height: 0.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  box-sizing: content-box;
  transition: all 0.3s ease;
  position: relative;
}

@media (max-width: 768px) {
  .nav-dot {
    display: none;
  }
}

.nav-dot.active {
  height: 15px;
  width: 0.5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 1);
}

.nav-dot::before {
  content: attr(data-title);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 10px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
  pointer-events: auto;
}



.section-title {
  font-family: "EB Garamond", serif;
  font-size: 55px;
  font-weight: lighter;
  letter-spacing: 0.6;
  margin-top: 0px;
  margin-bottom: 20px;
}

.section-title2 {
  font-family: "EB Garamond", serif;
  font-size: 55px;
  font-weight: lighter;
  letter-spacing: 0.6;
  margin-top: 60px;
  margin-bottom: 40px;
}


/* Effet d’apparition au scroll */

.section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-img.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section2.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-divider {
  width: 15%;
  /* largeur de 30% de la page */
  height: 2px;
  /* hauteur fine */
  background-color: rgba(100, 100, 100, 0.3);
  /* couleur blanche subtile */
  margin: auto;
  margin-top: 100px;
  margin-bottom: 100px;
  /* centrée avec un peu d’espace autour */
  border-radius: 2px;
  /* bords légèrement arrondis */
}
.section-divider2 {
  width: 15%;
  /* largeur de 30% de la page */
  height: 2px;
  /* hauteur fine */
  /* couleur blanche subtile */
  margin: auto;
  margin-top: 30px;
  margin-bottom: 100px;
  /* centrée avec un peu d’espace autour */
  border-radius: 2px;
  /* bords légèrement arrondis */
}
.section-divider3 {
  width: 15%;
  /* largeur de 30% de la page */
  height: 2px;
  /* hauteur fine */
  /* couleur blanche subtile */
  margin: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  /* centrée avec un peu d’espace autour */
  border-radius: 2px;
  /* bords légèrement arrondis */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4rem 0;
}

.carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  cursor: pointer;
  height: 380px;
  flex: 0 0 300px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.card-info {
  text-align: center;
  color: white;
}

.card-info h3 {
  font-size: 20px;
  margin-bottom: 4px;
  font-weight: 500;
}

.card-info p {
  font-size: 15px;
  color: #ccc;
  line-height: 0.4;
}

/* Hover effect */
.card:hover img {
  transform: scale(1.08);
}

.card:hover .card-overlay {
  opacity: 1;
}

/* Overlay permanent sur mobile */
.always-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 60px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  z-index: 10;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile layout */
@media (max-width:768px) {
  .carousel {
    flex-direction: column;
    gap: 20px;
  }

  .card {
    flex: 1 0 auto;
    height: 300px;
  }

  .carousel-btn {
    display: none;
  }
    /* Overlay toujours visible sur mobile */
  .card-overlay {
    opacity: 1 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transform: translateY(0) !important;
  }
}

/* --- OVERLAY --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 19998;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* --- POPUP --- */
.portfolio-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 92%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translate(-50%, -50%) scale(.96);
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all .28s cubic-bezier(.2, .9, .2, 1);
  z-index: 19999;
  color: #fff;
  padding-bottom: 40px;
}

.portfolio-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

#popupClose {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0px solid rgba(114, 114, 114, 0.3);
  background: rgba(58, 58, 58, 0.4);
  color: white;
  font-size: 22px;
  font-weight: 300;
  display: flex;
  /* ✅ Centre parfaitement le "X" */
  align-items: center;
  /* ✅ Vertical */
  justify-content: center;
  /* ✅ Horizontal */
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  z-index: 9999;
  /* au-dessus de tout */
}

#popupClose:hover {
  background: rgba(2, 2, 2, 0.4);
  transform: scale(1.1);
}


/* --- Image principale --- */
#portfolioPopup img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  margin-top: 00px;
  /* espace sous la croix */
  position: relative;
}

/* --- Encart glassy sur l’image --- */
.popup-header {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 12px;
  color: #fff;
}

.popup-header h3 {
  font-size: 22px;
  margin: 0;
}

.popup-header p {
  font-size: 15px;
  margin: 4px 0 0;
  color: #ccc;
}

/* --- Contenu général --- */
.popup-content {
  padding: 24px 30px;
}

.popup-content hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

/* --- Vidéo --- */
#popupVideo {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 12px;
  display: block;
}

/* --- Description --- */
#popupDesc {
  font-size: 16px;
  line-height: 1.7;
  color: #ddd;
  margin-top: 10px;
}

/* --- Scroll bloqué quand pop-up ouvert --- */
body.popup-open {
  overflow: hidden;
}


/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center
}

.about-left img {
  width: 80%;
  border-radius: 15px;
  display: block;
  overflow: hidden;
  filter: brightness(0.8) saturate(0.9);

}

.lead {
  font-size: 18px;
  color: var(--text);
  margin-top: 10px
}

.signature {
  margin-top: 18px;
  font-weight: 600
}

.script {
  font-family: "bellair", cursive;
  font-size: 45px
}


form label {
  display: block;
  margin-bottom: 14px
}

form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted)
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
  transition: box-shadow .3s
}

input:focus,
textarea:focus {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.08)
}

.form-msg {
  margin-top: 12px;
  color: var(--accent)
}

/* footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background-color: #191f19;
  margin-top: 70px;
  text-align: center;

}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.site-footer .footer-logo {
  font-weight: 500;
  font-size: 16px;
}

.footer-menu a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: #858585;
}

.footer-contact p {
  margin: 5px 0;
  color: #fff;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}



/* Socials */
.socials {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.socials a svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.socials a:hover {
  transform: translateY(-4px);
}
/* Socials */
.socials-footer {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.socials-footer a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.socials-footer a svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.socials-footer a:hover {
  transform: translateY(-4px);
}
/* Responsive */
@media (max-width: 980px) and (min-width: 676px) {
  .socials {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 675px) {
  .socials {
    display: none;
  }
}


/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto
}

.lightbox .content {
  max-width: 90%;
  max-height: 80%
}

.contact-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap; /* permet de passer à la ligne quand l'espace manque */
}
/* Formulaire et infos prennent chacun toute la largeur si écran < 768px */
@media (max-width: 1030px) {
  .contact-form,
  .contact-info {
    flex: 1 1 100%; /* largeur complète */
    padding: 1.5rem; /* réduit un peu le padding pour mobile */
  }
}

.divider {
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.contact-info {
  flex: 1 1 200px;
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.contact-form {
  flex: 1 1 600px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.contact-form .form-intro {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #fff;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: #fff;
}

select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(34, 34, 34, 0.8);
  color: rgba(0, 0, 0, 0.2);
  outline: none;
  appearance: none;
  /* supprime le style natif du navigateur */
  transition: box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

/* Focus style identique aux inputs */
select:focus {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Optionnel : flèche minimaliste à droite */
select::-ms-expand {
  display: none;
  /* IE/Edge */
}

.select-wrapper select {
  background: rgba(34, 34, 34, 0.8);
  /* fond noir semi-transparent */
  color: #999999;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.select-wrapper select option {
  background: rgba(34, 34, 34, 0.8);
  /* fond des options */
  color: var--(muted);
  /* texte des options */
}

/* Focus style identique aux autres champs */
.select-wrapper select:focus {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-info .info-item {
  margin-bottom: 0.8rem;
  color: #fff;
}

.contact-info .info-item a {
  color: #fff;
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

  .glassy-social {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column; /* texte au-dessus, icônes en dessous */
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 16px;
  }
  .glassy-social.hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
  }
  .glassy-social .icons {
    display: flex;
    justify-content: center;
    gap: 14px;
  }

  .glassy-social a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .glassy-social a:hover {
    transform: translateY(-3px);
  }

  .glassy-social svg {
    width: 22px;
    height: 22px;
    color: white;
  }

  @media (max-width: 480px) {
    .glassy-social {
      right: 10px;
      bottom: 10px;
      padding: 10px 14px;
      border-radius: 12px;
      gap: 6px;
    }
    .glassy-social .label {
      font-size: 11px;
    }
    .glassy-social a {
      width: 36px;
      height: 36px;
    }
    .glassy-social svg {
      width: 20px;
      height: 20px;
    }
  }


/* En dessous de 675px : masquer complètement */
@media (max-width: 675px) {
  .glassy-social {
    display: none !important;
  }
}

/* responsiveness */
@media (max-width:980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {
  .main-nav {
    display: none
  }

  .hero {
    height: 70vh
  }

  .grid {
    grid-template-columns: 1fr
  }
}