/**
 * Theme Name:      Divi Child Theme
 * Theme URI:       https://www.elegantthemes.com/gallery/divi/
 * Description:     Child theme
 * Author:          IN-PULSION
 * Author URI:      https://www.crea-passion.pf/
 * Template:         Divi
 * Version:         1.0.0
 * Text Domain:     divi-child-theme
 * License:         GPL2
 * License URI:     https://www.gnu.org/licenses/gpl-2.0.html
 */
  
 
/* ---------------------- Theme customization starts here ---------------------- */

/* ══════════════════════════════════════
   ÉVÉNEMENTS MILLÉSIME
══════════════════════════════════════ */

.millesime-event-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(98,20,43,.1);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.millesime-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(98,20,43,.15);
}

/* Image */
.millesime-event-img img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

/* Corps */
.millesime-event-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Meta (badge + heure/boutique) */
.millesime-event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Badge date */
.millesime-date-badge {
    background: #62142B;
    color: #fff;
    border-radius: .75rem;
    padding: .5rem .8rem;
    text-align: center;
    min-width: 70px;
}
.millesime-date-badge .dow {
    display: block;
    font-size: .55rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}
.millesime-date-badge .day {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}
.millesime-date-badge .month {
    display: block;
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Heure & boutique */
.millesime-heure {
    font-size: .8rem;
    color: #888;
    margin: 0;
}
.millesime-boutique {
    font-size: .85rem;
    font-weight: 600;
    color: #62142B;
    margin: 2px 0 0;
}

/* Titre */
.millesime-event-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: .5rem 0;
}

/* Description */
.millesime-event-excerpt {
    color: #666;
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Footer (lieu, places) */
.millesime-event-footer {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    font-size: .8rem;
    color: #888;
}
.millesime-gratuit {
    background: #f7f1e8;
    color: #62142B;
    padding: .2rem .7rem;
    border-radius: 99px;
    font-weight: 600;
}
.millesime-prix {
    display: inline-flex;
    align-items: center;
    background: #f7f1e8;
    color: #62142B;
    border: 1px solid #CDB891;
    padding: .2rem .7rem;
    border-radius: 99px;
    font-weight: 600;
    white-space: nowrap;
}

/* Tags */
.millesime-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.2rem;
    align-items: center;
}
.millesime-tag {
    display: inline-block;
    background: #f7f1e8;
    color: #62142B;
    border: 1px solid #CDB891;
    padding: .25rem .75rem;
    border-radius: 99px;
    font-size: .75rem;
    margin: .2rem .2rem 0 0;
}

/* Bouton RSVP */
.millesime-btn-rsvp {
    display: inline-block;
    background: #62142B;
    color: #fff;
    border-radius: 99px;
    padding: .8rem 2rem;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.millesime-btn-rsvp:hover {
    background: #4a0f20;
    transform: translateY(-2px);
    color: #fff;
}
.millesime-rsvp-note {
    font-size: .75rem;
    color: #aaa;
    display: block;
    margin-top: .4rem;
}

/* Etat vide */
.millesime-no-event {
    background: #f7f1e8;
    border: 2px dashed #CDB891;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    color: #62142B;
}

/* Grille 2 colonnes */
.millesime-events-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.millesime-events-grid .millesime-event-card {
    flex-direction: row !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    align-items: stretch !important;
}
.millesime-events-grid .millesime-event-img {
    width: 35% !important;
    flex-shrink: 0 !important;
}
.millesime-events-grid .millesime-event-img img {
    height: 100% !important;
    min-height: 240px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.millesime-events-grid .millesime-event-body {
    width: 65% !important;
    padding: 1.5rem !important;
}
@media (max-width: 1024px) {
    .millesime-events-grid { grid-template-columns: 1fr !important; }
    .millesime-events-grid .millesime-event-card { flex-direction: column !important; }
    .millesime-events-grid .millesime-event-img { width: 100% !important; }
    .millesime-events-grid .millesime-event-img img { height: 220px !important; }
    .millesime-events-grid .millesime-event-body { width: 100% !important; }
}
/* Tel de reservation - espacement */
.millesime-tel-rsvp {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #62142B;
    font-weight: 600;
}
