@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&family=Lora:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

/* ---------- BASE ---- */

html, body {
    height: 100%;
    margin: 0;
    font-family: sans-serif;
    background-color: #0f1016;      
    color: #e6e6e6;                 
}

h1 {
    text-align: center;
    padding: 30px;
    font-size: 45px;
    font-family: 'Playfair Display', serif;
    color: #ffffff;
}

.main-container {
    max-width: 1500px;
    margin: auto;
}

/*  Fiches Évènements  */

.card-event {
    display: flex;
    gap: 15px;
    background: #1b1c23;           /* fond des cartes */
    border: 1px solid #2a2c33;     /* contour  */
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: background .2s, border .2s;
}

.card-event:hover {
    background: #23242d;
    border-color: #3a3d47;
}

.card-event img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.card-prop {
    display: flex;
    gap: 15px;
    background: #1b1c23;           /* fond des cartes */
    border: 1px solid #2a2c33;     /* contour  */
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
}

.card-prop h2{
    color:white;
}

.card-prop:hover {
    background: #23242d;
    border-color: #3a3d47;
}

.card-prop img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-badge {
    font-weight: bold;
    color: #ffffff; 
    margin-left: 5px;
}

/*  Barre de recherche  */

.search {
    height: 40px;
    --padding: 14px;
    width: max-content;
    display: flex;
    align-items: center;
    padding: var(--padding);
    border-radius: 28px;
    background: #2b2e36;            
    transition: box-shadow 0.25s, background 0.25s;
    color: #fff;
}

.search:hover,
.search:focus-within{
    box-shadow: 0 0 4px rgba(100, 150, 255, 0.6);
    background: #323542;
}

.search-input {
    font-size: 16px;
    color: #ffffff;
    margin-left: var(--padding);
    outline: none;
    border: none;
    background: transparent;
    width: 600px;
}

.search-input::placeholder {
    color: #a5a5a5;
}

/* icône */
.search-icon {
    color: #a5a5a5;
}

/*  Sélecteur  */

.select-container select {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #101113;
    border-radius: 8px;
    background: #2b2e36;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    transition: border-color .25s, background .25s;
}

.select-container select:hover {
    background: #353743;
}

.select-container select:focus {
    border-color: #4A90E2;
    outline: none;
}

.select-container {
    position: relative;
}

.select-container::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #cfcfcf;
}

/*  Toggle des détails  */

.card-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #010114;
    border-radius: 0 0 8px 8px;
    padding: 0 10px;
}

.card-panel.open {
    max-height: 500px;
    padding: 10px;
}

/* -- Favoris  */

.favorite-btn {
    background:none;
    border:none;
    cursor:pointer;
    font-size:1.6em;
    color:#ff5470;        
    transition: transform .25s, color .25s;
    margin-left: auto;
}

.favorite-btn:hover {
    transform: scale(1.3);
    color:#ff7087;
}

a {
    color: #ffffff;
}


/* --
   FIX VISIBILITÉ - DARK MODE
   -- */

h1, h2, h3, h4 {
    color: #f8f8f8 !important;          
}

.card-event .infos {
    color: #dfe2e6 !important;          /* Texte du contenu */
    font-size: 1.15rem;
}

.card-event .infos a,
.card-event .infos span,
.card-event .infos p {
    color: #dfe2e6 !important;
}

.card-event  {
    color: #ffffff !important;          
    font-size: 1.3rem;
    font-weight: 600;
}

/* Couleurs des badges */
.date-badge {
    background: transparent;
    color: #ffb84d !important;
}

.tag-ville, 
.ville-badge {
    background: #3b82f6 !important;     
    color: white !important;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 0.8rem;
}

/* Favori */
.favorite-btn {
    color: #ff5a7a !important;
}
.favorite-btn:hover {
    color: #ff7e9b !important;
    transform: scale(1.2);
}

/* Cartes */
.card-event {
    background: #1b1c23 !important;
    border: 1px solid #2f3138 !important;
}

.card-event:hover {
    background: #262832 !important;
}


/* --- ZONE DES FILTRES - MODE NUIT --- */

.form-label {
    color: #d6d6d6;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Barre de recherche  */

.form-select {
    background-color: #1d1f25;         
    color: #ffffff;                      
    border: 1px solid #3a3d45;
    border-radius: 8px;
    padding: 10px;
    transition: 0.3s ease;
}

/* Placeholders et contenu */
.form-select option {
    background-color: #1d1f25;
    color: #ffffff;
}

/* Effets au survol et sélection */
.form-select:hover {
    border-color: #5e82f1;               
}

.form-select:focus {
    outline: none;
    border-color: #5e82f1;
    box-shadow: 0 0 5px rgba(94,130,241,0.5);
}

/* Alignement du menu dropdown natif */
.form-select option:hover {
    background:#2a2e36;
}

/* Conteneur row ajusté en sombre */
.row.text-center label {
    color:white;
}

#addBtn {
    margin: 40px auto;        /* centré automatiquement */
    display: block;
    transform: translate(-50%, -50%);

    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #007BFF;
    color: white;
    font-size: 32px;
    cursor: pointer;

    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: 0.2s;
}

#addBtn:hover {
    background-color: #0056c7;
    box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}

#addBtn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.choice{
    display:flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    padding: 20px;
}

.choice p{
    font-weight: bold;
    font-size : 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #3e3f94;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px; width: 26px;
    left: 4px; bottom: 4px;
    background-color: #ffffff;
    transition: .4s;
    border-radius: 50%;
}


input:checked + .slider:before {
    transform: translateX(26px);
}

.bouton-volant {
    text-decoration: none;
    display: inline-block;
    position: fixed;
    top: 8.5%; /* espace sous navbar */
    right: 20px; /* distance depuis la droite */
    z-index: 9999; /* passe devant tout */

    background: #007bff; /* couleur */
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 16px;
}

.bouton-volant:hover {
    background: #0056c7;
}



