/* ==========================================================
   ARCHIE — PERSONNALISATION DU THÈME FOUNDATION
   ========================================================== */

:root {
    --archie-menu-width: 260px;
    --archie-menu-color: #354b5e;
    --archie-menu-hover: #49657c;
    --archie-menu-active: #243746;
    --archie-button-primary: #354b5e;
   --archie-button-primary-hover: #49657c;
   --archie-button-secondary: #b59a65;
   --archie-button-secondary-hover: #c8ad78;
    --archie-shadow:
        0 3px 6px rgba(0, 0, 0, 0.18),
        0 10px 20px rgba(0, 0, 0, 0.14),
        0 20px 35px rgba(0, 0, 0, 0.08);

    --archie-shadow-hover:
        0 6px 10px rgba(0, 0, 0, 0.22),
        0 18px 30px rgba(0, 0, 0, 0.17),
        0 30px 48px rgba(0, 0, 0, 0.10);
}


/* ==========================================================
   1. MASQUAGE DE CERTAINES MÉTADONNÉES
   ========================================================== */

#content .property[data-property-term="dcterms:identifier"],
#content .property[data-property-term="dcterms:tableOfContents"],
#content .property[data-property-term="dcterms:isPartOf"] {
    display: none !important;
}


/* ==========================================================
   2. SUPPRESSION GÉNÉRALE DU CADRE BLEU
   ========================================================== */

#content img,
#content img.thumbnail,
#content .thumbnail,
#content a.thumbnail,
#content .resource-link img {
    border: 0 !important;
    outline: 0 !important;
}


/* Supprimer également le cadre porté par le lien */

#content a[href*="/item/"]:has(img),
#content a[href*="/item-set/"]:has(img) {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* ==========================================================
   3. EFFET 3D GLOBAL SUR LES VIGNETTES
   ========================================================== */

#content .resource img,
#content .resource-link img,
#content img.thumbnail,
#content a[href*="/item/"] img,
#content a[href*="/item-set/"] img {
    border: 0 !important;
    border-radius: 5px;
    box-shadow: var(--archie-shadow) !important;
    transform: translateY(0);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Soulèvement au passage de la souris */

#content .resource:hover img,
#content .resource-link:hover img,
#content a[href*="/item/"]:hover img,
#content a[href*="/item-set/"]:hover img {
    transform: translateY(-5px);
    box-shadow: var(--archie-shadow-hover) !important;
}

/* Repère accessible pour la navigation au clavier */

#content a[href*="/item/"]:focus-visible,
#content a[href*="/item-set/"]:focus-visible {
    outline: 3px solid #087b94 !important;
    outline-offset: 5px;
}

/* ==========================================================
   4. TABLEAU DES RESSOURCES LIÉES TRANSFORMÉ EN GRILLE
   Cible uniquement les tableaux contenant des liens d’items
   ========================================================== */

#content table:has(tbody a[href*="/item/"]) {
    display: block !important;
    width: 100% !important;
    margin: 0;
    border: 0 !important;
    background: transparent !important;
}

/* Intitulé « Contenus avec… » */

#content table:has(tbody a[href*="/item/"]) caption {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 1rem 0 !important;
    text-align: left !important;
    white-space: normal !important;
    font-weight: 600;
}

/* Masquer les en-têtes « Titre » et « Classe » */

#content table:has(tbody a[href*="/item/"]) thead {
    display: none !important;
}

/* Grille de quatre colonnes */

#content table:has(tbody a[href*="/item/"]) tbody {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

/* Une carte par délibération */

#content table:has(tbody a[href*="/item/"]) tbody tr {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;

    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 7px;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.10),
        0 8px 18px rgba(0, 0, 0, 0.08) !important;

    transition: box-shadow 0.25s ease;
}

/* Renforcer le relief de la carte au survol */

#content table:has(tbody a[href*="/item/"]) tbody tr:hover {
    box-shadow:
        0 5px 9px rgba(0, 0, 0, 0.15),
        0 15px 28px rgba(0, 0, 0, 0.12) !important;
}

/* Réinitialiser les cellules du tableau */

#content table:has(tbody a[href*="/item/"]) tbody td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Masquer la colonne « Classe » */

#content table:has(tbody a[href*="/item/"]) tbody td:nth-child(2) {
    display: none !important;
}

/* Vignette au-dessus du titre */

#content table:has(tbody a[href*="/item/"]) tbody td:first-child,
#content table:has(tbody a[href*="/item/"]) .resource-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 0.9rem;
}

/* Dimensions des images de délibérations */

#content table:has(tbody a[href*="/item/"]) tbody td:first-child img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 210px !important;
    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;
    background: #f4f2ed;

    border: 0 !important;
    border-radius: 5px;
    box-shadow: var(--archie-shadow) !important;
}

/* Titres des délibérations */

#content table:has(tbody a[href*="/item/"]) tbody td:first-child a,
#content table:has(tbody a[href*="/item/"]) .resource-name {
    display: block;
    width: 100%;
    min-width: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ==========================================================
   5. AFFICHAGE RESPONSIVE
   ========================================================== */

/* Tablettes : deux colonnes */

@media screen and (max-width: 1000px) {
    #content table:has(tbody a[href*="/item/"]) tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Téléphones : une colonne */

@media screen and (max-width: 600px) {
    #content table:has(tbody a[href*="/item/"]) tbody {
        grid-template-columns: 1fr !important;
    }

    #content table:has(tbody a[href*="/item/"])
    tbody td:first-child img {
        height: 250px !important;
    }
}

/* ==========================================================
   BANDE LATÉRALE DU THÈME FOUNDATION
   ========================================================== */

/* Couleur générale de la bande latérale */

body.vertical-menu,
body.vertical-menu header {
    background-color: var(--archie-menu-color) !important;
}

/* Liens du menu */

body.vertical-menu header a,
body.vertical-menu header .vertical.menu a {
    color: #fff !important;
}

/* Survol des liens */

body.vertical-menu header .vertical.menu a:hover,
body.vertical-menu header .vertical.menu a:focus {
    color: #fff !important;
    background-color: var(--archie-menu-hover) !important;
}

/* Page active */

body.vertical-menu header .vertical.menu .active > a,
body.vertical-menu header .vertical.menu .is-active > a {
    color: #fff !important;
    background-color: var(--archie-menu-active) !important;
}

