/**
 * Styles démo « docs » (header c-header, summary, speed-block, choochoo).
 * Typos Yazz : Instrument Serif + Outfit.
 */

:root {
  --ink: #1a1a1a;
  --paper: #ebe5e2;
  --white: #fff;
  --accent: #f1895c;
  --accent-soft: #516079;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background-color: var(--paper);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.5;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
}

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

/* --- Conteneur scroll fluide : overflow hidden requis par la lib ; marge basse pour le footer fixe --- */
.o-scroll {
  background-color: var(--paper);
  overflow: hidden;
  padding-bottom: calc(clamp(6.5rem, 18vh, 14rem) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 899px) {
  .o-scroll {
    padding-bottom: calc(clamp(8rem, 24vh, 16rem) + env(safe-area-inset-bottom, 0px));
  }
}

.has-scroll-smooth [data-scroll-container] {
  min-height: 100vh;
}

/* Espace fin de page : le scroll fluide recalcule la limite ; évite d’être bloqué sous le footer fixe */
.yazz-scroll-spacer {
  height: clamp(7rem, 24vh, 18rem);
  min-height: 7rem;
  pointer-events: none;
}

.o-container {
  margin-right: auto;
  margin-left: auto;
  max-width: 95rem;
}

@media (max-width: 768px) {
  .o-container {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (min-width: 769px) {
  .o-container {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
}

/* Layout type docs */
.o-layout {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0;
}

.o-layout--gutter {
  margin-left: -1.75rem;
}

.o-layout_item {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  font-size: 1rem;
  padding-left: 0;
}

.o-layout--gutter > .o-layout_item {
  padding-left: 1.75rem;
}

@media (min-width: 769px) {
  .u-1\/2 {
    width: 50% !important;
  }
}

@media (min-width: 1000px) {
  .u-2\/5 {
    width: 40% !important;
  }

  .u-3\/5 {
    width: 60% !important;
  }
}

.u-text-right {
  text-align: right !important;
}

.u-text-center {
  text-align: center !important;
}

.u-label {
  font-size: 1.05rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.u-text {
  font-size: 0.875rem;
  line-height: 1.55;
}

.u-icon {
  font-size: 1.125rem;
}

/* --- Header (c-header) --- */
.c-header {
  position: relative;
}

@media (max-width: 768px) {
  .c-header {
    min-height: 50vh;
    min-height: 340px;
  }
}

@media (min-width: 769px) and (max-width: 999px) {
  .c-header {
    min-height: 80vh;
    min-height: 380px;
  }
}

@media (min-width: 1000px) {
  .c-header {
    min-height: 100vh;
    min-height: 46.875rem;
  }
}

.c-header_heading {
  padding: 1.875rem 0;
}

.c-header_heading_label {
  display: block;
  transition:
    transform 0s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0s;
  transform: translateY(-60px);
  opacity: 0;
}

a.c-header_buildeuse-link {
  cursor: pointer;
  position: relative;
  display: inline-block;
  text-decoration: none;
  border-bottom: 2px dotted var(--accent);
  padding-bottom: 0.2em;
  transition:
    color 0.2s ease,
    border-bottom-color 0.2s ease,
    border-bottom-style 0.2s ease;
}

a.c-header_buildeuse-link::after {
  content: " →";
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

a.c-header_buildeuse-link:hover {
  color: var(--accent);
  border-bottom-style: solid;
  border-bottom-color: var(--accent);
}

a.c-header_buildeuse-link:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

a.c-header_buildeuse-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-bottom-style: solid;
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  a.c-header_buildeuse-link {
    animation: c-header-buildeuse-hint 2.8s ease-in-out infinite;
  }

  a.c-header_buildeuse-link:hover,
  a.c-header_buildeuse-link:focus-visible {
    animation: none;
  }
}

@keyframes c-header-buildeuse-hint {
  0%,
  100% {
    border-bottom-color: rgba(241, 137, 92, 0.45);
  }

  50% {
    border-bottom-color: var(--accent);
  }
}

html.is-ready .c-header_heading_label {
  transform: none;
  opacity: 1;
  transition-duration: 0.6s;
}

html.is-ready .o-layout_item:nth-child(2) .c-header_heading_label {
  transition-delay: 0.1s;
}

.c-header_logo {
  display: block;
  height: 4.85rem;
  width: auto;
  max-width: min(82vw, 28rem);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 769px) {
  .c-header_logo {
    height: 5.85rem;
    max-width: 32rem;
  }
}

@media (min-width: 1000px) {
  .c-header_logo {
    height: 6.75rem;
    max-width: 38rem;
  }
}

@media (min-width: 1200px) {
  .c-header_logo {
    height: 7.5rem;
    max-width: 44rem;
  }
}

/* Titre principal : même logique 3D que la démo (perspective + lignes) */
.c-header_title {
  padding: 2.5rem 0;
  margin: 0;
  perspective: 600px;
  -webkit-perspective: 600px;
  overflow: visible;
}

.c-header_title_line {
  display: block;
  opacity: 0;
  overflow: visible;
  transform-origin: center top;
  transform-style: preserve-3d;
  transform: translateY(100%) rotateX(-80deg);
  transition:
    opacity 0s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0s cubic-bezier(0.215, 0.61, 0.355, 1);
  font-size: 0;
}

html.is-ready .c-header_title_line {
  transform: none;
  opacity: 1;
  transition-duration: 0.8s;
}

html.is-ready .c-header_title_line:first-child {
  transition-delay: 0.1s;
}

html.is-ready .c-header_title_line:nth-child(2) {
  transition-delay: 0.2s;
}

html.is-ready .c-header_title_line:nth-child(3) {
  transition-delay: 0.3s;
}

.c-header_title_line span {
  display: inline-block;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  /* >1 évite de rogner les empattements (italique « buildeuse ») */
  line-height: 1.12;
  overflow: visible;
}

@media (max-width: 768px) {
  .c-header_title_line span {
    font-size: 11vw;
  }
}

@media (min-width: 769px) and (max-width: 1599px) {
  .c-header_title_line span {
    font-size: 12vw;
  }
}

@media (min-width: 1600px) {
  .c-header_title_line span {
    font-size: 11vw;
  }
}

.c-header_title_line em {
  font-style: italic;
  display: inline-block;
  /* Air pour le débord italique du dernier « e » + rendu WebKit avec background-clip: text */
  padding-inline: 0.04em 0.14em;
  background: linear-gradient(
    120deg,
    var(--accent-soft) 0%,
    var(--accent) 48%,
    var(--ink) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.c-header_title_line--accent span {
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.o-h1 {
  text-transform: none;
}

/* Ligne HR sous le titre (scale comme la démo) */
.c-header_line {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center left;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.c-header_line.is-inview {
  transform: scaleX(1);
}

/* --- Résumé (c-summary) --- */
.c-summary {
  margin: 3rem 0 5rem;
}

@media (min-width: 1000px) {
  .c-summary {
    margin: 3.75rem 0 7.5rem;
  }
}

.c-summary_text {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(60px);
  transition: transform 1s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 1s;
}

.c-summary.is-inview .c-summary_text {
  opacity: 1;
  transform: none;
}

@media (min-width: 1000px) {
  .c-summary_text {
    max-width: 26rem;
  }
}

.c-summary_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 999px) {
  .c-summary_list {
    margin-top: 1.5rem;
  }
}

.c-summary_list_item {
  position: relative;
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.c-summary_list_item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: center left;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.c-summary_list_item.is-inview {
  opacity: 1;
  transform: none;
}

.c-summary_list_item.is-inview::after {
  transform: scaleX(1);
}

.c-summary_list_item.is-inview:first-child {
  transition-delay: 0.1s;
}

.c-summary_list_item.is-inview:first-child::after {
  transition-delay: 0.35s;
}

.c-summary_list_item.is-inview:nth-child(2) {
  transition-delay: 0.15s;
}

.c-summary_list_item.is-inview:nth-child(2)::after {
  transition-delay: 0.45s;
}

.c-summary_list_item a {
  display: block;
  padding: 10px 0;
}

.c-summary_list_icon {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(24px) rotate(90deg);
  opacity: 0;
  transition:
    opacity 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.c-summary_list_item.is-inview .c-summary_list_icon {
  transform: translateY(-50%) rotate(0deg);
  opacity: 1;
}

/* --- Barre recherche / filtres projets (après header) --- */
.yazz-projects-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(39, 39, 39, 0.12);
}

.yazz-projects-toolbar__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  margin-left: auto;
}

.yazz-projects-toolbar__field {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.yazz-projects-toolbar__search-wrap {
  flex: 0 1 auto;
}

.yazz-projects-toolbar__tags {
  flex: 0 1 auto;
}

.yazz-projects-toolbar__label {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  min-height: 2.65rem;
  margin: 0;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
}

.yazz-projects-toolbar__input {
  min-height: 2.65rem;
  padding: 0.6rem 1rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(39, 39, 39, 0.2);
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(39, 39, 39, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.yazz-projects-toolbar__search {
  flex: 1 1 10rem;
  width: 100%;
  min-width: 8rem;
  max-width: 22rem;
}

.yazz-projects-toolbar__search::placeholder {
  color: rgba(39, 39, 39, 0.4);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.yazz-projects-toolbar__input:hover {
  border-color: rgba(81, 96, 121, 0.45);
  background: rgba(255, 255, 255, 1);
}

.yazz-projects-toolbar__input:focus,
.yazz-projects-toolbar__input:focus-visible {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow:
    0 0 0 3px rgba(81, 96, 121, 0.18),
    0 2px 6px rgba(39, 39, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.yazz-projects-toolbar__dropdown {
  position: relative;
  flex: 0 1 auto;
  min-width: 9.5rem;
}

.yazz-projects-toolbar__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-width: 9.5rem;
  max-width: 16rem;
  text-align: left;
  cursor: pointer;
}

.yazz-projects-toolbar__trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.yazz-projects-toolbar__chevron {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.55;
  transition: transform 0.25s ease;
}

.yazz-projects-toolbar__dropdown.is-open .yazz-projects-toolbar__chevron {
  transform: rotate(180deg);
}

.yazz-projects-toolbar__dropdown.is-open .yazz-projects-toolbar__trigger {
  border-color: var(--accent-soft);
}

.yazz-projects-toolbar__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  min-width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(39, 39, 39, 0.18);
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(39, 39, 39, 0.12);
}

.yazz-projects-toolbar__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.yazz-projects-toolbar__option:hover {
  background: rgba(241, 137, 92, 0.08);
}

.yazz-projects-toolbar__option input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.yazz-projects-toolbar__option span {
  text-transform: none;
  letter-spacing: normal;
}

.yazz-projects-toolbar__empty {
  width: 100%;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  text-align: right;
  color: rgba(39, 39, 39, 0.7);
}

@media (max-width: 768px) {
  .yazz-projects-toolbar__row {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.85rem;
  }

  .yazz-projects-toolbar__search-wrap,
  .yazz-projects-toolbar__tags {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .yazz-projects-toolbar__field {
    width: 100%;
  }

  .yazz-projects-toolbar__search {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  .yazz-projects-toolbar__dropdown {
    flex: 1 1 auto;
    min-width: 0;
  }

  .yazz-projects-toolbar__trigger {
    max-width: none;
    width: 100%;
  }

  /* Projets : 1 colonne, images pleine largeur empilées (≤ 768px) */
  #projects .o-container {
    width: 100%;
    max-width: 100%;
  }

  .yazz-card-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow-x: clip;
  }

  .yazz-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2.5rem;
  }

  .yazz-card__body,
  .yazz-card__link,
  .yazz-card__media-link {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .yazz-card__media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .yazz-card--enter-right .yazz-card__media,
  .yazz-card--enter-left .yazz-card__media {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .yazz-card--enter-right .yazz-card__media {
    transform: translateX(clamp(10px, 8vw, 48px));
  }

  .yazz-card--enter-left .yazz-card__media {
    transform: translateX(calc(-1 * clamp(10px, 8vw, 48px)));
  }

  .yazz-card--enter-right.is-inview .yazz-card__media,
  .yazz-card--enter-left.is-inview .yazz-card__media {
    transform: translateX(0);
  }

  .c-speed-block {
    width: 100%;
    max-width: 100%;
  }

  .o-image_wrapper,
  .o-image,
  .o-image--photo {
    width: 100%;
    max-width: 100%;
  }

  .o-image img,
  .c-speed-block_image {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .o-image_wrapper {
    border-radius: 6px;
  }

  .yazz-card__copy {
    width: 100%;
    max-width: 100%;
  }
}

.yazz-card__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(241, 137, 92, 0.12);
  border-radius: 999px;
}

.yazz-card__tag[data-tag="gestion"] {
  color: #5c4a8a;
  background: rgba(92, 74, 138, 0.12);
}

.yazz-card__tag[data-tag="outils-pro"] {
  color: #2d5a7b;
  background: rgba(45, 90, 123, 0.12);
}

.yazz-card__tag[data-tag="loisirs"],
.yazz-card__tag[data-tag="loisirs-pro"] {
  color: #3d6b4f;
  background: rgba(61, 107, 79, 0.12);
}

.yazz-card__tag[data-tag="vitrine"],
.yazz-card__tag[data-tag="mobile"] {
  color: #8b5a3c;
  background: rgba(139, 90, 60, 0.12);
}

/* --- Cartes projets (c-speed-block) --- */
.yazz-card-grid {
  padding-bottom: 4rem;
}

.yazz-card {
  margin-bottom: 4rem;
}

/* Image ~ demi-écran + entrée alternée droite / gauche au scroll (is-inview) */
.yazz-card__media {
  position: relative;
  width: min(50vw, 100%);
  max-width: 100%;
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease;
}

.yazz-card--enter-right .yazz-card__media {
  margin-left: auto;
  margin-right: 0;
  opacity: 0;
  transform: translateX(clamp(16px, 14vw, 120px));
}

.yazz-card--enter-right.is-inview .yazz-card__media {
  opacity: 1;
  transform: translateX(0);
}

.yazz-card--enter-left .yazz-card__media {
  margin-right: auto;
  margin-left: 0;
  opacity: 0;
  transform: translateX(calc(-1 * clamp(16px, 14vw, 120px)));
}

.yazz-card--enter-left.is-inview .yazz-card__media {
  opacity: 1;
  transform: translateX(0);
}

.yazz-card__body {
  display: block;
  color: inherit;
}

.yazz-card__link,
.yazz-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.yazz-card__media-link:hover .c-speed-block_image {
  opacity: 0.92;
}

.yazz-card__copy {
  margin-top: 1.25rem;
  max-width: 36rem;
}

.yazz-card__hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(39, 39, 39, 0.75);
}

.yazz-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.85rem;
}

.yazz-card__link-item {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}

.yazz-card__link-item:hover {
  color: var(--accent);
}

.yazz-card__link-item--demo {
  color: var(--accent-soft);
}

.c-speed-block {
  position: relative;
}

@media (min-width: 1000px) {
  .c-speed-block {
    margin: 2rem 0;
  }
}

.o-image_wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
  border-radius: 4px;
}

.o-image_wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(39, 39, 39, 0.42) 0%, transparent 55%),
    linear-gradient(
      180deg,
      rgba(39, 39, 39, 0.08) 0%,
      rgba(39, 39, 39, 0.22) 50%,
      rgba(39, 39, 39, 0.32) 100%
    );
  opacity: 1;
  transition: opacity 0.35s ease;
}

.yazz-card__media-link:hover .o-image_wrapper::after,
.yazz-card__link:hover .o-image_wrapper::after {
  opacity: 0.72;
}

.o-image {
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.o-image--photo {
  opacity: 1;
  mix-blend-mode: normal;
}

.o-image img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.c-speed-block_image {
  margin-top: -24px;
  margin-bottom: -24px;
}

.c-speed-block_title {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.c-speed-block_title.is-inview {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

@media (max-width: 1199px) {
  .c-speed-block_title {
    display: none;
  }
}

/* Cercle fixe + numéro au centre (01, 02…) — ::before = disque ; __num = texte au-dessus (évite blend / stacking) */
.c-speed-block_bubble {
  position: absolute;
  right: 16px;
  top: 28%;
  z-index: 2;
  box-sizing: border-box;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  isolation: isolate;
  mix-blend-mode: normal;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.c-speed-block_bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  border-radius: 50%;
  transform: scale(0);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.17, 0.67, 0.3, 1.33);
}

.c-speed-block_bubble.is-inview::before {
  transform: scale(1);
  transition-delay: 0.25s;
}

.c-speed-block_bubble__num {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .c-speed-block_bubble {
    display: none;
  }
}

/* --- Bandeau logo : largeur normale pour ne pas fausser le calcul de hauteur du scroll fluide --- */
.c-choochoo {
  padding: 0 1.25rem;
  overflow: hidden;
}

.c-choochoo_item {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 14vh 0;
  box-sizing: border-box;
  text-align: center;
}

.c-choochoo_logo {
  display: inline-block;
  width: auto;
  height: clamp(3rem, 11vw, 5.5rem);
  max-width: min(92vw, 20rem);
  vertical-align: middle;
  object-fit: contain;
}

@media (max-width: 1199px) {
  .c-choochoo_item {
    padding: 10vh 0;
  }
}

@media (max-width: 768px) {
  .c-choochoo_item {
    padding: 8vh 0;
  }

  .c-choochoo_logo {
    height: clamp(2.5rem, 9vw, 4rem);
    max-width: min(90vw, 16rem);
  }
}

/* Don Stripe — contact & about */
.yazz-donate {
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 8px;
  background: rgba(241, 137, 92, 0.12);
  border: 1px solid rgba(241, 137, 92, 0.35);
}

.yazz-donate__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.yazz-donate__text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.yazz-donate-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background: var(--accent, #f1895c);
  color: var(--white, #fff) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.yazz-donate-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.yazz-donate-btn:focus-visible {
  outline: 2px solid var(--ink, #272727);
  outline-offset: 3px;
}

.contact-offer__copy .yazz-donate-btn,
.about-hero__content .yazz-donate-btn {
  margin-top: 1rem;
  align-self: flex-start;
}

/* Footer fixe — 3 colonnes, compact */
.yazz-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 6px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left));
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(46, 50, 68, 0.55);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(247, 248, 250, 0.96)
  );
}

.yazz-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0.35rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
  pointer-events: none;
}

.yazz-footer__col {
  pointer-events: auto;
  min-width: 0;
}

.yazz-footer__col--brand {
  text-align: left;
}

.yazz-footer__col--links {
  text-align: center;
}

.yazz-footer__col--newsletter {
  text-align: right;
}

.yazz-footer__tagline {
  margin: 0;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.yazz-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.2rem;
}

.yazz-footer__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.68rem;
  white-space: nowrap;
}

.yazz-footer__link:hover {
  color: var(--ink);
}

.yazz-footer__address {
  margin: 0;
  font-style: normal;
  font-size: 0.65rem;
  color: inherit;
  line-height: 1.3;
}

.yazz-footer__newsletter {
  margin: 0;
  max-width: none;
}

.yazz-footer__newsletter-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(46, 50, 68, 0.65);
}

.yazz-footer__newsletter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: stretch;
}

.yazz-footer__newsletter-input {
  flex: 1 1 6rem;
  min-width: 0;
  max-width: 11rem;
  padding: 4px 8px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.68rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(39, 39, 39, 0.18);
  border-radius: 3px;
}

.yazz-footer__newsletter-input::placeholder {
  color: rgba(39, 39, 39, 0.45);
}

.yazz-footer__newsletter-input:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

.yazz-footer__newsletter-btn {
  padding: 4px 8px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.yazz-footer__newsletter-btn:hover {
  filter: brightness(1.05);
}

.yazz-footer__newsletter-msg {
  margin: 3px 0 0;
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(46, 50, 68, 0.75);
  text-align: right;
}

.yazz-footer__newsletter-msg:not([hidden]) {
  display: block;
}

@media (max-width: 899px) {
  .yazz-footer__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .yazz-footer__col--brand,
  .yazz-footer__col--links,
  .yazz-footer__col--newsletter {
    text-align: center;
  }

  .yazz-footer__newsletter-row {
    justify-content: center;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .yazz-footer__newsletter-msg {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .yazz-footer__newsletter-row {
    flex-wrap: wrap;
  }

  .yazz-footer__newsletter-input {
    flex: 1 1 100%;
    max-width: none;
  }

  .yazz-footer__newsletter-btn {
    width: 100%;
  }
}

/* Barre de défilement au-dessus du footer */
.c-scrollbar {
  z-index: 60;
}

/* --- Modales (cookies, newsletter) --- */
html.yazz-consent-open,
html.yazz-nl-popup-open {
  overflow: hidden;
}

.yazz-consent {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: auto;
}

.yazz-consent[hidden] {
  display: none !important;
}

.yazz-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 39, 39, 0.45);
}

.yazz-consent__panel {
  position: relative;
  width: 100%;
  max-width: min(26rem, calc(100vw - 2rem));
  max-height: min(90vh, 24rem);
  overflow-y: auto;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--paper);
  border: 1px solid rgba(39, 39, 39, 0.12);
  border-radius: 6px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.yazz-consent__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.yazz-consent__close:hover {
  background: rgba(39, 39, 39, 0.08);
}

.yazz-consent__title {
  margin: 0 2rem 0.65rem 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.yazz-consent__text {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(39, 39, 39, 0.88);
}

.yazz-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.yazz-consent__btn {
  padding: 0.55rem 1.1rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid transparent;
}

.yazz-consent__btn--accept {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.yazz-consent__btn--accept:hover {
  filter: brightness(1.05);
}

.yazz-consent__btn--refuse {
  background: transparent;
  color: var(--ink);
  border-color: rgba(39, 39, 39, 0.25);
}

.yazz-consent__btn--refuse:hover {
  background: rgba(39, 39, 39, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .yazz-consent__btn--accept:hover,
  .yazz-consent__btn--refuse:hover {
    filter: none;
  }
}

/* Popup newsletter */
.yazz-nl-popup {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: auto;
}

.yazz-nl-popup[hidden] {
  display: none !important;
}

.yazz-nl-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 39, 39, 0.45);
}

.yazz-nl-popup__panel {
  position: relative;
  width: 100%;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--paper);
  border: 1px solid rgba(39, 39, 39, 0.12);
  border-radius: 6px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.yazz-nl-popup__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.yazz-nl-popup__close:hover {
  background: rgba(39, 39, 39, 0.08);
}

.yazz-nl-popup__title {
  margin: 0 2rem 0.5rem 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.yazz-nl-popup__text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(39, 39, 39, 0.88);
}

.yazz-nl-popup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.yazz-nl-popup__input {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid rgba(39, 39, 39, 0.2);
  border-radius: 4px;
  background: var(--white);
}

.yazz-nl-popup__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.yazz-nl-popup__submit {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
}

.yazz-nl-popup__submit:hover {
  filter: brightness(1.05);
}

.yazz-nl-popup__later {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(39, 39, 39, 0.6);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.yazz-nl-popup__later:hover {
  color: var(--ink);
}

.yazz-nl-popup__msg {
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent-soft);
}

.yazz-nl-popup__msg:not([hidden]) {
  display: block;
}

/* --- Intro coffre --- */
@property --yazz-hole {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --yazz-mist-blur {
  syntax: "<length>";
  inherits: false;
  initial-value: 36px;
}

@property --yazz-mist-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.yazz-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  background-color: var(--paper);
  transition: background-color 0.55s ease;
}

.yazz-intro--dissolving {
  pointer-events: none;
  background-color: transparent;
  opacity: 0;
  filter: blur(24px);
  transition:
    opacity 0.55s cubic-bezier(0.33, 1, 0.4, 1),
    filter 0.55s cubic-bezier(0.33, 1, 0.4, 1),
    background-color 0.35s ease;
}

.yazz-intro--dissolving .yazz-intro__inner {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.5s cubic-bezier(0.33, 1, 0.4, 1),
    transform 0.5s cubic-bezier(0.33, 1, 0.4, 1);
}

.yazz-intro--done {
  display: none;
}

.yazz-intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 28rem;
  width: 100%;
}

.yazz-intro__title {
  margin: 0 0 1.75rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.95;
  color: var(--ink);
}

.yazz-intro__title-line {
  display: block;
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  letter-spacing: -0.02em;
}

.yazz-intro__title-line--sub {
  margin-top: 0.15em;
  font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  color: var(--accent-soft);
}

.yazz-intro__title-line--sub em {
  font-style: italic;
  color: var(--accent);
}

.yazz-chest {
  margin: 0;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.yazz-chest:hover {
  transform: scale(1.04);
}

.yazz-chest:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 8px;
}

.yazz-chest__svg {
  display: block;
  width: min(72vw, 14rem);
  height: auto;
  overflow: visible;
}

.yazz-chest__lid {
  transform-origin: 110px 88px;
  transform: rotate(-28deg);
  transition: transform 0.65s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.yazz-chest--open .yazz-chest__lid {
  transform: rotate(-108deg);
}

.yazz-chest__glow {
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

.yazz-chest--open .yazz-chest__glow {
  opacity: 1;
}

.yazz-chest__spark {
  opacity: 0.4;
  animation: yazz-sparkle 2.2s ease-in-out infinite;
}

.yazz-chest__spark--2 {
  animation-delay: 0.4s;
}

.yazz-chest__spark--3 {
  animation-delay: 0.9s;
}

.yazz-chest--open .yazz-chest__spark {
  opacity: 1;
  animation-duration: 1.1s;
}

@keyframes yazz-sparkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.yazz-intro__hint {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(39, 39, 39, 0.55);
  animation: yazz-hint-pulse 2.5s ease-in-out infinite;
}

@keyframes yazz-hint-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.yazz-main {
  opacity: 0;
  visibility: hidden;
}

.yazz-main--behind,
.yazz-main--revealing,
.yazz-main--visible {
  visibility: visible;
  opacity: 1;
  filter: none;
}

.yazz-main--visible {
  opacity: 1;
}

/* Buée : cercle central qui s’agrandit, bord flou progressif */
.yazz-mist {
  position: fixed;
  inset: 0;
  z-index: 280;
  pointer-events: none;
  -webkit-backdrop-filter: blur(var(--yazz-mist-blur)) saturate(0.82) brightness(1.04);
  backdrop-filter: blur(var(--yazz-mist-blur)) saturate(0.82) brightness(1.04);
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(212, 201, 201, 0.5) 42%,
      rgba(212, 201, 201, 0.78) 100%
    );
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent var(--yazz-hole),
    rgba(0, 0, 0, 0.2) calc(var(--yazz-hole) + 1.5rem),
    rgba(0, 0, 0, 0.55) calc(var(--yazz-hole) + 3.5rem),
    rgba(0, 0, 0, 0.85) calc(var(--yazz-hole) + 6rem),
    black calc(var(--yazz-hole) + 10rem)
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent var(--yazz-hole),
    rgba(0, 0, 0, 0.2) calc(var(--yazz-hole) + 1.5rem),
    rgba(0, 0, 0, 0.55) calc(var(--yazz-hole) + 3.5rem),
    rgba(0, 0, 0, 0.85) calc(var(--yazz-hole) + 6rem),
    black calc(var(--yazz-hole) + 10rem)
  );
  opacity: var(--yazz-mist-opacity);
}

.yazz-mist--play {
  animation: yazz-mist-dissipate 1.55s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

@keyframes yazz-mist-dissipate {
  0% {
    --yazz-hole: 0px;
    --yazz-mist-blur: 28px;
    --yazz-mist-opacity: 1;
  }
  18% {
    --yazz-hole: 14vmin;
    --yazz-mist-blur: 22px;
  }
  40% {
    --yazz-hole: 38vmin;
    --yazz-mist-blur: 14px;
  }
  65% {
    --yazz-hole: 62vmin;
    --yazz-mist-blur: 6px;
  }
  85% {
    --yazz-hole: 82vmin;
    --yazz-mist-blur: 2px;
  }
  100% {
    --yazz-hole: 98vmin;
    --yazz-mist-blur: 0px;
    --yazz-mist-opacity: 0;
  }
}

.yazz-reveal {
  position: fixed;
  left: 50%;
  bottom: calc(clamp(5.5rem, 14vh, 11rem) + 1rem);
  z-index: 55;
  width: min(92vw, 26rem);
  padding: 1rem 1.15rem;
  margin: 0;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(39, 39, 39, 0.08);
  box-shadow: 0 12px 40px rgba(39, 39, 39, 0.12);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.yazz-reveal--visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.yazz-reveal__text {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink);
}

.yazz-reveal__text strong {
  color: var(--accent-soft);
  font-weight: 600;
}

.yazz-reveal__cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.yazz-reveal__cta:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .yazz-intro,
  .yazz-main,
  .yazz-reveal,
  .yazz-mist,
  .yazz-chest__lid,
  .yazz-chest__glow {
    transition: none !important;
  }

  .yazz-mist {
    display: none !important;
  }

  .yazz-intro--dissolving {
    filter: none !important;
    opacity: 0 !important;
    transition: none !important;
  }

  .yazz-intro__hint,
  .yazz-chest__spark {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .c-header_heading_label,
  .c-header_title_line,
  .c-summary_text,
  .c-summary_list_item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .c-header_line {
    transform: scaleX(1) !important;
  }

  .yazz-card__media {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
