.navbar-agrilink {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-image {
    height: 50px;
    width: 50px;
    object-fit: contain;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: #198754;
    color: white;
    border-radius: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.logo-agrilink {
    font-size: 1.4rem;
    font-weight: 800;
    color: #198754;
}


.lien-menu {
    font-weight: 500;
    color: #2d3436 !important;
    transition: 0.25s;
}

.lien-menu:hover {
    color: #198754 !important;
}


.badge-materiel {
    background: #198754;
    margin-left: 6px;
}


.avatar-utilisateur {
    width:32px;
    height:32px;
    background:#e9f7ef;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#198754;
}

.utilisateur-menu {
    font-weight:600;
    color:#2d3436 !important;
}


.menu-utilisateur {
    border-radius:14px;
    border:none;
    min-width:200px;
    margin-top:10px;
}

body {
    /* background-color:#ffffff !important; */
    background-color:rgba(236, 231, 223, 0.70) !important;
}






.bg-gradient-success {
    background: linear-gradient(45deg, #067642, #20c997);
}

.bg-blur {
    background: rgba(44, 255, 107, 0.564);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(140, 255, 148, 0.3);
}

.action-card {
    display: block;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.action-card.primary { color: #0d6efd; border-left: 5px solid #0d6efd; }
.action-card.success { color: #198754; border-left: 5px solid #198754; }
.action-card.info { color: #0dcaf0; border-left: 5px solid #0dcaf0; }
.action-card.secondary { color: #6c757d; border-left: 5px solid #6c757d; }
.action-card.danger { color: #dc3545; border-left: 5px solid #dc3545; }
.action-card.warning { color: #ffc107; border-left: 5px solid #ffc107; }

.action-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.action-card h5 { font-weight: bold; margin-bottom: 0.5rem; }
.action-card p { color: #6c757d; margin-bottom: 0; }

.agri-card {
    border-radius: 20px;
    transition: 0.3s;
}

.agri-card:hover {
    transform: scale(1.02);
}

.card-img-container {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img-custom {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.no-img {
    height: 100%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
}

.type-label {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #198754;
    letter-spacing: 1px;
}

.agrilink-bg {
    background-color: #bdc7c052;
    background-image: radial-gradient(#28a74511 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh;
}

.materiel-card {
    background: white;
    border-radius: 24px;
    padding: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    
    width: 265px;
    flex-direction: column;
}

.materiel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


.materiel-img-wrapper {
    background: #fdfdfd;
    border-radius: 18px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.materiel-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    transition: transform 0.5s ease;
}

.materiel-card:hover img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
}

.materiel-img-wrapper:hover .img-overlay {
    opacity: 1;
}


.materiel-type-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 10;
    color: #198754;
}

.materiel-info {
    padding: 15px 5px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.materiel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.materiel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prix-tag {
    color: #198754;
    font-weight: 800;
    font-size: 1.1rem;
}


.materiel-actions {
    display: flex;
    gap: 8px;
}

.btn-detail {
    background: #f1f2f6;
    color: #2d3436;
    border: none;
    border-radius: 12px;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-rent {
    background: #198754;
    color: white;
    border: none;
    border-radius: 12px;
    flex-grow: 1;
    font-weight: 600;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
}
/* responsitvite pour un petiti ecran */
@media (max-width: 576px) {
    .materiel-card {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .col-12 .materiel-card {
        max-width: 280px;
        margin: 0 auto;
    }

    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row.g-4 {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .row.g-4 > * {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

.carousel-item {
    min-height: 400px;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}



.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}