/* === Reset & Base === */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,300;0,400;0,700;1,400&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.6;
    color: #222;
    background: #F9F6F3;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #a2671e; text-decoration: none; }
a:hover { text-decoration: underline; }

hr{
    border: 1px dashed #f0dfca;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Header === */
.site-header {
    background: #201405;
    color: #F9F6F3;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
body:not(.home) { padding-top: 60px; }

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #F9F6F3;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.2rem;
}
.logo:hover { text-decoration: none; }
.logo-img { height: 40px; width: auto; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #F9F6F3;
    font-size: 1.5rem;
    cursor: pointer;
}

.main-nav{
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-list li {
    display: flex;
    align-items: center;
    padding: 20px;
}

.nav-list a {
    color: #F9F6F3;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-list a:hover, .nav-list a.active {
    color: #a2671e;
    text-decoration: none;
}

/* === Main === */
.site-main {
    min-height: 60vh;
}
body:not(.home) .site-main {
    padding: 2rem 0;
}

/* === Pages === */
.page h1, .catalogue h1, .category h1, .product h1, .contact h1 {
    font-size: 2rem;
    font-family: 'Lora', serif;
    margin-bottom: 2rem;
    color: #201405;
}

.subtitle {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #6f440f;
    margin-bottom: 1.5rem;
}

.page-hero, .category-hero, .product-hero {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
}

.content { margin: 1.5rem 0; }
main h2, .content h2 { font-size: 1.3rem; font-family: 'Lora', serif; text-transform: uppercase; color: #6f440f; margin: 1.5rem 0 0.5rem; }
main h3, .content h3 { font-size: 1.25rem; margin-bottom: 1rem; }
main p, .content p { margin-bottom: 1rem; }
.content ul, .content ol { margin: 0.5rem 0 1rem 1.5rem; }

/* === Introduction (Home) === */
.introduction {
    background: #F9F6F3;
    padding: 2rem 0;
}
.introduction .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.introduction h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    color: #6f440f;
    text-transform: uppercase;
    text-align: center;
    margin: 1rem 0 2rem 0;
}
.introduction .intro-resume {
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.4;
    color: #6f440f;
    margin-bottom: 1.5rem;
}
.introduction .grid-3-columns .col p {
    font-family: 'Merriweather', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    margin-bottom: 1em;
}
.introduction strong {
    font-weight: 700;
    color: #201405;
}
.introduction a {
    color: #a2671e;
    text-decoration: none;
    border-bottom: 1px dotted #a2671e;
}
.introduction a:hover {
    color: #6f440f;
}
.introduction .intro-footer {
    margin-top: 1rem;
    font-family: 'Merriweather', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
}

/* === Grid columns === */
.grid-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) {
    .grid-3-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .grid-3-columns {
        grid-template-columns: 1fr;
    }
}
.grid-2-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) {
    .grid-2-columns {
        grid-template-columns: 1fr;
    }
}

/* === Breadcrumb === */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    background: #fff;
    padding: .25rem 1rem;
    border-radius: 5px;
}
.breadcrumb a { color: #a2671e; }

/* === Utilitaires === */
.text-center { text-align: center; }

/* === Sections de contenu === */
.content-section {
    margin-bottom: 2.5rem;
}
.section-columns {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 2rem;
    align-items: start;
}
.section-columns.section-align-center {
    align-items: center;
}
.section-columns.section-align-bottom {
    align-items: end;
}
.section-columns.section-reverse {
    grid-template-columns: 1fr 30%;
}
.section-columns .section-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}
.section-columns .section-content {
    font-family: 'Merriweather', serif;
    line-height: 1.75;
    color: #333;
}

.section-full-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.section-full-image .section-content {
    margin-top: 0.9rem;
}

.section-content h2{
    margin-top: 0;
}

@media (max-width: 768px) {
    .section-columns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .section-columns .section-image {
        order: -1;
    }

    .product-variants {
        grid-template-columns: 1fr;
    }

    main h2{
        font-size: 1.2rem;
    }
}

