﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


body {
    margin-bottom: 60px;
    background-color: #faf8f5;
}



.fixed-header {
    background-color: #120A04;
    padding-top: env(safe-area-inset-top);
}

.footer-boutique {
    background-color: #26160a;
    padding-bottom: env(safe-area-inset-bottom);
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.page-informations {
    max-width: 1000px;
}

.cookie-card {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3000;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.cookie-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 18px 18px 0 18px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 1.25rem;
}

.cookie-card-body {
    padding: 14px 18px 18px 18px;
}

.cookie-card-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.cookie-card-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

    .cookie-card-text a {
        color: #111827;
        font-weight: 600;
        text-decoration: none;
    }

        .cookie-card-text a:hover {
            text-decoration: underline;
        }

.cookie-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 575.98px) {

    .cookie-card {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 16px;
        width: calc(100% - 32px);
        max-width: 420px;
    }

    .cookie-card-actions {
        justify-content: stretch;
    }

        .cookie-card-actions .btn {
            width: 100%;
        }
}

.pagination-produits .page-link {
    color: #2f241c;
    
    margin: 0 3px;
    border: 1px solid #e5e7eb;
}

.pagination-produits .page-item.active .page-link {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.pagination-produits .page-item.disabled .page-link {
    opacity: 0.5;
}

.combobox-wrapper {
    position: relative;
}

.combobox-input {
    padding-right: 42px;
}

.combobox-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combobox-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
}

.combobox-option {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: #111827;
    font-size: 0.95rem;
}

    .combobox-option:hover,
    .combobox-option.active {
        background: #f3f4f6;
    }

.combobox-empty {
    padding: 10px 12px;
    color: #6b7280;
    font-size: 0.92rem;
}




html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
}

.contenu-principal {
    flex: 1;
    width: 100%;
}

main {
    flex: 1;
}

.cart-badge {
    top: 10%;
    left: 90%;
    transform: translate(-50%, -50%);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #faf8f5;
}

.navbar .bi {
    font-size: 1.35rem;
}

main {
    padding-top: 90px;
}

.logo-navbar {
    height: 70px;
    width: auto;
}

.panier-count {
    background: #dc3545;
    color: white;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panier-count {
    transition: transform 0.2s ease;
}

    .panier-count.bounce {
        transform: scale(1.2);
    }

.footer-boutique {
    background: #26160a;
    border-top: 1px solid #3a2415;
    color: #f5f2ed;
    padding-bottom: env(safe-area-inset-bottom);
}

    .footer-boutique .container {
        max-width: 1200px;
    }

    .footer-boutique img {
        display: block;
        height: 52px !important;
        width: auto;
    }

    .footer-boutique p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0;
        max-width: 320px;
    }

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.65rem;
    }

    .footer-links a {
        text-decoration: none;
        color: #e8e0d9;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

        .footer-links a:hover {
            color: #d6a46b;
            padding-left: 3px;
        }



.footer-boutique {
    margin-top: 0;
}

    .footer-boutique .text-muted {
        color: #b7a99a !important;
    }

    .footer-boutique .small {
        font-size: 0.88rem;
    }

@media (max-width: 991.98px) {
    .footer-boutique {
        text-align: left;
    }

        .footer-boutique p {
            max-width: none;
        }
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .footer-social i {
        font-size: 1.1rem;
        color: #e8e0d9;
    }
        .footer-social i:hover {
            color: #d6a46b;
            transform: translateY(-2px);
        }

.footer-bottom {
    color: #b7a99a; /* remplace text-muted */
}

.footer-echosoft-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #e8e0d9;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .footer-echosoft-link img {
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }

    .footer-echosoft-link:hover {
        color: #d6a46b;
    }



.navbar-boutique {
    background: url(/Images/fond-bois.jpg) center/cover no-repeat;
    border-bottom: 1px solid #3a2415;
    position: relative;
    overflow: hidden; 
    min-height: 70px;
}
   
    .navbar-boutique .container,
    .navbar-boutique .navbar-collapse {
        position: relative;
        z-index: 1;
    }
    

.navbar-boutique {
    padding-top: 0rem;
    padding-bottom: 0.2rem;
}

.btn-logout-boutique {
    background: transparent;
    color: #f5f2ed;
    border: 1px solid #d6a46b;
    transition: all 0.25s ease;
}

    .btn-logout-boutique:hover {
        background: #d6a46b;
        color: #1f1813;
        border-color: #d6a46b;
        transform: translateY(-1px);
    }


.navbar-boutique .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-boutique .navbar-toggler-icon {
    filter: invert(1); /* rend l’icône blanche */
}

@media (max-width: 991px) {
    .logo-navbar {
        height: 70px;
    }
}

.nav-link-boutique {
    color: #f5f2ed !important;
    font-weight: 500;
    padding: 0.15rem 0.2rem !important;
    position: relative;
}

    .nav-link-boutique:hover,
    .nav-link-boutique.actif {
        color: #d6a46b !important;
    }

        .nav-link-boutique.actif::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -10px;
            height: 2px;
            background: #1f1813;
            border-radius: 999px;
        }

    /*.nav-link-boutique:hover {
        color: #1f1813 !important;
    }

    .nav-link-boutique.actif {
        color: #1f1813 !important;
        font-weight: 700;
        letter-spacing: 0.02em;
    }*/

.nav-icon-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #f5f2ed !important;
    font-size: 1.25rem;
    padding: 0.15rem 0.35rem !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .nav-icon-link:hover {
        color: #d6a46b !important; /* doré */
        transform: translateY(-1px);
    }

