body {
    margin-bottom: 100px;
}

.carreGrossant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

details {
    width: 80%;
    max-width: 600px;
    background-color: rgb(207, 244, 255);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(38, 4, 94, 0.192);
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

details:hover {
    box-shadow: 0 6px 12px rgba(109, 19, 117, 0.15);
}

summary {
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    color: #4158d0;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    float: right;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
}

p {
    padding: 10px;
    line-height: 1.6;
    color: #666;
}

.grid {
    display: flex;
    /* Utilisation de flexbox pour aligner les éléments */
    justify-content: center;
    /* Centrer les éléments horizontalement */
    gap: 10px;
    /* Espace entre les éléments */
    padding: 20px;
}

.grid div {
    border-radius: 10%;
    width: 100px;
    height: 100px;
    background-color: rgba(rgb(102, 245, 250), rgb(0, 255, 242), rgb(0, 217, 255), 0.3);
    /* Couleur de fond par défaut */
    transition: transform 0.3s ease, background-color 0.3s ease;
    /* Transition pour la transformation et la couleur */
}

.left {
    background-color: #ff0000;
    /* Couleur spécifique pour le div de gauche */
}

.center {
    background-color: #15ff00;
    /* Couleur spécifique pour le div du centre */
}

.right {
    background-color: #3700ff;
    /* Couleur spécifique pour le div de droite */
}

/* Effet de survol */
.grid div:hover {
    transform: scale(1.2);
    /* Grossit l'élément */
    background-color: #fffb00;
    /* Change la couleur de fond au survol */
    cursor: pointer;
}

.Le-cercle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.Le-cercle .cercle {
    display: block;
    margin: 0 auto;
    width: 45vh;
    height: 45vh;
    background:
        linear-gradient(black, black) padding-box,
        linear-gradient(to right, blue, red) border-box;
    border: 2vw solid transparent;
    border-radius: 50%;
}

.phrase-lien {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: #333;
    margin: 20px;
}

.phrase-lien .lien {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    margin: 0 5px;
}

.phrase-lien .lien:hover {
    color: #0055aa;
    text-shadow: 0 0 5px rgba(0, 119, 204, 0.5);
}

.moon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transform: rotate(180deg);
}

.moon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: red;
    position: absolute;
    top: 0;
    left: 0;
    transition: background-color 0.3s;
}

.mask {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    /* Même couleur que ton fond de page */
    position: absolute;
    top: 0;
    left: 15px;
    /* décale pour créer le croissant */
    pointer-events: none;
    /* Ne bloque pas le hover */
}

.moon-wrapper:hover .moon {
    background-color: yellow;
}

.grosButt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grosButt .btn {
    display: block;
    margin: 0 auto;
    width: 390px;
    height: 120px;
    font-size: 3.3em;
    cursor: pointer;
    background-color: #171717;
    color: #fff;
    border: none;
    border-radius: 15px;
    transition: all 0.4s;
}

.grosButt .btn:hover {
    border-radius: 15px;
    transform: translateY(-30px);
    box-shadow:
        0 21px 0 -6px #f85959,
        0 45px 0 -12px #39a2db,
        0 48px 30px -12px rgba(57, 162, 219, 0.5);
}

.grosButt .btn:active {
    transition: all 0.2s;
    transform: translateY(-15px);
    box-shadow:
        0 6px 0 -6px #f85959,
        0 24px 0 -12px #39a2db,
        0 36px 30px -9px rgba(57, 162, 219, 0.5);
}

/* Conteneur parent */
#container-personn {
    display: flex;
}

#person {
    margin-top: 100px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: gray;
    position: absolute;
    /* important */
    top: 20px;
    /* marge depuis le haut */
    right: 20px;
    /* marge depuis la droite */
    cursor: pointer;
}

#person::after {
    content: "";
    position: absolute;
    height: 20px;
    width: 40px;
    background-color: gray;
    top: 22px;
    left: -10px;
    border-radius: 50% 50% 0 0;
}

