/* ===== Extra polish — layered on top of main.css ===== */

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Focus-visible for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Service card icon background circle */
.service-card i {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: rgba(217,119,6,.08);
    margin: 0 auto 1.25rem;
    font-size: 1.4rem;
}

/* Language toggle */
.lang-toggle {
    margin-left: .5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.lang-toggle:hover {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* Subtle fade-in on scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .method-step,
    .service-card,
    .project-card,
    .project-detail-card,
    .offre-card {
        opacity: 0;
        transform: translateY(16px);
        animation: fadeUp .5s ease forwards;
    }
    .method-step:nth-child(1) { animation-delay: .05s; }
    .method-step:nth-child(2) { animation-delay: .1s; }
    .method-step:nth-child(3) { animation-delay: .15s; }
    .method-step:nth-child(4) { animation-delay: .2s; }

    .service-card:nth-child(1) { animation-delay: .05s; }
    .service-card:nth-child(2) { animation-delay: .1s; }
    .service-card:nth-child(3) { animation-delay: .15s; }

    .project-card:nth-child(1) { animation-delay: .05s; }
    .project-card:nth-child(2) { animation-delay: .1s; }
    .project-card:nth-child(3) { animation-delay: .15s; }

    .project-detail-card:nth-child(1) { animation-delay: .05s; }
    .project-detail-card:nth-child(2) { animation-delay: .1s; }
    .project-detail-card:nth-child(3) { animation-delay: .15s; }

    .offre-card:nth-child(1) { animation-delay: .05s; }
    .offre-card:nth-child(2) { animation-delay: .1s; }
    .offre-card:nth-child(3) { animation-delay: .15s; }

    @keyframes fadeUp {
        to { opacity: 1; transform: translateY(0); }
    }
}

/* --- Section Styling Logic --- */
section {
    position: relative;
    padding: 5rem 0; /* More breathing room */
    overflow: hidden; /* For absolute positioned decorations */
}

section:not(.hero):not(.home-cta):not(.page-hero)::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.08) 1px, transparent 0);
    background-size:
        28px 28px,
        28px 28px,
        18px 18px;
    background-position:
        0 0,
        0 0,
        8px 8px;
    opacity: .18;
}

/* Glassmorphism for sections (skipping hero, home-cta, page-hero which have their own bgs) */
section:not(.hero):not(.home-cta):not(.page-hero):nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

section:not(.hero):not(.home-cta):not(.page-hero):nth-of-type(even) {
    /* Slightly tinted background for contrast (slate-50/100) */
    background: rgba(241, 245, 249, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.015);
}

/* Small digital references for section intros */
.digital-ref {
    font-family: var(--heading);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0 0 .65rem;
    text-align: center;
    opacity: .9;
}

/* ── Project preview — logo / contain mode ── */
.project-preview--contain {
    object-fit: contain;
    background: #ffffff;
    padding: 1.5rem;
    height: 160px;
}

/* ── Project period / year ── */
.project-period {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .75rem;
    font-family: var(--heading);
    font-weight: 600;
    color: var(--text-light);
    margin: .3rem 0 .55rem;
    letter-spacing: .02em;
}

.project-period-note {
    background: var(--border);
    color: var(--text-light);
    padding: .15rem .55rem;
    border-radius: 9999px;
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
}

