/* ============================================
   CSS Reset & Global Styles
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #FFFFFF;
    color: #333;
}

/* ============================================
   Sidebar – Barre de menu (Desktop uniquement)
============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;         /* Largeur de base de la sidebar */
    height: 100vh;        /* Occupe toute la hauteur de l'écran */
    background: linear-gradient(135deg, #2e5bcc, #4a90e2);
    padding: 20px;
    overflow-y: auto;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    /* Définir l'origine du scaling au coin supérieur gauche */
    transform-origin: top left;
    /*
       Lorsque la largeur du viewport est inférieure à 720px,
       le facteur de scale sera égal à (100vw / 720). Sinon, il sera à 1.
       Cela garantit que tout le contenu de la sidebar se rétrécit proportionnellement.
    */
    transform: scale(min(1, calc(100vw / 720)));
}

/* ---------- Profil (Image, Nom, Description) ---------- */
.sidebar img {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.sidebar h1 {
    text-align: center;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.sidebar p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ---------- Infos de Contact ---------- */
.contact-info {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-info a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #dcdcdc;
}

/* ---------- Menu de Navigation ---------- */
.menu {
    margin-bottom: 20px;
}

.menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.menu a:hover {
    background: rgb(255, 255, 255, 0.3);
}

.menu a i {
    margin-right: 10px;
}

/* ---------- Horloge (cliquable) ---------- */
.clock {
    margin-top: auto;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.clock:hover {
    background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 720px) {
    .sidebar {
        width: 100%;
        left: 0;
        border-radius: 0;
        /* Éventuellement, d’autres ajustements pour un affichage optimal */
    }
}
@media (min-width: 721px) {
    .sidebar {
        transform: none;
    }
}
.copyright {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0.8;
    padding: 5px;
}