/* ======== FOND ET STRUCTURE ======== */
body {
    background: linear-gradient(360deg, #926ccc, #d8cace);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

section {
    margin-bottom: 40px;
}

/* ======== NAVBAR ======== */
.custom-navbar {
    background-color: rgba(95, 54, 155, 0.85); /* violet avec transparence */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.custom-navbar .nav-link,
.custom-navbar .navbar-brand {
    color: white;
    font-weight: 500;
}

.custom-navbar .nav-link:hover,
.custom-navbar .navbar-brand:hover {
    color: #A686D5 !important;
}

/* ======== BOUTON MENU (TOGGLER) ======== */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Icône hamburger personnalisée */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(166,134,213)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transition: filter 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(146,108,204)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ======== FOOTER ======== */
footer {
    background-color: #5F369B;
    color: white;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    color: #A686D5;
}

/* ======== TEXTE ======== */
h1 {
    font-size: 4rem;
}

.presentation {
    font-size: 1.5rem;
}

.petite_desc {
    font-size: 1.1rem;
    text-align: justify;
}

/* ======== MÉDIAS ======== */
.media-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.projet_pro .media-projet {
    max-width: 500%;
}

.projet_pro img .media-projet {
    width: 48%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-projet {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-projet:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ======== CARTES ======== */
.card {
    padding: 15px;
    box-sizing: border-box;
    background-color: #F1ECF8;
    color: #000;
    border: 1px solid #d8cace;
    border-radius: 10px;
}

.card-img-top {
    margin-bottom: 10px;
    object-fit: cover;
    max-width: 100%;
    max-height: 200px;
}

/* ======== LISTES ======== */
ul.liens-list,
ul.competences-list {
    list-style-type: disc;
    margin-left: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

ul.liens-list a {
    color: #5F369B;
    font-weight: 500;
    text-decoration: none;
}

ul.liens-list a:hover {
    color: #A686D5;
    text-decoration: underline;
}

/* ======== BOUTONS ======== */
.btn {
    background-color: #A686D5;
    border-color: #A686D5;
}

.btn:hover {
    background-color: #926CCC;
    border-color: #926CCC;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .presentation {
        font-size: 1.2rem;
    }

    .media-projet {
        max-width: 150px;
    }

    .petite_desc {
        text-align: center;
    }
}

.secret{
    position: absolute;
    right: 20px;        /* Décale à droite */
    bottom: 10px;       /* Place verticalement dans le footer */
    opacity: 0;         /* Invisible */
    pointer-events: auto; /* Le clic fonctionne malgré l’invisibilité */
    width: 80px;        /* Zone cliquable */
    height: 20px;       /* Ajuste la zone cliquable */
}