/* =========================================
   VARIABLES
========================================= */

:root {
    --cream: #f7f4ee;
    --white: #ffffff;
    --dark: #29231e;
    --dark-2: #352c25;
    --wood: #a77b42;
    --wood-dark: #79582f;
    --text: #3f3a35;
    --muted: #77716a;
    --border: #ded8ce;

    --container: 1180px;
    --radius: 2px;

    --shadow: 0 12px 35px rgba(0,0,0,.08);
}


/* =========================================
   RESET
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
}

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
}


/* =========================================
   UTILITAIRES
========================================= */

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--wood-dark);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    font-weight: 700;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 25px;
    color: var(--dark);
}

.section-intro {
    max-width: 680px;
    margin: 0 auto 45px;
    text-align: center;
    color: var(--muted);
}

.section-heading {
    text-align: center;
}

.hero-eyebrow {
    color: #d4a96d;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 27px;
    border: 1px solid var(--wood);
    background: var(--wood);
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: .25s ease;
}

.btn:hover {
    background: var(--wood-dark);
    border-color: var(--wood-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}


/* =========================================
   HEADER
========================================= */

.top-header {
    background: white;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 136px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-mark {
    width: 48px;
    height: 62px;
    border: 2px solid var(--wood);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: "";
    width: 31px;
    height: 48px;
    border: 2px solid var(--wood);
    border-radius: 50%;
    position: absolute;
}

.logo-mark::after {
    content: "";
    width: 22px;
    height: 38px;
    border: 1px solid var(--wood);
    border-radius: 50%;
    position: absolute;
}

.logo-name {
    color: var(--dark);
    font-size: 32px;
    letter-spacing: .04em;
    line-height: 1;
}

.logo-subtitle {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--wood-dark);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wood);
    transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 225px;
}

.header-contact a,
.header-contact span {
    font-size: 13px;
}

.header-contact strong {
    font-size: 17px;
    color: var(--dark);
}

.contact-line {
    display: flex;
    gap: 9px;
    align-items: center;
}

.contact-icon {
    color: var(--wood-dark);
    width: 17px;
    text-align: center;
}

.header-quote {
    margin-top: 8px;
}

.header-quote .btn {
    width: 100%;
    min-height: 42px;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 28px;
    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background:
        linear-gradient(
            90deg,
            rgba(20,16,13,.80) 0%,
            rgba(20,16,13,.62) 45%,
            rgba(20,16,13,.15) 100%
        ),
        url("../images/menuiserie-chateaugiron-menuiserie-lebrun.webp")
        center / cover no-repeat;
    color: white;
}

.hero-content {
    max-width: 760px;
    padding: 100px 0;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 76px);
    margin-bottom: 15px;
    color: white;
}

.hero-subtitle {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(23px, 3vw, 34px);
    font-style: italic;
    margin-bottom: 35px;
}

.hero-description {
    border-top: 1px solid rgba(255,255,255,.45);
    padding-top: 20px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* =========================================
   INTRODUCTION
========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.about-image {
    min-height: 560px;
    background:
        url("../images/artisan-menuisier-chateaugiron.webp")
        center / cover no-repeat;
}

.about-content {
    padding: 70px;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: clamp(38px, 5vw, 55px);
    margin-bottom: 25px;
}

.about-content p {
    max-width: 600px;
}

.advantages {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.advantage {
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid var(--border);
}

.advantage:last-child {
    border-right: 0;
}

.advantage-icon {
    font-size: 25px;
    margin-bottom: 10px;
}

.advantage strong {
    display: block;
    color: var(--dark);
    font-size: 13px;
}


/* =========================================
   SERVICES
========================================= */

.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    border: 1px solid var(--border);
    background: white;
    transition: .25s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-image {
    height: 210px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    color: var(--dark);
}

.service-content p {
    color: var(--muted);
    font-size: 14px;
}

.service-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--wood-dark);
    font-size: 24px;
}

/* PAGE ENTREPRISE */
.page-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background:
        linear-gradient(90deg, rgba(25,19,15,.86), rgba(25,19,15,.45), rgba(25,19,15,.15)),
        url("../images/atelier-menuiserie-lebrun.webp") center / cover no-repeat;
    color: white;
}

.page-hero-content {
    max-width: 780px;
    padding: 100px 0;
}

.page-hero .eyebrow {
    color: #d5a86b;
}

.page-hero h1 {
    color: white;
    font-size: clamp(45px, 6vw, 68px);
    margin-bottom: 12px;
}

.page-hero p {
    max-width: 680px;
    font-size: 16px;
    margin: 0;
}

.presentation,
.knowhow {
    background: white;
}

.presentation-grid,
.knowhow-grid,
.local-grid {
    display: grid;
    align-items: center;
}

