/* ========================================
   VARIABLES GLOBALES
   ======================================== */
   :root {
    --primary-color:  var(--gryon-red);
    --primary-dark:   var(--gryon-red-dark);
    --text-dark:      var(--gryon-text);
    --text-light:     var(--gryon-muted);
    --border-color:   var(--gryon-cream);
    --bg-light:       var(--gryon-cream);
    --bg-white:       #ffffff;
    --transition:     all 0.3s ease;
}

/* ========================================
   CONTAINER GÉNÉRAL
   ======================================== */
.ccg-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   BOUTONS — BASE PARTAGÉE
   ======================================== */
.ccg-btn,
.ccg-btn-back,
.ccg-btn-saison,
.ccg-btn-small {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.ccg-btn,
.ccg-btn-back {
    padding: 12px 24px;
    font-size: 0.9em;
}

.ccg-btn-small {
    padding: 10px 18px;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: center;
}

.ccg-btn:hover,
.ccg-btn-small:hover {
    background: transparent;
    color: var(--primary-color);
}

.ccg-btn-back:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateX(-5px);
}

.ccg-btn-saison {
    padding: 12px 24px;
    font-size: 1em;
    letter-spacing: normal;
    border-radius: 4px;
}

.ccg-btn-saison:hover {
    background: var(--primary-dark);
    color: white;
}

.ccg-btn {
    margin-top: 20px;
}

.ccg-no-concerts-msg {
    color: var(--text-light);
    font-style: italic;
    margin: 15px 0 0 0;
}

/* ========================================
   SAISONS TIMELINE
   ======================================== */
.ccg-saisons-timeline {
    position: relative;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ccg-saisons-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

/* ========================================
   SAISON ITEM
   ======================================== */
.ccg-saison-item {
    position: relative;
    margin-bottom: 20px;
}

.ccg-saison-item:nth-child(odd) {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 50px;
    text-align: right;
}

.ccg-saison-item:nth-child(even) {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 50px;
    text-align: left;
}

.ccg-saison-item::before {
    content: '♪';
    position: absolute;
    left: 50%;
    top: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(212, 175, 155, 0.3);
}

/* ========================================
   SAISON CARD
   ======================================== */
.ccg-saison-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.ccg-saison-link:hover .ccg-saison-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-dark);
}

.ccg-saison-content {
    background: var(--bg-white);
    padding: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 0;
}

.ccg-saison-date {
    font-size: 0.85em;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.ccg-saison-content h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: var(--text-dark);
    letter-spacing: 1px;
}

/* ========================================
   CONCERT DETAILS (timeline)
   ======================================== */
