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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #12191D;
    line-height: 1.6;
}

/* ── Header ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0072E9;
    text-decoration: none;
    letter-spacing: -.3px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #26363E;
    font-weight: 500;
    transition: color .2s;
}

nav a:hover {
    color: #0072E9;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
                url('../../src/images/optimized/hero.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: 0.015em;
    color: #F5F0EA;
}

.hero p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    opacity: .9;
}

.btn {
    display: inline-block;
    background: #0072E9;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 4px 14px rgba(0,114,233,.35);
}

.btn:hover {
    background: #005fcc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,114,233,.45);
}

/* ── Sections shared ── */
section {
    padding: 5rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #12191D;
}

.section-sub {
    text-align: center;
    color: #7C98A9;
    margin-bottom: 3rem;
}

/* ── Services ── */
#services {
    background: #F4F4F4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.card-icon {
    margin-bottom: 1rem;
}

.card-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    color: #0072E9;
}

.card p {
    color: #7C98A9;
    font-size: .95rem;
}

/* ── Réalisations ── */
#realisations {
    background: #fff;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.realisations-item {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: #e0e0e0;
    cursor: pointer;
}

.realisations-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.realisations-item:hover img {
    transform: scale(1.05);
}

/* ── Modal ── */
#modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.85);
    align-items: center;
    justify-content: center;
}

#modal.active {
    display: flex;
}

#modal-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    object-fit: contain;
}

#modal-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s;
}

#modal-close:hover {
    opacity: 1;
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 3.5rem;
    line-height: 1;
    padding: .2rem .7rem;
    border-radius: 8px;
    cursor: pointer;
    opacity: .8;
    transition: background .2s, opacity .2s;
    z-index: 201;
}

.modal-nav:hover {
    background: rgba(255,255,255,.3);
    opacity: 1;
}

#modal-prev { left: 1.2rem; }
#modal-next { right: 1.2rem; }

/* ── About ── */
#about {
    background: #F4F4F4;
}

.about-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.about-inner p {
    color: #26363E;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.highlights li {
    background: #e6f0fd;
    color: #0072E9;
    font-weight: 600;
    padding: .55rem 1.3rem;
    border-radius: 50px;
    font-size: .95rem;
}

/* ── Contact ── */
#contact {
    background: #fff;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0072E9;
}

.contact-info p {
    color: #26363E;
    margin-bottom: .6rem;
    font-size: .97rem;
}

.contact-info span {
    font-weight: 600;
    color: #12191D;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: .3rem;
    font-size: .9rem;
    color: #26363E;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1.1rem;
    transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0072E9;
}

.contact-form textarea {
    height: 130px;
    resize: vertical;
}

.btn-submit {
    background: #0072E9;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    padding: .85rem;
    border-radius: 8px;
    font-weight: 700;
    transition: background .2s;
}

.btn-submit:hover {
    background: #005fcc;
}

.alert {
    padding: .9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: .95rem;
}

.alert-success {
    background: #e6f0fd;
    color: #004799;
    border: 1px solid #99c3f6;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Footer ── */
footer {
    background: #12191D;
    color: #7C98A9;
    text-align: center;
    padding: 1.5rem;
    font-size: .9rem;
}

/* ── Cookie Banner ── */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #12191D;
    color: #fff;
    padding: 1.2rem 2rem;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: .95rem;
    border-top: 1px solid #26363E;
}

#cookie-banner p {
    margin: 0;
    color: #fff;
}

#cookie-banner a {
    color: #7C98A9;
}

.cookie-actions {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
}

#cookie-accept {
    background: #0072E9;
    color: #fff;
    border: none;
    padding: .55rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

#cookie-accept:hover {
    background: #005fcc;
}

#cookie-reject {
    background: transparent;
    color: #7C98A9;
    border: 1px solid #7C98A9;
    padding: .55rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

#cookie-reject:hover {
    color: #fff;
    border-color: #fff;
}

#cookie-revoke {
    background: none;
    border: none;
    color: #7C98A9;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}

/* ── Hamburger ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #12191D;
    line-height: 1;
    padding: .25rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        padding: 1rem 2rem 1.5rem;
        gap: 1.2rem;
    }

    nav.open {
        display: flex;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
