html, body {
    margin: 0;
    padding: 0;
    background: #575555;
    color: #f2f2f2;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.55;
}

a { color: #e5dc28; }
a:hover { color: #fff; }

.site-header {
    background: #555353;
    border-bottom: 1px solid #9a9a9a;
}

.brand-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 20px 10px;
    display: flex;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    width: auto;
    margin: 0 auto;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 1px solid #282828;
    box-shadow: 0 0 0 1px #777;
    flex: 0 0 auto;
}

.brand-text {
    display: block;
    width: auto;
}

.brand-line {
    display: block;
    color: #ffffff;
    line-height: 1.02;
    text-decoration: none !important;
    white-space: nowrap;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: normal;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: left;
}

.brand-title {
    font-size: 25px;
}

.brand-subtitle {
    font-size: 25px;
    margin-top: 0;
}

.brand-title,
.brand-title:visited,
.brand-title:hover,
.brand-title:focus,
.brand-subtitle,
.brand-subtitle:visited,
.brand-subtitle:hover,
.brand-subtitle:focus {
    color: #ffffff;
    text-decoration: none !important;
}

.main-nav {
    text-align: center;
    padding: 10px 8px 12px;
    border-top: 1px solid #6a6a6a;
}

.main-nav a {
    color: #d3d3d3;
    text-decoration: none;
    padding: 8px 14px;
    display: inline-block;
    font-size: 17px;
}

.main-nav a.active,
.main-nav a:hover {
    color: #fff;
}

main {
    max-width: 1280px;
    margin: 0 auto;
}

.hero img {
    width: 100%;
    display: block;
    max-height: 470px;
    object-fit: cover;
}

.section-panel {
    background: #494f58;
    margin: 66px 12px 0;
    padding: 24px 20px 34px;
}

.section-title {
    margin: 0 0 24px;
    text-align: center;
    font-weight: normal;
    font-size: 24px;
}

.latest-grid,
.artists-grid,
.blog-grid {
    display: grid;
    gap: 28px;
}

.latest-grid {
    grid-template-columns: repeat(3, 1fr);
}

.artists-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 980px;
    margin: 0 auto;
}

.card,
.artist-card,
.blog-card,
.content-card,
.admin-block {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.card img,
.blog-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.card h3,
.blog-card h2,
.artist-card h2 {
    margin: 0 0 10px;
    font-weight: normal;
    font-size: 20px;
}

.artist-card a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

.artist-card a:hover,
.artist-card a:focus {
    text-decoration: none;
}

.artist-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
}

.artist-card h2,
.artist-home-title,
.artist-home-name,
.artist-home-specialty {
    color: #fff;
    text-decoration: none;
}

.artist-card h2.artist-home-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}

.artist-home-name,
.artist-home-specialty {
    display: block;
}

.artist-home-specialty {
    font-size: 13px;
    opacity: 0.9;
}

/* Page d'accueil : événements et artistes */
.home-events-section .blog-date {
    color: #e6e6e6;
}

.home-events-section .card h3 a,
.home-events-section .card h3 a:visited {
    color: #ffffff;
    text-decoration: none;
}

.home-events-section .card h3 a:hover,
.home-events-section .card h3 a:focus {
    color: #ffffff;
    text-decoration: none;
}

.home-artists-section {
    background: transparent;
    padding-left: 20px;
    padding-right: 20px;
}

.home-artists-section .artist-home-card {
    background: #696969;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 18px 16px 16px;
}

.home-artists-section .artist-home-card a,
.home-artists-section .artist-home-card a:visited,
.home-artists-section .artist-home-card a:hover,
.home-artists-section .artist-home-card a:focus {
    color: #ffffff;
    text-decoration: none;
}

.content-card {
    max-width: 980px;
    margin: 44px auto;
    padding: 28px;
}

.content-card h1,
.content-card h2 {
    font-weight: normal;
}

.blog-list {
    max-width: 980px;
    margin: 44px auto;
}

.blog-card {
    margin-bottom: 28px;
}

.blog-date {
    color: #e5dc28;
    margin: 0 0 10px;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #222;
    margin-bottom: 14px;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.artist-head {
    display: grid;
    grid-template-columns: 185px 1fr;
    gap: 28px;
    align-items: start;
}

.artist-chapeau {
    width: 185px;
    height: 220px;
    object-fit: cover;
}

/* Pages artistes : les œuvres restent entières, sans recadrage et sans fond blanc.
   La largeur s'adapte automatiquement si l'artiste n'a que 1 ou 2 œuvres. */
.works-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    align-items: flex-start;
}

