/*
Theme Name: Traiteur
Theme URI: http://www.iramps.be/
Description: au gout du jour
Author: Coralie B
Version: 1.0
*/

/* ========================
   GLOBAL
======================== */
body {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

/* ========================
   BACKGROUNDS
======================== */
.bg-img {
    background-image: url(assets/bg-comptoir.png);
    background-size: auto;
    background-position: center;
    padding: 5%;
}

.fond-vert {
    background-color: #D5DE50;
    padding: 5%;
}

/* ========================
   TEXTES
======================== */
.titre {
    color: #365F33;
    font-weight: bold;
    font-size:150%;
}

.titre-invisible {
    display: none;
}

/* Titres */
.titre-orange {
    color: #FFBC04;
    font-weight: bold;
    text-align: center;
    font-size: xx-large;
    margin: 5%;
}

.titre-vert {
    color: #365F33;
    font-weight: bold;
    margin-bottom: 3%;
    text-align: center;
    font-size: xx-large;
}

.titre-vert-clair {
    color: #A9C335 !important;
    font-weight: bold;
    margin: 0 0 12px 0 !important;
    font-size: xx-large;
}

/* Textes */
.texte-vert-clair {
    color: #A9C335;
    font-weight: bolder;
    font-size: x-large;
    text-align: center;
}

.texte-vert-clair-gauche {
    color: #A9C335;
    font-weight: bolder;
    font-size: x-large;
}

.texte-vert-fonce-gras {
    color: #365F33;
    font-weight: bolder;
    font-size: x-large;
    text-align: center;
    margin-bottom: 3%;
}

.texte-vert-fonce {
    color: #365F33;
    font-size: x-large;
    font-weight: 500;
}

.texte-orange {
    color: #FFBC04;
    font-weight: bold;
    font-size: x-large;
}

.liste{
    list-style: none;
}

/* Politique */
.politique {
    color: #365F33;
}

.politique h2 {
    font-weight: bold;
}

.politique h3 {
    color: #FFBC04;
}

/* ========================
   BOUTONS
======================== */
.btn-orange {
    background-color: #FFBC04;
    color: #fff;
    text-decoration: none;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    font-size: x-large;
    font-weight: bold;
    box-shadow: 7px 7px 7px #00000055;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.1s, transform 0.1s;
}


.btn-blanc{
    text-decoration: none;
}

.lien-sans-deco{
    text-decoration: none;
}

.btn-orange:hover {
    background-color: #fff;
    color: #FFBC04;
}

.btn-orange:active {
    box-shadow: inset 3px 3px 5px #00000055;
    transform: translate(2px, 2px);
}

.btn-blanc-orange,
.btn-blanc {
    background-color: #fff;
    color: #FFBC04;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: bolder;
    font-size: x-large;
    padding: 10px 30px;
    box-shadow: 7px 7px 7px #00000055;
    cursor: pointer;
    transition: box-shadow 0.1s, transform 0.1s, background-color 0.2s, color 0.2s;
}

.btn-blanc-orange:hover,
.btn-blanc:hover {
    background-color: #FFBC04;
    color: #fff;
}

.btn-blanc-orange:active,
.btn-blanc:active {
    box-shadow: inset 3px 3px 5px #00000055;
    transform: translate(2px, 2px);
}

.btn-prestation {
    background-color: #fff;
    font-size: x-large;
    color: #FFBC04;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    font-size: large;
    font-weight: bold;
    margin: auto;
}

.btn-prestation:hover {
    background-color: #FFBC04;
    color: #fff;
}

.btn-formulaire {
    background-color: #FFBC04;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    font-size: x-large;
    font-weight: bold;
    box-shadow: 7px 7px 7px #999;
    margin: auto;
    display: block;
}

.btn-formulaire:hover {
    background-color: #fff;
    color: #FFBC04;
}

.btn-formulaire:active {
    box-shadow: inset 3px 3px 5px #00000055;
    transform: translate(2px, 2px);
}

/* ========================
   CARDS
======================== */
.card-base {
    background-color: #ffffffdd !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 7px 7px 7px #00000055;
    position: relative;
    text-decoration: none;
    padding: 5%;
}

.bouton-banniere {
    background-color: #FFBC04;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.1s, transform 0.1s;
}

.bouton-banniere:hover {
    background-color: #fff;
    color: #FFBC04;
}

.bouton-banniere:active {
    box-shadow: inset 3px 3px 5px #00000055;
    transform: translate(2px, 2px);
}

.card-comptoir-accueil {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin: 10%;
}

.card-comptoir {
    width: 100% !important;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 5%;
}

.card-plat {
    border-radius: 20px !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 400px;
    max-width: 100%;
    box-shadow: 7px 7px 7px #00000055 !important;
    background-color: #ffffffcc !important;
    border: none !important;
    position: relative;

    /* Hauteur totale fixe pour uniformiser les cartes */
    height: 570px; /* ajuste selon ton design */
}

.card-plat a {
    text-decoration: none;
}

.card-active:active {
    box-shadow: none !important;
    transform: translate(2px, 2px);
}

.lien-card-plat {
    text-decoration: none;
}

/* ✅ Zone texte */
.card-plat .card-body {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    text-align: left !important;
    flex-grow: 1 !important;
    padding: 24px !important;

    /* Zone texte plus grande pour compléter la hauteur */
    min-height: 270px; 
}


.card-plat .card-body .prix-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.prix {
    color: #FFBC04;
    font-size: x-large;
    font-weight: bold;
    margin: 0;
}

/* ✅ Grande image carrée */
.card-plat .card-img-top {
    height: 300px; /* garde la hauteur originale */
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.card-plat .allergenes-icons {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.card-plat .icone-allergene {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Images prestations et fiches */
.img-cadre {
    border: 5px solid #fff;
    box-shadow: 7px 7px 7px #00000055;
}

.img-active:active {
    box-shadow: inset 3px 3px 5px #00000055;
    transform: translate(2px, 2px);
}

/* Custom card */
.custom-card {
    border-radius: 20px !important;
    box-shadow: 7px 7px 7px #00000055 !important;
    background-color: #ffffffcc !important;
    border: none !important;
    margin: 5%;
}

/* ========================
   GALERIE
======================== */
.splide__arrow {
    background-color: #fff !important;
    color: #FFBC04 !important;
    font-weight: bolder !important;
    font-size: larger !important;
}


.splide__pagination__page {
    background-color: #fff !important;
}

.kb-gallery-image-contain img{
    border: 5px solid #fff !important;
    box-shadow: 7px 7px 7px #00000055 !important;
}








/* ========================
   NAVBAR
======================== */
.navbar-nav .nav-link {
    color: #365F33;
    font-size: x-large;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    white-space: nowrap;
    transition: color 0.3s;
}

/* Par défaut : logo et titre côte à côte */
.navbar-brand {
    display: flex;
    flex-direction: row;   /* côte à côte */
    align-items: center;   /* centre verticalement le texte par rapport au logo */
    text-align: left;      /* optionnel */
    gap: 10px;             /* espace entre logo et titre */
}

.navbar-brand img {
    display: block;
    max-width: 100px;     /* ajuste selon ton design */
    height: auto;
}

.navbar-brand .site-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}



/* DROPDOWN MENUS */
.dropdown-menu {
    border: 0 !important;
    border-radius: 20px !important;
    background-color: #A9C335 !important;
}

.dropdown-item {
    color: #365F33 !important;
    font-size: 1.1em;
    font-weight: 500 !important;
}

.dropdown-item:hover {
    background-color: transparent !important;
    color: #fff !important;
    font-weight: 500;
}





/* ========================
   FOOTER
======================== */
footer {
    background-color: #A9C335;
    color: #fff;
    padding: 2rem;
    font-size: large;
    text-align: left; /* Alignement global à gauche */
}

/* Titres du footer */
footer h2 {
    font-size: 1.7em;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

footer h3 {
    font-size: 1em;
    font-weight: bold;
}

/* Jours et horaires */
.jour,
.mention {
    display: flex;               /* Flex pour mettre le jour et l'horaire sur la même ligne */
    justify-content: flex-start; /* Aligner à gauche */
    align-items: center;         /* Centrer verticalement */
    gap: 0.5rem;                 /* Espace entre jour et horaire */
    margin-bottom: 0.5rem;       /* Contrôle de l'espacement */
}

.jour strong {
    white-space: nowrap;         /* Empêche le jour de passer à la ligne */
    margin-right: 0.5rem;
}

/* Coordonnées */
.footer-icone {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-icone a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-wrap: nowrap; /* Empêche les icônes et texte de passer à la ligne */
}

.footer-icone a i {
    flex-shrink: 0;
}

.footer-icone a span.mail {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/* Mentions légales */
.mention {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Lien confidentialité */
.confidentialite {
    color: #fff;
    font-size: large;
    font-weight: bold;
}

/* Copyright */
.copyright {
    text-align: left;
    margin-top: 1.5rem;
    font-size: 0.9em;
}








/* ========================
   FORMULAIRES
======================== */
.form-control,
.form-select {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 7px 7px 7px #00000055;
    padding: 10px 30px !important;
    color: #A9C335 !important;
    font-weight: 500 !important;
    font-size: large !important;
}

.form-control::placeholder {
    color: #A9C335 !important;
}





/* ========================
   CONTACT
======================== */
.fa-contact {
    color: #365F33;
}

.lien_contact {
    text-decoration: none;
    color: #365F33;
    font-weight: bold;
    margin-bottom: 7%;
    font-size: larger;
}

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.coordonnees .icone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    gap: 5px;
}

.coordonnees .icone a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 5px;
}

.icone a {
    text-decoration: none;
    color: #365F33;
    font-weight: bold;
}





/* ========================
   MEDIA QUERIES
======================== */
/* DESKTOP */
@media screen and (min-width: 1600px) {
    #mobileNavbar {
        display: none !important;
    }

    .navbar-content {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-grow: 1;

    }

        .mobile-only { display: none !important; }

            .desktop-only { display: inline-block !important; }

    #mobileNavbar,
    .navbar-toggler { display: none !important; }

    .navbar-nav {
        display: flex;
        flex-wrap: nowrap;
        list-style: none;
        padding-left: 0;
        margin: 0;
        justify-content: center;
        gap: 2vw;
    }

    .row.align-items-center {
        display: flex;
        align-items: stretch;
    }

        .navbar-brand { flex-direction: row; gap: 10px; }

            .btn-devis { display: inline-block !important; }
}




/*tablette*/
@media (min-width: 1200px) and (max-width: 1599.99px) {

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .mobile-only { display: none !important; }

       .desktop-only { display: inline-block !important; }

.navbar-brand img {
    display: block;
    margin: 0 auto;
}

.navbar-brand .site-title {
    margin-top: 5px;
    font-size: 1.2rem;
    font-weight: bold;
}

    #mobileNavbar,
    .navbar-toggler {
        display: none !important;
    }

    .navbar-content {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
    }

    .navbar-nav {
        display: flex;
        flex-wrap: nowrap;
        list-style: none;
        padding-left: 0;
        margin: 0;
        justify-content: center;
        gap: 2vw;
    }

        .btn-devis { display: inline-block !important; }

    .row.align-items-center {
        display: flex;
        align-items: stretch;
    }

}






/* MOBILE */

@media (max-width: 1199.99px) {
    /* Affiche le titre sous le logo */
    .navbar-brand .titre {
        display: block !important;
        text-align: center;
        margin-top: 5px; /* espace entre logo et titre */
        font-size: 1.2rem; /* même taille que tablette */
        font-weight: bold;
    }

    /* Optionnel : aligner le logo et le titre verticalement */
    .navbar-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }



    /* Masquer le menu desktop */
    .navbar-content {
        display: none !important;
    }

    /* Menu mobile */
#mobileNavbar {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    z-index: 1000;
    padding: 1rem;
    background-color: #A9C335 !important;
    border-radius: 20px;
    gap: 10px;
}

.navbar .container-fluid {
  flex-wrap: nowrap;
}

.navbar-toggler {
  margin-left: auto;
}


    /* Items du menu mobile */
    #mobileNavbar .dropdown-menu {
        background-color: #D5DE50 !important;
        width: auto;
    }

   .dropdown-item {
        display: flex;
        justify-content: flex-end;
        padding-right: 1rem;
    }

    /* Bouton devis mobile */
    .btn-devis {
        align-self: flex-end; /* bouton collé à droite */
        margin-top: 1rem;
        display: block;
        box-shadow: 7px 7px 7px #778b1e;
    }

    /* Masquer/afficher éléments selon device */
    .mobile-only {
        display: block !important;
        margin-top: 1rem;
    }
    .desktop-only {
        display: none !important;
    }

    /* Bouton burger */
    .navbar-toggler {
        display: block !important;
    }

    /* Icône burger custom */
    .navbar-light .navbar-toggler-icon,
    .navbar-dark .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23365f33' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }


    .card-plat {
    min-width: 300px;
}

.cards-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

    /* FOOTER MOBILE */
      footer {
        text-align: left;
    }

    footer h2{
        text-align: left;
    }
    .jour,
    .mention,
    .footer-icone {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 0.5rem;
    }

    .copyright {
        text-align: center;
        padding: 10px 0;
        width: 100%;
    }

}