.ccg-concert-details {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.95em;
    color: var(--text-dark);
    line-height: 1.55;
    font-style: normal;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ccg-concert-details em,
.ccg-concert-details i {
    font-style: normal;
}

.ccg-concert-details p {
    margin: 8px 0;
}

.ccg-concert-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

.ccg-musician-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.ccg-instrument {
    color: var(--text-light);
    font-size: 0.9em;
    font-style: italic;
}

.ccg-composers {
    margin: 15px 0;
    padding: 12px 0;
    color: var(--text-light);
    font-size: 0.9em;
    font-style: italic;
}

.ccg-composers p {
    margin: 0;
}

.ccg-composers strong {
    color: var(--text-dark);
    font-style: normal;
}

/* ========================================
   RESPONSIVE — TIMELINE
   ======================================== */
@media (max-width: 1024px) {
    .ccg-saisons-timeline::before { left: 40px; }

    .ccg-saison-item:nth-child(odd),
    .ccg-saison-item:nth-child(even) {
        margin-left: 100px;
        margin-right: 0;
        padding-left: 40px;
        padding-right: 0;
        text-align: left;
    }

    .ccg-saison-item::before { left: 15px; }
}

@media (max-width: 768px) {
    .ccg-saisons-timeline {
        padding: 40px 0;
    }

    .ccg-saisons-timeline::before { left: 25px; }

    .ccg-saison-item:nth-child(odd),
    .ccg-saison-item:nth-child(even) {
        margin-left: 70px;
        padding-left: 30px;
    }

    .ccg-saison-item::before {
        left: 8px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .ccg-saison-content {
        padding: 25px;
    }

    .ccg-saison-content h2 {
        font-size: 1.4em;
    }

    .ccg-concert-details {
        font-size: 0.9em;
    }

    .ccg-btn,
    .ccg-btn-back {
        padding: 10px 20px;
        font-size: 0.85em;
    }

    .ccg-btn-small {
        padding: 8px 12px;
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .ccg-saisons-timeline { padding: 30px 0; }
    .ccg-saisons-timeline::before { left: 15px; }

    .ccg-saison-item:nth-child(odd),
    .ccg-saison-item:nth-child(even) {
        margin-left: 50px;
        padding-left: 20px;
    }

    .ccg-saison-item::before {
        left: 2px;
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .ccg-saison-content { padding: 20px; }
    .ccg-saison-content h2 { font-size: 1.2em; }
    .ccg-saison-date { font-size: 0.75em; }

    .ccg-concert-details {
        font-size: 0.85em;
        padding: 10px 0;
    }

    .ccg-btn,
    .ccg-btn-back {
        padding: 8px 16px;
        font-size: 0.8em;
    }

    .ccg-btn-small {
        padding: 6px 10px;
        font-size: 0.7em;
    }
}

/* ========================================
   SINGLE SAISON PAGE
   ======================================== */
.ccg-saison-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.ccg-saison-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.ccg-saison-header-content {
    text-align: center;
    color: white;
}

.ccg-saison-title {
    font-size: 3em;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.ccg-back-to-saisons {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ccg-saison-intro {
    margin-bottom: 50px;
    max-width: 900px;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.95em;
}

.ccg-saison-intro p {
    margin-bottom: 15px;
}

.ccg-concerts-title {
    font-size: 1.8em;
    font-weight: 400;
    color: var(--text-dark);
    margin: 50px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

/* ========================================
   TABLEAU CONCERTS
   ======================================== */
.ccg-concerts-table-wrapper {
    overflow-x: auto;
    margin-bottom: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ccg-concerts-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--bg-white);
    line-height: 1.3;
}

.ccg-concerts-table thead {
    background: var(--primary-color);
    color: white;
}

.ccg-concerts-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.col-date     { width: 120px; }
.col-concert  { width: auto; flex: 1; }
.col-musicians{ width: 200px; }
.col-composers{ width: 180px; }
.col-action   { width: 100px; text-align: center; }

.ccg-concerts-table td.ccg-table-concert {
    min-width: 0;
    vertical-align: top;
}

.ccg-concerts-table .ccg-concert-details {
    line-height: 1.28;
}

.ccg-concerts-table .ccg-musician {
    line-height: 1.3;
}

.ccg-concerts-table .ccg-table-oeuvres {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 13px;
}

.ccg-concerts-table .ccg-table-oeuvre-line {
    line-height: 1.35;
}

.ccg-concerts-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.95em;
    color: var(--text-dark);
    vertical-align: middle;
}

.ccg-concerts-table tbody tr {
    transition: var(--transition);
}

.ccg-concerts-table tbody tr:hover {
    background: #f9f9f9;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.ccg-table-date {
    font-weight: 600;
    color: var(--primary-color);
}

.ccg-date-display {
    display: block;
    font-size: 1.05em;
    margin-bottom: 5px;
}

.ccg-time-display {
    display: block;
    font-size: 0.85em;
    color: var(--text-light);
    font-weight: 400;
}

.ccg-concert-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ccg-concert-title a:hover {
    color: var(--primary-color);
}

.ccg-concert-lieu {
    display: block;
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 5px;
}

.ccg-musician {
    margin-bottom: 8px;
}

.ccg-no-concerts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1em;
}

/* ========================================
   RESPONSIVE — TABLEAU
   ======================================== */
@media (max-width: 1200px) {
    .ccg-concerts-table th,
    .ccg-concerts-table td {
        padding: 14px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .ccg-saison-header { height: 200px; }
    .ccg-saison-title  { font-size: 1.8em; }

    /* Musiciens / œuvres : ne pas masquer (les td utilisent .ccg-table-* ; masquer .col-* cassait l’alignement) — défilement horizontal via .ccg-concerts-table-wrapper */

    .ccg-concerts-table th,
    .ccg-concerts-table td {
        padding: 12px 10px;
        font-size: 0.8em;
    }

    .col-date   { width: 80px; }
    .col-action { width: 70px; }
}

@media (max-width: 480px) {
    .ccg-saison-header { height: 150px; }
    .ccg-saison-title  { font-size: 1.3em; }

    .ccg-concerts-table th,
    .ccg-concerts-table td {
        padding: 10px 8px;
        font-size: 0.75em;
    }
}

/* ========================================
   CONCERT DETAIL
   ======================================== */
.ccg-concert-detail {
    margin: 40px 0;
}

.ccg-concert-banner {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.ccg-concert-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.ccg-concert-header {
    padding-bottom: 10px;
}

.ccg-concert-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--gryon-text);
}

.ccg-concert-meta {
    display: grid;
    gap: 12px;
}

.ccg-concert-meta .meta-item {
    font-size: 1.1em;
    color: var(--gryon-muted);
}

.ccg-concert-meta .meta-item a {
    color: var(--gryon-red);
    text-decoration: none;
}

.ccg-concert-meta .meta-item a:hover {
    text-decoration: underline;
    color: var(--gryon-red-dark);
}


/* ========================================
   MUSICIENS
   ======================================== */
.ccg-musiciens-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ccg-musiciens-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.05em;
    color: var(--gryon-text);
}

.ccg-musiciens-list li:last-child {
    border-bottom: none;
}

.ccg-musiciens-list .instrument {
    color: var(--gryon-muted);
    font-style: italic;
}

.ccg-oeuvres {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--gryon-muted);
}

/* ========================================
   GRILLE CONCERTS
   ======================================== */
.ccg-concerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ccg-concert-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ccg-concert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ccg-concert-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ccg-concert-info {
    padding: 20px;
}

.ccg-concert-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.ccg-concert-info h3 a {
    color: var(--gryon-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ccg-concert-info h3 a:hover {
    color: var(--gryon-red);
}

.ccg-concert-date,
.ccg-concert-time,
.ccg-concert-musiciens {
    margin: 8px 0;
    font-size: 0.95em;
    color: var(--gryon-muted);
}

/* ========================================
   SAISONS SHORTCODE
   ======================================== */
.ccg-saisons-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ccg-saisons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.ccg-saison-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ccg-saison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.ccg-saison-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ccg-saison-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ccg-saison-card:hover .ccg-saison-card-image img {
    transform: scale(1.05);
}

.ccg-saison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ccg-saison-card:hover .ccg-saison-overlay {
    opacity: 1;
}

.ccg-saison-card-content {
    padding: 25px;
    text-align: center;
}

.ccg-saison-year {
    font-size: 32px;
    color: var(--gryon-text);
    margin: 0 0 10px 0;
}

.ccg-saison-count {
    font-size: 14px;
    color: var(--gryon-muted);
    margin: 0 0 20px 0;
}

.ccg-no-saisons {
    text-align: center;
    font-size: 16px;
    color: var(--gryon-muted);
    margin: 40px 0;
}

@media (max-width: 1024px) {
    .ccg-saisons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .ccg-saisons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ccg-saison-year { font-size: 24px; }
}

/* ========================================
   WIDGET CONCERTS RÉCENTS
   ======================================== */
.widget.ccg_concerts_recents {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.ccg-widget-section {
    margin-bottom: 3.5rem;
}

.ccg-widget-section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--gryon-text);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gryon-red);
}

.ccg-concerts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ccg-concert-item {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gryon-cream);
    display: block;
    width: 100%;
}

.ccg-concert-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ccg-concert-item-link {
    text-decoration: none;
    color: var(--gryon-text);
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 0;
    transition: var(--transition);
}

.ccg-concert-item-link:hover .ccg-concert-item-title {
    color: var(--gryon-red) !important;
}

.ccg-widget-dates-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0 !important;
    align-items: flex-start;
    align-self: flex-start;
    width: 100%;
}

