/* Styles généraux */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
    font-family: "Lato", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
header {
    background-color: #1e1e1e;
    padding: 20px 0;
    border-radius: 10px;
    width: 95%;
    margin: 10px auto 20px auto;
    font-weight: bold;
}

/* NAV PRINCIPAL */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

/* LOGO */
.logo {
    font-family: "Russo One", sans-serif;
    font-size: 20px;
    text-decoration: none;
    background: linear-gradient(to right, #ff6600, #d8cbcb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-align: left;
    flex-grow: 0;
}

/* LIENS NAV */
nav a:not(.logo) {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 25px;
    padding: 8px 32px;
    border: none;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* HOVER NAV */
nav a:not(.logo):not(.page-actuelle):hover {
    transform: scale(1.1);
}

/* LIEN ACTUEL */
.page-actuelle {
    position: relative;
    display: inline-block;
    text-decoration: none;
    cursor: default;
}
.page-actuelle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #ff6600, #d8cbcb);
    background-size: 200% 100%;
    background-position: left;
    transition: background-position 0.5s ease;
}
.page-actuelle:hover::after {
    background-position: right;
}

/* BOUTON BURGER */
.burger {
    display: none; /* caché par défaut (version bureau) */
    width: 35px;
    height: 30px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* centrage par défaut quand visible */
}

/* MENU NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    nav {
        flex-direction: column; /* logo en haut, burger en dessous, menu encore en dessous */
        align-items: center;
        padding: 0 20px;
    }

    /* affiche le burger centré */
    .burger {
        display: flex;
        margin-top: 10px;
    }

    /* menu caché par défaut */
    .nav-links {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        flex-direction: column;
        width: 100%;
        background: #1e1e1e;
        border-radius: 0 0 10px 10px;
        text-align: center;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }

    .nav-links a {
        font-size: 20px;
        padding: 10px 0;
        margin: 0;
    }

    /* quand burger cliqué */
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
    }

    /* logo plus petit et centré */
    .logo {
        font-size: 32px;
        text-align: center;
        flex: 0 0 auto;
    }
}

.burger span {
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger span:nth-child(3) {
    bottom: 0;
}

/* Transforme en croix */
.burger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}







/* Contenu */
.container {
    flex: 1;
    padding: 20px;
}

/* Présentation */
.presentation-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    margin: 0 auto 20px auto;
    background-color: #1e1e1e;
    transition: transform 0.3s ease;
}

.presentation-box:hover {
    transform: scale(1.01);
}

.presentation-text {
    flex: 1;
    margin-right: 20px;
    padding: 20px;
}

.presentation-box img {
    border-radius: 10px;
    width: 25%;
}

/* Derniers projets */
.projetrecent {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
    width: 82%;
    margin: 0 auto 20px auto;
    padding: 20px;
}

.recent-project-3d,
.recent-project-console {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    width: 50%;
    background-color: #1e1e1e;
    transition: transform 0.3s ease;
}

.recent-project-3d:hover,
.recent-project-console:hover {
 
    transform: scale(1.01);
}

.recent-project-3d img,
.recent-project-console img {
    border-radius: 5px;
    width: 50%;
    margin: 20px;
}

.recent-project-text {
    flex: 1;
    padding: 20px;
}

/* Boutons */
.recent-project-3d a,
.recent-project-console a,
.boutons-contact a {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e1e1e;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    color: white;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.7s ease;
}

.recent-project-3d a:hover,
.recent-project-console a:hover,
.boutons-contact a:hover {
    transform: scale(1.1);
}

.recent-project-3d a::before,
.recent-project-console a::before,
.boutons-contact a::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff6600, white, #ff6600);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    transition: background-position 0.7s ease;
}

.recent-project-3d a:hover::before,
.recent-project-console a:hover::before,
.boutons-contact a:hover::before {
    background-position: 100% 50%;
}

/* Contact */
.contact {
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    width: 80%;
    margin: 0 auto 20px auto;
    padding: 20px;
    transition: transform 0.3s ease;
}

.contact:hover {
    transform: scale(1.01);
}

.texte-contact {
    flex: 1;
    margin-right: 20px;
    padding: 20px;
}

.boutons-contact {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.boutons-contact a {
    padding: 10px;
}

.boutons-contact a img {
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Grille portfolio */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 90%;
    margin: 0 auto 20px auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.grid-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3), rgba(0,0,0,0));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.grid-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.overlay p {
    margin: 5px 0 0;
    font-size: 0.9em;
}

/* Footer */
footer {
    text-align: center;
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* Tablettes */
@media (max-width: 1024px) {
    .presentation-box {
        flex-direction: column;
        text-align: center;
    }

    .presentation-text {
        margin: 0 0 20px 0;
    }

    .presentation-box img {
        width: 60%;
    }

    .projetrecent {
        flex-direction: column;
        gap: 20px;
    }

    .recent-project-3d,
    .recent-project-console {
        width: 90%;
        flex-direction: column;
        text-align: center;
    }

    .recent-project-3d img,
    .recent-project-console img {
        width: 60%;
        margin: 10px auto;
    }

    .contact {
        flex-direction: column;
        text-align: center;
    }

    .boutons-contact {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiles */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .logo {
        position: static;
        margin-bottom: 15px;
    }

    nav a {
        font-size: 20px;
        margin: 10px 0;
    }

    .presentation-box img {
        width: 100%;
    }

    .recent-project-3d,
    .recent-project-console {
        width: 100%;
    }

    .recent-project-3d img ,
    .recent-project-console img{
        width: 80%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .boutons-contact {
        flex-direction: column;
    }
}

















#acceptricsAcceptAllBtn {
    background-color: #ff6600 !important;
    
}

#acceptricsRejectAllBtn, #acceptricsChooseSettingsBtn, #acceptricsAcceptAllBtn{
    border-radius: 8px;
}


#acceptricsModalContent {
    background-color: #1e1e1e !important;

}

#acceptricsSaveSettingsBtn{
    background-color: #ff6600 !important;
    color: #fff !important;
    border-radius: 8px !important ;
}
#acceptricsCloseModalBtn {
    background-color: #fff !important;
    color: #1e1e1e !important;
    border-radius: 8px !important ;
}




.mentions-container {
            background-color: #1e1e1e;
            border-radius: 12px;
            padding: 25px;
            margin: 30px 10px; /* marge haut/bas 30px et gauche/droite 10px */
            max-width: 900px;
            color: white;
            line-height: 1.6;
        }

.mentions-container h1, 
.mentions-container h2, 
.mentions-container h3 {
            margin-top: 20px;
            margin-bottom: 10px;
            color: #ffffff;
        }

.mentions-container ul {
            padding-left: 20px;
            margin-bottom: 15px;
        }

.mentions-container a {
            color: #66b3ff;
            text-decoration: underline;
        }

.pagemention {
            display: flex;
            justify-content: center;
        }



footer a {
    color: white;
    text-decoration: underline;
}

