/* ============================================================
   EGON — Pol Poriel, Forgeron d'art
   Feuille de styles principale
   Approche mobile-first, palette sombre, typographie Cinzel/Raleway
   ============================================================ */


/* ----------------------------------------
   VARIABLES GLOBALES (Design System EGON)
   ---------------------------------------- */
:root {
    /* Palette sombre */
    --egon-noir: #0D0D0D;
    --egon-anthracite: #1A1A1A;
    --egon-charbon: #2C2C2C;
    --egon-gris: #4A4A4A;
    --egon-gris-clair: #8A8A8A;
    --egon-blanc-casse: #E8E0D4;
    --egon-creme: #F5F0E8;

    /* Palette accent metaux et feu */
    --egon-bronze: #8B6914;
    --egon-laiton: #B8860B;
    --egon-cuivre: #B87333;
    --egon-feu: #CC4400;
    --egon-braise: #FF6B35;
    --egon-rouille: #6B3A2A;

    /* Typographies */
    --font-logo: 'Poiret One', cursive;
    --font-section: 'Marcellus', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;

    /* Espacement */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 8rem;
}


/* ----------------------------------------
   RESET ET BASE
   ---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--egon-blanc-casse);
    background-color: var(--egon-noir);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


/* ----------------------------------------
   TYPOGRAPHIE GLOBALE
   ---------------------------------------- */

/* Titres principaux en Cinzel */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--egon-creme);
    line-height: 1.2;
}

/* H1 : niveau hero uniquement */
h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* H2 : titres de section */
h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* H3 : sous-titres */
h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Paragraphes */
p {
    margin-bottom: var(--space-sm);
}

/* Liens globaux */
a {
    color: var(--egon-laiton);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--egon-braise);
}

/* Images globales */
img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* Listes globales */
ul {
    list-style: none;
}


/* ----------------------------------------
   CONTENEUR DE SECTION (global)
   ---------------------------------------- */
.section-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}


/* ----------------------------------------
   HEADER ET NAVIGATION
   ---------------------------------------- */

/* Barre de navigation fixe */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease;
}

/* Etat apres scroll : fond sombre semi-opaque */
.site-header.nav-scrolled {
    background-color: rgba(13, 13, 13, 0.95);
}

/* Conteneur flex de la navigation */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* Logo texte Art Déco */
.nav-logo {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--egon-creme);
    text-decoration: none;
    letter-spacing: 0.25em;
}

.nav-logo:hover {
    color: var(--egon-laiton);
}

/* Bouton hamburger (visible uniquement mobile) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

/* Les 3 barres du hamburger */
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--egon-creme);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation hamburger ouvert : croix */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Liens de navigation : caches par defaut en mobile */
.nav-links {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.98);
    padding: var(--space-md) 0;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

/* Navigation ouverte (mobile) — .nav-open est sur #main-header */
.nav-open .nav-links {
    display: flex;
}

/* Style des liens de navigation */
.nav-links a {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--egon-blanc-casse);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-xs) var(--space-sm);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--egon-laiton);
}

/* Selecteur de langue */
.lang-switch {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--egon-laiton);
    text-decoration: none;
    border: 1px solid var(--egon-laiton);
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switch:hover {
    background-color: var(--egon-laiton);
    color: var(--egon-noir);
}


/* ----------------------------------------
   SECTION HERO (Carrousel plein ecran)
   ---------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur des slides */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Slide individuelle */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* Slide active */
.hero-slide--active {
    opacity: 1;
}

/* Overlay gradient sombre */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Contenu texte du hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-md);
}

/* Titre principal hero */
.hero-title {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 400;
    color: var(--egon-creme);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
}

/* Sous-titre hero */
.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--egon-laiton);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.05em;
}

/* Phrase d'accroche hero */
.hero-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--egon-blanc-casse);
    margin-bottom: var(--space-md);
}

/* Bouton call-to-action hero */
.hero-cta {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--egon-laiton);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--egon-laiton);
    padding: 0.75rem 2rem;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--egon-laiton);
    color: var(--egon-noir);
}

