/* ========================================================
   HERO
   ======================================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%; height: 110%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

.slide.active { opacity: 1; }

@keyframes subtleZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.03); }
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom,
        rgba(10, 76, 86, 0.2) 0%,
        rgba(10, 76, 86, 0.5) 100%);
}

.hero h1 {
    position: relative;
    color: #faf3E0;
    font-size: 6rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 8px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   CALENDAR SECTION
   ======================================================== */
.calendar-section {
    background: linear-gradient(to bottom, #faf3e0 0%, #fff 50%, #faf3e0 100%);
    color: #0a4c56;
    padding: 120px 10%;
    text-align: center;
}

.calendar-section h2 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.calendar-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 4px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
}

.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 60px 0 40px;
}

.cal-btn {
    display: inline-block;
    background: linear-gradient(135deg, #D9A441, #f4c467);
    color: #0a4c56;
    padding: 12px 24px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(217, 164, 65, 0.3);
}

.cal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(217, 164, 65, 0.5);
}

#month-year {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #0a4c56;
    min-width: 250px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.day-header {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0a4c56, #0d5f6d);
    color: #faf3e0;
    padding: 15px 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.day {
    font-family: "Montserrat", sans-serif;
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-empty { min-height: 75px; }

.day.event {
    background: linear-gradient(135deg, #D9A441, #f4c467);
    color: #0a4c56;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(217, 164, 65, 0.4);
}

.day.event:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 15px 40px rgba(217, 164, 65, 0.6);
}

.day.today {
    background: linear-gradient(135deg, #0a4c56, #0d5f6d);
    color: #fff;
    font-weight: 700;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 76, 86, 0.98);
    color: #faf3e0;
    padding: 15px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 9999;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(217, 164, 65, 0.3);
    border: 2px solid #D9A441;
    line-height: 1.8;
}

.day.event:hover .tooltip { display: block; }

.tooltip-img {
    display: block;
    width: 160px;
    height: auto;
    margin-top: 8px;
    border: 2px solid #D9A441;
}

.event-list {
    margin-top: 80px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.event-list h3 {
    font-family: "Playfair Display", serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #0a4c56;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.event-list h3::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 3px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
}

/* ── Grille de cartes événements ── */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.event-card-pub {
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card-pub:hover {
    transform: translateY(-8px);
    border-color: #D9A441;
    box-shadow: 0 15px 40px rgba(217, 164, 65, 0.3);
}

.event-card-pub-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.event-card-pub-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.event-card-pub:hover .event-card-pub-img img {
    transform: scale(1.05);
}

.event-card-pub-img--empty {
    background: linear-gradient(135deg, #f0e8d0, #faf3e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.event-card-pub-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-card-pub-date {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #D9A441;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-card-pub-title {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0a4c56;
    line-height: 1.3;
}

.event-card-pub-desc {
    font-family: "Montserrat", sans-serif;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
    margin-top: 4px;
}

/* footer → voir footer.css */

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
    .calendar-section { padding: 80px 5%; }
    .calendar-section h2 { font-size: 2.6rem; }
    .calendar { gap: 6px; }
    .day { min-height: 55px; font-size: 0.9rem; }
    .day-empty { min-height: 55px; }
    .day-header { font-size: 0.75rem; padding: 10px 0; }
    #month-year { font-size: 1.5rem; min-width: 200px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; letter-spacing: 4px; }
    .calendar-section { padding: 50px 3%; }
    .calendar-section h2 { font-size: 2rem; }
    .calendar-controls { gap: 12px; margin: 35px 0 25px; }
    #month-year { font-size: 1.1rem; min-width: 130px; }
    .cal-btn { padding: 10px 14px; font-size: 1.2rem; }
    .calendar { gap: 3px; }
    .day { min-height: 44px; font-size: 0.78rem; padding: 6px 2px; overflow: visible; }
    .day-empty { min-height: 44px; }
    .day-header { font-size: 0.6rem; padding: 8px 2px; letter-spacing: 0; }
    .tooltip { display: none !important; }
    .day.event::after {
        content: '';
        position: absolute;
        bottom: 5px; left: 50%;
        transform: translateX(-50%);
        width: 5px; height: 5px;
        border-radius: 50%;
        background: #0a4c56;
    }
    .event-list { margin-top: 50px; }
    .event-list h3 { font-size: 1.6rem; }
    .event-cards { grid-template-columns: 1fr; gap: 20px; }
    .event-card-pub:hover { transform: none; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 1.8rem; letter-spacing: 2px; padding: 0 15px; }
    .calendar-section { padding: 40px 2%; }
    .calendar-section h2 { font-size: 1.7rem; }
    .calendar { gap: 2px; }
    .day { min-height: 38px; font-size: 0.7rem; padding: 4px 1px; }
    .day-empty { min-height: 38px; }
    .day-header { font-size: 0.55rem; padding: 6px 1px; }
    #month-year { font-size: 0.95rem; min-width: 110px; }
    .cal-btn { padding: 8px 10px; font-size: 1rem; }
    .event-list h3 { font-size: 1.4rem; }
    .event-card-pub-title { font-size: 1.1rem; }
    .event-card-pub-body { padding: 16px; }
}