.works-count-1 .work-card { flex: 0 1 58%; max-width: 58%; }
.works-count-2 .work-card { flex: 0 1 44%; max-width: 44%; }
.works-count-3 .work-card { flex: 0 1 calc((100% - 28px) / 3); max-width: calc((100% - 28px) / 3); }

.work-card {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: center;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.work-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 310px;
    object-fit: contain;
    object-position: center center;
    background: transparent;
    border: 0;
}

.work-card.verticale img,
.work-card.horizontale img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 310px;
    object-fit: contain;
}

.admin-page {
    max-width: 1050px;
    margin: 34px auto;
}

.admin-block {
    margin-bottom: 26px;
}

.admin-block h2 {
    margin-top: 0;
    color: #e5dc28;
    font-weight: normal;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
}

.form-full { grid-column: 1 / -1; }

label {
    display: block;
    margin-bottom: 6px;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="email"],
textarea,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #777;
    background: #f7f7f7;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

textarea { min-height: 120px; }

.work-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.upload-box {
    border: 1px solid rgba(255,255,255,.16);
    padding: 15px;
    background: rgba(0,0,0,.12);
}

button,
.button-like {
    background: #d3a51c;
    color: #222;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.button-like:hover { background: #f0ce49; color: #000; }

.delete-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delete-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 9px 0;
}

.delete-button {
    background: #6f1f1f;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 30px;
    text-align: center;
}

.notice {
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #284c32;
    border: 1px solid #57a36b;
}

.error {
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #622525;
    border: 1px solid #a34c4c;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.map-box {
    background: #eee;
    color: #333;
    min-height: 320px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
}

.map-box iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

.bio-layout {
    display: grid;
    grid-template-columns: 185px 1fr;
    gap: 28px;
    align-items: start;
}

.bio-photo {
    width: 185px;
    height: 220px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.2);
}

.bio-text p:first-child {
    margin-top: 0;
}

.login-card {
    max-width: 430px;
    margin: 70px auto;
    padding: 28px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
}

.admin-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logout-link {
    font-size: 14px;
}

.site-footer {
    text-align: center;
    padding: 30px 15px;
    color: #d0d0d0;
    font-size: 14px;
}

.footer-admin-link,
.footer-admin-link:visited {
    color: inherit;
    text-decoration: none;
    opacity: 0.82;
}

.footer-admin-link:hover,
.footer-admin-link:focus {
    color: inherit;
    text-decoration: none;
    opacity: 1;
}

@media (max-width: 800px) {
    .latest-grid,
    .artists-grid,
    .works-grid,
    .work-upload-grid,
    .form-grid,
    .contact-grid,
    .artist-head {
        grid-template-columns: 1fr;
    }
    .brand { gap: 10px; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-text { width: auto; }
    .brand-title { font-size: 21px; }
    .brand-subtitle { font-size: 21px; }
    .bio-layout { grid-template-columns: 1fr; }
}

/* Nouvelle organisation de nouveau.php : ajout à gauche, suppression à droite */
.admin-page {
    max-width: 1220px;
}

.admin-section-pair {
    margin: 34px 0 42px;
    padding-top: 20px;
    border-top: 4px solid rgba(211, 165, 28, 0.85);
}

.admin-section-title {
    margin: 0 0 18px;
    padding: 10px 16px;
    background: rgba(211, 165, 28, 0.16);
    border-left: 8px solid #d3a51c;
    color: #f0ce49;
    font-weight: normal;
    letter-spacing: 1px;
}

.admin-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.admin-block h3 {
    margin-top: 0;
    color: #e5dc28;
    font-weight: normal;
    font-size: 22px;
}

.admin-two-columns .work-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-two-columns .upload-box {
    padding: 12px;
}

.admin-two-columns .upload-box h4 {
    margin: 0 0 10px;
    color: #fff;
    font-weight: normal;
}

.admin-two-columns input[type="file"] {
    max-width: 100%;
}

@media (max-width: 900px) {
    .admin-two-columns {
        grid-template-columns: 1fr;
    }
}

/* v7 : nouveau.php vraiment en deux colonnes globales : Ajouter à gauche, Supprimer à droite */
.admin-main-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.admin-column-title {
    margin: 0 0 20px;
    padding: 14px 18px;
    text-align: center;
    background: rgba(211, 165, 28, 0.22);
    border: 1px solid rgba(211, 165, 28, 0.55);
    color: #f0ce49;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 1px;
}

.admin-family {
    margin: 0 0 34px;
    padding: 18px;
    border-top: 6px solid #d3a51c;
    border-bottom: 1px solid rgba(255,255,255,0.22);
    background: rgba(0,0,0,0.12);
}

.admin-family .admin-section-title {
    margin-bottom: 16px;
}

.admin-family .admin-block {
    margin: 0;
}

.admin-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-work-grid .upload-box {
    padding: 12px;
}

.admin-work-grid .upload-box h4 {
    margin: 0 0 10px;
    color: #fff;
    font-weight: normal;
}

.admin-work-grid input[type="file"] {
    max-width: 100%;
}

@media (max-width: 900px) {
    .admin-main-columns,
    .admin-work-grid {
        grid-template-columns: 1fr;
    }
}


/* v18 : accueil recadré, page événements sans recadrage des affiches */
.latest-grid .card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center center;
    background: #333;
}

