/* ══════════════════════════════════════════════════
   MY LEGION FORGE – Stylesheet
   ══════════════════════════════════════════════════ */

/* ── Custom Properties ────────────────────────────── */
:root {
    --bg:           #0d0d0d;
    --bg-alt:       #131313;
    --bg-card:      #1c1c1c;
    --border:       #2a2a2a;
    --gold:         #c9a84c;
    --gold-light:   #e5c97a;
    --gold-dark:    #8a6e28;
    --text:         #ede8e0;
    --text-muted:   #7a756e;
    --radius:       6px;
    --radius-lg:    10px;
    --transition:   0.24s ease;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Base ─────────────────────────────────────────── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Raleway', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout container ─────────────────────────────── */
.container {
    width: min(1280px, 100% - 3rem);
    margin-inline: auto;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn--primary {
    background: var(--gold);
    color: #0d0d0d;
}
.btn--primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}
.btn--ghost:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.07);
    transform: translateY(-2px);
}

.btn--download {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
    width: 100%;
    justify-content: center;
}
.btn--download svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.btn--download:hover {
    background: var(--gold);
    color: #0d0d0d;
    border-color: var(--gold);
}

/* ── Section common ───────────────────────────────── */
.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
    margin: 0.65rem auto 0;
}
.section-desc {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 1rem;
    max-width: 520px;
    margin-inline: auto;
}

/* ── HEADER ───────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.07em;
    transition: color var(--transition);
}
.site-header__brand:hover { color: var(--gold-light); }
.site-header__emblem {
    width: 22px;
    height: 22px;
    color: var(--gold);
    flex-shrink: 0;
    opacity: 0.85;
}
.site-header__nav {
    display: flex;
    gap: 2.25rem;
}
.site-header__nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}
.site-header__nav a:hover { color: var(--gold); }
.site-header__nav a:hover::after { width: 100%; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 35%, rgba(201, 168, 76, 0.055) 0%, transparent 65%),
        radial-gradient(ellipse 35% 35% at 15% 85%, rgba(180, 55, 15, 0.04) 0%, transparent 55%),
        linear-gradient(170deg, #0d0d0d 0%, #110f06 55%, #0d0d0d 100%);
}
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 64px, rgba(255,255,255,0.012) 64px, rgba(255,255,255,0.012) 65px),
        repeating-linear-gradient(90deg, transparent, transparent 64px, rgba(255,255,255,0.012) 64px, rgba(255,255,255,0.012) 65px);
}
.hero .container { position: relative; z-index: 1; }
.hero__content {
    max-width: 680px;
    padding: 7rem 0;
}
.hero__eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.85;
    margin-bottom: 1.5rem;
}
.hero__title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--text);
    letter-spacing: 0.04em;
    margin-bottom: 1.75rem;
}
.hero__tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 460px;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── SERVICES ─────────────────────────────────────── */
.services {
    padding: 6rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2rem 2.25rem;
    transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-4px);
}
.service-card__icon {
    width: 44px;
    height: 44px;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ── CATALOGUES ───────────────────────────────────── */
.catalogues {
    padding: 6rem 0;
}
.catalogues__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.faction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.faction-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.faction-card__img-wrap {
    background: #111;
    padding: 0.5rem;
}
.faction-card__img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.45s ease;
}
.faction-card:hover .faction-card__img-wrap img {
    transform: scale(1.03);
}
.faction-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.faction-card__name {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
}

/* ── BOUTIQUE ─────────────────────────────────────── */
.boutique {
    padding: 6rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.boutique__inner {
    max-width: 720px;
}
.boutique__text .section-title { margin-bottom: 1.25rem; }
.boutique__desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 1.75rem;
}
.boutique__notice {
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid var(--gold-dark);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.75;
}
.boutique__features {
    list-style: none;
    margin-bottom: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.boutique__features li {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.boutique__features li span { color: var(--gold); flex-shrink: 0; }
/* ── CONTACT ──────────────────────────────────────── */
.contact {
    padding: 6rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.contact__inner {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}
.contact__mailto {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
    border: 1px solid var(--gold-dark);
    padding: 1.3rem 2.75rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.contact__mailto svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact__mailto:hover {
    background: rgba(201, 168, 76, 0.07);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.12);
}
.contact__form-section {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.contact__form-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    text-align: center;
}
.contact__form-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
    margin: 0.5rem auto 0;
}
.contact__form-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    text-align: center;
}

/* ── CUSTOM FORM ──────────────────────────────────── */
.custom-form .form-group { margin-bottom: 1.1rem; }
.custom-form label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.custom-form .optional {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
}
.custom-form input,
.custom-form select,
.custom-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    font-size: 0.92rem;
    padding: 0.7rem 0.9rem;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--gold-dark);
}
.custom-form input::placeholder,
.custom-form textarea::placeholder { color: var(--text-muted); opacity: 0.55; }
.custom-form textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.custom-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a756e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.3rem; display: block; }
.btn--form-submit { margin-top: 0.5rem; }

/* ── FLASH MESSAGE ────────────────────────────────── */
.flash-msg {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid;
}
.flash-msg--success { background: #0d1f10; border-color: #2a5e30; color: #6dc97a; }
.flash-msg--error   { background: #1f0d0d; border-color: #5e2a2a; color: #c97a7a; }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
    padding: 2rem 0;
    background: var(--bg);
}
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.site-footer__brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.07em;
    opacity: 0.8;
}
.site-footer__sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1100px) {
    .catalogues__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .catalogues__grid  { grid-template-columns: repeat(3, 1fr); }
    .services__grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .site-header__nav  { display: none; }
    .catalogues__grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .services__grid    { grid-template-columns: 1fr; }
    .hero__content     { padding: 5rem 0; }
    .form-row-2        { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .container { width: calc(100% - 2rem); }
    .hero__actions { flex-direction: column; max-width: 320px; }
    .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════
   NOUVEAUTÉS
   ══════════════════════════════════════════════════ */
.nouveautes { padding: 5rem 0; }
.nouveautes .section-head { margin-bottom: 2.5rem; }
.nouveautes__footer { text-align: center; margin-top: 2.5rem; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.5); }
.product-card__img { position: relative; background: #111; overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s ease; }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__placeholder { color: var(--gold-dark); opacity: .3; }
.product-card__stock-badge { position: absolute; top: .6rem; right: .6rem; background: rgba(13,13,13,.85); color: var(--text-muted); font-size: .65rem; padding: .2rem .5rem; border-radius: 4px; letter-spacing: .03em; }
.product-card__body { padding: 1rem 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.product-card__name { font-family: 'Cinzel', serif; font-size: .82rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.product-card__faction { font-size: .72rem; color: var(--text-muted); }
.product-card__price { font-size: .85rem; color: var(--text-muted); margin-top: auto; }
.product-card__price strong { color: var(--gold); font-weight: 700; }

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
}
