/* ==========================================================
   ARCOSE Sarl - main.css
   ========================================================== */

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

:root {
    --blanc:   #F7F6F3;
    --noir:    #1A1A18;
    --ardoise: #2E2E2B;
    --or:      #C0873A;
    --beton:   #8A8A80;
    --clair:   #ECEAE4;
    --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:    'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--blanc);
    color: var(--ardoise);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* ── TOP BAR ── */
.top-bar {
    background: var(--noir);
    padding: .45rem 4rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.top-bar a {
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(247,246,243,.45);
    text-decoration: none;
    transition: color .2s;
}
.top-bar a:hover { color: var(--or); }

/* ── NAV ── */
#navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--blanc);
    border-bottom: 1px solid rgba(0,0,0,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 4rem;
    transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.09); }

.site-logo img { height: 60px; width: auto; display: block; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ardoise);
    transition: color .2s;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--or); border-bottom-color: var(--or); }

.nav-cta {
    background: var(--or) !important;
    color: var(--noir) !important;
    padding: .55rem 1.3rem !important;
    border-bottom: none !important;
    transition: background .2s !important;
}
.nav-cta:hover { background: #d4983f !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .3rem;
    z-index: 201;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ardoise);
    transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.hero-left {
    background: var(--noir);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6rem 4rem 5rem;
    position: relative;
    overflow: hidden;
}
.hero-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 85%, rgba(192,135,58,.13) 0%, transparent 60%);
    pointer-events: none;
}
.hero-eyebrow {
    font-size: .63rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 1.8rem;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4.5vw, 4.8rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--blanc);
    margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; color: rgba(247,246,243,.42); }
.hero-acronyme {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.acronyme-item { display: flex; flex-direction: column; gap: .2rem; }
.acronyme-lettre {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--or);
    line-height: 1;
}
.acronyme-mot {
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(247,246,243,.38);
}
.hero-tagline {
    font-size: .8rem;
    color: var(--beton);
    line-height: 1.85;
    max-width: 36ch;
    margin-bottom: 3rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 2rem;
    background: var(--or);
    color: var(--noir);
    text-decoration: none;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .2s;
    align-self: flex-start;
}
.btn-primary:hover { background: #d4983f; color: var(--noir); }
.btn-primary svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 2rem;
    border: 1px solid rgba(247,246,243,.22);
    color: var(--blanc);
    text-decoration: none;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--or); color: var(--or); }

.hero-right {
    position: relative;
    overflow: hidden;
    background: var(--ardoise);
}
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-stats {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    z-index: 2;
}
.stat { text-align: right; }
.stat-num {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--blanc);
    line-height: 1;
}
.stat-label {
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(247,246,243,.36);
    margin-top: .12rem;
}

/* ── SECTIONS COMMUNES ── */
.section-inner { padding: 7rem 4rem; }

.section-tag {
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: .8rem;
    display: block;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 300;
    line-height: 1.18;
    color: var(--ardoise);
    margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--beton); }

/* ── SERVICES ── */
.section-services { background: var(--blanc); }

.services-intro {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 6rem;
    align-items: start;
}
.services-intro-left { position: sticky; top: 5rem; }
.services-intro-bar {
    width: 2px;
    height: 50px;
    background: var(--or);
    margin: 1.5rem 0;
}
.services-intro-text { font-size: .86rem; line-height: 1.92; color: #555552; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.service-card {
    padding: 2rem 2rem 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    border-right: 1px solid rgba(0,0,0,.08);
}
.service-card:nth-child(even) { border-right: none; padding-right: 0; padding-left: 2rem; }
.service-card:nth-last-child(-n+2) { border-bottom: none; }

.service-icon { width: 36px; height: 36px; margin-bottom: 1rem; color: var(--or); }
.service-icon svg { width: 100%; height: 100%; }
.service-nom {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: .5rem;
    color: var(--ardoise);
}
.service-desc { font-size: .76rem; line-height: 1.88; color: var(--beton); }

/* ── PROJETS ── */
.section-projets { background: var(--ardoise); }

.projets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    border: 1px solid rgba(247,246,243,.2);
    color: var(--blanc);
    text-decoration: none;
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--or); color: var(--or); }

.projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.projet-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--noir);
    cursor: pointer;
}
.projet-card:first-child { grid-row: span 2; aspect-ratio: auto; }

.projet-card img,
.projet-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .65s cubic-bezier(.25,.46,.45,.94);
}
.projet-card img { object-fit: cover; }
.projet-card:hover img,
.projet-card:hover .projet-placeholder { transform: scale(1.06); }

.ph1 { background: linear-gradient(145deg, #1c1c1a, #2a2a28); }
.ph2 { background: linear-gradient(145deg, #222220, #2e2e2c); }
.ph3 { background: linear-gradient(145deg, #1e1e1c, #282826); }
.ph4 { background: linear-gradient(145deg, #242422, #1c1c1a); }

.projet-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,24,.9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    opacity: 0;
    transition: opacity .35s;
    text-decoration: none;
}
.projet-card:hover .projet-overlay { opacity: 1; }
.projet-num {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: rgba(192,135,58,.32);
    line-height: 1;
    margin-bottom: .3rem;
}
.projet-nom {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--blanc);
    margin-bottom: .2rem;
}
.projet-cat {
    font-size: .6rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--or);
}

/* ── POURQUOI ── */
.section-pourquoi { background: var(--clair); }

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}
.pourquoi-item { display: flex; flex-direction: column; gap: .7rem; }
.pourquoi-num {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(192,135,58,.28);
    line-height: 1;
}
.pourquoi-titre {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ardoise);
}
.pourquoi-desc { font-size: .76rem; line-height: 1.88; color: var(--beton); }

/* ── HISTOIRE ── */
.section-histoire { background: var(--noir); }

.histoire-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}
.section-histoire .section-tag { color: var(--or); }
.section-histoire .section-title { color: var(--blanc); }

.histoire-text { font-size: .86rem; line-height: 1.95; color: rgba(247,246,243,.58); }
.histoire-text p + p { margin-top: 1.3rem; }

.histoire-quote {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--blanc);
    border-left: 2px solid var(--or);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    line-height: 1.55;
    quotes: none;
}
.histoire-right { position: relative; }
.histoire-visuel {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--ardoise);
}
.histoire-visuel img { width: 100%; height: 100%; object-fit: cover; }