/* Indicateurs de slide (points en barre) */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Indicateur individuel */
.hero-indicator {
    width: 30px;
    height: 3px;
    background-color: var(--egon-gris);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Indicateur actif */
.hero-indicator--active {
    background-color: var(--egon-laiton);
}


/* ----------------------------------------
   SECTIONS GALERIE (Bijoux, Couteaux, etc.)
   ---------------------------------------- */

/* Section galerie : padding mobile */
.galerie-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

/* Alternance fond impair/pair */
.galerie-section:nth-of-type(odd) {
    background-color: var(--egon-noir);
}

.galerie-section:nth-of-type(even) {
    background-color: var(--egon-anthracite);
}

/* Processus — fond explicite (hors boucle galerie, independant du nth-of-type) */
#processus.galerie-section {
    background-color: var(--egon-anthracite);
}

#processus .section-intro {
    font-style: italic;
    font-size: 0.95rem;
}

/* Vendues — fond noir (alterner avec processus anthracite) */
#vendues.galerie-section {
    background-color: var(--egon-noir);
}

/* Masquer "Voir cette oeuvre" dans la lightbox pour les items sans page detail (href="#") */
.lightbox-link[href="#"] {
    display: none;
}

/* Titre de section */
.section-title {
    font-family: var(--font-section);
    text-align: center;
    color: var(--egon-creme);
    margin-bottom: var(--space-md);
}

/* Introduction de section */
.section-intro {
    font-family: 'Raleway', sans-serif;
    text-align: center;
    color: var(--egon-gris-clair);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

/* Grille de galerie : 1 colonne mobile */
.galerie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}


/* ----------------------------------------
   CARTES OEUVRE
   ---------------------------------------- */

/* Carte individuelle */
.oeuvre-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

/* Lien englobant la carte */
.oeuvre-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Conteneur image de la carte */
.oeuvre-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Image de la carte */
.oeuvre-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(0.9) contrast(1.05);
    transition: filter 0.4s ease;
}

/* Image hover : luminosite restauree */
.oeuvre-card:hover .oeuvre-card-image img {
    filter: brightness(1) contrast(1);
}

/* Overlay texte au survol */
.oeuvre-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Overlay visible au survol */
.oeuvre-card:hover .oeuvre-card-overlay {
    opacity: 1;
}

/* Titre dans overlay de la carte */
.oeuvre-card-titre {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--egon-creme);
    text-align: center;
    padding: 0 var(--space-sm);
}

/* Prix dans overlay de la carte */
.oeuvre-card-prix {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--egon-laiton);
}


/* ----------------------------------------
   SEPARATEUR ENTRE SECTIONS
   ---------------------------------------- */
.section-separator {
    border: none;
    height: 1px;
    background-color: var(--egon-rouille);
    opacity: 0.3;
    width: 60%;
    margin: var(--space-xl) auto;
}


/* ----------------------------------------
   SECTION ARTISAN (Presentation)
   ---------------------------------------- */
.artisan-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    background-color: var(--egon-noir);
}

/* Conteneur flex de la section artisan */
.artisan-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

/* Image du forgeron */
.artisan-image {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.artisan-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}

/* Texte de presentation */
.artisan-text {
    flex: 1;
}

.artisan-text .section-title {
    text-align: left;
}

.artisan-text p {
    color: var(--egon-blanc-casse);
    line-height: 1.7;
}


/* ----------------------------------------
   SECTION CONTACT
   ---------------------------------------- */
.contact-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    background-color: var(--egon-anthracite);
}

/* Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Groupe de champ formulaire */
.form-group {
    margin-bottom: var(--space-sm);
}

/* Labels des champs */
.form-group label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--egon-blanc-casse);
    margin-bottom: 0.25rem;
}

/* Asterisque champ obligatoire */
.required {
    color: var(--egon-braise);
}

