/* ==========================================================
   Portfolio : direction éditoriale claire. Fond blanc, nom géant
   sur toute la largeur, cartes photo serrées, bloc sombre arrondi.
   Modifier les couleurs / typos ici, dans :root.
   ========================================================== */

/* Polices hébergées sur le site (sous-ensemble latin récupéré sur Google Fonts : suffit pour le français) : pas de requête tierce bloquante.
   Deux familles seulement : Montserrat (nom et grands titres) et Inter (texte, petites mentions).
   Ce sont des polices variables : un fichier par style couvre toutes les graisses. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../assets/fonts/montserrat-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #f2f2f0;          /* fond des cartes et des images en chargement */
  --text: #111111;
  --text-soft: rgba(17, 17, 17, .78);
  --muted: #7a7a7a;            /* texte secondaire : contraste AA sur --bg */
  --accent: #c2408f;           /* rose : survols et repères */
  --line: rgba(17, 17, 17, .12);

  /* Bloc sombre (À propos) */
  --ink: #121212;
  --ink-soft: #1d1d1d;
  --ink-text: #f2f2f2;
  --ink-muted: #8f8f8f;
  --ink-line: rgba(242, 242, 242, .14);

  /* Voile sombre posé sur les photos pour garder le texte blanc lisible */
  --scrim: rgba(17, 17, 17, .28);

  --font-display: "Montserrat", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --pad: clamp(16px, 5vw, 72px);
  --radius: 999px;
  --radius-card: 6px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Petites mentions en majuscules espacées (nav, étiquettes, dates) */
.mono {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Masqué à l'écran, lu par les lecteurs d'écran (titres de section implicites) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- NAV ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 28px var(--pad);
}
.nav__brand { display: inline-flex; padding: 10px; margin: -10px; color: var(--text); justify-self: start; } /* zone tactile de 44 px */
.nav__brand svg { width: 24px; height: 24px; transition: rotate .6s var(--ease-spring); }
.nav__brand:hover svg { rotate: 180deg; }
.nav__links { display: flex; gap: clamp(24px, 5vw, 72px); }
.nav__links a, .nav__cta { color: var(--muted); transition: color .3s; }
.nav__links a:hover, .nav__cta:hover { color: var(--text); }
.nav__cta { justify-self: end; }

/* ---------- HERO ---------- */
.hero { padding: 120px var(--pad) clamp(48px, 7vw, 80px); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  /* « Razane Feggous » mesure ≈ 8em en Montserrat 800 resserrée : il tient sur une ligne, de marge à marge */
  font-size: calc((100vw - 2 * var(--pad)) / 8.1);
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
  margin-left: -.04em; /* aligne l'œil du R sur la marge, comme les textes dessous */
}
.reveal { display: inline-block; overflow: hidden; padding-bottom: .06em; vertical-align: top; }

/* Ondulation liquide au survol du nom : filtre SVG #liquid (index.html), piloté par js/main.js.
   Le filtre n'est branché que pendant le survol, pour ne rien coûter au repos. */
.liquid__base { display: inline-block; } /* boîte unique : repère stable pour le halo du filtre */

/* Nom étiré en hauteur : Montserrat n'a pas de version étroite, on allonge donc les lettres.
   La transformation ne compte pas dans la mise en page : on réserve la hauteur ajoutée en dessous. */
