/* ============================================================
   3B — Thème « moderne » (Atelier technique, sombre)
   Identité basque rouge/vert traitée comme deux filaments.
   ============================================================ */

/* ---------- 1. Jetons --------------------------------------- */
:root {
    --bg:        #131316;
    --bg-2:      #0F0F12;
    --surface:   #1B1B1F;
    --surface-2: #202024;   /* champs de formulaire */
    --ink:       #ECEAE3;
    --muted:     #97958C;
    --line:      rgba(255,255,255,.09);
    --line-soft: rgba(255,255,255,.05);

    --red:       #EC3B4E;
    --green:     #1CB877;
    --green-dim: rgba(28,184,119,.14);

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body:    "Inter", system-ui, -apple-system, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, monospace;

    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 1px 0 rgba(255,255,255,.03), 0 18px 40px rgba(0,0,0,.45);
    --container: 1140px;
    --ease:      cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--bg);
    /* Grille « plateau d'impression » très discrète */
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 46px 46px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }

h1, h2, h3 {
    font-family: var(--font-display); line-height: 1.08; margin: 0;
    letter-spacing: -.015em; font-weight: 700;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }

/* Double filet rouge/vert — signature réutilisable */
.accent-rule, .section-head__title::before, .contact__title::before {
    content: ""; display: block; height: 5px; width: 64px; border-radius: 5px;
    background: linear-gradient(90deg, var(--red) 0 50%, var(--green) 50% 100%);
}

/* ---------- 3. Boutons -------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-display); font-weight: 600; font-size: .98rem;
    padding: .82em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: #16140F; }
.btn--primary:hover { background: var(--red); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- 4. En-tête -------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(19,19,22,.72);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 15px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__logo { border-radius: 11px; background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.brand__tagline { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.site-nav { display: flex; gap: 28px; }
.site-nav a { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em; color: var(--muted); position: relative; padding-block: 4px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green); transition: width .22s var(--ease); }
.site-nav a:hover::after { width: 100%; }

/* ---------- 5. Hero ----------------------------------------- */
.hero { padding-block: clamp(54px, 9vw, 116px); position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }

.eyebrow {
    display: inline-block; font-family: var(--font-mono); font-weight: 500;
    font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green);
    margin-bottom: 20px;
}
.hero__title { font-size: clamp(2.5rem, 6vw, 4.3rem); }
.hero__title em { font-style: normal; color: var(--red); }
.hero__lead { color: var(--muted); font-size: 1.14rem; max-width: 44ch; margin: 24px 0 32px; }

/* Lauburu posé sur une plaque claire (le logo a un fond blanc : on l'assume) */
.hero__mark { display: flex; justify-content: center; }
.hero__mark img {
    width: clamp(170px, 27vw, 270px); height: auto;
    background: #fff; border-radius: 28px; padding: 18px;
    box-shadow: 0 30px 70px rgba(0,0,0,.5);
    outline: 1px solid var(--line);
}

/* ---------- 6. Titres de section ---------------------------- */
.section-head { margin-bottom: 40px; }
.section-head__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head__title::before { margin-bottom: 18px; }
.section-head__sub { color: var(--muted); margin-top: 10px; font-size: 1.02rem; }

/* ---------- 7. Grille produits ------------------------------ */
.products { padding-bottom: clamp(60px, 9vw, 110px); }
.product-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.product-card {
    display: flex; flex-direction: column; position: relative;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .24s var(--ease), border-color .24s, box-shadow .24s;
}
/* Arête supérieure « double filament » révélée au survol */
.product-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, var(--red) 0 50%, var(--green) 50% 100%);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); box-shadow: var(--shadow); }
.product-card:hover::before { transform: scaleX(1); }

.product-card__media { position: relative; aspect-ratio: 4 / 3; background: #0c0c0e; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__ref {
    position: absolute; top: 12px; left: 12px;
    background: rgba(15,15,18,.82); color: var(--ink); backdrop-filter: blur(4px);
    font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .04em;
    padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line);
}

.product-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card__category { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.product-card__title { font-size: 1.3rem; }
.product-card__desc { color: var(--muted); font-size: .96rem; margin: 0; }
.product-card__link { margin-top: auto; padding-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: .94rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.product-card__link span { transition: transform .2s var(--ease), color .2s; }
.product-card:hover .product-card__link span { transform: translateX(6px); color: var(--green); }

/* ---------- 8. Fiche produit -------------------------------- */
.product-page { padding-block: 44px 96px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); margin-bottom: 32px; }
.breadcrumb a:hover { color: var(--green); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.product-detail__media { border-radius: var(--radius); overflow: hidden; background: #0c0c0e; border: 1px solid var(--line); }
.product-detail__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.product-detail__ref { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-right: 14px; }
.product-detail__category { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.product-detail__title { font-size: clamp(2rem, 4.2vw, 2.9rem); margin: 16px 0 20px; }
.product-detail__desc p { color: #C9C7BF; margin: 0 0 15px; }

.specs { margin: 28px 0; border-top: 1px solid var(--line); }
.specs__row { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs__row dt { width: 130px; flex: none; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.specs__row dd { margin: 0; font-weight: 500; }

/* ---------- 9. Formulaire de contact ------------------------ */
.contact { margin-top: 68px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.contact__title { font-size: 1.7rem; }
.contact__title::before { margin-bottom: 16px; }
.contact__intro { color: var(--muted); max-width: 60ch; margin: 12px 0 26px; }
.contact__intro strong { color: var(--ink); }

.contact__alert { background: rgba(236,59,78,.12); color: #ff8a96; border: 1px solid rgba(236,59,78,.4); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .95rem; }

.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field__label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field__input {
    font-family: var(--font-body); font-size: 1rem; color: var(--ink);
    background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    padding: 13px 15px; transition: border-color .18s, box-shadow .18s; resize: vertical;
}
.field__input::placeholder { color: #6a6962; }
.field__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }

/* ---------- 10. Feedback (merci / 404) ---------------------- */
.feedback { padding-block: clamp(70px, 12vw, 130px); }
.feedback__inner { max-width: 580px; margin-inline: auto; text-align: center; }
.feedback__icon { width: 70px; height: 70px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; background: var(--green-dim); color: var(--green); border: 1px solid rgba(28,184,119,.4); }
.feedback__icon--muted { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--line); }
.feedback__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.feedback__text { color: var(--muted); margin-bottom: 30px; }
.feedback__text strong { color: var(--ink); }
.empty { color: var(--muted); }

/* ---------- 11. Pied de page -------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-block: 48px 26px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img { background: #fff; border-radius: 10px; padding: 3px; }
.site-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 0; }
.site-footer__baseline { color: var(--muted); font-size: .92rem; margin: 5px 0 0; max-width: 38ch; }
.site-footer__contact p { margin: 0 0 7px; color: var(--muted); font-size: .92rem; }
.site-footer__contact a { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.site-footer__contact a:hover { color: var(--green); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

/* ---------- 12. Responsive ---------------------------------- */
@media (max-width: 880px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__mark { order: -1; justify-content: flex-start; }
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
    .site-nav { display: none; }
    .contact__row { grid-template-columns: 1fr; gap: 0; }
    .brand__tagline { display: none; }
}

/* ---------- 13. Accessibilité ------------------------------- */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
