@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');


/* Page Welcome */
#block_ben{
    margin-top: -200vh;
    transition: .5s;
}

.gradient-background {
  background: linear-gradient(333deg,#000000,#161617,#262629,#414144);
  background-size: 240% 240%;
  animation: gradient-animation 28s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* BODY ET TITRES */
html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    font-family: "Roboto Mono", monospace;
}


h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 4rem;
    font-weight: bold;
    width: 100%;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.5rem;
}

/* FOND ECRAN VIDEO */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
p{
    font-family: "Roboto Mono", monospace;
}












/* NAVBAR */
.nav_bar {
    width: 10vw;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

aside img {
    max-width: 95px;
    width: 100%;
    height: auto;
}

aside img:hover {
    transition: .5s;
    transform: scale(1.1);
}

.nav_mod {
    margin-top: 15vh;

}


.nav_mod ul li a {
    font-family: "Roboto Mono", monospace;
    color: #555555;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
    font-size: 1.25rem;
}


.nav_mod ul li a:hover {
    transition: .5s;
    font-weight: bold;
    font-style: italic;
    color: black;
}

.nav_mod ul li a.active {
  border-bottom: 4px solid #B02A2E;
}

.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: #B02A2E;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.nav_active.hover-underline::after {
    transform: scaleX(1);
    background: #B02A2E;
}

.hover-underline:hover::after {
    transform: scaleX(1);

}

.fa-brands {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
}

.fa-brands:hover {
    transition: .5s;
    transform: scale(1.2);
}

.nav_bar {
    position: sticky;
    top: 0;
    height: 100vh;
}

.grecaptcha-badge{left:0!important;right:unset!important;}


/* Navigation burger plein écran */
.mobile-nav {
    display: none;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav ul li a {
    font-family: "Roboto Mono", monospace;
    color: #555555;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
    font-size: 1.25rem;
    text-decoration: none;
}

.mobile-nav ul li a:hover {
    transition: .5s;
    font-weight: bold;
    font-style: italic;
    color: black;
}

/* BURGER MENU CACHE */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 11;
}

.burger-btn i:hover {
    transform: scale(1.2);
    transition: 0.3s;
}

/* BOUTON BURGERMENU FERMER */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.close-btn i {
    color: black;
    transition: transform 0.3s ease;
}

.close-btn:hover i {
    transform: rotate(90deg) scale(1.2);
}

