/* --- Variables CSS --- */
:root {
    --primary-color: #2C3E50;
    /* Bleu Ardoise */
    --accent-color: #E67E22;
    /* Brique */
    --accent-hover: #D35400;
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-padding {
    padding: 80px 0;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Header --- */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn-contact {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
}

.nav-link.btn-contact::after {
    display: none;
}

.nav-link.btn-contact:hover {
    background-color: #1a252f;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
    /* Override if needed */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.6));
    z-index: -1;
}

/* Footer Banner */
.footer-banner {
    width: 100%;
    height: 300px;
    background-image: url('../assets/images/banner_footer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

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

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.about-features {
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 500;
}

.about-image {
    background-color: #ddd;
    /* Fallback */
    height: 400px;
    border-radius: 8px;
    position: relative;
    background-image: url('../assets/images/service_masonry.png');
    /* Temporaire ou autre image */
    background-size: cover;
    background-position: center;
}

.stats-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 150px;
}

.stats-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stats-card p {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Services --- */
.section-header {
    margin-bottom: 60px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

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

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.bg-placeholder {
    background-color: #ccc;
}

/* Fallback */

.service-content {
    padding: 30px;
    position: relative;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    margin-top: -60px;
    margin-bottom: 20px;
    border: 5px solid var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
}

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

.portfolio-item {
    height: 300px;
    background-color: #ddd;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Simulate content */
    background: linear-gradient(45deg, #eee 25%, #f5f5f5 25%, #f5f5f5 50%, #eee 50%, #eee 75%, #f5f5f5 75%, #f5f5f5 100%);
    background-size: 20px 20px;
}

/* Optional: use actual images in style attribute in HTML, here just generic styling */

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2rem;
}

.contact-info p {
    opacity: 0.9;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.info-item h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.contact-form {
    padding: 50px;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* --- Footer --- */
.footer {
    background-color: #1a252f;
    color: #bdc3c7;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding: 50px;
        transition: var(--transition);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: var(--transition);
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    h1 {
        font-size: 2.2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
        display: block;
        width: fit-content;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Service List Styles --- */
.service-list {
    margin: 15px 0;
    list-style: none;
    padding-left: 0;
}

.service-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #555;
    text-align: left;
}

.service-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.btn-text:hover {
    color: var(--primary-color);
}