/* variables d'ambiance */
:root {
  color-scheme: dark;
  --bg-dark: #00001A;
  --bg-dark-alt: #0d0d38;
  --text-light: #FFE6EA;
  --text-muted: #98a3c6;
  --border-subtle: rgba(255, 230, 234, 0.12);
  --accent-lavender: #CBC3E3;
  --card-light: #FFE6EA;
  --card-light-alt: #f5d4da;
  --text-dark: #00001A;
  --text-dark-muted: #545f88;
  --badge-red: #c63d2f;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-sans: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --glow: rgba(203, 195, 227, 0.55);
  --glow-soft: rgba(203, 195, 227, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
  background:
          radial-gradient(ellipse 80% 50% at 50% 0%, rgba(203, 195, 227, 0.07), transparent 70%),
          url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
          var(--bg-dark);
}

h1, h2, h3 {
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent-lavender);
}

:focus-visible {
  outline: 2px solid var(--accent-lavender);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

/* header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  margin-left: calc(-1 * clamp(16px, 4vw, 48px));
  margin-right: calc(-1 * clamp(16px, 4vw, 48px));
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
  background: rgba(0, 0, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.top b span {
  color: var(--accent-lavender);
}

.top nav {
  display: flex;
  gap: clamp(12px, 2.5vw, 28px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.top nav a:hover {
  color: var(--text-light);
  text-shadow: 0 0 14px rgba(203, 195, 227, 0.7);
}

.burger {
  display: none;
}

@media (max-width: 640px) {
  .top b {
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .top.ouvert .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .top.ouvert .burger span:nth-child(2) {
    opacity: 0;
  }
  .top.ouvert .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .top nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px clamp(16px, 4vw, 48px) 12px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
  }
  .top.ouvert nav {
    display: flex;
  }
  .top nav a {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .top nav a:last-child {
    border-bottom: 0;
  }
}

/* hero */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.who img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-lavender);
}

.who span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 7.4vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
}

.hero h1 .prenom {
  color: var(--accent-lavender);
  display: block;
}

.hero h1 .nom {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--text-light);
}

.accroche {
  margin-top: 22px;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-light);
  max-width: 26em;
}