/* Champs texte, email, telephone, select, textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: var(--egon-blanc-casse);
    background-color: var(--egon-charbon);
    border: 1px solid var(--egon-rouille);
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Focus des champs : bordure doree */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--egon-laiton);
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--egon-gris);
}

/* Textarea : hauteur minimale */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot anti-spam : invisible */
.form-honeypot {
    display: none;
}

/* Message de succes apres envoi */
.form-message--success {
    border-left: 3px solid var(--egon-laiton);
    padding: var(--space-sm);
    background-color: var(--egon-charbon);
    color: var(--egon-blanc-casse);
    margin-bottom: var(--space-md);
}

/* Overlay confirmation reservation (plein ecran, position fixed) */
.reservation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayFadeIn 0.4s ease-out;
}

.reservation-overlay__box {
    max-width: 500px;
    margin: 0 var(--space-md);
    padding: var(--space-lg, 2rem) var(--space-xl, 3rem);
    background-color: var(--egon-charbon);
    border: 2px solid var(--egon-laiton);
    border-radius: 8px;
    text-align: center;
}

.reservation-overlay__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md, 1.5rem);
    border: 3px solid var(--egon-laiton);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--egon-laiton);
}

.reservation-overlay__text {
    margin: 0;
    color: var(--egon-blanc-casse);
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.8;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Message d'erreur apres envoi */
.form-message--error {
    border-left: 3px solid var(--egon-braise);
    padding: var(--space-sm);
    background-color: var(--egon-charbon);
    color: var(--egon-blanc-casse);
    margin-bottom: var(--space-md);
}

/* Erreur de validation champ (ajoutee par JS) */
.form-group.form-error label {
    color: var(--egon-braise);
}

.form-group.form-error input,
.form-group.form-error select,
.form-group.form-error textarea {
    border-color: var(--egon-braise);
}


/* ----------------------------------------
   BOUTON PRINCIPAL (.btn-reserve)
   ---------------------------------------- */
.btn-reserve {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--egon-laiton);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: transparent;
    border: 1px solid var(--egon-laiton);
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 0;
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.btn-reserve:hover {
    background-color: var(--egon-laiton);
    color: var(--egon-noir);
}

/* Bouton submit du formulaire */
.btn-submit {
    margin-top: var(--space-xs);
}


/* ----------------------------------------
   PIED DE PAGE (Footer)
   ---------------------------------------- */
.site-footer {
    background-color: var(--egon-anthracite);
    padding: var(--space-lg) var(--space-md);
}

/* Contenu centre du footer */
.footer-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Bloc marque (logo + baseline) */
.footer-brand {
    margin-bottom: var(--space-md);
}

/* Logo texte du footer */
.footer-logo {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--egon-laiton);
    letter-spacing: 0.25em;
    display: block;
    margin-bottom: var(--space-xs);
}

/* Baseline du footer */
.footer-baseline {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: var(--egon-gris-clair);
    margin-bottom: 0;
}

/* Zone mentions legales */
.footer-legal {
    color: var(--egon-gris);
    font-size: 0.875rem;
}

.footer-legal p {
    margin-bottom: var(--space-xs);
}

/* Mention artisanale */
.footer-mention {
    font-style: italic;
    color: var(--egon-gris);
}


/* ----------------------------------------
   ANIMATION DE SCROLL (preparation)
   Le JS ajoute .visible aux sections et cartes
   ---------------------------------------- */

/* Etat initial des sections : invisible et decale vers le bas */
.galerie-section,
.artisan-section,
.contact-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Etat visible des sections (revele par IntersectionObserver) */
.galerie-section.visible,
.artisan-section.visible,
.contact-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Etat initial des cartes oeuvre : invisible */
.oeuvre-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Etat visible des cartes (avec stagger via transition-delay JS) */
.oeuvre-card.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----------------------------------------
   ACCESSIBILITE : mouvement reduit
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    /* Desactivation de toutes les transitions et animations */
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-slide {
        transition: none;
    }

    .galerie-section,
    .artisan-section,
    .contact-section,
    .oeuvre-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ============================================================
   MEDIA QUERIES — RESPONSIVE
   ============================================================ */


