/* =====================
   Pages de lecture longue (Notre-Dame-du-Mont, Venir, Street art, Toute l'année)
   S'ajoute à style.css : reprend la mise en page de la page « Le quartier »
   (.quartier-hero, .quartier-layout, .quartier-article…) et ajoute
   quelques blocs utiles aux visiteurs.
   ===================== */

/* Rubrique du Mag dans l'ouverture */
.quartier-hero-content .hero-eyebrow a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 236, 228, 0.35);
}

.quartier-hero-content .hero-eyebrow a:hover {
    border-bottom-color: var(--accent);
}

/* Crédit photo dans le coin de l'ouverture */
.page-hero-credit {
    position: absolute;
    right: 16px;
    top: 64px;
    z-index: 1;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    color: rgba(240, 236, 228, 0.55);
}

/* En bref : la réponse courte, en tête de feuille */
.page-answer {
    margin: 40px 0 0;
    padding: 24px 28px;
    background: var(--bg3);
    border-left: 3px solid var(--accent);
    border-radius: 2px;
}

.page-answer-title,
.quartier-article .page-answer-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.page-answer ul,
.page-answer ol {
    padding-left: 1.1em;
}

.page-answer li {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--reading);
    margin-bottom: 6px;
}

.page-answer li:last-child {
    margin-bottom: 0;
}

.page-answer strong {
    color: var(--text);
}

.page-answer a {
    color: inherit;
    text-decoration: none;
}

.page-answer a:hover strong {
    color: var(--accent);
}

.quartier-article .page-answer .page-answer-note {
    margin-top: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Chiffres clés */
.page-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 40px 0;
}

.page-stat,
.quartier-article .page-stat {
    margin: 0;
    padding: 22px 18px;
    background: var(--bg3);
    text-align: center;
}

.page-stat-num {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.page-stat-label {
    display: block;
    margin-top: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Cartes : moyens de transport, hébergements, rendez-vous */
.page-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.page-card {
    padding: 22px 22px 20px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.page-card-tag {
    display: inline-block;
    margin-bottom: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 10px;
}

.quartier-article .page-card p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 8px;
    hyphens: manual;
    -webkit-hyphens: manual;
}

.quartier-article .page-card p.page-card-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.page-card a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 92, 42, 0.4);
}

.page-card a:hover {
    border-bottom-color: var(--accent);
}

/* Frise de l'année */
.page-timeline {
    list-style: none;
    margin: 32px 0 0;
    border-left: 1px solid var(--border-hover);
}

.page-timeline li {
    position: relative;
    padding: 0 0 22px 24px;
}

.page-timeline li::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.page-timeline-when {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-timeline a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
}

.page-timeline a:hover {
    color: var(--accent);
}

.page-timeline-what {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Légende sous une grille d'images */
.quartier-img-grid + .quartier-img-caption {
    margin-top: -30px;
    margin-bottom: 40px;
}

/* Questions fréquentes */
.page-faq details {
    border-top: 1px solid var(--border);
}

.page-faq details:last-child {
    border-bottom: 1px solid var(--border);
}

.page-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 32px 18px 0;
    position: relative;
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
}

.page-faq summary::-webkit-details-marker {
    display: none;
}

.page-faq summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 14px;
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.2s;
}

.page-faq details[open] summary::after {
    transform: rotate(45deg);
}

.quartier-article .page-faq details p {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 18px;
    hyphens: manual;
    -webkit-hyphens: manual;
}

.page-faq summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Liens d'action en fin d'article */
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.page-btn {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--border-hover);
    border-radius: 2px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

/* Crédits photo en bas d'article */
.quartier-article .page-credits {
    margin-top: 32px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    hyphens: manual;
    -webkit-hyphens: manual;
}

@media (max-width: 768px) {
    .page-stats,
    .page-cards {
        grid-template-columns: 1fr;
    }

    .page-answer {
        padding: 20px;
    }
}

/* Une photo et une affiche côte à côte : l'affiche garde ses proportions */
.page-img-affiche {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2px;
    margin: 40px calc(var(--sheet-pad) * -1);
}

.page-img-affiche img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.page-img-affiche img:last-child {
    height: auto;
}

.page-img-affiche + .quartier-img-caption {
    margin-top: -30px;
    margin-bottom: 40px;
}

/* Une affiche entière, puis une photo en dessous */
.page-figure-pile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 40px calc(var(--sheet-pad) * -1);
}

.page-figure-pile img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(20%);
}

.page-figure-pile .page-figure-affiche {
    width: min(100%, 440px);
    box-shadow: 0 16px 40px var(--shadow);
}

.quartier-article .page-figure-pile .quartier-img-caption {
    align-self: stretch;
    margin-top: -14px;
}

/* Date de publication, sous le titre d'ouverture */
.page-hero-date {
    margin-top: 18px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 236, 228, 0.7);
}

@media (max-width: 768px) {
    .page-img-affiche {
        grid-template-columns: 1fr;
    }

    .page-img-affiche img:first-child {
        aspect-ratio: 4 / 3;
    }
}

/* Hébergements : photo à gauche, texte à droite */
.page-hebergements {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.page-hebergement {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.page-hebergement img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.page-hebergement-body {
    padding: 22px 22px 18px;
}

.page-hebergement h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 10px;
}

.quartier-article .page-hebergement p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 8px;
    hyphens: manual;
    -webkit-hyphens: manual;
}

.quartier-article .page-hebergement p.page-card-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.page-hebergement a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 92, 42, 0.4);
}

.page-hebergement a:hover {
    border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
    .page-hebergement {
        grid-template-columns: 1fr;
    }

    .page-hebergement img {
        aspect-ratio: 3 / 2;
        min-height: 0;
    }
}

/* Les attributs width/height des images (utiles contre les sauts de mise en page)
   imposent sinon leur hauteur : on laisse le format (aspect-ratio) décider */
.quartier-img-grid img,
.quartier-img-full {
    height: auto;
}
