body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 1em;
    background:  black;
}

h1 {
    text-align: center;
    margin-bottom: 0.2em;
    margin-top: 0;
    color:white;
}

a {
	text-decoration:none;
	color: cyan;
}

.subheading {
    text-align: center;
    font-size: 1em;
    color: #555;
    margin-top: 0;
    margin-bottom: 1em;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.nav a {
    margin: 0 0.5em;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav a:hover {
    transform: scale(1.2);
    color: #0055aa;
}

.nav h2 {
    margin: 0;
    font-size: 1.2rem;
    white-space: nowrap;
    color:white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    padding: 0 1em;
}

.thumb {
    width: 100%;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: transform 0.2s;
}

.thumb:hover {
    transform: scale(1.05);
}
.thumb-container {
    text-align: center;
}

.thumb-time {
    font-size: 0.75em;
    color: white;
    margin-top: 4px;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.cam-selector {
    text-align: center;
    margin-bottom: 1em;
}

.cam-selector a {
    margin: 0 1em;
    text-decoration: none;
    font-weight: bold;
    color: #0055aa;
}

.cam-selector strong {
    margin: 0 1em;
    font-weight: bold;
    color: black;
}

.cam-switch {
	text-align:center;
}

#date-input {
    font-size: 1.2rem;
    padding: 0.3em;
    margin: 0 auto;
    display: block;
    text-align: center;
}

#date-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    border: none;
    background: transparent;
}
/* Mode smartphone */
@media (max-width: 768px) {
    body {
        font-size: 1.2em; /* Texte plus gros */
    }

    h1 {
        font-size: 1.8em; /* Titre plus grand */
    }

    .subheading,
    .nav h2,
    .thumb-time {
        font-size: 1.1em;
    }

    /* Galerie : 2 colonnes */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Très petit écran (type smartphone compact) */
@media (max-width: 480px) {
    /* Galerie : 1 colonne */
    .gallery {
        grid-template-columns: 1fr;
    }
}

.header-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-line span {
    display: inline-block;
    width: 44px;
    height: 44px;
}

.playstop-btn {
    font-size: 22px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 50%;
    text-decoration: none;
}

.playstop-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.disk-quota {
    text-align: center;
    margin: 2rem 0 1rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.03em;
}