/* Bouton de recherche */

body.vertical-menu header #search-submit,
body.vertical-menu header button[type="submit"] {
    color: #fff !important;
    background-color: var(--archie-menu-active) !important;
}

body.vertical-menu header #search-submit:hover,
body.vertical-menu header button[type="submit"]:hover {
    background-color: var(--archie-menu-hover) !important;
}

/* ==========================================================
   LARGEUR DU MENU — ORDINATEURS UNIQUEMENT
   ========================================================== */

@media screen and (min-width: 64em) {

    /* Bande latérale */

    body.vertical-menu header {
        flex: 0 0 var(--archie-menu-width) !important;
        width: var(--archie-menu-width) !important;
        max-width: var(--archie-menu-width) !important;
        padding: 1rem !important;
        box-sizing: border-box;
        align-self: stretch;
    }

    /* Zone principale */

    body.vertical-menu #content {
        flex: 0 0 calc(100% - var(--archie-menu-width)) !important;
        width: calc(100% - var(--archie-menu-width)) !important;
        max-width: calc(100% - var(--archie-menu-width)) !important;
        min-width: 0;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Pied de page aligné avec le contenu */

    body.vertical-menu footer {
        width: calc(100% - var(--archie-menu-width)) !important;
        max-width: calc(100% - var(--archie-menu-width)) !important;
        margin-left: var(--archie-menu-width) !important;
        box-sizing: border-box;
    }

    /* Logo adapté à la nouvelle largeur */

    body.vertical-menu header .site-title img {
        display: block;
        width: 100% !important;
        max-width: 220px !important;
        height: auto !important;
        margin: 0 auto 1.5rem;
    }
}

/* ==========================================================
   PAGE D'UNE COLLECTION
   ========================================================== */

/* Masquer les titres "Collection" et "Contenus" */
body.item.resource.browse.item-set #content > h3,
body.item.resource.browse.item-set #content .item-set-items > h3 {
    display: none !important;
}

/* ==========================================================
   TITRES PRINCIPAUX — TOUTES LES PAGES DU SITE
   ========================================================== */

/*
 * 1. Pages personnalisées Omeka
 * 2. Fiches de contenus : registres et délibérations
 * 3. Pages de collections
 * 4. Pages Parcourir
 */

body.page #blocks .block-pageTitle > h1,
body.page #blocks .block-pageTitle > h2,
body.item.resource.show #content .resource-title > h2,
body.media.resource.show #content .resource-title > h2,
body.item.resource.browse.item-set #content > h2:first-of-type,
body.item.resource.browse:not(.item-set) #content > h2:first-of-type,
body.item-set.resource.browse #content > h2:first-of-type {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;

    color: #354b5e !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(1.5rem, 1.8vw, 2.05rem) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;

    margin: 1.25rem 0 1.75rem !important;
    padding: 0.65rem 1.25rem !important;

    background: linear-gradient(
        90deg,
        rgba(181, 154, 101, 0.22) 0%,
        rgba(181, 154, 101, 0.06) 55%,
        transparent 100%
    ) !important;

    border: 0 !important;
    border-left: 6px solid #b59a65 !important;
    border-radius: 3px !important;

    text-shadow: 0 1px 0 #ffffff !important;
    box-shadow: none !important;
}

/* Trait décoratif sous les titres */
body.page #blocks .block-pageTitle > h1::after,
body.page #blocks .block-pageTitle > h2::after,
body.item.resource.show #content .resource-title > h2::after,
body.media.resource.show #content .resource-title > h2::after,
body.item.resource.browse.item-set #content > h2:first-of-type::after,
body.item.resource.browse:not(.item-set) #content > h2:first-of-type::after,
body.item-set.resource.browse #content > h2:first-of-type::after {
    content: "";
    display: block;
    width: 110px;
    height: 3px;
    margin-top: 0.65rem;

    background: linear-gradient(
        90deg,
        #b59a65,
        transparent
    );
}

body.item.resource.show #content .resource-title > .label {
    display: none !important;
}
/* ==========================================================
   PAGE « AVERTISSEMENT » — CSS CONSOLIDÉ

   Configuration Omeka requise :
   - classe CSS de la page : avertissement
   - classe du bloc Titre : archie-page-title
   - classe du bloc Asset : archie-construction-image
   - classe du bloc HTML : archie-avertissement
   - mode de mise en page : Grille, 12 colonnes
   - Titre : position Auto, étendue 12
   - Asset : position 1, étendue 7
   - HTML : position 8, étendue 5

   La grille native d’Omeka place les blocs côte à côte.
   Ce CSS ne redéfinit volontairement pas #blocks.
   ========================================================== */

body.page.avertissement {
    --archie-bleu: #354b5e;
    --archie-dore: #b59a65;
    --archie-texte: #2f3942;
    --archie-papier: #fffdf9;
    --archie-clair: #f4f7f8;
    --archie-rayon: 12px;
    --archie-hauteur: 520px;
}

/* ---------- Titre de page ---------- */

body.page.avertissement .archie-page-title h1,
body.page.avertissement .archie-page-title h2 {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 1.25rem 0 1.75rem;
    padding: 0.65rem 1.25rem;
    color: var(--archie-bleu) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 1.8vw, 2.05rem);
    font-weight: 500;
    line-height: 1.2;
    background: linear-gradient(
        90deg,
        rgba(181, 154, 101, 0.22),
        transparent
    );
    border: 0 !important;
    border-left: 6px solid var(--archie-dore) !important;
    border-radius: 3px;
}

/* ---------- Deux blocs de même hauteur ---------- */

