/* ============================================================
   TA SAUVEGARDE (AGENDA) - NE PAS TOUCHER
============================================================ */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding-top: 130px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-fixe {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #FF6600;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo-club {
    text-align: center;
}

.logo-club a {
    text-decoration: none;
    color: black;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 1px white);
}

.logo-club h1 {
    margin: 5px 0 0;
    font-size: 1.2em;
    letter-spacing: 1px;
}

/* --- Navigation Mois --- */
.nav-mois-container {
    background: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.nav-mois-scroll {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    overflow-x: auto;
}

.mois-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #eee;
    position: relative;
    min-width: 60px;
    transition: 0.2s;
}

.mois-item.has-ev {
    background: #fff5eb;
    border-color: #FF6600;
    color: #FF6600;
    font-weight: bold;
}

.mois-item.is-empty {
    color: #ccc;
}

.mois-item:hover {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
}

.mois-item .dot {
    height: 5px;
    width: 5px;
    background: #FF6600;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.mois-item:hover .dot {
    background: white;
}

/* --- Filtres --- */
.cat-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cat-select {
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid #FF6600;
    background: white;
    font-weight: bold;
    color: #FF6600;
    cursor: pointer;
    outline: none;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF6600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.btn-add-event {
    display: inline-block;
    padding: 12px 25px;
    background: #FF6600;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1rem;
    white-space: nowrap;
}

/* --- Mini Calendrier --- */
.mini-cal {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#cal-titre {
    font-weight: bold;
    color: #FF6600;
}

.btn-nav {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.grid-jours {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
}

.grid-jours b {
    font-size: 0.8em;
    color: #888;
    padding-bottom: 5px;
}

.case-jour {
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
}

.a-evenement {
    background: #ffe6cc;
    color: #FF6600;
    font-weight: bold;
}

.case-jour.selected {
    background: #FF6600;
    color: white;
    font-weight: bold;
}

/* --- Liste des événements --- */
.card {
    background: white;
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border-left: 5px solid #ccc;
    transition: 0.2s;
}

.card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-cvg {
    border-left-color: #FF6600;
}

.date-col {
    text-align: center;
    min-width: 50px;
    border-right: 1px solid #eee;
    margin-right: 15px;
    padding-right: 10px;
}

.date-col b {
    display: block;
    font-size: 1.4em;
    color: #FF6600;
}

.date-col span {
    font-size: 0.8em;
    text-transform: uppercase;
}

.infos-col p {
    margin: 0;
    font-weight: bold;
    font-size: 1.1em;
}

.infos-col small {
    color: #666;
}

.no-event {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ============================================================
   AJOUT : STYLES DU FORMULAIRE (Isolés avec .form-wrapper)
============================================================ */
.form-wrapper {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.form-wrapper h1 {
    color: #FF6600;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* On force le style des inputs seulement dans le formulaire */
.form-wrapper label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    color: #444;
}

.form-wrapper input, 
.form-wrapper textarea, 
.form-wrapper select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
}

.form-wrapper textarea {
    height: 120px;
}

.btn-submit {
    margin-top: 25px;
    background: #FF6600;
    color: white;
    padding: 15px;
    border-radius: 30px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #e65c00;
}

.date-group {
    display: flex;
    gap: 10px;
}
.date-item {
    flex: 1;
}

/* ============================================================
   RESPONSIVE (Fusionné)
============================================================ */
@media (max-width: 768px) {
    .cat-filter-container { flex-direction: column; align-items: stretch; }
    .btn-add-event { width: 100%; text-align: center; }
    .nav-mois-scroll { gap: 3px; }
    .mois-item { min-width: 48px; font-size: 11px; padding: 8px 4px; }
    .mini-cal { padding: 12px; }
    .grid-jours { gap: 3px; }
    .case-jour { padding: 6px 0; font-size: 0.9em; }
    .card { flex-direction: column; align-items: flex-start; gap: 10px; }
    .date-col { border-right: none; border-bottom: 1px solid #eee; width: 100%; padding-bottom: 8px; margin-bottom: 10px; }
    
    /* Responsive Formulaire */
    .date-group { flex-direction: column; gap: 0; }
}

.btn-back {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background: #FF6600;
    color: white;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}