@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');
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

h1{
    text-align: center;
    padding: 30px;
    font-size: 45px;
}

body {
    font-family: sans-serif;
}

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

.card-event {
    display: flex;
    gap: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
}

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

.card-prop {
    display: flex;
    gap: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
}

.card-prop a {
    color: black;
}

.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: #e67e22;
    margin-left: 5px;
}

.search{
    height: 40px;
    --padding: 14px;

    width: max-content;
    display: flex;
    align-items: center;
    padding: var(--padding);
    border-radius: 28px;
    background: #ffffff;
    transition : box-shadow 0.25s;
}

.search:focus-within{
    box-shadow : 0 0 2px rgba(0,0,0,0.75);
}

.search-input{
    font-size: 16px;
    font-family: 'Lexend', sans serif;
    color : #333333;
    margin-left: var(--padding);
    outline : none;
    border: none;
    background: transparent;
    width: 600px;
}

.search-input::placeholder,
.search-icon{
    color: rgba(0,0,0,0.5);
}

select {
    width:100px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-container select {
    width: 100%;
    padding: 10px 40px 10px 12px;   /* espace pour la flèche */
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.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: #555;
}

.select-container select:hover {
    border-color: #999;
}

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

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

.favorite-btn {
    background:none;
    border:none;
    cursor:pointer;
    font-size:1.6em;
    color:#ff0000;
    transition: transform 0.2s;
    margin-left: auto;
}
.favorite-btn:hover {
    transform: scale(1.3);
}

#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: #004e98; /* 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;
}