body.page.avertissement .archie-construction-image,
body.page.avertissement .archie-avertissement {
    width: 100% !important;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- Illustration ---------- */

body.page.avertissement .archie-construction-image {
    overflow: hidden;
    background: var(--archie-papier);
    border: 1px solid rgba(181, 154, 101, 0.42);
    border-radius: var(--archie-rayon);
    box-shadow:
        0 18px 38px rgba(35, 49, 60, 0.18),
        0 4px 10px rgba(35, 49, 60, 0.10);
}

body.page.avertissement .archie-construction-image figure,
body.page.avertissement .archie-construction-image p,
body.page.avertissement .archie-construction-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page.avertissement .archie-construction-image img {
    display: block !important;
    width: 100% !important;
    height: var(--archie-hauteur) !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 0 !important;
    border-radius: calc(var(--archie-rayon) - 1px) !important;
    box-shadow: none !important;
}

/* ---------- Carte de texte ---------- */

body.page.avertissement .archie-avertissement .archie-notice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: var(--archie-hauteur);
    box-sizing: border-box;
    margin: 0 !important;
    padding: clamp(1.4rem, 2.3vw, 2.25rem) !important;
    color: var(--archie-texte);
    text-align: center;
    background: var(--archie-papier);
    border: 1px solid rgba(181, 154, 101, 0.40);
    border-radius: var(--archie-rayon);
    box-shadow:
        0 18px 38px rgba(35, 49, 60, 0.13),
        0 4px 10px rgba(35, 49, 60, 0.08);
}

body.page.avertissement .archie-status {
    align-self: center;
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.4rem 0.9rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--archie-dore);
    border-radius: 999px;
}

body.page.avertissement .archie-notice > h2 {
    margin: 0 0 0.8rem;
    color: var(--archie-bleu);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 1.45vw, 1.65rem);
    font-weight: 500;
    line-height: 1.2;
}

body.page.avertissement .archie-introduction {
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
}

body.page.avertissement .archie-notice-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1rem 0;
    text-align: left;
}

body.page.avertissement .archie-notice-card {
    padding: 1rem 1.1rem;
    background: var(--archie-clair);
    border: 0;
    border-top: 4px solid var(--archie-dore);
    border-radius: 8px;
}

body.page.avertissement .archie-notice-card h3 {
    margin: 0 0 0.4rem;
    color: var(--archie-bleu);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

body.page.avertissement .archie-notice-card p {
    margin: 0;
    line-height: 1.45;
}

body.page.avertissement .archie-notice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

body.page.avertissement .archie-button {
    display: inline-block;
    box-sizing: border-box;
    padding: 0.7rem 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page.avertissement .archie-button-primary {
    color: #fff !important;
    background: var(--archie-bleu);
}

body.page.avertissement .archie-button-secondary {
    color: var(--archie-bleu) !important;
    background: #fff;
    border: 2px solid var(--archie-bleu);
}

body.page.avertissement .archie-button:hover,
body.page.avertissement .archie-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(35, 49, 60, 0.20);
}

body.page.avertissement .archie-notice-footer {
    margin: 0.9rem 0 0;
    color: #6a5540;
    font-style: italic;
    font-weight: 600;
}

/* ---------- Tablettes et téléphones ----------
   Omeka empile lui-même les blocs de la grille sur petit écran. */

@media screen and (max-width: 900px) {
    body.page.avertissement {
        --archie-hauteur: auto;
    }

    body.page.avertissement .archie-construction-image,
    body.page.avertissement .archie-avertissement {
        height: auto;
    }

    body.page.avertissement .archie-construction-image img {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9;
    }

    body.page.avertissement .archie-avertissement .archie-notice {
        height: auto;
        min-height: 0;
        padding: 1.5rem 1.1rem !important;
    }
}

@media screen and (max-width: 560px) {
    body.page.avertissement .archie-notice-actions {
        flex-direction: column;
    }

    body.page.avertissement .archie-button {
        width: 100%;
    }
}


/* ==========================================================
   PIED DE PAGE — LIENS TEXTE UNIQUEMENT
   ========================================================== */

/*
 * Les quatre liens du pied de page restent de simples liens texte.
 * Aucun bouton, aucune icône, aucun cadre, aucune ombre.
 * Sur ordinateur : une seule ligne centrée.
 * Sur petit écran : retour à la ligne automatique puis empilement
 * sur smartphone pour conserver une bonne lisibilité.
 */

footer > ul:first-of-type {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.55rem 1.1rem !important;

    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;

    margin: 22px auto !important;
    padding: 10px 20px !important;

    list-style: none !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

footer > ul:first-of-type > li {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

footer > ul:first-of-type > li::marker {
    content: "";
}

/* Liens texte */

footer > ul:first-of-type > li > a {
    display: inline !important;

    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #354b5e !important;
    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;

    transform: none !important;
    transition: color 0.2s ease;
}

/* Suppression de toute ancienne icône */

footer > ul:first-of-type > li > a::before,
footer > ul:first-of-type > li > a::after {
    display: none !important;
    content: none !important;
}

/* Séparateur discret entre les liens */

footer > ul:first-of-type > li:not(:last-child)::after {
    content: "•";
    margin-left: 1.1rem;
    color: #b59a65;
    font-weight: 400;
}

/* Survol et navigation clavier */

footer > ul:first-of-type > li > a:hover,
footer > ul:first-of-type > li > a:focus {
    color: #b59a65 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: underline !important;
}

footer > ul:first-of-type > li > a:focus-visible {
    outline: 2px solid #087b94;
    outline-offset: 3px;
}

/* Signature éventuelle sous les liens */

footer > p:last-child {
    margin: 12px auto 24px !important;
    text-align: center;
    color: #52606b;
    font-size: 0.9rem;
}

/* Smartphone */

@media screen and (max-width: 700px) {
    footer > ul:first-of-type {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 10px 12px !important;
    }

    footer > ul:first-of-type > li:not(:last-child)::after {
        display: none !important;
    }
}


/* ==========================================================
   FORMULAIRE DE RECHERCHE GUIDÉE
   ========================================================== */

body.page.recherche-guidee #blocks .block-html > h2 {
    display: block;
    width: 100%;
    box-sizing: border-box;

    margin: 0.25rem 0 1.75rem;
    padding: 0.45rem 0 0.65rem 1rem;

    color: #354b5e !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(1.2rem, 1.4vw, 1.55rem) !important;
    font-weight: 500 !important;
    line-height: 1.25;

    background: transparent;
    border: 0 !important;
    border-left: 4px solid #b59a65 !important;
}

/* Petit trait décoratif doré */

body.page.recherche-guidee #blocks .block-html > h2::after {
    content: "";
    display: block;
    width: 75px;
    height: 2px;
    margin-top: 0.55rem;
    background: linear-gradient(90deg, #b59a65, transparent);
}

/* Formulaire */

#archive-search-form {
    width: 100%;
    max-width: 1050px;
}

/* Chaque paragraphe forme une ligne : intitulé puis champ. */

#archive-search-form > p:has(> label) {
    display: grid;
    align-items: center;
    margin: 0 0 18px;
}

