/* ============================================================
   Reset Global & Variables de Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2e5bcc;
    --error-color: #ff6b6b;
    --background-color: #000000;
    --white: #ffffff;
    --font-family: 'Roboto', sans-serif;
    --border-radius: 10px;
    --transition-speed: 0.3s ease;
    --padding-base: 20px;
    --gap-base: 15px;
}

/* ============================================================
   Styles de Base pour Mobile
   ============================================================ */
html, body {
    overflow: hidden;
    font-family: var(--font-family);
    background: linear-gradient(135deg, rgba(46, 91, 204, 0.9), rgba(74, 144, 226, 0.9));
}

/* ============================================================
   Barre Latérale / En-tête pour Mobile
   ============================================================ */
.sidebar {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: var(--padding-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInSidebar 0.8s ease-out;
}

/* Animation d'apparition de la sidebar */
@keyframes fadeInSidebar {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Section Profil
   ============================================================ */
.sidebar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    margin-bottom: 8px;
    transition: transform var(--transition-speed);
}

.sidebar img:hover {
    transform: scale(1.05);
}

.sidebar h1 {
    font-size: 1.8em;
    color: var(--white);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar p {
    font-size: 1em;
    color: #e0e0e0;
    text-align: center;
}

/* ============================================================
   Menu de Navigation (masqué sur mobile)
   ============================================================ */
.sidebar .menu {
    display: none;
}

/* ============================================================
   Section Contact & Réseaux Sociaux
   ============================================================ */
.sidebar .contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar .contact-info a {
    padding: 10px 16px;
    font-size: 1em;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    display: inline-block;
}

.sidebar .contact-info a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================================
   Section Social Links (pour l'affichage par défaut)
   ============================================================ */
.sidebar .social-links {
    /* Par défaut, sur desktop, vous pouvez laisser les liens en affichage normal */
}

/* ============================================================
   Section Horloge
   ============================================================ */
.sidebar .clock {
    width: 80%;
    padding: 12px;
    background: rgba(51, 51, 51, 0.85);
    border-radius: var(--border-radius);
    color: var(--white);
    text-align: center;
    margin-top: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================================
   Adaptations pour les petits écrans (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        height: auto;
        padding: 20px;
        border-radius: 20px;
        text-align: center;
    }

    .sidebar .menu,
    .content,
    .about,
    .timeline-container {
        display: none;
    }

    /* Afficher les réseaux sociaux côte à côte sur mobile */
    .sidebar .social-links {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
}
/* Masquer le bouton Contact par défaut (desktop) */
.btn-contact {
    display: none;
}

/* Afficher et styliser le bouton Contact uniquement sur mobile */
@media (max-width: 768px) {
    .btn-contact {
        display: inline-block;
        margin-top: 20px; /* Espace entre les réseaux sociaux et le bouton */
        padding: 10px 20px;
        background-color: #4a90e2; /* Couleur primaire */
        color: #ffffff;
        text-decoration: none;
        border-radius: 10px;
        transition: background-color 0.3s ease;
    }

    .btn-contact:hover {
        background-color: #3b7ab9; /* Légèrement plus foncé au survol */
    }
}

