/* ======================================================
   BASE (Mobile First)
====================================================== */

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 12px;
    -webkit-font-smoothing: antialiased;
}

h2 {
    text-align: center;
    margin: 10px 0 20px;
    font-size: 18px;
    color: #333;
}
h3 {
    text-align: left;
    margin: 10px 0 20px;
    font-size: 18px;
    color: #333;
}



.navbar{
    display: flex;
    justify-content: space-between;
    height: 20px;
    align-items: center;
    background:#222;
    padding:15px;
}

nav a{
    color:white;
    margin-right:15px;
    text-decoration:none;
}
nav a:first-child{
    margin-left:50px;
}
.container{
    padding:30px;
}


/* ======================================================
   CLOCK (Simplifiée Mobile)
====================================================== */
.date-clock {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: center;
    gap: 10px;

}
.compteur {
    font-family: "Courier New", monospace;
    font-size: 16px;
    background: rgb(255, 255, 255);
    color: #000000;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 2px;
}
.clock {
    width: 48px;
    height: 48px;
    border: 1px solid #333;
    border-radius: 50%;
    position: relative;
    background: #fff;
}

@media (min-width: 768px) {
    .clock {
        width: 60px;
        height: 60px;
    }
    .digital-clock {
        font-family: "Courier New", monospace;
        font-size: 16px;
        background: rgb(255, 255, 255);
        color: #000000;
        padding: 4px 8px;
        border-radius: 6px;
        text-align: center;
        letter-spacing: 2px;
    }
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    transform: translateX(-50%);
    background: #000;
}

.hour   { width: 3px; height: 16px; }
.minute { width: 2px; height: 22px; }
.second { width: 1px; height: 24px; background: red; }