
/* =========================================
   L'ATELIER DE LA MAISON SUR ROUES
   FEUILLE DE STYLE PRINCIPALE
   ========================================= */

:root {
    --anthracite: #343638;
    --anthracite-dark: #252729;
    --blanc: #ffffff;
    --blanc-casse: #f5f4f0;
    --gris: #777777;
    --bordure: #c7c5bf;
    --largeur: 1150px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--blanc-casse);
    color: var(--anthracite);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #8b7657;
    outline-offset: 4px;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
    min-height: 100px;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--anthracite);
    color: white;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo span {
    font-family: Georgia, serif;
    font-size: 32px;
    font-style: italic;
}

.logo small {
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 5px;
}

.navigation {
    display: flex;
    gap: 35px;
}

.navigation a {
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
    border-bottom-color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 12px;
    cursor: pointer;
}

/* =========================================
   ELEMENTS GENERAUX
   ========================================= */

.section {
    max-width: var(--largeur);
    margin: auto;
    padding: 80px 25px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
    color: var(--gris);
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
}

h1,
h2 {
    font-style: italic;
}

.section-heading h2 {
    font-size: 36px;
    margin-top: 5px;
}

.center {
    text-align: center;
    margin-top: 40px;
}

/* =========================================
   BOUTONS
   ========================================= */

.button,
.share-buttons button {
    position: relative;
    display: inline-block;
    padding: 14px 28px;
    background: var(--anthracite);
    color: white;
    border: 1px solid white;
    outline: 1px solid rgba(255,255,255,0.45);
    outline-offset: -5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s;
}

.button::before,
.share-buttons button::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255,255,255,0.7);
    pointer-events: none;
}

.button::after,
.share-buttons button::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(white,white) left 4px top 4px / 12px 1px no-repeat,
        linear-gradient(white,white) left 4px top 4px / 1px 12px no-repeat,
        linear-gradient(white,white) right 4px top 4px / 12px 1px no-repeat,
        linear-gradient(white,white) right 4px top 4px / 1px 12px no-repeat,
        linear-gradient(white,white) left 4px bottom 4px / 12px 1px no-repeat,
        linear-gradient(white,white) left 4px bottom 4px / 1px 12px no-repeat,
        linear-gradient(white,white) right 4px bottom 4px / 12px 1px no-repeat,
        linear-gradient(white,white) right 4px bottom 4px / 1px 12px no-repeat;
}

.button:hover,
.share-buttons button:hover {
    background: white;
    color: var(--anthracite);
}

.button:hover::before,
.share-buttons button:hover::before {
    border-color: var(--anthracite);
}

.button-light {
    background: white;
    color: var(--anthracite);
    border-color: var(--anthracite);
}

.button-light::before {
    border-color: rgba(52,54,56,0.7);
}

