/* ===================================================================
   TACHINOSAURE — SYSTÈME DE DESIGN
   Identité : "site de fouille" tech — ambre fossile / obsidienne,
   cartes vitrine avec reticules de coin, typo slab + mono.
   =================================================================== */

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

:root {
    --bg:          #100E0B;
    --bg-alt:      #17140F;
    --surface:     #1E1A14;
    --surface-hi:  #262019;
    --amber:       #E3A23B;
    --amber-dim:   #9C7534;
    --clay:        #C1552F;
    --fern:        #6FA98A;
    --text:        #F3ECDD;
    --text-dim:    #A79A85;
    --text-faint:  #6E6555;
    --border:      rgba(227, 162, 59, 0.22);

    --font-display: 'Fraunces', Georgia, serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;
    --font-body:    'Inter', -apple-system, sans-serif;

    --radius: 6px;
    --transition: all 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(227,162,59,0.06) 1px, transparent 0);
    background-size: 28px 28px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--amber); color: var(--bg); }

/* -------------------- EYEBROW / SPECIMEN TAG -------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.1rem;
}

.eyebrow::before {
    content: '';
    width: 9px;
    height: 9px;
    background: var(--amber);
    display: inline-block;
}

.section-head {
    max-width: 640px;
    margin-bottom: 3rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
}

.section-head p {
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 1.05rem;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 6rem 0; }

/* -------------------- HEADER / NAV -------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(16, 14, 11, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo span.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--amber);
    border: 1px solid var(--amber-dim);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.08em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* -------------------- BUTTONS -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--amber);
    color: #1B1305;
    font-weight: 600;
}
.btn-primary:hover { background: #f0b458; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.btn-clay {
    background: var(--clay);
    color: var(--text);
}
.btn-clay:hover { background: #d9613a; transform: translateY(-2px); }

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* -------------------- HERO (accueil) -------------------- */
.hero {
    position: relative;
    padding: 7rem 0 6rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('NouvelleBannière.png') center/cover no-repeat;
    opacity: 0.16;
    filter: grayscale(0.3);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16,14,11,0.2) 0%, var(--bg) 95%);
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 1.4rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--amber);
}

.hero p.lede {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 560px;
    margin-bottom: 2.2rem;
}

/* Sub-hero for interior pages */
.page-hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 600;
}
.page-hero p {
    color: var(--text-dim);
    max-width: 600px;
    margin-top: 0.9rem;
}

/* -------------------- VITRINE CARD (signature) -------------------- */
.vitrine {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: var(--transition);
}

.vitrine::before, .vitrine::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--amber);
    opacity: 0;
    transition: var(--transition);
}
.vitrine::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.vitrine::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.vitrine:hover {
    border-color: transparent;
    transform: translateY(-4px);
    background: var(--surface-hi);
}
.vitrine:hover::before, .vitrine:hover::after { opacity: 1; }

/* -------------------- ACCUEIL: highlights -------------------- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.highlight-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--amber);
}

.highlight-card p { color: var(--text-dim); font-size: 0.96rem; }

.home-cta {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.home-cta .section-head { margin-left: auto; margin-right: auto; }

/* -------------------- ABOUT PAGE -------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
}

.about-text p { color: var(--text-dim); margin-bottom: 1.3rem; }
.about-text p strong { color: var(--text); }

.about-image-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.about-image-wrapper img { width: 100%; }
.about-image-caption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

/* Facts grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 3.5rem;
}

.fact-card .fact-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fern);
    display: block;
    margin-bottom: 0.5rem;
}

.fact-card p:not(.fact-label) { color: var(--text-dim); }

/* PC setup */
.pc-setup {
    grid-column: 1 / -1;
}
.pc-setup h3 {
    font-family: var(--font-display);
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.pc-subtitle { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.4rem; }

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

.spec-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.9rem 1rem;
}
.spec-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.3rem;
}
.spec-value { display: block; color: var(--amber); font-weight: 600; }

/* -------------------- GALLERY -------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: default;
}

.gallery-item img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    filter: grayscale(0.55) contrast(1.05);
    transition: var(--transition);
}
.gallery-item:hover img { filter: grayscale(0); transform: scale(1.04); }

.gallery-item-content {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, rgba(16,14,11,0.92) 0%, transparent 100%);
    padding: 2.2rem 1.2rem 1rem;
}
.gallery-item-content span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--amber);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.3rem;
}
.gallery-item-content h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }

/* -------------------- VIDEOS -------------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #000;
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------- CONTACT -------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.contact-card {
    text-align: left;
}
.contact-card .icon {
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
    display: block;
}
.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.contact-card p { color: var(--text-dim); font-size: 0.95rem; word-break: break-word; }
.contact-card a { color: var(--amber); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* -------------------- LEGAL PAGES -------------------- */
.legal-content { max-width: 780px; }
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--amber);
    margin: 2.4rem 0 0.9rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-dim); margin-bottom: 0.9rem; }
.legal-content ul { margin-left: 1.4rem; }
.legal-content strong { color: var(--text); }

/* -------------------- FOOTER -------------------- */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}
.footer-grid p, .footer-grid a { color: var(--text-dim); font-size: 0.92rem; }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-faint);
    font-family: var(--font-mono);
}

/* -------------------- COOKIE BANNER -------------------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 620px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    z-index: 3000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: none;
}
.cookie-banner.active { display: flex; flex-direction: column; gap: 1rem; }
.cookie-banner p { font-size: 0.9rem; color: var(--text-dim); }
.cookie-banner p a { color: var(--amber); }
.cookie-actions { display: flex; gap: 0.8rem; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.75rem; }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
    nav { position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    nav ul { flex-direction: column; gap: 0; padding: 0 24px; }
    nav li { border-bottom: 1px solid var(--border); }
    nav a { display: block; padding: 1.1rem 0; }
    header.nav-open nav { max-height: 400px; }
    .nav-toggle { display: flex; }
    section { padding: 4rem 0; }
    .hero { padding: 4rem 0 3rem; }
    .button-group { flex-direction: column; }
    .btn { justify-content: center; }
}
