/*@import url('https://fonts.googleapis.com/css2?family=Silom&display=swap');*/

body {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Puis utilisez partout : */
h1, p, h2, .labelform, #myBtn, .dropdown-btn, .dropdown-content {
    font-family: "Inconsolata", monospace;
}

/* Container scrollable pour le contenu */
.scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 15;
}

/* Wrapper fixe pour les calques parallaxe */
.parallax-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* Corrections principales pour les calques parallaxe - Surdimensionnés pour éviter les bords */
.plan1 {
    background-image: url('/images/plan1.avif');
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: 7;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slidein 160s forwards infinite alternate;
}


.plan21 {
    background-image: url('/images/plan21.avif');
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    z-index: 6;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slidedown 380s forwards infinite alternate;
}

.plan22 {
    background-image: url('/images/plan22.avif');
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    z-index: 5;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    animation: slideup 220s forwards infinite alternate;
}

.fond {
    background-image: url('/images/fond.avif');
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    z-index: 4;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slidein 120s forwards infinite alternate;
}

.soleil {
    background-image: url('/images/soleil.gif');
    position: absolute;
   /* top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    z-index: 3;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(10px);
    animation: slidedown 120s forwards infinite alternate;*/
}

/* Contenu scrollable */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    outline: none;
}

main {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 100px 20px;
    margin: 50px auto;
    border-radius: 10px;
    min-height: 100vh;
}

.main2 {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 10px 20px;
    margin: 5px auto;
    border-radius: 10px;
    max-width: 1600px;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

li {
    position: relative;
}

divformclass {
    display: relative;
}

h1{
    font-size: 4em;
    margin-bottom: 10px;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 9;
}

h2{
    font-size: 4em;
    margin-bottom: 20px;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.labelform {
    font-size: 1em;
    display: grid;
    justify-self: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

p2 {
    font-size: 1em;
}

input[type="text"], input[type="password"], input[type="email"] {
    backdrop-filter: blur(10px);
    border: 1px solid;
    background: none;
    text-decoration: none;
    color: white;
    display: grid;
    justify-self: center;
    outline: none;
}

/*//MODAL//*/
#myBtn {
    font-size: 2em;
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
    background: none;
}

/* The Modal (background) */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 20;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: none;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    backdrop-filter: blur(10px);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: none;
    color: white;
}

.modal-body {
    padding: 2px 16px;
}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    opacity: 0.2;
    color: white;
}

/* Styles pour le dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.2);
    color: black;
    padding: 0.5rem 1rem;
    border: 1px solid;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    text-decoration: none;
    outline: none;
}

#btnheader.dropdown-btn{
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border: 1px solid;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    text-decoration: none;
    outline: none;}

.dropdown-btn:hover {
    background: rgba(0, 0, 0, .4);
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid;
    border-radius: 5px;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.dropdown-btn a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
    outline: none;
}

.dropdown-btn a:hover {
    text-decoration: none;
    background-color: black;
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    text-decoration: none;
    background-color: black;
    backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}
/* Animations corrigées pour éviter les bords visibles */
@keyframes slidein {
    0%, 100% {
        transform: translateX(0%) translateY(0%) scale(1);
        backdrop-filter: blur(8px);
        
    }
    50% {
        transform: translateX(-3%) translateY(-1%) scale(1.7);
        backdrop-filter: blur(18px);
    }
}

@keyframes slideup {
    0%, 100% {
        transform: translateX(0%) translateY(0%) scale(1);
    }
    50% {
        transform: translateX(2%) translateY(4%) scale(1.58);
    }
}

@keyframes slidedown {
    0%, 100% {
        transform: translateX(0%) translateY(0%) scale(1);
    }
    50% {
        transform: translateX(-2%) translateY(-3%) scale(1.62);
    }
}

/* Media queries pour une meilleure responsive - Dimensions encore plus grandes */
@media (max-width: 768px) {
    .plan1 {
        top: -30%;
        left: -30%;
        width: 150%;
        height: 150%;
    }
    
    .plan21 {
        top: -35%;
        left: -35%;
        width: 170%;
        height: 170%;
    }
    
    .plan22 {
        top: -40%;
        left: -40%;
        width: 180%;
        height: 180%;
    }
    
    .fond, .soleil {
        top: -35%;
        left: -35%;
        width: 170%;
        height: 170%;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    p {
        font-size: 1.5em;
    }
}
