* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    font-family: fredoka;
}
html, body {
    overflow-x:hidden

}

main{
    width: 1080px;
    margin: 0 auto;
}
img {
    width: 98%;
    height: 99%;
    object-fit: cover;
}

canvas {
    position: fixed;
    top: 30px;
    left: 0;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: #000000;
}
h1 {
    z-index: 10;
    text-align: center;
    font-size: 200px;
    font-weight: 400;
}

h2 {
    text-align: center;
    font-size: 2.5vw;
    font-weight: 400;
    line-height: 98%;
    z-index: 1;
}

p {
   font-size: 15px;
   font-weight: 500;
   line-height: 20px;
   text-align: left;
}

.model {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
  }

section {
    overflow:hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: -1;
}
.hero {
    height: 900px;
}
.hero h1{
    margin-bottom: 0.5em;
}

.hero h2{
    text-align: left;
    padding: 10px;
    font-size: 28px;
}
.ptit h1{
    font-size: 160px;
}
.filler{
    height: 200px;
}
.info{
    height: 1200px;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.info .tags {
    width: 1080px;
    font-size: 20px;
    left: auto;
    display: flex;
    justify-content: space-around;
}

.info h2 {
    text-align: center;
    font-size: 35px;
}

.info p {
    height: 200px;
    width: 60%;
    font-size: 18px;
    text-align: left;
}
.scanner{
    margin-top: 50px;
    height: 120vh;
}
.scan-info{
    position: absolute;
    padding: 2em;
    top: 0;
    left: 0;
}

.scan-container {
    position: absolute;
    padding: 2em;
    width: 600px;
    height: 400px;
    top: 10em;
    border: 1px solid black;
    border-radius: 0.5em;
}
.scan-container img {
    position: absolute;
    bottom: 1.5em;
    right: 1em;
    height: 150px;
    width: 150px;
    z-index: -1;
}
.qrcode {
    position: absolute;
    top: 15em;
    z-index: 1;
    left: 0;
    width: 200px;
    height: 200px;
}

.purchased {
    position: absolute;
    bottom: 15em;
    margin: auto;
    padding: 0.5em 4em;
    color: red;
    border: 1px solid red;
    border-radius: 2em;
}
.outro{
    height: 60vh;
}
.outro p {
    position: absolute;
    top: 0;
    width: 60%;
    text-align: left;
}   
.outro h2 {
    margin-top: 200px;
    width: 60%;
    text-align: center;
}

.lenis.lenis-smooth {
    scroll-behavior: hidden;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow:hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: auto;
}

#container {
    position: absolute;
    top:0;
    width: 99vw;
    z-index: -10;
}

.falling-object {
    position: absolute;
    z-index: -1;
}

.index {
    height: 600%;
}
.donnees{
    height: 350vh;
}
.contacttt{
    height: 200vh;
}
.galerieee{
    height: 400vh;
}

.partenairesss{
    height: 360vh;
}





      

        /* Palette LEGO */
        table.dataTable thead {
            background-color: #FF0000; /* Rouge LEGO */
            color: #fff;
        }

        table.dataTable tbody tr:nth-child(odd) {
            background-color: #FFD700; /* Jaune LEGO */
        }

        table.dataTable tbody tr:nth-child(even) {
            background-color: #00BFFF; /* Bleu LEGO */
        }

        table.dataTable tbody tr:hover {
            background-color: #32CD32; /* Vert LEGO (pour le survol) */
            color: #fff;
        }

        table.dataTable {
            border: 2px solid #000;
        }

        table.dataTable th,
        table.dataTable td {
            border: 1px solid #000;
        }

        .dataTables_filter {
            position: absolute;
            text-align: right;
        }
        .contact, .contacts, .galerie, .galeries, .partenaire {
            transition: transform 0.8s ease;
        }

        .titre_donnees {
            height: 800px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: transform 0.8s ease;
          }
          
          .titre_donnees h1, .titre_donnees h2 {
            transition: font-size 0.8s ease;
          }
          
          .titre_donnees.shrink {
            transform: translateY(-300px);
          }
          
          .titre_donnees.shrink h1{
            font-size: 50px;
          }
          .titre_donnees.shrink h2 {
            font-size: 35px;
          }
          .legotableau {
            transition: transform 0.8s ease;
        }
          
        /* Formulaire d'upload */

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input[type="file"] {
    margin: 50px;
    padding: 8px;
    padding-left: 170px;
    border: 2px dashed #4CAF50;
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}
input[type="file"]:hover {
    border-color: #45a049;
    padding: 30px 0 ;
    padding-left: 170px;
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #218838;
}

.hautlego {
    width: 600px;
    display: flex;
    justify-content: space-evenly;
}
.hautlego div{
    background-color: #bb3939;
    width: 150px;
    height: 50px;
    border-radius: 8px 8px 0 0;
}
/* Galerie d'images */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    margin-top: 20px;
    padding: 25px;
}