.liquid { --stretch: 1.3; padding-bottom: calc((var(--stretch) - 1) * 1em); }
.liquid__base { transform: scaleY(var(--stretch)); transform-origin: 0 0; }
.liquid.is-active .liquid__base { filter: url(#liquid); }

.hero__texts {
  display: flex; justify-content: space-between; gap: 32px;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(17px, 1.45vw, 21px); line-height: 1.35; letter-spacing: -.01em;
}
.hero__text { max-width: 26ch; color: var(--muted); }
.hero__text--right { text-align: right; }
.ink { color: var(--text); } /* mots mis en avant dans une phrase grise */

/* ---------- SECTIONS ---------- */
.section { padding: 0 var(--pad) clamp(80px, 12vw, 160px); }
.section__label { margin-bottom: 20px; }
.link { color: var(--accent); white-space: nowrap; }
.link:hover { text-decoration: underline; }

/* ---------- PROJETS AXOME (grandes cartes photo) ---------- */
/* Intro : grosse flèche ↘ et prestations, au-dessus des cartes */
.projects__intro { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px); margin-bottom: 24px; }
.projects__arrow { flex: none; width: clamp(36px, 4vw, 64px); height: auto; fill: none; stroke: var(--text); stroke-width: 3.4; stroke-linecap: square; }
.projects__intro p { color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.3; letter-spacing: -.01em; padding-bottom: .2em; }

.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.work {
  position: relative; display: block; isolation: isolate; overflow: hidden;
  aspect-ratio: 1; /* sur la largeur débord compris : la partie visible reste un peu plus haute que large */
  background: var(--bg-soft); color: #fff;
  /* Évasement au scroll (js/main.js, initCardFlare) : la carte déborde de --fl / --fr côté extérieur,
     et la découpe ramène le visible au format de la colonne. Sans JS : rectangle aux coins arrondis. */
  --flare: clamp(10px, 2.5vw, 36px);
  margin-left: calc(-1 * var(--fl, 0px)); margin-right: calc(-1 * var(--fr, 0px));
  clip-path: inset(0 var(--fr, 0px) 0 var(--fl, 0px) round var(--radius-card));
}
.works > .work:nth-child(odd) { --fl: var(--flare); }  /* colonne de gauche : s'évase vers la gauche */
.works > .work:nth-child(even) { --fr: var(--flare); } /* colonne de droite : vers la droite */
.work__media { position: absolute; inset: 0; transition: transform .9s var(--ease-out); }
.work__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; } /* marge pour la parallaxe GSAP */
.work:hover .work__media { transform: scale(1.04); }
.work::before { /* voile en haut : garde le titre lisible sur les photos claires */
  content: ""; position: absolute; inset: 0 0 auto; height: 30%; z-index: 1;
  background: linear-gradient(180deg, var(--scrim), transparent);
}
.work__top {
  position: absolute; inset: 0 var(--fr, 0px) auto var(--fl, 0px); z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: clamp(20px, 2.2vw, 32px);
}
.work__title { font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }

/* Pastille flèche (cartes Axome et bouton) */
.arrow-dot {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--scrim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, rotate .5s var(--ease-spring);
}
.arrow-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.work:hover .arrow-dot { background: var(--accent); rotate: 45deg; }

/* Disque qui suit la souris sur les visuels (js/main.js, initHoverCursor) : blanc en « différence »,
   il inverse l'image dessous ; la flèche noire garde les couleurs d'origine. */
.hover-cursor {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: #000;
  mix-blend-mode: difference; pointer-events: none;
}
.hover-cursor svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
@media (hover: hover) and (pointer: fine) {
  .arrow-dot { transition: opacity .3s; }
  .work:hover .arrow-dot { opacity: 0; } /* le disque qui suit la souris prend le relais */
}