.event-card {
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.event-card-no-image {
    grid-template-columns: 1fr;
}

.event-visual {
    width: 100%;
    text-align: center;
}

.event-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.event-visual-vertical img {
    width: auto;
    max-width: 100%;
    max-height: 760px;
}

.event-visual-horizontal img {
    width: 100%;
    height: auto;
}

.event-content h2 {
    margin-top: 0;
}

@media (max-width: 800px) {
    .event-card {
        grid-template-columns: 1fr;
    }
    .event-visual-vertical img {
        width: auto;
        max-width: 100%;
        max-height: none;
    }
    .latest-grid .card img {
        height: 220px;
    }
}

/* v23 : page Expos / Evénements — texte habillé autour du visuel principal */
.blog-list .event-card {
    display: block;
    overflow: hidden;
}

.blog-list .event-card::after {
    content: "";
    display: block;
    clear: both;
}

.blog-list .event-card-no-image {
    display: block;
}

.blog-list .event-visual {
    float: left;
    width: 42%;
    max-width: 430px;
    margin: 0 30px 18px 0;
    text-align: center;
}

.blog-list .event-visual img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.blog-list .event-visual-vertical {
    width: 36%;
    max-width: 360px;
}

.blog-list .event-visual-vertical img {
    width: 100%;
    height: auto;
    max-height: none;
}

.blog-list .event-visual-horizontal {
    width: 48%;
    max-width: 500px;
}

.blog-list .event-content {
    display: block;
}

.blog-list .event-content h2 {
    margin-top: 0;
}

@media (max-width: 800px) {
    .blog-list .event-visual,
    .blog-list .event-visual-vertical,
    .blog-list .event-visual-horizontal {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 18px 0;
    }
}


/* v24 : légendes des œuvres artistes */
.work-card {
    flex-direction: column;
}

.work-caption {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: #e6e6e6;
    text-align: center;
}


/* v26 : texte enrichi administration */
.rich-editor textarea {
    width: 100%;
}
.rich-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}
.rich-toolbar button {
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.10);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.rich-toolbar button:hover {
    background: #d3a51c;
    color: #222;
}
.artist-bio strong,
.blog-card strong,
.work-caption strong {
    font-weight: bold;
}
.artist-bio em,
.blog-card em,
.work-caption em {
    font-style: italic;
}


/* v27 : champs longs plus hauts et artistes avec 1, 2 ou 3 œuvres */
.admin-page textarea,
.admin-page .rich-editor textarea {
    min-height: 164px;
}

@media (max-width: 800px) {
    .works-grid {
        flex-wrap: wrap;
    }
    .works-count-1 .work-card,
    .works-count-2 .work-card,
    .works-count-3 .work-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* v28 : ajustements demandés */
.brand-title,
.brand-title:visited,
.brand-title:hover,
.brand-title:focus {
    color: #d3a51c !important;
    text-decoration: none !important;
}
.brand-subtitle,
.brand-subtitle:visited,
.brand-subtitle:hover,
.brand-subtitle:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}
.artist-works-title {
    text-align: center;
    margin: 30px 0 18px;
    font-weight: normal;
}
.footer-credit {
    margin-top: 2px;
    font-size: 13px;
    opacity: 0.72;
}
.footer-credit a,
.footer-credit a:visited,
.footer-credit a:hover,
.footer-credit a:focus {
    color: inherit;
    text-decoration: none !important;
}
.admin-page {
    max-width: 1500px;
}
.admin-page .rich-editor,
.admin-page .rich-editor textarea,
.admin-page textarea {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* v29 : pied de page sur une ligne, pagination artistes, ordre par glisser-déposer */
.footer-studio-link,
.footer-studio-link:visited,
.footer-studio-link:hover,
.footer-studio-link:focus {
    color: inherit;
    text-decoration: none !important;
}

.artists-grid.artists-sortable .artist-home-card {
    cursor: move;
    user-select: none;
}

.artist-home-card.dragging {
    opacity: 0.45;
}

.home-sort-status {
    max-width: 980px;
    margin: 16px auto 0;
    text-align: center;
    font-size: 13px;
    color: #dddddd;
}

/* v30 : glisser-déposer fiable des artistes depuis la page d'accueil */
.artists-grid.artists-reorder-mode .artist-home-card {
    position: relative;
    min-height: 215px;
}

.artist-drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    cursor: grab;
    line-height: 1;
    font-size: 17px;
    z-index: 5;
}

