:root {
    --rd-cream: #FFF9F0;
    --rd-brown: #5D4037;
    --rd-brown-light: #8D6E63;
    --rd-pastel-green: #A8C69F;
    --rd-pastel-red: #E8A5A5;
    --rd-pastel-pink: #F4DADA;
    --rd-soft-shadow: 0 10px 30px rgba(93, 64, 55, 0.08);
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--rd-cream);
    color: var(--rd-brown);
    padding-top: 70px;
}

@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }
}

/*index*/
.navbar {
    background-color: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(93, 64, 55, 0.05);
}

.btn-outline-brown {
    /*border: 1px solid var(--rd-brown);*/
    color: var(--rd-brown);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.btn-outline-brown:hover, 
.btn-outline-brown:focus, 
.btn-outline-brown:active {
    background-color: var(--rd-brown);
    color: var(--rd-cream);
}

/*hero index*/
.hero-section {
    padding: 100px 0 60px;
    background-size: cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 30px;
    display: inline-block;
    box-shadow: var(--rd-soft-shadow);
}

/* baree de recherche */
.search-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.main-search-bar {
    border: none;
    border-radius: 50px;
    padding: 1.5rem 2rem;
    box-shadow: var(--rd-soft-shadow);
    font-size: 1.2rem;
}
.filter-badge {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 8px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-badge:hover, .filter-badge.active {
    background-color: var(--rd-brown);
    color: white;
}

/* carte des rando */
.hike-card {
    background: white;
    border: none;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: var(--rd-soft-shadow);
    margin-bottom: 30px;
}
.hike-card:hover {
    transform: translateY(-5px);
}
.hike-img {
    height: 200px;
    object-fit: cover;
}
.badge-difficulty {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--rd-pastel-green);
    color: white;
    border-radius: 12px;
    padding: 5px 12px;
}

/* ffoter */
footer {
    background-color: #EFE5D8;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
}
.footer-walking-img {
    position: absolute;
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    pointer-events: none;
}

/*page hike show*/
.hike-main-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    box-shadow: var(--rd-soft-shadow);
    border: none;
}

.info-box {
    background: #FDFBFA;
    border: 1px solid #F1ECE7;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}
.info-box i {
    font-size: 1.5rem;
    color: var(--rd-pastel-green);
    display: block;
    margin-bottom: 5px;
}

.badge-family {
    background-color: var(--rd-pastel-pink);
    color: #A67B7B;
    font-weight: 600;
    border-radius: 50px;
    padding: 5px 15px;
}

.btn-action {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-fav { border: 2px solid var(--rd-pastel-pink); color: #d68a8a; }
.btn-fav:hover { background: var(--rd-pastel-pink); }
.btn-done { border: 2px solid var(--rd-pastel-green); color: #7a9a70; }
.btn-done:hover { background: var(--rd-pastel-green); color: white; }

.comment-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 30px;
}
.comment-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--rd-pastel-green);
}

.form-control {
    border-radius: 15px;
    border: 1px solid #EFE5D8;
    padding: 12px;
}
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(168, 198, 159, 0.25);
    border-color: var(--rd-pastel-green);
}

.btn-delete {
    background-color: #E8A5A5;
    color: white;
    border: none;
    transition: 0.3s;
}
.btn-delete:hover {
    background-color: #d68a8a;
    color: white;
}
.border-dashed {
    border: 2px dashed #EFE5D8;
}

/* page user show */

.profile-section {
    background: white;
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--rd-soft-shadow);
    margin-bottom: 40px;
    border: 1px solid rgba(93, 64, 55, 0.05);
}
.profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--rd-cream);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Cartes Favoris */
.fav-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: var(--rd-soft-shadow);
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.fav-card:hover {
    transform: scale(1.01);
    color: inherit;
}
.fav-img-container {
    height: 100%;
    min-height: 110px;
}
.fav-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
@media (max-width: 767px) {
    .fav-img {
        border-bottom-left-radius: 0;
        border-top-right-radius: 20px;
        height: 150px;
    }
}
.badge-difficulty {
    background-color: var(--rd-cream);
    color: var(--rd-brown);
    border: 1px solid #EFE5D8;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* --- Liste Randonnées Effectuées --- */
.done-list-container {
    background: white;
    border-radius: 30px;
    box-shadow: var(--rd-soft-shadow);
    overflow: hidden;
}
.done-item {
    border-bottom: 1px solid #FDFBFA;
    padding: 20px 25px;
    transition: background 0.2s;
}
.done-item:last-child {
    border-bottom: none;
}
.done-item:hover {
    background-color: #FDFBFA;
}
.badge-date {
    background-color: var(--rd-pastel-green);
    color: white;
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: 600;
}


/* zonne admin */
.admin-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--rd-soft-shadow);
    border: 1px solid rgba(93, 64, 55, 0.05);
    margin-bottom: 40px;
}

.form-control, .form-select {
    border-radius: 15px;
    border: 1px solid #EFE5D8;
    padding: 10px 15px;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(168, 198, 159, 0.25);
    border-color: var(--rd-pastel-green);
}

.btn-save {
    background-color: var(--rd-pastel-green);
    color: white;
    border: none;
    border-radius: 50px;
    transition: opacity 0.3s ease;
}
.btn-save:hover { opacity: 0.8; color: white; }

.btn-delete {
    background-color: var(--rd-pastel-red);
    color: white;
    border: none;
    border-radius: 50px;
    transition: opacity 0.3s ease;
}
.btn-delete:hover { opacity: 0.8; color: white; }

.table-cosy-container {
    overflow: hidden; 
    border-radius: 20px;
    border: 1px solid #EFE5D8;
}
.table-cosy { margin-bottom: 0; }
.table-cosy thead {
    background-color: #FDFBFA;
    color: var(--rd-brown-light);
    font-weight: 600;
}
.table-cosy th {
    border-bottom: 2px solid #EFE5D8;
    padding: 15px;
    font-weight: 600;
}
.table-cosy td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #FDFBFA;
}
.table-cosy tbody tr:hover { background-color: #FDFBFA; }
.table-cosy tbody tr:last-child td { border-bottom: none; }

.user-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
}

/* page qui sommes-nous*/
.text-highlight {
    color: var(--rd-pastel-green);
    font-weight: 700;
}

.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--rd-soft-shadow);
    margin-bottom: 30px;
}

.form-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    box-shadow: var(--rd-soft-shadow);
    border: 1px solid rgba(93, 64, 55, 0.05);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--rd-pastel-pink);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.form-content {
    position: relative;
    z-index: 1;
}

.form-control, .form-select {
    border-radius: 15px;
    border: 1px solid #EFE5D8;
    padding: 12px 15px;
    background-color: #FDFBFA;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(168, 198, 159, 0.25);
    border-color: var(--rd-pastel-green);
    background-color: white;
}

.btn-submit-rando {
    background-color: var(--rd-pastel-green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-submit-rando:hover {
    background-color: #8dae84;
    transform: translateY(-2px);
}