/* 1. Base */

html {
        background-color: #5f45bb;
        background-image: linear-gradient(to bottom right, #180cac, #d054e4);
        color: #fff;
        font-family: "Quicksand", sans-serif;
        font-size: 16px;
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        line-height: 1.5;
        min-height: 100vh;
        min-width: 300px;
        overflow-x: hidden;
        text-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

a {
        color: currentColor;
        cursor: pointer;
        text-decoration: none;
}

/* 2. Shared */

.wallpaper,
.picture-shadow,
.picture-image {
        display: block;
        height: 100%;
        left: 0;
        top: 0;
        width: 100%;
}

.job,
.button {
        font-family: "Montserrat", "Quicksand", sans-serif;
        letter-spacing: 0.3em;
        text-transform: uppercase;
}

.button {
transform-origin: center;
transition-duration: 100ms;
}

.wallpaper {
        background-image: url("reunion.jpg");
        background-position: center;
        background-size: cover;
        opacity: 0.2;
        position: fixed;
}

.content {
        display: flex;
        position: relative;
        min-height: 100vh;
}

.side {
        max-height: 20rem;
        max-width: 20rem;
}

.about {
        max-width: 26rem;
}

.picture {
        padding-top: 100%;
        position: relative;
        width: 100%;
}

.picture-shadow {
        border-radius: 290486px;
        background-image: radial-gradient(#000 0%, rgba(0, 0, 0, 0) 70%);
        position: absolute;
        top: 10%;
}

.picture-image {
        border-radius: 290486px;
        position: absolute;
}

.name {
        font-size: 2.25rem;
        line-height: 1.125;
        margin-bottom: 0.5rem;
}

.button {
        background-color: #fff;
        border-radius: 290486px;
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
        color: #9013fe;
        display: inline-block;
        font-size: 0.875rem;
        line-height: 1;
        padding: 1.25em 2em;
        text-shadow: none;
        transition-property: box-shadow, transform;
        user-select: none;
        vertical-align: top;
        white-space: nowrap;
        will-change: box-shadow, transform;
}

.button:hover {
        box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
        transform: scale(1.02) translateY(-4px);
}

.button:active {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
        transform: scale(0.98) translateY(-2px);
}

.job {
        color: #ffe479;
        font-size: 0.75rem;
}

.hr {
        background-color: #ff470f;
        border: none;
        content: "";
        height: 1px;
        margin-bottom: 1.5rem;
        margin-top: 1.5rem;
        transform-origin: center left;
        width: 4rem;
}

.description {
        font-size: 1.5rem;
}

.contact {
        display: inline-block;
        margin-top: 1.5rem;
        vertical-align: top;
}

/* 4. Responsiveness */

@media screen and (max-width: 799px) {
        .content {
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 5rem 3rem;
        }
        .side {
                margin-bottom: 3rem;
                width: 100%;
        }
}

@media screen and (min-width: 800px) {
        .content {
                align-items: center;
                justify-content: space-around;
                justify-content: space-evenly;
                padding: 4rem;
        }
        .side {
                flex-grow: 0;
                flex-shrink: 0;
                height: 20rem;
                margin-left: 4rem;
                order: 2;
                width: 20rem;
        }
        .about {
                flex-grow: 1;
                flex-shrink: 1;
        }
}

/* Animations */

@keyframes bounceIn {
        from {
                opacity: 0;
                transform: scale(0.5);
        }
        to {
                opacity: 1;
                transform: scale(1);
        }
}

@keyframes fillUp {
        from {
                transform: scaleX(0);
        }
        to {
                transform: scaleX(1);
        }
}

@keyframes picImage {
        from {
                opacity: 0;
                transform: scale(1.2) translateY(-1rem);
        }
        to {
                opacity: 1;
                transform: scale(1) translateY(0);
        }
}

@keyframes picShadow {
        from {
                opacity: 0;
                transform: scale(1.2) translateY(4rem);
        }
        to {
                opacity: 1;
                transform: scale(1.1) translateY(0);
        }
}

@keyframes slideDown {
        from {
                opacity: 0;
                transform: translateY(-1rem);
        }
        to {
                opacity: 1;
                transform: translateY(0);
        }
}

@keyframes slideUp {
        from {
                opacity: 0;
                transform: translateY(1rem);
        }
        to {
                opacity: 1;
                transform: translateY(0);
        }
}

@keyframes zoomOut {
        from {
                opacity: 0;
                transform: scale(1.05);
        }
        to {
                opacity: 0.2;
                transform: scale(1);
        }
}

@keyframes fadeIn {
        from {
                opacity: 0;
        }
        to {
                opacity: 1;
        }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3),
                    0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3),
                    0 0 40px rgba(144, 19, 254, 0.3);
    }
}

.wallpaper,
.picture-shadow,
.picture-image,
.name,
.job,
.hr,
.description,
.contact,
.social li {
        animation-duration: 1s;
        animation-timing-function: cubic-bezier(0, 0.5, 0, 1);
        animation-fill-mode: both;
}

.contact {
        animation-name: bounceIn;
        animation-delay: 600ms;
}

.picture-shadow,
.picture-image {
        animation-duration: 750ms;
        animation-timing-function: cubic-bezier(0, 0.5, 0.25, 1.25);
}

.wallpaper {
        animation-name: zoomOut;
        animation-timing-function: ease-out;
}

.picture-shadow {
        animation-name: picShadow;
        animation-delay: 500ms;
}

.picture-image {
        animation-name: picImage;
        animation-delay: 500ms;
}

.name {
        animation-name: slideDown;
        animation-delay: 100ms;
}

.job {
        animation-name: slideUp;
        animation-delay: 200ms;
}

.hr {
        animation-name: fillUp;
        animation-delay: 300ms;
}

.description {
        animation-name: slideUp;
        animation-delay: 400ms;
}

/* Badge CEH - Styles améliorés */
.badge {
    position: fixed;
    bottom: 20px;  /* Même valeur */
    right: 20px;   /* Même valeur */
    z-index: 10;
    animation-name: slideUp;
    animation-duration: 0.8s;
    animation-delay: 700ms;
    animation-fill-mode: both;
}

.badge a {
    display: block;
    position: relative;
}

.badge img {
    width: 120px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 4s infinite;
}

.badge:hover img {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.4),
                0 0 40px rgba(255, 255, 255, 0.2);
}

/* Tooltip au survol */
.badge-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.badge:hover .badge-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour le badge */
@media screen and (max-width: 799px) {
    .badge {
        bottom: 15px;  /* Même valeur */
        right: 15px;   /* Même valeur */
    }
    
    .badge img {
        width: 90px;
    }
    
    .badge-tooltip {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .badge {
        bottom: 10px;  /* Même valeur */
        right: 10px;   /* Même valeur */
    }
    
    .badge img {
        width: 70px;
    }
    
    .badge-tooltip {
        display: none;
    }
}

/* Mode paysage mobile */
@media screen and (max-height: 500px) {
    .badge {
        bottom: 10px;  /* Même valeur */
        right: 10px;   /* Même valeur */
    }
    
    .badge img {
        width: 60px;
    }
}
