@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/oswald-latin.woff2') format('woff2');
}

:root {
    --ardoise: #2b4566;
    --ardoise-fonce: #1c2f47;
    --rouge: #b83c34;
    --rouge-fonce: #962e27;
    --creme: #f6f1e7;
    --encre: #1f2833;
    --texte: #3a4350;
    --discret: #6b7480;
    --bord: #e2dccf;
    --titres: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--texte);
    background: #fff;
}

:focus-visible {
    outline: 3px solid var(--rouge);
    outline-offset: 2px;
}

/* En-tête */

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    position: relative;
    z-index: 10;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    display: block;
}

.logo img {
    display: block;
    height: 48px;
    width: auto;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

header nav a {
    text-decoration: none;
    color: var(--encre);
    font-family: var(--titres);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    transition: color 0.2s;
}

header nav a:hover,
header nav a[aria-current="page"] {
    color: var(--rouge);
}

.facebook-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    transition: opacity 0.2s;
}

.facebook-icon:hover {
    opacity: 0.7;
}

.facebook-icon svg {
    width: 100%;
    height: 100%;
    fill: #1877f2;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--encre);
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

/* Bandeau des pages intérieures */

.hero {
    background-color: var(--ardoise-fonce);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px);
    border-bottom: 4px solid var(--rouge);
    color: #fff;
    padding: 3.5rem 2rem 3rem;
}

.hero-content {
    max-width: 1136px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--titres);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.1rem;
    color: #c9d4e0;
    max-width: 720px;
}

.hero p + p {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: #f3d9b1;
    font-family: var(--titres);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Structure */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.breadcrumb {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 2rem;
    color: var(--discret);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--ardoise);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li + li::before {
    content: "›";
    margin-right: 0.5rem;
    color: #a0a7b0;
}

.page-title,
.section-title {
    font-family: var(--titres);
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: var(--encre);
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: 2rem;
}

.section-title::after,
.section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--rouge);
    margin: 0.85rem auto 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section-head h2 {
    font-family: var(--titres);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--encre);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--discret);
    font-size: 1.05rem;
}

/* Boutons */

.btn,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: 2px solid transparent;
    font-family: var(--titres);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary,
.cta-button {
    background: var(--rouge);
    color: #fff;
}

.btn-primary:hover,
.cta-button:hover {
    background: var(--rouge-fonce);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--ardoise-fonce);
}

.btn-dark {
    border-color: var(--ardoise);
    color: var(--ardoise);
}

.btn-dark:hover {
    background: var(--ardoise);
    color: #fff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.actions-center {
    justify-content: center;
    margin-top: 3rem;
}

/* Cartes des kits */

.kits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.kit-card {
    position: relative;
    flex: 0 1 calc((100% - 4 * 1.5rem) / 5);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kits-4 .kit-card {
    flex-basis: calc((100% - 3 * 1.5rem) / 4);
}

.kit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(28, 47, 71, 0.12);
}

.kit-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #3f5fcf;
}

.kit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.kit-card:hover img {
    transform: scale(1.04);
}

.kit-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.1rem;
}

.kits .kit-card h3 {
    font-family: var(--titres);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
}

.kit-card h3 a {
    color: var(--encre);
    text-decoration: none;
}

/* Toute la carte est cliquable via le lien du titre. */
.kit-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.kits .kit-type {
    color: var(--discret);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.25rem 0 0.75rem;
}

.kits .echelles {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1rem;
}

.kits .echelles li {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ardoise);
    background: #e9eef4;
    border-radius: 3px;
    padding: 0.1rem 0.45rem;
    margin: 0;
}

.kit-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--bord);
    padding-top: 0.75rem;
}

.kit-price {
    font-family: var(--titres);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--rouge);
}

.kit-more {
    font-size: 0.85rem;
    color: var(--ardoise);
    font-weight: 600;
}

.kit-card:hover .kit-more {
    text-decoration: underline;
}

/* Blocs de contenu */

.content-box {
    background-color: var(--creme);
    border-left: 4px solid var(--rouge);
    padding: 2rem;
    margin: 0 0 1.5rem;
    border-radius: 4px;
}

.content-box p {
    font-size: 1.05rem;
}

.content-box .btn,
.content-box .cta-button {
    margin-top: 0.5rem;
}

.prose h2 {
    font-family: var(--titres);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--encre);
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin: 2.5rem 0 0.85rem;
}