/* ----------------------------------------
   TABLETTE (min-width: 768px)
   ---------------------------------------- */
@media (min-width: 768px) {

    /* Grille galerie : 2 colonnes tablette */
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Hero : hauteur augmentee */
    .hero {
        height: 85vh;
    }

    /* Titre hero tablette */
    .hero-title {
        font-size: 2.8rem;
    }

    /* Sous-titre hero tablette */
    .hero-subtitle {
        font-size: 1.3rem;
    }

    /* Artisan : passage en ligne */
    .artisan-container {
        flex-direction: row;
        gap: var(--space-lg);
        align-items: center;
    }

    /* Image artisan : largeur fixe */
    .artisan-image {
        flex: 0 0 45%;
        max-width: none;
    }

    /* Texte artisan : occupe l'espace restant */
    .artisan-text {
        flex: 1;
    }

    /* Bouton : largeur auto en tablette */
    .btn-reserve {
        width: auto;
        padding: 0.75rem 2rem;
    }

    /* Fiche oeuvre : layout cote a cote */
    .oeuvre-detail {
        flex-direction: row;
        gap: var(--space-lg);
    }

    .oeuvre-detail-gallery {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* ----------------------------------------
   BUREAU (min-width: 1024px)
   ---------------------------------------- */
@media (min-width: 1024px) {

    /* Typographie desktop : H1 */
    h1 {
        font-size: 3.5rem;
    }

    /* Typographie desktop : H2 */
    h2 {
        font-size: 2.2rem;
    }

    /* Typographie desktop : H3 */
    h3 {
        font-size: 1.4rem;
    }

    /* Header : hauteur desktop */
    .site-header {
        height: 60px;
    }

    /* Hamburger cache en desktop */
    .nav-toggle {
        display: none;
    }

    /* Navigation horizontale en desktop */
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        background-color: transparent;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
    }

    /* En desktop, les liens sont toujours visibles meme avec .nav-open */
    .nav-open .nav-links {
        display: flex;
    }

    /* Hero : plein ecran desktop */
    .hero {
        height: 100vh;
    }

    /* Titre hero desktop */
    .hero-title {
        font-size: 3.5rem;
    }

    /* Sous-titre hero desktop */
    .hero-subtitle {
        font-size: 1.4rem;
    }

    /* Grille galerie : 3 colonnes desktop */
    .galerie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Sections galerie : padding desktop */
    .galerie-section {
        padding-top: var(--space-xxl);
        padding-bottom: var(--space-xxl);
    }

    /* Section artisan : padding desktop */
    .artisan-section {
        padding-top: var(--space-xxl);
        padding-bottom: var(--space-xxl);
    }

    /* Section contact : padding desktop */
    .contact-section {
        padding-top: var(--space-xxl);
        padding-bottom: var(--space-xxl);
    }

    /* Fiche oeuvre : typographie desktop */
    .oeuvre-detail-info h1 {
        font-size: 2.2rem;
    }

    .oeuvre-detail-prix {
        font-size: 1.6rem;
    }
}


/* ----------------------------------------
   FICHE OEUVRE — Page detail
   ---------------------------------------- */

/* Section principale : offset header fixe */
.oeuvre-detail-section {
    padding-top: calc(60px + var(--space-lg));
    padding-bottom: var(--space-lg);
    background-color: var(--egon-noir);
    min-height: 100vh;
}

/* Lien retour vers la galerie */
.oeuvre-back {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: var(--egon-gris-clair);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: color 0.3s ease;
}

.oeuvre-back:hover {
    color: var(--egon-laiton);
}

/* Layout detail : empile en mobile, cote a cote en desktop */
.oeuvre-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Galerie images */
.oeuvre-detail-gallery {
    width: 100%;
}

/* Image principale */
.oeuvre-detail-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--egon-anthracite);
}

