/* Réinitialisation et Base */
:root {
    --primary-blue: #2B5A8A; /* Bleu du logo */
    --accent-wood: #C6A688; /* Ton bois clair */
    --light-bg: #F9F9F9; /* Fond clair */
    --text-color: #333333;
    --secondary-text-color: #555555;
    --white: #FFFFFF;
    --border-radius: 10px;
    --font-family: 'San Francisco', 'Helvetica Neue', Arial, sans-serif;
    --section-padding: 60px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.blue{
    color: var(--primary-blue);
}

html {
    scroll-behavior: smooth;
}

body{
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}


.about-content .about-text {
    text-align: left;
}


.list {
    list-style: disc;
    list-style-position: outside;
    padding-left: 2.2rem;
    margin: 1rem 0;
    color: var(--secondary-text-color);
}


.list li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    text-align: left;
}




.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
    text-align: left;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.top-margin {
    margin-top: 2rem;
}

.left-margin {
    margin-left: 2rem;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo img {
    height: 45px;
    margin-right: 10px;
    border-radius: 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--secondary-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

.nav-toggle {
    display: none; /* Caché sur desktop */
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    position: relative;
    transition: transform 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Styles pour le menu ouvert (mobile) */
.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; /* Hauteur du header */
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
}
.nav-open .nav-links li {
    margin: 0;
    text-align: center;
}
.nav-open .nav-links a {
    display: block;
    padding: 0.8rem 1rem;
}
.nav-open .hamburger {
    transform: rotate(45deg);
}
.nav-open .hamburger::before {
    top: 0;
    transform: rotate(90deg);
}
.nav-open .hamburger::after {
    bottom: 0;
    transform: rotate(90deg);
    opacity: 0; /* Cache la barre du milieu pour former un X */
}


/* Hero Section */
.hero {
    /*background: url('../images/hero-bg.jpg') no-repeat center center/cover; */
    color: var(--white);
    min-height: calc(100vh - 70px); /* 70px est la hauteur du header */
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
}
.hero::before { /* Overlay pour lisibilité */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(43, 90, 138, 0.6); /* Bleu foncé semi-transparent */
}

.hero-content {
    position: relative; /* Pour être au-dessus de l'overlay */
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}
.hero .highlight-blue {
    color: #A0D2DB; /* Un bleu plus clair pour contraster sur fond sombre */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: rgba(255,255,255,0.9);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #1e4872; /* Bleu plus foncé */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-wood);
    color: var(--white);
    display: inline-flex;
    align-items: center;
}
.btn-secondary:hover {
    background-color: #b08d70; /* Bois plus foncé */
    transform: translateY(-2px);
}
.btn .icon {
    margin-right: 8px;
    height: 1em;
    width: auto;
    border-radius: 0;
}

/* À Propos */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.about-image {
    flex: 1;
    min-width: 300px;
}
.about-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.service-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Fixe une hauteur minimum pour aligner les titres */
.service-item h3 {
    margin-bottom: 0.5rem;
    min-height: 3.6em; /* ~2 lignes de texte */
    display: flex;
    align-items: center;
    justify-content: center;
}


.service-item p {
    min-height: 4.5em;
}


/* Réalisations (Galerie) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}
.subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* Clients */
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.client-logo {
    text-align: center;
    padding: 1rem;
    /* background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); */
}
.client-logo img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.client-logo p {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--secondary-text-color);
}


/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.contact-info {
    flex: 1;
    min-width: 280px;
}
.contact-info p {
    margin-bottom: 0.8rem;
}
.contact-info strong {
    color: var(--text-color);
}
.contact-form {
    flex: 1.5;
    min-width: 300px;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--text-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(43, 90, 138, 0.2);
}
.form-group textarea {
    resize: vertical;
}
.form-status {
    margin-top: 1rem;
    font-weight: 500;
}
.form-status.success { color: green; }
.form-status.error { color: red; }


/* Footer */
footer {
    background-color: var(--primary-blue);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}
footer p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}
footer a {
    color: var(--white);
    text-decoration: underline;
}
footer a:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
    }

    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-top: 1rem;
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* contact page */
.scroll-down {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: #333;
    text-decoration: none;
    transition: transform 0.3s;
}

.scroll-down svg {
    width: 32px;
    height: 32px;
    stroke: #555;
    transition: stroke 0.3s, transform 0.3s;
}

.scroll-down a:hover svg {
    stroke: #000;
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}


.swiper {
    max-width: 900px;
    margin: 0 auto;
}

.swiper-slide img {
    max-width: 80%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* zone intervention*/
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.section-padding {
    padding: 60px 20px;
    text-align: center;
}

.zone-list-ville {
    margin-left: 2rem;
    color: var(--text-color);
}

#realisations {
    padding-bottom: 2rem;
}

.site-footer {
    margin-top: 0;
}



/* Footer */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
    font-family: var(--font-family);
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: none;
    border-radius: 4px;
    color: var(--primary-blue) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .site-footer .container {
        grid-template-columns: 1fr;
    }
}

.footer-social {
    text-align: center;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-block;
    line-height: 0; /* Supprime l'espace en dessous de l'image */
}


/* Section Pourquoi nous choisir ? */
.why-choose-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 800px;
}

.why-choose-list li {
    margin-bottom: 1.2rem;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
    text-align: left;
}


.why-choose-section {
    text-align: left;
}


.why-choose-section h2 {
    text-align: center;
}


.why-choose-section ul {
    list-style: disc;
    list-style-position: outside;
    padding-left: 2rem;
    margin: 1rem 0;
}

.why-choose-section li {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: left;
}