/* Neutralise les retours à la ligne du bloc HTML. */

#archive-search-form > p:has(> label) > br {
    display: none;
}

/* Intitulés des critères */

#archive-search-form label {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    margin: 0;
    padding: 0.3rem 0;

    color: #354b5e !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Repère doré devant chaque critère */

#archive-search-form label::before {
    content: "";
    flex: 0 0 4px;
    width: 4px;
    height: 1.5em;

    background: #b59a65;
    border-radius: 2px;
}

/* Champs de saisie */

#archive-search-form input[type="text"] {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 42px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 8px 12px;

    color: #2f3942;
    background: #fffdf9;
    border: 1px solid rgba(53, 75, 94, 0.35);
    border-radius: 4px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#archive-search-form input[type="text"]:focus {
    border-color: #b59a65;
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 154, 101, 0.18);
}

/* Boutons */

/* ==========================================================
   BOUTONS DES BLOCS HTML
   Style réutilisable sur les différentes pages
   ========================================================== */

#content .block-html button,
#content .block-html input[type="submit"],
#content .block-html input[type="button"],
#content .block-html input[type="reset"],
#content .block-html a[role="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 135px;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0.8rem 1.5rem;

    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;

    background: var(--archie-button-primary);
    border: 2px solid var(--archie-button-primary);
    border-radius: 7px;

    cursor: pointer;

    box-shadow:
        0 4px 9px rgba(35, 49, 60, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Boutons secondaires : Effacer, Réinitialiser, Annuler */

#content .block-html button[type="reset"],
#content .block-html input[type="reset"] {
    color: #243746 !important;
    background: var(--archie-button-secondary);
    border-color: var(--archie-button-secondary);
}

/* Survol du bouton principal */

#content .block-html button:not([type="reset"]):hover,
#content .block-html button:not([type="reset"]):focus,
#content .block-html input[type="submit"]:hover,
#content .block-html input[type="submit"]:focus,
#content .block-html input[type="button"]:hover,
#content .block-html input[type="button"]:focus,
#content .block-html a[role="button"]:hover,
#content .block-html a[role="button"]:focus {
    color: #ffffff !important;
    background: var(--archie-button-primary-hover);
    border-color: var(--archie-button-primary-hover);

    transform: translateY(-2px);

    box-shadow:
        0 7px 14px rgba(35, 49, 60, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Survol du bouton secondaire */

#content .block-html button[type="reset"]:hover,
#content .block-html button[type="reset"]:focus,
#content .block-html input[type="reset"]:hover,
#content .block-html input[type="reset"]:focus {
    color: #243746 !important;
    background: var(--archie-button-secondary-hover);
    border-color: var(--archie-button-secondary-hover);

    transform: translateY(-2px);
}

/* Repère visible pour la navigation au clavier */

#content .block-html button:focus-visible,
#content .block-html input:focus-visible,
#content .block-html a[role="button"]:focus-visible {
    outline: 3px solid #087b94;
    outline-offset: 3px;
}

/* Ordinateurs et grandes tablettes */

@media screen and (min-width: 701px) {
    #archive-search-form > p:has(> label) {
        grid-template-columns: 280px minmax(300px, 1fr);
        column-gap: 24px;
    }

    #archive-search-form label {
        white-space: nowrap;
    }

    #archive-search-form > p:last-of-type {
        margin: 5px 0 0 304px;
    }
}

/* Téléphones */

@media screen and (max-width: 700px) {
    #archive-search-form > p:has(> label) {
        grid-template-columns: 1fr;
        row-gap: 7px;
    }

    #archive-search-form label {
        white-space: normal;
    }

    #archive-search-form > p:last-of-type {
        margin: 5px 0 0;
    }
}

body.page.avertissement .archie-avertissement .archie-notice {
    background: linear-gradient(
        135deg,
        #fbf7ef 0%,
        #f3e8d6 55%,
        #ead8bc 100%
    );

    border-color: #d2b98e;
}


/* ==========================================================
   MÉTADONNÉES DES FICHES DE RESSOURCES
   Style identique aux critères de recherche guidée
   ========================================================== */

/* Largeur de l’ensemble des métadonnées */

body.resource.show #content .full-width-main > dl {
    width: 100%;
    max-width: 1050px;
    margin: 0;
}


/* Une ligne par rubrique */

body.resource.show #content
.full-width-main > dl > .property {
    display: grid;
    grid-template-columns: 280px minmax(300px, 1fr);
    column-gap: 24px;
    align-items: start;

    margin: 0 0 18px;
}


/* Intitulés : Objet, Date, Identifiant, thèmes… */

body.resource.show #content
.full-width-main > dl > .property > dt {
    grid-column: 1;

    display: flex;
    align-items: center;
    gap: 0.6rem;

    margin: 0;
    padding: 0.55rem 0;

    color: #354b5e !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.3;

    white-space: nowrap;
}


/* Repère doré devant chaque rubrique */

body.resource.show #content
.full-width-main > dl > .property > dt::before {
    content: "";

    flex: 0 0 4px;
    width: 4px;
    height: 1.5em;

    background: #b59a65;
    border-radius: 2px;
}


/* Valeurs des métadonnées */

body.resource.show #content
.full-width-main > dl > .property > dd {
    grid-column: 2;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;
    min-height: 46px;
    box-sizing: border-box;

    margin: 0 0 7px !important;
    padding: 0.65rem 0.9rem !important;

    color: #2f3942;
    font-size: 1.05rem;
    line-height: 1.45;

    background: #fffdf9;
    border: 1px solid rgba(53, 75, 94, 0.35);
    border-radius: 4px;
}


/* La valeur occupe toute la largeur du cadre */

body.resource.show #content
.full-width-main > dl > .property > dd .value-content {
    display: block;
    width: 100%;
    min-width: 0;
}


/* Liens contenus dans les métadonnées */

body.resource.show #content
.full-width-main > dl > .property > dd a {
    color: #365f7d;
    font-weight: 600;
    text-decoration: none;
}

body.resource.show #content
.full-width-main > dl > .property > dd a:hover,
body.resource.show #content
.full-width-main > dl > .property > dd a:focus {
    color: #087f7b;
    text-decoration: underline;
}
body.resource.show #content
.full-width-main > dl > .property > dd .resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;

    width: 100%;
    min-width: 0;
}