.lede {
  margin-top: 14px;
  max-width: 34em;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.dispo {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispo span {
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dispo span:first-child {
  border-color: var(--accent-lavender);
  color: var(--accent-lavender);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn.plein {
  background: var(--accent-lavender);
  color: #00001A;
}

.btn.plein:hover {
  background: #dcd6ee;
  box-shadow: 0 0 26px 2px var(--glow);
}

.btn.creux {
  color: var(--text-light);
  border-color: var(--border-subtle);
}

.btn.creux:hover {
  border-color: var(--text-muted);
  box-shadow: 0 0 22px var(--glow-soft);
}

/* plateau memory */
.jeu {
  position: relative;
}

.jeu-tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.jeu-tete h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.compte {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plateau {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.carte {
  position: relative;
  aspect-ratio: 5 / 7;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  perspective: 700px;
  font: inherit;
  color: inherit;
}

.carte .int {
  position: absolute;
  inset: 0;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
  transform-style: preserve-3d;
}

.carte.ouverte .int,
.carte.trouvee .int {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.dos {
  background: var(--bg-dark-alt);
  border: 1px solid rgba(255, 230, 234, 0.18);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 12% 16%;
  padding: 16% 18%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.dos i {
  display: block;
  border-radius: 1px;
  background: #1c1c52;
}

.dos i.on {
  background: var(--accent-lavender);
  box-shadow: 0 0 8px rgba(203, 195, 227, 0.55);
}

.carte:hover .dos {
  border-color: rgba(203, 195, 227, 0.5);
}

.carte:not(.trouvee):hover .dos {
  box-shadow: 0 0 26px 2px var(--glow), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.recto {
  transform: rotateY(180deg);
  background: var(--card-light);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.recto b {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 0.95;
  max-width: 100%;
  white-space: nowrap;
}

.recto b.long {
  font-size: clamp(0.85rem, 1.6vw, 1.2rem);
  letter-spacing: 0.01em;
}

.recto small {
  font-size: 0.64rem;
  color: var(--text-dark-muted);
  letter-spacing: 0.06em;
}

.carte.trouvee .recto {
  background: var(--accent-lavender);
}

.carte.trouvee .recto small {
  color: #3b3566;
}

.carte.trouvee {
  cursor: default;
}

.consigne {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.preuves {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preuves li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border-left: 3px solid var(--accent-lavender);
  background: rgba(203, 195, 227, 0.07);
  font-size: 0.9rem;
  animation: apparait 0.35s ease;
  transition: box-shadow 0.25s ease;
}

.preuves li:hover {
  box-shadow: 0 0 22px var(--glow-soft);
}

.preuves li b {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-lavender);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.preuves li a {
  color: var(--text-light);
  text-decoration-color: rgba(255, 230, 234, 0.35);
  text-underline-offset: 3px;
}

@keyframes apparait {
  from {
    transform: translateY(-4px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.fin {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}

.fin button {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  border-radius: 6px;
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.fin button:hover {
  box-shadow: 0 0 18px var(--glow-soft);
  border-color: rgba(203, 195, 227, 0.5);
}

/* sections */
section.bloc {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.bloc-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.bloc-tete h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.005em;
}

.bloc-tete h2 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-light);
}

.bloc-tete p {
  color: var(--text-muted);
  max-width: 30em;
  font-size: 0.98rem;
}

.couleurs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-light);
}

.couleurs b {
  font-size: 1.1rem;
  margin-right: 4px;
}

.couleurs .rouge {
  color: #ff7a69;
}

/* cartes projets */
.projets {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

.projet {
  --r: 0deg;
  position: relative;
  background: var(--card-light);
  color: var(--text-dark);
  border-radius: 16px;
  padding-top: clamp(52px, 6vw, 64px);
  padding-bottom: clamp(52px, 6vw, 64px);
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  box-shadow:
          0 1px 0 rgba(255, 255, 255, 0.6) inset,
          0 22px 44px rgba(0, 0, 0, 0.45),
          0 4px 10px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--r));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  scroll-margin-top: 96px;
}

.projet::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 0, 26, 0.14);
  border-radius: 10px;
  pointer-events: none;
}

.projet:nth-child(odd) {
  --r: -0.5deg;
}

.projet:nth-child(even) {
  --r: 0.45deg;
}

.projet:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
          0 1px 0 rgba(255, 255, 255, 0.6) inset,
          0 0 0 1px rgba(203, 195, 227, 0.35),
          0 0 90px 12px var(--glow),
          0 22px 44px rgba(0, 0, 0, 0.45);
}

.projet.eclaire {
  box-shadow:
          0 0 0 4px var(--accent-lavender),
          0 22px 44px rgba(0, 0, 0, 0.45);
}

@media (max-width: 860px) {
  .projet {
    grid-template-columns: 1fr;
    --r: 0deg !important;
  }
}

.coin {
  position: absolute;
  top: 18px;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.coin i {
  font-style: normal;
  font-size: 1.05rem;
}

.coin.bas {
  top: auto;
  left: auto;
  bottom: 18px;
  right: 22px;
  transform: rotate(180deg);
}

.projet.web .coin i,
.projet.web .meta .sorte {
  color: var(--badge-red);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  margin-bottom: 6px;
}

.meta .sorte {
  font-weight: 600;
  color: var(--text-dark);
}

.projet h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 0.88;
  margin-bottom: 14px;
}

.projet > div > p {
  color: var(--text-dark-muted);
  max-width: 34em;
}

.fait {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fait li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.fait li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 11px;
  border-radius: 1px;
  background: var(--text-dark);
}

.chiffre {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.chiffre div {
  font-size: 0.82rem;
  color: var(--text-dark-muted);
  line-height: 1.25;
}

.chiffre b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

.visuel .chiffre div {
  color: var(--text-muted);
}

.visuel .chiffre b {
  color: var(--text-light);
}

/* visuel projet */
.visuel {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25) inset;
}

.visuel figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

figure {
  margin: 0;
}

pre {
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'calt' 0;
  margin: 0;
  font-family: var(--font-code);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-light);
  overflow-x: auto;
  white-space: pre;
}

pre .k {
  color: var(--accent-lavender);
}

pre .c {
  color: var(--text-muted);
}

pre .s {
  color: #9fd8c9;
}

.barres {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.barre {
  display: grid;
  grid-template-columns: 8.5em 1fr 2.2em;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
}

.barre span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.barre i {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: var(--accent-lavender);
}

.graphe-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: auto;
}

.graphe-svg text {
  font-family: var(--font-code);
  font-size: 11px;
  fill: var(--text-light);
}

.graphe-svg line {
  stroke: rgba(255, 230, 234, 0.35);
  stroke-width: 1.2;
}

.graphe-svg rect {
  fill: var(--bg-dark-alt);
  stroke: rgba(255, 230, 234, 0.3);
}

.graphe-svg rect.cle {
  fill: #34306b;
  stroke: var(--accent-lavender);
}

/* cirque */
.cirque-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.etape {
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.etape b {
  display: block;
  font-family: var(--font-code);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.objectif {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mini {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.mini div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  align-items: center;
  width: 26px;
  border-bottom: 2px solid var(--text-muted);
  padding-bottom: 2px;
  min-height: 10px;
}

.mini i {
  display: block;
  width: 22px;
  height: 7px;
  border-radius: 2px;
}

.scene {
  position: relative;
  height: 150px;
  margin-top: 4px;
}

.socle {
  position: absolute;
  bottom: 0;
  width: 34%;
  height: 8px;
  border-radius: 2px;
  background: var(--text-muted);
  transform: translateX(-50%);
}

.animal {
  position: absolute;
  width: 30%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  color: #00001A;
  transition: left 0.5s cubic-bezier(0.4, 0.1, 0.2, 1), bottom 0.4s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.animal.actif {
  box-shadow: 0 0 0 2px var(--text-light), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.cirque-pied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cirque-pied button {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.cirque-pied button:hover {
  border-color: var(--text-muted);
  box-shadow: 0 0 18px var(--glow-soft);
}

/* parcours */
.parcours {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

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

.frise {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.frise::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-subtle);
}

.frise li {
  position: relative;
  padding: 0 0 34px 40px;
}

.frise li:last-child {
  padding-bottom: 0;
}

.frise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 22px;
  border-radius: 2px;
  background: #1c1c52;
  border: 1px solid rgba(255, 230, 234, 0.2);
}

.frise li.maintenant::before {
  background: var(--accent-lavender);
  box-shadow: 0 0 14px rgba(203, 195, 227, 0.6);
  border-color: var(--accent-lavender);
}

.frise li.avenir::before {
  background: transparent;
  border: 2px dashed var(--accent-lavender);
}

.frise .quand {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.frise h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1;
  margin: 4px 0 6px;
  letter-spacing: 0.01em;
}

.frise p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 34em;
}

.frise li.avenir h3 {
  color: var(--accent-lavender);
}

.cote {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.encart {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
  background: rgba(13, 13, 56, 0.55);
}

.encart h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.encart p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.encart dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 0.93rem;
}

.encart dt {
  color: var(--text-muted);
}

.encart dd {
  margin: 0;
}

/* hors code */
.main-cartes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 10px;
}

.gout {
  position: relative;
  background: var(--card-light);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 44px 18px 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gout::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(0, 0, 26, 0.14);
  border-radius: 8px;
  pointer-events: none;
}

.gout:nth-child(1) {
  transform: rotate(-4deg) translateY(10px);
}

.gout:nth-child(2) {
  transform: rotate(-1.5deg);
}

.gout:nth-child(3) {
  transform: rotate(1.5deg);
}

.gout:nth-child(4) {
  transform: rotate(4deg) translateY(10px);
}

.gout:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow:
          0 0 0 1px rgba(203, 195, 227, 0.35),
          0 0 56px 8px var(--glow),
          0 14px 30px rgba(0, 0, 0, 0.4);
}

.gout .coin {
  top: 12px;
  left: 14px;
  font-size: 1rem;
}

.gout h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 0.9;
  margin-bottom: 8px;
}

.gout p {
  color: var(--text-dark-muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .main-cartes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .main-cartes {
    grid-template-columns: 1fr;
  }
  .gout {
    transform: none !important;
  }
}

/* contact */
.contact {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .contact .wrap {
    grid-template-columns: 1fr;
  }
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.84;
}

.contact h2 span {
  color: var(--accent-lavender);
}

.contact .intro {
  margin-top: 18px;
  color: var(--text-muted);
  max-width: 28em;
}

.visite {
  position: relative;
  background: var(--card-light);
  color: var(--text-dark);
  border-radius: 14px;
  padding: 30px clamp(20px, 4vw, 34px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.2deg);
}

.visite::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(0, 0, 26, 0.14);
  border-radius: 9px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .visite {
    transform: none;
  }
}

.visite .nom-carte {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 0.9;
}

.visite .role {
  color: var(--text-dark-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.coords {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 26, 0.15);
  padding-top: 18px;
}

.coord {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.coord span {
  user-select: all;
  font-size: 1rem;
  font-weight: 500;
}

.coord button {
  background: var(--text-dark);
  color: var(--card-light);
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.coord button:hover {
  box-shadow: 0 0 18px var(--glow);
}

.coord button.ok {
  background: var(--badge-red);
}

.lieu {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

/* en cours */
.a-venir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

@media (max-width: 760px) {
  .a-venir {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prochaine {
  position: relative;
  border: 2px dashed rgba(203, 195, 227, 0.55);
  border-radius: 16px;
  padding: clamp(48px, 5vw, 56px) clamp(22px, 3.4vw, 40px) clamp(28px, 3vw, 36px);
  background: rgba(13, 13, 56, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.prochaine:hover {
  transform: translateY(-3px);
  border-color: var(--accent-lavender);
  box-shadow: 0 0 46px 4px var(--glow-soft);
}

.prochaine .coin {
  color: var(--text-light);
  top: 16px;
  left: 20px;
}

.prochaine.web .coin i {
  color: #ff7a69;
}

.prochaine .quand-etiquette {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-lavender);
  border: 1px solid rgba(203, 195, 227, 0.45);
  border-radius: 5px;
  padding: 3px 8px;
}

.prochaine h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 0.85;
  margin-bottom: 10px;
}

.prochaine .sous {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 10px;
}

.prochaine p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32em;
}

footer {
  width: 100%;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 24px 16px;

  border-top: 1px solid var(--border-subtle);
  background:
          url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
          rgba(13, 13, 56, 0.45);
  backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer strong,
footer b {
  margin-left : 3px;
  color: var(--text-light);
  font-weight: 600;
}