@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Caprasimo&family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --gold: #b19148;
    --pink: #a46d91;
    --dark_blue: #3c3e54;
    --red: #ac3d4e;
    --light_gray: #ececee;
    --gray: #777987;
    --maxw: 1000px;
    --light_red: #f8ebed;
    --light_gold: #f9f5ee;
    --light_pink: #f7f2f5;
    --highlight: #D2A7C3;
}



/* GENERAL */


*{
    font-family: 'Poppins', 'Comic sans ms'; list-style-type: none; box-sizing: border-box;
    color: var(--dark_blue);
}

::selection {
  background: var(--highlight);
}



html, body{
    margin: 0; padding: 0;
}

body{
    display: flex; flex-direction: column; overflow-x: hidden; position: relative;
}



/* NAVBAR */


nav{
    position: sticky; top: 0;  left: 0; width: 100%; height: 90px; background-color: var(--red);
    z-index: 1000; transition: .3s; display: flex; flex-direction: row; align-items: center;
    justify-content: space-between;
}

nav.scrolled{
    height: 70px;
}

nav.scrolled::before{
    height: 70px; opacity: 25%;
}

#logo_nav{
    background-image: url('Images/LOGO_projet_GATE.jpg'); background-repeat: no-repeat;
    margin: 0 10px; aspect-ratio: 147/118; height: calc(100% - 20px); background-position: center;
    background-size: contain; border-radius: 10px;
}

nav ul{
    display: flex; flex-direction: row; margin: 0 20px;
}

nav ul li{
    padding: 10px 15px; border-radius: 4px; cursor: pointer; margin: 0 4px; font-size: 16px;
    text-transform: uppercase; background-color: transparent; position: relative; font-weight: bold;
    min-width: 100px; text-align: center; color: var(--light_gray); display: flex; align-items: center;
    justify-content: center;
}

nav ul span{
    margin-right: 5px; color: inherit; font-size: 16px;
}

nav ul li::before{
    content: ''; position: absolute; bottom: 0; left: 15px;
    width: 20px; height: 3px; background-color: var(--gold);
    transition: .3s ease;
}

nav ul li:hover::before{
    width: 100%;
	left: 0;
}

nav ul li:hover{
    color: var(--gold); transition: .3s ease;
}

#hamburger{
    display: none; flex-direction: row; margin: 0 20px; border: none; background-color: var(--light_gray);
    color: var(--red); height: 50px; align-items: center; justify-content: center; padding-right: 10px;
    font-size: 26px; border-radius: 10px; cursor: pointer; font-family: 'Poppins';
}

#hamburger span{
    background-color: inherit; color: inherit; font-size: 35px; margin-right: 5px;
}

#menu_opened{
    z-index: 1000; position: fixed; top: 70px; padding: 0; width: 100%;
}

#menu_opened ul{
    background-color: var(--red); overflow: hidden; max-height: 0; transition: .3s; 
    padding: 0; margin: 0; overflow-y: auto;
}

section#menu_opened ul.opened{
    max-height: 400px; padding: 0 0 5px 0;
}

#menu_opened li{
    color: var(--light_gray); padding: 10px 15px; background-color: var(--red); opacity: 0;
    margin: 2px 30px; border-radius: 5px; cursor: pointer; text-align: center; transition: .3s;
    transform: translateY(30px);
}

#menu_opened li:hover{
    background-color: var(--pink);
}

#menu_opened li:active{
    background-color: var(--light_gold); color: var(--red); transition: 0;
}

section#menu_opened ul.opened li{
    transform: translateY(0px); opacity: 1;
}

#menu_icon, #hamburger.opened #close_icon{
    display: flex;
}

#hamburger.opened #menu_icon, #close_icon{
    display: none;
}




/* HEADER */

#lignes_titres{
    display: flex; flex-direction: column; align-items: left;
    justify-content: center; margin: 0 50px;
}