.oeuvre-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Miniatures */
.oeuvre-detail-thumbs {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.oeuvre-detail-thumb {
    width: 80px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.oeuvre-detail-thumb--active,
.oeuvre-detail-thumb:hover {
    border-color: var(--egon-laiton);
}

.oeuvre-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Panneau informations */
.oeuvre-detail-info {
    flex: 1;
}

.oeuvre-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

/* Badge piece unique */
.badge-unique {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--egon-laiton);
    border: 1px solid var(--egon-laiton);
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

/* Prix */
.oeuvre-detail-prix {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--egon-laiton);
    margin-bottom: var(--space-md);
}

/* Description */
.oeuvre-detail-description {
    color: var(--egon-blanc-casse);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

/* Metadonnees (dl/dt/dd) */
.oeuvre-detail-meta {
    margin-bottom: var(--space-md);
}

.oeuvre-detail-meta dt {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--egon-gris-clair);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-sm);
}

.oeuvre-detail-meta dt:first-child {
    margin-top: 0;
}

.oeuvre-detail-meta dd {
    color: var(--egon-blanc-casse);
    margin-left: 0;
    margin-bottom: 0;
}

/* Messages de statut */
.oeuvre-statut-message {
    padding: var(--space-sm);
    background-color: var(--egon-charbon);
    border-left: 3px solid var(--egon-gris);
    color: var(--egon-gris-clair);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.oeuvre-statut-message--vendu {
    border-left-color: var(--egon-rouille);
}

.oeuvre-statut-message--reserve {
    border-left-color: var(--egon-cuivre);
}

.oeuvre-statut-message--en-cours {
    border-left-color: var(--egon-braise);
}

/* Bouton reserve desactive */
.btn-reserve--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}


/* ----------------------------------------
   FORMULAIRE RESERVATION (sur page detail)
   ---------------------------------------- */

.reservation-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--egon-rouille);
}

.reservation-form {
    max-width: 600px;
}

/* Reutilise .form-group, .form-honeypot, .form-message, .btn-reserve existants */

/* Champs du formulaire reservation (memes styles que contact-form) */
.reservation-form input[type="text"],
.reservation-form input[type="email"],
.reservation-form input[type="tel"],
.reservation-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: var(--egon-blanc-casse);
    background-color: var(--egon-anthracite);
    border: 1px solid var(--egon-gris);
    transition: border-color 0.3s ease;
}

.reservation-form input:focus,
.reservation-form textarea:focus {
    border-color: var(--egon-laiton);
    outline: none;
}

.reservation-form input::placeholder,
.reservation-form textarea::placeholder {
    color: var(--egon-gris);
}

.reservation-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Case RGPD */
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.form-group--checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    accent-color: var(--egon-laiton);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-group--checkbox label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--egon-gris-clair);
    font-weight: 400;
    margin-top: 0;
}


/* ----------------------------------------
   PAGES RESULTAT PAIEMENT
   ---------------------------------------- */

.payment-result-section {
    padding-top: calc(60px + var(--space-xl));
    padding-bottom: var(--space-xl);
    background-color: var(--egon-noir);
    min-height: 100vh;
    text-align: center;
}

.payment-result-section h1 {
    margin-bottom: var(--space-md);
}

.payment-result-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--egon-gris-clair);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}


/* ----------------------------------------
   RECAP PAIEMENT
   ---------------------------------------- */

.payment-recap {
    max-width: 500px;
    margin: var(--space-lg) auto;
    text-align: left;
    background-color: var(--egon-anthracite);
    border: 1px solid var(--egon-charbon);
    border-radius: 6px;
    padding: var(--space-md) var(--space-lg);
}

.payment-recap dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xs) var(--space-md);
}

.payment-recap dt {
    color: var(--egon-gris-clair);
    font-family: var(--font-body);
    font-weight: 500;
}