.presentation-grid,
.knowhow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.presentation-image {
    overflow: hidden;
}

.presentation-image img,
.knowhow-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.presentation-content h2,
.values-intro h2,
.knowhow-content h2,
.local h2 {
    font-size: clamp(38px, 4vw, 52px);
    color: var(--dark);
}

.presentation-content p,
.knowhow-content p,
.local p {
    color: var(--muted);
}

.values,
.local {
    background: var(--cream);
}

.values-intro {
    max-width: 700px;
}

.values-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    padding: 30px 20px;
    border-left: 1px solid var(--border);
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 1px solid var(--wood);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--wood-dark);
    font-size: 25px;
}

.value-card h3 {
    color: var(--dark);
    font-size: 17px;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.knowhow-image {
    order: 1;
}

.knowhow-content {
    order: 2;
}

.knowhow-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.knowhow-list li {
    padding: 9px 0;
    font-weight: 600;
    color: var(--dark);
}

.knowhow-list li::before {
    content: "✓";
    color: var(--wood);
    font-weight: 700;
    margin-right: 10px;
}

.local-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.area-list li {
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
}

.local-image {
    min-height: 390px;
    background:
        linear-gradient(rgba(30,24,20,.12), rgba(30,24,20,.12)),
        url("../images/menuiserie-chateaugiron-projets-sur-mesure.webp") center / cover no-repeat;
}

@media (max-width: 1100px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .presentation-grid,
    .knowhow-grid,
    .local-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .values-grid,
    .area-list {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: 650px;
    }

    .page-hero h1 {
        font-size: 45px;
    }
}


/* =========================================
   REALISATIONS
========================================= */

.realizations {
    background: var(--cream);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / .8;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 35px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: white;
    font-weight: 600;
}

.realization-bottom {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.categories {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================
   SEO LOCAL
========================================= */

.local-seo {
    background: white;
}

.local-seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.local-seo h2 {
    font-size: clamp(35px, 4vw, 48px);
}

.local-seo p {
    color: var(--muted);
}

.local-list {
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.local-list li {
    padding: 8px 0;
    font-weight: 600;
}

.local-list li::before {
    content: "✓";
    color: var(--wood);
    font-weight: 700;
    margin-right: 10px;
}

.map-placeholder {
    min-height: 350px;
    background:
        linear-gradient(rgba(40,34,28,.15), rgba(40,34,28,.15)),
        url("../images/chateaugiron-menuiserie.jpg")
        center / cover no-repeat;
}


/* =========================================
   CTA
========================================= */

.cta {
    padding: 75px 0;
    color: white;
    background:
        linear-gradient(rgba(35,27,21,.91), rgba(35,27,21,.91)),
        url("../images/bois-texture.jpg")
        center / cover;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
}

.cta h2 {
    color: white;
    font-size: clamp(40px, 5vw, 58px);
    margin-bottom: 5px;
}

.cta .eyebrow {
    color: #c79a5d;
}

.cta-contact {
    display: grid;
    gap: 8px;
    min-width: 290px;
}

.cta-contact a {
    font-size: 17px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: #1f1b18;
    color: #ddd5cc;
    padding: 35px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 30px;
}

.footer-title {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

footer p,
footer li,
footer a {
    font-size: 13px;
    color: #bdb5ad;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer li {
    margin-bottom: 7px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .header-center {
        order: 3;
        flex-basis: 100%;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 20px 0;
    }

    .header-contact {
        margin-left: auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 800px) {

    .container {
        width: min(var(--container), calc(100% - 30px));
    }

    .section {
        padding: 65px 0;
    }

    .header-inner {
        min-height: 80px;
        flex-wrap: nowrap;
    }

    .logo-name {
        font-size: 25px;
    }

    .logo-mark {
        width: 40px;
        height: 52px;
    }

    .header-contact {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-center {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        z-index: 100;
    }

    .header-center.open {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
    }

    .main-nav a {
        padding: 14px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 400px;
    }

    .about-content {
        padding: 45px 30px;
    }

    .advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .advantage {
        border-right: 0;
    }

    .local-seo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}


@media (max-width: 560px) {

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}


/* =========================================
   FORMULAIRE DE CONTACT
========================================= */

.contact-form-wrapper {
    width: 100%;
}

.contact-form-header {
    margin-bottom: 35px;
}

.contact-form-header .eyebrow {
    margin-bottom: 10px;
}

.contact-form-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 12px;
}

.contact-form-header p {
    color: var(--muted);
    font-size: 16px;
    max-width: 520px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2377716a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--wood);
    box-shadow: 0 0 0 3px rgba(167,123,66,.15);
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
    border-color: var(--wood);
    background: var(--wood);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 13px;
    line-height: 1;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

@media (max-width: 800px) {

    .form-row {
        grid-template-columns: 1fr;
    }
}