/* ===================================================================
   Oxia Digital Agency – Design System
   =================================================================== */

:root {
    --bg: #fff8ee;
    --bg-soft: #fff1d6;
    --surface: #ffffff;
    --surface-warm: #fff6df;
    --card: rgba(255, 255, 255, 0.88);
    --card-border: rgba(239, 68, 18, 0.16);
    --text: #2f160b;
    --muted: #73513d;
    --primary: #e42519;
    --secondary: #ff7a00;
    --accent: #ffd21f;
    --accent-soft: #fff0a8;
    --shadow: 0 24px 70px rgba(151, 59, 12, 0.16);
    --radius: 28px;
    --max-width: 1180px;
}

/* ── Reset ────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 210, 31, 0.55), transparent 27rem),
        radial-gradient(circle at 90% 8%, rgba(255, 122, 0, 0.22), transparent 30rem),
        linear-gradient(180deg, #fffdf7 0%, var(--bg) 52%, #ffffff 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ── Layout ───────────────────────────────────────────────── */

.page {
    position: relative;
    isolation: isolate;
}

.glow {
    position: fixed;
    inset: auto -8rem -8rem auto;
    width: 25rem;
    height: 25rem;
    border-radius: 999px;
    background: rgba(228, 37, 25, 0.13);
    filter: blur(70px);
    z-index: -1;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

/* ── Header & Nav ─────────────────────────────────────────── */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.75rem;
    padding: 0.25rem;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.lang-switcher a {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
    transition: background 160ms ease, color 160ms ease;
}

.lang-switcher a:hover {
    color: var(--text);
}

.lang-switcher a.active {
    background: var(--primary);
    color: #ffffff;
}

.site-header {
    padding: 0.55rem 0;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 253, 247, 0.82);
    border-bottom: 1px solid rgba(239, 68, 18, 0.12);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
}

.brand-mark-img {
    height: 1.4em;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.brand-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.8rem);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

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

/* ── Buttons ──────────────────────────────────────────────── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.1rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid rgba(228, 37, 25, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 37, 25, 0.35);
    box-shadow: 0 16px 34px rgba(228, 37, 25, 0.12);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff7cc;
    border: 0;
    box-shadow: 0 18px 40px rgba(255, 122, 0, 0.24);
}

.button-secondary {
    background: var(--surface);
    color: var(--primary);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
    padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.5rem 0.8rem;
    margin-bottom: 1.35rem;
    border-radius: 999px;
    color: #9a1e13;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 122, 0, 0.22);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.gradient-text {
    background: linear-gradient(120deg, var(--primary), var(--secondary) 55%, #c69300 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight-yellow {
    display: inline;
    background: linear-gradient(transparent 58%, rgba(255, 210, 31, 0.62) 58%);
    padding-inline: 0.08em;
}

.hero-copy {
    max-width: 42rem;
    margin: 1.4rem 0 2rem;
    color: var(--muted);
    font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* ── Stats ────────────────────────────────────────────────── */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 2.2rem;
    max-width: 42rem;
}

.stat {
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(239, 68, 18, 0.13);
    box-shadow: 0 14px 36px rgba(151, 59, 12, 0.07);
}

.stat strong {
    display: block;
    color: var(--primary);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Hero Media ───────────────────────────────────────────── */

.hero-media {
    position: relative;
    min-height: 34rem;
}

.image-stack {
    position: relative;
    height: 100%;
    min-height: 34rem;
}

.main-photo,
.floating-photo,
.metric-card {
    position: absolute;
    box-shadow: var(--shadow);
}

.main-photo {
    inset: 0 0 4rem 4rem;
    border: 0.75rem solid #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    transform: rotate(2deg);
}

.main-photo img,
.floating-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-photo {
    left: 0;
    bottom: 0;
    width: min(54%, 18rem);
    aspect-ratio: 4 / 5;
    border: 0.65rem solid #ffffff;
    border-radius: 1.6rem;
    overflow: hidden;
    transform: rotate(-4deg);
}

.metric-card {
    right: 0.5rem;
    bottom: 1rem;
    max-width: 17rem;
    padding: 1rem;
    border-radius: 1.3rem;
    background: #ffffff;
    border: 1px solid rgba(255, 122, 0, 0.18);
}

.metric-card strong {
    display: block;
    color: var(--primary);
    font-size: 1.65rem;
    line-height: 1;
}

.metric-card span {
    color: var(--muted);
    font-weight: 750;
    font-size: 0.92rem;
}

/* ── Sections ─────────────────────────────────────────────── */

.section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    scroll-margin-top: 5rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 2rem;
}

.section-heading span {
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.section-heading h2 {
    margin-top: 0.5rem;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ── About ──────────────────────────────────────────────── */

.about {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    margin-bottom: 1.4rem;
}


.about-content p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.about-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 0;
    box-shadow: 0 12px 28px rgba(255, 122, 0, 0.22);
}

.about-stats .stat strong {
    color: var(--accent);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1;
}

.about-stats .stat span {
    color: #fff7cc;
    font-size: 0.82rem;
    line-height: 1.25;
}

/* ── Team Grid ────────────────────────────────────────────── */

.team-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
}

.team-grid > * {
    flex: 0 0 25%;
    min-width: 0;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.6rem 1.1rem;
    border-radius: 1.4rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    transition: transform 180ms ease, background 180ms ease;
}

.team-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
}

.team-avatar {
    width: 6.5rem;
    height: 6.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    overflow: hidden;
    border: 0.35rem solid #ffffff;
    box-shadow: 0 14px 34px rgba(228, 37, 25, 0.18);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.2rem;
    line-height: 1.15;
    margin-bottom: 0.35rem;
}