body.resource.show #content
.full-width-main > dl > .property > dd .resource-link img {
    flex: 0 0 64px;

    width: 64px !important;
    height: 64px;
    margin: 0 !important;

    object-fit: contain;
    border-radius: 4px;
}

body.resource.show #content
.full-width-main > dl > .property > dd .resource-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Affichage sur téléphone */

@media screen and (max-width: 700px) {

    body.resource.show #content
    .full-width-main > dl > .property {
        grid-template-columns: 1fr;
        row-gap: 7px;
    }

    body.resource.show #content
    .full-width-main > dl > .property > dt,
    body.resource.show #content
    .full-width-main > dl > .property > dd {
        grid-column: 1;
    }

    body.resource.show #content
    .full-width-main > dl > .property > dt {
        padding-bottom: 0.2rem;
        white-space: normal;
    }
}

/* =========================================================
   PAGE RECHERCHE AVANCÉE ARCHIE
   ========================================================= */

/* Cadre général du formulaire */
body.search-page #advanced-search-form {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    background: #f8f5ef;
    border: 1px solid #d8d0c3;
    border-radius: 4px;
}

/* Chaque ligne du formulaire */
body.search-page #advanced-search-form .field {
    display: grid;
    grid-template-columns: minmax(180px, 230px) 1fr;
    gap: 1.25rem;
    align-items: center;
    margin: 0 0 1rem;
}

/* Zone contenant le libellé */
body.search-page #advanced-search-form .field-meta {
    margin: 0;
    padding: 0.45rem 0.75rem;
    border-left: 3px solid #c5a45b;
}

/* Libellés : même esprit que les métadonnées */
body.search-page #advanced-search-form label {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #294e69;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Zone contenant le champ */
body.search-page #advanced-search-form .inputs {
    width: 100%;
    margin: 0;
}

/* Champs texte et listes */
body.search-page #advanced-search-form input[type="text"],
body.search-page #advanced-search-form input[type="search"],
body.search-page #advanced-search-form input[type="date"],
body.search-page #advanced-search-form input[type="number"],
body.search-page #advanced-search-form select,
body.search-page #advanced-search-form textarea {
    width: 100%;
    min-height: 2.7rem;
    margin: 0;
    padding: 0.6rem 0.8rem;
    color: #273746;
    background: #fffdfa;
    border: 1px solid #d5cec2;
    border-radius: 3px;
    box-shadow: none;
    font-size: 1rem;
}

/* Mise en évidence du champ actif */
body.search-page #advanced-search-form input:focus,
body.search-page #advanced-search-form select:focus,
body.search-page #advanced-search-form textarea:focus {
    border-color: #2d6587;
    box-shadow: 0 0 0 2px rgba(45, 101, 135, 0.16);
    outline: none;
}

/* Texte d’exemple */
body.search-page #advanced-search-form ::placeholder {
    color: #777;
    font-style: italic;
    opacity: 1;
}

/* Boutons */
body.search-page #advanced-search-form .search-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

body.search-page #advanced-search-form button,
body.search-page #advanced-search-form input[type="submit"] {
    width: auto;
    min-width: 8rem;
    padding: 0.65rem 1.1rem;
    color: #fff;
    background: #176fa3;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

body.search-page #advanced-search-form button:hover,
body.search-page #advanced-search-form input[type="submit"]:hover {
    background: #124f74;
}

/* Résultats */
body.search-page .search-results-wrapper {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #d8d0c3;
}

/* Adaptation aux écrans étroits */
@media screen and (max-width: 700px) {
    body.search-page #advanced-search-form .field {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    body.search-page #advanced-search-form .search-form-buttons {
        justify-content: stretch;
    }

    body.search-page #advanced-search-form button,
    body.search-page #advanced-search-form input[type="submit"] {
        flex: 1;
    }
}
/* Suppression de tous les boutons propres à la page d'accueil */
body.page.avertissement .archie-notice-actions,
body.page.avertissement .archie-actions-exterieures {
    display: none !important;
}

/* ==========================================================
   PAGE D'ACCUEIL ARCHIE — VERSION PATRIMONIALE
   ========================================================== */

/* ----------------------------------------------------------
   Bloc d'introduction
   ---------------------------------------------------------- */

body.page.avertissement .archie-home-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;

    height: var(--archie-hauteur);
    box-sizing: border-box;

    padding: clamp(1.8rem, 2.5vw, 2.8rem);

    color: #2f3942;

    background:
        linear-gradient(
            135deg,
            #fffdf9 0%,
            #f7f0e3 58%,
            #efe0c6 100%
        );

    border: 1px solid rgba(181, 154, 101, 0.45);
    border-radius: 12px;

    box-shadow:
        0 18px 38px rgba(35, 49, 60, 0.13),
        0 4px 10px rgba(35, 49, 60, 0.08);
}


/* Petit intitulé supérieur */

body.page.avertissement .archie-home-kicker {
    margin: 0 0 0.75rem !important;

    color: #9b7b3f;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* Grand titre du bloc */

body.page.avertissement .archie-home-intro h2,
body.page.avertissement .archie-home-patrimoine h2 {
    margin: 0 0 1rem;

    color: #354b5e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 1.55vw, 1.75rem);
    font-weight: 500;
    line-height: 1.15;
}


/* Texte d'accroche */

body.page.avertissement .archie-home-lead {
    margin: 0 0 1.2rem !important;

    color: #354b5e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.45;
}


/* Paragraphes */

body.page.avertissement .archie-home-intro p {
    line-height: 1.6;
}


/* Phrase finale */

body.page.avertissement .archie-home-note {
    margin-top: 1.3rem !important;
    padding-top: 1rem;

    color: #765f35;

    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;

    border-top: 1px solid rgba(181, 154, 101, 0.45);
}


/* ==========================================================
   SECTION DÉCOUVRIR LES COLLECTIONS
   ========================================================== */

body.page.avertissement .archie-home-discover {
    width: 100%;
    margin: 3.5rem 0 2rem;
}


/* Titre de section */

body.page.avertissement .archie-home-section-title {
    margin-bottom: 1.8rem;
    text-align: center;
}

body.page.avertissement .archie-home-section-title > span {
    display: block;

    margin-bottom: 0.45rem;

    color: #9b7b3f;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.page.avertissement .archie-home-section-title h2 {
    margin: 0;

    color: #354b5e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 1.5vw, 1.7rem);
    font-weight: 500;
}


/* Les trois cartes */

body.page.avertissement .archie-home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}


