/* VARIABLES DE CONFIGURATION - À MODIFIER ICI */
:root {
    /* Couleurs principales */
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;

    /* Typographie */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Tailles */
    --max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* RESET ET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* HEADER */
header {
    background: #fff;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.slogan {
    font-size: 0.9rem;
    color: #666;
    margin-top: -5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/banner.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ddd;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* SECTIONS COMMUNES */
.section {
    padding: 80px 0;
}

.dark-section {
    background: #f8f9fa;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service:hover {
    transform: translateY(-10px);
}

.service i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* RÉALISATIONS */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.realisation {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.realisation:hover {
    transform: translateY(-10px);
}

.realisation img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.realisation-content {
    padding: 20px;
}

.realisation h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.realisation-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
}

/* À PROPOS */
.about-content {
    flex: 1;
    padding-right: 50px;
}

.about-content p {
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat p {
    font-size: 0.9rem;
    color: #666;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* TÉMOIGNAGES */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.rating {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #666;
}

/* CONTACT */
.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group select {
    background: #fff;
}

/* FOOTER */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .slogan {
        display: none;
    }

    nav ul {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }
}
/* Conteneur principal */
.team-container {
    display: flex;
    justify-content: center; /* Centre les membres horizontalement */
    gap: 30px; /* Espace entre les membres */
    margin: 40px 0;
    flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
  }
  
  /* Chaque membre de l'équipe */
  .team-member {
    text-align: center;
    width: 250px; /* Largeur fixe pour toutes les images */
  }
  
  /* Style des images */
  .team-img {
    width: 100%; /* Prend toute la largeur du conteneur */
    height: 250px; /* Hauteur fixe pour uniformiser */
    object-fit: cover; /* Coupe l'image pour remplir le cadre sans déformation */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    transition: transform 0.3s; /* Animation au survol */
  }
  
  .team-img:hover {
    transform: scale(1.03); /* Effet de zoom léger au survol */
  }
  
  /* Style des noms */
  .team-member h3 {
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--primary-color); /* Utilise la couleur principale de votre site */
  }
  
  /* Style des postes (optionnel) */
  .team-member p {
    margin-top: -10px;
    color: #666;
    font-style: italic;
  }
/* ===== Section 404 ===== */
.error-404 {
    padding: 100px 0;
    background-color: #f9f9f9; /* Couleur de fond cohérente avec votre site */
    text-align: center;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.error-icon {
    font-size: 60px;
    color: #e74c3c; /* Couleur rouge pour l'alerte (à adapter à votre palette) */
    margin-bottom: 20px;
}

.error-404 h1 {
    font-size: 2.5rem;
    color: #2c3e50; /* Couleur sombre pour le titre */
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.1rem;
    color: #7f8c8d; /* Couleur grise pour le texte */
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.error-illustration img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    .error-actions a {
        width: 80%;
    }
}