.payment-recap dd {
    color: var(--egon-blanc-casse);
    font-family: var(--font-body);
    margin: 0;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.btn-reserve--secondary {
    background-color: transparent;
    border: 1px solid var(--egon-gris);
    color: var(--egon-gris-clair);
}

.btn-reserve--secondary:hover {
    border-color: var(--egon-laiton);
    color: var(--egon-blanc-casse);
}


/* ----------------------------------------
   PAGES CGV / MENTIONS LEGALES
   ---------------------------------------- */

.cgv-section {
    padding-top: calc(60px + var(--space-xl));
    padding-bottom: var(--space-xl);
    background-color: var(--egon-noir);
    min-height: 100vh;
}

.cgv-content {
    max-width: 800px;
    margin: 0 auto;
}

.cgv-content h1 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.cgv-date {
    text-align: center;
    color: var(--egon-gris-clair);
    font-size: 0.85rem;
    margin-bottom: var(--space-xl);
}

.cgv-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--egon-laiton);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--egon-charbon);
}

.cgv-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--egon-blanc-casse);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.cgv-content p {
    color: var(--egon-gris-clair);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.cgv-content ul {
    color: var(--egon-gris-clair);
    line-height: 1.7;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.cgv-content li {
    margin-bottom: var(--space-xs);
}

.cgv-content a {
    color: var(--egon-laiton);
    text-decoration: underline;
    text-decoration-color: var(--egon-bronze);
}

.cgv-content a:hover {
    color: var(--egon-cuivre);
}

.cgv-content strong {
    color: var(--egon-blanc-casse);
}

.cgv-retour {
    text-align: center;
    margin-top: var(--space-xl);
}


/* ============================================================
   LIGHTBOX — GALERIE IMMERSIVE
   Overlay plein écran, navigation intra-catégorie.
   Design : fond noir, accents bronze/laiton, typographie EGON.
   ============================================================ */

/* Overlay principal — couvre tout le viewport */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Verrou scroll body */
.lightbox-body-lock {
    overflow: hidden !important;
}

/* Fond noir immersif */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: default;
}

/* ── Bouton fermer ── */
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10003;
    background: none;
    border: none;
    color: var(--egon-gris-clair);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    color: var(--egon-creme);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* ── Flèches navigation ── */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
    background: none;
    border: none;
    color: var(--egon-gris-clair);
    cursor: pointer;
    padding: 16px 12px;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    color: var(--egon-laiton);
    outline: none;
}

.lightbox-prev {
    left: 8px;
}

.lightbox-next {
    right: 8px;
}

/* ── Zone image ── */
.lightbox-stage {
    position: relative;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100vh - 80px);
    padding: 60px 60px 0;
    cursor: default;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.15s ease;
}

.lightbox-image--fading {
    opacity: 0;
}

/* ── Barre inférieure (infos + lien) ── */
.lightbox-bar {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
}

.lightbox-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--egon-creme);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-price {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--egon-laiton);
    white-space: nowrap;
    flex-shrink: 0;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.lightbox-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--egon-laiton);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.lightbox-link:hover,
.lightbox-link:focus-visible {
    border-bottom-color: var(--egon-laiton);
    color: var(--egon-cuivre);
    outline: none;
}

.lightbox-counter {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--egon-gris-clair);
    white-space: nowrap;
}

/* ── Mobile : lightbox responsive ── */
@media (max-width: 767px) {

    .lightbox-stage {
        padding: 50px 8px 0;
        height: calc(100vh - 100px);
    }

    .lightbox-nav {
        padding: 12px 6px;
    }

    .lightbox-nav svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 16px;
    }

    .lightbox-info {
        flex-direction: column;
        gap: 2px;
    }

    .lightbox-title {
        font-size: 0.85rem;
    }

    .lightbox-price {
        font-size: 0.8rem;
    }

    .lightbox-actions {
        width: 100%;
        justify-content: space-between;
    }
}


/* ----------------------------------------
   GRAND ECRAN (min-width: 1440px)
   ---------------------------------------- */
@media (min-width: 1440px) {

    /* Grille galerie : 4 colonnes grand ecran */
    .galerie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