.gallery img {
    width: 300px !important;
    height: 300px !important;
    filter: grayscale(60%);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery img:hover {
    z-index: 2;
    transform: scale(1.1);
    filter: grayscale(0);
}


          .formulaire{
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 10px;
          }
          .form-container {
            color: rgb(255, 255, 255);
            background-color: #bb3939;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            width: 600px;
            margin-bottom: 10px;
        }
        .form-container label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-container input[type="text"],
        .form-container input[type="email"],
        .form-container textarea {
            width: 100%;
            padding: 8px;
            margin-bottom: 10px;
            border: 1px solid #990000;
            background-color: #ffc8c8;
            border-radius: 4px;
        }
        .form-container textarea {
            resize: vertical;
            height: 100px;
        }
        .form-container button {
            width: 100%;
            padding: 10px;
            background-color: #d80000;
            background-color: #990000;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .form-container button:hover {
            background-color: #218838;
        }
        .name-fields {
            display: flex;
            gap: 10px;
        }
        .name-fields div {
            flex: 1;
        }
        .mail {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        .message{
            font-weight: 800;
            width: 480px;
            line-height: 60px;
            font-size: xx-large;
        }

    .citation {
        text-transform: none;
        display: flex;
        justify-content: center;
    }
    .citation a{
        color: #990000;
        text-decoration: underline;
    }
    .citation div {
        width: 70%;
    }

    .formulaire .galerie {
        position: relative;
        width: 580px;
        height: 318px;
        background-color: #0030cf;
    }
    .formulaire.galerie label {
        text-align: center;
        font-size: 60px;
    }
    .envoyer{
        left:40%;
        position: absolute;
        bottom: 10px;
    }
    .hautlego.galerie div{
        background-color: #0030cf;
    }


.radio {
    display: flex;
    justify-content: space-around;
}
.radio label {
    font-weight: 500;
}
/** HEADER */
header {
    height: 5vh;
    width: 98%;
    margin: 0 auto;
    padding: 0;
    z-index: 10;
    position: relative;
}

header nav {
    position: static;
    display: flex;
    height: 5svh;
    width: 1080px;
    margin: 0 auto;
}

#title {
    font-size: calc(var(--font-size) + 0.5rem);
    color: var(--white);
}

header ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 98%;

    list-style: none;
}

header li a {
    text-decoration: none;
    font-weight: 400;
    color: var(--blackgrey1);
    font-size: calc(var(--font-size) * 0.9rem);
}

header .links {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    height: 98%;
    overflow: hidden;
}
header .effect_links {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

header .effect_links:nth-child(1):before {
    content: 'Accueil';
    font-weight: 400;
    color: var(--blackgrey1);
    font-size: calc(var(--font-size) * 0.9rem);
    position: absolute;
    transform: translateY(0px);
    transition: all .25s ease;
}
header .effect_links:nth-child(2):before {
    content: 'Données';
    font-weight: 400;
    color: var(--blackgrey1);
    font-size: calc(var(--font-size) * 0.9rem);
    position: absolute;
    transform: translateY(0px);
    transition: all .25s ease;
}
header .effect_links:nth-child(3):before {
    content: 'Galerie';
    font-weight: 400;
    color: var(--blackgrey1);
    font-size: calc(var(--font-size) * 0.9rem);
    position: absolute;
    transform: translateY(0px);
    transition: all .25s ease;
}
header .effect_links:nth-child(4):before {
    content: 'Contact';

    font-weight: 400;
    color: var(--blackgrey1);
    font-size: calc(var(--font-size) * 0.9rem);
    position: absolute;
    transform: translateY(0px);
    transition: all .25s ease;
}
header .effect_links:nth-child(5):before {
    content: 'Partenaires';
    font-weight: 400;
    color: var(--blackgrey1);
    font-size: calc(var(--font-size) * 0.9rem);
    position: absolute;
    transform: translateY(0px);
    transition: all .25s ease;
}

header .effect_links .active  {
    text-decoration: underline;
}

header .effect_links li {
    transform: translateY(20px);
    transition: all .25s ease;
}

header .effect_links:hover:before {
    transform: translateY(-20px); 
}

header .effect_links:hover li {
    transform: translateY(0);
}

.active    {
    text-decoration: underline;
    color: var(--white);
}

/** FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10em;
    z-index: 10;
} 

footer p {
    font-size: calc(var(--font-size));
    color: black;
}

footer a{
    color: #000000;
}


/** Partenaires */
.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    position: relative;
    z-index: 0;
  }
  
  .ligne {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    transition: all 1.5s ease-out;
  }
  .ligne:hover {
    line-height: 40px;
    transform: scale(1.1);
    letter-spacing: 2px;
  }
    .droite, .droite p{
    text-align: right;
  }
  
  .article {
    z-index: 1;
    position: relative;
    width: 540px;
    padding: 10px;
  }
  
  .article h3{
    color: #489aff
  }
  .article a:hover{
  text-decoration: underline;
  }
  a .article p{
    z-index: 1;
    text-decoration: none;
    color: #000000;
  
  }
  .aside {
    width: 300px;
    height: 300px;
  }
  
  .tete {
    width: 100%;
    border-radius: 50%;
  }
  
  .h1{
    margin-left: auto;
    margin-right: auto;
    font-size: 50px;
    text-shadow: #303 2px 2px 4px;
  }
  .pdf-titre {
    font-weight: 600;
    font-size: 100px;
    margin-bottom: 80px;
  }
  .pdf-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .pdf-item {
    width: 500px;
    height: 720px;
    perspective: 1000px;
  }
  
  .pdf-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
  }
  
  .pdf-item:hover .pdf-card {
    transform: rotateY(180deg);
  }
  
  .pdf-front,
  .pdf-back {
    border: #000 solid 1px;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow, 0px 4px 6px rgba(0, 0, 0, 0.1));
  }
  
  .pdf-front {
    background-color: #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
  }
  
  .pdf-back {
    background-color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .pdf-back embed {
    width: 90%;
    height: 90%;
    border-radius: 10px;
  }
  