/* ==========================================================
 * citations.aepm.fr – feuille de style
 * Refonte 07/10/2026 (même principe que biographie-celebrites) :
 * menu déroulant collé en haut, plus de colonne de droite,
 * partenaires en pied de page, couleurs orange du site
 * (#FFBE02 / #F78602) gardées, avec des teintes plus foncées
 * pour le menu et les liens afin que le texte reste lisible.
 * ========================================================== */
* { margin: 0; padding: 0; }
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1em;
    line-height: 1.6;
    background-color: #D5E3EA;
}

/* ---------- Menu du haut (commande/haut.php + js/menu.js) ---------- */
#menu_haut {
    width: 100%;
    background: linear-gradient(90deg, #9A3412, #C2560C); /* orange foncé : texte blanc lisible */
    position: sticky;   /* le menu reste en haut de l'écran quand on descend */
    top: 0;
    z-index: 100;
}
#menu_haut .menu-inner {
    max-width: 1053px;
    margin: 0 auto;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
#menu_haut ul { list-style: none; }
#menu_haut .menu-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
#menu_haut .menu-links a,
#menu_haut .plus-btn,
#menu_haut .menu-toggle,
#menu_haut .btn-member {
    font-family: tahoma, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 6px;
}
#menu_haut .menu-links a:hover,
#menu_haut .plus-btn:hover,
#menu_haut .menu-toggle:hover,
#menu_haut .btn-member:hover { background: rgba(255, 255, 255, 0.18); }
#menu_haut .menu-toggle { display: none; }
#menu_haut .menu-toggle svg,
#menu_haut .btn-member svg { width: 24px; height: 24px; display: block; }
#menu_haut .menu-toggle .icon-close { display: none; }
#menu_haut .btn-member { margin-left: auto; }
#menu_haut .menu-plus { position: relative; }
#menu_haut .plus-title { display: none; }
#menu_haut .plus-list {
    display: none;
    position: absolute;
    top: 46px;
    left: 0;
    z-index: 50;
    min-width: 230px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
    padding: 6px 0;
}
#menu_haut .menu-plus.plus-ouvert .plus-list { display: block; }
#menu_haut .plus-list a {
    color: #1e293b;
    display: block;
    min-height: 0;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 14px;
}
#menu_haut .plus-list a:hover { background: #fff1e0; color: #9A3412; }

@media (max-width: 768px) {
    #menu_haut .menu-inner { flex-wrap: wrap; padding: 4px 8px; }
    #menu_haut .menu-toggle { display: flex; }
    #menu_haut .btn-member { order: 2; }
    #menu_haut .menu-links {
        display: none;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: calc(100% + 16px);
        margin: 4px -8px -4px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    }
    #menu_haut.menu-ouvert .menu-links {
        display: flex;
        max-height: calc(100vh - 56px); /* la liste défile si elle est trop longue */
        overflow-y: auto;
    }
    #menu_haut.menu-ouvert .menu-toggle .icon-open { display: none; }
    #menu_haut.menu-ouvert .menu-toggle .icon-close { display: block; }
    #menu_haut .menu-links a {
        color: #1e293b;
        min-height: 50px;
        padding: 0 20px;
        border-radius: 0;
        border-bottom: 1px solid #e2e8f0;
        font-size: 16px;
    }
    #menu_haut .menu-links a:hover { background: #fff1e0; color: #9A3412; }
    #menu_haut .plus-btn { display: none; }
    #menu_haut .plus-title {
        display: block;
        padding: 12px 20px 4px;
        font-family: tahoma, sans-serif;
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #475569;
        background: #f8fafc;
    }
    #menu_haut .plus-list {
        display: block;
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
        background: #f8fafc;
    }
}

