:root {
    --bg-color: #0b192c;
    --card-bg: #ffffff;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --accent-color: #00bcd4;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #132034;
    color: #ffffff;
}

/* =========================================
   BARRE DE NAVIGATION (HEADER)
   ========================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 20px 5%;
    padding-bottom: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 -50 1440 250" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><defs><filter id="sh"><feDropShadow dx="0" dy="5" stdDeviation="4" flood-opacity="0.4"/></filter></defs><path d="M0,20 C320,100 420,-40 720,20 C1020,80 1120,-40 1440,20 L1440,40 C1120,-20 1020,100 720,40 C420,-20 320,120 0,40 Z" fill="%2356b4c8" filter="url(%23sh)"/><path d="M0,40 C320,120 420,-20 720,40 C1020,100 1120,-20 1440,40 L1440,60 C1120,0 1020,120 720,60 C420,0 320,140 0,60 Z" fill="%23ffffff" filter="url(%23sh)"/></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% 120px;
    position: relative;
    z-index: 100;
}

.main-header .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease; 
    display: inline-block;
}

.main-header .logo span {
    color: #56b4c8;
    transition: all 0.3s ease;
}

.main-header .logo:hover {
    text-shadow: 0 0 15px rgba(86, 180, 200, 0.8);
    transform: scale(1.05);
}

.main-header .logo:hover span {
    color: #ffffff;
}

.main-header nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-header nav ul li a:hover {
    color: #56b4c8;
}

/* =========================================
   ACCESSIBILITÉ : MENU ACTIF (OPQUAST)
   ========================================= */
.main-header nav ul li a.active-menu {
    color: #56b4c8;
    font-weight: bold;
    border-bottom: 2px solid #56b4c8;
    padding-bottom: 5px;
}

/* =========================================
   SECTION HERO (TEXTE À GAUCHE + GLOBE À DROITE)
   ========================================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    min-height: 90vh;
    position: relative;
    gap: 100px;
}

/* =========================================
   TEXTE DE L'ACCUEIL (ÉQUILIBRE AVEC LE GLOBE)
   ========================================= */
.hero-content {
    flex: 0 0 40%;
    max-width: 600px;
    transform: translateY(-40px);
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.hero-content h1 span {
    color: #56b4c8;
}

.hero-image {
    flex: 1;
    max-width: 55%;
    display: flex;
   flex-direction: column;
    align-items: center;
    transform: translateY(-90px);
}

#globeViz {
    height: 600px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
}

.globe-hint-text {
    position: relative;
    margin-top: -80px;
    color: #b0bec5;   
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.8;
    text-align: center;
}

/* =========================================
   SECTION DES DERNIERS SPOTS
   ========================================= */
.latest-spots-section {
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

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

/* Filtres (Flexbox) */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background-color: rgba(19, 32, 52, 0.6);
    backdrop-filter: blur(8px); 
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(38, 198, 218, 0.2);
    flex-wrap: wrap;
    gap: 20px;
}

/* 1. La zone de recherche (à gauche) */
.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.search-form input[type="text"] {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input[type="text"]::placeholder {
    color: #b0bec5;
}

/* L'effet d'illumination quand on clique dans la barre */
.search-form input[type="text"]:focus {
    outline: none;
    border-color: #26c6da;
    box-shadow: 0 0 10px rgba(38, 198, 218, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
}

/* 2. La zone des menus déroulants (à droite) */
.select-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.select-filters label {
    color: #b0bec5;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Le design des menus <select> avec flèche personnalisée */
.select-filters select {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 40px 10px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;    
    appearance: none;        
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center; 
}

.select-filters select:focus {
    outline: none;
    border-color: #26c6da;
    box-shadow: 0 0 10px rgba(38, 198, 218, 0.2);
}

/* Le fond des options une fois le menu ouvert */
.select-filters select option {
    background-color: #132034;
    color: #ffffff;
    padding: 10px;
}

/* Grille des spots (CSS Grid) */
.grid-spots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    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;
}

/* Styles pour le formulaire d'ajout */
.add-form {
    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;
}

.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;
}

/* =========================================
   TOOLTIP DU GLOBE (HOVER)
   ========================================= */

.scene-tooltip {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    filter: none !important;
}
.custom-tooltip {
    background-color: #26c6da;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    text-align: center;
    white-space: nowrap;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* 3. La flèche qui pointe vers le curseur */
.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #26c6da transparent transparent transparent;
}

.custom-tooltip strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 2px;
}

.custom-tooltip span {
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.9;
}

/* =========================================
   PIED DE PAGE (FOOTER)
   ========================================= */
.main-footer {
    background-color: #0b1320;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 3px solid #26c6da;
}

.main-footer p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #56b4c8;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links .separator {
    color: #ffffff;
    opacity: 0.3;
}

/* =========================================
   CARROUSEL DES DERNIERS SPOTS (PREMIUM & CONTINU)
   ========================================= */

