/* Styles personnalisés pour BABI-LOC */

:root {
    --couleur-bleu: #0056b3;
    --couleur-orange: #ff8c00;
    --couleur-texte: #333;
    --couleur-fond: #f8f9fa;
}

/* Couleur orange personnalisée pour le logo */
.text-orange {
    color: var(--couleur-orange) !important;
}

/* Couleur bleue personnalisée pour le logo */
.text-bleu {
    color: var(--couleur-bleu) !important;
}

/* Couleur bleue pour les éléments Bootstrap primary */
.text-primary {
    color: var(--couleur-bleu) !important;
}

.btn-primary {
    background-color: var(--couleur-bleu);
    border-color: var(--couleur-bleu);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

/* Style des onglets de navigation */
.nav-pills .nav-link.active {
    background-color: transparent;
    color: var(--couleur-bleu) !important;
    border-bottom: 3px solid var(--couleur-bleu);
    border-radius: 0;
}

.nav-pills .nav-link {
    border-radius: 0;
    padding: 0.5rem 1rem;
}

.nav-pills .nav-link i {
    color: var(--couleur-orange);
}

/* Style de la barre de recherche */
.input-group .form-control {
    border-right: none;
    border-color: #ced4da;
}

.input-group .btn-outline-secondary {
    border-left: none;
    background-color: white;
    border-color: #ced4da;
    color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

/* Conteneur du logo pour forcer le ratio */
.logo-wrapper {
    height: 42px;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Style du logo image */
.logo-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Style de la navbar pour alignement */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-height: 60px;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Fond texturé pour la section des commerces */
.fond-texture {
    background-image: url('images/texture3.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
}

/* Marges et ajustements */
body {
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
}

/* ======================== */
/* STYLES DES CARTES COMMERCES */
/* ======================== */

.commerce-carte {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.commerce-carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Punaises */
.punaise {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.punaise-rouge { background: #dc3545; }
.punaise-bleue { background: #0d6efd; }
.punaise-violette { background: #6f42c1; }
.punaise-or { background: #ffd700; }
.punaise-verte { background: #198754; }
.punaise-orange { background: #fd7e14; }
.punaise-jaune { background: #ffc107; }

/* Bandeau Premium */
.bandeau-premium {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-bottom-left-radius: 8px;
    z-index: 5;
}

/* En-têtes de cartes */
.carte-entete {
    padding: 30px 15px 15px;
    text-align: center;
    color: white;
}

.carte-entete-blanc {
    padding: 30px 15px 15px;
    text-align: center;
    background: white;
}

.carte-entete-noir {
    padding: 30px 15px 15px;
    text-align: center;
    background: #1a1a1a;
    color: white;
}

.carte-entete-rouge {
    padding: 30px 15px 15px;
    text-align: center;
    background: #dc3545;
    color: white;
}

.logo-cercle {
    width: 70px;
    height: 70px;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 2rem;
}

.icone-musique {
    font-size: 2.5rem;
    color: #6f42c1;
    margin-bottom: 10px;
}

.logo-toque {
    width: 60px;
    height: 60px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.8rem;
    color: #ffd700;
}

.icone-service {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.logo-arbre, .logo-menuiserie, .logo-patte, .logo-soleil, .logo-feuille {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.logo-arbre { color: #198754; }
.logo-menuiserie { color: #8B4513; }
.logo-patte { color: #d63384; }
.logo-soleil { color: #ff8c00; }
.logo-feuille { color: #20c997; }

/* Corps des cartes */
.carte-contenu {
    padding: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carte-corps-bleu {
    background: #0d6efd;
    color: white;
    padding: 15px;
    flex: 1;
}

.carte-contenu-noir {
    background: #1a1a1a;
    color: white;
    padding: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carte-pied {
    padding: 15px;
    text-align: center;
}

/* Typographie */
.commerce-carte h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

.commerce-carte h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

.commerce-carte .petit {
    font-size: 0.9rem;
}

.commerce-carte .or {
    color: #ffd700;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.commerce-carte .urgence {
    color: #fff;
    font-size: 1.1rem;
}

.commerce-carte .orange {
    color: #ff8c00;
}

.slogan {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 10px;
}

.description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.details {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 15px;
}

.telephone {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0;
}

.type-service {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Listes */
.liste-avantages {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.liste-avantages li {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.liste-avantages i {
    margin-right: 5px;
}

.liste-verte {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
    font-size: 0.85rem;
}

.liste-verte li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.liste-verte li::before {
    content: "•";
    color: #198754;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Étoiles */
.etoiles {
    color: #ffc107;
    margin-bottom: 15px;
}

.etoiles i {
    margin: 0 2px;
}

/* Boutons des cartes */
.btn-carte {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-marron {
    background: #8B4513;
    color: white;
}

.btn-marron:hover {
    background: #6d360f;
    color: white;
}

.btn-bleu {
    background: #0d6efd;
    color: white;
}

.btn-bleu:hover {
    background: #0b5ed7;
    color: white;
}

.btn-violet {
    background: #6f42c1;
    color: white;
}

.btn-violet:hover {
    background: #5a35a0;
    color: white;
}

.btn-or {
    background: #ffd700;
    color: #333;
}

.btn-or:hover {
    background: #e6c200;
    color: #333;
}

.btn-rouge {
    background: #dc3545;
    color: white;
}

.btn-rouge:hover {
    background: #bb2d3b;
    color: white;
}

.btn-vert {
    background: #198754;
    color: white;
}

.btn-vert:hover {
    background: #157347;
    color: white;
}

.btn-vert-clair {
    background: #20c997;
    color: white;
}

.btn-vert-clair:hover {
    background: #1ba87e;
    color: white;
}

.btn-rose {
    background: #d63384;
    color: white;
}

.btn-rose:hover {
    background: #b52a6f;
    color: white;
}

.btn-orange {
    background: #ff8c00;
    color: white;
}

.btn-orange:hover {
    background: #e67e00;
    color: white;
}

/* Styles spécifiques par carte */
.cafe-carte .carte-entete {
    background: linear-gradient(135deg, #8B4513, #A0522D);
}

.denigement-carte .carte-entete {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
}

.denigement-carte h3 span {
    font-size: 1.5rem;
    display: block;
    margin-top: 5px;
}

.traiteur-carte {
    border: 2px solid #ffd700;
}

.plombier-carte .carte-corps-bleu {
    background: #0d6efd;
}

.paysage-carte .carte-entete-blanc h4 {
    color: #198754;
}

.menuiserie-carte .carte-entete-blanc h4 {
    color: #8B4513;
}

.toutou-carte .carte-entete-blanc h4 {
    color: #d63384;
}

.garderie-carte .carte-entete-blanc h4 {
    color: #333;
}

.naturo-carte .carte-entete-blanc h4 {
    color: #20c997;
}

.piano-carte .carte-entete-blanc h4 {
    color: #6f42c1;
}

/* Responsive */
@media (max-width: 768px) {
    .commerce-carte {
        margin-bottom: 20px;
    }
}
