/* ==========================================================================
   Traivis v2 — Light Product Studio Design System
   Palette : #F5F2EE (bg) · #EDEAE5 (surface) · #E4E0DB (elevated)
             #C8391A (vermillon) · #1A1614 (text) · #7A746E (muted)
   Typo    : Syne (display/titles) · DM Mono (labels/code)
             Plus Jakarta Sans (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg:        #F5F2EE;
  --surface:   #EDEAE5;
  --elevated:  #E4E0DB;
  --border:    rgba(26,22,20,0.08);
  --border-md: rgba(26,22,20,0.14);
  --cobalt:    #C8391A;
  --cobalt-dim:#a82e13;
  --cobalt-glow: rgba(200,57,26,0.14);
  --cobalt-subtle: rgba(200,57,26,0.07);
  --white:     #FFFFFF;
  --muted:     #7A746E;
  --muted-2:   #A09A94;
  --txt:       #1A1614;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--txt);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ---------- Typography ---------- */
.font-display {
    font-family: 'Syne', sans-serif;
}

.font-mono {
    font-family: 'DM Mono', monospace;
}

.tag-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
}

/* ---------- Borders & Surfaces ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.card-elevated {
    background: var(--elevated);
    border: 1px solid var(--border-md);
    border-radius: 1rem;
}

.card-cobalt {
    background: var(--cobalt-subtle);
    border: 1px solid rgba(200,57,26,0.25);
    border-radius: 1rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cobalt);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    letter-spacing: 0.01em;
}
.btn-primary:hover {
    background: var(--cobalt-dim);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(200,57,26,0.28);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--txt);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--border-md);
    border-radius: 0.5rem;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.btn-ghost:hover {
    border-color: rgba(26,22,20,0.3);
    color: var(--txt);
    background: rgba(26,22,20,0.05);
}

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--cobalt);
    z-index: 200;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    display: flex;
    justify-content: center;
    padding-top: 1.25rem;
    pointer-events: none;
}

/* Le pill lui-même */
.header-pill {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 820px;
    padding: 0.65rem 0.65rem 0.65rem 1.25rem;
    background: rgba(245,242,238,0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-md);
    border-radius: 100px;
    box-shadow: 0 2px 16px rgba(26,22,20,0.07), 0 1px 2px rgba(26,22,20,0.04);
    transition: max-width 0.45s cubic-bezier(0.4,0,0.2,1),
                padding   0.45s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.45s ease;
}

.site-header.scrolled .header-pill {
    max-width: 560px;
    box-shadow: 0 4px 24px rgba(26,22,20,0.1), 0 1px 2px rgba(26,22,20,0.05);
}

.site-header.scrolled .header-nav {
    width: 170px;
}

.site-header.scrolled .btn-primary--sm {
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 500;
}

.site-header.scrolled .btn-primary--sm:hover {
    background: transparent;
    color: var(--txt);
    box-shadow: none;
    transform: none;
}

/* Logo centré */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon img {
    width: 48px;
    height: 48px;
    display: block;
}

.logo-wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--txt);
    letter-spacing: -0.03em;
    line-height: 1;
    transition: opacity 0.3s ease, max-width 0.3s ease;
}

/* Nav gauche & droite */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
    width: 220px;
}

.header-nav--left { justify-content: flex-end; }
.header-nav--right { justify-content: flex-start; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

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

/* Variante taille réduite pour le header */
.btn-primary--sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.775rem;
    border-radius: 100px;
    white-space: nowrap;
}


/* ---------- Burger ---------- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.burger-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--txt);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.25s ease,
                width     0.3s ease;
}

/* Croix */
.burger--open .burger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.burger--open .burger-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.burger--open .burger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-menu--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--txt);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: color 0.18s ease;
    opacity: 0;
    transform: translateY(16px);
    transition: color 0.18s ease,
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu--open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu--open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu--open .mobile-nav-link:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu--open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu--open .mobile-nav-link:nth-child(4) { transition-delay: 0.20s; }

.mobile-nav-link:hover { color: var(--cobalt); }

.mobile-nav-cta {
    font-size: 0.85rem;
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cobalt);
    border: 1px solid var(--cobalt);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    margin-top: 1rem;
}

.mobile-nav-cta:hover {
    background: var(--cobalt);
    color: #fff;
}