.carousel-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 5%;
}

/* 2. Agrandissement des textes */
.carousel-titles h2 {
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.1;
}

.carousel-titles h2 span {
    color: #26c6da;
}

.carousel-titles p {
    margin: 0;
    color: #b0bec5;
    font-size: 1.2rem;
    font-weight: 300;
}

/* 3. Le Carrousel et la piste glissante */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Cache la barre pour Chrome, Safari et Opera */
.carousel-track::-webkit-scrollbar {
    display: none; 
}

/* 4. Le design des cartes (Adaptation au texte entier) */
.carousel-track .spot-card {
    min-width: 300px;
    max-width: 300px;
    background-color: #132034;
    color: #ffffff !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: auto;
}

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

/* La zone d'information devient un espace flexible */
.carousel-track .spot-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.carousel-track .spot-info h3 {
    color: #26c6da !important;
    margin-top: 0;
    margin-bottom: 10px;
}

.carousel-track .spot-info p {
    color: #e0e0e0 !important;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* On force le bouton à se coller tout en bas */
.carousel-track .spot-info .btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

/* =========================================
   FLÈCHE DE SCROLL (HERO SECTION)
   ========================================= */

/* Force le défilement fluide sur toute la page au clic d'un lien # */
html {
    scroll-behavior: smooth;
}

.scroll-down-arrow {
position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down-arrow .chevron {
    width: 18px;
    height: 18px;
    border-right: 3px solid #26c6da;
    border-bottom: 3px solid #26c6da;
    transform: rotate(45deg);
    transition: border-color 0.3s ease;
}

.scroll-down-arrow:hover .chevron {
    border-color: #ffffff;
}

/* L'animation de rebond fluide */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -15px);
    }

    60% {
        transform: translate(-50%, -7px);
    }
}

/* =========================================
   SECTION CARROUSEL (PLEIN ÉCRAN & FILIGRANE)
   ========================================= */
#spots-list {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Le mot géant transparent en arrière-plan */
#spots-list::before {
    content: 'EXPLORE';
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 20px;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================================
   CARTES DE LA PAGE "TOUS LES SPOTS"
   ========================================= */

/* On transforme la carte blanche en conteneur Flex */
.grid-spots .spot-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Le conteneur du texte prend tout l'espace disponible */
.grid-spots .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.grid-spots .card-content .description {
    margin-bottom: 20px;
}

.grid-spots .card-content .btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

/* =========================================
   NETTOYAGE DES STYLES EN LIGNE
   ========================================= */

/* Pour mention.php */
.mentions-content {
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 10px;
}

hr.separator-line {
    margin: 30px 0;
    border-color: #eee;
    border-style: solid;
    border-width: 1px 0 0 0;
}

/* Pour tous_les_spots.php */
.page-top-margin {
    margin-top: 40px;
}

.search-form {
    display: flex;
    gap: 10px;
}

/* Pour ajouter.php (Champ fichier) */
.add-form input[type="file"] {
    background: #ffffff;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* =========================================
   MESSAGES D'ALERTE
   ========================================= */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert-success {
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.alert-error {
    color: #c62828;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

/* =========================================
   RÉCUPÉRATION DES BOUTONS CYAN
   ========================================= */

/* 1. Le bouton principal (Formulaire, Découvrir, etc.) */
.btn-primary {
    background-color: #56b4c8;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: #4592a3;
    transform: scale(1.05);
}

/* 2. Le bouton Pause (Design minimaliste avec contour) */
.btn-aesthetic {
    background: transparent;
    border: 1px solid rgba(38, 198, 218, 0.4);
    color: #26c6da !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-aesthetic:hover {
    background: rgba(38, 198, 218, 0.1);
    border-color: #26c6da;
    transform: translateY(-2px);
}
/* =========================================
   BOUTON VOIR TOUS LES SPOTS (ACCUEIL)
   ========================================= */
.all-spots-action {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

/* =========================================
   BOUTON ANNULER (RECHERCHE)
   ========================================= */
.btn-reset {
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.btn-reset:hover {
    color: #ffaa00 !important;
    border-color: #ffaa00;
}

/* =========================================
   ACCESSIBILITÉ (FOCUS ET ÉVITEMENT)
   ========================================= */
:focus-visible {
    outline: 3px solid #26c6da;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Cache le lien d'évitement visuellement, mais le montre au focus clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ffaa00;
    color: #132034;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================================
   NOTE FORMULAIRE (CHAMPS OBLIGATOIRES)
   ========================================= */
.mandatory-note {
    font-size: 0.9rem;
    color: #b0bec5;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   PLAN DU SITE
   ========================================= */
.plan-list {
    line-height: 2;
    font-size: 1.1rem;
    margin-top: 20px;
}

.plan-list li a {
    color: #56b4c8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.plan-list li a:hover {
    color: #ffffff;
}