:root {
    --primary-color: #005A9C; /* Deep Blue */
    --secondary-color: #FDB813; /* Yellow */
    --dark-color: #222;
    --light-color: #f4f4f4;
    --text-color: #333;
    --white-color: #fff;
    --container-width: 1100px;
    --border-radius: 5px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--light-color);
    color: var(--text-color);
}

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

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

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

/* Header */
header {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.logo {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover, header nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Main Content Sections */
main section {
    padding: 4rem 0;
}

main section:nth-child(even) {
    background-color: var(--white-color);
}

/* Hero Section */
.hero, .hero-pro {
    background: linear-gradient(rgba(0, 90, 156, 0.8), rgba(0, 90, 156, 0.8)), url('banner.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 6rem 0;
}

.hero h2, .hero-pro h2 {
    color: var(--white-color);
    font-size: 3rem;
}
.hero p, .hero-pro p {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.intro {
    text-align: center;
}
.intro p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Title */
.page-title {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 2.5rem 0;
}

.page-title h2 { color: var(--white-color); }
.page-title p { color: var(--secondary-color); margin: 0; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e9a602;
    transform: translateY(-2px);
    color: var(--dark-color);
}

/* Home Page Specific */
.services-home ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.services-home li {
    background: var(--white-color);
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.services-home .fa-solid {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.services-home .hex-grid {
    margin-top: 2rem;
}
.services-home h4 {
    text-align: center;
}

.hex-card h5 { 
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}
.hex-card h4 { 
    font-size: 1.2rem;
}

/* Partners Section */
.partners {
    text-align: center;
}

.partner-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.partner-cards .card img {
    max-height: 80px;
    max-width: 150px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.partner-cards .card p {
    flex-grow: 1;
}

/* Particuliers Page */
.services-grid .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.services-grid .card {
    display: flex;
    flex-direction: column;
}
.services-grid .card h4 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.services-grid .card ul {
    text-align: left;
    padding-left: 20px;
}
.services-grid .card li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.specifics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Professionnels Page */
.hex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.hex-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hex-image-container {
    margin: 0 auto 1.5rem;
    width: 150px;
    height: 173px; 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--primary-color);
}
.hex-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Detail Pages */
.hero-service {
    color: var(--white-color);
    text-align: center;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-service h2 {
    color: var(--white-color);
    font-size: 3rem;
}
.hero-service p {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.eclairage-banner {
    background-image: linear-gradient(rgba(0, 90, 156, 0.8), rgba(0, 90, 156, 0.8)), url('banner-eclairage.png');
}

.service-content {
    padding: 4rem 0;
    background: var(--white-color);
}

.service-content .container {
    max-width: 900px;
}

.service-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 2rem;
}

.service-content li {
    margin-bottom: 0.75rem;
}

.service-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.service-split .card {
    text-align: left;
}
.service-split .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Contact Page */
#contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

#contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Legal Pages */
.legal-content {
    background: var(--white-color);
    padding: 3rem 0;
}
.legal-content .container {
    max-width: 800px;
}
.legal-content h3, .legal-content h4 {
    margin-top: 2rem;
}
.legal-content p {
    text-align: justify;
}
.contact-info-legal {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ccc;
}
.contact-info-legal p {
    text-align: left;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}

footer h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

footer a {
    color: var(--light-color);
}
footer a:hover {
    color: var(--secondary-color);
}

.footer-social img {
    height: 30px;
    margin-right: 10px;
    transition: transform 0.2s;
}
.footer-social img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    background: #111;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

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

    .header-container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 1rem;
    }
    header nav ul li {
        margin: 0 10px;
    }
    .partner-cards {
        grid-template-columns: 1fr;
    }
    .specifics-grid, .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .service-split {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}