/* ---------- Page ---------- */
main {
    background: linear-gradient(90deg, #FFBE02, #F78602);
    width: 100%;
    max-width: 1053px;
    margin: auto;
    border-bottom: 1px solid #fff;
}
main img.imghaut {
    width: 100%;
    max-width: 1053px;
    height: auto;
    max-height: 372px;
    object-fit: cover;
    background-color: white;
    display: block;
}
main h1 {
    padding: 0.4rem 0.6rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: #3b1d00;
}
main p { margin: 0.4rem; }
main a { font-weight: bold; color: #000; text-decoration: none; }
main a:hover { text-decoration: underline; }
main ul { margin: 0 10px 14px 0; }
main li { list-style: none; text-align: left; padding-left: 10px; }
.ptitre { margin: 0.4rem; font-size: 1.2rem; font-weight: bold; padding-top: 1.2rem; }
.voir-plus { text-align: right; }
.voir-plus a { color: #3b1d00; }

/* Fil d'Ariane */
.breadcrumb { list-style: none; font-size: 0.8em; padding: 0; margin: 0; display: flex; flex-wrap: wrap; line-height: 1.2; }
.breadcrumb li { padding: 5px 0 5px 5px; }
.breadcrumb li + li::before { content: ">"; margin: 0 5px 0 2px; }
.breadcrumb a { color: #000; text-decoration: none; font-weight: normal; }
.breadcrumb a:hover { text-decoration: underline; }

#deuxcol { display: flex; flex-wrap: wrap; align-items: flex-start; }
#article { flex: 1; min-width: 0; padding: 0 10px; box-sizing: border-box; }
#texteunique a { color: #fff; text-decoration: none; }
#texteunique a:hover { text-decoration: underline; }

/* ---------- Lettres et pages ---------- */
.pagenumero, .alpha {
    background-color: #f3f3f3;
    text-align: center;
    word-spacing: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 6px;
    margin: 6px 0;
}
.pagenumero p, .alpha p { font-size: 0.9em; font-weight: bold; }
.pagenumero a, .alpha a { color: #9A3412; text-decoration: none; font-weight: normal; }
.alpha a.actif { font-weight: bold; text-decoration: underline; }
.alpha .sous-lettres { font-size: 0.9em; margin-top: 4px; }
.alpha .sous-lettres a { display: inline-block; padding: 0 4px; }

/* ---------- Listes d'auteurs / catégories (vignettes centrées) ---------- */
.liste-noms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 20px;
}
.box_aut_presentation {
    width: 240px;
    height: 50px;
    border: 1px solid #F78602;
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 0 0 5px;
    box-sizing: border-box;
}
.box_aut_presentation:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.photo-aut-mini { display: flex; align-items: center; }
.photo-aut-mini img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.box_aut_presentation .text-container { margin-left: 6px; flex-grow: 1; line-height: 1.2; }
.box_aut_presentation .text-container a { color: #1e293b; }

/* ---------- Citations en images (accueil, galerie) ---------- */
.grille-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 10px 0 10px;
}
.box_foto_presentation {
    border: 1px solid #F78602;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.box_foto_presentation:hover { transform: translateY(-4px); }
.box_foto_presentation a { display: block; width: 100%; height: 100%; }
.box_foto_presentation img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Citations en texte ---------- */
.liste-citations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin: 10px 0 16px;
}
.box_cit_presentation {
    border: 1px solid #F78602;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.box_cit_presentation blockquote { margin: 0 0 6px; }
.quote-left, .quote-right { font-size: 1.5em; color: #AAA; font-family: serif; line-height: 0; }
.quote-left { margin-right: 0.2em; }
.quote-right { margin-left: 0.2em; }
.cit-pied { margin: 0 !important; font-size: 0.9em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cit-pied .cit-auteur { display: inline-flex; align-items: center; gap: 6px; color: #1e293b; }
.cit-pied .cit-auteur img { width: 32px; height: 32px; }
.cit-pied .cit-cat {
    font-weight: normal;
    font-size: 0.85em;
    background: #fff1e0;
    color: #9A3412;
    border-radius: 10px;
    padding: 1px 8px;
}
.cit-pied .cit-detail { color: #9A3412; font-size: 0.85em; margin-left: auto; }

/* ---------- Page d'un auteur ---------- */
.auteur-tete { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.auteur-tete img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; }
.cit-autres-sites { background: #fff; border-radius: 8px; padding: 4px 10px 8px; margin: 12px 0; }
.cit-autres-sites ul { margin: 0; }
.cit-autres-sites li a { color: #9A3412; }

/* ---------- Page d'une citation ---------- */
.photocit-presentation {
    max-width: 500px;
    width: calc(100% - 20px);
    margin: 0 auto 8px;
    border-radius: 10px;
    overflow: hidden;
}
.photocit-presentation img { width: 100%; height: auto; display: block; }
.box_presentation_cit {
    width: calc(98% - 10px);
    max-width: 500px;
    margin: 4px auto 10px;
    border: 1px solid #F78602;
    border-radius: 8px;
    background-color: white;
    padding: 8px;
    box-sizing: border-box;
}
.box_presentation_cit blockquote { font-size: 1.05em; margin-bottom: 6px; }
.box_presentation_cit .text-container a { color: #9A3412; }

/* ---------- 404 ---------- */
.image-404 img { max-width: 100%; height: auto; border: 5px solid white; border-radius: 6px; }

/* ---------- Publicité ---------- */
#pub, #encart-local {
    width: 95%;
    max-width: 750px;
    margin: 0.4rem auto;
    font-size: 0.6rem;
    text-align: center;
    border: 2px dashed #9A3412;
    border-radius: 6px;
    background-color: #eee;
}
#pub img, #encart-local img {
    width: 99%;
    max-width: 720px;
    height: auto;
    max-height: 270px;
    object-fit: contain;
    background-color: white;
    margin: 0.5rem auto;
}

/* ---------- Partenaires institutionnels (cbdd/partenaires-pied.php) ---------- */
#partenaires-pied {
    max-width: 1053px;
    text-align: center;
    margin: 0 auto;
    padding: 15px 0;
    background-color: #f9f9f9;
}
#partenaires-pied p {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: bold;
}
#partenaires-pied2 { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; padding: 0 10px; }
#partenaires-pied2 img { height: 50px; width: auto; max-width: 100%; filter: grayscale(100%); opacity: 0.8; transition: all 0.3s ease; }
#partenaires-pied2 img:hover { filter: none; opacity: 1; }

/* ---------- Pied de page ---------- */
#mentions, #reseau {
    background-color: #ddd;
    font-size: 0.8rem;
    padding: 0.4rem;
    margin: 0 auto;
    max-width: 1053px;
    text-align: center;
}
#mentions span a, #reseau span a { font-family: tahoma, sans-serif; font-weight: bold; color: #9A3412; text-decoration: none; }
footer {
    margin: 0 auto;
    padding-top: 1rem;
    max-width: 1053px;
    height: 4rem;
    background-color: #5C5E5F;
    font-size: 0.6rem;
    color: #C8C6C6;
    text-align: center;
}
.clearthis { clear: both; }

@media (max-width: 480px) {
    .grille-images { grid-template-columns: repeat(2, 1fr); }
    .liste-citations { grid-template-columns: 1fr; }
    .box_aut_presentation { width: 100%; }
}

/* ---------- Formulaire de contact (contact.php) ---------- */
.contact-note { background: #fff; border-left: 4px solid #9A3412; border-radius: 6px; padding: 8px 12px; margin: 10px 0; }
.contact-erreurs { background: #fee2e2; color: #991b1b; border-radius: 6px; padding: 8px 12px; margin: 10px 0; }
.contact-erreurs ul { margin: 0; }
.contact-erreurs li { padding-left: 0; }
.contact-ok { background: #dcfce7; color: #166534; font-weight: bold; border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.form-contact {
    background: #fff;
    border: 1px solid #F78602;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    max-width: 640px;
}
.form-contact label { font-weight: bold; display: block; margin: 10px 0 4px; }
.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font: inherit;
}
.form-contact button {
    margin-top: 14px;
    background-color: #9A3412;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
}
.form-contact button:hover { background-color: #7c2d12; }
