/* Se divertir — « La galerie ». Aplats unis : blanc, mur crème, terre cuite, indigo. */
.gl {
    --blanc: #fff; --mur: #f6f1ea; --encre: #1b1a17; --gris: #75706a; --trait: #e3ddd4;
    --terre: #a4532a; --indigo: #1f2b55;
    --serif: "Cormorant Garamond", Georgia, serif; --sans: Montserrat, Helvetica, sans-serif;
    background: var(--blanc); color: var(--encre); font-family: var(--sans);
    overflow-x: clip;
}
.gl *, .gl *::before, .gl *::after { box-sizing: border-box; }
.gl h2, .gl h3 { text-transform: none !important; letter-spacing: 0 !important; text-align: left !important; }
.gl h2::before, .gl h2::after, .gl h3::before, .gl h3::after { display: none !important; }
.gl a { text-decoration: none !important; }
.gl ul, .gl ol { list-style: none; margin: 0; padding: 0; }
.gl li::before { display: none !important; }
.gl-in { max-width: 1200px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem); }

/* Rubriques : onglets à l'italique, filet sous la rubrique courante */
.gl-rub ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--trait); }
.gl-rub li { margin: 0; padding: 0; }
.gl-rub a { position: relative; display: inline-block; padding: .3rem 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gris) !important; transition: color .2s; }
.gl-rub a:hover { color: var(--encre) !important; }
.gl-rub a[aria-current] { color: var(--terre) !important; }
.gl-rub a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1rem - 1px); height: 2px; background: var(--terre); }

/* Chapô en lettrine */
.gl-intro { max-width: 860px; margin: clamp(3rem, 6vw, 4.5rem) auto; text-align: center; }
.gl-intro p { margin: 0; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.35; color: var(--encre); }

/* Plan de visite */
.gl-plan { margin: 0 0 4rem; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--mur); }
.gl-plan-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.gl .gl-plan-tete h2 { margin: 0 !important; font-family: var(--serif) !important; font-weight: 600 !important; font-size: clamp(1.7rem, 3vw, 2.3rem) !important; color: var(--encre) !important; }
.gl-plan-tete label { display: inline-flex; align-items: center; gap: .6rem; margin: 0; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); }
.gl-plan-tete select { margin: 0; width: auto; height: auto; padding: .55rem 2.2rem .55rem .8rem; border: 1px solid var(--encre); border-radius: 0; background-color: var(--blanc); font: 500 .9rem var(--sans); color: var(--encre); }
.gl-salles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--encre); border-left: 1px solid var(--encre); }
.gl-salles button {
    --t: var(--encre);
    display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-height: 118px;
    margin: 0; padding: 1rem 1.1rem; border: 0; border-right: 1px solid var(--encre); border-bottom: 1px solid var(--encre); border-radius: 0;
    background: var(--blanc); color: var(--encre); cursor: pointer; text-align: left; transition: background .2s, color .2s;
}
.gl-salles small { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--t); }
.gl-salles span { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; font-weight: 600; }
.gl-salles em { margin-top: auto; font-style: normal; font-size: .78rem; color: var(--gris); }
.gl-salles button:hover { background: var(--mur); }
.gl-salles button.est-actif { background: var(--t); color: var(--blanc); }
.gl-salles button.est-actif small, .gl-salles button.est-actif em { color: var(--blanc); }

/* Salles */
.gl-salle { --t: var(--terre); margin: 0 0 4rem; }
.gl-salle[hidden] { display: none; }
.gl .gl-salle-t { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 1.8rem !important; padding-bottom: 1rem !important; border-bottom: 1px solid var(--encre); font-family: var(--serif) !important; font-weight: 600 !important; font-size: clamp(2rem, 4vw, 3rem) !important; line-height: 1 !important; color: var(--encre) !important; }
.gl-salle-t small { font-family: var(--sans); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--t); }
.gl-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }

/* Cartel */
.gl-cartel { display: flex; flex-direction: column; }
.gl-cartel[hidden] { display: none; }
.gl-oeuvre { position: relative; aspect-ratio: 4 / 3; margin-bottom: 1.1rem; background: var(--mur); display: grid; place-items: center; overflow: hidden; }
.gl-oeuvre::before { content: ""; position: absolute; inset: 18px; background: var(--t); transition: inset .5s cubic-bezier(.2, .8, .2, 1); }
.gl-oeuvre span { position: relative; width: 64px; height: 64px; color: var(--blanc); }
.gl-oeuvre svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.gl-cartel:hover .gl-oeuvre::before { inset: 0; }
/* Photo encadrée : passe-partout crème, liseré de la couleur de la salle au survol */
.gl-oeuvre.a-photo { margin: 0 0 1.1rem; padding: 18px; }
.gl-oeuvre.a-photo::before { display: none; }
.gl-oeuvre.a-photo img { position: absolute; inset: 18px; display: block; width: calc(100% - 36px); height: calc(100% - 36px); max-width: none; object-fit: cover; outline: 0 solid var(--t); outline-offset: 0; transition: outline-width .35s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.gl-cartel:hover .gl-oeuvre.a-photo img { outline-width: 6px; }
.gl-meta { margin: 0 0 .3rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--t); }
.gl .gl-cartel h3 { margin: 0 0 .25rem !important; font-family: var(--serif) !important; font-style: italic; font-weight: 600 !important; font-size: 1.6rem !important; line-height: 1.12 !important; color: var(--encre) !important; }
.gl-tech { margin: 0 0 .8rem; font-size: .8rem; color: var(--gris); }
.gl-txt { margin: 0 0 1rem; font-size: .93rem; line-height: 1.65; color: #3d3a35; }
.gl-collection { margin: -.4rem 0 .9rem; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--terre); }
.gl-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding-top: .8rem; border-top: 1px solid var(--trait); }
.gl-act a { font-size: .8rem; font-weight: 600; color: var(--encre) !important; border-bottom: 1px solid var(--t); padding-bottom: .1rem; transition: color .2s; }
.gl-act a:hover { color: var(--t) !important; }
.gl-vide { padding: 2rem 0; color: var(--gris); font-style: italic; text-align: center; }

/* Apparition */
.gl.anim .gl-cartel { opacity: 0; transform: translateY(16px); }
.gl.anim .gl-cartel.on { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }

/* Guide de visite */
.gl-guide { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--encre); }
.gl .gl-guide h2 { margin: 0 !important; font-family: var(--serif) !important; font-weight: 600 !important; font-size: clamp(2rem, 4vw, 2.8rem) !important; line-height: 1 !important; color: var(--encre) !important; }
.gl-guide li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; margin: 0; padding: 1.2rem 0; border-bottom: 1px solid var(--trait); }
.gl-guide li:first-child { padding-top: 0; }
.gl-guide b { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--terre); }
.gl .gl-guide h3 { margin: 0 0 .3rem !important; font-size: 1rem !important; font-weight: 700 !important; color: var(--encre) !important; }
.gl-guide p { margin: 0; font-size: .93rem; line-height: 1.6; color: #3d3a35; }

/* Partenaire : aplat indigo */
.gl-dd { background: var(--indigo); color: var(--blanc); }
.gl-dd-in { max-width: 900px; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
.gl-dd-sur { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: #e9b48f; }
.gl .gl-dd h2 { margin: .6rem 0 .7rem !important; font-family: var(--serif) !important; font-weight: 600 !important; font-size: clamp(2rem, 4vw, 2.9rem) !important; line-height: 1.05 !important; color: var(--blanc) !important; text-align: center !important; }
.gl-dd p { margin: 0 auto 1.6rem; max-width: 60ch; line-height: 1.7; opacity: .9; }
.gl-dd a { display: inline-block; padding: 1rem 1.7rem; background: var(--terre); color: var(--blanc) !important; font-weight: 600; letter-spacing: .04em; transition: background .2s, color .2s; }
.gl-dd a:hover { background: var(--blanc); color: var(--indigo) !important; }

.gl-cta { max-width: 900px; margin: clamp(2.5rem, 5vw, 4rem) auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
.gl-cta h2 { margin: 0 0 .4rem !important; font-family: "Cormorant Garamond", Georgia, serif !important; font-weight: 600 !important; font-size: clamp(1.7rem, 3vw, 2.2rem) !important; color: #1b1a17 !important; text-align: center !important; text-transform: none !important; }
.gl-cta h2::before, .gl-cta h2::after { display: none !important; }
.gl-cta p { margin: 0 0 1rem; color: #555; }
.gl-cta a { display: inline-block; padding: .9rem 1.5rem; border: 1px solid #1b1a17; color: #1b1a17 !important; font-weight: 600; text-decoration: none !important; transition: background .2s, color .2s; }
.gl-cta a:hover { background: #1b1a17; color: #fff !important; }

@media (max-width: 1000px) {
    .gl-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-guide { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
    .gl-rub ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .gl-rub ul::-webkit-scrollbar { display: none; }
    .gl-rub a { white-space: nowrap; }
    .gl-salles { grid-template-columns: 1fr 1fr; }
    .gl-salles button { min-height: 100px; }
    .gl-grille { grid-template-columns: 1fr; }
    .gl-plan-tete label, .gl-plan-tete select { width: 100%; }
    .gl-plan-tete select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .gl.anim .gl-cartel { opacity: 1; transform: none; } }