.ccg-widget-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    background: var(--gryon-cream);
    border-radius: 8px;
    width: 75px;
    min-height: 75px;
    font-family: Inter, system-ui, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.ccg-widget-date-box--multi {
    width: auto;
    min-width: 88px;
    max-width: 120px;
}

.ccg-widget-dates-wrapper .ccg-widget-date-box--multi .ccg-widget-date-day {
    font-size: clamp(18px, 2.6vw, 26px);
}

.ccg-widget-dates-wrapper .ccg-widget-date-day {
    font-size: 26px;
    font-weight: 600;
    color: var(--gryon-text);
    line-height: 1;
    margin-bottom: 4px;
}

.ccg-widget-date-month {
    font-size: 13px;
    color: var(--gryon-muted);
    text-transform: lowercase;
    margin-bottom: 2px;
    font-weight: 400;
}

.ccg-widget-date-year {
    font-size: 12px;
    color: var(--gryon-muted);
    font-weight: 400;
}

.ccg-concert-item-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-self: stretch;
    min-width: 0;
    width: 100%;
    text-align: left;
}

.ccg-concert-item-title {
    display: block;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--gryon-text);
    transition: color 0.2s ease;
}

.ccg-concert-time {
    color: var(--gryon-muted);
    font-size: 0.9em;
    display: block;
    font-weight: 400;
}

