* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f9fc;
}

:root {
    --site-max-width: clamp(1200px, 88vw, 1680px);
    --site-gutter: clamp(12px, 2.4vw, 34px);
    --mobile-drawer-width: min(84vw, 360px);
}

.container {
    width: min(100%, var(--site-max-width));
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Navbar moderne */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: visible;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo a {
    font-size: inherit;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b00 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff;
    font-size: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    line-height: 1;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

.nav-toggle:focus-visible {
    outline: 2px solid #ffa500;
    outline-offset: 2px;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    display: block;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before {
    transform: translateY(-6px);
}

.nav-toggle-icon::after {
    transform: translateY(6px);
}

.navbar.open .nav-toggle {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar.open .nav-toggle-icon {
    background: transparent;
}

.navbar.open .nav-toggle-icon::before {
    transform: translateY(0) rotate(45deg);
}

.navbar.open .nav-toggle-icon::after {
    transform: translateY(0) rotate(-45deg);
}

.nav-backdrop {
    border: 0;
    position: fixed;
    inset: 0;
    z-index: 980;
    background: rgba(3, 8, 16, 0.58);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b00, #ffa500);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 107, 0, 0.1);
    color: #ffa500;
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.active {
    background: linear-gradient(135deg, #ff6b00 0%, rgba(255, 107, 0, 0.2) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.nav-links a.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: clamp(300px, 36vh, 520px);
    padding: clamp(2.5rem, 8vh, 8rem) 0;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e3c72;
}

.hero-content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(0.5rem, 3vw, 2rem) clamp(1rem, 6vw, 6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.2rem;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    margin-bottom: 1.4rem;
    animation: fadeInUp 1s;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    margin-bottom: 1.8rem;
    animation: fadeInUp 1.2s;
}

.cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: #ffd700;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1.4s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Make hero take more horizontal space on larger screens */
@media (min-width: 1000px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding-left: clamp(1.5rem, 3vw, 4rem);
        padding-right: clamp(1.5rem, 3vw, 4rem);
    }
    .hero-content {
        max-width: var(--site-max-width);
        padding-left: 0;
        padding-right: 0;
        align-items: center;
    }
}

/* Carrousel Galerie */
.carousel-section {
    padding: 0;
    background: #f7f9fc;
    position: relative;
}

.carousel-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a1a2e;
    margin: 24px 0 18px;
}

.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    background: transparent;
}

.carousel-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    border-radius: 12px 12px 0 0;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    min-height: 420px;
    max-width: 100%;
}

.carousel-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    animation: fadeIn 0.5s;
    transition: transform 2.5s ease, opacity 2.5s ease;
    pointer-events: none;
}

.carousel-image.fade {
    display: block;
}

.carousel-image.next-preview {
    display: block;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) scale(0.90);
    width: 38%;
    height: 72%;
    object-fit: cover;
    filter: blur(4px) brightness(0.85) saturate(0.9);
    opacity: 0.75;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.45s ease;
    z-index: 10;
}

.carousel-image.prev-preview {
    display: block;
    position: absolute;
    top: 50%;
    left: -40%;
    transform: translateY(-50%) scale(0.90);
    width: 38%;
    height: 72%;
    object-fit: cover;
    filter: blur(4px) brightness(0.85) saturate(0.9);
    opacity: 0.75;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.45s ease;
    z-index: 10;
}

.carousel-image.fade {
    z-index: 30;
    display: block;
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* hide other non-preview images */
.carousel-image:not(.fade):not(.next-preview):not(.prev-preview) {
    display: none;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.8);
    color: white;
    border: 2px solid #ff6b00;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.carousel-btn:hover {
    background: #ff6b00;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.6);
}

.carousel-btn-prev {
    left: 30px;
}

.carousel-btn-next {
    right: 30px;
}

.carousel-btn::before {
    content: '';
    display: inline-block;
    font-size: 1.6rem;
    line-height: 1;
    color: white;
    pointer-events: none;
}
.carousel-btn-prev::before { content: "⬅"; }
.carousel-btn-next::before { content: "⮕"; }

.carousel-btn:focus-visible {
    outline: 3px solid rgba(255, 214, 168, 0.9);
    outline-offset: 5px;
}

