/* Archive notices added to the legacy theme. Edit freely. */
.f2v-banner {
    margin: 10px 20px 0;
    padding: 10px 14px;
    border: 1px solid #f5c26b;
    border-radius: 6px;
    background: #fff8e6;
    color: #6b4a00;
    font-size: 13px;
    line-height: 1.5;
}
.f2v-archived-label {
    font-weight: bold;
    color: #ff009a;
}
.f2v-archived-form,
.f2v-archived-page {
    margin: 15px 0;
    padding: 12px 14px;
    border-left: 4px solid #ff009a;
    background: #fdf2f8;
    font-size: 13px;
    line-height: 1.6;
}
.f2v-sidebar-archive {
    height: auto !important;
    line-height: 1.5;
}
.f2v-search-page #search {
    margin: 20px 0 40px;
}

/* Search results (Pagefind UI) in the style of the carnet lists. */
.f2v-search-page .pagefind-ui {
    --pagefind-ui-font: arial, verdana, sans-serif;
    --pagefind-ui-text: #6c6c6c;
    --pagefind-ui-primary: #ff009a;
    --pagefind-ui-border: #bbb;
    --pagefind-ui-border-width: 1px;
    --pagefind-ui-border-radius: 0;
    --pagefind-ui-image-border-radius: 0;
    --pagefind-ui-image-box-ratio: 4 / 3;
    --pagefind-ui-tag: #f6ffdf;
}

.f2v-search-page #search .pagefind-ui__search-input {
    font-family: arial, verdana, sans-serif;
    color: #333;
}

.f2v-search-page #search .pagefind-ui__search-input:focus {
    background-color: #f4ffeb;
    outline: none;
}

.f2v-search-page #search .pagefind-ui__search-clear {
    font-family: verdana, arial, sans-serif;
}

.f2v-search-page .f2v-search-type {
    margin: 10px 0 0;
}

.f2v-search-page #search .f2v-search-type select {
    appearance: auto;
    margin-left: 4px;
    padding: 2px;
    border: 1px solid #bbb;
    background: #fff;
    font: 13px arial, sans-serif;
    color: #4c4c4c;
}

.f2v-search-page #search .pagefind-ui__filter-panel {
    display: none;
}

.f2v-search-page #search .pagefind-ui__message {
    font: bold 15px "trebuchet ms", arial, sans-serif;
    color: #4c4c4c;
}

.f2v-search-page #search .pagefind-ui__result {
    border-top: 0;
    background: url(../images/dotted.gif) repeat-x left top;
    padding: 20px 0;
}

.f2v-search-page #search .pagefind-ui__result-thumb:not(:has(img)) {
    background: url(../images/motif.gif);
}

.f2v-search-page #search .pagefind-ui__result-thumb {
    width: 120px;
    margin-top: 2px;
}

.f2v-search-page #search .pagefind-ui__result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f2v-search-page #search .pagefind-ui__result-inner {
    display: flex;
    flex-direction: column;
}

.f2v-search-page #search .pagefind-ui__result-tags {
    order: -1;
    margin: 0 0 2px;
    padding: 0;
}

.f2v-search-page #search .pagefind-ui__result-tag {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 0;
}

.f2v-search-page #search .pagefind-ui__result-tag::before {
    content: attr(data-label);
    font: 9px arial, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
}

.f2v-search-page #search .pagefind-ui__result-title {
    margin: 0 0 3px;
    padding: 0 0 1px;
    border-bottom: 1px solid #ccc;
}

.f2v-search-page #search .pagefind-ui__result-link {
    font: bold 15px "trebuchet ms", arial, sans-serif;
    color: #ff009a;
    text-decoration: none;
}

.f2v-search-page #search .pagefind-ui__result-link:hover {
    text-decoration: underline;
}

.f2v-search-page #search .pagefind-ui__result-excerpt {
    margin-top: 6px;
    font: 13px/1.5 arial, verdana, sans-serif;
    color: #6c6c6c;
}

.f2v-search-page #search .pagefind-ui__result-nested .pagefind-ui__result-title {
    border-bottom: 0;
}

.f2v-search-page #search .pagefind-ui__result-nested .pagefind-ui__result-link {
    font-size: 13px;
    color: #4d80ce;
    text-decoration: underline;
}

