/* Variables globales */
:root {
    --primary-color: #4CAF50;
    --primary-color-dark: #388E3C;
    --background-color: #F5F5F5;
    --text-color: #263238;
    --max-width: 1200px;
    --header-height: 80px;
    --section-padding: 4rem;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Layout principal */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.logo:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.logo-img {
    height: 40px;
    margin-right: 0px;
    width: auto;
    transform-origin: center;
}

.logo span {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-icon {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.nav-icon:hover {
    background-color: var(--background-color);
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding-right: 8px;
}

.nav-icon {
    color: #333;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.nav-icon:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.nav-icon:hover {
    color: #4CAF50;
}

.nav-icon:hover:before {
    width: 200%;
    height: 200%;
}

/* Animation roue dentée */
.nav-icon-gear i {
    transition: transform 0.5s ease;
}

.nav-icon-gear:hover i {
    transform: rotate(180deg);
}

/* Animation déconnexion */
.nav-icon-logout i {
    transition: transform 0.3s ease;
}

.nav-icon-logout:hover i {
    transform: translateX(4px);
}

/* Contenu principal */
main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 0;
    margin-bottom: 40px;
}

/* Hero section */
.hero {
    text-align: center;
    padding: calc(var(--section-padding) * 1.5) 1rem var(--section-padding);
    background: linear-gradient(rgba(76, 175, 80, 0.1), white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Arguments section */
.arguments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: var(--section-padding) 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.argument-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.argument-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.argument-card p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Map Styles */
.map-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Cluster Marker Customization */
.marker-cluster-small {
    background-color: rgba(76, 175, 80, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(76, 175, 80, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(76, 175, 80, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(76, 175, 80, 0.8);
}

.marker-cluster-large {
    background-color: rgba(76, 175, 80, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(76, 175, 80, 0.8);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    padding: 15px;
}

.spot-popup {
    min-width: 200px;
}

.spot-popup h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.spot-popup p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* Sliding Panel */
.panel {
    position: fixed;
    right: 20px;
    top: var(--header-height);
    width: 350px;
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(120%);
    transition: all 0.3s ease-out;
}

.panel.active {
    transform: translateX(0);
}

.spot-info-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

#spot-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4caf50;
}

#spot-category i {
    font-size: 1.1rem;
}

.close-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.spot-body {
    flex: 1;
    overflow-y: auto;
}

#spot-name {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #333;
}

#spot-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.spot-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.season-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4caf50;
}

.season-item i {
    font-size: 1rem;
}

.season-text {
    font-size: 0.9rem;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 4px;
}

.equipment-item i {
    font-size: 0.9rem;
    color: #4caf50;
}

/* Style pour la version PC */
@media (min-width: 769px) {
    .spot-form .equipment-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
        margin-top: 10px;
        padding-right: 0;
        max-height: none;
        overflow-y: scroll;
        scrollbar-width: none; /* Pour Firefox */
        -ms-overflow-style: none; /* Pour Internet Explorer et Edge */
    }

    .spot-form .equipment-grid::-webkit-scrollbar {
        display: none; /* Pour Chrome, Safari et Opera */
    }

    .spot-form .equipment-item {
        position: relative;
    }

    .spot-form .equipment-item input[type="checkbox"] {
        display: none;
    }

    .spot-form .equipment-item label {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 8px;
        background: #f5f5f5;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .spot-form .equipment-item label i {
        font-size: 14px;
        color: #666;
        transition: color 0.2s ease;
        flex-shrink: 0;
    }

    .spot-form .equipment-item input[type="checkbox"]:checked + label {
        background: var(--primary-color);
        color: white;
    }

    .spot-form .equipment-item input[type="checkbox"]:checked + label i {
        color: white;
    }

    .spot-form .equipment-item label:hover {
        background: #e0e0e0;
    }

    .spot-form .equipment-item input[type="checkbox"]:checked + label:hover {
        background: var(--primary-color-dark);
    }

    .spot-form .form-actions .btn {
        padding: 8px 16px;
        border-radius: 4px;
        font-size: 14px;
    }

    /* Style des saisons en PC */
    .spot-form .season-selector {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
        margin: 10px 0;
    }

    .spot-form .season-option {
        position: relative;
    }

    .spot-form .season-option input[type="radio"] {
        display: none;
    }

    .spot-form .season-option label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #f5f5f5;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 20px;
    }

    .spot-form .season-option input[type="radio"]:checked + label {
        background: var(--primary-color);
        color: white;
    }

    .spot-form .season-option label:hover {
        background: #e0e0e0;
    }

    .spot-form .season-option input[type="radio"]:checked + label:hover {
        background: var(--primary-color-dark);
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .panel {
        top: auto;
        bottom: -70vh;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 70vh;
        transition: bottom 0.3s ease;
    }

    .panel.active {
        bottom: 0;
    }

    .spot-info-content {
        padding: 12px;
    }

    #spot-name {
        font-size: 1.1rem;
    }

    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .panel {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: calc(100vh - var(--header-height));
        transform: translateY(100%);
        margin: 0;
        border-radius: 12px 12px 0 0;
        display: flex;
        flex-direction: column;
    }

    .panel.active {
        transform: translateY(0);
    }

    /* Overlay sombre quand le panneau est actif */
    .panel::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }

    .panel.active::before {
        opacity: 1;
        pointer-events: all;
    }

    .spot-form {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        background: white;
        border-radius: 12px 12px 0 0;
    }

    .spot-form-header {
        position: relative;
        padding: 15px 45px 15px 15px;
        background: var(--primary-color);
        color: white;
        border-radius: 12px 12px 0 0;
        z-index: 2;
    }

    .spot-form-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.2;
    }

    .close-button {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .close-button i {
        color: white;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .close-button:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .close-button:hover i {
        transform: rotate(180deg);
    }

    .spot-form-content {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
    }

    /* Ajouter un padding en bas du dernier élément */
    .spot-form-content > :last-child {
        margin-bottom: 60px;
    }

    /* S'assurer que le dernier élément du formulaire a aussi une marge */
    .spot-form-content form > :last-child {
        margin-bottom: 20px;
    }

    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        max-height: 120px;
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Style de la scrollbar pour la grille d'équipements */
    .equipment-grid::-webkit-scrollbar {
        width: 8px;
    }

    .equipment-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .equipment-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .equipment-grid::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color-dark);
    }

    .form-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 8px 10px;
        border-top: 1px solid #eee;
        margin-top: auto;
        z-index: 2;
        flex-shrink: 0;
    }
}

