#form_container
{
	background: rgba(0,0,0,0.5);	
	color:#fff;
	margin: 0;
	padding-bottom: 15px;
	position: relative;
	z-index:99;
	    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
@media only screen and (max-width: 900px) {
	#form_container {
	width: 60%;

}
}
@media only screen and (max-width: 780px) {
	#form_container {
	width: 85%;

}
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden !important;
    padding-top: 10%;

    background-color: #000;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    background-image: url("images/presentoir-2048.jpg");
}

/* Mobile / petits écrans */
@media (max-width: 600px) {
    body {
        background-image: url("images/presentoir-500.jpg");
    }
}
#form_container {
  position: relative;     /* plus absolute */
  margin: 40px auto;
  transform: none;        /* SUPPRIMÉ */
  left: auto;
  top: auto;
}

.upload-btn-wrapper 
{
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.upload-btn-wrapper input[type=file] 
{
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
.btn-dark
{
  position: relative;
  top: 10px;
}

/* ===================== */
/* ===== BANNIÈRE ====== */
/* ===================== */

.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__logo {
  position: absolute;
  left: 50%;
  top: 88%;
  transform: translate(-50%, -50%);
  width: 60%;
  z-index: 2;
}

.banner__text h1 {
  text-align: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 12vw;
  line-height: 0.8;
  margin: 1rem 0 0;
  letter-spacing: -0.06em;
}

.page-title h1 {
  text-align: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
font-size:  13vw;
line-height: 0.8;
  font-kerning: normal;
  margin: 
    clamp(2rem, 6vw, 4rem)
    0
    clamp(3rem, 7vw, 6rem);
	  margin-bottom: 0.25em;
	  letter-spacing: -0.1em;


}

.page-title h2 {
  text-align: center;
  color: #e4d5b7;
  font-family: 'Montserrat', sans-serif;
font-size:  4vw;
line-height: 0.4;
  letter-spacing: -0.04em;

  margin: 
    clamp(2rem, 6vw, 4rem)
    0
    clamp(3rem, 7vw, 6rem);
	  margin-top: 0;

}

/* ===================== */
/* ===== NAVBAR ======== */
/* ===================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.75rem 1rem;
  background-color: rgba(52, 55, 70, 0.2);
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  height: 100%;
	  transition: opacity 0.2s ease;

}
.nav-links a:hover {
  opacity: 0.75;
}


.social-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover .social-icon {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ===================== */
/* ===== BURGER ======== */
/* ===================== */

#burger-toggle {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1500;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
	  will-change: transform, opacity;

}

/* ===================== */
/* ===== MOBILE ======== */
/* ===================== */

@media (max-width: 768px) {
	
	
  .page-title h1 {
    font-size: clamp(4rem, 10vw, 6rem);
    line-height: 0.85;
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(1.2rem, 3vw, 2rem);

	  
  }
	

	
  .burger {
    display: flex;
  }

  #scrollTopBtn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    padding-top: 64px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));

    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;

    overflow-y: auto;
    box-sizing: border-box;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  #burger-toggle:checked + .burger + .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Burger ? croix */
  #burger-toggle:checked + .burger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #burger-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
  }

  #burger-toggle:checked + .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Animation liens */
  .nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  #burger-toggle:checked + .burger + .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Par défaut (mobile first) */
.nav-links {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Menu ouvert */
#burger-toggle:checked + .burger + .nav-links {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Desktop */
@media (min-width: 769px) {
  .nav-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    position: static;
  }
}