.button-light::after {
    background:
        linear-gradient(#343638,#343638) left 4px top 4px / 12px 1px no-repeat,
        linear-gradient(#343638,#343638) left 4px top 4px / 1px 12px no-repeat,
        linear-gradient(#343638,#343638) right 4px top 4px / 12px 1px no-repeat,
        linear-gradient(#343638,#343638) right 4px top 4px / 1px 12px no-repeat,
        linear-gradient(#343638,#343638) left 4px bottom 4px / 12px 1px no-repeat,
        linear-gradient(#343638,#343638) left 4px bottom 4px / 1px 12px no-repeat,
        linear-gradient(#343638,#343638) right 4px bottom 4px / 12px 1px no-repeat,
        linear-gradient(#343638,#343638) right 4px bottom 4px / 1px 12px no-repeat;
}

/* =========================================
   ACCUEIL
   ========================================= */

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 25px;
    color: white;
    text-align: center;
    background-color: var(--anthracite);
    background-image:
        linear-gradient(
            rgba(30,32,33,0.55),
            rgba(30,32,33,0.75)
        ),
        url("../images/accueil.jpg");
    background-position: center;
    background-size: cover;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 65px);
    margin: 15px 0;
}

.hero p {
    font-size: 17px;
}

.hero .eyebrow,
.page-banner .eyebrow {
    color: #dededb;
}

.hero .button {
    margin-top: 20px;
}

.intro-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 17px;
}

/* =========================================
   REALISATIONS A LA UNE
   ========================================= */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.featured-item {
    text-decoration: none;
    background: white;
    padding: 10px;
    border: 1px solid var(--bordure);
}

.featured-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #e8e7e2;
}

.featured-item span {
    display: block;
    padding: 15px;
    text-align: center;
}

/* =========================================
   BANNIERE DES PAGES
   ========================================= */

.page-banner {
    background: var(--anthracite);
    color: white;
    text-align: center;
    padding: 65px 25px;
}

.page-banner h1 {
    font-size: clamp(35px, 5vw, 50px);
    margin: 5px 0;
}

.page-banner p {
    max-width: 650px;
    margin: 10px auto;
}

/* =========================================
   GALERIE DES REALISATIONS
   ========================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.work-card {
    background: white;
    border: 1px solid var(--bordure);
    padding: 12px;
}

.work-image {
    display: block;
    background: #e8e7e2;
}

.work-image img {
    width: 100%;
    height: 320px;
    object-fit: contain;
}

.work-content {
    padding: 30px;
    position: relative;
    background: var(--anthracite);
    color: white;
    border: 1px solid white;
    outline: 1px solid rgba(255,255,255,0.35);
    outline-offset: -5px;
}

.work-content h2 {
    font-size: 26px;
    color: white;
}

.work-content p {
    color: #eeeeeb;
}

.work-content .text-link {
    color: white;
    border-bottom: 1px solid white;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

/* =========================================
   PRESENTATION DU PROJET
   ========================================= */

.project-intro {
    max-width: 950px;
    text-align: center;
}

.project-intro h2 {
    font-size: 32px;
}

/* =========================================
   NOUVELLE GALERIE PHOTOGRAPHIQUE
   ========================================= */

.photo-gallery {
    max-width: 1000px;
}

.photo-card {
    margin-bottom: 65px;
    background: white;
    border: 1px solid var(--bordure);
    padding: 12px;
    scroll-margin-top: 30px;
    transition: outline 0.3s ease;
}

.photo-card-image {
    background: #e8e7e2;
}

.photo-card-image img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    margin: auto;
}

.photo-card-content {
    padding: 30px;
    position: relative;
    background: var(--anthracite);
    color: white;
    border: 1px solid white;
    outline: 1px solid rgba(255,255,255,0.35);
    outline-offset: -5px;
}

.photo-card-content h2 {
    color: white;
    font-size: 30px;
}

.photo-card-content p {
    color: #eeeeeb;
}

/* Mise en évidence de la photo ouverte par un lien */

.photo-card.photo-selected {
    outline: 4px solid #8b7657;
    outline-offset: 5px;
}

/* =========================================
   DETAIL REALISATION
   ========================================= */

.detail-work {
    max-width: 950px;
}

.detail-image {
    padding: 12px;
    border: 1px solid var(--bordure);
    background: white;
}

.detail-image img {
    width: 100%;
    object-fit: contain;
}

.detail-description {
    margin-top: 35px;
    padding: 30px;
    background: var(--anthracite);
    color: white;
}

.detail-description h2 {
    font-size: 30px;
    color: white;
}

/* =========================================
   PARTAGE
   ========================================= */

.share-section {
    margin-top: 35px;
    padding: 25px;
    background: var(--anthracite);
    color: white;
    border: 1px solid rgba(255,255,255,0.85);
    position: relative;
}

.share-section h3 {
    color: white;
    font-size: 22px;
    margin-top: 0;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-buttons button {
    font-size: 13px;
    padding: 11px 17px;
}

.share-message {
    min-height: 25px;
    font-weight: bold;
    color: white;
    overflow-wrap: anywhere;
}

.share-note {
    font-size: 13px;
    color: #eeeeeb;
}

/* =========================================
   CONTACT
   ========================================= */

.contact-section {
    max-width: var(--largeur);
    margin: auto;
    padding: 80px 25px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
}

.contact-info,
.contact-form-container {
    position: relative;
    padding: 30px;
    color: white;
    background: var(--anthracite);
    border: 1px solid rgba(255,255,255,0.85);
    outline: 1px solid rgba(255,255,255,0.35);
    outline-offset: -5px;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 30px;
    color: white;
}

.contact-info p {
    color: #eeeeeb;
}

.contact-item {
    margin-top: 30px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
}

.contact-info a {
    color: white;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-socials a {
    text-decoration: none;
    border-bottom: 1px solid white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bordure);
    background: white;
    color: var(--anthracite);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 12px;
    color: #eeeeeb;
}

/* =========================================
   CITATION
   ========================================= */

.quote-section {
    padding: 75px 25px;
    background: var(--anthracite);
    color: white;
    text-align: center;
}

.quote-inner h2 {
    font-size: 40px;
}

.quote-inner p {
    margin-bottom: 30px;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 35px 20px;
    background: var(--anthracite-dark);
    color: white;
    text-align: center;
    font-size: 13px;
}

.footer-links,
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

    .site-header {
        flex-wrap: wrap;
        min-height: 75px;
    }

    .logo span {
        font-size: 26px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .navigation.is-open {
        display: flex;
    }

    .navigation a {
        padding: 12px 0;
        border-bottom: 1px solid #555;
    }

    .hero {
        min-height: 470px;
    }

    .section {
        padding: 55px 20px;
    }

    .featured-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .work-image img {
        height: auto;
        max-height: 400px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .photo-card-content,
    .work-content,
    .contact-info,
    .contact-form-container {
        padding: 24px;
    }

    .share-section {
        padding: 20px;
    }

    .share-buttons {
        justify-content: center;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

}
