:root {
    --primary-color: #28a745; /* Vert */
    --secondary-color: #fd7e14; /* Orange */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

/* Style pour la page d'actualité */
.article-image {
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Carousel */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    bottom: 3rem;
}

/* Style du bouton Retour en haut */
#topButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    z-index: 99;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#topButton:hover {
    opacity: 1;
}

/* Icônes des menus */
.navbar-nav .nav-link i {
    width: 20px;
    text-align: center;
}


/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-header {
    font-weight: 600;
}

/* Buttons */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-outline-success:hover {
    color: #fff;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Animation des cartes de service */
.service-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid #fd7e14;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #fd7e14 !important;
}

.service-card:hover .fa-3x {
    animation: bounce 1s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Effet de vague au survol */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253,126,20,0.1) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}


/* Animation des détails */
.service-details {
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.service-details.show {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Dans votre fichier CSS */
#serviceContainer {
    transition: all 0.3s ease;
}

.required-field::after {
    content: " *";
    color: red;
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--secondary-color);
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
}

/* Animation for cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}
/* Animation pour l'affichage des détails */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0;
}

.service-details.show {
    max-height: 1000px; /* Valeur suffisamment grande */
    padding: 15px 0;
}

/* Style des boutons */
.btn-toggle-details {
    transition: all 0.3s ease;
    position: relative;
}

.btn-toggle-details:hover {
    background-color: #198754;
    color: white;
}

/* Style des cartes */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}