/* Étiquettes en pilule posées en bas à gauche des visuels */
.tags { position: absolute; left: var(--fl, 0px); bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; padding: clamp(16px, 2.2vw, 32px); list-style: none; }
.tags li, .tag {
  padding: 5px 10px; border-radius: var(--radius);
  background: var(--scrim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.tag { position: absolute; left: 12px; bottom: 12px; }

/* Ligne sous les cartes : run, recette et autres boutiques, avec un diaporama à droite */
.works__more {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 10px; align-items: start;
  margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line);
}
.works__more h3 { margin-bottom: 14px; }
.works__more p { max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.4; letter-spacing: -.01em; }

/* Diaporama en coupe franche : les vignettes sont empilées, chacune visible --slide-time secondes à tour de rôle.
   Le délai négatif décale chaque vignette dans le cycle, pour que la première soit visible dès le chargement.
   Pour ajouter une vignette : nouvelle <figure class="slide" style="--i: N"> et mettre à jour --slides. */
.slideshow {
  --slides: 4; --slide-time: 1s;
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius-card); background: var(--bg-soft);
}
.slide { position: absolute; inset: 0; opacity: 0; }
.slide:first-child { opacity: 1; } /* sans animation (mouvement réduit) : première vignette seule */
.slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .slide {
    animation: slide-cut calc(var(--slides) * var(--slide-time)) infinite;
    animation-delay: calc(var(--i) * var(--slide-time) - var(--slides) * var(--slide-time));
  }
}
/* Pour 4 vignettes : visible sur le premier quart du cycle, cachée ensuite, sans transition */
@keyframes slide-cut {
  0%, 24.99% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

/* ---------- PROJETS (études et perso) ---------- */
.projects__label { margin: clamp(56px, 8vw, 96px) 0 20px; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 10px; }
.projects--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project__img {
  position: relative; isolation: isolate; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: hidden;
  background: var(--bg-soft);
  transition: transform .6s var(--ease-out);
}
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project--wide { grid-column: 1 / -1; }
.project--wide .project__img { aspect-ratio: 21 / 9; }
.project:hover .project__img { transform: scale(.985); }
.project__info { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; gap: 16px; }
.project__info h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; transition: color .3s; }
.project__text { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.project__stack { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.project__stack li { border: 1px solid var(--line); border-radius: var(--radius); padding: 3px 10px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.project:hover h3 { color: var(--accent); }

/* ---------- À PROPOS (bloc sombre arrondi) ---------- */
.panel {
  --pad-in: clamp(22px, 3vw, 44px);
  padding: var(--pad-in);
  background: var(--ink); color: var(--ink-text);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.panel .mono { color: var(--ink-muted); }
.panel__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.panel__label { margin-bottom: 16px; }
.panel__text { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -.01em; max-width: 34ch; }
.panel__text em { font-style: normal; color: var(--accent); }
.panel__list { list-style: none; border-bottom: 1px solid var(--ink-line); }
.panel__list li { padding-block: 14px; border-top: 1px solid var(--ink-line); font-size: 17px; line-height: 1.3; }
.panel__list span { display: block; color: var(--ink-muted); font-size: 14px; }
.panel__skills { margin-top: clamp(56px, 8vw, 104px); }
.panel__more { display: inline-block; margin-top: 24px; padding-block: 13px; }
.panel__more:hover { color: var(--ink-text); }

/* ---------- SAVOIR-FAIRE (cartes en défilement) ---------- */
/* Sans JS ou en mouvement réduit : rangées scrollables à la main.
   Avec GSAP : .is-animated, défilement infini (voir js/main.js). */
.marquee {
  margin-inline: calc(-1 * var(--pad-in));
  padding-inline: var(--pad-in);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-animated {
  overflow: hidden; padding-inline: 0;
  cursor: grab; touch-action: pan-y; /* le glissé horizontal est géré en JS, le scroll vertical reste natif */
  user-select: none; -webkit-user-select: none;
  /* fondu sur les côtés : les cartes s'effacent avant de toucher le bord du bloc */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  --fade: clamp(40px, 12%, 180px);
}
.marquee.is-dragging { cursor: grabbing; }
.marquee + .marquee { margin-top: 0; }
.marquee__track {
  --gap: 10px;
  list-style: none; display: flex; gap: var(--gap);
  width: max-content;
  padding-block: 20px; /* laisse la place à la carte inclinée au survol */
}
.marquee.is-animated .marquee__track { padding-right: var(--gap); } /* chaque copie = cartes + un gap */

.card {
  width: clamp(240px, 26vw, 360px); aspect-ratio: 1.15;
  display: flex; flex-direction: column;
  padding: clamp(20px, 2vw, 28px);
  background: var(--ink-soft); color: var(--ink-text);
  border-radius: var(--radius-card);
  scroll-snap-align: start;
  transition: background .45s, color .45s, transform .6s var(--ease-spring);
}
.card__icon {
  width: 36px; height: 36px; align-self: flex-end; margin-bottom: auto;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card__title { font-size: clamp(22px, 2vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 10px; }
.card__text { color: var(--ink-muted); font-size: 15px; line-height: 1.45; transition: color .45s; }
@media (hover: hover) {
  .card:hover { background: var(--accent); color: #fff; transform: rotate(2deg) scale(1.02); }
  .marquee[data-direction="right"] .card:hover { transform: rotate(-2deg) scale(1.02); }
  .card:hover .card__text { color: rgba(255, 255, 255, .82); }
}

/* ---------- PIED DE PAGE (contact) ---------- */
.footer { padding: clamp(40px, 6vw, 80px) var(--pad) 24px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; }
.footer__cols ul { list-style: none; }
.footer__cols li a { display: inline-block; padding-block: 4px; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.01em; transition: color .3s; }
.footer__cols li a:hover { color: var(--accent); }
.footer__contact { justify-self: end; }
.footer__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: calc((100vw - 2 * var(--pad)) / 8.1); line-height: 1; letter-spacing: -.055em; white-space: nowrap;
  margin: clamp(40px, 6vw, 80px) 0 0 -.04em;
}
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 20px; }
.footer__bottom a { padding-block: 13px; transition: color .3s; }
.footer__bottom a:hover { color: var(--text); }
.footer__bottom > :last-child { justify-self: end; }

/* Pages secondaires (étude de cas, 404) : simple rangée de liens */
.footer--simple { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px var(--pad) 24px; border-top: 1px solid var(--line); }
.footer--simple a { padding-block: 13px; }
.footer--simple a:hover { color: var(--text); }

/* ---------- ANIMATIONS ----------
   Les éléments .reveal / .fade sont cachés au chargement (classe .js posée dans <head>),
   puis révélés par js/main.js : GSAP s'il est chargé, sinon transitions CSS ci-dessous. */
.char-word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(100%); transition: opacity 1s, transform 1s var(--ease-out); }
  .js .fade { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform .9s var(--ease-out); }
  .js .reveal.is-visible, .js .fade.is-visible { opacity: 1; transform: none; }

  /* GSAP pilote ces propriétés : on coupe les transitions CSS qui les ralentiraient */
  .has-gsap .reveal, .has-gsap .fade { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .marquee[data-direction="right"] .card:hover { transform: none; }
}

/* ---------- PAGE ÉTUDE DE CAS ---------- */
.case { padding: 140px var(--pad) 80px; max-width: 1100px; }
.case__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 11vw, 180px); line-height: .95; letter-spacing: -.055em; margin: 16px 0 48px -.04em; }
.case__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: 80px; }
.case__grid p:last-child { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; margin-top: 6px; }
.case__block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); }
.case__block h2 { font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.case__block p, .case__block li { font-size: 18px; color: var(--text); }
.case__block ul { padding-left: 20px; display: grid; gap: 10px; }
.case__block > div > * + * { margin-top: 16px; }
.case__block .mono { font-size: 12px; color: var(--muted); } /* les libellés mono gardent leur taille dans les blocs en 18px */
.case__block em { font-style: italic; }
.case__lead { max-width: 760px; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; color: var(--text-soft); margin-bottom: 48px; }
.case__subtitle { font-size: 20px; font-weight: 500; }
.case__subtitle:not(:first-child) { margin-top: 48px; }
.case__steps, .case__plan { padding-left: 20px; display: grid; gap: 8px; }
.note {
  margin-bottom: 32px; padding: 16px 20px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-card);
  color: var(--text-soft); font-size: 15px;
}
.checks { list-style: none; padding-left: 0 !important; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Captures d'écran mobiles */
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); }
.shot figcaption { margin-top: 10px; }
.shot--solo { max-width: 280px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 24px; }
.compare .shot:last-child img { border-color: var(--accent); }

