/* Reset CSS global */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Définir le comportement du défilement */
html {
  scroll-behavior: smooth;
}

/* Style global du corps */
body {
   font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #FFFFFF;
}

/* Images responsives */
img {
  max-width: 100%;
  display: block;
}

/* Titres */
h1 {
  font-weight: 700;
  font-size: clamp(5rem, 4vw, 5rem); 
  color: #FFFFFF; 
  line-height: 1.2;
}

h2 {
  font-weight: 700;
  font-size: 3.5rem; 
  line-height: 1.2;
  margin: 100px 0;
}

h3 {
  font-weight: 500;
  font-size: 2rem; 
  line-height: 1.2;
}

p {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
}

li {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
}

/* En-tête */
header {
  display: flex;
}

.logo-header {
  width: auto;  
  max-width: 200px;  
  margin-bottom: 200px;
}

/* Sections générales */
section {
  padding: 80px 0;
  text-align: center;
}


/* Section Welcome */
#welcome {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#welcome .logo-header {
  position: absolute;
  top: 20px; 
  left: 50%;
  transform: translateX(-50%);
  max-width: 200px;
  width: auto;
  height: auto;
  z-index: 10;
}

/* Vidéos */
.video-wrapper iframe,
.video-wrapper video {
  max-width: 100%;
  max-height: 100%;
  border: none;
}

.video-wrapper {
	  aspect-ratio: 16 / 9;
	   overflow: hidden;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

#choix-style .video-wrapper {
  margin-top: 100px; 
  margin-bottom: 10px; 
}

.video-wrapper video {
  cursor: pointer;
}

#welcome h3 {
  margin-top: 20px;
  font-weight: 600;
  z-index: 1;
}

.download {
        margin: 20px 0;
    }
    .download a {
        display: inline-block;
        padding: 12px 18px;
        background: #111;
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
    }
    .download a:hover {
        background: #333;
    }
	
	
	
	#welcome-project.no-video {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#welcome-project.no-video .download {
  margin-top: 0;
}
	

/* Styles communs pour toutes les sections */
section #welcome, #choix-style, #contact {
  position: relative;
  overflow: hidden;
}

/* Dégradé animé */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  

  /* Dégradé approximatif */
  background: linear-gradient(90deg,
      #4368aa 0%,
      #0b3175 50%,
      #4320a5 100%);

  /* Animation du dégradé */
  background-size: 100% 100%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* zone de transition */
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(12,28,42,.2));
}

/* Animation */
@keyframes moveGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


#presentation, #faq {
  background: radial-gradient(circle at center, #ffffff 0%, #cfcde0 100%);
}

/* Mise en page de la présentation */
.presentation-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.presentation-left {
  text-align: left;
}

.presentation-left h2 {
  color: #2A338B;
  margin-bottom: 40px;
  width: 100%;
  height: auto;
}

.presentation-left p {
  color: #29293a;
  max-width: 500px;
}

/* Images de la présentation */
.presentation-right img {
  max-width: 520px;
}

.parallax-stack {
  position: relative;
  width: 100%;
  max-width: 700px;  
  height: 700px;
  margin: 0 auto;
  perspective: 1000px;
}

.parallax-stack img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.layer-back { z-index: 1; transform: scale(1.1);}
.layer-middle { z-index: 2; transform: scale(1.15);}
.layer-front { z-index: 3; transform: scale(1.2);}

#presentation h1 {
  margin-bottom: 50px;
}

#presentation .intro {
  max-width: 900px;
  font-size: 1.3rem;
  opacity: 0.85;
}

#welcome h2 {
  margin-bottom: 40px;
  color: #1F2157;
}



/* Choix de style */
#choix-style {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

#choix-style h2 {
  position: relative;
  color: #ffffff;
  text-shadow: 2px 5px 20px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom:50px;
}

.titre{margin:50px 0 100px 0;}

#choix-style p {
  color: #e5e5ff;
}

.choix-style-list li {
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: 14px 0;
}




/* Exemples de projets */
#exemples {
  display: grid;
  gap: 60px;
}



.caption-container {
  margin-top: 15px;    
  text-align: center;   
}

.caption {
  font-weight: 600;
  opacity: 1;
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0;
  padding: 5px 0;
}

/* FAQ */
/* Style général du conteneur FAQ */
/* Conteneur FAQ */
/* Conteneur FAQ */
#faq {
    margin: 0 auto;
    border-radius: 10px;
}

#faq h2 {
    text-align: center;
    color: #2A348F;
}