.artist-drag-handle:active {
    cursor: grabbing;
}

.artists-grid.artists-reorder-mode .artist-card-link {
    pointer-events: auto;
}

.artists-grid.artists-reorder-mode .artist-home-card.dragging {
    opacity: 0.55;
    outline: 2px dashed rgba(255,255,255,0.65);
}

/* v31 : classement artistes vraiment visible et compatible */
.admin-top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.admin-sort-link,
.admin-sort-link:visited,
.admin-sort-link:hover,
.admin-sort-link:focus {
    color: #f0c36a;
    text-decoration: none !important;
    font-size: 13px;
}
.artists-grid.artists-reorder-mode .artist-home-card {
    position: relative;
    padding-top: 48px;
}
.artist-sort-controls {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.artist-drag-handle,
.artist-order-btn {
    border: 1px solid rgba(255,255,255,0.55);
    background: #222222;
    color: #ffffff;
    cursor: grab;
    line-height: 1;
    font-size: 13px;
    border-radius: 4px;
    padding: 7px 9px;
    font-family: Arial, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.artist-drag-handle {
    width: auto;
    height: auto;
    position: static;
}
.artist-order-btn {
    cursor: pointer;
    width: 30px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}
.artist-drag-handle:active {
    cursor: grabbing;
}
.artists-grid.artists-reorder-mode .artist-home-card.dragging {
    opacity: 0.55;
    outline: 2px dashed rgba(255,255,255,0.75);
}

/* v32 : classement artistes fiable + pagination artistes administration */
.artist-sort-notice {
    max-width: 980px;
    margin: 0 auto 16px;
    padding: 10px 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.20);
    color: #ffffff;
    font-size: 14px;
}

.artists-grid.artists-reorder-mode .artist-home-card {
    position: relative;
    padding-top: 52px !important;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    border: 2px solid rgba(240, 195, 106, 0.55) !important;
}

.artists-grid.artists-reorder-mode .artist-home-card:active {
    cursor: grabbing;
}

.artist-reorder-panel {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 40;
    pointer-events: auto;
}

.artist-drag-label {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 4px;
    background: #1f1f1f;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.55);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.artist-order-btn {
    display: inline-block;
    min-width: 32px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.55);
    background: #3a3a3a;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 26px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.artist-order-btn:hover,
.artist-drag-label:hover {
    background: #5a5a5a;
}

.artists-grid.artists-reorder-mode .artist-home-card.dragging {
    opacity: 0.40;
    outline: 3px dashed #f0c36a;
    cursor: grabbing;
}

.home-sort-status {
    max-width: 980px;
    margin: 16px auto 0;
    text-align: center;
    color: #ffffff;
    font-size: 13px;
}

.admin-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-pagination a,
.admin-pagination .current-page {
    display: inline-block;
    min-width: 25px;
    padding: 4px 8px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.35);
}

.admin-pagination a {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.admin-pagination .current-page {
    color: #1f1f1f;
    background: #f0c36a;
    border-color: #f0c36a;
}

/* v33 : page chambre d'hôtes copiée depuis le site d'origine */
.guesthouse-page {
    max-width: 1080px;
}

.guesthouse-page h1 {
    margin-bottom: 8px;
}

.guesthouse-page h2 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #ffffff;
    font-size: 25px;
    font-weight: normal;
    text-align: center;
}

.guesthouse-intro {
    max-width: 920px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
}

.guesthouse-hero {
    margin: 0 auto 26px;
    max-width: 960px;
}

.guesthouse-hero img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.guesthouse-text {
    max-width: 920px;
    margin: 0 auto 28px;
    font-size: 17px;
    line-height: 1.75;
}

.guesthouse-text p {
    margin: 0 0 18px;
}

.guesthouse-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 980px;
    margin: 26px auto 0;
}

