/* Styles globaux */
:root {
    --main-color: #8c0000;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #f9f9f9;
    color: #333;
}

main {
    margin-left: 5%;
    margin-right: 5%;
}

/* Section Hero */
#hero {
    background-color: #8c0000;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-top: 20px;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

#hero .cta {
    display: inline-block;
    background: #fff;
    color: #8c0000;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

#hero .cta:hover {
    background: #fff;
    color: #4e73df;
}






/* Section Slider */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
    margin: 20px 0; /* Réduit la marge autour du slider */
}

/* Conteneur des éléments du slider */
.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Élément du slider */
.slider-item {
    position: relative;
    width: 100%; /* Fixe une largeur uniforme pour les éléments */
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Style des images */
.slider-item img {
    width: 100%;
    height: 450px;
    object-fit: cover; /* Assure que l'image couvre toute la surface sans déformer son ratio */
    border-radius: 10px;
}

/* Contenu du slider (texte) */
.slider-item .content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-item h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.slider-item p {
    font-size: 1.2rem;
    color: #fff;
}

/* Conteneur des boutons et des dots */
.slider-controls {
    position: absolute;
    bottom: 20px; /* Positionne les contrôles au bas du slider */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

/* Boutons de navigation */
.slider-button {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.slider-button:hover {
    background: rgba(231, 147, 147, 0.8);
}

/* Positionnement des boutons */
.slider-button.prev {
	margin-right: auto;
	position: relative;
	top: 515px;
	left: 40%;
}

.slider-button.next {
	margin-left: auto;
	position: relative;
	top: 30px;
	left: 55%;
}

/* Points de navigation (dots) */
.slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: #8c0000; /* Couleur des points */
}

.slick-dots li.slick-active button:before {
    color: #4e73df; /* Couleur active */
}







/* Section Services */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 40px 20px;
    background: #fff;
}

.feature {
    flex: 1;
    max-width: 300px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    background: #f9f9f9;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2rem;
    color: #8c0000;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1rem;
    color: #555;
}

/* Liens "En savoir plus" */
.learn-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 1rem;
    color: #8c0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #4e73df; /* Change color on hover */
    text-decoration: underline;
}


/* Footer */
footer {
    background: #4e73df;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer a {
    color: #1cc88a;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}



#testimonials {
    background: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

#testimonials h2 {
    color: #8c0000;
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

.testimonial h4 {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}




#projects {
    padding: 50px 20px;
    text-align: center;
}

#projects h2 {
    color: #8c0000;
    font-size: 2rem;
    margin-bottom: 20px;
}

.project-item {
    display: inline-block;
    width: 300px;
    margin: 20px 100px 0px 0px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-item h3 {
    margin: 15px 0 10px;
    color: #333;
    font-size: 1.5rem;
}

.project-item p {
    padding: 0 15px 20px;
    color: #555;
}



#team {
    background: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

#team h2 {
    color: #8c0000;
    font-size: 2rem;
    margin-bottom: 20px;
}

.team-member {
    display: inline-block;
    width: 250px;
    margin: 20px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 1.3rem;
    color: #333;
}

.team-member p {
    font-size: 1rem;
    color: #555;
}



#contact {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
}

#contact h2 {
    color: #8c0000;
    font-size: 2rem;
    margin-bottom: 20px;
}

#contact form {
    max-width: 500px;
    margin: 0 auto;
}

#contact input, 
#contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#contact textarea {
    height: 100px;
    resize: none;
}

#contact button {
    background: #8c0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#contact button:hover {
    background: #4e73df;
}



#partners {
    background: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

#partners h2 {
    color: #8c0000;
    font-size: 2rem;
    margin-bottom: 20px;
}

.partner-logo {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-logo img {
    width: 150px;
    height: auto;
    filter: grayscale(50%);
    transition: filter 0.3s;
}

.partner-logo img:hover {
    filter: grayscale(0%);
}