.f2v-search-page #search .pagefind-ui__result-nested .pagefind-ui__result-link::before {
    content: "";
    top: 6px;
    right: calc(100% + 6px);
    width: 4px;
    height: 5px;
    background: url(../images/puce.gif);
}

.f2v-search-page #search mark {
    background: none;
    color: #4c4c4c;
    font-weight: bold;
}

.f2v-search-page #search .pagefind-ui__button {
    height: auto;
    padding: 6px 0;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #f6ffdf;
    font: bold 14px "trebuchet ms", arial, sans-serif;
    color: #4c4c4c;
}
/* As wide as the longest line of the archive notice below it. */
#droite .f2v-search {
    display: flex;
    gap: 4px;
    width: 280px;
}

#droite .f2v-search input {
    box-sizing: border-box;
    height: 26px;
    margin: 0;
}

#droite .f2v-search .text {
    flex: 1;
    min-width: 0;
    width: auto;
}

/* Photos now come from the CDN in higher resolution: keep the legacy display size without distortion. */
:where(#conteneur img[width][height]) {
    height: auto;
    object-fit: cover;
}

/* Sidebar archive block */
#droite ul.f2v-links {
    margin: 6px 0 15px;
    padding-left: 18px;
    list-style: disc;
    line-height: 1.8;
}

/* The forum menu (recent posts, unanswered topics...) is gone: keep its spacing. */
.pun #recherche_rapide {
    margin-bottom: 25px;
}

.f2v-forum-archive {
    margin: 0 0 15px;
}

.f2v-forum-archive ul.f2v-links {
    margin: 6px 0 0;
    padding-left: 18px;
    list-style: disc;
}

/* The legacy shadow of the right column starts abruptly at the top: fade it in. */
@media (min-width: 900px) {
    #droite {
        background-image: linear-gradient(#fff, rgba(255, 255, 255, 0) 80px), url(../images/bk-gauche.gif);
        background-repeat: no-repeat;
        background-position: left top;
    }
}

/* Carnet panorama and its caption: width 100% plus their border or padding overflowed the column. */
#panoramique img,
#intro_photo p {
    box-sizing: border-box;
}

/* The caption follows the photo, whose height depends on the ratio of the CDN image (it was pinned at the bottom of a
   278px box made for a 250px photo, which left a gap). */
#intro_photo img {
    display: block;
}

#intro_photo p {
    position: static;
}

/* Photos of a carnet: three columns over the whole width of the section titles. */
.wmedia_simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.wmedia_simple img.photo {
    display: block;
    width: 100% !important; /* responsive.css: img.photo { width: auto !important } */
}

.wmedia_simple hr.clear {
    display: none;
}

/* Contact form (src/components/ContactForm.astro). */
.f2v-contact-website {
    position: absolute;
    left: -9999px;
}

.f2v-contact-result {
    margin: 15px 0;
    padding: 10px 15px;
    border: 1px solid #a5c400;
    background: #f6ffdf;
    color: #4c4c4c;
    font-weight: bold;
}

.f2v-contact-result.f2v-contact-error {
    border-color: #ff009a;
    background: #fff0f8;
}

/* Image of another site that is gone (src/lib/external-images.mjs). */
.f2v-image-gone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    max-width: 100%;
    height: 120px;
    background: url(../images/motif.gif);
    border: 1px solid #ddd;
    color: #999;
    font-size: 11px;
    vertical-align: middle;
}

/* Forum topics: the subject is the h1 with the look of the legacy h2, "Forum de voyage" keeps the look of the legacy h1. */
#punwrap .f2v-forum-title {
    color: #06F;
    font-family: trebuchet ms, arial;
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

#punwrap h1.f2v-forum-topic {
    margin: 0 0 15px 0;
    clear: both;
    font-family: trebuchet ms, arial;
    font-size: 18px;
    font-weight: bold;
    color: #4c4c4c;
    padding: 0;
    width: 100%;
    font-variant: small-caps;
    background: url(../images/h2-bk.gif) repeat-x 0px 7px;
}

#punwrap h1.f2v-forum-topic span {
    background: #fff;
    padding: 0 6px 0 5px;
    margin-left: 10px;
}