details {
    background: #FFFFFF;
    color: #1F2157;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 950px;
    margin: 0 auto 15px;
    padding: 0;
    box-sizing: border-box;
    display: block;
}

details:hover {
    background: #d2daf9;
    transform: scale(1.02);
	will-change: transform;
}

summary {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
    list-style: none;
    display: flex; /* Utilisation de flexbox */
    justify-content: space-between; /* Aligne le texte à gauche et la flèche à droite */
	 align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 20px 50px; /* Ajout d'un padding à gauche et à droite */
    box-sizing: border-box;
   text-align: left;
}
summary::after {
    content: "↓";
    font-size: 1.5rem;
    color: #392479;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: "↑";
    transform: rotate(180deg);
}

details p {
   margin: 10px 0 10px 0;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  padding: 0 50px 30px 50px;
  opacity: 70%;
}

details + details {
    margin-top: 10px;
}



/* Section à propos */
#about p {
  max-width: 600px;
  margin: 0 auto;
  color: #1F2157;
}

/* Contact */
#contact {
  position: relative; 
  padding: 100px 0;
  text-align: center;
  background: transparent;
  color: #fff;
}

#contact h2 {
  color: #fff;
  margin-bottom: 30px;
}

#contact h3 {
  color: #fff;
  margin: 90px 0 25px 0;
}

#contact h4 {
  color: #fff;
  margin: 20px 0 15px 0;
}

#contact form {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
  gap: 20px; /* Espace entre les éléments */
  justify-content: space-between; /* Espacement uniforme entre les éléments */
}

#contact label {
  color: #fff;
  display: block;
  margin-bottom: 5px;
}

#contact input, #contact textarea {
  color: #000;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 15px;
  flex: 1 1 100%; /
}

/* Alignement des deux premières lignes (Nom et Email) côte à côte */
#contact .input-container {
  display: flex;
  gap: 20px; /* Espace entre les champs */
  width: 100%; /* Assurer que le container prend toute la largeur */
}

#contact .input-container div {
  flex: 1 1 48%; /* Chaque champ prend environ 48% de la largeur (en laissant un espace de 4% entre les champs) */
}

/* Champ Sujet maintenant correctement aligné */
#contact .full-width-input {
  flex: 1 1 100%; /* Le champ "Sujet" prend toute la largeur */
}



/* Bouton */
#contact button {  
  color: #fff;
  padding: 14px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 100%; /* Le bouton prend toute la largeur disponible */
}

#contact button:hover {
  transform: translateY(2px);
  opacity: 0.7;
}

/* Champs de texte et autres éléments */
input, textarea {
  padding: 14px 16px;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: #1F2157;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

#welcome-project {
    padding: 50px 20px;
}

#welcome-project.no-video {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    max-width: 900px;
    margin: 20px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.video-title {
    text-align: center;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.download {
    text-align: center;
    margin: 30px 0;
}

.download a {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    background-color: #1F2157;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.download a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
	background-color:green;
}

.zip-filename {
    margin-top: 10px;
    font-size: 1rem;
    color: #ccc;
    word-break: break-all;
}

.access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
    font-size: 1.5rem;
    color: #fff;
    background: var(--main-bg-gradient); /* utilise ton fond actuel */
    padding: 20px;
}

.plus-encore {
    display: flex;             
    flex-direction: column;    
    align-items: center;       /* centre horizontalement le contenu */
    gap: 10px;                 
    margin: 80px 0;
}

.plus-encore h3 {
    margin: 50px 0;
    text-align: center;        /* titre centré */
}

.plus-encore ul {
    list-style: none;    /* supprime les puces */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;           /* ← espace entre chaque li, augmente à volonté */
}


.social-link {
    display: flex;               /* côte à côte */
    justify-content: center;     /* centré horizontalement */
    align-items: center;         /* alignement vertical */
    gap: 20px;                   /* espace entre les icônes */
    margin-top: 40px;
}

.social-link img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ==========================
   Style Interface Admin
   ========================== */

/* Conteneur général */
.admin-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background-color: #1A1F3B; /* légèrement plus clair que le fond */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* Titres */
.admin-container h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #FFFFFF;
	margin:10px 0 60px 0;
}

.admin-container h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #FFFFFF;
	margin-top:80px;
}

/* Formulaires */
.admin-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 5px;
}

