@import "carousel.css";
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Work+Sans:ital,wght@1,100..900&display=swap');


.hero-section {
    background-image: url('./img/IMG_9652.JPEG');
    /* ton image */
    background-size: cover;
    /* l’image couvre tout l’écran */
    background-position: center;
    /* centrée, sans se déformer */
    background-repeat: no-repeat;
    /* pas de répétition */
    min-height: 100vh;
    /* prend toute la hauteur de l’écran */
    text-align: center;
    color: white;
    position: relative;
}

/* ✅ Pour ajouter un léger voile sombre sur l’image (lisibilité du texte) */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* voile noir transparent */
}

/* ✅ Le contenu au-dessus du voile */
.hero-content {
    position: absolute;
    /* pour pouvoir le placer dans le parent */
    bottom: 20px;
    /* distance du bas */
    left: 20px;
    /* distance de la gauche */
    z-index: 1;
    color: white;
    /* optionnel : contraste sur une image */
    padding: 20px;
}

/* ✅ Adaptation mobile */
@media (max-width: 768px) {
    .hero-section {
        background-position: top;
        min-height: 60vh;
        /* un peu plus compact sur mobile */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.navbar {
    background-color: RGB(162, 127, 100);
}

.card {
    border-radius: 20px;
    background-color: #fffaf4;
    border: none;
    box-shadow: 0 4px 12px rgba(149, 116, 82, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img-top {
    width: 100%;
    height: 250px;
    /* tu peux ajuster selon ton design : 200 à 250px marche bien */
    object-fit: cover;
    /* garde le bon ratio sans déformation */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}


.card-body {
    flex: 1;
    /* pousse le contenu vers le bas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* espace entre le haut et le bas */
}

.bottom-content {
    margin-top: auto;
    /* pousse vers le bas */
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(149, 116, 82, 0.25);
}

.card-title {
    color: #6f4e37;
    /* marron doux */
}

.btn {
    background-color: #a47e59;
    color: white;
    border-radius: 10px;
}

.btn:hover {
    background-color: #8b6844;
}

button {
    background-color: RGB(213, 186, 155);
    border-radius: 3px;
    border: none;
    color: black;
}

body {
    background-color: RGB(248, 231, 207);
    font-family: 'Work Sans', sans-serif;
}

footer {
    background-color: RGB(162, 127, 100);
    color: black;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ddd;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* fond semi-transparent */
    justify-content: center;
    align-items: center;
    z-index: 1050;
    /* <- important : supérieur aux cartes */
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 1060;
    /* assure que le contenu est devant le fond */
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.message-container {
    max-width: 650px;
}

.message-box {
    background-color: #f9f6f2;
    border: 2px solid #a27f64;
    border-radius: 15px;
    color: #4a3b2f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.message-box p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.message-arrow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #a27f64;
}

@media (max-width: 576px) {
    .message-box {
        font-size: 0.95rem;
        padding: 1.5rem;
    }
}

.custom-filter-btn {
    border: 2px solid #000;
    /* contour noir */
    color: #000 !important;
    /* texte noir */
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Effet au survol */
.custom-filter-btn:hover,
.custom-filter-btn:focus {
    background-color: #000;
    color: #fff !important;
    /* texte blanc quand survolé */
    border-color: #000;
}


/* style du bouton */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgb(162, 127, 100);
    /* adapte à ton thème */
    color: black;
    border: none;
    display: none;
    /* caché par défaut */
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 1100;
    transition: transform .18s ease, opacity .18s ease;
}

/* icône SVG récupère la couleur du bouton via currentColor */
.back-to-top svg {
    display: block;
}

/* état visible */
.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* petit effet au survol */
.back-to-top:hover {
    transform: translateY(-4px);
    background-color: #b08c6d;
}

/* responsive */
@media (max-width: 576px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 18px;
        right: 18px;
    }
}