@media (min-width: 769px) and (max-width: 992px) {
    .ccg-concert-item-title {
        font-size: 1.1em;
    }

    .ccg-concert-header {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .ccg-widget-section-title { font-size: 1.5em; }

    .ccg-concert-header {
        padding-bottom: 0;
    }

    .ccg-widget-date-box {
        min-width: 60px;
        min-height: 60px;
        padding: 8px 10px;
    }

    .ccg-widget-date-box--multi {
        min-width: 72px;
        max-width: 110px;
    }

    .ccg-widget-dates-wrapper .ccg-widget-date-box--multi .ccg-widget-date-day {
        font-size: clamp(15px, 3.5vw, 26px);
    }

    .ccg-widget-dates-wrapper .ccg-widget-date-day { font-size: 26px; }
    .ccg-widget-date-month { font-size: 11px; }
    .ccg-widget-date-year  { font-size: 10px; }

    .ccg-concert-item-title { font-size: 1em; }
    .ccg-concert-time       { font-size: 0.8em; }
}

/* ========================================
   FORMULAIRE DE RECHERCHE CONCERTS
   ======================================== */
.ccg-search-form {
    margin-bottom: 25px;
}

.ccg-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.ccg-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--gryon-cream);
    font-size: 0.95em;
    color: var(--gryon-text);
    background: #ffffff;
    outline: none;
    transition: var(--transition);
}

.ccg-search-input:focus {
    border-color: var(--gryon-red);
    box-shadow: 0 0 0 3px rgba(225, 79, 67, 0.08);
}

.ccg-search-input::placeholder {
    color: var(--gryon-muted);
    opacity: 0.7;
}

.ccg-search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gryon-red);
    border: none;
    border-radius: 2px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1em;
    transition: var(--transition);
}

.ccg-search-submit:hover {
    background: var(--gryon-red-dark);
}

.ccg-search-submit:active {
    transform: translateY(-50%) scale(0.95);
}

/* Loupe : Font Awesome 5 (couleur surchargée par le thème enfant Gryon) */
.ccg-search-submit::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    font-style: normal;
    display: block;
    line-height: 1;
    font-size: 1em;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
    .ccg-search-input {
        padding: 10px 40px 10px 12px;
        font-size: 0.9em;
    }

    .ccg-search-submit {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}