/* Compléments propres à la version Symfony */
.flash { position: fixed; z-index: 2000; left: 50%; bottom: 2rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1.4rem; max-width: 92vw; padding: 1.1rem 1.6rem; background: var(--ink); color: var(--white); font-size: 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: upIn .4s ease both; }
.flash-success { border-left: .5rem solid #3bd16f; }
.flash-error { border-left: .5rem solid var(--pink); }
.flash button { border: 0; background: none; color: inherit; font-size: 1.6rem; cursor: pointer; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.site-form { display: grid; gap: 1rem; max-width: 40rem; margin: 2rem auto 0; }
.site-form input[type=text], .site-form input[type=email], .site-form textarea { width: 100%; padding: 1rem 1.2rem; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font: inherit; font-size: 1.1rem; }
.site-form textarea { min-height: 10rem; resize: vertical; }
.site-form input[type=submit] { justify-self: center; min-width: 11.1rem; height: 2.9rem; padding: 0 1.6rem; border: 1px solid #333; background: var(--white); font-size: 1.3rem; cursor: pointer; }
.site-form input[type=submit]:hover { background: var(--ink); color: var(--white); }
.oinfo-hours strong { display: block; }
.oinfo-rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 2rem; }
.oinfo-rules img { height: 7rem; width: auto; }

/* ---------- Blocs du contenu importé de WordPress ---------- */
/* les listes (expositions, événements, sous-pages) prennent toute la largeur, même dans un texte */
.osolo .official:has(.past-grid, .xlist, .press-grid, .evlist) { max-width: none; }
.official .past-grid, .official .xlist, .official .press-grid { margin-left: auto; margin-right: auto; }
.official .pe, .official .xfeature, .official .press-grid a, .official .btn { text-decoration: none; }
.ipanel .past-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 3rem 2.4rem; }
.pe-card { position: relative; display: block; color: var(--ink); }
.pe-card img, .pe-noimg { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pe-noimg { background: linear-gradient(135deg, #00109f, #e62076); }
.pe-card { overflow: hidden; }
.pe-card:hover img { transform: scale(1.04); }
.pe-card h3 { margin-top: 1.3rem; font-size: 1.7rem; line-height: 1.1; }
.pe-card p { font-size: 1.05rem; line-height: 1.35; text-transform: none; }
.pe-tag { display: inline-block; margin-top: 1.2rem; padding: .3rem .7rem; background: var(--pink); color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.pe-card .pe-tag { position: absolute; top: 1rem; left: 1rem; margin: 0; }

.xseasons > .pills { margin: 0 0 3rem; }
.xseason { scroll-margin-top: 6rem; }
.xseason + .xseason { margin-top: 5rem; }
.xseason-title { display: flex; align-items: center; gap: 1.4rem; margin: 4rem 0 2.2rem; font-family: var(--serif) !important; font-weight: 700 !important; font-size: 2.6rem !important; }
.xseason-title::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.xlist { display: grid; gap: 3rem; margin-top: 1rem; }
.xfeature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--ink); color: var(--white); }
.xfeature:nth-child(even) { background: var(--pink); }
.xfeature-img { overflow: hidden; border-right: .45rem solid var(--yellow-2); }
.xfeature-img img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; transition: transform .6s; }
.xfeature:hover .xfeature-img img { transform: scale(1.04); }
.xfeature-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 3.4rem; }
.xfeature-text .pe-tag { margin: 0; background: var(--yellow-2); color: var(--ink); }
.xfeature:nth-child(even) .xfeature-text .pe-tag { background: var(--white); }
.xfeature-text strong { font-family: var(--serif); font-size: 3.2rem; line-height: 1.02; }
.xfeature-dates { font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.xfeature-sum { font-size: 1.15rem; line-height: 1.7; opacity: .9; }
.xfeature .more { margin: auto 0 0; color: inherit; }
.xnone { text-align: center; color: #666; font-size: 1.2rem; }

.isubs { justify-content: center; margin: 0 auto 4rem !important; }
@media (min-width: 761px) { .isubs .pill[aria-current="page"] { background: var(--ink); color: var(--white); } }
.iback { margin: 0 0 3rem; text-align: center; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; }
.iback a { border-bottom: 1px solid currentColor; }
@media (min-width: 761px) { .itabs .pill[aria-current="page"] { background: var(--pink); border-color: var(--pink); color: var(--white); } }
.ihero-meta { margin-top: 1.2rem; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }
.ihero-kicker a { border-bottom: 1px solid currentColor; }
.btn-sc { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 2rem; background: var(--ink); color: var(--white) !important; border: 1px solid var(--ink); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; transition: background .2s, color .2s; }
.btn-sc:hover { background: var(--pink); border-color: var(--pink); }
.site-form .btn-sc { justify-self: center; }
.site-form-inline { grid-template-columns: 1fr auto; align-items: end; }
.sc-video { margin: 2rem 0; } .sc-video video { width: 100%; height: auto; background: #000; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 2rem; margin: 2.4rem 0; }
.press-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.press-grid figcaption { margin-top: .6rem; font-size: 1rem; line-height: 1.4; }
.press-dl { display: block; margin-top: .3rem; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.official img { max-width: 100%; height: auto; }
.official iframe { max-width: 100%; }


/* ---------- Fenêtre d'annonce ---------- */
.popup { position: fixed; width: min(92vw, 36rem); max-height: 90vh; padding: 0; border: 0; overflow: auto; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.popup[open] { animation: upIn .35s ease both; }
.popup::backdrop { background: rgba(0,16,159,.55); }
.popup-close { position: absolute; top: 0; right: 0; z-index: 2; width: 3rem; height: 3rem; border: 0; background: var(--ink); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.popup-close:hover { background: var(--pink); }
.popup-img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; background: #f2f2f2; }
.popup-body { padding: 3.2rem 2.6rem 2.6rem; text-align: center; }
.popup-body:empty { display: none; }
.popup-title { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1.05; margin-bottom: 1.2rem; }
.popup-text { font-size: 1.15rem; line-height: 1.7; }
.popup-text p { margin: 0 0 1rem; } .popup-text img { max-width: 100%; height: auto; }
.popup-btn { margin-top: 1.4rem; }

@media (max-width: 900px) {
  .xfeature { grid-template-columns: 1fr; }
  .xfeature-img { border-right: 0; border-bottom: .45rem solid var(--yellow-2); }
  .xfeature-img img { min-height: 0; aspect-ratio: 4 / 3; }
  .xfeature-text { padding: 2.2rem 1.8rem; } .xfeature-text strong { font-size: 2.4rem; }
  .ipanel .past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.4rem; }
  .pe-card h3 { font-size: 1.25rem; } .xseason-title { font-size: 2rem !important; }
  .site-form-inline { grid-template-columns: 1fr; }
}

/* Boutons dans les textes ([maxbutton] de l'ancien site : Contactez-nous, Télécharger…) */
.btn.btn-sc { width: auto; min-width: 16rem; max-width: 100%; height: auto; min-height: 3.6rem; margin: 1.6rem 0 .4rem; padding: 1rem 2.6rem;
  line-height: 1.2; white-space: nowrap; font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .16em;
  background: var(--ink); color: var(--white) !important; border: 2px solid var(--ink); border-radius: 0; text-decoration: none !important;
  transition: background .25s, border-color .25s, color .25s; }
.btn.btn-sc:hover, .btn.btn-sc:focus-visible { background: var(--pink); border-color: var(--pink); }
.official p:has(> .btn-sc) { text-align: center; }
@media (max-width: 760px) { .btn.btn-sc { white-space: normal; min-width: 0; width: 100%; padding: 1rem 1.2rem; } }
.popup.has-image .popup-body { padding-top: 2.4rem; }

/* ---------- Page Infos pratiques ---------- */
.oinfo-page .oinfo { margin-top: 1rem; }
.oinfo-page .oinfo-hours strong { font-size: 3rem; margin: .4rem 0 1rem; }
.oinfo-page .oinfo-card p { margin: 0 0 1rem; }
.oinfo-label { margin-bottom: .4rem !important; font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #666; }
.oinfo-label + p + .oinfo-label { margin-top: 1.8rem !important; }
.oinfo-page .oinfo-contact a { text-underline-offset: 3px; }
.oinfo-page .oinfo-rules { margin-top: 3rem; padding: 2rem; border: 1px solid #ddd; }
.oinfo-page .oinfo-rules img { height: auto; width: min(100%, 34rem); }
.oinfo-page .oinfo-map { margin-top: 3rem; }
@media (max-width: 760px) { .oinfo-page .oinfo-card { padding: 2rem 1.6rem; } .oinfo-page .oinfo-hours strong { font-size: 2.2rem; } }
@media (max-width: 760px) { .oinfo-map .btn { bottom: 3.4rem; left: 1rem; } }
.oinfo-map .btn, .oinfo-page .oinfo-map .btn { left: auto; right: 1.6rem; top: 1.6rem; bottom: auto; }

/* ---------- Bandeau visite (pages intérieures) ---------- */
.ivisit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8rem 2rem; padding: 1rem 16px; background: var(--ink); color: var(--white); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.ivisit-hours { display: inline-flex; align-items: center; gap: .8rem; }
.ivisit-hours i { width: .6rem; height: .6rem; background: var(--yellow-2, #f9c416); transform: rotate(45deg); }
.ivisit-btn { padding: .5rem 1.2rem; background: var(--pink); color: var(--white); font-weight: 600; letter-spacing: .1em; transition: background .2s; }
.ivisit-btn:hover { background: #c81766; }

/* ---------- FAQ ---------- */
.ofaq { max-width: 70rem; margin: 6rem auto 0; }
.ofaq-title, .orelated-title { margin: 0 0 2rem; font-family: var(--serif); font-weight: 700; font-size: 3rem; line-height: 1.05; text-align: center; }
.ofaq-item { border-top: 1px solid #ddd; }
.ofaq-item:last-child { border-bottom: 1px solid #ddd; }
.ofaq-item summary { position: relative; padding: 1.6rem 3.6rem 1.6rem 0; font-size: 1.35rem; font-weight: 600; cursor: pointer; list-style: none; }
.ofaq-item summary::-webkit-details-marker { display: none; }
.ofaq-item summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 2rem; font-weight: 300; color: var(--pink); transition: transform .2s; }
.ofaq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ofaq-answer { padding: 0 0 1.8rem; max-width: 60rem; }

/* ---------- À découvrir aussi ---------- */
.orelated { margin: 6rem 0 0; }
.orelated ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.4rem; }
.orelated a { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 2rem; border: 1px solid #ddd; transition: border-color .2s, transform .2s; }
.orelated a:hover { border-color: var(--ink); transform: translateY(-2px); }
.orelated a span { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; line-height: 1.1; }
.orelated a small { font-size: 1rem; line-height: 1.5; color: #666; }
.ibio-after { padding-bottom: 6rem; }
@media (max-width: 760px) { .ivisit { font-size: .82rem; gap: .6rem 1.2rem; } .ofaq-title, .orelated-title { font-size: 2.2rem; } }