.admin-container input[type="text"],
.admin-container input[type="password"],
.admin-container select,
.admin-container input[type="file"] {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background-color: #2A2F50;
    color: #FFFFFF;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.admin-container input:focus,
.admin-container select:focus {
    box-shadow: 0 0 10px #3F51B5;
}

/* Boutons */
.admin-container button {
    padding: 12px 20px;
    background-color: #3F51B5;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-container button:hover {
    background-color: #5C6BC0;
    transform: translateY(-2px);
}

/* Message d'alerte */
.admin-container p {
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
		text-align:left;
		
}

.admin-container a {
    color:white;
	opacity:0.8;

}

.admin-container p.success {
    background-color: #2E7D32;
    color: #fff;
}

.admin-container p.error {
    background-color: #C62828;
    color: #fff;
}

/* Select et file input */
.admin-container select {
    cursor: pointer;
}

.admin-container input[type="file"] {
    background-color: #2A2F50;
}

/* Wrapper pour le fichier + bouton */
.file-upload-wrapper {
    display: flex;
    flex-direction: column; /* mettre les éléments en colonne */
    align-items: center;    /* centrer horizontalement */
    gap: 10px;              /* espace entre les éléments */
    
}

.file-input {
    display: none; /* caché */
}

.btn-select, .btn-upload {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    color: white;
    background-color: #4b6cb7;
    transition: background 0.3s;
}

.btn-select:hover, .btn-upload:hover {
    background-color: #182848;
}

.file-name {
    font-style: italic;
    color: #555;
}

/* La section qui reçoit le shader */
#welcome,
#choix-style,
#contact,
#welcome-project,
#admin {
    position: relative;
    overflow: hidden;
    min-height: 100vh; /* ou au moins une hauteur stable */
}

section > * {
    position: relative;
    z-index: 1;
}


/* Status upload */
#status {
    margin-top: 10px;
    font-weight: 600;
    color: #FFF;
}

/* Déconnexion bouton */
form[action="deconnexion.php"] button {
    background-color: #C62828;
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 600;
}

form[action="deconnexion.php"] button:hover {
    background-color: #E53935;
    transform: translateY(-2px);
}


/* Page de login centrée */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center;     /* centre verticalement */
}

/* Carte du formulaire */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 30px 35px;
    border-radius: 10px;
}

/* Titre */
.login-title {
    text-align: center;
    margin-bottom: 25px;
	font-size:30px;
}

/* Message d’erreur */
.login-error {
    background: #ffe5e5;
    color: #b00020;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* Formulaire */
.login-form {
    display: flex;
    flex-direction: column;
}

/* Groupes label + input */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

/* Champs */
.form-group input {
    margin-top: 6px;
    padding: 10px;
    font-size: 14px;
}

/* Bouton */
.btn-submit {
    margin-top: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}



footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #FFFFFF;
  background-color:#071023;
}


@media (max-width: 768px) {
  section {
    padding: 70px 20px;
  }
  
  h2{margin:0 0 20px 0; font-size:2.5rem;}
  
  h3{font-size:1.2rem;}

  .logo-header {
    width: auto;  
    max-width: 100px; 
  }

  .presentation-columns {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .presentation-right {
    order: -1; 
    text-align: center;
  }

  .presentation-left {
    text-align: center;
  }

  .presentation-left p {
    margin: 0 auto;
  font-size:1rem;
  }

  .parallax-stack {
    max-width: 90vw;
    height: 90vw;
  }

  .layer-back,
  .layer-middle,
  .layer-front {
    transform: scale(1); 
  }

  .parallax-stack img {
    transform: scale(1);
    transition: none;
  }
  
  #choix-style .video-wrapper{margin: 50px 0 10px 0;}
  
  
  #contact .input-container {
    flex-direction: column; /* Les champs seront empilés sur les petits écrans */
  }

  #contact .input-container input {
    flex: 1 1 100%; /* Les champs prennent toute la largeur disponible */
  }

  #contact button {
    width: auto; /* Ajuste la largeur du bouton pour les petits écrans */
  }
    /* Réduire la taille du titre sur les petits écrans */

  
  /* Réduire la taille des détails pour s'adapter aux petits écrans */
  details {
    padding: 15px;
  }
  
  details p{padding: 10px 20px;}
  
  summary{padding: 10px 20px;}
  
  #faq h2{margin-bottom:80px;}
  
  .titre{margin:50px 25px;}
  
      .admin-container {
        margin: 20px;
        padding: 20px;
    }

    .admin-container h2 {
        font-size: 2rem;
    }

    .admin-container h3 {
        font-size: 1.5rem;
    }
}
  
}
}