/* Frictions et hypothèses */
.findings > * + * { margin-top: 28px; }
.finding__num { color: var(--accent) !important; margin-bottom: 4px; }
.finding h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.finding__kpi { margin-top: 8px; }
.finding__note { color: var(--text-soft) !important; padding-top: 20px; border-top: 1px solid var(--line); }

/* Tableau ICE */
.table-scroll { overflow-x: auto; }
.ice { width: 100%; border-collapse: collapse; font-size: 16px; }
.ice th, .ice td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.ice th[scope="row"], .ice thead th:first-child { text-align: left; font-weight: 400; }
.ice thead th { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ice td strong { color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .projects--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Nav : liens empilés au centre, logo et contact de part et d'autre */
  .nav { align-items: start; padding-block: 18px; }
  .nav__links { flex-direction: column; align-items: center; gap: 0; }
  .nav__links a, .nav__cta { padding-block: 3px; font-size: 10px; }
  .nav__brand { margin-block: -6px; }

  /* Hero : nom sur une ligne, puis les deux phrases en un seul paragraphe centré */
  .hero { padding-top: 132px; }
  .hero__texts { display: block; max-width: 34ch; margin: 56px auto 0; text-align: center; line-height: 1.6; }
  .hero__text { display: inline; }
  .hero__text--right::before { content: " "; } /* espace entre les deux phrases mises bout à bout */

  .projects, .projects--grid, .works, .works__more { grid-template-columns: 1fr; }
  .works > .work:nth-child(n) { --fl: var(--flare); --fr: var(--flare); } /* une colonne : évasement des deux côtés */
  .work { --flare: 8px; }
  .project__info { flex-direction: column; gap: 4px; }
  .panel__grid { grid-template-columns: 1fr; gap: 32px; }
  .card { width: 78vw; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; justify-self: start; }
  .footer__bottom { grid-template-columns: 1fr 1fr; }
  .footer__bottom > :nth-child(2) { order: 3; grid-column: 1 / -1; }

  .case__grid { grid-template-columns: 1fr 1fr; }
  .case__block { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shots { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots .shot { scroll-snap-align: start; }
  .compare { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ice { font-size: 14px; }
}