.guesthouse-gallery figure {
    margin: 0;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guesthouse-gallery a {
    display: block;
    text-decoration: none;
    cursor: zoom-in;
}

.guesthouse-gallery img {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: contain;
    border: 0;
}

.guesthouse-lightboxes {
    display: block;
}

.guesthouse-lightbox {
    display: none;
}

.guesthouse-lightbox:target {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.guesthouse-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
}

.guesthouse-lightbox figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 94vw;
    max-height: 92vh;
}

.guesthouse-lightbox img {
    display: block;
    max-width: 94vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border: 0;
    box-shadow: 0 12px 50px rgba(0,0,0,0.55);
}

.guesthouse-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    text-align: center;
    font-size: 27px;
    font-weight: normal;
    text-decoration: none !important;
}

@media (max-width: 760px) {
    .guesthouse-page h2 {
        font-size: 21px;
    }

    .guesthouse-intro,
    .guesthouse-text {
        font-size: 16px;
    }

    .guesthouse-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .guesthouse-gallery img {
        height: 130px;
        object-fit: contain;
    }

    .guesthouse-lightbox-close {
        top: 8px;
        right: 8px;
    }
}


/* v35 : chambre d'hôtes — photos entières et lightbox corrigée */
.guesthouse-gallery figure {
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guesthouse-gallery img {
    width: 100%;
    height: 135px;
    object-fit: contain;
}

.guesthouse-lightboxes {
    display: block;
}

@media (max-width: 760px) {
    .guesthouse-gallery img {
        height: 130px;
        object-fit: contain;
    }
}


/* v37 : vidéos en deux colonnes et classement par glisser-déposer */
.videos-page {
    max-width: 1160px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.video-card {
    margin-bottom: 0;
}

.video-card h2 {
    font-size: 23px;
    line-height: 1.18;
}

.video-card .blog-date {
    margin-top: 4px;
}

.video-card .video-frame {
    margin-bottom: 12px;
}

.video-sort-notice {
    max-width: 980px;
    margin: 0 auto 16px;
    padding: 10px 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.20);
    color: #ffffff;
    font-size: 14px;
}

.videos-grid.videos-reorder-mode .video-card {
    position: relative;
    padding-top: 52px !important;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    border: 2px solid rgba(240, 195, 106, 0.55) !important;
}

.videos-grid.videos-reorder-mode .video-card:active {
    cursor: grabbing;
}

.video-reorder-panel {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 40;
    pointer-events: auto;
}

.video-drag-label {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 4px;
    background: #1f1f1f;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.55);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.video-order-btn {
    display: inline-block;
    min-width: 32px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.55);
    background: #3a3a3a;
    color: #ffffff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.video-card.dragging {
    opacity: 0.55;
    outline: 2px dashed rgba(255,255,255,0.75);
}

@media (max-width: 760px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* v40 : page Editions, visuel réduit, titre renforcé */
.editions-page {
    max-width: 1080px;
}

.edition-card {
    margin-bottom: 34px;
}

.edition-header {
    margin-bottom: 18px;
}

.edition-header h2 {
    margin: 0 0 7px;
    font-size: 36px;
    line-height: 1.12;
    font-weight: normal;
}

.edition-subtitle {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.edition-two-columns {
    display: grid;
    grid-template-columns: minmax(110px, 15%) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.edition-visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    margin: 0;
    background: transparent;
}

.edition-text {
    font-size: 16px;
    line-height: 1.62;
}

.edition-text p:first-child {
    margin-top: 0;
}

.edition-text-full {
    max-width: 820px;
}

@media (max-width: 760px) {
    .edition-header h2 {
        font-size: 29px;
    }

    .edition-subtitle {
        font-size: 17px;
    }

    .edition-two-columns {
        grid-template-columns: 1fr;
    }

    .edition-visual img {
        max-width: 240px;
    }
}


/* v45 : logos de réservation en bas de la page chambre d'hôtes */
.guesthouse-booking-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 28px auto 10px;
    padding: 18px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.16);
}

.guesthouse-booking-logos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 70px;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease;
}

.guesthouse-booking-logos a:hover,
.guesthouse-booking-logos a:focus {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.14);
}

.guesthouse-booking-logos img {
    display: block;
    max-width: 120px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.guesthouse-booking-logos a:nth-child(3) img {
    max-width: 54px;
    max-height: 54px;
}

@media (max-width: 760px) {
    .guesthouse-booking-logos {
        gap: 14px;
    }

    .guesthouse-booking-logos a {
        min-width: 96px;
        height: 62px;
    }

    .guesthouse-booking-logos img {
        max-width: 96px;
        max-height: 46px;
    }

    .guesthouse-booking-logos a:nth-child(3) img {
        max-width: 46px;
        max-height: 46px;
    }
}