.prose h3 {
    font-family: var(--titres);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ardoise);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    margin: 1.5rem 0 0.5rem;
}

.prose > h2:first-child,
.content-box > h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1rem;
    max-width: 75ch;
}

.prose ul {
    margin: 0 0 1rem 1.5rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.centre p {
    margin-left: auto;
    margin-right: auto;
}

.prose li::marker {
    color: var(--rouge);
}

.prose a {
    color: var(--ardoise);
}

.prose a:hover {
    color: var(--rouge);
}

.prose .section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin: 3.5rem 0 2rem;
}

.prose .btn,
.prose .cta-button {
    text-decoration: none;
}

.prose .btn-primary,
.prose .cta-button,
.prose .btn-dark:hover {
    color: #fff;
}

/* Fiche produit */

.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(28, 47, 71, 0.12);
    display: block;
}

.product-gallery img + img {
    margin-top: 1.5rem;
}

.product-buy {
    background-color: var(--creme);
    border-top: 4px solid var(--rouge);
    border-radius: 6px;
    padding: 2rem;
    position: sticky;
    top: 1.5rem;
}

.product-buy h2 {
    font-family: var(--titres);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--encre);
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.product-buy .price {
    font-family: var(--titres);
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.1;
    color: var(--rouge);
    margin: 1.25rem 0 0.25rem;
}

.product-buy .price + p {
    color: var(--discret);
    font-size: 0.9rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 0.5rem;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--bord);
    vertical-align: top;
}

.spec-table th {
    color: var(--discret);
    font-weight: 500;
    width: 45%;
}

.spec-table td {
    color: var(--encre);
}

.buy-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--discret);
}

.buy-note a {
    color: var(--ardoise);
}

/* Contact */

.contact-info {
    margin: 2rem 0 0;
    padding: 1.75rem 2rem;
    background-color: var(--ardoise-fonce);
    color: #dfe6ee;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: #fff;
}

.prose .contact-info .btn-primary {
    color: #fff;
}

/* Galerie */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(28, 47, 71, 0.12);
    cursor: pointer;
    background-color: var(--creme);
    aspect-ratio: 4 / 3;
}

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

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.35;
    padding: 1.5rem 0.75rem 0.6rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
    transform: translateY(0);
}

/* Sur écran tactile, pas de survol : la légende reste visible. */
@media (hover: none) {
    .gallery-caption {
        transform: none;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(10, 18, 28, 0.96);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.2s;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    color: #f3d9b1;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    white-space: nowrap;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    transition: color 0.2s;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Divers */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.email-protected {
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* Pied de page */

footer {
    background: var(--encre);
    color: #c9d1db;
    padding: 3rem 2rem 1.5rem;
}

.footer-grid {
    max-width: 1136px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

footer img {
    height: 56px;
    width: auto;
    margin-bottom: 0.75rem;
}

footer h2 {
    font-family: var(--titres);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.4rem;
}

footer a {
    color: #c9d1db;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1136px;
    margin: 2.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: #8d98a5;
}

/* Adaptations */

@media (max-width: 1100px) {
    .kit-card,
    .kits-4 .kit-card {
        flex-basis: calc((100% - 2 * 1.5rem) / 3);
    }
}

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-buy {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .hamburger {
        display: flex;
    }

    header nav {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    header nav ul {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.08);
        padding: 1rem 0;
        gap: 0;
        z-index: 999;
    }

    header nav ul.active {
        left: 0;
    }

    header nav ul li {
        padding: 0.5rem 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header nav a {
        min-height: 48px;
        min-width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
    }

    .facebook-icon {
        margin-left: 0;
        box-sizing: content-box;
    }

    .hero {
        padding: 2.5rem 1rem 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 2rem 1rem 3rem;
    }

    .breadcrumb {
        padding: 0 1rem;
    }

    .content-box {
        padding: 1.5rem 1.25rem;
    }

    .product-buy {
        padding: 1.5rem 1.25rem;
    }

    .kits {
        gap: 1rem;
    }

    .kit-card,
    .kits-4 .kit-card {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .kit-body {
        padding: 0.85rem;
    }

    .kits .kit-card h3 {
        font-size: 1.05rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .lightbox-caption {
        white-space: normal;
        width: 90%;
        text-align: center;
    }

    .lightbox-close {
        right: 16px;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }

    footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
