/* ===== APPLICABLE PARTOUT ===== */
/* ===== COULEURS DE BASE + TRANSITIONS ===== */
:root{
    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}




/* ==== ANIMATIONS + VARIABLES ANIMATIONS ==== */
@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes spin{
    from{
        --angle: 0deg;
    }
    to{
        --angle: 360deg;
    }
}



.home{
    /* ==== POSITIONNEMENT PAGE WEB COMPARÉ A LA SIDEBAR ==== */
    position: relative;
    box-sizing: border-box;
    height: 100vh;
    width: calc(100% - 330px);
    left: 330px;
    transition: var(--tran-05);
    line-height: 25px;
}

my-sidebar.close ~ .home{
    width: calc(100% - 88px);
    left: 88px;
}



/* ==== TITRES / CENTRAGE / MARGES ==== */
.title_1{
    text-align: center;
    margin-bottom: 100px;
    margin-top: 10px;
}
.title{
    text-align: center;
    margin-bottom: 100px;
    margin-top: 10px;
}
.title_2{
    margin-top: 80px;
    margin-bottom: 25px;
}
.title_3{
    margin-top: 40px;
    margin-bottom: 20px;
}
.center{
    text-align: center;
}

.margin_sidebar{
    margin-left: 25px;
}
.margin-top{
    margin-top: 15px;
}

a{
    color: red;
}


/* ==== IMAGES ==== */
.logo{
    min-height: 23px;
    max-height: 35px;
    width: 40px;
    object-fit: cover;
    margin: 10px;
    transition: var(--tran-03);
}
.logo_small{
    min-height: 15px;
    min-width: 15px;
    max-width: 25px;
    max-height: 25px;
    margin: 10px;
    transition: var(--tran-03);
}
.logo:hover,
.logo_small:hover{
    cursor: pointer;
    transform: scale(1.15);
}

