/* _shared/css/base.css — reset, body, nav, sections, footer, contact form,
   fade-in animation, and base responsive rules shared across all three sites.
   Component-specific styles (hero variants, service cards, pricing tables, etc.)
   live inline in each site's index.php. */

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-ink);
    background-color: var(--color-surface);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.9rem var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-ink-light);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-cta {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-white) !important;
    background: var(--color-accent);
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--color-accent-light) !important;
    color: var(--color-white) !important;
}

/* Language switcher (FR | EN) inside the nav */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--color-ink-muted);
}

.nav-lang a {
    color: var(--color-ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-lang a:hover { color: var(--color-accent); }

.nav-lang-active {
    color: var(--color-ink);
    font-weight: 500;
}

.nav-lang-sep {
    color: var(--color-border);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-ink);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- SECTIONS --- */
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: var(--space-lg);
    color: var(--color-ink);
    max-width: 500px;
}

/* --- CONTACT FORM (shared markup, dexo/specta/synaps wrap it differently) --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: flex;
    gap: var(--space-sm);
}

.form-row > * {
    flex: 1;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-ink-light);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-ink);
    transition: border-color 0.2s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.form-submit {
    align-self: flex-start;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-accent);
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.form-submit:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

#form-status {
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-md);
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: var(--color-ink-muted);
    max-width: var(--max-width);
    margin: 0 auto;
    line-height: 1.6;
}

footer a {
    color: var(--color-ink-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--color-accent);
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE (base rules; per-site overrides live inline) --- */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        padding: var(--space-sm) var(--space-md) var(--space-md);
        border-bottom: 1px solid var(--color-border);
        gap: var(--space-sm);
    }
    .nav-toggle { display: block; }

    .form-row {
        flex-direction: column;
    }
}