/* ANIMATION */
.fade-in-left {
    -webkit-animation: fade-in-left 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: fade-in-left 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in-left {
    0% {
        -webkit-transform: translateX(-50px);
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-left {
    0% {
        -webkit-transform: translateX(-50px);
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

/* FIN ANIMATION */
/* FIN DE LA NAVBAR */










/* MAIN PAGE INDEX */
/* STRUCTURE EN GRID INDEX */
.container_index {
    display: grid;
    grid-template-areas:
        "nav_pages main_index main_index main_index main_index"
        "nav_pages main_index main_index main_index main_index"
        "nav_pages main_index main_index main_index main_index"
        "nav_pages main_index main_index main_index main_index"
        "nav_pages main_index main_index main_index main_index";
}

aside.nav_index {
    grid-area: nav_pages;

}

main.main_index {
    grid-area: main_index;

}

.img_backround {
    background: url(../media/benj_fond.png) no-repeat;
    width: 90vw;
    background-size: contain;
    background-position: 150% 0%;
}

.move_text {
    position: absolute;
    top: 50%;
    left: 18.5%;
    transform: translateY(-30%);
    z-index: 2;
    color: black;
    max-width: 40vw;
    position: relative;
    z-index: 1;

}

.move_text h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
    width: 100%;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 0;
}

.move_text h1::after {
    content: '';
    /* Contenu vide, c'est la barre */
    position: absolute;
    /* Positionne la barre par rapport au h1 */
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: black;
}

.move_text p {
    font-size: 1.5rem;
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
    color: #666666;
    text-align: left;
    margin-top: 1.5rem;
    position: static;
    display: block;
    padding-bottom: 0;
}


/* Cacher le menu burger en mode desktop */
@media only screen and (min-width: 801px) {
    .burger-btn {
        display: none;
    }

    .desktop-nav {
        display: block;
        /* Force l'affichage de la nav desktop en grand écran */
    }
}

/* Responsive pour mettre à la suite mes box en réduisant la page + adaptation de la direction des elements*/
@media only screen and (max-width: 800px) {
    .container_index {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        grid-template-areas:
            "nav_index"
            "main_index";
    }

    .container_index aside {
        flex-direction: column;
        gap: 0;
    }

    .container_index nav {
        flex-direction: column;
        gap: 2px;
    }

    aside img {
        width: 100%;
        height: auto;
    }

    .nav_mod {
        display: none;
    }

    .nav_mod.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 10;
    }

    .nav_mod ul {
        gap: 2rem;
    }

    .nav_mod ul li a {
        font-size: 2.5rem;
        color: black;
        font-weight: bold;
        text-decoration: none;
    }

    .nav_mod ul li a:hover {
        color: #B02A2E;
    }

    .move_text h1 {
        font-family: "Bebas Neue", sans-serif;
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 1rem;
        line-height: 1.1;
        padding: 4px;
        text-transform: uppercase;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        text-align: left;
        width: 100%;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
        margin-bottom: 0;
    }

    .move_text {
        position: absolute;
        top: 60%;
        left: 20%;
        transform: translateY(-50%);
        z-index: 2;
        color: black;
        width: 100%;
        position: relative;
        z-index: 1;

    }

    .img_backround {
        background: url(../media/benj_fond.png) no-repeat;
        width: 100%;
        height: auto;
        background-size: contain;
        background-position: 150% 25%;
    }

    .move_text p {
        font-size: 1rem;
        font-family: "Roboto Mono", monospace;
        font-weight: 500;
        color: #666666;
        text-align: left;
        margin-top: 1.5rem;
        position: static;
        display: block;
        padding-bottom: 0;
    }

    video::-webkit-media-controls {
        display: none !important;
    }
}

/* FIN DE LA PAGE INDEX */










/* PAGE ABOUT */
/* STRUCTURE EN GRID ABOUT */
.container_about {
    display: grid;
    grid-template-areas:
        "nav_pages section1_about section1_about section1_about section1_about "
        "nav_pages section1_about section1_about section1_about section1_about"
        "nav_pages section2_about section2_about section2_about section2_about"
        "nav_pages section2_about section2_about section2_about section2_about";
}

aside.nav_pages {
    grid-area: nav_pages;

}

.section1_about {
    grid-area: section1_about;
    width: 90vw;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.section2_about {
    grid-area: section2_about;
    width: 90vw;
}





/* SECTION 1 LA CARTE */
/* Création de la carte à propos */
.flip-card {
    cursor: pointer;
    background-color: transparent;
    width: 100%;
    max-width: 1100px;
    height: 500px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-front h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.flip-card:focus {
    outline: 0;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
    transform: rotateX(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.flip-card-front {
    background: url(../media/Ben2.png) no-repeat center center;
    background-size: 70%;
    color: black;
    z-index: 2;
    border-radius: 15px;
    /* Si tu veux des coins arrondis */
    overflow: hidden;
    backface-visibility: hidden;
}

.overlay-text {
    position: absolute;
    top: 80%;
    /* ajuste selon ton besoin */
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-family: "Bebas Neue", sans-serif;
    font-size: 3rem;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    /* Par défaut visible */
    visibility: visible;
    /* Par défaut visible */
    /* Transition pour quand il devient invisible */
    transition: opacity 0.3s ease 0.3s, visibility 0s linear 0.3s;
}

.flip-card:hover .flip-card-front .overlay-text,
.flip-card:focus .flip-card-front .overlay-text {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.flip-card-back {
    background-color: rgba(252, 252, 252, 1);
    background-image: radial-gradient(circle, rgba(252, 252, 252, 1) 50%, rgba(236, 236, 236, 1) 100%);
    color: black;
    transform: rotateX(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backface-visibility: hidden;
}

.flip-card-back p {
    font-size: 1.5rem;
    font-family: "Roboto Mono", monospace;
    font-weight: normal;
    color: black;
    text-align: center;
    margin: 0;
    text-align: center;
    max-width: 50%;
}

/* ANIMATION APPARITION */
/* TITRE */
.text-focus-in {
    -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes text-focus-in {
    0% {
        -webkit-filter: blur(12px);
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes text-focus-in {
    0% {
        -webkit-filter: blur(12px);
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

/* MINI CARTE1 */
.slide-in-left {
    -webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-in-left {
    0% {
        -webkit-transform: translateX(-1000px);
        transform: translateX(-1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    0% {
        -webkit-transform: translateX(-1000px);
        transform: translateX(-1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

/* MINICRATE 2*/
.slide-in-right {
    -webkit-animation: slide-in-right 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-right 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}







/* Petites cartes */
.card_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* auto-fill permet de creer autant délément que possible sur une ligne min350px max1fr */
    margin: 20px 40px;
    gap: 5rem;
}

.card-content {
    border-radius: 10px;
    box-shadow: inset 10px 10px 5px #868686,
        inset -10px -10px 5px #ffffff;
    padding: 1.5rem;
}

.card-content img {
    max-width: 100%;
    width: 70px;
    height: auto;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1.5rem;
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
}





/* SECTION 2 LES CARTES */
.flip-card2 {
    cursor: pointer;
    background-color: transparent;
    width: 100%;
    max-width: 900px;
    height: 450px;
    perspective: 1000px;
    display: flex;
    justify-content: space-evenly;
}

.flip-card2-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card2-front h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.flip-card2:focus {
    outline: 0;
}

.flip-card2:hover .flip-card2-inner,
.flip-card2:focus .flip-card2-inner {
    transform: rotateY(180deg);
}

.flip-card2-front,
.flip-card2-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.flip-card2-front {
    color: black;
    z-index: 2;
    border-radius: 15px;
    overflow: hidden;
    backface-visibility: hidden;
}

/* rapprocher l'image et h2 */
.flip-card2-front .d-flex.align-items-center {
    gap: 150px;
    width: 100%;
    justify-content: center;
}

.flip-card2-back {
    width: 100%;
    gap: 150px;
    justify-content: center;
}

.flip-card2-front img,
.flip-card2-back img {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.flip-card2:hover .flip-card2-front .overlay-text2,
.flip-card2:focus .flip-card2-front .overlay-text2 {
    opacity: 0;
    /* Devient transparent */
    visibility: hidden;
    /* Devient invisible APRES la transition d'opacité */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.flip-card2-back {
    background-color: rgba(252, 252, 252, 1);
    background-image: radial-gradient(circle, rgba(252, 252, 252, 1) 50%, rgba(236, 236, 236, 1) 100%);
    color: black;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backface-visibility: hidden;
}

.flip-card2-back li {
    font-size: 1rem;
    font-family: "Roboto Mono", monospace;
    font-weight: normal;
    color: black;
    margin: 0;
    text-align: left;
    max-width: 100%;
}

.overlay-text2 {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    /* Par défaut visible */
    visibility: visible;
    /* Transition pour quand il devient invisible */
    transition: opacity 0.3s ease 0.3s, visibility 0s linear 0.3s;
}



/* Responsive pour mettre à la suite mes box en réduisant la page + adaptation de la direction des elements*/
@media only screen and (max-width: 800px) {
    .container_about {
         grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;

    }

    .section1_about,
    .section2_about {
        margin-top: 0;
        padding: 0 1rem;
        margin-left: 10%;
        position: relative;
        width: auto;
    }

   aside.nav_pages {
        position: fixed;
        z-index: 9999;
    }

    /* Flip-card principale en colonne (garde le flip) */
    .flip-card {
        height: 400px;
        width: 90%;
        max-width: 100%;
    }

    /* Mini-cartes empilées */
    .card_container {
        flex-direction: column !important;
        align-items: center;
        gap: 2rem;
        margin: 1rem 0;
    }

    .card-content {
        width: 90%;
        flex-direction: row;
        justify-content: start;
        align-items: center;
    }

    .card-content p {
        font-size: 1rem;
        padding: 0.5rem;
    }


    .flip-card-front {
        background: url(../media/Ben2.png) no-repeat center top;
        background-size: 90%;
        background-position-y: 50px;
    }

    .flip-card-front h1 {
        font-size: 2rem;
        margin-top: -50px;
    }

    .overlay-text {
        font-size: 1.5rem;
        top: 70%;
    }

    /* Cartes skills : en colonne et avec flip */
    .section2_about>div {
        justify-content: center !important;
        margin: 1rem 0 !important;
    }

    .flip-card2 {
        width: 90%;
        max-width: 100%;
        height: 400px;
    }

    .flip-card2-inner {
        height: 100%;
    }

    .flip-card2-front,
    .flip-card2-back {
        padding: 1rem;
    }

    /* Réduire les textes et tailles d'images pour mobile */
    .flip-card2-back ul li {
        font-size: 0.9rem;
    }

    .flip-card2-front h2 {
        font-size: 2rem;
        text-align: center;
    }

    .flip-card2-front .d-flex.align-items-center,
    .overlay-text2 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flip-card2-front img {
        max-width: 100px;
        height: auto;
    }

    .flip-card2-back img {
        display: none;
    }

    .overlay-text,
    .overlay-text2 {
        font-size: 2rem;
    }

    .flip-card-back p {
        max-width: 90%;
        font-size: 1.2rem;
    }

    .flip-card-inner.flipped,
    .flip-card2-inner.flipped {
        transform: rotateX(180deg);
        /* pour .flip-card */
    }

    .flip-card2-inner.flipped {
        transform: rotateY(180deg);
        /* pour .flip-card2 */
    }
}

/*  FIN DE LA PAGE ABOUT */










/* PAGE PORTFOLIO */
/* STRUCTURE EN GRID portfolio */
.container_portfolio {
    display: grid;
    grid-template-areas:
        "nav_pages header_portfolio header_portfolio header_portfolio header_portfolio "
        "nav_pages section1_portfolio section1_portfolio section1_portfolio section1_portfolio"
        "nav_pages section1_portfolio section1_portfolio section1_portfolio section1_portfolio"
        "nav_pages section2_portfolio section2_portfolio section2_portfolio section2_portfolio"
        "nav_pages section2_portfolio section2_portfolio section2_portfolio section2_portfolio"
        "nav_pages section3_portfolio section3_portfolio section3_portfolio section3_portfolio"
        "nav_pages section3_portfolio section3_portfolio section3_portfolio section3_portfolio";
}

aside.nav_pages {
    grid-area: nav_pages;

}

header.header_portfolio {
    grid-area: header_portfolio;

    min-height: 10vh;
    width: 90vw;
}

.section1_portfolio {
    grid-area: section1_portfolio;
    min-height: 90vh;
    width: 90vw;
}

.section2_portfolio {
    grid-area: section2_portfolio;
    min-height: 90vh;
    max-width: 90vw;
}

.section3_portfolio {
    grid-area: section3_portfolio;
    min-height: 90vh;
    width: 90vw;
}

/* Fin de STRUCTURE EN GRID portfolio */



/* Modif du header */
header h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 4rem;
    font-weight: bold;
    width: 100%;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
}

header a {
    font-size: 1.25rem;
    font-family: "Roboto Mono", monospace;
    font-weight: 700;
    color: #666666;
}

header a:hover {
    font-weight: bold;
    font-style: italic;
    color: black;
}

/* header passe au dessus du reste */
header {
    position: -webkit-sticky;
    position: sticky;
    position: top;
    top: 0;
    z-index: 5;
}

/* Fin de modif du header */



/* Modif Section 1 */
.img_container {
    display: grid;
    grid-template-columns: repeat(auto-fill);
    /* auto-fill permet de creer autant délément que possible sur une ligne */
    gap: 10px;
    margin: 40px 40px;
}


#section_1 p {
    font-size: 1.2rem;
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
    max-width: 280px;
}

.underlin_about {
    text-decoration: underline 3px solid #B02A2E;
    text-align: center;
}

/* FIN DE LA SECTION 1 */




/* DEBUT DE LA SECTION 2 */
#section_2 img {
    width: 100%;
    max-width: 280px;
    height: 300px;
    border: 1px solid #fdfdfd;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition: transform 0.3s ease;
}

#section_2 p {
    font-size: 1.2rem;
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
    max-width: 280px;
}


/* FIN DE LA SECTION2 */



/* DEBUT DE LA SECTION 3 */
#section_3 img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    border: 1px solid #4c4c4d;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition: transform 0.3s ease;
}

/* FIN DE LA SECTION 3 */

/*ANIMATION DES IMAGES*/
/* quand le curseur est sur la page les image deviennent grise */
#section_3 img {
    cursor: pointer;
    filter: grayscale(1);
    object-fit: cover;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* en passant le curseur sur l'image reprend de la couleur et grossie*/
#section_3 img:hover {
    z-index: 4;
    filter: grayscale(0);
    transition: .25s;
    /* Pour l'effet de grossissement */
    transform: scale(1.8);
    -ms-transform: scale(1.8);
    /* InternetExplorer 9 */
    -webkit-transform: scale(1.8);
    /* Safari 3-8 */
}



/* Affichage des image en grand */
.miniature {
    filter: grayscale(1);
    width: 100%;
    max-width: 280px;
    height: 300px;
    border: 1px solid #fdfdfd;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.miniature,
.grande {
    cursor: pointer
}

.grande {
    filter: grayscale(0);
    z-index: 2000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.829);
    display: none;
    align-items: center;
    justify-content: center;
     backdrop-filter: blur(2px);
}

.grande img {
    width: 50%;
    border: 4px white solid;
    border-radius: 6px;
}




/* ANIMATION IMG */
.fade-in-bottom {
    -webkit-animation: fade-in-bottom 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: fade-in-bottom 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in-bottom {
    0% {
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in-bottom {
    0% {
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

/* FIN ANIMATION */


/* Responsive pour mettre à la suite mes box en réduisant la page + adaptation de la direction des elements*/
@media only screen and (max-width: 800px) {
    .container_portfolio {
        grid-template-areas: none;
        display: flex;
        flex-direction: column;
    }

    body.container_portfolio {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    header {
        position: relative;
        top: 0;
        z-index: 9999;
    }

    .header_portfolio a {
        display: none;
    }

    .header_portfolio h1 {
        font-size: 1.8rem;
        text-align: center;
        margin-top: 4px;
        padding: 1rem;
        margin-left: 8%;
    }

    /* Adaptation des liens de navigation dans le header */
    aside.nav_pages {
        position: fixed;
        z-index: 9999;
    }

    /* Correction du menu burger s'il déborde */
    nav.mobile-nav ul {
        padding: 0;
        text-align: center;
    }

    nav.mobile-nav ul li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.5rem;
    }

    .section1_portfolio,
    .section2_portfolio,
    .section3_portfolio {
        margin-top: 0;
        padding: 1rem;
        margin-left: 8%;
        position: relative;
    }

    /* Ajustement des images Section 1 */
    .miniature {
        max-width: 90%;
        height: auto;
        margin: 0;
    }

    /* Ajustement des images Section 2 */
    #section_2 img {
        max-width: 90%;
        height: auto;
        margin: 0;
    }

    /* Ajustement des images Section 3 */
    #section_3 img {
        max-width: 80%;
        height: auto;
        transform: none !important;
        align-items: center;
        margin-left: 8%;
    }

    /* Désactivation du zoom au hover sur mobile */
    #section_3 img:hover {
        transform: none;
        filter: grayscale(0);
    }

    /* Centrer les éléments dans les sections */
    .section1_portfolio .d-flex,
    .section2_portfolio .d-flex,
    .section3_portfolio .d-flex {
        flex-direction: column;
        align-items: center;
    }

    /* Espacement des images affichées en grand */
    .grande img {
        width: 100%;
        z-index: 10000;
    }
}

/* FIN PAGE PORTFOLIO */










/* PAGE CONTACT */
/* STRUCTURE EN GRID contact */
.container_contact {
    display: grid;
    grid-template-areas:
        "nav_pages main_contact main_contact main_contact footer_contact "
        "nav_pages main_contact main_contact main_contact footer_contact"
        "nav_pages main_contact main_contact main_contact footer_contact"
        "nav_pages main_contact main_contact main_contact footer_contact";
}

aside.nav_pages {
    grid-area: nav_pages;
}

.main_contact {
    grid-area: main_contact;
    min-height: 100vh;
    width: 75vw;
    position: relative;
    /* Ajoute ça */

}

.footer_contact {
    grid-area: footer_contact;
    min-height: 100vh;
    min-width: 15vw;
    width: 100%;
}

/* FIN DE LA STRUCTURE GRID */




/* MODIF DU FOOTER */
footer p {
    font-size: 1.25rem;
    font-family: "Roboto Mono", monospace;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
}

footer a {
    font-size: 1.25rem;
    font-family: "Roboto Mono", monospace;
    color: #555555;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
}

footer a:hover {
    transition: .5s;
    font-weight: bold;
    font-style: italic;
    color: black;
}

/* ANIMATION FOOTER */
.fade-in-right {
    -webkit-animation: fade-in-right 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: fade-in-right 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in-right {
    0% {
        -webkit-transform: translateX(50px);
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-right {
    0% {
        -webkit-transform: translateX(50px);
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

/* FIN ANIMATION */
/* FIN  DU FOOTER */




/* DEBUT DU MAIN */
/* MODIF BTN CAROUSSEL */
.fa-solid {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
}

.carousel_content_center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
    gap: 1.5rem;
    position: relative;
}

.carousel-control-prev,
    .carousel-control-next {
        top: auto;
        bottom: 0;
        width: 0 !important;
    }


/* F.A.Q */
/* MODIF ACCORDEON */
/* CHANGE LA FONT DE L'ACCORDEON */

.accordion-button {
    font-size: 1.5rem;
    font-family: "Roboto Mono", monospace;
    font-weight: bold;
}

.accordion-body {
    font-size: 1rem;
    font-family: "Roboto Mono", monospace;
    font-weight: normal;
}

/* AJOUTE CONTOUR+SHADOW+TRANSPARENT */

#accordionFlushExample {

    border-radius: 10px;
    padding: 1rem;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.50);
}

/* RETIRER COULEUR BLEU A LA SELECTION+HOVER */
.accordion-button:not(.collapsed) {
    background-color: #c0c0c0 !important;
    color: #000 !important;
    box-shadow: none !important;
}

.accordion-button {
    background-color: #f8f8f8 !important;
    color: #000 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 2px #c0c0c0 !important;
    outline: none !important;
}

.accordion-button:hover {
    background-color: #dcdcdc !important;
    color: #000 !important;
    cursor: pointer;
}


/* FORMULAIRE */
/* MODIF DES FONT */
.h2_form {
    font-family: "Bebas Neue", sans-serif;
    font-size: 3rem;
}

.p_form {
    font-size: 1.25rem;
    font-family: "Roboto Mono", monospace;
    font-weight: normal;
}

/* MODIF DU FORMULAIRE */
form {
    font-family: "Roboto Mono", monospace;
    max-width: 700px;
    margin: 0 auto;
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Labels du formulaire */
form label {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    display: block;
    margin-bottom: 0.5rem;
}

/* Inputs et textarea avec ombre */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    font-family: "Roboto Mono", monospace;
    font-size: 1rem;
    font-weight: light;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.50);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

form input[type=checkbox] {
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.50);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}



/* Effet hover et focus sur chaque champ */
form input[type="text"]:hover,
form input[type="email"]:hover,
form input[type="tel"]:hover,
form textarea:hover {
    outline: none;
    /* retire le contour bleu */
    transition: .5s;
    transform: scale(1.05);
    box-shadow: 2 5 10px rgba(109, 109, 109, 0.7);
    background-color: #cfcfcf;
}

form input[type=checkbox]:hover {
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.70);
    background-color: #cfcfcf;
    cursor: pointer;
}

/* Retirer couleur bleue */
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus {
    outline: none !important;
    /* retire le contour bleu */
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.7);
    border-color: #c0c0c0;
}

textarea:focus {
    outline: none !important;
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.7) !important;
    border-color: #c0c0c0 !important;
}


/* Checkbox  */
.form-check-label {
    font-weight: bold;
    font-family: "Roboto Mono", monospace;
    color: #000;
}

/* Texte explicatif sous le formulaire */
.form-text {
    font-family: "Roboto Mono", monospace;
    font-size: 0.8rem;
    color: #000000;
}

small a{
    color: #555555;
    font-weight: 500;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
    cursor: pointer;
}

/* Boutons */
form div input[type=submit]{
    font-family: "Roboto Mono", monospace;
    font-weight: bold;
    font-size: 1rem;
    background-color: #000000;
    color: #E0E0E0;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 2rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.5s ease;
    box-shadow: 0.5s ease;
}

form div input:hover {
    background-color: #E0E0E0;
    color: #000000;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.7);
}

#rc-anchor-alert {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* cacher le recapcha */
.grecaptcha-badge{
    visibility: hidden!important;
} 

/* FIN DU FORMULAIRE */



/* DEBUT DES LIENS RESEAUX */

.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: left;
    justify-content: center;
    flex-direction: column;
}

.contact-section h2 {
    font-weight: bold;
    margin-bottom: 3rem;
}

.contact-section a {
    font-size: 1.25rem;
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
    color: #666666;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.50);
    padding: 1rem;
}

.contact-item {
    display: flex;
    align-items: left;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-item i {
    font-size: 50px;
    margin-right: 15px;
}

.mobile-contact-content {
    display: none;
}

@media only screen and (max-width: 800px) {
    .container_contact {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(1fr);
        grid-template-areas:
            "nav_contact"
            "main_contact"
            "footer_contact";
    }


    .main_contact {
        margin-top: 0;
        padding: 0 1rem;
        margin-left: 10%;
        position: relative;
    }

    aside.nav_pages {
        position: fixed;
        z-index: 9999;
    }

    .container_contact {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .carousel_content_center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    /* Largeurs ajustées au centre */
    #accordionFlushExample,
    form,
    .contact-section {
        width: 100%;
        max-width: 600px;
    }

    /* Formulaire mobile */
    form {
        width: 100%;
        padding: 0 0.5rem;
    }

    .h2_form {
        font-size: 2rem;
        text-align: left;
    }

    .p_form {
        font-size: 1rem;
        text-align: left;
    }

    /* Liens de contact */
    .contact-section {
        width: 100%;
        align-items: flex-start;
        padding: 0 0.5rem;
    }

    .contact-item {
        justify-content: center;
        text-align: left;
        flex-direction: column;
    }

    .contact-item i {
        font-size: 2rem;
        margin-right: 10px;
    }

    .contact-section h2 {
        font-size: 1.5rem;
        text-align: left;
    }

    /* Carousel navigation buttons */
    .carousel-control-prev,
    .carousel-control-next {
        top: auto;
        bottom: 0;
        width: 0 !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: none;
    }

    .carousel_content_center p {
        display: none;
    }

    .fa-angles-left,
    .fa-angles-right {
        font-size: 2rem;
    }

    /* Footer responsive */
    footer.footer_contact {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        width: 100vw;
        min-height: auto;
        margin-top: 2rem;
    }

    footer.footer_contact p,
    footer.footer_contact a {
        text-align: left;
    }

 


}


/* FIN DES LIEN RESEAUX */
/* FIN DU MAIN */
/* FIN DE LA PAGE CONTACT */