#lignes_titres *{
    opacity: 0; margin: 0; padding: 0;
    text-shadow:
  -1px -1px 4px rgba(0, 0, 0, .8),
   1px -1px 4px rgba(0, 0, 0, .8),
  -1px  1px 4px rgba(0, 0, 0, .8),
   1px  1px 4px rgba(0, 0, 0, .8);
   font-weight: bold;
}

.fade{
    animation: fadeIn 1s ease forwards;
}

header{
    height: 500px; width: 100vw; display: flex; position: relative;
    background-image: url("Images/play4.jpg"); background-position: center; background-repeat: no-repeat;
    background-size: cover; align-items: center; justify-content: left;
    border-bottom: 10px solid var(--red);
}

header::before{
    position: absolute; content: ''; width: 100%; height: 100%;
    background-color: rgba(50, 50, 50, .5); z-index: 0; backdrop-filter: blur(3px);
}

#titres{
    display: flex; align-items: center; justify-content: space-between; flex-direction: row;
    opacity: 1; margin-top: 25px; width: 100%;
}

#logo_main{
    width: 175px; height: 175px; margin: 0 40px; backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, .2); background-size: contain;
    background-image: url("Images/Pieuvre.png"); aspect-ratio: 1; border-radius: 20px;
    background-position: center; background-repeat: no-repeat;
    animation: animer ease-in-out infinite 2s;
}

#titres h1{
    font-size: 75px; font-family: "Pacifico", Cursive; font-weight: 900;
    animation-delay: 0.2s; letter-spacing: 1px; color: var(--red);
}

#lignes_titres p{
    width: 450px; min-width: 120px; font-size: 15px; font-style: italic;
    animation-delay: 0.7s; margin: 15px 0 10px 0; color: var(--gold);
}

#lignes_titres h3{
    font-size: 20px; color: var(--pink);
    animation-delay: 1s; font-family: 'Archivo Black'; font-weight: normal;
}

@keyframes open{
    from{
        height: 175px; opacity: 0; transform: scale(0, 1) translate(200px);
    }
    to{
        height: 175px; opacity: 1; transform: scale(1, 1) translate(0px);
    }
}

@keyframes animer{
    0%{
        transform: translateY(3px);
    }
    50%{
        transform: translateY(-3px);
    }
    100%{
        transform: translateY(3px);
    }
}





/* MAIN */

main{
    display: flex; flex-direction: column; align-items: center;
}

main h1{
    width: 100%; max-width: var(--maxw); margin: 0; padding: 75px 15px 15px; font-size: 34px;
    font-family: "Caprasimo"; margin-top: 20px; color: var(--pink); z-index: 0;
}


/* Qui */

#qui{
    width: 100%; background-color: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; position: relative; overflow: hidden;
}

#qui::before{
    content: ''; position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 1;
    background-image: url('Images/Pieuvre.png'); background-position: center; background-repeat: no-repeat;
    background-size: contain; transform: rotate(15deg) translateX(150px); z-index: 0;
    opacity: .12; max-width: 700px; max-height: 700px;
}

#qui_container{
    padding: 25px 15px 100px; display: flex; flex-direction: row; align-items: center;
    width: 100%; justify-content: center; max-width: calc(var(--maxw) + 30px); z-index: 0;
}

#qui_container article{
    border-radius: 5px; border: 1.5px dashed var(--dark_blue); backdrop-filter: blur(0px);
    padding: 8px 25px; flex: 5; opacity: 0;
}

#qui_container article:hover{
    transition: ease 1s; backdrop-filter: blur(5px);
}

#qui_container article:nth-child(1){
    flex: 8;
}

#qui_container article:nth-child(2){
    animation-delay: .4s; margin: 0 25px; flex: 6;
}

#qui_container article:nth-child(3){
    animation-delay: .8s;
}

#qui_container h2{
    font-size: 20px; font: "Caprasimo"; font-weight: 600; width: 100%; text-align: center;
    border-bottom: 1px solid var(--gray); padding-bottom: 5px; color: var(--red);
}

