

/* CORPS */
*, ::before,::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    background-color: #C6B3B7;
    margin: 0;
    font-family: 'policeTexte';
    color: #3D4D5D;
} 

main{
    padding-top: 90px;
}

/* TITRES*/

h1{
    padding-top: 200px;
    font-size: 80px;
    font-family: 'policeH1';
    color: white;
    padding-top: 130px;
}

h2{
    font-family: 'policeTitre';
    font-size: 55px;
}

h3{
    font-family: 'policeTitre';
    font-size: 45px;
}

h4{
    font-family: 'policeTitre';
    font-size: 35px;
    padding: 10px;
    letter-spacing: 2px;
}

.grosTitre{
    text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    padding: 30px;
}

.titre {
    position: relative;
    font-weight: 300;
    margin-bottom: 40px;
    color: #3D4D5D;
    text-align: center;
    letter-spacing: 3px;
}

.titre span {
    position: absolute;
    left: 0;
    right: 0;
    top:-90%;
    text-align: center;
    opacity: 0.2;
    font-weight: 700;
    z-index: 0;
    font-size: 131px;
    padding: 5px;
}

/* EN TETE */

/* MENU */
nav{
    top:0;
    position: fixed;
    z-index: 50;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background-color: #d7c9cc;
    box-shadow: inset 0 -1px 0 #3D4D5D;
}

.nav-icon{
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
}

.nav-icon span {
    font-size: 25px;
    margin-left: 10px;
    font-weight: 400;
    color: #3D4D5D;
}

.nav-icon img {
    width: 40px;
    transform: rotate(-17deg) translateX(5px);
}

.hamburger{
    display: none;
}

.navlinks-container a{
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color:#414141;
    display: inline-block;
    position: relative;
}

.navlinks-container a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: #3D4D5D;
    transition: transform 0.3s ease-out;
}

.navlinks-container a:hover::after {
    transform: rotateX(1);
}

@media (max-width:900px) {
    nav{
        padding: 15px 20px;
        position: relative;
    }

    .nav-icon{
        order: 2;
        margin: 0 auto;
    }

    .main-navlinks{
        order: 1;

    }

    .nav-icon span {
        font-size: 22px;
    }

    /* HAMBURGER */

    .hamburger {
        width: 20px;
        height: 20px;
        cursor: pointer;
        border: none;
        display: flex;
        background: #d7c9cc;
        align-items: center;
        position: relative;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #3D4D5D;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s 0.15s ease-out;
    }

    .hamburger span:nth-child(1),.hamburger span:nth-child(3){
        transition: transform 0.3s ease-out;
    }

    .hamburger span:nth-child(1){
        transform: translateY(7px);
    }

    .hamburger span:nth-child(2){
        transform: translateY(-7px);   
    }

    .hamburger.open span:nth-child(1){
        transform: translate(0) rotate(135deg);
    }

    .hamburger.open span:nth-child(2){
        opacity: 0;
        transition: opacity 0 ease-out;
    }

    .hamburger.open span:nth-child(3){
        transform: translate(0) rotate(-135deg);
    }

    .navlinks-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        background: #d7c9cc;
        top: 100%;
        left: 0;
        height: 100vh;
        padding: 15PX 50px 15px 20px;
        border-right: 1px solid #3D4D5D;
        transform: translate(-100%); 
        transition: transform 0.3s ease-out;
    }

    .open{
        transform: translate(0%);
    }

    .navlinks-container a{
        font-size: 18px;
        margin: 10px 0;
    }
}

@media (max-width:500px) {
    .nav-icon img {
        width: 30px;
    }

    .nav-icon span{
        font-size: 20px;
    }
}


/* BODY */

/* PROJET UNIVERSITAIRE */
.univ{
    margin: 30px;
}

.container{
    position: relative;
    width: 100%;
    margin: 150px auto;
    padding:20px
}

.container.filtre {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.container button{
    padding: 10px 20px;
    font-size: 14px;
    background-color: #C6B3B7;
    color: #3D4D5D;
    border: 2px solid #3D4D5D;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(0,0,0,2);
    border-radius: 7px;
    cursor: pointer;
}

.container button:hover{
    color: green;
    border: 2px solid green;
}

.container button.active {
    background-color: #3D4D5D;
    color: #C6B3B7;
}

.question {
    font-size: 22px;
}

.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.card {
    flex-basis: 300px;
    height: 500px;
    background-color: #3D4D5D;
    color: #C6B3B7;
    padding: 3px;
    border-radius: 8px;
    transition:transform .1s;
}

.card:hover{
    cursor:pointer;
    transform:scale(1.05);
}

.card img {
    width: 100%;
    height: 210px; 
    object-fit: cover;
    border: 2px solid #C6B3B7;
}

.card-content{
    padding: 20px;
}

.card-content h4{
    margin-bottom: 0.5em;
    font-weight: 700;
}

.card-content button{
    font-size: 12px;
    margin: 10px;
}

.card.hide{
    display: none;
}

.popup_container {
    display: none;
}

.popup_container1.active, 
.popup_container2.active,
.popup_container3.active,
.popup_container4.active,
.popup_container5.active,
.popup_container6.active,
.popup_container7.active,
.popup_container8.active,
.popup_container9.active,
.popup_container10.active,
.popup_container11.active,
.popup_container12.active
{
    top: 0;
    left: 0;
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
}

.popup {
    display: none;
}

.popup.active {
    display: block;
    padding: 10px;
    border-radius: 10px;
    width: 65%;
    height: fit-content;
    background-color: #C6B3B7;
}


.titre_popup{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
}

.titre_popup img {
    width: 90px;
    height: 90px;
}

.description_heading {
    font-size: 40px;
    letter-spacing: 5px;
    text-align: center;
}

.description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.description b {
    font-weight: bolder;
}

@keyframes animationA {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}
   

/*----------FOOTER----------- */

footer{
    border-top: 5px dashed #3D4D5D ;
    color: #3D4D5D;
    padding: 30px 80px;
}

.footer-top{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 50px;
    justify-items: center;
    margin: 0 auto 80px auto;
}

.footer-col {
    width: max-content;
}

.footer-col > * {
    display: block;
    width: max-content;
}

.footer-col > h3{
    margin-bottom: 20px;
}

.footer-col a{
    padding: 5px 0;
}

.footer-col img{
    width: 30px;
    padding-right: 6px;
}
.footer-middle{
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.footer-middle h3{
    margin-bottom: 10px;
}

.footer-middle a{
    width: 300px;
    height: 60px;
    margin: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    color: #3D4D5D;
    z-index: 0;
    border: 2px solid #3D4D5D;
    border-radius: 6px;
    background: #C6B3B7;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-middle a::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3D4D5D;
    border-radius: 50% 50% 0% 0%;
    z-index: -1;
    transition: all .5s;
}

.footer-middle a:hover::before{
    top: 0px;
    border-radius: 0;
}

.footer-middle a:hover {
    background: transparent;
}

a,a:visited,a:active{
    text-decoration: none;
    color:inherit;
    transition: all 0.2s ease;
}

a:hover{
    color: white;
}

.reseau {
    display: flex;
    justify-content: center;
    align-items: center;
    
}