.PPI {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.PPI-img {
    display: block;
    margin: 0 auto;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    object-fit: cover;
    background: #dfdfdf;
    max-width: 100%;
    border: 3px solid #4CAF50;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.file-input-container {
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 20px;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-file-upload:hover {
    background-color: #45a049;
}

label {
    font-size: 1.2em;
    margin: 10px 0;
}

#pub-banner {
    background-color: rgb(255, 255, 128);
    color: #000;
    font-family: 'Arial Black', sans-serif;
    padding: 10px 0;
    border-bottom: 3px solid #eed359;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#pub-banner h1 {
    margin: 0;
    padding: 0;
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.loginEx {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.input-data {
    display: block;
    margin: 0 auto;
    height: 50px;
    width: 250px;
    position: relative;
    margin-bottom: 30px;
}

.input-data input {
    caret-color: #D64933;
    height: 100%;
    width: 100%;
    border: none;
    font-size: 17px;
    border-bottom: 2px solid #ccc;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-data input:focus {
    border-bottom: 2px solid #4158d0;
}

.input-data input:focus~label,
.input-data input:valid~label {
    transform: translateY(-25px);
    font-size: 14px;
    color: #4158d0;
}

.input-data label {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-data .underline {
    position: absolute;
    height: 2px;
    width: 100%;
    bottom: 0;
}

.input-data .underline::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background: #4158d0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.input-data input:focus~.underline::before,
.input-data input:valid~.underline::before {
    transform: scaleX(1);
}

.container {
    text-align: center;
}

.demo__text {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-wrapper {
    position: relative;
    display: inline-block;
}

.password-input {
    display: block;
    margin: 0 auto;
    position: relative;
    width: 300px;
    padding: 12px 40px 12px 12px;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 5px;
    background: #111;
    color: #fff;
    outline: none;
    letter-spacing: 2px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #00ffcc;
}

.container-pwd {
    display: block;
    margin: 0 auto;
    position: relative;
}

.eye {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    position: relative;
    overflow: hidden;
    border: 2px solid #000;
    margin-left: 10px;
    cursor: pointer;
}

.pupil {
    width: 12px;
    height: 12px;
    background: black;
    border-radius: 50%;
    position: absolute;
    top: 14px;
    left: 14px;
    transition: 0.1s linear;
}

.eyelid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #000;
    z-index: 2;
    transition: height 0.3s ease;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 1rem;
}

select {
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.container-pwi {
    width: 300px;
    height: 200px;
    resize: both;
    overflow: hidden;
    border: 2px dashed #333;
    background: white;
    position: relative;
}

.container-pwi img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* valeur par défaut */
    transition: 0.2s;
}

small {
    font-size: 0.9rem;
    color: #555;
}

h2 {
    color: #4c9292;
}

.highlight {
    color: #4ea0f2;
}

.box-container {
    border: 1px solid #333;
    margin: 20px 0;
    padding: 10px;
}

.box {
    background: linear-gradient(135deg, #ffb300, #ff9800);
    padding: 20px;
    margin-bottom: 10px;
    width: 100px;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Transformations */
.box1 {
    transform: perspective(500px) rotateY(45deg);
}

.box2 {
    transform: perspective(500px) translateY(8px) rotateY(45deg);
}

.box3 {
    transform: perspective(500px) scale(0.7) rotateY(45deg);
}

.box4 {
    transform: matrix3d(0.6, 0.1, 0.7, 0,
            -0.5, 0.8, 0.1, 0,
            -0.6, -0.5, 0.5, 0,
            0, 0, 0, 1);
}

.code {
    color: #4ea0f2;
    font-family: monospace;
}

/* ANIMATIONS ON HOVER */
.box1:hover {
    transform: perspective(500px) rotateY(0deg);
}

.box2:hover {
    transform: perspective(500px) translateY(0px) rotateY(0deg);
}

.box3:hover {
    transform: perspective(500px) scale(1) rotateY(0deg);
}

.box4:hover {
    transform: matrix3d(1, 0, 0, 0,
            0, 1, 0, 0,
            0, 0, 1, 0,
            0, 0, 0, 1);
}

/* Smooth animation */
.box {
    transition: transform 0.5s ease;
    cursor: pointer;
}

body {
    background-size: 100% 100%;
    animation: BgAnimation 20s ease-in-out infinite;
}

@keyframes BgAnimation {
    0% {
        background-image: url("./ress/Movies/bg1.jpg");
    }

    30% {
        background-image: url("./ress/Movies/bg2.jpg");
    }

    60% {
        background-image: url("./ress/Movies/bg3.jpg");
    }

    75% {
        background-image: url("./ress/Movies/bg4.jpg");
    }

    100% {
        background-image: url("./ress/Movies/bg1.jpg");
    }
}

.pwi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.T3D8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.otherWebsite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    body {
        margin-bottom: 100px;
        padding: 0 10px;
    }

    details {
        width: 95%;
        padding: 15px;
    }

    summary {
        font-size: 1em;
    }

    .grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .grid div {
        width: 80px;
        height: 80px;
    }

    .Le-cercle .cercle {
        width: 80vw;
        height: 80vw;
        border: 3vw solid transparent;
    }

    .phrase-lien {
        font-size: 16px;
        text-align: center;
    }

    .moon-wrapper,
    .moon,
    .mask {
        width: 60px;
        height: 60px;
    }

    .mask {
        left: 10px;
    }

    .grosButt .btn {
        width: 90%;
        height: 100px;
        font-size: 2em;
    }

    #person {
        width: 16px;
        height: 16px;
        top: 15px;
        right: 15px;
    }

    #person::after {
        height: 16px;
        width: 32px;
        top: 18px;
        left: -8px;
    }

    .PPI-img {
        height: 120px;
        width: 120px;
    }

    .custom-file-upload {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    #pub-banner {
        font-size: 1.2rem;
        text-align: center;
    }

    .input-data {
        width: 90%;
    }

    .input-data input {
        font-size: 1em;
    }

    label {
        font-size: 1em;
    }
}