#qui_container p{
    text-align: center; font-size: 14px;
}



/* Objectifs */

#objectifs{
    background-color: #fafafa; width: 100%; position: relative; z-index: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden;
}

#objectifs::before{
    content: ''; position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 1;
    background-image: url('Images/cible.png'); background-position: center; background-repeat: no-repeat;
    background-size: contain; transform: rotate(0deg) translateX(-150px); z-index: 0;
    opacity: .12; max-width: 700px; max-height: 700px;
}

#objectifs_container{
    width: 100%; max-width: calc(var(--maxw) + 30px); display: flex; flex-direction: row; padding: 0 15px;
    margin: 30px 0 80px; z-index: 0; align-items: stretch; justify-content: space-between;
}

.obj_item{
    border-radius: 25px; border: 1px solid rgba(60, 62, 84, .06); flex: 1; opacity: 0; overflow: hidden;
    display: flex; flex-direction: column; margin: 0; padding: 0; align-items: center; justify-content: right;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .1); background-color: #fff; transition: ease .5s;
}

.obj_item:nth-child(1){
    animation-delay: .8s;
}

.obj_item:nth-child(2){
    animation-delay: .4s;
    margin: 0 25px;
}

.obj_item div{
    background-image: var(--img); background-position: center; background-repeat: no-repeat;
    background-size: cover; width: 100%; height: 150px; background-color: var(--light_red);
    padding: 0;
}

.obj_item:nth-child(1) div{
    background-size: contain;
}

.obj_txt{
    width: 100%; padding: 10px 15px 20px 15px; margin: 0; background-color: #fff;
    height: calc(100% - 150px); font-size: 14px; text-align: center; display: flex; align-items: center;
}

.obj_item:hover{
    box-shadow: 3px 3px 15px rgba(0, 0, 0, .2); transition: ease .5s;
}



/* Images */

#images{
    background-color: #fff; width: 100%; justify-content: center; position: relative;
    display: flex; flex-direction: column; align-items: center;
    overflow: hidden;
}

#images::before{
    content: ''; position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 1;
    background-image: url('Images/LOGO_CAM_2.png'); background-position: center; background-repeat: no-repeat;
    background-size: contain; transform: rotate(15deg) translateX(150px); z-index: 0;
    opacity: .12; max-width: 700px; max-height: 700px;
}

/* #images ul{
    display: grid; grid-auto-rows: minmax(100px, auto); width: 100%; max-width: var(--maxw);
    grid-template-columns: repeat(5, 1fr); grid-gap: 10px; padding: 0;
}

.elem_image{
    grid-column: var(--col); grid-row: var(--row); height: 100%; aspect-ratio: 1;
    background-image: var(--img); background-position: center; background-size: cover;
    background-repeat: no-repeat; cursor: pointer; opacity: 0; background-color: var(--light_red);
} */


#images ul{
    display: flex; flex-wrap: wrap; width: 100%; max-width: calc(var(--maxw) + 10px);
    padding: 0; justify-content: center;
}

.elem_image{
    height: 150px; aspect-ratio: 1; background-image: var(--img); background-position: center;
    background-size: cover; background-repeat: no-repeat; cursor: pointer;
    opacity: 0; background-color: var(--light_red); margin: 5px; box-shadow: 1px 1px 5px rgba(0, 0, 0, .3);
}


/* Membres */

#membres{
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    width: 100%; background-color: #fafafa; position: relative;
    overflow: hidden;
}

#membres::before{
    content: ''; position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 1;
    background-image: url('Images/LOGO_MEMBRES.png'); background-position: center; background-repeat: no-repeat;
    background-size: contain; transform: rotate(-15deg) translateX(-150px); z-index: 0;
    opacity: .12; max-width: 700px; max-height: 700px;
}

