/* --- 1. BASE & LAYOUT --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    /* CORRECTION ICI : "auto" permet de scroller si le contenu dépasse */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* --- 2. ANIMATIONS D'ENTRÉE --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-img {
    animation: scaleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.reveal-btn-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.reveal-btn-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
}

.reveal-btn-3 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

/* --- 3. SIGNATURE DROITE (FINE) --- */
.side-signature {
    position: fixed;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
    opacity: 0.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
}

/* --- 4. DÉCORS (FEU & MÉTAL) --- */
.fire-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 130%, #ff4500 0%, #ff8c00 20%, #000 70%),
        radial-gradient(circle at 15% 85%, #ff2200 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, #b33939 0%, transparent 45%);
    filter: blur(60px);
    opacity: 0.5;
    z-index: -2;
}

body::before,
body::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 18vh;
    background: #111;
    z-index: -1;
    clip-path: polygon(0% 0%, 5% 40%, 12% 10%, 25% 50%, 38% 15%, 52% 45%, 68% 10%, 82% 55%, 92% 12%, 100% 40%, 100% 100%, 0% 100%);
}

body::before {
    top: 0;
    transform: rotate(180deg);
    background: linear-gradient(to bottom, #222, #050505);
}

body::after {
    bottom: 0;
    background: linear-gradient(to top, #222, #050505);
}

/* --- 5. CONTENU CENTRAL --- */
.container {
    width: 85%;
    max-width: 350px;
    text-align: center;
    z-index: 10;
}

.profile-hublot {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: radial-gradient(circle, #fff 0%, #888 50%, #444 100%);
    border-radius: 50%;
    padding: 6px;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Transition douce pour le hublot aussi */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    /* Indique que c'est cliquable */
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a1a1a;

    /* ÉTAT PAR DÉFAUT : Noir et Blanc, un peu sombre */
    filter: grayscale(1) contrast(1.2) brightness(0.9);

    /* Transition douce pour le retour à la couleur */
    transition: filter 0.5s ease-in-out, transform 0.3s ease-in-out;
}

/* --- EFFET AU SURVOL (HOVER) OU AU CLIC/TOUCH (ACTIVE) SUR LA PHOTO --- */
.profile-hublot:hover .profile-img,
.profile-hublot:active .profile-img {
    /* ÉTAT ACTIVÉ : La couleur revient, plus de contraste */
    filter: grayscale(0) contrast(1.1) brightness(1.1);
    transform: scale(1.05);
    /* Léger zoom sur l'image */
}

/* Petit effet de zoom et d'ombre sur le hublot aussi */
.profile-hublot:hover,
.profile-hublot:active {
    transform: scale(1.02);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.9), 0 15px 40px rgba(0, 0, 0, 1);
}

/* --- TITRE (CORRIGÉ & STYLISÉ COMME AVANT) --- */
h1 {
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 4px;
    /* Grand espacement élégant */
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    /* Tout en majuscules */
    line-height: 1.5;
    /* Bon espacement entre les lignes */
}

/* --- EFFET AU SURVOL (HOVER) OU AU CLIC/TOUCH (ACTIVE) --- */
.profile-hublot:hover .profile-img,
.profile-hublot:active .profile-img {
    /* ÉTAT ACTIVÉ : La couleur revient (grayscale 0), plus de contraste */
    filter: grayscale(0) contrast(1.1) brightness(1.1);
    transform: scale(1.05);
    /* Léger zoom pour l'effet "bouton" */
}

/* Petit effet de zoom sur le hublot aussi */
.profile-hublot:hover,
.profile-hublot:active {
    transform: scale(1.02);
}

/* --- 6. BOUTONS --- */
.metal-btn {
    position: relative;
    display: block;
    text-decoration: none;
    color: #111;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #a1a1a1 50%, #ffffff 100%);
    border: 1px solid #fff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    transition: 0.3s;
    overflow: hidden;
    text-transform: uppercase;
}

.metal-btn:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.rivet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
}

.tl {
    top: 8px;
    left: 8px;
}

.tr {
    top: 8px;
    right: 8px;
}

.bl {
    bottom: 8px;
    left: 8px;
}

.br {
    bottom: 8px;
    right: 8px;
}

/* --- 7. RESPONSIVE / LANDSCAPE --- */
@media (max-width: 932px) and (orientation: landscape) {
    body {
        /* On permet au contenu de commencer en haut pour pouvoir descendre */
        align-items: flex-start;
        padding: 40px 0;
        height: auto;
    }

    .side-signature {
        display: none;
        /* Cache la signature en paysage pour libérer de l'espace */
    }

    .container {
        margin: 0 auto;
    }
}