body {
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    transition: background-color 0.4s;
}

#clockDiv {
    margin: 0 auto;
    max-width: 804px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%);
}

/* ── Mode manuel : fond blanc ── */

body.mode-manual {
    background-color: #ffffff;
}

/* Fond du SVG */
body.mode-manual #Calque_2_1_ rect {
    fill: #ffffff;
}

/* Orbites et limites en gris foncé */
body.mode-manual #limite_exterieure,
body.mode-manual #limite_interieure,
body.mode-manual #orbites {
    opacity: 0.5;
}

body.mode-manual #reperes circle,
body.mode-manual #reperes line {
    stroke: #333333;
}

/* ── Mode manuel : masquer flow et son orbite ── */

body.mode-manual #flow,
body.mode-manual #limite_interieure {
    display: none;
}

/* ── Responsive : taille d'origine sur mobile ── */

@media (max-width: 840px) {
    #boussole {
        width: 662.6px;
        height: 662.6px;
    }
}

@media (max-width: 680px) {
    #clockDiv {
        max-width: calc(100vw - 20px);
    }
    #boussole {
        width: calc(100vw - 20px);
        height: calc(100vw - 20px);
    }
}

/* ── Formulaire de saisie ── */

#dateForm {
    display: none;
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
    transition: opacity 0.3s;
}

body.mode-manual #dateForm {
    display: block;
}

#dateForm:hover,
#dateForm:focus-within {
    opacity: 1;
}

#eventLabel {
    display: none;
}

#dateForm input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #555555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333333;
    padding: 4px 2px;
    letter-spacing: 0.05em;
    outline: none;
    cursor: pointer;
}

@media print {
    #dateForm { display: none !important; }
}
