* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #004d00 0%, #033803 100%);
    color: #f4f4f4;
    min-height: 100vh;
}

header {
    background: #033803;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    gap: 10px;
    position: relative;
}

nav ul img {
    margin-right: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mobile hamburger button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 6px;
}
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { top: 8px; }

nav ul li {
    position: relative;
    padding: 10px 18px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

nav ul li > a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

nav ul li:hover, nav ul li:focus-within {
    background: #006600;
    color: #b3ffb3;
}

nav ul li:hover > a, nav ul li:focus-within > a {
    color: #b3ffb3;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #033803;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    flex-direction: column;
    padding: 0;
}

nav ul li:hover ul, nav ul li:focus-within ul {
    display: flex;
}

nav ul li ul li {
    display: block;
    padding: 12px 18px;
    margin: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: normal;
    background: none;
    transition: background 0.2s, color 0.2s;
}

nav ul li ul li:hover {
    background: #006600;
    color: #b3ffb3;
}

nav ul li ul li a {
    color: #fff;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.2s;
}

nav ul li ul li a:hover {
    color: #b3ffb3;
}

nav .nav-logo {
    max-width:200px;
}

a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.2s;
}

a:hover {
    color: #b3ffb3;
}

.mc {
    background: linear-gradient(120deg, #004d00 60%, #006600 100%);
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: 7%;
    margin-right: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.mc-content {
    position: relative;
    z-index: 1;
    padding: 30px;
}

.mc h1 {
    font-size: 2.8rem;
    margin-bottom: 18px;
    color: #b3ffb3;
    text-shadow: 1px 1px 8px #033803;
}

/* small-screen tweaks for home */
@media (max-width: 900px) {
    .mc h1 { font-size: 1.6rem; }
    .mc .mc-content h2 { font-size: 1rem; }
    iframe { height: 300px; }
}

.mc p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.buttons .btn {
    background: #00cc00;
    padding: 15px 25px;
    text-decoration: none;
    font-size: 16px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background 0.3s;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.buttons .btn:hover {
    background: #00a300;
}

.countdown {
    margin-top: 40px;
    font-size: 18px;
}

.site-footer, footer {
    background: #003300;
    text-align: center;
    padding: 14px 0;
    position: relative;
    width: 100%;
    margin-top: 40px;
    color: #e6ffe6;
}

.site-footer a {
    color: #b3ffb3;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.planning_table {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    color: #222;
}

.planning_table th, .planning_table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.planning_table th {
    background: #004d00;
    color: #fff;
}

.planning_table td.empty {
    background: #e6ffe6;
}

.planning_table td:hover {
    background: #b3ffb3;
}

.current-day {
    background: #FFD700 !important;
    color: #222 !important;
    font-weight: bold;
}

.planning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8%;
}

.main {
    display: flex;
    justify-content: flex-end;
}

.choix-date {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 18px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.choix-date a {
    color: #00cc00;
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}

.choix-date a:hover {
    background: #00cc00;
    color: #fff;
}

.main-events {
    background: linear-gradient(120deg, #004d00 60%, #006600 100%);
    position: relative;
    width: 100%;
    margin-inline: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.space-images {
    height: 100vh;
    position: sticky;
    top: 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.main-about h1 {
    color: #00cc00;
    font-size: 2.2rem;
}

.main-about h2 {
    color: #b3ffb3;
    padding-top: 3%;
    padding-bottom: 3%;
}

.main-about p {
    line-height: 1.6;
}

.main-about {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.08);
    background: rgba(0,77,0,0.15);
}

.laser-run {
    padding: 15px;
    border: 1px solid #B6D4FE;
    border-radius: 5px;
    background: #f8faff;
    color: #222;
}

.discipline li {
    padding-top: 1%;
    padding-bottom: 1%;
}

.main-competitions {
    background: linear-gradient(120deg, #004d00 60%, #006600 100%);
    position: relative;
    width: 100%;
    margin-inline: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.main-competitions p {
    margin: 20px;
}

.main-adhesion {
    background: linear-gradient(120deg, #004d00 60%, #006600 100%);
    position: relative;
    width: 100%;
    margin-inline: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.main-clubs {
    background: linear-gradient(120deg, #004d00 60%, #006600 100%);
    position: relative;
    width: 100%;
    margin-inline: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    max-width: 800px;
    margin: 20px auto;
    color: #222;
    flex-direction: row;
    transition: transform 0.15s;
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.date-banner {
    background: #e0e0e0;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
}

.date-banner span {
    display: block;
}

.date-big {
    font-size: 2em;
    color: #111;
}

.content {
    padding: 20px;
    flex: 1;
}

.top-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-section img {
    width: 100px;
    height: auto;
    border-radius: 5px;
}

.title {
    font-size: 1.3em;
    color: #007499;
    font-weight: bold;
}

.time {
    font-weight: bold;
    margin: 10px 0;
    color: #555;
}

.description {
    margin: 10px 0;
    color: #333;
    font-size: 0.95em;
}

.link {
    margin-top: 10px;
}

.link a {
    text-decoration: none;
    color: #007499;
    font-weight: bold;
    transition: color 0.2s;
}

.link a:hover {
    text-decoration: underline;
    color: #004d00;
}

.main-news {
    background: linear-gradient(120deg, #004d00 60%, #006600 100%);
    position: relative;
    width: 100%;
    margin-inline: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.main-news h2 {
    color: #b3ffb3;
    text-align: center;
    margin-bottom: 18px;
}

.main-news .card {
    margin: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-news .title {
    font-size: 1.3em;
    color: #007499;
    font-weight: bold;
    text-decoration: none;
}

.main-news .title:hover {
    color: #004d00;
    text-decoration: underline;
}

.main-news .time {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
}

.main-news .description {
    color: #333;
    margin-bottom: 10px;
}

.main-news .link a {
    color: #00cc00;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.main-news .link a:hover {
    color: #004d00;
    text-decoration: underline;
}

.main-sponsors {
    background: linear-gradient(120deg, #004d00 60%, #006600 100%);
    position: relative;
    width: 100%;
    margin-inline: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    nav ul img {
        margin: 0 0 20px 0;
    }
    nav ul li {
        width: 100%;
        text-align: left;
    }
    nav ul li ul {
        position: static;
        min-width: 100%;
        box-shadow: none;   
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 900px) {
    .main, .main-events, .main-adhesion, .main-competitions, .main-about, .main-clubs, .main-sponsors, .main-news {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    .card {
        flex-direction: column;
        max-width: 98vw;
    }
    .space-images {
        display: none !important;
    }
    /* show hamburger and hide links initially */
    .nav-toggle { display: block; }
    nav .nav-inner { display: flex; align-items: center; width: 100%; gap: 12px; }
    nav .nav-logo { display: none !important; }
    nav .nav-logo-small { max-width: 90px; margin-right: 6px; display: block !important; }
    nav ul { display: none; width: 100%; }
    nav.open ul { display: flex; flex-direction: column; gap: 8px; }
    nav.open .nav-toggle .hamburger { background: transparent; }
    .main {
        display: block;
    }
    .mc {
        height: auto;
        margin-top: 20px;
    }
    .planning-content {
        margin-top: 30px;
    }
} 

@media (max-width: 430px) {
    .space-images {
        display: none !important;
    }
}

/* Calendar Events Styling */
.planning_table td {
    position: relative;
    padding: 6px !important;
}

.calendar-day-num {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 2px;
}

.calendar-events {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.calendar-event-link {
    font-size: 0.7rem;
    font-weight: normal;
    background-color: #006600;
    color: #fff !important;
    padding: 2px 4px;
    border-radius: 3px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    line-height: 1.2;
}

.calendar-event-link:hover {
    background-color: #00cc00;
    color: #fff !important;
    text-decoration: none;
}