
/* L'Atelier David — styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
    color: #51586b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #353535;
    border-radius: 10px;
}

a {
    color: #7e123d;
}

.site {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.site-header {
    width: 100%;
    padding: 0 0 3%;
    background: #fff;
}

.site-title {
    margin: 0;
    padding: 1.2% 0 1%;
    text-align: center;
    color: #747d91;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: .02em;
}

.header-rule {
    width: 70%;
    margin: 0 auto;
    border: 0;
    border-top: 3px solid #e5e6ea;
}

.site-header img {
    border: 1px solid #353535;
    border-radius: 10px;
}

.menu-toggle {
    position: fixed;
    z-index: 1000;
    top: 20px;
    left: max(16px, calc(50% - 500px));
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #a30b46;
    box-shadow: 0 7px 16px rgba(0,0,0,.24);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    content: "";
}

.menu-toggle span::before {
    transform: translateY(-8px);
}

.menu-toggle span::after {
    transform: translateY(5px);
}

.menu-panel {
    position: fixed;
    z-index: 999;
    top: 88px;
    left: max(16px, calc(50% - 500px));
    width: min(290px, calc(100% - 32px));
    padding: 18px;
    background: rgba(255,255,255,.98);
    border: 1px solid #dddfe5;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.menu-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-panel a {
    display: block;
    padding: 12px 10px;
    text-decoration: none;
    color: #555d70;
    font-size: 1.05rem;
    border-bottom: 1px solid #ececf0;
}

.menu-panel a:last-child {
    border-bottom: 0;
}

.menu-panel a:hover,
.menu-panel a:focus {
    color: #a30b46;
}

.page-body {
    padding: 3% 0;
}

.two-columns {
    display: grid;
    grid-template-columns: 69% 20%;
    column-gap: 11%;
    align-items: start;
}

.page-title {
    margin: 0 0 4%;
    color: #51586b;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 400;
}

.main-column > img {
    margin-bottom: 5%;
}

.side-column {
    font-size: .98rem;
}

.side-logo {
    margin-bottom: 12%;
    border-radius: 10px;
}

.side-title {
    margin: 0 0 5%;
    color: #51586b;
    font-size: 1.25rem;
    font-weight: 500;
}

.side-column hr {
    border: 0;
    border-top: 1px solid #d9dbe0;
    margin: 14% 0;
}

.side-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-column li {
    margin: 0 0 7%;
}

.side-column a {
    text-decoration: none;
}

.gallery-page {
    padding: 3% 0 10%;
}

.gallery-title {
    margin: 0 4% 4%;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 400;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 4.5%;
    row-gap: 4.5%;
    padding: 0;
}

.gallery-item {
    flex: 0 0 21.625%;
    width: 21.625%;
    margin: 0;
}

.gallery-thumb {
    width: 100%;
    border: 1px solid #353535;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,.15);
}

.gallery-caption {
    margin: 3% 0 0;
    font-size: .92rem;
    color: #596075;
}

.lightbox {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4%;
    background: rgba(0,0,0,.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: min(92%, 900px);
    max-height: 92vh;
}

.lightbox-content img {
    max-height: 82vh;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.form-help {
    margin-top: 4%;
    font-size: .95rem;
}

.contact-form label {
    display: block;
    margin: 0 0 1.5%;
    color: #51586b;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d3d5da;
    border-radius: 3px;
    padding: 2.1% 2%;
    margin: 0 0 4.5%;
    font: inherit;
    color: #3f4656;
    background: #fff;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(163,11,70,.18);
    border-color: #a30b46;
}

.submit-button {
    border: 1px solid #c9cbd0;
    border-radius: 4px;
    padding: 2.2% 3.5%;
    background: #fff;
    color: #17191d;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover,
.submit-button:focus {
    border-color: #a30b46;
    color: #a30b46;
}

.form-status {
    margin-top: 4%;
    padding: 3%;
    border-radius: 5px;
    background: #f5f6f8;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

.site-footer {
    width: 100%;
    padding: 4% 4% 5%;
    border-top: 1px solid #bfc1c7;
    margin-top: 5%;
    color: #62697a;
    font-size: .88rem;
}

@media (max-width: 760px) {
    .site {
        width: 100%;
    }

    .site-title {
        padding-top: 4%;
        padding-left: 12%;
        padding-right: 12%;
    }

    .two-columns {
        display: block;
        width: 100%;
        min-height: 0;
    }

    .main-column,
    .side-column {
        display: block;
        width: 100%;
        min-height: 0;
    }

    .side-column {
        margin-top: 10%;
    }

    .page-body {
        padding: 6% 5%;
    }

    .gallery-page {
        padding-top: 5%;
    }

    .gallery {
        column-gap: 4.5%;
        row-gap: 6%;
        padding: 0 5%;
    }

    .gallery-item {
        flex-basis: 47.75%;
        width: 47.75%;
    }

    .gallery-title {
        margin-left: 5%;
        margin-right: 5%;
    }

    .menu-toggle {
        left: 14px;
        top: 14px;
        width: 52px;
        height: 52px;
    }

    .menu-panel {
        left: 14px;
        top: 78px;
    }

    .site-header .site {
    width: 90%;
    }

    .site-footer {
        clear: both;
        margin-top: 10%;
    }
}

@media (max-width: 420px) {
    .gallery {
        row-gap: 5%;
    }

    .gallery-item {
        flex-basis: 100%;
        width: 100%;
    }
}
