:root {
    --recacool-blue: #003981;
    --recacool-light: #5dade2;
    --recacool-dark: #0c2d3a;
    --recacool-gray: #f8f9fa;
    --recacool-yellow: #ffc107; /* Couleur pour mettre en avant les éléments liés aux frites */
    --recacool-white : #fff;
}

.nav-link {
    color: var(--recacool-white) !important;
    font-weight: bold;
}

.dropdown-menu {
    background-color: var(--recacool-blue);
}.dropdown-menu li a {
    color: var(--recacool-white);
}

.text-recacool {
    color: var(--recacool-blue);
}

.bg-recacool {
    background-color: var(--recacool-blue);
}

.bg-recacool-light {
    background-color: var(--recacool-light);
}

.btn-recacool {
    background-color: var(--recacool-blue);
    color: var(--recacool-white) !important;
    border: none;
    transition: all 0.3s;
}

.btn-recacool:hover {
    background-color: var(--recacool-dark);
    color: white;
}

.btn-outline-recacool {
    border-color: var(--recacool-blue);
    color: var(--recacool-blue);
}

body .btn-outline-recacool:hover {
    background-color: var(--recacool-blue);
    color: var(--recacool-white) !important;
}

.btn-contact {
    background-color: var(--recacool-yellow);
    color: var(--recacool-dark);
    font-weight: 500;
}

.btn-contact:hover {
    color: white;
}

.hero {
    min-height: 60vh;
}

/* Pour les icônes Flaticon */
.fi {
    font-size: 2rem !important; /* Taille de base */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important; /* Hérite de la couleur du parent */
}

#prestations .icon-box {
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important; /* Reset padding */
    border-radius: 50% !important;
    display: inline-flex !important; /* inline-flex pour un meilleur comportement en ligne */
    align-items: center !important;
    justify-content: center !important;
    margin: 0 1rem 0 0 !important;
    font-size: 1.5rem;
    line-height: 1;
    box-sizing: border-box !important;
    overflow: hidden; /* Empêche les débordements */
    background-color: #5dade2; /* Fond visible pour débogage */
    border: 1px solid transparent; /* Bordure transparente pour vérification */
}

#prestations .icon-box i {
    display: inline-block;
    max-width: 70%;
    max-height: 70%;
    line-height: 1;
}

/* Réinitialisation des styles pour les conteneurs parents */
#prestations .d-flex {
    padding: 0 !important;
    min-height: 60px; /* Hauteur minimale pour éviter l'étirement */
}

#prestations .d-flex.align-items-center {
    align-items: center !important;
}

/* Assure que le texte adjacent ne déforme pas la ligne */
#prestations .d-flex .flex-grow-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Force les .icon-box à rester carrés */
#prestations .icon-box {
    flex: 0 0 60px !important; /* Empêche la croissance ou la réduction */
    margin: 0 1rem 0 0 !important;
    overflow: hidden;
}

/* Pour la section "Pourquoi choisir RECACOOL" */
section.bg-light .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5dade2;
    margin: 0 auto 15px;
}

.product-card {
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content {
    border-radius: 10px;
    border: none;
}

.breadcrumb {
    --bs-breadcrumb-divider: '>';
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: var(--recacool-blue);
}

.breadcrumb-item.active {
    color: var(--recacool-dark);
}

.accordion-button:not(.collapsed) {
    color: var(--recacool-blue);
    background-color: rgba(26, 95, 122, 0.1);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a5f7a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a5f7a'%3e%3cpath fill-rule='evenodd' d='M1.646 11.354a.5.5 0 0 1 .708 0L8 5.707l5.646 5.647a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708.708L8.707 5l5.647 5.646a.5.5 0 0 1-.708.708L8 6.707l-5.646 5.647a.5.5 0 0 1-.708-.708z'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .navbar-nav {
        padding-top: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background-color: rgba(26, 95, 122, 0.9);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
}

/* Style spécifique pour les friteries */
.friterie-highlight {
    border-left: 4px solid var(--recacool-yellow);
    padding-left: 1rem;
}

/* Animation pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Alignement uniforme des sous-services */
.service-subitem {
    min-height: 80px;
}

.service-subitem .icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-subitem .icon-box i {
    font-size: 1.5rem;
    line-height: 1;
}

/* Pour les titres et textes */
.service-subitem h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.service-subitem p {
    margin-bottom: 0;
    font-size: 0.9rem;
}