@import url('header.css'); /* Charge ton header/footer */
@import url('footer.css'); /* Charge ton header/footer */

/* ========================================================
   HERO
   ======================================================== */
.hero {
    position: relative;
    height: 100vh; /* ← indispensable */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================
   HERO SLIDESHOW
   ======================================================== */
.hero-slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%; /* ← déjà là normalement */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%;
    height: 110%; /* ← vérifie que c'est bien 110% et pas 100% */
    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 {
    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);
}

/* Contrôles */
.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-size: 1.8rem;
    font-weight: 600;
    color: #0a4c56;
    min-width: 250px;
    font-family: "Playfair Display", serif;
}

/* Grille calendrier */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.day-header {
    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 {
    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 */
.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 */
.event-list {
    margin-top: 80px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.event-list h3 {
    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);
}

.event-list ul { list-style: none; }

.event-list li {
    background: #fff;
    border-left: 5px solid #D9A441;
    margin-bottom: 25px;
    padding: 25px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

.event-list li:hover {
    transform: translateX(15px);
    box-shadow: 0 10px 30px rgba(217, 164, 65, 0.3);
    border-color: #D9A441;
}

.event-list strong { color: #0a4c56; font-size: 1.1rem; }
.event-list em { color: #D9A441; font-style: normal; font-weight: 600; }

.event-img {
    display: block;
    width: 60%;
    max-width: 500px;
    height: auto;
    margin: 15px auto 0;
    border: 3px solid #D9A441;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
}

.event-list li:hover .event-img {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(217, 164, 65, 0.4);
}

@media (max-width: 900px) {
    header { padding: 20px 30px; }
    .calendar { gap: 6px; }
    .day { min-height: 55px; font-size: 0.9rem; }
    .day-header { font-size: 0.75rem; padding: 10px 0; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    header { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .calendar { grid-template-columns: repeat(4, 1fr); }
    .tooltip { white-space: normal; max-width: 180px; }
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
    background-color: #0a4c56;
    color: #faf3E0;
    padding: 80px 10% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #D9A441;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50%; height: 2px;
    background: linear-gradient(90deg, #D9A441, transparent);
}

.footer-section p,
.footer-section a {
    font-size: 0.95rem;
    line-height: 2;
    color: #faf3E0;
    text-decoration: none;
    font-weight: 300;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section a:hover { opacity: 1; color: #D9A441; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(250, 243, 224, 0.2);
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.7;
}