body { background: #f8f9fa; padding-top: 40px; }
.container { max-width: 1000px; }
.article-card { background: #fff; padding: 20px; margin-bottom: 30px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.article-chapeau { border-left: 4px solid #0d6efd; padding-left: 10px; margin-bottom: 15px; }
.article-comment { margin-left: 10px; margin-bottom: 10px; padding: 10px; background: #f8f9fa; border-radius: 4px; }
.nav-buttons { display: flex; justify-content: space-between; margin-bottom: 20px; }

.article-category img{
    width: 100%;
    height: 200px;
}
    #articlesList{
        border: 1px solid grey;
    }

    #articlesCheckList{
        height: 500px;
        overflow: hidden;
        overflow: scroll;
    }
    
    .vignette{
        width: 60px;
        height: auto;
    }
    
    #preview-container {
        width: 400px;
        height: 400px;
        overflow: hidden;
        position: relative;
        background: #f8f9fa;
        border: 8px solid silver;
        box-shadow: 0 0 8px rgba(0,0,0,0.3);
        border-radius: 6px;
        }

        #id-photo-container {
        width: 35mm;
        height: 45mm;
        overflow: hidden;
        position: relative;
        border: 2px solid silver;
        border-radius: 4px;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
        background: #fff;
        }

        #preview {
        position: absolute;
        top: 50%;
        left: 50%;
        transform-origin: center center;
        }

        video, canvas {
        display: none;
        }

        #id-photo-canvas {
        width: 100%;
        height: 100%;
        display: block;
        }

        a, a:link{
            color:darkred!important;
            text-decoration: none;
            margin-right: 1em;;
            text-transform: uppercase;
        }

        .navbar a, a:link{
            
            text-decoration: none;
            margin-right: 0;
            text-transform: lo;
        }

    header{
        height: 120px;
        background-image: url(https://justarigolo.fr/justarigolo/public/caroussel_CRUD/uploads/logoCeleste.jpeg);
        background-repeat: no-repeat;
        background-position:0;
        background-size: contain;
        border-bottom: 2px solid silver;
    }
    .titre{
        background-color: rgba(248, 246, 246, 0.2);
        color: darkblue;
        text-align: center;;
    }

    .navbar-brand img{
        height: 80px;
        width: auto;
    }
    .photoProfil{
        height: 200px;
        width: auto;
    }
.day-mode body,
body.day-mode {
    background: #f8f9fa;
    color: #212529;
}

body.day-mode .article-card {
    background: #fff;
    color: #212529;
}

body.day-mode .article-chapeau {
    border-left-color: #0d6efd;
}

body.day-mode header {
    filter: none;
}

body.night-mode {
    background: #121212;
    color: #e0e0e0;
}

body.night-mode .article-card {
    background: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

body.night-mode .article-chapeau {
    border-left-color: #bb86fc;
}

body.night-mode a,
body.night-mode a:link {
    color: #bb86fc !important;
}

body.night-mode header {
    filter: brightness(0.8) contrast(1.2);
}

/* Boutons pour basculer le thème */
.theme-toggle-btn {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #212529;
    margin-left: 10px;
    font-size: 0.9rem;
}

body.night-mode .theme-toggle-btn {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

/* Body avec effet papier */
body {
    background: #fdf6e3;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    font-family: "Georgia", serif;
    color: #333;
    line-height: 1.6;
}

/* Header centré avec image et overlay */
header {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background-color: #fdf6e3;
    background-image: url('https://enmarge.ovh/images/blog/header/240619024450_enjoyPanameLogO_png.png');
    background-repeat: no-repeat;
    background-position: start;
    background-size: contain;
}

/* Titre principal extrudé */
.titre {
    font-family: "Georgia", serif;
    font-size: 3rem;
    font-weight: bold;
    color: #003366;
    position: relative;
    margin-top: 2em;
    padding: 0 1rem;
    line-height: 3rem;
    text-align: center;
    text-shadow:
        2px 2px 0px #ccc,
        4px 4px 0px rgba(0,0,0,0.1),
        6px 6px 0px rgba(0,0,0,0.05);
    background-color: rgba(255,255,255,0.6);
    display: inline-block;
}

/* Sous-titre en italique */
.titre i {
    font-style: italic;
    color: #222;
    text-transform: uppercase;
}
.titre small{
    font-size: 0.5em;
    margin-left: 2em;
}
/* Overlay pour un effet de profondeur */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left:0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,0,0,0.05) 100%);
}

/* --- Structure principale --- */
#articlesList {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #999 #eee;
}

#articlesList > div {
    flex: 0 0 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    padding: 1rem 1.2rem;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 90%;
    overflow: scroll;
}

/* Effet au survol */
#articlesList > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

/* --- Styles typographiques --- */
.article-rubrique {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    color: #d32f2f;
    margin-bottom: .25rem;
}

.article-surtitre {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.article-titre {
    font-weight: 800;
    font-size: 1.3rem;
    color: #222;
    margin: .5rem 0;
}

.article-sous-titre {
    font-size: 1rem;
    color: #444;
    margin-bottom: .5rem;
}

.article-chapeau {
    border-left: 3px solid #007bff;
    padding-left: .5rem;
    font-size: .95rem;
    color: #333;
    margin-bottom: .75rem;
}

.article-article p {
    font-size: .9rem;
    color: #222;
    line-height: 1.5;
    margin-bottom: .5rem;
}

.article-date {
    font-size: .8rem;
    color: #888;
}

.article-signature {
    font-weight: 600;
    color: #007bff;
    text-align: right;
}

/* --- Scrollbar --- */
#articlesList::-webkit-scrollbar {
    height: 8px;
}
#articlesList::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
#articlesList::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}
#articlesList::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* --- Responsive --- */
@media (max-width: 768px) {
#articlesList {
    flex-direction: column;
    overflow-x: hidden;
    }
#articlesList > div {
    width: 100%;
    }
}