.nav-cart-link {
    gap: 0.45rem;
}

.panier-count {
    background: #d6a46b; /* doré */
    color: #1f1813; /* brun foncé */
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}



.nav-mobile-label {
    font-size: 0.95rem;
    font-weight: 500;
}




@keyframes panierPop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.22);
    }

    60% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes panierBadgeBounce {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

#nav-cart-icon,
#panier-count-inline {
    display: inline-block;
    transform-origin: center;
}

.panier-ajout-animation {
    animation: panierPop 0.4s ease;
}

.panier-badge-animation {
    animation: panierBadgeBounce 0.45s ease;
}



@media (max-width: 991.98px) {
    .nav-icon-link {
        justify-content: flex-start !important;
    }
}



.bouton-ajout-panier.succes {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white;
    transform: scale(1.05);
    transition: all 0.25s ease;
}

    .bouton-ajout-panier.succes::before {
        content: "✓ ";
        font-weight: 700;
    }

.bouton-ajout-panier:focus,
.bouton-ajout-panier:active:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ---- Burger mobile personnalisé ---- */
.burger-boutique {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(31, 24, 19, 0.35); /* pastille brun translucide */
    border: 1px solid rgba(214, 164, 107, 0.5) !important; /* liseré doré */
    transition: background 0.25s ease, border-color 0.25s ease;
}

    .burger-boutique:hover,
    .burger-boutique:focus {
        background: rgba(31, 24, 19, 0.55);
        border-color: #d6a46b !important;
    }

.burger-boutique-box {
    position: relative;
    width: 26px;
    height: 20px;
}

.burger-boutique-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #f5f2ed; /* crème */
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.25s ease;
}

    .burger-boutique-bar:nth-child(1) {
        top: 0;
    }

    .burger-boutique-bar:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .burger-boutique-bar:nth-child(3) {
        bottom: 0;
    }

.burger-boutique:hover .burger-boutique-bar {
    background: #d6a46b; /* doré au survol */
}

/* État ouvert : Bootstrap passe aria-expanded à "true" */
.burger-boutique[aria-expanded="true"] .burger-boutique-bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger-boutique[aria-expanded="true"] .burger-boutique-bar:nth-child(2) {
    opacity: 0;
}

.burger-boutique[aria-expanded="true"] .burger-boutique-bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

@media (max-width: 991.98px) {

    /* Panneau déroulé : fond lisible par-dessus la texture bois */
    .navbar-boutique .navbar-collapse {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background: rgba(31, 24, 19, 0.92);
        border: 1px solid rgba(214, 164, 107, 0.35);
        border-radius: 14px;
    }

    .navbar-boutique .navbar-nav {
        gap: 0.15rem !important;
    }

        /* Séparateur entre le groupe "liens" et le groupe "compte / panier" */
        .navbar-boutique .navbar-nav + .navbar-nav {
            margin-top: 0.35rem;
            padding-top: 0.35rem;
            border-top: 1px solid rgba(214, 164, 107, 0.25);
        }

    /* Chaque item = grande ligne tactile */
    .navbar-boutique .nav-link-boutique,
    .navbar-boutique .nav-icon-link {
        display: flex !important;
        align-items: center;
        gap: 0.85rem;
        width: 100%;
        padding: 0.85rem 1rem !important;
        font-size: 1.15rem !important;
        border-radius: 10px;
        color: #f5f2ed !important;
        transition: background 0.2s ease, color 0.2s ease;
    }

        /* Icônes réaffichées et agrandies */
        .navbar-boutique .nav-link-boutique i,
        .navbar-boutique .nav-icon-link i,
        #nav-cart-icon {
            display: inline-flex !important;
            justify-content: center;
            width: 1.6rem;
            font-size: 1.4rem;
        }

        /* Survol / page active */
        .navbar-boutique .nav-link-boutique:hover,
        .navbar-boutique .nav-link-boutique.actif,
        .navbar-boutique .nav-icon-link:hover {
            background: rgba(214, 164, 107, 0.18);
            color: #d6a46b !important;
        }

    .nav-link-boutique.actif::after {
        display: none;
    }

    /* Libellés à la bonne taille, sans le décalage Bootstrap ms-2 */
    .nav-icon-link .nav-mobile-label {
        margin-left: 0 !important;
        font-size: 1.15rem;
        font-weight: 500;
    }

    /* Panier : icône + libellé + badge doré aligné à droite */
    .nav-cart-link {
        gap: 0.85rem !important;
    }

    #panier-count-inline {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 1.5rem;
        height: 1.5rem;
        order: 3; /* badge après le libellé */
        padding: 0 0.5rem;
        background: #d6a46b;
        color: #1f1813;
        font-size: 0.85rem;
        font-weight: 700;
        border-radius: 999px;
    }

    .nav-cart-link .nav-mobile-label {
        order: 2; /* libellé juste après l'icône */
    }
}

/* Bootstrap 5.3 pose la coche via une image data: (portée par la variable
   --bs-form-check-bg-image). Certains navigateurs rejettent la déclaration
   entière dès qu'elle contient une URI data:, la case reste alors bleue
   et vide. On sert donc de vrais fichiers SVG, relatifs à cette feuille. */
.form-check-input:checked[type="checkbox"] {
    background-image: url(coche.svg);
}

.form-check-input:checked[type="radio"] {
    background-image: url(point-radio.svg);
}