/* Carte */

body.page.avertissement .archie-home-card {
    position: relative;

    min-width: 0;

    padding: 1.8rem;

    background: #fffdf9;

    border: 1px solid rgba(181, 154, 101, 0.38);
    border-top: 4px solid #b59a65;
    border-radius: 7px;

    box-shadow:
        0 5px 15px rgba(35, 49, 60, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.page.avertissement .archie-home-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 24px rgba(35, 49, 60, 0.14);
}


/* Numéro */

body.page.avertissement .archie-home-number {
    margin-bottom: 0.8rem;

    color: rgba(181, 154, 101, 0.75);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}


/* Titre carte */

body.page.avertissement .archie-home-card h3 {
    margin: 0 0 0.8rem;

    color: #354b5e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 500;
}


/* Texte carte */

body.page.avertissement .archie-home-card p {
    min-height: 7.2em;
    margin: 0 0 1.2rem;

    color: #44515b;

    line-height: 1.55;
}


/* Liens des cartes */

body.page.avertissement .archie-home-card a {
    color: #365f7d !important;

    font-weight: 700;
    text-decoration: none !important;
}

body.page.avertissement .archie-home-card a::after {
    content: " →";
}

body.page.avertissement .archie-home-card a:hover,
body.page.avertissement .archie-home-card a:focus {
    color: #b59a65 !important;
}


/* ==========================================================
   BLOC PATRIMONIAL INFÉRIEUR
   ========================================================== */

body.page.avertissement .archie-home-patrimoine {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2rem;

    margin: 3rem 0;
    padding: clamp(1.7rem, 3vw, 2.8rem);

    background: #f5f1e9;

    border-left: 5px solid #b59a65;
}


/* Texte principal */

body.page.avertissement .archie-home-patrimoine-text p {
    line-height: 1.65;
}


/* Encadré évolution */

body.page.avertissement .archie-home-evolution {
    align-self: center;

    padding: 1.4rem;

    color: #354b5e;

    background: #ffffff;

    border: 1px solid rgba(181, 154, 101, 0.35);
    border-radius: 6px;
}

body.page.avertissement .archie-home-evolution strong {
    display: block;

    margin-bottom: 0.55rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

body.page.avertissement .archie-home-evolution p {
    margin: 0;
    line-height: 1.5;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width: 900px) {

    body.page.avertissement .archie-home-intro {
        height: auto;
    }

    body.page.avertissement .archie-home-cards {
        grid-template-columns: 1fr;
    }

    body.page.avertissement .archie-home-card p {
        min-height: 0;
    }

    body.page.avertissement .archie-home-patrimoine {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   PAGE D'ACCUEIL ARCHIE
   STYLE UNIFORME POUR TOUS LES BLOCS HTML
   ========================================================== */

/* Carte commune à tous les blocs HTML */
body.page.avertissement #blocks .block-html {
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* Contenu interne de chaque bloc HTML */
body.page.avertissement #blocks .block-html > * {
    box-sizing: border-box;
}


/* Tous les conteneurs principaux des blocs HTML */
body.page.avertissement .archie-home-intro,
body.page.avertissement .archie-home-discover,
body.page.avertissement .archie-home-patrimoine,
body.page.avertissement .archie-avertissement .archie-notice {

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: clamp(1.6rem, 2.4vw, 2.4rem) !important;

    color: #2f3942 !important;

    background:
        linear-gradient(
            135deg,
            #fffdf9 0%,
            #f8f2e7 60%,
            #f1e4cf 100%
        ) !important;

    border: 1px solid rgba(181, 154, 101, 0.42) !important;
    border-left: 5px solid #b59a65 !important;
    border-radius: 10px !important;

    box-shadow:
        0 12px 28px rgba(35, 49, 60, 0.10),
        0 3px 8px rgba(35, 49, 60, 0.06) !important;
}


/* ==========================================================
   TITRES — STYLE IDENTIQUE
   ========================================================== */

body.page.avertissement .archie-home-intro h2,
body.page.avertissement .archie-home-discover h2,
body.page.avertissement .archie-home-patrimoine h2,
body.page.avertissement .archie-avertissement h2 {

    margin: 0 0 1rem !important;

    color: #354b5e !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(1.3rem, 1.5vw, 1.7rem) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}


/* ==========================================================
   PETITS SURTITRES
   ========================================================== */

body.page.avertissement .archie-home-kicker,
body.page.avertissement .archie-home-section-title > span {

    display: block !important;

    margin: 0 0 0.65rem !important;

    color: #9b7b3f !important;

    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
}


/* ==========================================================
   PARAGRAPHES
   ========================================================== */

body.page.avertissement .archie-home-intro p,
body.page.avertissement .archie-home-discover p,
body.page.avertissement .archie-home-patrimoine p,
body.page.avertissement .archie-avertissement p {

    margin: 0 0 1rem !important;

    color: #37434d !important;

    font-size: 1rem !important;
    line-height: 1.6 !important;
}


/* Dernier paragraphe sans marge inutile */

body.page.avertissement .archie-home-intro p:last-child,
body.page.avertissement .archie-home-discover p:last-child,
body.page.avertissement .archie-home-patrimoine p:last-child,
body.page.avertissement .archie-avertissement p:last-child {
    margin-bottom: 0 !important;
}


/* ==========================================================
   LIENS
   ========================================================== */

body.page.avertissement .archie-home-intro a,
body.page.avertissement .archie-home-discover a,
body.page.avertissement .archie-home-patrimoine a,
body.page.avertissement .archie-avertissement a {

    color: #365f7d !important;

    font-weight: 700 !important;
    text-decoration: none !important;
}

body.page.avertissement .archie-home-intro a:hover,
body.page.avertissement .archie-home-discover a:hover,
body.page.avertissement .archie-home-patrimoine a:hover,
body.page.avertissement .archie-avertissement a:hover {

    color: #b59a65 !important;
    text-decoration: underline !important;
}


/* ==========================================================
   BLOC "PORTAIL EN DÉVELOPPEMENT"
   Il devient une simple partie de la même carte
   ========================================================== */

body.page.avertissement .archie-home-evolution {

    margin: 1.5rem 0 0 !important;
    padding: 1rem 0 0 !important;

    color: #354b5e !important;

    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid rgba(181, 154, 101, 0.45) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.page.avertissement .archie-home-evolution strong {

    display: block;

    margin: 0 0 0.45rem;

    color: #354b5e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 600;
}


/* ==========================================================
   BLOC PATRIMONIAL
   Neutralisation de son ancienne grille particulière
   ========================================================== */

body.page.avertissement .archie-home-patrimoine {

    display: block !important;

    grid-template-columns: none !important;
    gap: 0 !important;
}


/* ==========================================================
   ESPACEMENT ENTRE LES BLOCS
   ========================================================== */

body.page.avertissement #blocks .block-html {
    margin-bottom: 1.6rem !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width: 900px) {

    body.page.avertissement .archie-home-intro,
    body.page.avertissement .archie-home-discover,
    body.page.avertissement .archie-home-patrimoine,
    body.page.avertissement .archie-avertissement .archie-notice {

        height: auto !important;
        padding: 1.4rem !important;
    }
}
/* ==========================================================
   PAGE D'ACCUEIL ARCHIE
   TOUS LES BLOCS HTML = MÊME CARTE PATRIMONIALE
   ========================================================== */


/* ----------------------------------------------------------
   1. STYLE COMMUN À TOUS LES BLOCS HTML
   ---------------------------------------------------------- */

body.page.avertissement #blocks > .block-html,
body.page.avertissement #blocks .block-html {

    box-sizing: border-box !important;

    padding: clamp(1.6rem, 2.3vw, 2.3rem) !important;

    color: #2f3942 !important;

    background:
        linear-gradient(
            135deg,
            #fffdf9 0%,
            #f8f2e7 60%,
            #f1e4cf 100%
        ) !important;

    border: 1px solid rgba(181, 154, 101, 0.42) !important;
    border-left: 5px solid #b59a65 !important;
    border-radius: 10px !important;

    box-shadow:
        0 12px 28px rgba(35, 49, 60, 0.10),
        0 3px 8px rgba(35, 49, 60, 0.06) !important;
}


/* ----------------------------------------------------------
   2. NEUTRALISER LES ANCIENS FONDS INTERNES
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html .archie-home-intro,
body.page.avertissement #blocks .block-html .archie-home-discover,
body.page.avertissement #blocks .block-html .archie-home-patrimoine,
body.page.avertissement #blocks .block-html .archie-home-patrimoine-text,
body.page.avertissement #blocks .block-html .archie-home-evolution,
body.page.avertissement #blocks .block-html .archie-notice {

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* ----------------------------------------------------------
   3. TITRES H2
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html h2 {

    margin: 0 0 1rem !important;

    color: #354b5e !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(1.3rem, 1.5vw, 1.7rem) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}


/* ----------------------------------------------------------
   4. TITRES H3
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html h3 {

    margin: 1.2rem 0 0.55rem !important;

    color: #354b5e !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.08rem !important;
    font-weight: 500 !important;
}


/* ----------------------------------------------------------
   5. PETITS SURTITRES
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html .archie-home-kicker,
body.page.avertissement #blocks .block-html .archie-home-section-title > span {

    display: block !important;

    margin: 0 0 0.7rem !important;

    color: #9b7b3f !important;

    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
}


/* ----------------------------------------------------------
   6. PARAGRAPHES
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html p {

    margin: 0 0 1rem !important;

    color: #37434d !important;

    font-size: 1rem !important;
    line-height: 1.6 !important;
}

body.page.avertissement #blocks .block-html p:last-child {
    margin-bottom: 0 !important;
}


/* ----------------------------------------------------------
   7. LIENS TEXTE
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html a {

    color: #365f7d !important;

    font-weight: 700 !important;
    text-decoration: none !important;
}

body.page.avertissement #blocks .block-html a:hover,
body.page.avertissement #blocks .block-html a:focus {

    color: #b59a65 !important;
    text-decoration: underline !important;
}


/* ----------------------------------------------------------
   8. BLOC "PORTAIL EN DÉVELOPPEMENT"
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html .archie-home-evolution {

    margin-top: 1.5rem !important;
    padding-top: 1rem !important;

    border-top: 1px solid rgba(181, 154, 101, 0.45) !important;
}

body.page.avertissement #blocks .block-html .archie-home-evolution strong {

    display: block;

    margin-bottom: 0.45rem;

    color: #354b5e !important;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}


/* ----------------------------------------------------------
   9. SUPPRIMER LA GRILLE INTERNE DE L'ANCIEN BLOC PATRIMONIAL
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html .archie-home-patrimoine {

    display: block !important;

    grid-template-columns: none !important;
    gap: 0 !important;
}


/* ----------------------------------------------------------
   10. ESPACE ENTRE LES BLOCS
   ---------------------------------------------------------- */

body.page.avertissement #blocks .block-html {
    margin-bottom: 1.5rem !important;
}


/* ----------------------------------------------------------
   11. RESPONSIVE
   ---------------------------------------------------------- */

@media screen and (max-width: 900px) {

    body.page.avertissement #blocks .block-html {

        padding: 1.35rem !important;
    }
}
/* Masquer uniquement le formulaire de tri */
form.sorting {
    display: none !important;
}
/* Masquer "Recherche avancée" uniquement sur les pages des registres / collections */
body.item-set a.advanced-search {
    display: none !important;
}
.resource-values .property[data-property-term="dcterms:title"] {
    display: none !important;
}

/* ==========================================================
   ARCHIE — TYPOGRAPHIE DES TITRES OPTIMISÉE
   Couche finale volontairement placée en fin de fichier.
   Elle harmonise et réduit les titres sur toutes les pages.
   ========================================================== */

:root {
    --archie-title-main: clamp(1.50rem, 1.80vw, 2.05rem);
    --archie-title-section: clamp(1.20rem, 1.40vw, 1.55rem);
    --archie-title-card: clamp(1.05rem, 1.10vw, 1.20rem);
}

/* Titres principaux : pages, ressources, collections, parcours */
body.page #blocks .block-pageTitle > h1,
body.page #blocks .block-pageTitle > h2,
body.item.resource.show #content .resource-title > h2,
body.media.resource.show #content .resource-title > h2,
body.item.resource.browse.item-set #content > h2:first-of-type,
body.item.resource.browse:not(.item-set) #content > h2:first-of-type,
body.item-set.resource.browse #content > h2:first-of-type,
body.page.avertissement .archie-page-title h1,
body.page.avertissement .archie-page-title h2 {
    font-size: var(--archie-title-main) !important;
    line-height: 1.18 !important;
}

/* Titres de sections sur les pages */
body.page.recherche-guidee #blocks .block-html > h2,
body.page.avertissement #blocks .block-html h2,
body.page.avertissement .archie-home-intro h2,
body.page.avertissement .archie-home-discover h2,
body.page.avertissement .archie-home-patrimoine h2,
body.page.avertissement .archie-avertissement h2,
body.page.avertissement .archie-home-section-title h2 {
    font-size: var(--archie-title-section) !important;
    line-height: 1.20 !important;
}

/* Sous-titres / titres de cartes */
body.page.avertissement #blocks .block-html h3,
body.page.avertissement .archie-home-card h3,
body.page.avertissement .archie-notice-card h3 {
    font-size: var(--archie-title-card) !important;
    line-height: 1.25 !important;
}

/* Écrans intermédiaires */
@media screen and (max-width: 1100px) {
    :root {
        --archie-title-main: clamp(1.40rem, 2.1vw, 1.80rem);
        --archie-title-section: clamp(1.15rem, 1.8vw, 1.40rem);
        --archie-title-card: 1.05rem;
    }
}

/* Smartphones */
@media screen and (max-width: 700px) {
    :root {
        --archie-title-main: 1.40rem;
        --archie-title-section: 1.18rem;
        --archie-title-card: 1.02rem;
    }

    body.page #blocks .block-pageTitle > h1,
    body.page #blocks .block-pageTitle > h2,
    body.item.resource.show #content .resource-title > h2,
    body.media.resource.show #content .resource-title > h2,
    body.item.resource.browse.item-set #content > h2:first-of-type,
    body.item.resource.browse:not(.item-set) #content > h2:first-of-type,
    body.item-set.resource.browse #content > h2:first-of-type,
    body.page.avertissement .archie-page-title h1,
    body.page.avertissement .archie-page-title h2 {
        padding: 0.55rem 0.90rem !important;
        margin-bottom: 1.20rem !important;
    }
}
/* ==========================================================
   MASQUER LA MÉTADONNÉE TITRE
   Conserver uniquement le grand titre en haut de la fiche
   ========================================================== */

body.item.resource.show #content
.full-width-main > dl > .property:first-child {
    display: none !important;
}
/* =========================================================
   ARCHIE — GRILLE COMPLÈTE DES TUTORIELS VIDÉO
   Version sans classes HTML
   ========================================================= */


/* ---------------------------------------------------------
   TITRE « TUTORIELS VIDÉO ARCHIE »
   --------------------------------------------------------- */

h3:has(+ div > a[href^="/omeka-s/Clips/"]) {
    margin: 35px 0 22px !important;
    padding: 0 0 10px !important;

    color: #173f63 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;

    border-bottom: 2px solid #c89b3c !important;
}


/* ---------------------------------------------------------
   GRILLE PRINCIPALE : QUATRE COLONNES
   --------------------------------------------------------- */

div:has(> a[href^="/omeka-s/Clips/"]) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 20px !important;

    width: 100% !important;
    margin: 0 0 40px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   CARTE DE CHAQUE TUTORIEL
   --------------------------------------------------------- */

div:has(> a[href^="/omeka-s/Clips/"])
> a[href^="/omeka-s/Clips/"] {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;

    color: #173f63 !important;
    background: #fffdf7 !important;

    border: 1px solid #d6c59f !important;
    border-radius: 8px !important;

    box-shadow: 0 4px 12px rgba(25, 48, 67, 0.18) !important;
    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease !important;
}


/* ---------------------------------------------------------
   IMAGE DE LA VIGNETTE
   --------------------------------------------------------- */

div:has(> a[href^="/omeka-s/Clips/"])
> a[href^="/omeka-s/Clips/"]
> img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
}


