/* Déplacer tout le CSS existant depuis index.php vers ce fichier */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f7931e;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --success-color: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ... (tout le reste du CSS) ... */

.contact-section {
    background-color: #f8f9fa;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-info {
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.fa-map-marker-alt, 
.fa-phone-alt, 
.fa-envelope {
    min-width: 30px;
}

/* Style du bouton À propos */
.btn-about {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-about:hover {
    background-color: #e07e0d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style actif pour la page courante */
.navbar .nav-link.active[href*="about"] {
    color: var(--secondary-color);
    font-weight: 600;
}



/* Style du formulaire */
#contactForm {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Style du modal */
#contactModal .modal-content {
    border: none;
    border-radius: 10px;
}

/* Validation */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}
.was-validated .form-control:valid {
    border-color: #28a745;
}


.footer {
    background-color: #343a40;
    border-top: 3px solid #007bff;
}

.footer a {
    transition: color 0.3s;
}

.footer a:hover {
    color: #007bff !important;
    text-decoration: none;
}

.social-icons i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-icons a:hover i {
    transform: scale(1.2);
}



/* animation  */

/* ANIMATIONS GLOBALES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Animation pour toutes les pages */
.animate-on-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation spécifique pour les actualités (sans changer la couleur) */
.actualite-item {
    transition: all 0.4s ease;
}

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

/* Animation des boutons */
.btn-animate {
    transition: all 0.3s ease;
}

.btn-animate:hover {
    transform: scale(1.05);
}

/* Animations de base */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from { 
        opacity: 0;
        transform: translateX(-50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from { 
        opacity: 0;
        transform: translateX(50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes d'animation */
.animate {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.slideUp {
    animation-name: slideUp;
}

.slideLeft {
    animation-name: slideLeft;
}

.slideRight {
    animation-name: slideRight;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}


.hero-title {
    animation: fadeIn 1s ease-out, slideUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeIn 1.5s ease-out, slideUp 1.5s ease-out;
}

.hero-section .btn {
    animation: fadeIn 2s ease-out;
    transition: all 0.3s;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn {
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.4s;
}

.btn-primary::after {
    background-color: var(--primary-color);
}

.btn-secondary::after {
    background-color: var(--secondary-color);
}

.btn:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

.service-icon {
    transition: all 0.5s;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--secondary-color);
}


.form-control {
    transition: all 0.3s;
    transform-origin: left;
}

.form-control:focus {
    transform: scaleX(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animation séquentielle des champs */
.form-control:nth-child(1) { animation: slideRight 0.5s ease-out; }
.form-control:nth-child(2) { animation: slideRight 0.7s ease-out; }
.form-control:nth-child(3) { animation: slideRight 0.9s ease-out; }
textarea.form-control { animation: slideRight 1.1s ease-out; }


.carousel-item {
    transition: transform 1s ease, opacity 0.5s ease-out;
}

.testimonial-card {
    transition: all 0.5s;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-section {
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}


.news-card {
    min-height: 400px; /* Ajustez cette valeur selon vos besoins */
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
}

