/* Base styles */
.home-container {
    color: #ffffff;
}

.logo-main {
    width: 40vw;
    height: auto;
}

/* Section titles and text */
.section-title {
    color: white;
    text-align: center;
    font-weight: bold;
    margin: 2rem 0;
}

.intro-text {
    text-align: center;
    margin-top: 30px;
    color: #ffffff;
}

/* Mission section */
.mission-text {
    color: #adb5bd;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-icon {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-description {
    color: #adb5bd;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* CTA Button */
.cta-button-container {
    text-align: center;
    margin-top: 30px;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Advantages section */
.advantages-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    max-width: 70vw;
    width: fit-content;
    margin: 20px auto;
}

.advantage-text {
    color: white;
    padding: 1rem;
    border-left: 3px solid #ffffff;
    background: rgba(113, 113, 113, 0.1);
    border-radius: 0 5px 5px 0;
    line-height: 1.6;
}

/* Testimonials section */
.testimonials-section {
    padding-bottom: 4rem;
    color: #ffffff;
}

.testimonials-title {
    color: white;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: none;
    transition: transform 0.3s ease;
}

/* Animation effects */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover,
.service-card:hover,
.card:hover,
.cta-button:hover {
    transform: translateY(-5px);
}

.cta-button:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel styles */
.carousel-container {
    margin-top: 50px;
}

.edit-controls {
    margin-bottom: 20px;
    text-align: right;
}

.edit-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    color: white;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-control {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.9);
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

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

.btn-sm {
    padding: 4px 8px;
    font-size: 0.875rem;
}

.edit-controls-item {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
}

.modal-content {
    background-color: #333;
    color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #555;
    padding-top: 15px;
    margin-top: 15px;
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.section-edit-button {
    margin-bottom: 15px;
}

.edit-item-controls {
    position: absolute;
    top: 90%;
    left: 43vw;
    display: flex;
    gap: 5px;
    margin: 5px 0 0 20px;
    z-index: 9999;
}

.carousel-img {
    height: 500px; 
    object-fit: cover;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .carousel-img {
        width: 100vw;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0;
    }

    .advantages-container {
        max-width: 100%;
        padding: 1.5rem;
        margin: 1rem 15px;
    }

    .testimonials-section {
        padding: 2rem 0;
    }

    .card {
        margin: 0 10px;
    }

    .mission-text {
        padding: 0 15px;
        font-size: 1rem;
    }

    .cta-button {
        width: 90%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
        padding: 0 10px;
        margin-top: 2rem;
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .advantage-text {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .testimonials-section p {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}


/* Ajout des styles pour la navigation */
@media screen and (max-width: 768px) {
    .navbar-brand {
        position: absolute;
        left: 15px;
        z-index: 1;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    .navbar-collapse {
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .navbar-brand {
        left: 10px;
    }

    .navbar-brand img {
        max-width: 150px;
        height: auto;
    }
}