@charset "UTF-8";

/* ============================================
   VARIABLES CSS
   ============================================ */

:root {
  --clr-text: #fff;
  --clr-bg: #000;
  --clr-link: var(--clr-Regular);

  /* Système de couleurs dynamique basé sur le weight */
  --clr-Thin: #013059; /* Couleur pour weight 1 (Thin) */
  --clr-Regular: #0086ff; /* Couleur pour weight 50 (Regular) */
  --clr-Bold: #73def9; /* Couleur pour weight 100 (Bold) */

  /* Type */
  --font-family: Arial, sans-serif;
  --font-size: 14px;

  /* Border */
  --border-width: 1.8px;
  --border-top: var(--border-width) solid var(--clr-text);

  /* Mix-blend-mode */
  --mix: luminosity;

  /* Technical colors */
  --tech-bg-primary: rgba(0, 0, 0, 0.05);
  --tech-bg-secondary: rgba(0, 0, 0, 0.02);
  --tech-border-light: rgba(0, 0, 0, 0.1);
  --tech-border-medium: rgba(0, 0, 0, 0.2);
  --tech-text-muted: 0.7;
  --tech-text-semi: 0.8;

  /* Technical spacing */
  --tech-spacing-xs: 8px;
  --tech-spacing-sm: 12px;
  --tech-spacing-md: 16px;
  --tech-spacing-lg: 22px;
  --tech-spacing-xl: 32px;
  --tech-spacing-2xl: 44px;

  /* Technical effects */
  --tech-radius-sm: 4px;
  --tech-radius-md: 8px;
  --tech-radius-lg: 12px;
  --tech-transition: 0.2s ease;
  --tech-transition-slow: 0.3s ease;
}

/* ============================================
   FONT FACE
   ============================================ */

@font-face {
  font-family: "Patterna";
  src: url("../fonts/PatternaVF.ttf");
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
  scroll-padding-top: 0;
}