/* === Cards grid === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: #fbf2ee;
    border: none;
    border-radius: 16px;
    box-shadow: 0 3px 16px rgba(0,0,0,.08);
    overflow: hidden;
    transition: box-shadow 0.24s, transform 0.18s;
    color: #222;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-3px) scale(1.01);
    text-decoration: none;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.card h3 {
    padding: 1rem 1rem 0.25rem;
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #201405;
    margin-bottom: 0;
}
.card p {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
    margin-bottom: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}
.card .price {
    padding: 0 1rem 1rem;
    font-weight: 700;
    color: #fff;
    background: #201405;
    padding: 0.4em 0.8em;
    border-radius: 8px;
    display: inline-block;
    margin: 0 1rem 1rem;
    align-self: flex-start;
    font-size: 0.8rem;
}

/* === Product === */
.product-excerpt {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0 1rem;
}
.product-gallery img {
    border-radius: 8px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;

}
.product-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.product-gallery .gallery-image {
    position: relative;
}

.product-gallery .gallery-image::after{
    content: '⤢';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,.45);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity .2s;
    pointer-events: none;
}

.product-gallery .gallery-image:hover::after {
    opacity: 1;
}

.product .price{
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #201405;
    color: #fff !important;
    border-radius: 4px;
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
}

.product-specs { 
    margin: 2rem 0;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.product-specs h2{
    font-size: 1rem;
    margin-top: 0;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.product-specs th, .product-specs td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.product-specs th {
    width: 40%;
    color: #6f440f;
    font-weight: 600;
}

/* Déclinaisons produit */
.product-variants {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
}
.variant-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ddd4;
}
.variant-card .variant-image {
    aspect-ratio: 5 / 4;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.variant-card .variant-image::after {
    content: '⤢';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,.45);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity .2s;
    pointer-events: none;
}
.variant-card .variant-image:hover::after {
    opacity: 1;
}
.variant-card .variant-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.variant-card .variant-info {
    padding: 1rem;
}
.variant-card h3 {
    margin: 0 0 0.4rem;
    font-family: 'Lora', serif;
    color: #6f440f;
    font-size: 1rem;
}
.variant-specs {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}
.variant-specs p {
    margin: 0.15rem 0;
}
.variant-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
}
.variant-specs-table th,
.variant-specs-table td {
    padding: 0.4rem 0.8rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.variant-specs-table th {
    width: 40%;
    color: #6f440f;
    font-weight: 600;
}
.variant-card .price {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.88);
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    object-fit: contain;
    user-select: none;
}
.lightbox-close {
    position: absolute; top: 1rem; right: 1.5rem;
    background: none; border: none; color: #fff;
    font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 2rem; padding: .4rem .8rem; cursor: pointer; border-radius: 4px;
    transition: background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.7); font-size: .9rem;
}

/* === Réalisation (portfolio) === */
.realisation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.realisation-gallery .gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.realisation-gallery .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}
.realisation-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.realisation-hero {
    border-radius: 8px;
    max-height: 500px;
    object-fit: cover;
    width: 100%;
    margin: 1rem 0;
}
.realisation-details { margin: 2rem 0; }
.realisation-details table {
    width: 100%;
    border-collapse: collapse;
}
.realisation-details th, .realisation-details td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.realisation-details th {
    width: 40%;
    color: #666;
    font-weight: 600;
}

