/* ═══════════════════════════════════════════════════════
   RIVA ARCHITECTES — style.css
   Épure Radicale / Brutalisme Chic
   Mobile-first, CSS Variables, Grid Layout
═══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   1. DESIGN TOKENS & CSS VARIABLES
────────────────────────────────────── */
:root {
    /* Palette */
    --clr-bg:           #F5F5F5;
    --clr-bg-alt:       #EEEEEE;
    --clr-text:         #1A1A1A;
    --clr-text-muted:   #000;
    --clr-line:         #D1D1D1;
    --clr-accent:       #1A1A1A;
    --clr-star:         #C8A050;
  
    /* Dark mode vars (toggled via data-theme) */
    --clr-bg-dark:      #0F0F0F;
    --clr-text-dark:    #FFF;
  
    /* Typography */
    --font-display:     'Bebas Neue', sans-serif;
    --font-body:        'DM Mono', monospace;
    --font-serif:       'Cormorant Garamond', serif;
  
    /* Spacing scale */
    --space-xs:   clamp(0.5rem, 1vw, 0.75rem);
    --space-sm:   clamp(0.75rem, 1.5vw, 1rem);
    --space-md:   clamp(1rem, 2.5vw, 1.5rem);
    --space-lg:   clamp(1.5rem, 4vw, 3rem);
    --space-xl:   clamp(3rem, 7vw, 6rem);
    --space-2xl:  clamp(5rem, 12vw, 10rem);
  
    /* Layout */
    --container:  min(100% - 3rem, 1400px);
    --col-gap:    clamp(1rem, 3vw, 2rem);
  
    /* Transitions */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
    --dur-fast:   180ms;
    --dur-base:   320ms;
    --dur-slow:   600ms;
  }
  
  /* ──────────────────────────────────────
     2. RESET & BASE
  ────────────────────────────────────── */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  html.gsap-scroll {
    scroll-behavior: auto;
  }
  
  body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    line-height: 1.7;
    overflow-x: hidden;
    transition:
      background-color 0.8s var(--ease-out),
      color 0.8s var(--ease-out);
    cursor: none;
  }
  
  @media (hover: none) {
    body { cursor: auto; }
  }
  
  body[data-theme="dark"] {
    --clr-bg:         var(--clr-bg-dark);
    --clr-text:       var(--clr-text-dark);
    --clr-line:       #2A2A2A;
    --clr-text-muted: #FFF;
    --clr-bg-alt:     #1A1A1A;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img, svg {
    display: block;
    max-width: 100%;
  }
  
  button {
    cursor: none;
    font-family: inherit;
    border: none;
    background: none;
  }
  
  @media (hover: none) {
    button { cursor: pointer; }
  }
  
  input, textarea, select {
    font-family: inherit;
  }
  
  address {
    font-style: normal;
  }
  
  /* ──────────────────────────────────────
     3. CURSOR PERSONNALISE
  ────────────────────────────────────── */
  .cursor,
  .cursor-follower {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
  }
  
  .cursor {
    width: 8px;
    height: 8px;
    background: var(--clr-text);
    transition:
      background-color 0.4s,
      width 0.3s var(--ease-out),
      height 0.3s var(--ease-out);
  }
  
  .cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid var(--clr-text);
    opacity: 0.5;
    transition:
      width 0.3s var(--ease-out),
      height 0.3s var(--ease-out),
      opacity 0.3s,
      border-color 0.4s;
  }
  
  body.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    opacity: 0.2;
  }
  
  body.cursor-project .cursor {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 1px solid var(--clr-text);
  }
  body.cursor-project .cursor-follower {
    opacity: 0;
  }
  
  /* Inversion automatique en dark mode — toujours visible */
  body[data-theme="dark"] .cursor,
  body[data-theme="dark"] .cursor-follower {
    mix-blend-mode: difference;
  }
  
  @media (hover: none) {
    .cursor, .cursor-follower { display: none; }
  }
  
  /* ──────────────────────────────────────
     4. LOADER
  ────────────────────────────────────── */
  .loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-in), visibility 0.6s;
  }
  
  .loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .loader__inner {
    text-align: center;
    width: min(80%, 300px);
  }
  
  .loader__counter {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-md);
  }
  
  .loader__bar {
    width: 100%;
    height: 1px;
    background: var(--clr-line);
    margin-bottom: var(--space-sm);
    overflow: hidden;
  }
  
  .loader__bar-fill {
    height: 100%;
    width: 0%;
    background: var(--clr-text);
    transition: width 0.05s linear;
  }
  
  .loader__label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
  }
  
  /* ──────────────────────────────────────
     5. HEADER & NAVIGATION
  ────────────────────────────────────── */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid transparent;
    transition:
      border-color var(--dur-base) var(--ease-out),
      background-color var(--dur-slow) var(--ease-out),
      backdrop-filter var(--dur-slow);
  }
  
  .header.is-scrolled {
    border-color: var(--clr-line);
    background: rgba(245, 245, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  body[data-theme="dark"] .header.is-scrolled {
    background: rgba(15, 15, 15, 0.85);
  }
  
  .header__logo {
    width: 10%;
  }
  
  .header__logo img {
    width: 50%;
    height: auto;
    display: block;
  }
  
  .header__nav {
    display: none;
    gap: var(--space-xl);
  }
  
  @media (min-width: 768px) {
    .header__nav { display: flex; }
  }
  
  .nav__link {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    transition: color var(--dur-fast);
    position: relative;
  }
  
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-text);
    transition: width var(--dur-base) var(--ease-out);
  }
  
  .nav__link:hover { color: var(--clr-text); }
  .nav__link:hover::after { width: 100%; }
  
  .header__meta {
    display: none;
  }
  
  @media (min-width: 1024px) {
    .header__meta { display: flex; }
  }
  
  .header__status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.1em;
  }
  
  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse-dot 2s infinite;
  }
  
  @keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
  }
  
  .header__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
  }
  
  @media (min-width: 768px) {
    .header__burger { display: none; }
  }
  
  .header__burger span {
    display: block;
    height: 2px;
    background: var(--clr-text);
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
    transform-origin: center;
  }
  
  .header__burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .header__burger.is-open span:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--clr-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2%);
    transition:
      opacity var(--dur-slow) var(--ease-out),
      visibility var(--dur-slow),
      transform var(--dur-slow) var(--ease-out);
  }
  
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .mobile-nav__link {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--clr-text);
    opacity: 0;
    transform: translateX(-20px);
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out),
      color var(--dur-fast);
  }
  
  .mobile-menu.is-open .mobile-nav__link {
    opacity: 1;
    transform: translateX(0);
  }
  
  .mobile-menu.is-open .mobile-nav__link:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu.is-open .mobile-nav__link:nth-child(2) { transition-delay: 0.15s; }
  .mobile-menu.is-open .mobile-nav__link:nth-child(3) { transition-delay: 0.2s; }
  .mobile-menu.is-open .mobile-nav__link:nth-child(4) { transition-delay: 0.25s; }
  
  .mobile-nav__link:hover { color: var(--clr-text-muted); }
  
  .mobile-menu__footer {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.1em;
    border-top: 1px solid var(--clr-line);
    padding-top: var(--space-md);
  }
  
  /* ──────────────────────────────────────
     6. SECTION HERO
  ────────────────────────────────────── */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--space-2xl) + 4rem) var(--space-lg) var(--space-xl);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--clr-line);
  }
  
  .hero__content {
    width: var(--container);
    margin: 0 auto;
  }
  
  .hero__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
  }
  
  .hero__separator { color: var(--clr-line); }
  
  .hero__title {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 12vw, 14rem);
    letter-spacing: -0.02em;
    line-height: 0.92;
    margin-bottom: var(--space-xl);
    overflow: hidden;
  }
  
  .hero__title-line {
    display: block;
    transform: translateY(110%);
  }
  
  .hero__title-line--italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.85em;
    padding-left: clamp(2rem, 6vw, 8rem);
  }
  
  .hero__descriptor {
    max-width: 480px;
    margin-bottom: var(--space-xl);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--clr-text-muted);
    line-height: 1.8;
    transform: translateY(20px);
    opacity: 0;
  }
  
  /* ─────── FILTRES HERO style H&dM ─────── */
  .hero__filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--clr-line);
    border-bottom: 1px solid var(--clr-line);
    opacity: 0;
  }
  
  @media (min-width: 768px) {
    .hero__filters {
      display: flex;
      flex-wrap: nowrap;
    }
  }
  
  .filter-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
    gap: var(--space-xs);
    border-right: 1px solid var(--clr-line);
    border-bottom: 1px solid var(--clr-line);
    transition:
      background-color var(--dur-base) var(--ease-out),
      color var(--dur-base);
    text-align: left;
    cursor: none;
  }
  
  @media (min-width: 768px) {
    .filter-btn {
      flex: 1;
      border-bottom: none;
    }
    .filter-btn:last-child {
      border-right: none;
    }
  }
  
  @media (max-width: 767px) {
    .filter-btn:nth-child(even) {
      border-right: none;
    }
    .filter-btn:nth-last-child(-n+2) {
      border-bottom: 1px solid var(--clr-line);
    }
    .filter-btn:last-child:nth-child(odd) {
      grid-column: span 2;
      border-right: none;
      border-bottom: 1px solid var(--clr-line);
    }
  }
  
  @media (hover: none) {
    .filter-btn { cursor: pointer; }
  }
  
  .filter-btn:hover {
    background: var(--clr-text);
    color: var(--clr-bg);
  }
  
  .filter-btn--active {
    background: var(--clr-text);
    color: var(--clr-bg);
  }
  
  .filter-btn__count {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1;
  }
  
  .filter-btn__label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
  }
  
  .hero__scroll {
    position: absolute;
    right: var(--space-lg);
    bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .scroll-line {
    width: 1px;
    height: 60px;
    background: var(--clr-line);
    position: relative;
    overflow: hidden;
  }
  
  .scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-text);
    animation: scroll-line-anim 2s ease-in-out infinite;
  }
  
  @keyframes scroll-line-anim {
    0% { top: -100%; }
    100% { top: 100%; }
  }
  
  .hero__scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    writing-mode: vertical-rl;
  }
  
  .hero__bg-number {
    position: absolute;
    bottom: -0.15em;
    right: -0.05em;
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 28rem);
    color: transparent;
    -webkit-text-stroke: 1px var(--clr-line);
    text-stroke: 1px var(--clr-line);
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    opacity: 0.5;
  }
  
  /* ──────────────────────────────────────
     7. SECTION HEADERS PARTAGES
  ────────────────────────────────────── */
  .section-header {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--clr-line);
    margin-bottom: var(--space-xl);
  }
  
  .section-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-xs);
  }
  
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    line-height: 1;
    font-weight: 400;
  }
  
  .section-header__right {
    max-width: 360px;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
    padding-bottom: 0.2em;
  }
  
  /* ──────────────────────────────────────
     8. SECTION PROJETS
  ────────────────────────────────────── */
  .projects {
    padding: var(--space-2xl) var(--space-lg);
    border-bottom: 1px solid var(--clr-line);
  }
  
  .projects__grid {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--col-gap);
  }
  
  @media (min-width: 1024px) {
    .projects__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .project-card {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--clr-line);
    padding-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out);
  }
  
  .project-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .project-card--large {
    grid-column: span 2;
  }
  
  .project-card.is-filtered {
    display: none;
  }
  
  .project-card__link {
    display: block;
    text-decoration: none;
  }
  
  .project-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: var(--space-md);
  }
  
  .project-card--large .project-card__image-wrap {
    aspect-ratio: 16 / 7;
  }
  
  .project-card__image {
    width: 100%;
    height: 100%;
    background: var(--img-bg, var(--clr-bg-alt));
  }
  
  .project-card__image svg,
  .project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.8s var(--ease-out);
    will-change: transform;
  }
  
  .project-card:hover .project-card__image img {
    transform: scale(1.05);
  }
  
  .project-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
    backdrop-filter: blur(2px);
  }
  
  .project-card:hover .project-card__overlay {
    opacity: 1;
  }
  
  .overlay__cta {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F5F5F5;
  }
  
  .project-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
  }
  
  .project-card__num {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    font-family: var(--font-body);
  }
  
  .project-card__category {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    padding: 2px 8px;
    border: 1px solid var(--clr-line);
    border-radius: 2px;
  }
  
  .project-card__year {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    margin-left: auto;
  }
  
  .project-card__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
    color: var(--clr-text);
    transition: color var(--dur-fast);
  }
  
  .project-card:hover .project-card__title {
    color: var(--clr-text-muted);
  }
  
  .project-card__location {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
  }
  
  .projects__empty {
    width: var(--container);
    margin: var(--space-xl) auto;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }
  
  /* ──────────────────────────────────────
     9. SECTION AGENCE
  ────────────────────────────────────── */
  .agency {
    padding: var(--space-2xl) var(--space-lg);
    border-bottom: 1px solid var(--clr-line);
  }
  
  .agency__grid {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    gap: var(--col-gap);
    grid-template-columns: 1fr;
  }
  
  @media (min-width: 768px) {
    .agency__grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
    }
  }
  
  @media (min-width: 1200px) {
    .agency__grid {
      grid-template-columns: 2fr 1.5fr 1fr;
      grid-template-rows: auto auto;
    }
  }
  
  .agency__intro { grid-column: 1; grid-row: 1; }
  
  @media (min-width: 1200px) {
    .agency__intro { grid-column: 1; grid-row: 1 / 3; }
  }
  
  .agency__headline {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  
  .agency__headline em {
    font-style: italic;
    color: var(--clr-text-muted);
  }
  
  .agency__text {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  
  @media (min-width: 768px) { .agency__text { grid-column: 2; grid-row: 1; } }
  @media (min-width: 1200px) { .agency__text { grid-column: 2; grid-row: 1; } }
  
  .agency__text p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.85;
  }
  
  .agency__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border: 1px solid var(--clr-line);
    align-self: start;
  }
  
  @media (min-width: 768px) { .agency__stats { grid-column: 2; grid-row: 2; } }
  @media (min-width: 1200px) { .agency__stats { grid-column: 2; grid-row: 2; } }
  
  .stat {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    border-right: 1px solid var(--clr-line);
    border-bottom: 1px solid var(--clr-line);
  }
  
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  
  .stat__num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-xs);
  }
  
  .stat__label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
  }
  
  .agency__portrait {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }
  
  .agency__portrait svg { width: 100%; height: 100%; }
  
  @media (min-width: 1200px) {
    .agency__portrait { grid-column: 3; grid-row: 1 / 3; }
  }
  
  .agency__portrait-caption {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    background: var(--clr-bg);
    padding: 3px 8px;
  }
  
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
  }
  
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ──────────────────────────────────────
     10. SECTION AVIS CLIENTS
  ────────────────────────────────────── */
  .reviews {
    padding: var(--space-2xl) var(--space-lg);
    border-bottom: 1px solid var(--clr-line);
  }
  
  .reviews__badge {
    width: var(--container);
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--clr-line);
  }
  
  .reviews__score {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  
  .reviews__score-num {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 1;
  }
  
  .reviews__stars { display: flex; gap: 3px; }
  
  .star { width: 20px; height: 20px; color: var(--clr-star); }
  .star--almost { color: var(--clr-star); opacity: 0.85; }
  
  .reviews__count {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
    align-self: flex-end;
    padding-bottom: 3px;
  }
  
  .reviews__source {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.08em;
  }
  
  .reviews__carousel {
    width: var(--container);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }
  
  .reviews__track {
    display: flex;
    gap: var(--col-gap);
    transition: transform 0.6s var(--ease-out);
    will-change: transform;
  }
  
  .review-card {
    flex: 0 0 calc(100% - var(--col-gap));
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--clr-line);
    background: var(--clr-bg);
    transition: background-color var(--dur-slow);
  }
  
  @media (min-width: 768px) {
    .review-card { flex: 0 0 calc(50% - var(--col-gap) / 2); }
  }
  
  @media (min-width: 1200px) {
    .review-card { flex: 0 0 calc(33.333% - var(--col-gap) * 2 / 3); }
  }
  
  .review-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
  }
  
  .review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-text);
    color: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }
  
  .review-card__meta { flex: 1; }
  
  .review-card__author {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2px;
  }
  
  .review-card__date {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.08em;
  }
  
  .review-card__stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
  }
  
  .review-card__stars .star { width: 14px; height: 14px; }
  
  .review-card__text {
    font-family: var(--font-serif);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--clr-text);
    font-style: italic;
  }
  
  .review-card__text::before {
    content: '\201C';
    font-size: 2.5em;
    font-family: var(--font-serif);
    line-height: 0;
    vertical-align: -0.5em;
    margin-right: 0.1em;
    color: var(--clr-line);
  }
  
  .reviews__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }
  
  .reviews__prev,
  .reviews__next {
    width: 44px;
    height: 44px;
    border: 1px solid var(--clr-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text);
    transition:
      background-color var(--dur-fast),
      color var(--dur-fast);
    cursor: none;
  }
  
  @media (hover: none) {
    .reviews__prev, .reviews__next { cursor: pointer; }
  }
  
  .reviews__prev:hover,
  .reviews__next:hover {
    background: var(--clr-text);
    color: var(--clr-bg);
  }
  
  .reviews__dots { display: flex; gap: 8px; }
  
  .reviews__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-line);
    border: none;
    cursor: none;
    transition: background var(--dur-fast), width var(--dur-base) var(--ease-out);
    padding: 0;
  }
  
  @media (hover: none) { .reviews__dot { cursor: pointer; } }
  
  .reviews__dot.is-active {
    background: var(--clr-text);
    width: 20px;
    border-radius: 3px;
  }
  
  /* ──────────────────────────────────────
     11. SECTION CONTACT
  ────────────────────────────────────── */
  .contact {
    padding: var(--space-2xl) var(--space-lg);
    border-bottom: 1px solid var(--clr-line);
  }
  
  .contact__inner {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    gap: var(--col-gap);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-2xl);
  }
  
  @media (min-width: 900px) {
    .contact__inner {
      grid-template-columns: 1fr 1.4fr;
      align-items: start;
    }
  }
  
  .contact__title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  
  .contact__title em {
    font-style: italic;
    display: block;
  }
  
  .contact__sub {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
  }
  
  .contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .form-group--full { grid-column: 1 / -1; }
  
  .form-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
  }
  
  .form-input {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-line);
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
    color: var(--clr-text);
    transition: border-color var(--dur-fast);
    outline: none;
    width: 100%;
  }
  
  .form-input::placeholder { color: var(--clr-line); }
  .form-input:focus { border-color: var(--clr-text); }
  
  .form-select {
    cursor: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='1.5'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
  }
  
  @media (hover: none) { .form-select { cursor: pointer; } }
  
  .form-textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  .form-submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--clr-text);
    color: var(--clr-bg);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: none;
    transition:
      background-color var(--dur-fast),
      color var(--dur-fast);
    margin-top: var(--space-sm);
  }
  
  @media (hover: none) { .form-submit { cursor: pointer; } }
  
  .form-submit:hover { background: var(--clr-text-muted); }
  
  .form-legal {
    grid-column: 1 / -1;
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
  }
  
  .form-legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  .contact__details {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--clr-line);
  }
  
  @media (min-width: 768px) {
    .contact__details { grid-template-columns: repeat(4, 1fr); }
  }
  
  .contact__detail {
    padding: var(--space-lg);
    border-right: 1px solid var(--clr-line);
    border-bottom: 1px solid var(--clr-line);
  }
  
  .contact__detail:last-child { border-right: none; }
  
  @media (min-width: 768px) {
    .contact__detail { border-bottom: none; }
  }
  
  .contact__detail-label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-sm);
  }
  
  .contact__detail-value {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--clr-text);
  }
  
  .contact__social {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .contact__social a {
    font-size: 0.8rem;
    color: var(--clr-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--dur-fast);
  }
  
  .contact__social a:hover { color: var(--clr-text-muted); }
  
  /* ──────────────────────────────────────
     12. FOOTER
  ────────────────────────────────────── */
  .footer {
    padding: var(--space-xl) var(--space-lg);
    background: var(--clr-text);
    color: var(--clr-bg);
    transition: background-color 0.8s var(--ease-out), color 0.8s var(--ease-out);
  }
  
  .footer__inner {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  @media (min-width: 768px) {
    .footer__inner { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
  }
  
  .footer__logo { display: flex; flex-direction: column; gap: 2px; }
  
  .footer__logo span:first-child {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1;
  }
  
  .footer__logo-sub {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
  }
  
  .footer__tagline {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    opacity: 0.5;
    line-height: 1.6;
  }
  
  .footer__nav { display: flex; flex-direction: column; gap: var(--space-sm); }
  
  .footer__nav a {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity var(--dur-fast);
  }
  
  .footer__nav a:hover { opacity: 1; }
  
  .footer__legal {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.65rem;
    opacity: 0.4;
    letter-spacing: 0.05em;
  }
  
  .footer__legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  /* ──────────────────────────────────────
     13. RESPONSIVE AJUSTEMENTS
  ────────────────────────────────────── */
  @media (max-width: 600px) {
    .projects__grid { grid-template-columns: 1fr; }
    .project-card--large { grid-column: span 1; }
    .project-card--large .project-card__image-wrap { aspect-ratio: 4 / 3; }
    .contact__form { grid-template-columns: 1fr; }
    .review-card { flex: 0 0 calc(100% - var(--col-gap)); }
    .contact__details { grid-template-columns: 1fr; }
    .contact__detail { border-right: none; border-bottom: 1px solid var(--clr-line); }
    .contact__detail:last-child { border-bottom: none; }
  }
  
  /* ──────────────────────────────────────
     14. UTILITAIRES
  ────────────────────────────────────── */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  :focus-visible {
    outline: 2px solid var(--clr-text);
    outline-offset: 4px;
  }
  
  ::selection {
    background: var(--clr-text);
    color: var(--clr-bg);
  }
  
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-track { background: var(--clr-bg); }
  ::-webkit-scrollbar-thumb { background: var(--clr-line); }
  ::-webkit-scrollbar-thumb:hover { background: var(--clr-text-muted); }
  
  @media print {
    .header, .loader, .cursor, .cursor-follower, .hero__scroll, .hero__bg-number {
      display: none !important;
    }
    body { font-size: 12pt; color: #000; background: #fff; }
  }

  /* Sortie */
body { animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}