/* ---------------------------------------------------------
   TITRE SOUS CHAQUE VIGNETTE
   --------------------------------------------------------- */

div:has(> a[href^="/omeka-s/Clips/"])
> a[href^="/omeka-s/Clips/"]
> span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;

    min-height: 60px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;

    color: #173f63 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}


/* ---------------------------------------------------------
   EFFET AU SURVOL
   --------------------------------------------------------- */

div:has(> a[href^="/omeka-s/Clips/"])
> a[href^="/omeka-s/Clips/"]:hover {
    color: #173f63 !important;
    border-color: #b7872e !important;

    box-shadow: 0 8px 20px rgba(25, 48, 67, 0.26) !important;
    text-decoration: none !important;

    transform: translateY(-4px) !important;
}


/* ---------------------------------------------------------
   NAVIGATION AU CLAVIER
   --------------------------------------------------------- */

div:has(> a[href^="/omeka-s/Clips/"])
> a[href^="/omeka-s/Clips/"]:focus-visible {
    outline: 3px solid #c89b3c !important;
    outline-offset: 3px !important;
}


/* ---------------------------------------------------------
   ÉCRANS INTERMÉDIAIRES : TROIS COLONNES
   --------------------------------------------------------- */

@media screen and (max-width: 1300px) {
    div:has(> a[href^="/omeka-s/Clips/"]) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}


/* ---------------------------------------------------------
   TABLETTES : DEUX COLONNES
   --------------------------------------------------------- */

@media screen and (max-width: 900px) {
    div:has(> a[href^="/omeka-s/Clips/"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}


/* ---------------------------------------------------------
   TÉLÉPHONES : UNE COLONNE
   --------------------------------------------------------- */

@media screen and (max-width: 600px) {
    h3:has(+ div > a[href^="/omeka-s/Clips/"]) {
        font-size: 1.4rem !important;
    }

    div:has(> a[href^="/omeka-s/Clips/"]) {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    div:has(> a[href^="/omeka-s/Clips/"])
    > a[href^="/omeka-s/Clips/"]
    > span {
        min-height: 56px !important;
        font-size: 15px !important;
    }
}