/* ============================================================
   Strada Balanina · pages des circuits (les 5 circuit-*.html)
   Charte d'octobre 2026. À charger après /charte.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }
.container { max-width: var(--largeur); margin: 0 auto; padding: 0 32px; }
main a:focus-visible, main button:focus-visible { outline: 3px solid var(--terre-cuite); outline-offset: 3px; }

/* Fil d'Ariane */
.breadcrumb { background: var(--creme); border-bottom: 1px solid var(--sauge-pale); padding: 12px 0; }
.breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--ecorce); }
.breadcrumb a { color: var(--olive); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .picto { width: 14px; height: 14px; color: var(--ecorce); }

/* Présentation du circuit */
.intro .intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.intro h1 { margin: 14px 0 12px; }
.intro-dep { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--olive); }
.intro-dep .picto { width: 22px; height: 22px; }
.intro-photo { aspect-ratio: 16 / 9; }

/* Contenu */
.circuit-main { padding: 8px 0 64px; }
.back-link-section { padding: 0; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--olive); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-back:hover { text-decoration: underline; }
.btn-back .picto { width: 20px; height: 20px; }
.circuit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; margin-top: 24px; }
.circuit-description h2 { margin-bottom: 8px; }
.circuit-description hr.chemin { width: 220px; margin: 8px 0 24px; }
.circuit-description p { margin-bottom: 18px; line-height: 1.75; }

/* Points forts */
.highlights { margin-top: 32px; }
.highlights h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.highlights h3 .picto { width: 26px; height: 26px; color: var(--olive); }
.highlights ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.highlights ul li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; background: var(--sauge-pale); border-radius: 12px; }
.highlights ul li::before { content: ""; flex-shrink: 0; width: 7px; height: 13px; margin: 4px 4px 0 4px; border: solid var(--olive); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Photos */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.photo-grid img {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: pointer;
    border: var(--filet-photo) solid var(--olive); border-radius: var(--rayon-photo);
    transition: transform .2s ease;
}
.photo-grid img:hover { transform: scale(1.015); }

/* Encadré « Informations pratiques » */
.circuit-sidebar { position: sticky; top: 108px; }
.info-card { background: var(--sauge-pale); border-radius: var(--rayon-encadre); padding: 24px 26px; }
.info-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.info-card-header h3 { color: var(--olive); }
.info-card-header .etiquette { background: var(--creme); }
.info-list { display: flex; flex-direction: column; }
.info-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(63, 75, 46, .15); }
.info-item:last-child { border-bottom: none; }
.info-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--creme); border-radius: 50%; }
.info-icon .picto { width: 22px; height: 22px; color: var(--olive); }
.info-content { flex: 1; }
.info-label { font-size: var(--mention); color: var(--ecorce); }
.info-value { font-size: 17px; font-weight: 700; color: var(--olive); }
.info-card .btn-reserver { display: flex; width: 100%; gap: 10px; margin-top: 18px; }
.info-card .btn-reserver .picto { width: 22px; height: 22px; }

/* Autres circuits */
.other-circuits { padding: 56px 0 64px; background: var(--sauge-pale); }
.other-circuits h2 { text-align: center; margin-bottom: 6px; }
.other-circuits .sub { text-align: center; color: var(--ecorce); margin-bottom: 8px; }
.other-circuits hr.chemin { width: 220px; margin: 8px auto 30px; }
.other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.other-card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
    padding: 18px 20px; background: var(--creme); border: 2px solid var(--creme); border-radius: var(--rayon-encadre);
    color: var(--olive); text-decoration: none; transition: border-color .2s ease;
}
.other-card:hover { border-color: var(--olive); }
.other-card-header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.other-card-title { font-family: var(--font-titre); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--olive); }
.other-card-foot { font-size: 15px; color: var(--ecorce); }
.other-card-foot .picto { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; color: var(--olive); }

/* Visionneuse photo */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; background: rgba(31, 37, 23, .94); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border: 2px solid var(--creme); border-radius: var(--rayon-photo); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--creme);
    background: var(--olive); color: var(--creme); font-size: 20px; cursor: pointer;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: #2F3922; }
.lightbox-close .picto, .lightbox-prev .picto, .lightbox-next .picto { width: 22px; height: 22px; }

@media (max-width: 900px) {
    .circuit-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .circuit-sidebar { position: static; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .intro .intro-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; padding-bottom: 28px; }
    .intro-photo { order: -1; }
    .photo-grid { grid-template-columns: 1fr; }
    .info-card { padding: 20px; }
    .other-grid { grid-template-columns: 1fr; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