body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .site-header { padding-top: 0.875rem; }
    .header-pill {
        max-width: calc(100vw - 2rem);
        border-radius: 100px;
    }
    .site-header.scrolled .header-pill { max-width: calc(100vw - 2rem); }
    .header-nav--left { display: none; }
    .header-nav--right { display: none; }
    .burger { display: flex; }
    .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 540px;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cobalt-subtle);
    border: 1px solid rgba(200,57,26,0.22);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    margin-bottom: 2rem;
    width: fit-content;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cobalt);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

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

.hero-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--txt);
    margin-bottom: 1.5rem;
}

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

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sphère 3D */
.hero-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    max-width: 520px;
    justify-self: center;
    position: relative;
}

.hero-3d canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Labels produits en orbite */
.orbit-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orbit-label {
    position: absolute;
    top: 50%;
    left: 50%;
    will-change: transform, opacity;
    transition: opacity 0.1s linear;
}

.orbit-label span {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--txt);
    background: rgba(245,242,238,0.88);
    border: 1px solid var(--border-md);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(26,22,20,0.07);
}


@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    .hero-3d {
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-title {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
    }
}

/* ---------- Ribbon Marquee ---------- */
.marquee-ribbon {
    overflow: hidden;
    background: #EDE9E4;
    padding: 1.25rem 0;
    position: relative;
}

/* Fondu sur les bords */
.marquee-ribbon::before,
.marquee-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee-ribbon::before {
    left: 0;
    background: linear-gradient(to right, #EDE9E4, transparent);
}
.marquee-ribbon::after {
    right: 0;
    background: linear-gradient(to left, #EDE9E4, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0 0.875rem;
    white-space: nowrap;
}

.marquee-text {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(26,22,20,0.45);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.marquee-item:hover .marquee-text {
    color: rgba(26,22,20,0.85);
}

.marquee-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cobalt);
    opacity: 0.7;
}

.marquee-arrow {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(0deg);
}

.marquee-reverse .marquee-arrow {
    transform: rotate(180deg);
}

/* ---------- Section Base ---------- */
.section {
    padding: 7rem 0;
}

.section-sm {
    padding: 4.5rem 0;
}

.section-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cobalt);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--txt);
    margin-bottom: 1.25rem;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.7;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
}

.bento-cell {
    background: var(--surface);
    padding: 2.25rem;
    transition: background 0.22s ease;
    position: relative;
    overflow: hidden;
}

.bento-cell:hover { background: var(--elevated); }

.bento-cell.col-3  { grid-column: span 3; }
.bento-cell.col-4  { grid-column: span 4; }
.bento-cell.col-5  { grid-column: span 5; }
.bento-cell.col-6  { grid-column: span 6; }
.bento-cell.col-7  { grid-column: span 7; }
.bento-cell.col-8  { grid-column: span 8; }
.bento-cell.col-12 { grid-column: span 12; }

.bento-cell.cobalt-cell {
    background: var(--cobalt-subtle);
}

.bento-cell.cobalt-cell:hover {
    background: rgba(200,57,26,0.12);
}

.bento-number {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--txt);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.bento-number span {
    color: var(--cobalt);
}

.bento-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.575rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cobalt);
    display: block;
    margin-bottom: 0.75rem;
}

.bento-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--txt);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bento-desc {
    font-size: 0.825rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Bento visual elements */
.bento-nodes {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
.bento-cell:hover .bento-nodes { opacity: 0.55; }

.bento-metric {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--cobalt);
    letter-spacing: -0.04em;
    line-height: 1;
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr 1fr; background: none; border: none; gap: 0.75rem; }
    .bento-cell.col-3,
    .bento-cell.col-4,
    .bento-cell.col-5,
    .bento-cell.col-6,
    .bento-cell.col-7,
    .bento-cell.col-8 { grid-column: span 1; }
    .bento-cell.col-12 { grid-column: span 2; }
    .bento-cell { border: 1px solid var(--border); border-radius: 0.875rem; }
}

@media (max-width: 540px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-cell.col-12 { grid-column: span 1; }
}

/* ---------- Team ---------- */
.team-avatars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.team-avatars--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Cadre de l'avatar — double anneau concentrique */
.avatar-frame {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.75rem;
    /* Anneau extérieur fin : vermillon */
    border-radius: 50%;
    outline: 1.5px solid var(--cobalt);
    outline-offset: 8px;
    /* Anneau intérieur : gris doux */
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--border-md);
    transition: outline-color 0.3s ease, box-shadow 0.3s ease;
}

