/* Jazz en Corbières 2026 affiche violette */
:root {
    --cassiopeia-color-primary : #5b2f84;
    --cassiopeia-color-hover   : #5b2f84;
    --yellow: #f8bb19;
    --white: #f8f9fa;
    --body-font-size: 1.2rem;
}

@font-face {
    font-family: 'dancingScriptRegular';
    src: url('/media/templates/site/cassiopeia_ajc/fonts/DancingScript-Regular.woff2') format('woff2'),
        url('/media/templates/site/cassiopeia_ajc/fonts/DancingScript-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-image: url('../images/fond-2026.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    min-height: 1266px;
}

/* Header transparent — même structure que la page d'accueil */
.header,
.container-header {
    color: #fff;
    text-align: center;
    background-color: transparent;
    background-image: none;
    margin: 0;
    padding: .5em 1em;
    position: relative;
}

.container-header .grid-child {
    padding: 0;
}

.container-header .container-nav {
    padding-bottom: 0;
}

.container-header .navbar-brand {
    position: relative;
    width: 100%;
}

.brand-logo {
    flex: 0 0 auto;
    z-index: 1;
}

.brand-logo img,
.container-header .navbar-brand a img {
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.brand-sitename-container {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0;
    padding-bottom: 1.1rem;
}

.brand-sitename {
    display: block;
    text-align: center;
    text-decoration: none;
}

.brand-sitename-text {
    font-family: 'dancingScriptRegular', cursive;
    font-weight: 600;
    font-size: 3.5rem;
    color: var(--white);
    margin: 0;
    padding: 0.5rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.site-description {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
    padding: 0.5rem 0;
    padding-top: 0;
    margin-top: -5px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.spacer {
    flex: 0 0 auto;
    width: 100px;
    visibility: hidden;
}

/* Menu — identique à l'accueil, fond transparent */
.metismenu.mod-menu {
    margin: 0 auto;
    max-width: fit-content;
}

.metismenu.mod-menu .metismenu-item {
    padding: .5em 2em;
    background-color: transparent;
}

.container-nav a,
.container-nav button,
.container-header .mod-menu a,
.container-header .mod-menu button {
    color: var(--white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.container-nav a:hover,
.container-header .mod-menu a:hover,
.container-header .mod-menu button:hover {
    color: var(--yellow) !important;
}

/* Bloc réservation (HelloAsso) */
.hello span {
    position: absolute;
    right: 5rem;
    top: 1.5rem;
}

.hello span a {
    color: var(--white) !important;
    font-size: 1.1rem;
    text-decoration: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.hello img {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    max-width: 4rem;
    max-height: 4rem;
}

@media (max-width: 1199px) {
    .hello span,
    .hello img {
        display: none;
    }
}

@media (max-width: 1199px) {
    .metismenu.mod-menu .metismenu-item {
        padding: .5em 1.6rem;
    }
}

@media (max-width: 999px) {
    .brand-logo img,
    .container-header .navbar-brand a img {
        max-height: 80px;
    }

    .brand-sitename-container {
        padding-bottom: 0;
    }

    .brand-sitename-text {
        font-size: 1.7rem;
        margin-left: -5px;
    }

    .site-description {
        font-size: 0.8rem !important;
    }

    .brand-logo {
        position: absolute;
        left: -1.5rem;
        top: 0.5rem;
    }

    .navbar-brand {
        flex-direction: column;
    }

    .brand-sitename-container {
        position: relative;
        margin-top: 0;
    }

    .mod-menu {
        display: none;
    }

    .offcanvas_show {
        top: 12px !important;
    }
}

.page-header h1 {
    display: none;
}

.page-header {
    padding-top: 0;
}

/* Fil d'Ariane masqué */
.mod-breadcrumbs__wrapper {
    display: none;
}

.mod-breadcrumbs.breadcrumb,
.mod-breadcrumbs.breadcrumb * {
    text-shadow: none;
}

.mod-breadcrumbs.breadcrumb {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.mod-breadcrumbs__here,
.mod-breadcrumbs .breadcrumb-item,
.mod-breadcrumbs .breadcrumb-item.active span {
    color: #333 !important;
}

.mod-breadcrumbs a.pathway {
    color: var(--cassiopeia-color-primary) !important;
    text-decoration: none;
}

.mod-breadcrumbs a.pathway:hover {
    color: #4a2569 !important;
}

/* Contenu — blocs lisibles sur l'affiche */
.container-component {
    border-width: 0 !important;
}

.container-component > :first-child,
.container-component > * + * {
    margin-top: 0;
}

.hero-section {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    margin: 1rem 0;
    padding: 1.7rem 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-section h3 {
    font-size: 30px;
    color: var(--cassiopeia-color-primary);
}

.hero-section h4 {
    font-size: 21px;
}

.hero-section a {
    color: var(--cassiopeia-color-primary) !important;
    text-decoration: none;
}

.hero-section a:hover {
    color: #4a2569 !important;
}

/* Texte et liens hors blocs (directement sur le fond) */
.container-component,
.com-content-article__body {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-section,
.hero-section h3,
.hero-section h4,
.hero-section p {
    color: #222;
    text-shadow: none;
}

.container-component a:not(.btn),
.com-content-article__body a:not(.btn) {
    text-shadow: none;
}

.container-component a:not(.btn):not(.pathway) {
    color: var(--cassiopeia-color-primary) !important;
}

.container-component a:not(.btn):not(.pathway):hover {
    color: #4a2569 !important;
}

.container-component .hero-section a {
    color: var(--cassiopeia-color-primary) !important;
}

.container-component .hero-section a:hover {
    color: #4a2569 !important;
}

/* Articles artistes — blocs blancs comme festival 2026 (itemid-240) */
body.itemid-241 .container-component,
body.itemid-242 .container-component {
    color: #222;
    text-shadow: none;
}

body.itemid-241 .com-content-article__body,
body.itemid-242 .com-content-article__body {
    max-width: 720px;
    margin: 0 auto;
    color: #222 !important;
    text-shadow: none !important;
}

body.itemid-241 .com-content-article__body h3,
body.itemid-242 .com-content-article__body h3 {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 30px;
    color: var(--cassiopeia-color-primary) !important;
    text-shadow: none !important;
}

body.itemid-241 .com-content-article__body p,
body.itemid-242 .com-content-article__body p {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 4px;
    padding: 1.7rem 1rem;
    margin-bottom: 1rem;
    color: #222 !important;
    text-shadow: none !important;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 1.9em;
}

/* Date et heure — texte blanc sur l'affiche, sans fond */
body.itemid-241 .com-content-article__body h3:nth-of-type(1),
body.itemid-241 .com-content-article__body h3:nth-of-type(2),
body.itemid-242 .com-content-article__body h3:nth-of-type(1),
body.itemid-242 .com-content-article__body h3:nth-of-type(2) {
    background-color: transparent !important;
    padding: 0;
    margin: 0.5rem 0;
    color: var(--white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    text-align: left;
}

/* Bouton Réserver — fond transparent */
body.itemid-241 .com-content-article__body p:nth-of-type(1),
body.itemid-242 .com-content-article__body p:nth-of-type(1) {
    background-color: transparent !important;
    padding: 0;
    text-align: left;
}

body.itemid-241 .com-content-article__body p:has(img),
body.itemid-242 .com-content-article__body p:has(img) {
    background-color: transparent !important;
    padding: 0;
}

/* Image principale en haut — pleine largeur */
body.itemid-241 .com-content-article__body p:has(img:only-child) img,
body.itemid-242 .com-content-article__body p:has(img:only-child) img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0 auto 1rem;
}

/* Galerie en bas — 2 images côte à côte à 50% */
body.itemid-241 .com-content-article__body p:has(img + img),
body.itemid-242 .com-content-article__body p:has(img + img) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.itemid-241 .com-content-article__body p:has(img + img) img,
body.itemid-242 .com-content-article__body p:has(img + img) img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: auto;
    border-radius: 4px;
    margin: 0 !important;
    box-sizing: border-box;
}

body.itemid-241 .com-content-article__body a:not(.btn),
body.itemid-242 .com-content-article__body a:not(.btn) {
    color: var(--cassiopeia-color-primary) !important;
    text-shadow: none !important;
}

body.itemid-241 .com-content-article__body a:not(.btn):hover,
body.itemid-242 .com-content-article__body a:not(.btn):hover {
    color: #4a2569 !important;
}

body.itemid-241 .com-content-article__body .btn-primary,
body.itemid-242 .com-content-article__body .btn-primary {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--white);
}

body.itemid-241 .com-content-article__body .btn-primary:hover,
body.itemid-242 .com-content-article__body .btn-primary:hover {
    background-color: var(--white);
    border-color: var(--yellow);
    color: var(--yellow);
}

/* Footer transparent avec logos partenaires */
.container-footer,
.footer {
    background-color: transparent !important;
    background-image: none;
    margin: 0;
    color: #fff;
    text-align: center;
}

.footer a:not(.btn),
.footer .btn-link {
    color: currentColor;
    text-decoration: none;
}

.footer img {
    display: block;
    max-height: 64px;
    max-width: 4rem;
    height: auto;
    margin: 0 auto;
}

.footer img.ccrlm {
    max-height: 64px;
    max-width: 10rem;
    width: auto;
    height: auto;
}

.custom-footer {
    padding: 1rem 0;
    text-align: center;
    color: var(--white);
    margin: 0 auto;
    width: 100%;
}

.custom-footer > .row:first-child {
    margin-bottom: 1rem;
}

.footer .fb-page blockquote {
    display: none;
}

.footer .grid-child {
    padding: 0 .5em;
}

.footer-copyright a {
    color: var(--white) !important;
    text-decoration: none !important;
}

.footer-copyright a:hover {
    color: var(--white) !important;
}

.footer .partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

/* Logos sur une seule ligne */
.footer .partners > .col {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0 0.5rem;
}

/* Copyright sur sa propre ligne (row imbriquée dans partners) */
.footer .partners > .row {
    flex: 0 0 100%;
    width: 100%;
    margin: 1rem 0 0;
}

.footer .partners > .row .custom-footer {
    width: 100%;
    padding: 0.5rem 0 0;
}
