/* ============================================================
   Vanbe 2025 — main stylesheet (light warm theme)
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
    --bg:          #f8f6f4;
    --bg-2:        #ede9e4;
    --accent:      #b8703a;
    --accent-dim:  rgba(184,112,58,.12);
    --accent-glow: rgba(184,112,58,.28);
    --warm:        #d4956a;
    --text:        #1f1b18;
    --muted:       #7b6f68;
    --border:      rgba(31,27,24,.10);
    --card:        #ffffff;
    --shadow:      0 2px 20px rgba(31,27,24,.07);
    --nav-h:       72px;
    --radius:      12px;
    --font:        'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Canvas background ------------------------------------ */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* --- Navigation ------------------------------------------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 5vw;
    justify-content: space-between;
    transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease, box-shadow .35s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(248,246,244,.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: var(--border);
    box-shadow: 0 1px 20px rgba(31,27,24,.07);
}

.nav-logo img {
    height: 32px;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-contact {
    font-size: .875rem;
    color: var(--muted);
    transition: color .2s;
}
.nav-contact:hover { color: var(--text); }

.lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(31,27,24,.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}

.lang-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    letter-spacing: .04em;
}

.lang-toggle button.active {
    background: var(--accent);
    color: #fff;
}

/* --- Language show/hide ----------------------------------- */
body.lang-fr .en { display: none; }
body.lang-en .fr { display: none; }

/* --- Sections base ---------------------------------------- */
section {
    position: relative;
    z-index: 1;
}

/* --- Hero ------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--nav-h) + 60px) 5vw 80px;
    background: linear-gradient(
        180deg,
        rgba(248,246,244,.25) 0%,
        rgba(248,246,244,.70) 55%,
        rgba(248,246,244,.95) 100%
    );
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    padding: 6px 16px;
    border: 1px solid var(--accent-dim);
    border-radius: 100px;
    background: rgba(184,112,58,.07);
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    max-width: 900px;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--muted);
    max-width: 620px;
    margin: 16px auto 48px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s, background .2s;
    cursor: pointer;
    border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 rgba(184,112,58,0);
}
.btn-primary:hover {
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(31,27,24,.05); }

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    animation: bob 2.5s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; height: 18px; stroke: var(--muted); }

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Section header --------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* --- Services --------------------------------------------- */
.services {
    padding: 120px 5vw;
    background: rgba(237,233,228,.88);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: border-color .3s, transform .3s, box-shadow .3s;
    opacity: 0;
    transform: translateY(24px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, border-color .3s, box-shadow .3s;
}

.service-card:hover {
    border-color: rgba(184,112,58,.30);
    box-shadow: 0 8px 32px rgba(184,112,58,.12);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px; height: 52px;
    margin-bottom: 24px;
    background: var(--accent-dim);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}
.service-card:hover .service-icon { background: rgba(184,112,58,.20); }

.service-icon svg {
    width: 24px; height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.service-desc {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
}

/* --- Approach --------------------------------------------- */
.approach {
    padding: 120px 5vw;
    background: rgba(248,246,244,.92);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
}

.approach-item {
    padding: 48px 40px;
    border-right: 1px solid var(--border);
    transition: background .3s;
    opacity: 0;
    transform: translateY(20px);
}
.approach-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s ease, transform .6s ease, background .3s;
}
.approach-item:last-child { border-right: none; }
.approach-item:hover { background: rgba(184,112,58,.04); }

.approach-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.approach-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.approach-text {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.75;
}

/* --- Contact ---------------------------------------------- */
.contact {
    padding: 120px 5vw;
    background: rgba(237,233,228,.88);
    text-align: center;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 44px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid var(--accent-dim);
    padding-bottom: 4px;
    transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--text); border-color: var(--border); }
.contact-email svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* --- Footer ----------------------------------------------- */
footer {
    position: relative;
    z-index: 1;
    background: #2a2520;
    padding: 60px 5vw 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 30px; }

.footer-tagline {
    font-size: .9rem;
    color: rgba(255,255,255,.42);
    line-height: 1.7;
    max-width: 340px;
}

.footer-heading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.32);
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list li {
    font-size: .875rem;
    color: rgba(255,255,255,.42);
}

.footer-list a { transition: color .2s; }
.footer-list a:hover { color: rgba(255,255,255,.82); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: .8rem;
    color: rgba(255,255,255,.28);
}

/* --- Fade-in utility -------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-grid { grid-template-columns: 1fr; }
    .approach-item { border-right: none; border-bottom: 1px solid var(--border); }
    .approach-item:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-contact { display: none; }
    .hero-title { letter-spacing: -.01em; }
}