#membres_container{
    width: 100%; max-width: var(--maxw); padding: 30px 0 20px 0; display: flex;
    flex-direction: row; overflow: hidden; white-space: nowrap; opacity: 0;
}

#membres_container ul{
    animation: 20s carousel infinite linear; display: flex; padding: 0; margin: 0;;
}

#membres_container:hover ul{
    animation-play-state: paused;
}

#membres_container li{
    height: 260px;
    margin: 0 6px;
    width: 180px;
    /* layer a subtle translucent surface above the photo to create glass effect */
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
      var(--img);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 28px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.03);
    backdrop-filter: blur(4px) saturate(50%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    transition: transform .25s ease, box-shadow .25s ease, opacity .2s;
    cursor: pointer;
}

/* lift a bit on hover for a lively effect */
#membres_container li:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 44px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* bottom band for the role/function - readable over the image */
#membres_container li::before{
    content: var(--fonction);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    /* dark gradient to ensure text contrast */
    background: linear-gradient(180deg, rgba(60,62,84,0.0), rgba(60,62,84,0.4));
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* name badge in the top-left, using a soft glass chip */
#membres_container li::after{
    content: var(--pseudo);
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    color: var(--dark_blue);
    font-size: 15px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* small-screen adjustments keep glass look readable */
@media only screen and (max-width: 900px){
    #membres_container li{
        height: 200px;
        width: 140px;
        border-radius: 12px;
    }
    #membres_container li::after{
        font-size: 13px;
        padding: 5px 8px;
    }
    #membres_container li::before{
        font-size: 13px;
        padding: 10px 8px;
    }
}

@keyframes carousel{
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}


/* Jeux */

#jeux{
    display: flex; align-items: center; justify-content: center; width: 100%;
    background-color: white;
}

#jeux article{
    width: 100%; max-width: var(--maxw); display: flex; align-items: center;
    justify-content: center; flex-direction: column; padding: 75px 0;
}

#jeux h3{
    font-size: 30px; font-family: "Pacifico"; color: var(--red); letter-spacing: 1px;
}

#jeux button{
    font-size: 16px; display: flex; align-items: center; cursor: pointer;
    justify-content: center; color: white; border: 2px solid var(--pink);
    background-color: var(--pink); padding: 15px 35px; border-radius: 50px;
    font-weight: bold; letter-spacing: 1px; transition: ease .3s; flex-direction: row;
    justify-content: center;
}

#jeux button:hover{
    letter-spacing: 3px; background-color: white; color: var(--pink); font-size: 18px;
    text-decoration: underline;
}

#jeux span{
    color: inherit; margin-left: 8px; font-size: 20px;
}


/* pop up IMAGE */

#photo{
    position: fixed; width: 100vw; height: 100vh; background-color: rgba(15, 15, 21, .8); top: 0; left: 0; z-index: 1010;
    align-items: center; justify-content: center; display: none;
}

#photo img{
    max-width: var(--maxw); max-height: calc(100% - 50px); width: auto; height: auto; object-fit: contain; display: block;
}

#bouton_fermer, #bouton_random, #bouton_suiv, #bouton_prec{
    position: fixed; height: 55px; font-size: 28px; display: flex; color: var(--light_gray);
    align-items: center; justify-content: center; cursor: pointer; font-weight: bold; border: 4px solid var(--font);
    background-color: var(--font); border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); z-index: 10;
}

#bouton_fermer{
    transform: translateX(calc(50% + 75px)); bottom: 10px; right: 50%; font-size: 20px; width: 125px;
}
#bouton_random{
    transform: translateX(calc(50% - 75px)); bottom: 10px; right: 50%; font-size: 20px; width: 125px;
}
#bouton_suiv{
    transform: translateY(50%); bottom: 50%; right: 10px; width: 55px;
}
#bouton_prec{
    transform: translateY(50%); bottom: 50%; left: 10px; width: 55px;
}