.carousel-info {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.98);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    z-index: 80;
    width: 100%;
}

.carousel-info .info-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.carousel-info h3 {
    font-size: 1.05rem;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.carousel-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.carousel-counter {
    font-size: 0.95rem;
    color: #ff6b00;
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide-from-top animations */
@keyframes slideFromTopCenter {
    from { transform: translateY(-80px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideFromTopPreview {
    from { transform: translateY(-80px) scale(0.82); opacity: 0; }
    to   { transform: translateY(-50%) scale(0.9); opacity: 0.75; }
}

/* apply animations */
.carousel-image.fade {
    z-index: 30;
    display: block;
    transform: translateX(0) scale(1);
    opacity: 1;
    animation: slideFromTopCenter 2.5s cubic-bezier(.2,.9,.2,1);
}

.carousel-image.next-preview,
.carousel-image.prev-preview {
    animation: slideFromTopPreview 2.5s cubic-bezier(.2,.9,.2,1);
}

/* Présentation */
.presentation {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.presentation h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e3c72;
}

.presentation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pres-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.pres-card:hover {
    transform: translateY(-10px);
}

.pres-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pres-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* Carrousel et Calendrier */
.evenements {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.evenements h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e3c72;
}

/* Services */
.services-section {
    padding: 60px 0;
    background: #f7f9fc;
}

.services-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e3c72;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-left: 4px solid #ff6b00;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

.service-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Calendrier moderne */
.events-calendar {
    max-width: 100%;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: #fff;
}

.calendar-header h3 {
    font-size: 1.8rem;
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 1rem;
}

.calendar-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0f2027;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    border-left-color: #0f2027;
}

.event-date {
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.event-card h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.event-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.event-location {
    color: #0f2027;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Page Hero (bannière comme template) */
.page-hero {
    margin-top: 70px;
    padding: clamp(48px, 8vh, 92px) 20px;
    background: #f7f9fc;
    text-align: center;
    color: #1e3c72;
}

.page-hero-content {
    width: min(100%, 980px);
    margin: 0 auto;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    margin-bottom: 1rem;
    color: #1e3c72;
    animation: fadeInDown 0.7s both;
}

.page-hero-content p {
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    color: #555;
    max-width: 68ch;
    margin: 0 auto;
    animation: fadeInUp 0.7s both;
}

@media (max-width: 768px) {
    .page-hero { margin-top: 60px; padding: 40px 15px; }
    .page-hero-content h1 { font-size: 2rem; }
    .page-hero-content p  { font-size: 1rem; }
}

@media (max-width: 480px) {
    .page-hero { margin-top: 55px; padding: 30px 12px; }
    .page-hero-content h1 { font-size: 1.5rem; }
    .page-hero-content p  { font-size: 0.9rem; }
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 1.4rem 0 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 0.8rem;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    color: #ffa500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section {
    font-size: 0.85rem;
}

.footer-section p {
    margin-bottom: 0.3rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.2rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffa500;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Responsive Design */

/* Tablette et petit desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .carousel {
        min-height: 350px;
    }
    
    .presentation h2 {
        font-size: 1.8rem;
    }
    
    .services-section h2,
    .evenements h2 {
        font-size: 2rem;
    }
}

/* Tablette (480px - 768px) */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: var(--mobile-drawer-width);
        padding: 86px 18px 20px;
        margin: 0;
        background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 100%),
            linear-gradient(160deg, #102634 0%, #203a43 50%, #1f3f4c 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: -14px 0 36px rgba(0, 0, 0, 0.33);
        overflow-y: auto;
        transform: translateX(105%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.24s ease;
        z-index: 995;
    }

    .nav-toggle { display: inline-flex; }

    .navbar.open .nav-links {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar.open .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.24s ease, transform 0.24s ease;
    }

    .nav-links li:nth-child(1) { transition-delay: 0.06s; }
    .nav-links li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links li:nth-child(3) { transition-delay: 0.14s; }
    .nav-links li:nth-child(4) { transition-delay: 0.18s; }

    .navbar.open .nav-links a {
        display: block;
        padding: 0.95rem 1rem;
        border-radius: 12px;
        font-size: 1rem;
        letter-spacing: 0.2px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-links a {
        padding: 0.95rem 1rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    .nav-links a::after {
        left: 1rem;
        transform: none;
        bottom: 8px;
        height: 2px;
    }

    .nav-links a.active {
        border-color: rgba(255, 165, 0, 0.45);
    }
    
    .hero {
        margin-top: 60px;
        min-height: 280px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .carousel-section {
        padding: 30px 0;
    }
    
    .carousel-wrapper {
        min-height: 320px;
        padding: 0;
    }
    
    .carousel {
        min-height: 320px;
        border-radius: 10px 10px 0 0;
    }

    /* Hide side previews on tablet/mobile */
    .carousel-image.next-preview,
    .carousel-image.prev-preview {
        display: none !important;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px !important;
        left: auto;
    }
    
    .presentation {
        padding: 30px 0;
    }
    
    .presentation h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .presentation-content {
        gap: 1rem;
    }
    
    .pres-card {
        padding: 1rem;
    }
    
    .pres-card .icon {
        font-size: 2.5rem;
    }
    
    .services-section,
    .evenements {
        padding: 40px 0;
    }
    
    .services-section h2,
    .evenements h2 {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
    
    .calendar-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .event-card,
    .service-card {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .footer {
        padding: 0.8rem 0 0.3rem;
    }

    .footer-section h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .footer-section {
        font-size: 0.75rem;
    }

    .footer-section p {
        margin-bottom: 0.15rem;
        line-height: 1.3;
    }
}

/* Mobile (< 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.7rem 0;
    }
    
    :root { --site-gutter: 12px; }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        width: min(100vw, 320px);
        padding: 78px 14px 16px;
        gap: 0.32rem;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: inline-flex;
    }

    .navbar.open .nav-links {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .nav-links a {
        padding: 0.86rem 0.86rem;
        font-size: 0.92rem;
    }

    .nav-links a::after {
        bottom: 7px;
    }
    
    .hero {
        margin-top: 50px;
        min-height: 230px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .carousel-section {
        padding: 20px 0;
    }
    
    .carousel-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .carousel-wrapper {
        min-height: 220px;
        padding: 0;
    }
    
    .carousel {
        min-height: 220px;
        border-radius: 8px 8px 0 0;
    }

    /* Hide side previews on small mobile */
    .carousel-image.next-preview,
    .carousel-image.prev-preview {
        display: none !important;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .carousel-btn-prev {
        left: 8px;
    }
    
    .carousel-btn-next {
        right: 8px !important;
        left: auto;
    }
    
    .carousel-info {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0;
        width: 100%;
        padding: 7px 12px;
        gap: 8px;
        border-radius: 0 0 8px 8px;
    }
    
    .carousel-info h3 {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .carousel-info p {
        font-size: 0.7rem;
    }
    
    .carousel-counter {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .presentation {
        padding: 20px 0;
    }
    
    .presentation h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .presentation-content {
        grid-template-columns: 1fr;
    }
    
    .pres-card {
        padding: 0.8rem;
    }
    
    .pres-card .icon {
        font-size: 2rem;
    }
    
    .pres-card h3 {
        font-size: 0.95rem;
    }

    .services-section,
    .evenements {
        padding: 25px 0;
    }
    
    .services-section h2,
    .evenements h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .calendar-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card,
    .service-card {
        padding: 0.8rem;
    }
    
    .event-date {
        font-size: 0.8rem;
    }
    
    .event-card h3,
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 0.6rem 0 0.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-section h3 {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-section {
        font-size: 0.72rem;
    }
    
    .footer-section p {
        margin-bottom: 0.1rem;
        line-height: 1.3;
    }
    
    .footer-section ul li {
        margin-bottom: 0.1rem;
    }
    
    .footer-bottom {
        font-size: 0.65rem;
        padding-top: 0.3rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
        margin-top: 0.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CALENDRIER DES ÉVÉNEMENTS ===== */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 1.5rem;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-controls h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

.control-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-buttons button {
    padding: 0.8rem 1.5rem;
    background: white;
    color: #0f2027;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.control-buttons button:hover {
    background: #ffa500;
    color: white;
    transform: translateY(-2px);
}

/* Calendrier */
.calendar-wrapper {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    width: 100%;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: 700;
    color: #0f2027;
    padding: 0.8rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #eee;
    border-radius: 6px;
    padding: 0.4rem;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    position: relative;
    animation: fadeInUp 0.5s;
    gap: 0.3rem;
}

.calendar-day:hover {
    border-color: #0f2027;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.calendar-day.other-month {
    color: #ccc;
    background: #f0f0f0;
    cursor: not-allowed;
}

.calendar-day.today {
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    border-color: #0f2027;
    box-shadow: 0 4px 12px rgba(15, 32, 39, 0.3);
}

.calendar-day.has-event {
    border-color: #ff6b00;
}

.calendar-day.has-event::after {
    content: "●";
    position: absolute;
    top: 2px;
    right: 4px;
    color: #ff6b00;
    font-size: 1.2rem;
}

.calendar-day.today.has-event::after {
    color: #ffa500;
}

.day-number { 
    font-size: 1rem;
    font-weight: 700;
}

.event-title {
    font-size: 0.65rem;
    color: #ff6b00;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
}

/* Détails des événements */
.events-details {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.no-events {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 1rem;
}

.event-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-left: 5px solid #ff6b00;
    border-radius: 4px;
    transition: all 0.3s;
    animation: fadeInUp 0.5s;
}

.event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.event-item h4 { color: #0f2027; margin-bottom: 0.5rem; font-size: 1.1rem; }
.event-item p  { color: #666; font-size: 0.95rem; margin: 0.3rem 0; }
.event-category { 
    display: inline-block;
    background: #ff6b00;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.event-location { color: #0f2027; font-weight: 600; margin-top: 0.3rem; }
.event-participants { color: #666; font-size: 0.9rem; margin-top: 0.3rem; }

/* ============================================================
   Section Événements - Carousel
   ============================================================ */

.events-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f7f9fc 0%, #e8f0f8 100%);
    --events-nav-size: 48px;
    --events-nav-gap: 1.5rem;
}

.events-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #0f2027;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.events-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0f2027 0%, #ff6b00 100%);
    border-radius: 2px;
}

/* Carousel Events */
.events-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: var(--events-nav-gap);
    margin-bottom: 1.2rem;
    position: relative;
}

.carousel-nav-btn {
    flex-shrink: 0;
    width: var(--events-nav-size);
    height: var(--events-nav-size);
    border-radius: 50%;
    border: 2px solid #0f2027;
    background: white;
    color: #0f2027;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.carousel-nav-btn:hover:not(:disabled) {
    background: #0f2027;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(15,32,39,0.2);
}

.carousel-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none;
}

.events-carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 14px;
}

/* Track qui glisse — une carte par slide */
.events-carousel {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Dots indicateurs */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #ff6b00;
    transform: scale(1.3);
    width: 28px;
    border-radius: 5px;
}

/* Event Card — rectangle horizontal */
.event-card {
    flex: 0 0 100%;
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 160px;
}

.event-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.event-card.active {
    box-shadow: 0 10px 35px rgba(15, 32, 39, 0.2);
    transform: translateY(-3px);
}

/* Bloc date à gauche */
.event-card-date-block {
    flex-shrink: 0;
    width: 110px;
    background: linear-gradient(160deg, #ff6b00 0%, #ffa500 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    gap: 0.2rem;
}

.event-card-day {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.event-card-month {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-card-year {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* Contenu central */
.event-card-body {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}

.event-card-body h3 {
    color: #0f2027;
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 0;
}

.event-card-head-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.event-card-category {
    display: inline-block;
    background: linear-gradient(90deg, #0f2027 0%, #203a43 100%);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
    order: 0;
}

.event-card-today-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: #f1f5fa;
    border: 1px solid #dce5f0;
    color: #4b6178;
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.event-card-location {
    color: #555;
    font-size: 0.95rem;
}

.event-card-time {
    color: #0f2027;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.event-card-participants {
    color: #888;
    font-size: 0.88rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
    margin-top: 0.2rem;
}

.event-card-expanded {
    display: none;
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e9eff6;
    flex-direction: column;
    gap: 0.62rem;
}

.event-card.active .event-card-expanded {
    display: flex;
}

.event-card-expanded-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.event-card-expanded-item {
    color: #2f4257;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.35;
    padding: 0.56rem 0.68rem;
    background: #f3f7fc;
    border: 1px solid #e3eaf3;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.event-card-expanded-item strong {
    color: #152c37;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-card-expanded-about {
    margin: 0;
    padding: 0.72rem 0.82rem;
    background: #f8fafc;
    border: 1px solid #e5ecf3;
    border-left: 3px solid #ff6b00;
    border-radius: 10px;
}

.event-card-expanded-about strong {
    color: #0f2027;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-card-expanded-about p {
    color: #44586d;
    line-height: 1.48;
    margin: 0.36rem 0 0;
    font-size: 0.89rem;
}

.event-card-actions {
    margin-top: 0.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    width: 100%;
}

.event-card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(15, 32, 39, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-gallery-btn {
    background: linear-gradient(90deg, #ff6b00, #ffa500);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.28);
}

.event-card-location-btn {
    background: linear-gradient(90deg, #0f2027, #2c5364);
    box-shadow: 0 6px 16px rgba(15, 32, 39, 0.24);
}

.event-card-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 32, 39, 0.28);
}

.event-card-action-btn.disabled {
    background: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
    pointer-events: none;
}

.event-card-expanded-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
}

.event-card-expanded-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.82rem;
}

/* Flèche décorative à droite */
.event-card-arrow {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 2rem;
    transition: color 0.3s, transform 0.3s;
}

.event-card:hover .event-card-arrow {
    color: #ff6b00;
    transform: translateX(4px);
}

.event-card.active .event-card-arrow {
    color: #ff6b00;
    transform: translateX(4px);
}

.event-card-empty {
    background: transparent;
    border: 2px dashed #ddd;
    border-radius: 14px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-style: italic;
}

/* Events Details Section */
.events-details-section {
    background: linear-gradient(150deg, #ffffff 0%, #f7faff 100%);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 32, 39, 0.08);
    border: 1px solid rgba(15, 32, 39, 0.08);
    min-height: 0;
    display: flex;
    align-items: stretch;
    margin-inline: calc(var(--events-nav-size) + var(--events-nav-gap));
}

.event-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6f86;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    border: 1px dashed rgba(32, 58, 67, 0.24);
    border-radius: 10px;
    padding: 0.9rem;
    background: rgba(238, 244, 252, 0.72);
}

.event-detail-placeholder p {
    width: 100%;
    margin: 0;
}

.event-details-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.event-details-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-details-content h3 {
    color: #0f2027;
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    margin: 0;
    line-height: 1.25;
}

.event-details-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.event-details-date,
.event-details-time,
.event-details-location,
.event-details-participants {
    color: #2f4257;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.35;
    padding: 0.65rem 0.75rem;
    background: #f3f7fc;
    border: 1px solid #e3eaf3;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.event-details-date strong,
.event-details-time strong,
.event-details-location strong,
.event-details-participants strong {
    color: #152c37;
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-category-badge {
    display: inline-block;
    background: linear-gradient(90deg, #0f2027 0%, #1a4f68 100%);
    color: white;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-details-description {
    margin: 0;
    padding: 0.85rem 0.95rem;
    background: #f8fafc;
    border: 1px solid #e5ecf3;
    border-left: 3px solid #ff6b00;
    border-radius: 10px;
}

.event-details-description strong {
    color: #0f2027;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-details-description p {
    color: #44586d;
    line-height: 1.55;
    margin-top: 0.45rem;
    font-size: 0.93rem;
}

.event-details-cta {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 10px 22px;
    font-size: 0.88rem;
    border-radius: 999px;
    width: 100%;
    text-align: center;
}

.event-details-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .event-card-body h3 { font-size: 1.25rem; }
    .event-card-date-block { width: 95px; }
    .event-card-day { font-size: 2rem; }
    .event-details-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .events-section {
        padding: 40px 0;
        --events-nav-size: 40px;
        --events-nav-gap: 1rem;
    }
    .events-section h2 { font-size: 1.9rem; margin-bottom: 2.5rem; }
    .events-carousel-wrapper { gap: 1rem; margin-bottom: 1rem; }
    .carousel-nav-btn { font-size: 1.1rem; }
    .event-card { min-height: 140px; border-radius: 12px; }
    .event-card-date-block { width: 85px; padding: 1.2rem 0.8rem; }
    .event-card-day { font-size: 1.8rem; }
    .event-card-month { font-size: 0.85rem; }
    .event-card-body { padding: 1.2rem 1.5rem; gap: 0.5rem; }
    .event-card-body h3 { font-size: 1.2rem; }
    .event-card-today-badge { font-size: 0.66rem; }
    .event-card-location { font-size: 0.9rem; }
    .event-card-time { font-size: 0.84rem; }
    .event-card-participants { font-size: 0.82rem; }
    .event-card-expanded-item { font-size: 0.84rem; }
    .event-card-expanded-about p { font-size: 0.86rem; }
    .event-card-expanded-btn { font-size: 0.78rem; padding: 8px 11px; }
    .event-card-actions { gap: 0.55rem; }
    .event-card-action-btn { font-size: 0.74rem; padding: 0.5rem 0.55rem; }
    .event-card-arrow { width: 36px; font-size: 1.6rem; }
    .events-details-section { padding: 1.1rem 1.15rem; min-height: auto; border-radius: 12px; }
    .event-details-content h3 { font-size: 1.2rem; }
    .event-details-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-details-actions { gap: 0.55rem; }
}

@media (max-width: 600px) {
    .events-section {
        padding: 30px 0;
        --events-nav-size: 36px;
        --events-nav-gap: 0.8rem;
    }
    .events-section h2 { font-size: 1.6rem; margin-bottom: 2rem; }
    .events-carousel-wrapper { gap: 0.8rem; margin-bottom: 0.8rem; }
    .carousel-nav-btn { font-size: 1rem; }
    .event-card { min-height: 130px; border-radius: 10px; }
    .event-card-date-block { width: 78px; padding: 1rem 0.7rem; }
    .event-card-day { font-size: 1.6rem; }
    .event-card-month { font-size: 0.78rem; }
    .event-card-year { font-size: 0.7rem; }
    .event-card-body { padding: 1rem 1.2rem; gap: 0.4rem; }
    .event-card-body h3 { font-size: 1.05rem; }
    .event-card-category { font-size: 0.72rem; padding: 0.25rem 0.6rem; }
    .event-card-today-badge { font-size: 0.62rem; padding: 0.18rem 0.45rem; }
    .event-card-location { font-size: 0.85rem; }
    .event-card-time { font-size: 0.8rem; }
    .event-card-participants { font-size: 0.78rem; }
    .event-card-expanded-meta,
    .event-card-expanded-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-card-expanded-item { font-size: 0.82rem; padding: 0.5rem 0.62rem; }
    .event-card-expanded-about p { font-size: 0.84rem; }
    .event-card-expanded-btn { font-size: 0.75rem; padding: 7px 9px; }
    .event-card-actions { gap: 0.45rem; }
    .event-card-action-btn { min-height: 36px; font-size: 0.7rem; padding: 0.5rem 0.55rem; gap: 0.3rem; }
    .event-card-arrow { display: none; }
    .events-details-section { padding: 1rem; }
    .event-details-content h3 { font-size: 1.08rem; }
    .event-details-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-details-date,
    .event-details-time,
    .event-details-location,
    .event-details-participants { padding: 0.58rem 0.7rem; font-size: 0.86rem; }
    .event-details-description p { font-size: 0.88rem; }
    .event-details-actions { gap: 0.45rem; }
    .event-details-cta { font-size: 0.8rem; padding: 8px 12px; }
    .carousel-dots { margin-bottom: 2rem; gap: 0.5rem; }
    .carousel-dot { width: 8px; height: 8px; }
    .carousel-dot.active { width: 22px; }
}

@media (max-width: 480px) {
    .events-section {
        padding: 25px 0;
        --events-nav-size: 34px;
        --events-nav-gap: 0.7rem;
    }
    .events-section h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
    .events-section h2::after { width: 60px; height: 3px; }
    .carousel-nav-btn { font-size: 0.9rem; }
    .event-card { min-height: 115px; border-radius: 8px; }
    .event-card-date-block { width: 70px; padding: 0.9rem 0.6rem; }
    .event-card-day { font-size: 1.45rem; }
    .event-card-month { font-size: 0.72rem; }
    .event-card-body { padding: 0.9rem 1rem; gap: 0.35rem; }
    .event-card-body h3 { font-size: 0.95rem; line-height: 1.2; }
    .event-card-today-badge { font-size: 0.58rem; padding: 0.15rem 0.4rem; }
    .event-card-participants { display: none; }
    .event-card-time { font-size: 0.76rem; }
    .event-card-expanded { margin-top: 0.15rem; padding-top: 0.55rem; gap: 0.5rem; }
    .event-card-expanded-meta,
    .event-card-expanded-actions { grid-template-columns: 1fr; }
    .event-card-expanded-item { font-size: 0.78rem; }
    .event-card-expanded-about { padding: 0.62rem 0.72rem; }
    .event-card-expanded-about p { font-size: 0.8rem; }
    .event-card-expanded-btn { font-size: 0.7rem; padding: 7px 8px; }
    .event-card-actions { grid-template-columns: 1fr; gap: 0.35rem; }
    .event-card-action-btn { font-size: 0.68rem; padding: 0.46rem 0.5rem; }
    .events-details-section { padding: 0.9rem; min-height: 0; border-radius: 10px; }
    .event-details-content h3 { font-size: 1rem; }
    .event-details-date,
    .event-details-time,
    .event-details-location,
    .event-details-participants { font-size: 0.82rem; }
    .event-details-description { padding: 0.75rem 0.85rem; }
    .event-details-description p { font-size: 0.84rem; }
    .event-details-actions { gap: 0.4rem; }
    .event-details-cta { font-size: 0.72rem; padding: 8px 9px; }
}

/* Responsive calendrier */
@media (max-width: 768px) {
    .calendar-controls { flex-direction: column; align-items: flex-start; }
    .control-buttons { width: 100%; flex-wrap: wrap; }
    .control-buttons button { flex: 1; min-width: 80px; padding: 0.6rem 1rem; font-size: 0.85rem; }
    .calendar-day { font-size: 0.8rem; min-height: 56px; }
    .weekday { font-size: 0.85rem; padding: 0.5rem 0; }
    .calendar-wrapper { padding: 1rem; }
    .events-details { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .control-buttons { flex-direction: column; gap: 0.6rem; }
    .control-buttons button { width: 100%; }
    .calendar-grid { gap: 0.35rem; }
    .calendar-day { min-height: 48px; font-size: 0.7rem; padding: 0.3rem; }
    .weekday { font-size: 0.75rem; padding: 0.4rem 0; }
    .calendar-wrapper { padding: 0.8rem; }
    .events-details { padding: 1rem; }
    .event-item { padding: 0.7rem; border-left-width: 4px; }
    .event-item h4 { font-size: 0.95rem; }
    .event-item p  { font-size: 0.85rem; }
}

@media (min-width: 1600px) {
    .events-section { padding: 80px 0; }
    .events-section h2 { font-size: 2.5rem; margin-bottom: 3.25rem; }
    .event-card { min-height: 185px; }
    .event-card-date-block { width: 128px; }
    .event-card-day { font-size: 2.7rem; }
    .events-details-section { padding: 1.6rem 1.8rem; }
    .calendar-wrapper { padding: 1.5rem; }
}

@media (min-width: 2100px) {
    :root {
        --site-max-width: 1820px;
        --site-gutter: 42px;
    }
}

@media (max-width: 380px) {
    .nav-links {
        width: 100vw;
        border-left: 0;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .control-buttons button { padding: 0.7rem 0.8rem; font-size: 0.8rem; }
    .weekday {
        font-size: 0.68rem;
        letter-spacing: -0.5px;
        line-height: 1.1;
        padding: 0.3rem 0;
        overflow-wrap: anywhere;
    }
    .calendar-grid { gap: 0.25rem; }
    .calendar-day { min-height: 64px; padding: 0.35rem 0.2rem; }
    .day-number { font-size: 0.82rem; }
}
