* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #9fc5e8;
    line-height: 1.6;
}


/* ========================================
   EN-TÊTE FIXE
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: white;
    border-bottom: 1px solid #ddd;
}


/* ========================================
   TITRE
   ======================================== */

.site-title {
    text-align: center;
    padding: 25px 20px 15px;
    background: white;
}

.site-title h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.subtitle {
    margin: 8px 0 0;
    color: #777;
    font-size: 1rem;
}


/* ========================================
   MENU PRINCIPAL
   ======================================== */

.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    background: white;
    padding: 0 15px 10px;
}

.menu a {
    color: #444;
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 4px;
}

.menu a:hover,
.menu a.active {
    background: #9fc5e8;
}


/* ========================================
   MENU DES ANNÉES
   ======================================== */

.years {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
    background: white;
}

.years a {
    color: #555;
    text-decoration: none;
    padding: 3px 10px;
    font-size: 0.95rem;
    border-right: 1px solid #ccc;
}

.years a:last-child {
    border-right: none;
}

.years a:hover {
    color: #000;
    text-decoration: underline;
}

.years a.active {
    font-weight: bold;
    color: #000;
}


/* ========================================
   CONTENU
   ======================================== */

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 25px;
}

section {
    background: white;
    margin-bottom: 30px;
    padding: 30px;
    border: 1px solid #e2e2df;
}

h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    color: #333;
}

a {
    color: #555;
}


/* ========================================
   FASCICULES
   ======================================== */

.issues {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto;
}

.issue {
    text-align: center;
}

.issue img {
    display: block;
    width: auto;
    height: 250px;
    margin: 0 auto;
}


/* ========================================
   PIED DE PAGE
   ======================================== */

footer {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}


/* ========================================
   VERSION MOBILE
   ======================================== */

@media (max-width: 700px) {

    .issues {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .site-title {
        padding: 30px 15px 20px;
    }

    .site-title h1 {
        font-size: 1.8rem;
    }

    .menu a {
        padding: 6px 10px;
    }

    .years {
        padding: 12px 10px;
    }

    .years a {
        padding: 3px 8px;
    }

    main {
        margin: 25px auto;
        padding: 0 12px;
    }

    section {
        padding: 20px;
    }

}


/* Moteur de recherche */

#recherche-index {
    display: block;
    width: 100%;
    padding: 12px 14px;
    margin: 20px 0;
    font: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

#recherche-index:focus {
    outline: 2px solid #aaa;
    outline-offset: 2px;
}

.nombre-resultats {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.resultats-articles {
    display: grid;
    gap: 12px;
}

.resultat-article {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e2df;
    border-left: 3px solid #c9c9c2;
    border-radius: 3px;
}

.resultat-article h3 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: normal;
    line-height: 1.4;
}

.resultat-article p {
    margin: 5px 0;
}

.resultat-auteurs {
    color: #444;
}

.resultat-details {
    color: #777;
    font-size: 0.9rem;
}

.resultat-themes {
    color: #666;
    font-size: 0.9rem;
}

.resultat-pdf {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.9rem;
    text-decoration: none;
}

.resultat-pdf:hover {
    text-decoration: underline;
}

/* Sommaires des numéros */

#choix-fascicule {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    margin: 12px 0 24px;
    font: inherit;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#choix-fascicule:focus {
    outline: 2px solid #aaa;
    outline-offset: 2px;
}

#contenu-sommaire {
    margin-top: 20px;
}

#contenu-sommaire > h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.liste-sommaire {
    padding-left: 28px;
}

.liste-sommaire li {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e2df;
}

.titre-sommaire {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.5;
}

.auteurs-sommaire,
.pages-sommaire {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.92rem;
}

.sommaire-pdf {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

.sommaire-pdf:hover {
    text-decoration: underline;
}