/* Styles pour la carte */
#map {
    height: calc(100vh - var(--header-height));
    width: 100%;
    transition: width 0.3s ease;
}

/* Style pour le formulaire d'ajout de spot */
.spot-form {
    background: white;
}

.green-header {
    background: #4caf50;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.green-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.spot-form-content {
    padding: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.85rem;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Style pour les saisons */
.season-list {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.season-item input[type="checkbox"] {
    display: none;
}

.season-item label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.season-item i {
    font-size: 0.9rem;
    color: #666;
}

.season-item input[type="checkbox"]:checked + label {
    background: #4caf50;
}

.season-item input[type="checkbox"]:checked + label i {
    color: white;
}

/* Style pour les équipements dans le formulaire */
.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.equipment-item label {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.equipment-item i {
    font-size: 0.9rem;
    color: #4caf50;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .season-item i {
        font-size: 1.1rem;
    }

    .equipment-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .equipment-item label {
        font-size: 0.75rem;
    }

    .equipment-item i {
        font-size: 0.85rem;
    }
}

.season-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    color: #4caf50;
}

.season-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.season-item .season-text {
    font-size: 14px;
    text-transform: capitalize;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .section-content p {
        font-size: 0.85rem;
    }
}

/* Footer */
footer {
    background-color: #4caf50;
    color: white;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Formulaires */
.auth-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #666;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-links {
    margin-top: 15px;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu span {
    color: #666;
}

.user-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-menu a:hover {
    background-color: #f5f5f5;
}

/* Styles pour l'administration */
.admin-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-title {
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #f5f5f5;
    color: #333;
}

.tab-button.active {
    background: #4caf50;
    color: white;
}

.tab-button i {
    margin-right: 8px;
}

.tab-content {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.action-bar {
    margin-bottom: 20px;
}

.add-button {
    padding: 10px 20px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.add-button:hover {
    background: #45a049;
}

.add-button i {
    margin-right: 8px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f5f5f5;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #2196f3;
    color: white;
}

.edit-btn:hover {
    background: #1976d2;
}

.delete-btn {
    background: #f44336;
    color: white;
}

.delete-btn:hover {
    background: #d32f2f;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

#modal-title {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.save-button,
.cancel-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.save-button {
    background: #4caf50;
    color: white;
}

.save-button:hover {
    background: #45a049;
}

.cancel-button {
    background: #f5f5f5;
    color: #666;
}

.cancel-button:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 calc(50% - 5px);
    }
    
    .data-table {
        overflow-x: auto;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Styles pour la carte */
#map {
    height: calc(100vh - var(--header-height));
    width: 100%;
    transition: width 0.3s ease;
}

/* Style pour le formulaire d'ajout de spot */
.spot-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.spot-form-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.spot-form-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.spot-form-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.spot-form .form-actions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    border-radius: 0 0 8px 8px;
}

.spot-form .close-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
}

.spot-form .form-group {
    margin-bottom: 20px;
}

.spot-form .equipment-grid {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Style de la scrollbar pour la grille d'équipements */
.spot-form .equipment-grid::-webkit-scrollbar {
    width: 8px;
}

.spot-form .equipment-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.spot-form .equipment-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.spot-form .equipment-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .spot-form .equipment-item {
        font-size: 11px;
    }

    .spot-form .equipment-item i {
        font-size: 14px;
    }

    .spot-form .equipment-item label {
        font-size: 11px;
        gap: 3px;
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .spot-form .equipment-item {
        font-size: 11px;
    }

    .spot-form .equipment-item input[type="checkbox"] {
        display: none;
    }

    .spot-form .equipment-item label {
        font-size: 11px;
        gap: 3px;
        padding: 8px 4px;
        background: #f5f5f5;
        border-radius: 6px;
        width: 100%;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .spot-form .equipment-item input[type="checkbox"]:checked + label {
        background: var(--primary-color);
        color: white;
    }

    .spot-form .equipment-item i {
        font-size: 14px;
    }
}

/* Ajustements responsive pour mobile */
@media (max-width: 768px) {
    .spot-form {
        padding: 15px;
        max-width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .spot-form .form-group {
        margin-bottom: 15px;
    }

    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }

    .spot-form .equipment-item {
        font-size: 11px;
        width: 100%;
    }

    .spot-form .equipment-item input[type="checkbox"] {
        display: none;
    }

    .spot-form .equipment-item label {
        font-size: 11px;
        gap: 3px;
        padding: 6px 4px;
        background: #f5f5f5;
        border-radius: 6px;
        width: 100%;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        word-break: break-word;
    }

    .spot-form .equipment-item i {
        font-size: 14px;
        margin-bottom: 2px;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 380px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .spot-form .equipment-item label {
        padding: 4px;
        min-height: 45px;
    }
}

/* Ajustements pour écrans moyens */
@media (min-width: 381px) and (max-width: 480px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

/* Ajustements pour grands mobiles */
@media (min-width: 481px) and (max-width: 768px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* Style pour les saisons en version mobile */
@media (max-width: 768px) {
    .spot-form .season-selector {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin: 5px 0;
        flex-wrap: nowrap;
        width: 100%;
    }

    .spot-form .season-option {
        flex: 1;
    }

    .spot-form .season-option input[type="radio"] {
        display: none;
    }

    .spot-form .season-option label {
        font-size: 20px;
        padding: 6px;
        border-radius: 8px;
        background: #f5f5f5;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        width: 100%;
        aspect-ratio: 1;
        min-width: 0;
    }

    .spot-form .season-option input[type="radio"]:checked + label {
        background: var(--primary-color);
        transform: scale(1.1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 380px) {
    .spot-form .season-option label {
        font-size: 18px;
        padding: 4px;
    }

    .spot-form .season-selector {
        gap: 6px;
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .spot-form {
        padding: 15px 15px 120px 15px; /* Encore plus de padding en bas */
        max-width: 100%;
        height: 100%;
        overflow-y: auto;
        position: relative;
        background-color: white;
    }

    .spot-form .form-group {
        margin-bottom: 15px;
    }

    .spot-form .form-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .spot-form .form-actions::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(transparent, white);
    }

    .spot-form .form-actions .btn {
        width: 100%;
        max-width: 200px;
        padding: 12px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .spot-form .form-content {
        padding-bottom: 30px;
    }

    /* Ajuster la hauteur maximale du formulaire */
    .spot-form-content {
        max-height: calc(100vh - 200px); /* Encore plus d'espace */
        overflow-y: auto;
        padding-bottom: 30px;
        background-color: white;
    }

    #spot-info {
        background-color: white;
    }

    #spot-info .spot-form {
        background-color: white;
    }
}

/* Marqueur de position utilisateur */
.user-location-marker {
    background-color: #8b0000; /* Rouge foncé */
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.user-location-marker i {
    color: white;
    font-size: 14px;
}

.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    background-color: #4caf50;
    border-radius: 50%;
    padding: 2px;
}

.custom-marker i {
    color: #000000;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.leaflet-marker-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Bouton de fermeture du panneau d'information */
#spot-info .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#spot-info .close-button i {
    font-size: 14px;
    color: #000;
}

#spot-info .close-button:hover {
    transform: rotate(90deg);
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .spot-form .equipment-item {
        font-size: 11px;
    }

    .spot-form .equipment-item i {
        font-size: 14px;
    }

    .spot-form .equipment-item label {
        font-size: 11px;
        gap: 3px;
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .spot-form .equipment-item {
        font-size: 11px;
    }

    .spot-form .equipment-item input[type="checkbox"] {
        display: none;
    }

    .spot-form .equipment-item label {
        font-size: 11px;
        gap: 3px;
        padding: 8px 4px;
        background: #f5f5f5;
        border-radius: 6px;
        width: 100%;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .spot-form .equipment-item input[type="checkbox"]:checked + label {
        background: var(--primary-color);
        color: white;
    }

    .spot-form .equipment-item i {
        font-size: 14px;
    }
}

/* Ajustements responsive pour mobile */
@media (max-width: 768px) {
    .spot-form {
        padding: 15px;
        max-width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .spot-form .form-group {
        margin-bottom: 15px;
    }

    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }

    .spot-form .equipment-item {
        font-size: 11px;
        width: 100%;
    }

    .spot-form .equipment-item input[type="checkbox"] {
        display: none;
    }

    .spot-form .equipment-item label {
        font-size: 11px;
        gap: 3px;
        padding: 6px 4px;
        background: #f5f5f5;
        border-radius: 6px;
        width: 100%;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        word-break: break-word;
    }

    .spot-form .equipment-item i {
        font-size: 14px;
        margin-bottom: 2px;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 380px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .spot-form .equipment-item label {
        padding: 4px;
        min-height: 45px;
    }
}

/* Ajustements pour écrans moyens */
@media (min-width: 381px) and (max-width: 480px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

/* Ajustements pour grands mobiles */
@media (min-width: 481px) and (max-width: 768px) {
    .spot-form .equipment-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* Style pour les saisons en version mobile */
@media (max-width: 768px) {
    .spot-form .season-selector {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin: 5px 0;
        flex-wrap: nowrap;
        width: 100%;
    }

    .spot-form .season-option {
        flex: 1;
    }

    .spot-form .season-option input[type="radio"] {
        display: none;
    }

    .spot-form .season-option label {
        font-size: 20px;
        padding: 6px;
        border-radius: 8px;
        background: #f5f5f5;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        width: 100%;
        aspect-ratio: 1;
        min-width: 0;
    }

    .spot-form .season-option input[type="radio"]:checked + label {
        background: var(--primary-color);
        transform: scale(1.1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 380px) {
    .spot-form .season-option label {
        font-size: 18px;
        padding: 4px;
    }

    .spot-form .season-selector {
        gap: 6px;
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .spot-form {
        padding: 15px 15px 120px 15px; /* Encore plus de padding en bas */
        max-width: 100%;
        height: 100%;
        overflow-y: auto;
        position: relative;
        background-color: white;
    }

    .spot-form .form-group {
        margin-bottom: 15px;
    }

    .spot-form .form-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .spot-form .form-actions::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(transparent, white);
    }

    .spot-form .form-actions .btn {
        width: 100%;
        max-width: 200px;
        padding: 12px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .spot-form .form-content {
        padding-bottom: 30px;
    }

    /* Ajuster la hauteur maximale du formulaire */
    .spot-form-content {
        max-height: calc(100vh - 200px); /* Encore plus d'espace */
        overflow-y: auto;
        padding-bottom: 30px;
        background-color: white;
    }

    #spot-info {
        background-color: white;
    }

    #spot-info .spot-form {
        background-color: white;
    }
}

/* Style pour l'édition du nom d'équipement */
.name-edit-form {
    position: relative;
}

.category-name-input {
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 8px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s ease;
}

.category-name-input:hover {
    border-color: #dee2e6;
}

.category-name-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Styles pour le panneau d'information */
#spot-info {
    position: fixed;
    right: -400px;
    top: var(--header-height);
    width: 400px;
    height: calc(100vh - var(--header-height));
    background: white;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

#spot-info.active {
    right: 0;
}

/* Style pour le header du spot */
#spot-info .spot-header {
    padding: 20px;
    color: #1a1a1a;
    background-color: #56ae59;
    text-align: left;
}

#spot-category {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: flex-start;
}

#spot-category .category-icon {
    font-size: 2rem;
    color: #1a1a1a;
    margin-right: 10px;
    width: 40px;
    text-align: center;
}

#spot-category span {
    font-size: 1.1rem;
    font-weight: 500;
}

#spot-name {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: left;
}

/* Style pour le contenu */
.info-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: calc(100vh - var(--header-height) - 169px);
}

.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.section-header i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #56ae59;
    width: 24px;
    text-align: center;
}

.section-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.section-content {
    color: #4a4a4a;
    line-height: 1.5;
}

/* Responsive pour le panneau d'info */
@media (max-width: 768px) {
    #spot-info {
        width: 100%;
        right: -100%;
    }

    #spot-info .spot-header {
        position: sticky;
        top: 0;
        z-index: 2;
        text-align: left;
        padding: 15px;
    }

    #spot-category {
        margin-bottom: 8px;
        justify-content: flex-start;
    }

    #spot-category .category-icon {
        font-size: 1.6rem;
        width: 30px;
    }

    #spot-category span {
        font-size: 1rem;
        text-align: left;
    }

    #spot-name {
        font-size: 1.4rem;
        text-align: left;
    }

    .info-content {
        padding: 15px;
        background-color: white;
    }

    .info-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .section-header {
        margin-bottom: 8px;
    }

    .section-header i {
        font-size: 1.1rem;
        width: 20px;
    }

    .section-header h5 {
        font-size: 1rem;
    }
}

/* Responsive pour le panneau d'info */
@media (max-width: 768px) {
    #spot-info .equipment-item {
        font-size: 11px;
        display: flex;
        align-items: center;
        padding: 6px 8px;
        background: #f8f9fa;
        border-radius: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #spot-info .equipment-item i {
        font-size: 14px;
        margin-right: 6px;
        width: 14px;
        text-align: center;
        flex-shrink: 0;
        color: #56ae59;
    }

    #spot-info .equipment-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
}

/* Style pour le bouton de géolocalisation */
.locate-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.2);
    color: #666;
    transition: all 0.3s ease;
}

.locate-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.locate-button i {
    font-size: 16px;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.logo:hover .logo-img {
    animation: shake 0.5s ease-in-out;
}