body {
  background-color: var(--clr-text);
  color: var(--clr-bg);
  font-family: var(--font-family);
  font-size: var(--font-size);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 0 44px;
  margin: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  transition: 0.5s ease-in-out;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   SPECIMEN SECTIONS
   ============================================ */

.specimen {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  position: relative;
  z-index: 10;
  background-color: var(--clr-text);
  margin-top: 0;
}

.specimen-subsection {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 44px;
  position: relative;
  transition: background-color 0.3s ease;
}

.specimen-subsection__content {
  max-width: calc(100vw - 88px);
  margin: 0 auto;
  padding: 0 44px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  grid-auto-flow: dense;
}

/* Variations de fond */
.specimen-subsection--white {
  background-color: var(--clr-text);
}

.specimen-subsection--thin {
  background-color: var(--clr-Thin);
  height: 50vh;
  overflow: hidden;
  padding: 0;
}

.specimen-subsection--thin .specimen-subsection__content {
  padding: 0;
  margin: 0;
  max-width: 100vw;
  width: 100vw;
}

.specimen-subsection--regular {
  background-color: var(--clr-Regular);
}

.specimen-subsection--bold {
  background-color: var(--clr-Bold);
}

/* Ajustement des couleurs de texte selon le fond */
.specimen-subsection--white .type-specimen__label,
.specimen-subsection--white .type-specimen__text {
  color: var(--clr-bg);
}

.specimen-subsection--thin .type-specimen__block,
.specimen-subsection--regular .type-specimen__block,
.specimen-subsection--bold .type-specimen__block {
  border-top: 1.5px solid var(--clr-text);
  color: var(--clr-text);
}

.specimen-subsection--thin .type-specimen__text,
.specimen-subsection--regular .type-specimen__text,
.specimen-subsection--bold .type-specimen__text {
  color: var(--clr-text) !important;
}

/* ============================================
   TYPE SPECIMEN BLOCKS - CONFIGURATION CENTRALISÉE  
   ============================================ */

/* Styles communs pour tous les blocs specimens */
.type-specimen__block {
  position: relative;
  padding: 11px 0;
  color: var(--clr-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  margin-top: 1rem;
  border-top: var(--border-width) solid var(--clr-bg);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  align-self: start;
}

/* Supprimer la bordure et les paddings si le block contient un specimen-color-block */
.type-specimen__block:has(.specimen-color-block) {
  border-top: none;
  height: 100%;
}

.type-specimen__block:has(.specimen-color-block) .type-specimen__block-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}

/* CONFIGURATION DES TAILLES ET COLONNES - TOUT CENTRALISÉ */
.type-specimen__block--ultra {
  grid-column: span 24;
  min-height: clamp(180px, 35vw, 350px);
  font-size: clamp(12rem, 43vw, 44rem);
  line-height: 0.85;
}
.type-specimen__block--xlarge {
  grid-column: span 24;
  min-height: clamp(180px, 35vw, 350px);
  font-size: clamp(12rem, 29vw, 36rem);
  line-height: 0.9;
}

.type-specimen__block--large {
  grid-column: span 24;
  min-height: clamp(150px, 25vw, 350px);
  font-size: clamp(4rem, 23vw, 24rem);
  line-height: 0.9;
}

.type-specimen__block--medium-large {
  grid-column: span 24;
  min-height: clamp(145px, 22vw, 300px);
  font-size: clamp(3rem, 14vw, 18rem);
  line-height: 1;
}

.type-specimen__block--middle-large {
  grid-column: 2 / span 22;
  min-height: clamp(150px, 25vw, 350px);
  font-size: clamp(3rem, 20vw, 30rem);
  line-height: 0.95;
}

.type-specimen__block--middle-medium {
  grid-column: 3 / span 20;
  min-height: clamp(120px, 20vw, 300px);
  font-size: clamp(2.5rem, 6vw, 10rem);
  line-height: 1;
}

.type-specimen__block--middle-medium .type-specimen__text,
.type-specimen__block--column .type-specimen__text {
  text-align: left !important;
}

.type-specimen__block--medium {
  grid-column: span 12;
  min-height: clamp(140px, 22vw, 350px);
  font-size: clamp(2rem, 10vw, 11rem);
  line-height: 1;
}

.type-specimen__block--middle-small {
  grid-column: span 12;
  min-height: clamp(120px, 20vw, 280px);
  font-size: clamp(1.5rem, 10vw, 11rem);
  line-height: 1;
}
.type-specimen__block--small {
  grid-column: span 8;
  min-height: clamp(120px, 18vw, 280px);
  font-size: clamp(1.5rem, 22vw, 12rem);
  line-height: 1;
}

.type-specimen__block--column {
  grid-column: span 6;
  min-height: clamp(120px, 18vw, 280px);
  font-size: clamp(1.5rem, 10vw, 8rem);
  line-height: 1;
}

.type-specimen__block--crop {
  grid-column: span 24;
  min-height: 20vh;
  height: 50vh;
  font-size: clamp(160rem, 100vw, 100rem);
  line-height: 0.85;
  padding: 0;
  margin: 0;
  border: none;
  display: flex;
  justify-content: center;
  letter-spacing: -0.15em;
}

.type-specimen__block--crop .type-specimen__text {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.zoom {
  font-size: clamp(22rem, 10vw, 10rem) !important;
}

.small .type-specimen__text {
  font-size: clamp(2.5rem, 4vw, 10rem) !important;
  text-align: left !important;
  line-height: 0.9 !important;
}

.compact {
  letter-spacing: -0.15em;
}

/* CONFIGURATION DES TAILLES DE TEXTE - TOUT CENTRALISÉ */

/* ============================================
   BLOCK CONTENT & TEXT STYLES
   ============================================ */

.type-specimen__block-content {
  position: relative;
  padding-top: 12px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
}

.type-specimen__block--sample .type-specimen__block-content {
  text-align: center;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-specimen__block--sample .type-specimen__text {
  font-family: "Patterna", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 95%;
  max-height: 90%;
  word-break: break-word;
  hyphens: auto;
  transition: font-size 0.3s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  line-height: 1;
}

/* Gestion spéciale pour les textes multilignes */
.type-specimen__text:has(br),
.type-specimen__text[data-multiline="true"] {
  white-space: normal;
  flex-direction: column;
  line-height: 0.85;
  font-size: 85%;
  gap: 0.05em;
}

.type-specimen__block--sample .type-specimen__text {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.type-specimen__text br {
  display: block;
}

.type-specimen__label {
  font-size: var(--font-size);
  font-family: var(--font-family);
  font-size: var(--font-size);
  letter-spacing: 0.05em;
  width: 100%;
  text-align: left;
  display: flex;
}

/* ============================================
   FONT CUT STYLES
   ============================================ */

.font-cut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  width: 100%;
  height: auto;
  min-height: 80%;
  box-sizing: border-box;
}

.font-cut .type-specimen__text {
  line-height: 0.85;
  margin: 0;
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
}

.type-specimen__block-content .font-cut {
  overflow: visible;
}

.type-specimen__block--large:has(.font-cut) .type-specimen__block-content,
.type-specimen__block-content:has(.font-cut),
.type-specimen__block-content.has-font-cut {
  min-height: auto;
  height: auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.center {
  text-align: center;
}

.test-text {
  font-size: 6rem !important;
  line-height: 90% !important;
  font-variation-settings: "wght" 1, "TRVL" 1 !important;
}

body.color-mode .type-specimen__text {
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
  transition-delay: 0.3s;
}

.type-specimen__text[data-resizing="true"] {
  transition: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes weight-animation {
  0% {
    font-variation-settings: "wght" 1;
  }
  50% {
    font-variation-settings: "wght" 100;
  }
  100% {
    font-variation-settings: "wght" 1;
  }
}

@keyframes travel-animation {
  0% {
    font-variation-settings: "wght" 1, "TRVL" 1;
  }
  50% {
    font-variation-settings: "wght" 1, "TRVL" 100;
  }
  100% {
    font-variation-settings: "wght" 1, "TRVL" 1;
  }
}

@keyframes weight-travel-animation {
  0% {
    font-variation-settings: "wght" 1, "TRVL" 1;
  }
  25% {
    font-variation-settings: "wght" 100, "TRVL" 1;
  }
  50% {
    font-variation-settings: "wght" 100, "TRVL" 100;
  }
  75% {
    font-variation-settings: "wght" 1, "TRVL" 100;
  }
  100% {
    font-variation-settings: "wght" 1, "TRVL" 1;
  }
}

@keyframes weight-travel-crop-animation {
  0% {
    font-variation-settings: "wght" 1, "TRVL" 1;
    transform: scale(1);
  }
  25% {
    font-variation-settings: "wght" 100, "TRVL" 1;
    transform: scale(1.1);
  }
  50% {
    font-variation-settings: "wght" 100, "TRVL" 100;
    transform: scale(1.2);
  }
  75% {
    font-variation-settings: "wght" 1, "TRVL" 100;
    transform: scale(1.1);
  }
  100% {
    font-variation-settings: "wght" 1, "TRVL" 1;
    transform: scale(1);
  }
}

@keyframes variable-animation {
  0% {
    font-variation-settings: "wght" 1, "TRVL" 1;
  }
  25% {
    font-variation-settings: "wght" 100, "TRVL" 1;
  }
  50% {
    font-variation-settings: "wght" 100, "TRVL" 100;
  }
  75% {
    font-variation-settings: "wght" 1, "TRVL" 100;
  }
  100% {
    font-variation-settings: "wght" 1, "TRVL" 1;
  }
}

.animate-weight {
  animation: weight-animation 4s cubic-bezier(0.84, 0, 0.16, 1) infinite;
  will-change: font-variation-settings;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.animate-travel {
  animation: travel-animation 4s cubic-bezier(0.84, 0, 0.16, 1) infinite;
  will-change: font-variation-settings;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.animate-both {
  animation: weight-travel-animation 4s cubic-bezier(0.84, 0, 0.16, 1) infinite;
  will-change: font-variation-settings;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.animate-both.animation-started {
  animation: weight-travel-crop-animation 4s cubic-bezier(0.84, 0, 0.16, 1)
    infinite;
}

.animate-variable {
  animation: variable-animation 4s cubic-bezier(0.84, 0, 0.16, 1) infinite;
  will-change: font-variation-settings;
  transform: translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mouse-interactive {
  will-change: font-variation-settings;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-variation-settings: "wght" 1, "TRVL" 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
  transition: linear 0s !important;
}

/* ============================================
   FOOTER  
   ============================================ */

.footer {
  width: 100%;
  padding: 44px 0;
  border-top: var(--border-top);
  background-color: var(--clr-text);
  line-height: 1.2;
  font-weight: bold;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  max-width: 100%;
  padding: 0 22px;
  padding: 22px;
}

.footer__column {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  color: var(--clr-bg);
}

.footer__column--left {
  grid-column: span 12;
}

.footer__column--right {
  grid-column: span 12;
}

/* ============================================
   TECHNICAL SECTION
   ============================================ */

.technical {
  width: 100%;
  padding: 88px 0;
  background-color: var(--clr-text);
  border-top: var(--border-top);
}

.technical__content {
  padding: 0 22px;
}

.technical__header {
  display: flex;
  align-items: center;
  margin-bottom: 44px;
  gap: 22px;
}

.technical__title {
  margin: 0;
  color: var(--clr-bg);
}

.technical__grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 22px;
}

.technical__glyph-column {
  grid-column: span 24;
}

.technical__glyph-inspector {
  position: fixed;
  width: 100vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  cursor: pointer;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.493);
  color: var(--clr-bg);
  font-family: "Patterna", sans-serif;
  font-variation-settings: "wght" 40, "TRVL" 1;
  font-size: 55vh;
  transition: opacity 0.3s ease;
}

.technical__glyph-inspector.show {
  opacity: 1;
}

.technical__weight-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
}

.technical__dropdown-icon {
  font-size: 0.7rem;
  color: var(--clr-bg);
  transition: transform 0.2s;
}

.technical__weight-selected {
  font-weight: bold;
  color: var(--clr-bg);
}

.technical__dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  display: none;
  min-width: 150px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 5px;
}

.technical__weight-selector.active .technical__dropdown-icon {
  transform: rotate(180deg);
}

.technical__weight-selector.active .technical__dropdown-menu {
  display: block;
}

.technical__dropdown-item {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.5;
}

.technical__dropdown-item:hover {
  opacity: 1;
}

.technical__weight--active {
  opacity: 1;
}

.technical__glyph-sections {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.technical__glyph-title {
  margin: 0 0 16px 0;
}

.technical__glyph-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.technical__glyph {
  font-family: "Patterna", sans-serif;
  font-size: clamp(1.5rem, 5vw, 8rem);
  font-variation-settings: "wght" 40, "TRVL" 1;
  color: var(--clr-Regular);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  cursor: pointer;
  user-select: none;
}

.technical__glyph:hover {
  color: var(--clr-Bold);
}

.technical__inspector-glyph {
  color: var(--clr-Regular);
}

/* ============================================
   PARALLAX EFFECTS - STYLE VARIA
   ============================================ */

.parallax-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  overflow: hidden;
  will-change: transform;
}

.parallax-video {
  position: absolute;
  top: 40%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 80%;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.specimen {
  position: relative;
  z-index: 10;
  background-color: var(--clr-text);
  margin-top: 0;
  min-height: 100vh;
  transition: box-shadow 0.3s ease;
  will-change: box-shadow;
}

/* Premier bloc specimen avec un effet de transition */
.specimen .specimen-subsection:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

.type-specimen__block--crop .animate-both {
  animation: weight-travel-crop-animation 3s ease-in-out infinite;
  will-change: font-variation-settings, transform, opacity;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ============================================
   SPECIMEN VIDEO
   ============================================ */

.specimen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.type-specimen__text .specimen-video {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* ============================================
   SPECIMEN COLOR BLOCK
   ============================================ */

.specimen-color-block {
  width: 100%;
  border-radius: 20px;
  overflow: clip;
  margin-bottom: 2rem;
}

.specimen-color-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-specimen__text .specimen-color-block {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.text-layers {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 60vh;
  top: 90px;
}

.text-layers .layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(30rem, 30vw, 30rem) !important;
}

.text-layers .layer--bold {
  z-index: 1;
  color: var(--clr-text) !important;
  font-variation-settings: "wght" 100, "TRVL" 100;
}

.text-layers .layer--hairline {
  z-index: 2;
  color: var(--clr-Thin) !important;
  font-variation-settings: "wght" 1, "TRVL" 1;
}

.specimen-subsection--bold .type-specimen__block-content {
  position: relative;
  overflow: hidden;
}