.home .image{
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.profile_img{
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: var(--tran-05);
    cursor: pointer;
    object-fit: cover;
}
.profile_img:hover{
    transform: scale(1.1);
    border: 2px solid rgb(0, 238, 255);
}

.image_2{
    width: 250px;
    height: 250px;
    margin: 10px;
    object-fit: cover;
    border: 2px solid black;

}




/* ==== CSS GRID ==== */

/* grid avec bordure animée */
.container{
    display: grid;
    grid-template-columns: repeat(2, 50%);
    grid-template-rows:  repeat(5, 500px);
    justify-items: center;
    align-items: center;
}

.grid-item-div{
    position: relative;
    width: 95%;
    height: 95%;
    border-radius: 40px;
    background-color: black;
    transition: var(--tran-05);
}

.grid-item-div:hover::after, .grid-item-div:hover::before{
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(var(--angle), transparent 60%, rgb(255, 0, 0));
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -10;
    padding: 3px;
    border-radius: 42px;
    animation: 9s spin linear infinite;
}
.grid-item-div::before{
    filter: blur(1.5rem);
}

.grid-item-img{
    border-radius: 25px;
}

/* Grid 60% 40% (texte à gauche + image à droite) */
.container2{
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 300px 400px;
    justify-items: center;
    align-items: center;
}
.grid-item-div2{
    display: grid;
    border-radius: 25px;
    width: 90%;
    height: 85%;
    justify-content: center;
    align-items: center;
    transition: var(--tran-03);
    object-fit: cover;
}



/* ==== HOVER ==== */
.hover_border_grow:hover{
    border: 2px solid red;
    transform: scale(1.05);
}
.hover_grow:hover{
    transform: scale(1.05);
}

/* ==== EXEPTIONS ==== */
ul{
    margin-top: 20px;
    margin-bottom: 20px;
}
.no_decoration{
    list-style-type: none;
}



.blue, .orange, .purple{
    font-weight: 650;
}
.blue{
    color: rgb(23, 197, 209);
}
.orange{
    color: rgb(230, 134, 10);
}
.purple{
    color: rgb(212, 0, 255);
}

/* ==== SPECIFIQUE A LA PAGE "à propos de l'auteur" ==== */
.image_text{
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* ====  SPÉCIFIQUE AUX PAGES WEB POWERLIFTEURS/EUSES SUISSE & FRANCAIS ====*/
.grid_container_profiles{
position: relative;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
justify-items: center;
align-content: center;
max-width: 98%;
row-gap: 25px;
}

.P1_2025_FR, .P2_2025_FR, .P3_2025_FR, 
.P1, .P2, .P3{
    background-color: rgba(241, 43, 43, 0.5);
    width: 95%;
    height: 350px;
    border-radius: 25px;
    box-shadow: 0px 0px 10px rgb(199, 50, 50);
    transition: var(--tran-02);

    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: 25% 55% 20%;
    justify-items: center;
    align-items: center;
}
.P1_2025:hover, .P2_2025:hover, .P3_2025:hover, .P1:hover, .P2:hover, .P3_hover{
    transform: scale(1.02);
}

.sp1_5{
    grid-column: span 1.5fr;
}

.sp2{
    grid-column: span 2;
}
.sp3{
    grid-column: span 3;
}

.white{
    color: rgba(230, 253, 255, 0.973);
    font-weight: 500;
}
strong{
    color: rgba(158, 216, 231, 0.918);
}

.container-flag-text{
    display: flex;
    justify-content: center;
    align-items: center;
}


.background-video{
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.background-video video{
    transition: var(--tran-03);
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    max-width: 120%;
    max-height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}



fieldset{
    margin-top: 50px;
    padding: 40px;
    border-radius: 25px;
    border: solid 2px red;
    transition: var(--tran-03);
}
fieldset:hover{
    border: solid 2px orange;
    transform: scale(1.02);
}
.center_form{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

form{
    max-width: 1200px;
    min-width: 1000px;
    transition: var(--tran-05);
}
.title_form{
    padding: 10px;
}
.input-form{
    margin-bottom: 30px;
    padding: 15px;
    width: 100%;
    outline: none;
    border: 1px solid rgb(182, 182, 182);
    border-radius: 15px;
}

.submit-btn{
    background-color: red;
    border: solid 2px red;
    border-radius: 15px;
    transition: var(--tran-02);
}
.submit-btn:hover{
    background-color: rgb(255, 174, 0);
    border: solid 2px rgb(255, 174, 0);
    transform: scale(1.03);

}

.container-maquette{
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1.5fr));;
    justify-items: center;
    align-items: center;
    gap: 20px;
}

.container-maquette img{
    max-width: 600px;
    width: 400px;
    border-radius: 40px;
    margin: 30px;
}

.padding-content{
    padding: 10px;
    margin-left: 30px;
    margin-right: 30px;
}

.content{
    position: relative;
    border: solid 1px red;
    margin: 40px;
    border-radius: 40px;
    padding: 30px;
    transition: var(--tran-03);
}

.content img{
    transition: var(--tran-03);
}




.container2{
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 300px 400px;
    justify-items: center;
    align-items: center;
    transition: var(--tran-04);
}
.grid-item-div2{
    display: grid;
    border-radius: 25px;
    width: 90%;
    height: 85%;
    justify-content: center;
    align-items: center;
    transition: var(--tran-03);
    object-fit: cover;
}



/* RESPONSIVE DESING */
@media screen and (max-width: 768px){
body{
    font-size: 13px
}


/* === PAGE ACCUEIL === */
.container{
    grid-template-columns: 90%;
    grid-template-rows: repeat(6, 1fr);
}
.grid-item-img{
    object-fit: cover;
    width: 80%;
    height: 80%;
    margin: 20px;
}

.container .grid-item-div{
    margin: 20px;
    padding: 10px 20px 20px 20px
}


/* === PAGE THEORIE POWERLIFTING */
    .content img{
        width: 80%;
        height: 80%;
    }
    .container-maquette{
    grid-template-columns: repeat(auto-fit, minmax(200px, 600px));;
    }

/* === PAGE POWERLIFTEURS FRANCAIS / MONDIAUX */
    .grid_container_profiles{
        grid-template-columns: repeat(auto-fit, minmax(200px, 500px));
        max-width: 93%;
    }
    .grid_container_profiles .profile_img{
        height: 100px;
        width: 100px
    }
    .grid_container_profiles .social_media .logo{
        width: 20px;
        height: 20px;
        transition: var(--tran-05);
    }
    .P1{
        padding: 5px;
    }

/* === PAGE DE CONTACT === */
form{
    max-width: 768px;
    min-width: 300px;
}

/* === PAGE A PROPOS DE L'AUTEUR === */
.container2{
     grid-template-columns: 1fr;
     grid-template-rows: repeat(4, 300px);
    }
.grid-item-div2{
    margin: 15px 0;
    }

}