/* --- Variables --- */
:root {
    --bg-color: #ffffff;
    --text-color: #040120;
    --slogan-color: #040120;
    --icon-color: #040120;
    --hover-color: #0b78e6;
    --transition-speed: 0.4s;
}

body.dark-mode {
    --bg-color: #040120;
    --text-color: #ffffff;
    --slogan-color: #ffffff;
    --icon-color: #ffffff;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial';
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

main {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

/* --- Typographie Responsive --- */
h1 {
    /* Taille dynamique : minimum 2.5rem, s'adapte à la vue, maximum 5rem */
    font-size: clamp(3.6rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1;
}

.slogan {
    font-size: clamp(0.1rem, 4vw, 1.5rem);
    color: var(--slogan-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
    /*letter-spacing: 0.5px;*/
}

/* --- Réseaux Sociaux --- */
.social-links {
    display: flex;
    gap: clamp(20px, 5vw, 30px);
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: var(--icon-color);
    font-size: 2.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /*border: 2px solid var(--icon-color);
    border-radius: 50%;*/
    width: 50px;  /* Taille augmentée pour contenir l'icône */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    /*transform: translateY(-8px);*/
    color: var(--hover-color);
    border-color: var(--hover-color);
}

/* --- Bouton Thème --- */
.theme-toggle {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* --- Media Queries pour ajustements fins --- */
@media (max-width: 480px) {
    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .theme-toggle {
        top: 15px;
        right: 15px;
    }
}