/* === Slider === */
.slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    max-height: 40vh;
    background-color: #000;
}
.slider input[type=radio] { display: none; }
.slider .slides {
    position: relative;
    height: 40vh;
}
.slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 40vh;
    opacity: 0;
    transition: opacity .6s ease-out;
    pointer-events: none;
}
.slider .slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.slider #slide1:checked ~ .slides .slide:nth-child(1),
.slider #slide2:checked ~ .slides .slide:nth-child(2),
.slider #slide3:checked ~ .slides .slide:nth-child(3) {
    opacity: 1; pointer-events: auto; z-index: 5;
}
.slider #slide1:checked ~ .navigation-manual label[for=slide1],
.slider #slide2:checked ~ .navigation-manual label[for=slide2],
.slider #slide3:checked ~ .navigation-manual label[for=slide3] {
    background-color: #fff;
}
.slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,.4);
    z-index: 10;
}
.slider-content {
    position: absolute;
    inset: 0;
    color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    align-items: center;
    z-index: 20;
}
.slider-content h1 {
    font-size: 2.5rem;
    font-family: 'Lora', serif;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    margin-bottom: .5rem;
}
.slider-logo {
    height: 120px;
    width: auto;
    margin-bottom: .5rem;
}
.slider-content .tagline {
    color: #fff;
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.slider .navigation-manual {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: .8rem;
    z-index: 30;
}
.slider .navigation-manual .manual-btn {
    width: 12px; height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    transition: background-color .3s, border-color .3s;
}
.slider .navigation-manual .manual-btn:hover {
    background-color: #fff;
    border-color: #fff;
}
@media (max-width: 600px) {
    .slider, .slider .slides, .slider .slide { max-height: 30vh; height: 30vh; }
    .slider-content h1 { font-size: 1.5rem; }
    .slider-content .tagline { font-size: 1rem; }
}

/* === Home sections === */

.home h2{
    margin: 1rem 0 2rem 0 !important;
}

.home-highlights.bg-dark {
    background: #201405;
    color: #F9F6F3;
    padding: 3rem 1.5rem;
    margin: 2rem 0 0;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}
.home-highlights.bg-dark h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: #fbf2ee;
    text-align: center;
    margin-bottom: .5rem;
}
p.resume {
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.4;
    color: #6f440f;
    margin-bottom: 1em;
}
.bg-dark p.resume {
    color: #a2671e;
}
p.resume a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}
.home-highlights.bg-dark .card-grid {
    max-width: 1200px;
    margin: 0 auto;
}
.home-highlights.bg-dark .card h3 { color: #201405; }
.home-highlights.bg-dark .card p { color: #545454; }

.home-social {
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}
.home-social h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: #6f440f;
    text-align: center;
    margin-bottom: 2rem;
}
.social-embeds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}
.social-embed-col {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}
@media (max-width: 900px) {
    .social-embeds { grid-template-columns: 1fr; }
}

.contact-info {
    background: #fbf2ee;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-form { max-width: 600px; margin: 1.5rem 0; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #a2671e;
    box-shadow: 0 0 0 2px rgba(162,103,30,0.15);
}

button[type="submit"] {
    background: #201405;
    color: #F9F6F3;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-family: 'Lora', serif;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
button[type="submit"]:hover { background: #3a2410; }

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* === Footer === */
.site-footer {
    background: #201405;
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 2rem 1rem 0;
    margin-top: 0;
}
.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 1rem;
}
.footer-col {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}
.footer-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(1.1) invert(0.02);
}
.footer-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.4rem;
}
.footer-site-name {
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.footer-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-menu nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-menu nav a:hover {
    color: #a2671e;
}
.footer-social {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
.footer-social a {
    color: #fff;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: #a2671e;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 1rem;
    padding: 0.9rem 0 1rem;
    text-align: center;
    font-size: 0.98rem;
    color: #fff;
}
.footer-bottom p { color: #fff; margin: 0; }
.footer-bottom a { color: #fff; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #a2671e; }
@media (max-width: 800px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
        gap: 1rem;
    }
    .footer-col, .footer-social {
        align-items: center;
        justify-content: center;
    }
    .footer-menu nav { align-items: center; }
}

/* === Responsive === */
@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #201405;
        gap: 0;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,.1);
        box-shadow: 0 8px 16px rgba(0,0,0,.1);
    }

    .nav-list.open { display: flex; }
    .nav-list li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .page h1, .catalogue h1, .category h1, .product h1, .contact h1 {
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}


article .subtitle {
    font-size: 1.3rem;
    font-family: "Lora", serif;
    text-transform: uppercase;
    color: #6f440f;
    margin: 1rem 0;
    font-style: normal;
    font-weight: 700;
}

.article-end{
    margin-top: 3rem;
}

.product-reminder{
    background: #201405;
    padding: 20px;
    color: white;
    font-style: italic;
    border-radius: 10px;
}