@import url("global.css");

.ocean-back {
    background-color: darkslategray;
    color: aliceblue;
}

#title-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 20vh;
    align-items: center;
    justify-content: center;
    background: url("../ressources/images/a-propos_page/header_img.JPEG"), #00000080;
    background-blend-mode: color;
    color: aliceblue;
    background-position: 0 40%;
    background-size: 100%;
    gap: 30%;
}

#title-header div h1 {
    margin: 5px;
}

#title-header .logo-nom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
}

.logo-nom h1 {
    text-decoration: none;
}

/* Sections */

#creations-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#creations-section p {
    padding: 0 15%;
    text-align: justify;
    font-size: 1.2em;
}

#creations-section h2 {
    align-self: center;
    text-decoration: underline;
}

.guitares-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: fit-content;
    gap: 25px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    width: 80%;
    gap: 25px;
    padding-bottom: 15px;
}

.card {
    width: 100%;
    height: 50vh;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease-in-out;
    background-blend-mode: color;    
    aspect-ratio: 2 / 3;
}

.card-info div div i{
    color: white;
    font-size: 0.85em;
}

.card-info div div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    column-gap: 15%;
}

.card:hover {
    transform: translateY(-15px);
    transform: rotateZ(1.5deg);
    scale: 1.08;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 5px;
}

.card-info {
    display: none;
    flex-direction: row;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0000005b;
    z-index: 2;
    top: 0;
    border-radius: 5px;
    align-items: flex-end;
    justify-content: center;
    font-size: 1.1em;
}

.card-info div {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.card:hover {
    .card-info {
        display: flex;
    }
}

.card-info h3 {
    color: aliceblue;
    font-size: 130%;
    z-index: 2;
    
}

.card-info h5 {
    color: aliceblue;
    font-size: 110%;
    z-index: 2;
    margin: 0;
}

/* Footer */

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 9%;
    padding: 3% 0;
    background-color: rgb(238, 238, 238);
}

.socials {
    display: flex;
    flex-direction: row;
    gap: 30px;
    
}

.socials a img{
    width: 40px;
}

/* RESPONSIVE SI LARGEUR ECRAN >= 800 pixels */

@media screen and (min-width: 800px){
    
    #title-header div h1 {
        font-size: 3em;
    }

    #title-header div p {
        font-size: 1.1em;
    }

    #title-header div img {
        width: 100px;
    }

    /* Sections */

    .card-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        width: 80%;
        gap: 25px;
        padding-bottom: 15px;
    }

    .card {
        width: 100%;
        height: 50vh;
        text-align: center;
        position: relative;
        z-index: 1;
        transition: all 0.25s ease-in-out;
        background-blend-mode: color;    
        aspect-ratio: 2 / 3;
    }

    .card-info div div i{
        color: white;
        font-size: 0.85em;
    }

    .card-info div div {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
        column-gap: 15%;
    }

    .card:hover {
        transform: translateY(-15px);
        transform: rotateZ(1.5deg);
        scale: 1.08;
    }

    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        border-radius: 5px;
    }

    .card-info {
        display: none;
        flex-direction: row;
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #0000005b;
        z-index: 2;
        top: 0;
        border-radius: 5px;
        align-items: flex-end;
        justify-content: center;
        font-size: 1.1em;
    }

    .card-info div {
        display: flex;
        flex-direction: column;
        padding-bottom: 10px;
    }

    .card:hover {
        .card-info {
            display: flex;
        }
    }

    .card-info h3 {
        color: aliceblue;
        font-size: 130%;
        z-index: 2;
        
    }

    .card-info h5 {
        color: aliceblue;
        font-size: 110%;
        z-index: 2;
        margin: 0;
    }

    /* Footer */

    footer {
        gap: 9%;
        padding: 3% 0;
    }

    .socials {
        gap: 30px;
        
    }

    .socials a img{
        width: 40px;
    }

}

/* RESPONSIVE SI LARGEUR ECRAN > 600 pixels < 800 pixels */
@media screen and (max-width: 800px) and (min-width: 600px){
    
    #title-header div h1 {
        font-size: 2.5em;
    }

    #title-header div p {
        font-size: 1em;
    }

    #title-header div img {
        width: 100px;
    }

    /* Sections */

    #creations-section p {
        padding: 0 15%;
        text-align: justify;
        font-size: 80%;
    }

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
        width: 80%;
        gap: 25px;
        padding-bottom: 15px;
    }

    .card {
        width: 100%;
        height: 30vh;
    }

    .card-info div div i{
        color: white;
        font-size: 0.85em;
    }

    .card-info {
        width: 100%;
        height: 100%;
        border-radius: 5px;
        font-size: 0.8em;
    }

    .card-info div {
        padding-bottom: 10px;
    }

    .card:hover {
        .card-info {
            display: flex;
        }
    }

    .card-info h3 {
        font-size: 130%;    
    }

    .card-info h5 {
        font-size: 110%;
    }


    /* Footer */

    footer {
        gap: 3%;
        padding: 3% 0;
    }

    .google-map {
        width: 300px;
        height: 200px;
    }

    footer p {
        font-size: 1.5vw;
        overflow: hidden;
    }

    .socials {
        gap: 10px;
        
    }

    .socials a img{
        width: 30px;
    }

}

/* RESPONSIVE SI LARGEUR ECRAN < 600 pixels */
@media screen and (max-width: 600px){
    

    #title-header div h1 {
        font-size: 2em;
    }

    #title-header div p {
        font-size: 0.8em;
    }

    #title-header div img {
        width: 75px;
    }

    /* Sections */
    #creations-section p {
        padding: 0 15%;
        text-align: justify;
        font-size: 120%;
    }

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
        width: 80%;
        gap: 25px;
        padding-bottom: 15px;
    }

    .card {
        width: 100%;
        height: 30vh;
    }

    .card-info div div i{
        color: white;
        font-size: 0.85em;
    }

    .card-info {
        width: 100%;
        height: 100%;
        border-radius: 5px;
        font-size: 0.8em;
    }

    .card-info div {
        padding-bottom: 10px;
    }

    .card:hover {
        .card-info {
            display: flex;
        }
    }

    .card-info h3 {
        font-size: 130%;    
    }

    .card-info h5 {
        font-size: 110%;
    }

    /* Footer */

    footer {
        flex-direction: column;
        gap: 25px;
        padding: 5% 0;
        height: fit-content;
    }

    .google-map {
        width: 250px;
        height: 150px;
    }

    footer p {
        font-size: 3vw;
        overflow: hidden;
    }

    .socials {
        gap: 30px;
        
    }

    .socials a img{
        width: 40px;
    }


}