
:root {
    --bg-color: #0b192c;
    --card-bg: #ffffff;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --accent-color: #00bcd4; /* Le bleu cyan de tes boutons */
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif; /* Tu pourras changer pour la typo Google Fonts de ta maquette */
    background-color: var(--bg-color);
    color: var(--text-light);
}

/* En-tête (Header) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(11, 25, 44, 0.9);
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-header nav a {
    color: var(--text-light);
    text-decoration: none;
}

/* Boutons */
.btn-primary, .btn-secondary {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* Section Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero span {
    color: var(--accent-color);
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filtres (Flexbox) */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
}

/* Grille des spots (CSS Grid) */
.grid-spots {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur Desktop */
    gap: 30px;
}

/* Cartes des spots */
.spot-card {
    background-color: var(--card-bg);
    color: var(--text-dark);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.spot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge-category {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.btn-secondary {
    margin-top: auto; /* Pousse le bouton tout en bas de la carte */
    align-self: flex-end;
}

/* Styles pour le formulaire d'ajout */
.add-form, .password-gate {
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.add-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.add-form input[type="text"], 
.add-form input[type="number"], 
.add-form input[type="password"],
.add-form textarea, 
.add-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Évite que ça dépasse du conteneur */
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin-top: 0;
}

.add-form button {
    margin-top: 20px;
    width: 100%;
}

/* --- Page de détail --- */
.back-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
}

.detail-content {
    background-color: var(--card-bg);
    color: var(--text-dark);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detail-info {
    padding: 40px;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-top: 0;
    color: var(--bg-color);
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.description-longue {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.info-box {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.info-box h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1rem;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}