/**
 * styles.css - Styles ProGRAM
 * Version: 1.0.6
 * Date: 04/11/2025 - 13:48
 * Statut: FUSION COMPLÈTE v1.05 + v1.0.2
 * Modifications: amélioration esthétique sans icônes et sans bords arrondi.
 */

/* === STYLES GLOBAUX === */
.gram-event-container,
.gram-unified-event-block,
.gram-complete-meta-php {
    line-height: 1.6;
    color: #333;
}
b {font-weight: 600;}
/* === NOUVEAU v1.0.6 : RESET ET BASE === */
.gram-event-container * {
    box-sizing: border-box;
}

.gram-event-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* === NOUVEAU v1.0.6 : LAYOUT HEADER-INFOS === */
.event-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.event-header-infos {
    background: #f8f9fa;
    border: 1px solid #dee2e6;

    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-info-section {
    margin-bottom: 20px;
}

.header-info-section:last-child {
    margin-bottom: 0;
}

/* === BADGES STATUT AMÉLIORÉS === */

.gram-event-status-badge,
.event-status-badge, .main-dates-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: ;
 border:1px solid #e9ecef;
}
b.event-status-badge {margin-right: 15px;}
.main-dates-text { 
	border-bottom: 1px solid orange;
}

.status-upcoming,
.event-status-badge.upcoming {
    
    border-bottom: 1px solid #90caf9;
}

.status-active,
.event-status-badge.active {
    border-bottom: 1px solid #81c784;
}

.status-finished,
.event-status-badge.finished {
    border-bottom: 1px solid #f48fb1;
}

/* === DATES ET HORAIRES === */
.header-dates {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}



.gram-event-dates {
    background: #f8f9fa;
    border: 1px solid #dee2e6;

    padding: 20px;
    margin: 20px 0;
    font-size: 1.1em;
}

.gram-event-dates strong {
    color: #495057;
}

.gram-event-hours {
    background: #fff3cd;
    border: 1px solid #ffeaa7;

    padding: 15px;
    margin: 15px 0;
}

.gram-event-hours h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.header-hours-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.header-hours-content .detailed-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.detailed-hours .hours-day {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;

    border: 1px solid #e9ecef;
    font-size: 14px;
}

.detailed-hours .hours-day.open {
    border-bottom: 1px solid #28a745;
}

.detailed-hours .hours-day.closed {
    border-bottom: 1px solid #dc3545;
    background: #f8f9fa;
    color: #6c757d;
}

.day-name {
    font-weight: 600;
}

.day-hours {
    font-weight: 400;
}

/* === ÉVÉNEMENTS SPÉCIAUX === */
.header-special-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.header-special-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-vernissage,
.header-finissage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    font-size: 14px;
}
.header-vernissage {border-bottom: 1px solid turquoise;}

.header-finissage {border-bottom: 1px solid violet;}

.special-icon {
    font-size: 18px;
}

.special-text {
    font-weight: 500;
}

.gram-event-special {
    background: #fff3cd;
    border: 1px solid #ffeaa7;

    padding: 20px;
    margin: 20px 0;
}

.gram-vernissage,
.gram-finissage {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-weight: 500;
}

.gram-vernissage {
    color: #721c24;
}

.gram-finissage {
    color: #b45309;
}

/* === CONTAINER PRINCIPAL === */
.event-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.event-main-content {
    min-width: 0;
}

/* === SIDEBAR SYSTÈME === */
.event-sidebar {
    position: sticky;
    top: 20px;
}

.event-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-sidebar-box {
    background: #fff;
    border: 1px solid #e9ecef;

    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.event-sidebar-box h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 8px;
}

/* === PRIX ET RÉSERVATION === */
.event-pricing-reservation {
    border-bottom: 1px solid crimson;
}
.event-locations-box {
    border-bottom: 1px solid #007bff;
}
.event-organizers-box {
    border-bottom: 1px solid #28a745;
}
.event-sponsors-box {
    border-bottom: 1px solid orange;
}
.event-price-display {
    margin-bottom: 15px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #e91e63;
    text-align: center;
}

.event-reservation-link {
    text-align: center;
}

.reservation-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ff6b6b;
    color: #fff !important;
    text-decoration: none !important;

    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.reservation-button:hover {
    background: green;
  box-shadow: 0 4px 12px rgba(0, 107, 107, 0.3);
  /*  transform: translateY(-2px);*/
}

.reservation-button:active {
  /*  transform: translateY(0);*/
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* === MÉTADONNÉES COMPLÈTES === */
.gram-complete-meta-php {
    background: #fff;
    border: 1px solid #e9ecef;

    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gram-meta-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f8f9fa;
}

.gram-meta-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gram-meta-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    margin: 0 0 15px 0;
    color: #495057;
}