#photo button:active{
    background-color: var(--light_gray); color: var(--font);
}



/* FOOTER */

footer{
    /* keep existing footer but allow positioned logo */
    position: relative;
    width: 100%; background: linear-gradient(180deg, rgba(60,62,84,1) 0%, rgba(44,44,64,1) 60%);
    padding: 50px 0 70px; border-top: 6px solid var(--red);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
}

#liste_footer{
    width: 100%; max-width: var(--maxw); display: flex; flex-direction: row;
    align-items: right; justify-content: space-around; margin: 0 0 30px 0; padding: 0;
}

.elem_footer{
    flex: 1;
}

.elem_footer h3{
    text-align: center; margin: 0; padding: 0; color: white; font-size: 18px;
    color: var(--gold); letter-spacing: .6px; text-transform: uppercase;
}

.elem_footer ul{
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0; margin: 10px 0;

    li{
        padding: 0; margin: 0; color: var(--light_gray); margin: 2px 0; text-align: center;
        font-size: 14px;
    }

    li:hover{
        font-style: italic;
    }

    a{
        color: var(--light_gray);
    }
}

footer h5{
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0 0;
    text-align: center;
    letter-spacing: .6px;
    opacity: 0.95;
}

/* nicer, less intrusive logo fixed in footer area */
#logo_tsp{
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    border-radius: 10px;
    opacity: 0.95;
    border: 2px solid rgba(255,255,255,0.06);
    background-color: rgba(255,255,255,0.02);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    object-fit: cover;
}

#logo_tsp:hover{
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0,0,0,0.55);
    opacity: 1;
}



.no-scroll{
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media only screen and (max-width: 1040px){
    #hamburger{
        display: flex;
    }

    nav ul{
        display: none;
    }
}


@media only screen and (max-width: 900px){

    /* header */

    nav ul li{
        font-size: 0; padding: 10px 15px; min-width: 0;
    }

    main h1{
        padding: 60px 10px 10px; font-size: 26px;
        margin-top: 15px;
    }

    #logo_main{
        display: none;
    }

    #lignes_titres{
        width: 100%; overflow: hidden; margin: 0 10px; padding: 10px;
    }

    #lignes_titres h1{
        font-size: 60px; width: 100%; line-height: calc(100% + 20px); margin-bottom: 20px;
    }

    #lignes_titres p{
        font-size: 12px; width: 100%;
    }

    #lignes_titres h3{
        font-size: 16px; width: 100%;
    }

    /* Qui */

    #qui_container{
        flex-direction: column;
    }

    #qui_container article{
        width: 100%; margin-bottom: 20px; max-width: calc(100% - 50px); max-width: 500px;
    }

    #qui_container article:nth-child(2), #qui_container article:nth-child(3){
        animation-delay: 0s; margin-bottom: 20px;
    }

    /* Objectifs */

    #objectifs_container{
        margin: 20px 0 60px; flex-direction: column; align-items: center;
    }

    #objectifs_container li{
        margin: 10px 0; font-size: 14px; text-align: center; list-style-type: none;
        line-height: calc(100% + 10px); max-width: 400px;
    }

    .obj_item div{
        height: 120px;
    }

    .obj_item:nth-child(1), .obj_item:nth-child(2) {
        animation-delay: 0s;
    }

    /* Membres */

    #membres_container:hover ul{
        animation-play-state: running;
    }

    #membres_container li{
        height: 200px; margin: 0 4px; width: 140px;
    }

    #membres_container li::before{
        font-size: 14px;
    }

    #membres_container li::after{
        font-size: 14px;
    }

    /* Images */

    .elem_image{
        height: 120px;
    }

    /* photos pop up */

    #photo img{
        max-width: 100%;
    }

    /* footer small screens */
    #liste_footer{ flex-direction: column; gap: 20px; align-items: stretch; }
    .elem_footer{ margin-bottom: 0; }
    footer h5 {
        font-size: 10px;
    };
}