.team-role {
    color: var(--primary);
    font-weight: 900;
    font-size: 0.9rem;
}

.team-socials {
    display: flex;
    gap: 0.55rem;
    margin-top: 1rem;
}

.team-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: var(--surface-warm);
    border: 1px solid var(--card-border);
    color: var(--muted);
    transition: color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.team-social svg {
    width: 1.05rem;
    height: 1.05rem;
}

.team-social:hover {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(228, 37, 25, 0.28);
}

/* ── Services Grid ────────────────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.4rem;
    border-radius: 1.4rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: 0 18px 48px rgba(151, 59, 12, 0.08);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: 0 26px 55px rgba(151, 59, 12, 0.14);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    color: var(--primary);
    background: var(--accent-soft);
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.service-card h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
}

.service-subtitle {
    margin: 1.25rem 0 0.6rem;
    color: #1f2937;
    font-weight: 700;
}

.service-card p {
    color: var(--muted);
}

/* ── Portfolio Grid ───────────────────────────────────────────────── */

.portfolio-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
}

.portfolio-grid > * {
    flex: 0 0 33.3334%;
    min-width: 0;
}

/* Slider (one-row, draggable). */
.slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-top: 0.6rem;
    margin-top: -0.6rem;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    flex-wrap: nowrap;
}

.slider-track > * {
    scroll-snap-align: start;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 0.7rem;
    height: 0.7rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.slider-dot:hover {
    transform: scale(1.25);
}

.slider-dot.is-active {
    background: var(--primary);
}

/* Reveal-on-scroll entrance animation */
.reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

.portfolio-card {
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border-radius: 1.6rem;
    background: #ffffff;
    border: 1px solid var(--card-border);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-thumb {
    position: relative;
    overflow: hidden;
}

.portfolio-thumb img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 113, 31, 0.40), rgba(196, 25, 9, 0.40));
    color: #fff;
    opacity: 0;
    transform: translateY(0.6rem);
    transition: opacity 200ms ease, transform 200ms ease;
}

.portfolio-overlay svg {
    width: 1.6rem;
    height: 1.6rem;
    fill: none;
    flex-shrink: 0;
}

.portfolio-overlay__url {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    word-break: break-all;
    color: #fff7cc;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-body {
    padding: 1.25rem;
}

.portfolio-category {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #9a1e13;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.portfolio-card h3 {
    font-size: 1.25rem;
    line-height: 1.15;
    margin-bottom: 0.55rem;
}

.portfolio-card p {
    color: var(--muted);
}

/* ── Visual Band / Process ────────────────────────────────── */

.process {
    display: grid;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 1rem;
    align-items: start;
}

.process-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    min-height: 3.2rem;
}

.process-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.process-line-start {
    flex: 0 0 1.2rem;
    background: linear-gradient(180deg, transparent, var(--primary));
}

.process-icon {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    flex-shrink: 0;
    border-radius: 1rem;
    color: var(--primary);
    background: var(--surface-warm);
    border: 1px solid var(--card-border);
}

.process-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.process-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.process-number {
    display: grid;
    place-items: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 0.35rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.06em;
}

.process-detail h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.process-detail p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Visual Band (Méthode) ─────────────────────────────── */

.visual-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 1.6rem);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, var(--surface-warm));
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.visual-band img {
    width: 100%;
    min-height: 22rem;
    object-fit: cover;
    border-radius: calc(var(--radius) - 0.7rem);
}

/* ── CTA ──────────────────────────────────────────────────── */

.cta {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.1rem, 3vw, 1.8rem);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 1px solid rgba(228, 37, 25, 0.18);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cta-content {
    padding: clamp(1rem, 3vw, 2rem);
    color: #fff8d3;
}

.cta h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.cta p {
    max-width: 42rem;
    margin: 1rem 0 1.6rem;
    color: #fff0b6;
    font-size: 1.08rem;
}

.cta .button-primary {
    background: var(--accent);
    color: #6a1a00;
    box-shadow: none;
}

.cta img {
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
    border-radius: calc(var(--radius) - 0.75rem);
    border: 0.5rem solid rgba(255, 255, 255, 0.32);
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
    padding: 2rem 0;
    color: var(--muted);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(239, 68, 18, 0.13);
    padding-top: 1.5rem;
}

.footer-row p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 1.2rem;
    width: auto;
    vertical-align: middle;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 920px) {

    .hero-grid,
    .visual-band,
    .cta {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        max-width: 11ch;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-media,
    .image-stack {
        min-height: 31rem;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 1.1rem, var(--max-width));
    }

    .site-header {
        position: static;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .nav-links .button {
        display: none;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .stats,
    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-media,
    .image-stack {
        min-height: auto;
    }

    .main-photo,
    .floating-photo,
    .metric-card {
        position: static;
        transform: none;
        width: 100%;
    }

    .image-stack {
        display: grid;
        gap: 1rem;
    }

    .main-photo {
        aspect-ratio: 4 / 3;
        border-width: 0.5rem;
    }

    .floating-photo {
        aspect-ratio: 16 / 10;
        border-width: 0.5rem;
    }

    .service-card {
        min-height: auto;
    }

    .cta img {
        min-height: 16rem;
    }

    .visual-band img {
        min-height: 16rem;
    }

    .process-step {
        grid-template-columns: 2.8rem 1fr;
        gap: 0.8rem;
    }

    .process-icon {
        width: 2.8rem;
        height: 2.8rem;
    }

    .process-line-start {
        flex-basis: 0.9rem;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }
}