@font-face {
    font-family: 'Filson Soft Bold';
    src: url('/fonts/filson_soft_bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Style général */
body {
    font-family: Arial, sans-serif;
    color: #333;
    position: relative; /* Pour le bouton retour en haut */
}

/* Style de la barre de navigation */
.navbar-brand {
    font-family: 'Brush Script MT', cursive;
    color: #ff6b6b !important;
    font-size: 1.5rem;
}

.logo-img {
    height: 40px;
}

.navbar {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.navbar-toggler {
    border: none;
    color: #ff6b6b;
}

/* Barre de recherche */
.search-bar-container {
    max-width: 100%;
    display: flex;
    flex-grow: 1;
}

.search-input {
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 8px 15px;
    width: 100%;
}

.btn-search {
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Bouton connexion */
.btn-connexion {
    background-color: #ff6b6b;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: bold;
}

.btn-connexion:hover {
    background-color: #e05c5c;
    color: white;
}

/* Menu principal */
.main-menu {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.menu-item {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    display: inline-block;
}

.menu-item.active {
    border-bottom: 3px solid #ff6b6b;
}

.menu-item:hover {
    color: #e05c5c;
}

/* Sous-menu */
.sub-menu {
    padding: 10px 0;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.sub-menu-item {
    color: #666;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

.sub-menu-item:hover {
    color: #ff6b6b;
}

/* Fil d'Ariane */
.breadcrumb a {
    color: #999;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* Titres */
.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    font: 'Filson Soft Bold';
    color: #333;
    position: relative;
    text-align: center;
}

.main-title:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 107, 107, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.day-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.day-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    bottom: -8px;
    left: 0;
}

/* Cards de recettes */
.recipe-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.recipe-card img.img-fluid {
    height: 250px !important;
    padding-bottom: 0 !important;
    position: static !important;
    object-fit: cover;
    width: 100%;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.recipe-card img {
    width: 100%;
    height: 250px; /* Hauteur fixe */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
    transition: transform 0.5s ease;
}

.recipe-card:hover img {
    transform: scale(1.05);
}

.recipe-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    padding: 0 15px;
}

.btn-favorite {
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    top: 15px;
    right: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite i {
    color: #ff6b6b;
    font-size: 1.2rem;
}

.video-icon {
    color: white;
    font-size: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.badge-category {
    background-color: white;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    bottom: 15px;
    right: 15px;
    left: auto;
    z-index: 10; /* S'assurer que le badge est au-dessus de l'image */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Système de notation */
.rating {
    margin-top: 5px;
    color: #ff6b6b;
    padding: 0 15px 15px;
}

.rating i {
    margin-right: 2px;
}

.rating-count {
    color: #999;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Navigation rapide vers les jours */
.quick-nav {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.day-nav-item {
    background-color: white;
    padding: 15px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.day-nav-link {
    text-decoration: none;
    color: #333;
}

.day-nav-item:hover {
    background-color: #ff6b6b;
    color: white;
    transform: translateY(-3px);
}

.day-nav-item:hover .day-name,
.day-nav-item:hover .day-date {
    color: white;
}

.day-name {
    font-weight: bold;
    display: block;
    font-size: 1.1rem;
    color: #333;
}

.day-date {
    font-size: 0.9rem;
    color: #777;
}

/* Section de jour */
.day-section {
    scroll-margin-top: 100px; /* Pour le défilement avec les ancres */
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.day-section:last-child {
    border-bottom: none;
}

/* Bouton remonter */
.scroll-top-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.scroll-top-btn {
    width: 50px;
    height: 50px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #e05c5c;
    transform: translateY(-3px);
    color: white;
}

/* Footer */
footer {
    border-top: 1px solid #eee;
}

footer h5 {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.social-icons a {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-right: 15px;
}

.social-icons a:hover {
    color: #e05c5c;
}

.login-card {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: white;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.captcha-container {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

.captcha-question {
    font-weight: bold;
    margin-bottom: 10px;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    margin-top: 10px;
    position: relative;
}

.captcha-cell {
    aspect-ratio: 1/1;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
}

.captcha-cell.selected {
    background-color: rgba(0, 123, 255, 0.5);
    border-color: rgba(0, 123, 255, 0.8);
}

.captcha-image {
    width: 100%;
    margin-bottom: 10px;
}

/* Responsivité */
@media (max-width: 768px) {
    .search-bar-container {
        display: none;
    }
    
    .main-menu .col {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .day-title {
        font-size: 1.5rem;
    }
    
    .quick-nav .col-md-3 {
        margin-bottom: 10px;
    }
}