.histoire-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--or);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.badge-num {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--noir);
    line-height: 1;
}
.badge-label {
    font-size: .58rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--noir);
    opacity: .7;
}

/* ── CONTACT ── */
.section-contact { background: var(--blanc); }

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
    align-items: start;
}
.contact-info-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.8rem; }
.contact-info-item { display: flex; flex-direction: column; gap: .25rem; }
.contact-info-label {
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--or);
}
.contact-info-val { font-family: var(--serif); font-size: .96rem; color: var(--ardoise); }
.contact-info-val a { text-decoration: none; color: inherit; transition: color .2s; }
.contact-info-val a:hover { color: var(--or); }

.contact-socials { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .4rem; }
.contact-social-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border: 1px solid rgba(0,0,0,.14);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ardoise);
    transition: border-color .2s, color .2s;
}
.contact-social-btn:hover { border-color: var(--or); color: var(--or); }

/* Formulaire */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .42rem; }
.form-group label {
    font-size: .6rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--beton);
}
.form-required { color: var(--or); }

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--clair);
    border: 1px solid rgba(0,0,0,.1);
    color: var(--ardoise);
    padding: .82rem 1rem;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 300;
    outline: none;
    transition: border-color .2s;
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--or); background: #fff; }
.form-group select option { background: #fff; }

.form-feedback {
    font-size: .78rem;
    min-height: 1rem;
}
.form-feedback.success { color: #4A8B4A; }
.form-feedback.error   { color: #B04A4A; }

.btn-submit {
    background: var(--or);
    color: var(--noir);
    border: none;
    padding: 1rem 2.2rem;
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    align-self: flex-start;
    border-radius: 0;
}
.btn-submit:hover { background: #d4983f; }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── FOOTER ── */
#colophon {
    background: var(--noir);
    border-top: 1px solid rgba(247,246,243,.07);
    padding: 2.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-logo img { height: 48px; width: auto; }
.footer-copy { font-size: .65rem; color: rgba(247,246,243,.28); letter-spacing: .05em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(247,246,243,.28);
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--or); }

/* ── ARCHIVE / SINGLE ── */
.archive-hero {
    background: var(--noir);
    padding: 7rem 4rem 4rem;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--ardoise);
    padding: 2px;
}
.archive-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--noir);
}
.archive-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.archive-card:hover img { transform: scale(1.05); }
.archive-card .projet-overlay { opacity: 0; }
.archive-card:hover .projet-overlay { opacity: 1; }

.single-hero {
    background: var(--noir);
    padding: 8rem 4rem 4rem;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.single-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--blanc);
    margin: .5rem 0 1.5rem;
}
.single-meta { display: flex; gap: 3rem; flex-wrap: wrap; }
.single-meta-item { display: flex; flex-direction: column; gap: .2rem; }

.single-featured { max-height: 65vh; overflow: hidden; }
.single-featured img { width: 100%; height: 65vh; object-fit: cover; }

.single-content { padding: 4rem; max-width: 820px; }
.single-content p { font-size: .94rem; line-height: 1.9; color: #555; margin-bottom: 1.4rem; }

.single-back { padding: 0 4rem 4rem; }

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 900px) {
    .top-bar  { padding: .4rem 1.5rem; }
    #navbar   { padding: .8rem 1.5rem; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--noir);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 199;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.1rem; color: var(--blanc); }
    .nav-cta { padding: .7rem 2rem !important; }
    .nav-toggle { display: flex; }

    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 5rem 1.5rem 4rem; }
    .hero-right { display: none; }

    .section-inner { padding: 5rem 1.5rem; }

    .services-intro { grid-template-columns: 1fr; gap: 2.5rem; }
    .services-intro-left { position: static; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card,
    .service-card:nth-child(even) {
        border-right: none;
        border-left: none;
        padding-left: 0;
        padding-right: 0;
        border-bottom: 1px solid rgba(0,0,0,.08);
    }
    .service-card:last-child { border-bottom: none; }

    .projets-grid { grid-template-columns: 1fr; }
    .projet-card:first-child { grid-row: auto; aspect-ratio: 3/4; }
    .projets-header { flex-direction: column; align-items: flex-start; gap: 1.2rem; }

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

    .histoire-inner { grid-template-columns: 1fr; gap: 3rem; }
    .histoire-badge { left: 1rem; bottom: 1rem; }

    .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }

    #colophon { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }

    .archive-grid { grid-template-columns: 1fr 1fr; }
    .archive-hero { padding: 6rem 1.5rem 3rem; }
    .single-hero,
    .single-content,
    .single-back { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 600px) {
    .archive-grid { grid-template-columns: 1fr; }
    .hero-acronyme { gap: 1.5rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