.team-avatar:hover .avatar-frame {
    outline-color: var(--cobalt);
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--cobalt);
}

/* Conteneur photo rond */
.avatar-img-wrap {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--elevated);
}

.avatar-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.team-avatar:hover .avatar-img-wrap img {
    transform: scale(1.05);
}

.avatar-dot { display: none; }

/* Texte sous l'avatar */
.avatar-body {
    text-align: center;
}

.avatar-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--txt);
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.avatar-role {
    font-family: 'DM Mono', monospace;
    font-size: 0.575rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cobalt);
    display: block;
    margin-bottom: 0.875rem;
}

.avatar-bio {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.team-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--elevated);
    border: 1px solid var(--border);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

@media (max-width: 1024px) {
    .team-avatars--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .team-avatars { grid-template-columns: 1fr; gap: 3.5rem; }
    .team-avatars--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .team-avatars--4 { grid-template-columns: 1fr; }
}

/* ---------- Products Catalogue ---------- */
.products-intro {
    max-width: 600px;
    margin-bottom: 4.5rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
}

.product-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: var(--surface);
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 2rem;
    transition: background 0.22s ease;
    position: relative;
    overflow: hidden;
}

.product-item:hover { background: var(--elevated); }

.product-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cobalt);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.product-item:hover::after { transform: scaleY(1); }

.product-index {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--muted-2);
    text-align: right;
}

.product-info {}

.product-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--txt);
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.product-tagline {
    font-size: 0.825rem;
    color: var(--muted);
    line-height: 1.5;
}

.product-pill {
    font-family: 'DM Mono', monospace;
    font-size: 0.575rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cobalt);
    background: var(--cobalt-subtle);
    border: 1px solid rgba(200,57,26,0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* CTA "Voir le site" — bloc pleine hauteur depuis la droite */
.product-visit {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: var(--cobalt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: 0.875rem 0 0 0.875rem;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.product-item:hover .product-visit {
    transform: translateX(0);
    pointer-events: auto;
}

.product-visit-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.575rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 500;
}

.product-visit svg {
    color: #fff;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .product-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.5rem;
    }
    .product-index { text-align: left; }
    .product-pill { width: fit-content; }
}

/* ---------- Lab Section ---------- */
.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.lab-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 1.75rem;
    transition: border-color 0.22s ease, background 0.22s ease;
    position: relative;
    overflow: hidden;
}

.lab-item:hover {
    border-color: var(--border-md);
    background: var(--elevated);
}

.lab-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lab-product-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.575rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cobalt);
    background: var(--cobalt-subtle);
    border: 1px solid rgba(200,57,26,0.2);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

.lab-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.575rem;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}

.lab-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.975rem;
    color: var(--txt);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.lab-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .lab-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust / Clients ---------- */
.trust-section {
    border-top: 1px solid var(--border);
    padding: 5rem 0;
}

.trust-header {
    margin-bottom: 3rem;
}

.trust-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid var(--border-md);
    border-radius: 1.25rem;
    overflow: hidden;
}

/* Cartes alternées : pair plus hautes */
.trust-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem 1.5rem;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    min-height: 180px;
    transition: background 0.35s ease;
}

.trust-card:last-child {
    border-right: none;
}

.trust-card:nth-child(even) {
    min-height: 220px;
    background: var(--elevated);
}

/* Trait vermillon gauche au hover */
.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--cobalt);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.trust-card:hover {
    background: var(--bg);
}

/* Numéro éditorial en arrière-plan */
.trust-card-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    color: var(--border-md);
    position: absolute;
    top: -0.5rem;
    right: 0.75rem;
    letter-spacing: -0.06em;
    transition: color 0.35s ease;
    pointer-events: none;
    user-select: none;
}

.trust-card:hover .trust-card-num {
    color: rgba(200,57,26,0.08);
}

/* Logo */
.trust-card-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.trust-card-logo img {
    max-height: 140px;
    max-width: 260px;
    width: auto;
    object-fit: contain;
    margin-top: 3rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-card:hover .trust-card-logo img {
    transform: translateY(-3px);
}

/* Nom + URL en bas */
.trust-card-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transform: translateY(6px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.trust-card:hover .trust-card-meta {
    transform: translateY(0);
    opacity: 1;
}

.trust-card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--txt);
    letter-spacing: -0.01em;
}

