html, body {
    height: 100%;
    margin: 0;
}

body {
	display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* Header blanc + shadow */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header h3 { margin:0; }
.main-header nav a { color:#000; margin-right:15px; text-decoration:none; }
.main-header nav a:hover { text-decoration:underline; }

.logo {
    max-height: 70px;
    width: auto;
}

@media (max-width: 576px) {
    .logo {
        max-height: 45px;
    }
}

.main-content {
    flex: 1;
}

.hero {
    background: linear-gradient(135deg, #0d6efd, #198754);
	color: #fff;
}

footer {
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

footer a {
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ff6b00;
}

/* Boutons personnalisés */
.btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
}
.btn-primary:hover {
    background-color: #0069d9 !important;
    border-color: #0062cc !important;
}

/* Carte événement */
.event-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.event-image {
    height: 180px;
    object-fit: cover;
}

.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.6em;
    border-radius: 0.35rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.event-details-card {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: #ffffff;
    padding: 0;
    overflow: visible;
}
.event-details-image { width:100%; height:400px; object-fit:cover; }
.event-details-content { padding:30px; min-height: auto; }
.event-details-content h2 { margin-bottom:15px; color:#ff6b00; }
.event-details-content p { font-size:1.1rem; margin-bottom:10px; }

/* Contact badges responsive */
.contact-icons {
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin:20px 0;
}
.contact-icons a {
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-icons a .icon-block {
    width:80px;
    height:80px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.contact-icons a:hover .icon-block {
    transform: scale(1.15);
    box-shadow:0 6px 20px rgba(0,0,0,0.25);
}
.contact-icons span {
    margin-top:8px;
    font-weight:bold;
    font-size:0.95rem;
    color:#000;
}

/* Couleurs icônes */
.icon-facebook { background:#83b7e5; }
.icon-email { background:#c6544e; }
.icon-phone { background:#998432; }
.icon-block img { width:36px; height:36px; }

.contact-card { border-radius: 15px; }
.contact-card:hover { transform: scale(1.01); transition: 0.2s; }
.icon-label { font-weight: 500; }

/* ------------------------
   CALENDRIER
   ------------------------ */

.calendar-wrapper {
    overflow-x: auto; /* scroll horizontal sur mobile */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 150px);
    gap: 10px;
    min-width: max-content; /* pour scroll horizontal si écran petit */
}

.day {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 6px;
    min-height: 120px;
    background: #fff;
}

.day h6 {
    font-weight: bold;
}

.event-item {
    background: #f1f8ff;
    border-left: 3px solid #0d6efd;
    padding: 4px 6px;
    margin-top: 6px;
    font-size: 0.85rem;
    border-radius: 4px;
    display: block;
}

/* Barre du mois */
.calendar-nav {
    align-items: center;
}
.calendar-nav h4 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff6b00;
    text-align: center;
    flex-grow: 1;
    margin: 0 10px;
}
.calendar-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.2s;
}
.calendar-nav button:hover {
    background-color: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
}
.btn-current-month i {
    margin-right: 5px;
}

/* Header des jours */
.calendar-header {
    grid-template-columns: repeat(7, 150px) !important;
}

.calendar-header > div {
    white-space: nowrap;
    text-align: center;
    font-weight: bold;
}

/* ------------------------
   RESPONSIVE
   ------------------------ */

/* Desktop → tablette */
@media (max-width: 992px) {
    .calendar {
        grid-template-columns: repeat(7, 140px);
    }
}

/* Mobile → scroll horizontal */
@media (max-width: 576px) {
    .calendar, .calendar-header {
        grid-template-columns: repeat(7, 120px);
        overflow-x: auto;
    }

    .calendar-header > div {
        font-size: 0.75rem;
    }

    .day {
        min-height: 100px;
        padding: 8px;
    }
}