.meta-section {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.meta-section:last-child {
    margin-bottom: 0;
}

.meta-icon {
  font-size: 14px;
  position: absolute;
  margin-top: -80px;
  margin-left: -25px;
  background: #fff;
  padding: 0px 7px 0px 7px;
  border: 1px solid #f8f9fa;
}

/* === TARIFS === */
.gram-tarif-section {
    background: #d4edda;
    border: 1px solid #b8dabc;

    padding: 20px;
}

.gram-tarif-section .price-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #155724;
}

/* === MULTI-ENTITÉS SIDEBAR === */
.location-item,
.organizer-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
}

.location-item:first-child,
.organizer-item:first-child {
    padding-top: 0;
}

.location-item:last-child,
.organizer-item:last-child {
    padding-bottom: 0;
}

.location-logo-container,
.organizer-logo-container {
flex-shrink: 0;
  width: 60px;
  height: fit-content;
  overflow: hidden;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.location-details,
.organizer-details {
    flex: 1;
    min-width: 0;
}

.location-name,
.organizer-name {
    margin-bottom: 8px;
    font-size: 16px;
}

.location-address,
.organizer-email,
.organizer-phone {
    margin-bottom: 6px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.location-website,
.organizer-website {
    font-size: 14px;
}

.location-website a,
.organizer-website a {
    color: #007bff;
    text-decoration: none;
}

.location-website a:hover,
.organizer-website a:hover {
    text-decoration: underline;
}

.organizer-email a {
    color: #007bff;
    text-decoration: none;
}

.organizer-email a:hover {
    text-decoration: underline;
}

.location-separator,
.organizer-separator {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #e9ecef;
    background: transparent;
}

/* === LIEUX MULTIPLES (PAGE DÉTAIL) === */
.gram-lieux-section {
    background: #e3f2fd;

    padding: 20px;
}

.gram-lieu-item {
    background: #fff;
    border: 1px solid #90caf9;

    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.gram-lieu-item:last-child {
    margin-bottom: 0;
}

.gram-lieu-logo {
    flex: 0 0 48px;
}

.gram-lieu-logo img {
    width: 48px;
    height: 48px;

    object-fit: cover;
    border: 1px solid #dee2e6;
}

.gram-lieu-info {
    flex: 1;
}

.gram-lieu-name {
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 8px;
}

.gram-lieu-address {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.gram-lieu-website {
    margin-top: 8px;
}

.gram-lieu-website a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.gram-lieu-website a:hover {
    text-decoration: underline;
}

/* === ORGANISATEURS MULTIPLES (PAGE DÉTAIL) === */
.gram-organisateurs-section {
    background: #e8f5e8;

    padding: 20px;
}

.gram-organisateur-item {
    background: #fff;
    border: 1px solid #81c784;

    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.gram-organisateur-item:last-child {
    margin-bottom: 0;
}

.gram-organisateur-logo {
    flex: 0 0 48px;
}

.gram-organisateur-logo img {
    width: 48px;
    height: 48px;

    object-fit: cover;
    border: 1px solid #dee2e6;
}

.gram-organisateur-info {
    flex: 1;
}

.gram-organisateur-name {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 8px;
}

.gram-organisateur-contact {
    color: #666;
    font-size: 0.9em;
}

.gram-organisateur-contact a {
    color: #28a745;
    text-decoration: none;
}

.gram-organisateur-contact a:hover {
    text-decoration: underline;
}

/* === ARCHIVE LOGOS === */
.archive-logos-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.archive-logo-item {
    width: 32px;
    height: 32px;

    overflow: hidden;
    border: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: help;
    transition: all 0.2s ease;
}

.archive-logo-item:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.archive-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-text-item {
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #dee2e6;

    font-size: 12px;
    color: #495057;
}

/* === TOOLTIPS ARCHIVE === */
.archive-logo-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;

    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.archive-logo-item[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
    z-index: 1001;
}

/* === ARCHIVE STYLES CONSERVÉS === */
.gram-unified-event-block {
    background: #fff;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.gram-unified-event-block:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.30);
 /*   transform: translateY(-2px);*/
}

.event-header-section {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

.event-image {
}

.event-image img {
    width: 280px;
    height: auto;
    object-fit: scale-down;

    margin: 0 0 5px 20px;
    float: right;
    max-height: 200px;
    background: transparent;
}

.event-title-area {
    flex: 1;
}
h2.event-title {
  clear:initial;
}

.event-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.event-title a {
    color: #495057;
    text-decoration: none;
}

.event-title a:hover {
    color: #007bff;
}

.event-excerpt {
    color: #6c757d;
    line-height: 1.6;
}

.event-meta-section {
    padding: 0 20px 20px 20px;
}

.meta-primary-date {
    font-size: 1.1em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
	width: 100%;
}

.meta-main-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
	margin-bottom: 0px;
}

.meta-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.meta-content {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.location-mini-logo,
.organizer-mini-logo {
    width: 75px !important;
    max-height: 50px !important;
    object-fit: cover;
    cursor: help;
    transition: transform 0.2s ease;
    display: inline-block !important;
    margin-right: 4px;
}

.location-mini-logo:hover,
.organizer-mini-logo:hover {
    transform: scale(1.15);
    border-color: #007bff;
}

.location-text,
.organizer-text {
    font-size: 0.9em;
    color: #6c757d;
    padding: 4px 8px;
    background: #fff;

    border: 1px solid #e9ecef;
    display: inline-block;
}

.location-box {
    border-bottom: 1px solid #007bff;
}

.organizer-box {
    border-bottom: 1px solid #28a745;
}
.sponsor-box {
    border-bottom: 1px solid orange;
}

.price-box {
    border-bottom: 1px solid crimson;
}

.price-box .meta-text {
    font-size: 1.1em;
    color: #495057;
    font-weight: 600;
}

.meta-special-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
	margin-bottom:15px;
}

.special-badge {
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.vernissage-badge {

    width: fit-content;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
	border-bottom: 1px solid turquoise;
}

.finissage-badge {
	    width: fit-content;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
	border-bottom: 1px solid violet;
  
}

/* === LIEN ÉVÉNEMENTS PASSÉS === */
.gram-past-events-archive-link {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;

    border: 1px solid #e1bee7;
}

.gram-past-events-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7b1fa2 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;

    transition: background-color 0.2s ease;
}

.gram-past-events-link:hover {
    background-color: rgba(123, 31, 162, 0.1);
}

/* === ANIMATIONS ET TRANSITIONS === */
.event-sidebar-box,
.archive-logo-item,
.reservation-button,
.gram-past-events-link {
    transition: all 0.3s ease;
}

.event-sidebar-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === ÉTATS SPÉCIAUX === */
.event-dates-main.event-upcoming {
    border-left: 4px solid #1565c0;
}

.event-dates-main.event-active {
    border-left: 4px solid #2e7d32;
}

.event-dates-main.event-finished {
    border-left: 4px solid #c2185b;
}

/* === ACCESSIBILITÉ === */
.reservation-button:focus,
.gram-past-events-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.archive-logo-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

.gram-event-link:focus,
.gram-meta-logo:focus,
.gram-lieu-website a:focus,
.gram-organisateur-contact a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .event-layout-container {
        padding: 15px;
    }

    .event-header-infos {
        padding: 20px;
    }
.event-image img  {
        width: 100%;
        object-fit: unset;
        max-height: unset;
    }
    .header-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-dates-text {
        font-size: 16px;
    }

    .header-hours-content .detailed-hours {
        grid-template-columns: 1fr;
    }

    .header-special-content {
        flex-direction: column;
        gap: 10px;
    }

    .event-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .event-sidebar {
        position: static;
        order: -1;
    }

    .event-sidebar-box {
        padding: 15px;
    }

    .location-item,
    .organizer-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .location-logo-container,
    .organizer-logo-container {
        align-self: center;
    }

    .archive-logos-grid {
        justify-content: center;
    }

    .event-header-section {
        flex-direction: column;
        gap: 15px;
    }



    .meta-main-row {
        flex-direction: column;
        gap: 10px;
    }

    .meta-info-box, .vernissage-badge, .finissage-badge {
        width: 100%;
    }

    .gram-lieu-item,
    .gram-organisateur-item {
        flex-direction: column;
        text-align: center;
    }

    .gram-lieu-logo,
    .gram-organisateur-logo {
        flex: none;
        align-self: center;
    }

    .location-mini-logo,
    .organizer-mini-logo {
        width: 46px !important;
        height: 34px !important;
    }
}

@media (max-width: 480px) {
    .event-layout-container {
        padding: 10px;
    }

    .event-header-infos {
        padding: 15px;
    }

    .event-status-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .reservation-button {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 10px 20px;
    }

    .detailed-hours .hours-day {
        font-size: 13px;
        padding: 6px 10px;
    }

    .price-value {
        font-size: 24px;
    }

    .archive-logo-item {
        width: 28px;
        height: 28px;
    }

    .gram-complete-meta-php {
        padding: 15px;
    }

    .gram-meta-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .gram-lieu-item,
    .gram-organisateur-item {
        padding: 12px;
    }

    .meta-content {
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reservation-button,
    .archive-logo-item,
    .event-sidebar-box,
    .gram-unified-event-block,
    .location-mini-logo,
    .organizer-mini-logo {
        transition: none;
    }

    .archive-logo-item:hover,
    .reservation-button:hover,
    .gram-unified-event-block:hover,
    .location-mini-logo:hover,
    .organizer-mini-logo:hover {
        transform: none;
    }
}

@media print {
    .event-header-infos {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .reservation-button {
        display: none;
    }

    .event-sidebar {
        position: static;
    }

    .event-container {
        grid-template-columns: 1fr;
    }
}