.trust-card-url {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    color: var(--cobalt);
    text-transform: lowercase;
}

@media (max-width: 900px) {
    .trust-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .trust-card:nth-child(n) {
        border-bottom: 1px solid var(--border);
        min-height: 160px;
    }
}

@media (max-width: 540px) {
    .trust-cards { grid-template-columns: 1fr 1fr; }
}

/* ---------- Method Timeline ---------- */
.bento-method-header {
    margin-bottom: 2.5rem;
}

.method-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 2.5rem;
}

.method-step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.method-step-day {
    font-family: 'DM Mono', monospace;
    font-size: 0.575rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.method-step--active .method-step-day {
    color: var(--cobalt);
}

/* Ligne + point alignés proprement */
.method-step-line {
    position: relative;
    height: 10px;
    display: flex;
    align-items: center;
}

/* Trait horizontal pleine colonne */
.method-step-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-md);
    transform: translateY(-50%);
}

/* Dernier step : trait seulement jusqu'au point */
.method-step:last-child .method-step-line::before {
    width: 10px;
}

.method-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-md);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.2s, border-color 0.2s;
}

.method-step--active .method-step-dot {
    background: var(--cobalt);
    border-color: var(--cobalt);
    box-shadow: 0 0 0 4px var(--cobalt-subtle);
}

.method-step-connector {
    display: none;
}

.method-step-phase {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--txt);
    letter-spacing: -0.02em;
}

.method-step--active .method-step-phase {
    color: var(--cobalt);
}

.method-step-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
}

.method-footer {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.method-footer-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.method-footer-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.method-footer-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--txt);
}

.method-footer-sep {
    width: 1px;
    height: 32px;
    background: var(--border);
}

@media (max-width: 768px) {
    .method-timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .method-step-connector { display: none; }
    .method-footer { gap: 1.25rem; }
    .method-footer-sep { display: none; }
}

@media (max-width: 480px) {
    .method-timeline { grid-template-columns: 1fr; }
}

/* ---------- Contact Section ---------- */
.contact-block {
    background: var(--surface);
    border: 1px solid var(--border-md);
    border-radius: 1.5rem;
    padding: 5rem;
    position: relative;
    overflow: hidden;
}

.contact-block::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(200,57,26,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.contact-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: var(--txt);
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 640px;
    margin-bottom: 1.25rem;
}

.contact-sub {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-meta {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .contact-block { padding: 2.5rem 1.75rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 4.5rem 0 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.825rem;
    color: var(--muted);
    max-width: 260px;
    line-height: 1.65;
    margin-top: 0.875rem;
}

.footer-col-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.825rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-links a:hover { color: var(--txt); }

.footer-member {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.footer-member-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    white-space: nowrap;
}

.footer-member-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-member-logo:hover { opacity: 1; }

.footer-member-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-legal a:hover { color: var(--txt); }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Mentions légales ---------- */
.mentions-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mentions-block {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.mentions-block:first-child {
    padding-top: 0;
}

.mentions-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--txt);
    letter-spacing: -0.02em;
}

.mentions-block p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
}

.mentions-block a {
    color: var(--cobalt);
    text-decoration: none;
}

.mentions-block a:hover {
    text-decoration: underline;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Misc Utilities ---------- */
.cobalt-text { color: var(--cobalt); }
.muted-text  { color: var(--muted); }
.white-text  { color: var(--white); }

.divider {
    height: 1px;
    background: var(--border);
    border: none;
}

/* ---------- Custom cursor (desktop uniquement) ---------- */
@media (pointer: fine) {
    *, *::before, *::after { cursor: none !important; }

    #custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: var(--txt);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: transform 0.12s ease, background 0.18s ease, width 0.18s ease, height 0.18s ease;
    }

    #custom-cursor.hover {
        width: 20px;
        height: 20px;
        background: var(--cobalt);
        opacity: 0.85;
    }

    #custom-cursor.hover-light {
        width: 12px;
        height: 12px;
        background: #fff;
        opacity: 1;
    }
}

@media (pointer: coarse) {
    #custom-cursor { display: none; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Selection */
::selection { background: var(--cobalt); color: var(--white); }
