/* =========================================================
   TOOMB — Landing page portfolio
   Feuille de style principale
   ---------------------------------------------------------
   Sommaire
   01. Variables (couleurs, typos) — modifiez le thème ici
   02. Base & utilitaires
   03. Boutons (+ contour animé « comète »)
   04. Header & menu mobile (hamburger)
   05. Hero
   06. Logos clients & chiffres
   07. Projets phares
   08. Avis clients
   09. Services
   10. Portfolio (filtres + galerie)
   11. Méthode
   12. Contact
   13. Footer
   14. Fenêtres (visionneuse + étude de cas)
   15. Animations (@keyframes)
   16. Responsive (≤ 900 px)
   17. Accessibilité : animations réduites
   ========================================================= */

/* ---------- 01. Variables ---------- */
:root {
  /* Couleurs néon : changez ces 3 valeurs pour changer tout le thème */
  --acc: #00e5ff; /* cyan  — couleur principale (boutons, liens) */
  --acc2: #a238ff; /* violet */
  --acc3: #ff2bd6; /* magenta */

  --bg: #060a12; /* fond de page */
  --bg-card: #0a1120;
  --text: #e8edf4;
  --text-2: #c9d2de;
  --muted: #94a1b5;
  --line: rgba(255, 255, 255, 0.08);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-logo: "Gasoek One", "Sora", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 72px;
}

/* Propriétés animables (pour les contours qui tournent) */
@property --beam {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- 02. Base & utilitaires ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  overflow-x: clip;
}
img {
  max-width: 100%;
}
a {
  color: var(--acc);
}
a:hover {
  color: #7cf0f8;
}
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 8px;
}
section[id] {
  scroll-margin-top: var(--header-h);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font: 600 13px var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  margin: 0;
}
.h2--sm {
  font-size: clamp(32px, 3.6vw, 46px);
}
.section {
  position: relative;
  padding: 100px 0;
  overflow-x: clip;
}
/* overflow-x: clip empêche les nappes de couleur de créer un défilement horizontal sur mobile */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-head--center {
  text-align: center;
  align-items: center;
}
.section-head p {
  margin: 0;
}

/* Carte « verre » */
.glass {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Étiquette (outils, mots-clés) */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd4e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Texte à compléter : [EN JAUNE POINTILLÉ] — supprimez la classe une fois rempli */
.ph {
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  color: #9ff3fa;
  border: 1px dashed color-mix(in srgb, var(--acc) 55%, transparent);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 600;
}

/* Nappes de couleur floues en arrière-plan */
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite;
}
.glow--acc {
  background: var(--acc);
}
.glow--acc2 {
  background: var(--acc2);
}
.glow--acc3 {
  background: var(--acc3);
}

/* Halo qui suit la souris (ordinateur uniquement) */
.spot {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    420px circle at var(--cx, 50%) var(--cy, -20%),
    color-mix(in srgb, var(--acc) 9%, transparent),
    transparent 70%
  );
}

/* ---------- 03. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font: 600 15px var(--font-display);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--between {
  justify-content: space-between;
}

.btn-acc {
  background: var(--acc);
  color: #031317;
  box-shadow: 0 0 22px color-mix(in srgb, var(--acc) 45%, transparent);
}
.btn-acc:hover {
  color: #031317;
  box-shadow: 0 0 44px color-mix(in srgb, var(--acc) 75%, transparent);
}

.btn-out {
  background: transparent;
  color: var(--acc);
  border: 1.5px solid color-mix(in srgb, var(--acc) 70%, transparent);
}
.btn-out:hover {
  color: #031317;
  background: var(--acc);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Contour animé « comète » (repris de fihirana.rindra.org)
   Ajoutez .beam + .beam-solid (bouton plein) ou .beam-ghost (bouton contour) */
.beam {
  position: relative;
  isolation: isolate;
}
.beam::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px; /* épaisseur du contour */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  animation: beam 4s linear infinite; /* durée d'un tour */
  pointer-events: none;
}
.beam-solid::before {
  padding: 2px;
  background: conic-gradient(
    from var(--beam),
    transparent 0deg,
    transparent 262deg,
    rgba(255, 255, 255, 0.45) 296deg,
    rgba(255, 255, 255, 0.92) 330deg,
    #fff 344deg,
    rgba(255, 255, 255, 0.92) 352deg,
    rgba(255, 255, 255, 0.4) 357deg,
    transparent 360deg
  );
}
.beam-ghost::before {
  animation-delay: -2s; /* décalé : les deux comètes ne tournent pas ensemble */
  background: conic-gradient(
    from var(--beam),
    transparent 0deg,
    transparent 288deg,
    color-mix(in srgb, var(--acc) 40%, transparent) 322deg,
    color-mix(in srgb, var(--acc) 55%, #fff) 344deg,
    color-mix(in srgb, var(--acc) 40%, transparent) 356deg,
    transparent 360deg
  );
}

/* ---------- 04. Header & menu mobile ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font: 400 22px var(--font-logo);
  letter-spacing: 0.01em;
}
.logo:hover {
  color: #fff;
}
.logo svg {
  stroke: var(--acc);
}

.navlinks {
  display: flex;
  gap: 32px;
}
.navlink {
  position: relative;
  color: var(--text-2);
  text-decoration: none;
  font: 500 14px var(--font-display);
  padding: 12px 2px;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.navlink:hover {
  color: #fff;
}
.navlink:hover::after {
  transform: scaleX(1);
}
.hdr__cta {
  min-height: 44px;
  padding: 0 18px;
}

/* Bouton hamburger (visible ≤ 900 px) */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.burger:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
}
.burger__bars {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}
.burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.35s var(--ease),
    opacity 0.2s,
    top 0.35s var(--ease);
}
.burger__bars span:nth-child(1) {
  top: 0;
}
.burger__bars span:nth-child(2) {
  top: 6px;
}
.burger__bars span:nth-child(3) {
  top: 12px;
}
/* Les 3 traits deviennent une croix */
.burger.is-open .burger__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.burger.is-open .burger__bars span:nth-child(2) {
  opacity: 0;
}
.burger.is-open .burger__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Panneau du menu mobile */
.mmenu {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.45s var(--ease),
    opacity 0.3s;
  border-top: 1px solid transparent;
}
.mmenu.is-open {
  max-height: 520px;
  opacity: 1;
  border-top-color: rgba(255, 255, 255, 0.06);
}
.mmenu__nav {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 24px;
}
.mnav-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--text);
  text-decoration: none;
  font: 500 20px var(--font-display);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s,
    color 0.2s;
}
.mnav-link:hover {
  color: var(--acc);
}
.mmenu.is-open .mnav-link {
  transform: none;
  opacity: 1;
}
.mmenu.is-open .mnav-link:nth-child(2) {
  transition-delay: 0.04s;
}
.mmenu.is-open .mnav-link:nth-child(3) {
  transition-delay: 0.08s;
}
.mmenu.is-open .mnav-link:nth-child(4) {
  transition-delay: 0.12s;
}
.mmenu__cta {
  margin-top: 18px;
}

/* ---------- 05. Hero ---------- */
.hero {
  position: relative;
  padding: 28px 0 0;
  min-height: 760px;
  overflow-x: clip;
}
.stage {
  position: relative;
  height: clamp(440px, 50vw, 680px);
}

/* Mot géant « Toomb » derrière le portrait */
.giant {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  text-align: center;
  font: 400 clamp(72px, 19vw, 250px)/0.9 var(--font-logo);
  letter-spacing: -0.01em;
  color: #e7ebf1;
  transform: translate3d(
    calc(var(--mx, 0) * 22px),
    calc(var(--my, 0) * 10px),
    0
  );
  transition: transform 0.35s ease-out;
  user-select: none;
}
.ltr {
  display: inline-block;
  animation: ltr 1s var(--ease) both;
}
.ltr:nth-child(1) {
  animation-delay: 0.05s;
}
.ltr:nth-child(2) {
  animation-delay: 0.13s;
}
.ltr:nth-child(3) {
  animation-delay: 0.21s;
}
.ltr:nth-child(4) {
  animation-delay: 0.29s;
}
.ltr:nth-child(5) {
  animation-delay: 0.37s;
}

/* Portrait */
.figure {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(300px, 40vw, 560px);
  transform: translateX(-50%);
  z-index: 3;
}
.figure__float {
  animation: floaty 7s ease-in-out infinite;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(
    calc(var(--mx, 0) * -26px),
    calc(var(--my, 0) * -14px),
    0
  );
  transition: transform 0.35s ease-out;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  animation-delay: 0.45s;
}

/* Textes de part et d'autre */
.hero-row {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  z-index: 4;
  pointer-events: none;
}
.hero-row > * {
  pointer-events: auto;
}
.hero-left {
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation-delay: 0.7s;
}
.hero-right {
  max-width: 300px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation-delay: 0.85s;
}
.hero-text {
  margin: 0;
  font: 400 16px/1.5 var(--font-display);
  color: var(--text-2);
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 260px;
}
.avail {
  margin: 0;
  font-size: 13px;
  color: #8b98ad;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.avail__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3ddc97;
  box-shadow: 0 0 10px #3ddc97;
  display: inline-block;
}
.rise {
  animation: rise 0.9s var(--ease) both;
}

/* Mot qui change dans la phrase d'accroche */
.rot {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}
.rot > span {
  grid-area: 1 / 1;
  color: var(--acc);
  animation: rot 10s infinite both;
}
.rot > span:nth-child(2) {
  animation-delay: 2.5s;
}
.rot > span:nth-child(3) {
  animation-delay: 5s;
}
.rot > span:nth-child(4) {
  animation-delay: 7.5s;
}

/* ---------- 06. Logos clients & chiffres ---------- */
.brands {
  padding: 40px 0 24px;
  position: relative;
  z-index: 2;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .track {
  animation-play-state: paused;
}
.brand {
  font: 500 22px var(--font-display);
  color: #7e8ba0;
  white-space: nowrap;
  transition: color 0.25s;
}
.brand:hover {
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.stat {
  padding: 22px;
}
.stat__num {
  font: 500 34px var(--font-display);
  letter-spacing: -0.025em;
}
.stat__label {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 07. Projets phares ---------- */
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 32px;
}
.fcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.fcard--acc {
  --c: var(--acc);
}
.fcard--acc2 {
  --c: var(--acc2);
}
.fcard--acc3 {
  --c: var(--acc3);
}
.fimg {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  overflow: hidden;
  transform: perspective(900px) rotateX(0) translateY(0);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s;
}
.fimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.8s var(--ease);
}
.fimg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 18, 0.75));
}
.fcard:hover .fimg {
  transform: perspective(900px) rotateX(4deg) translateY(-8px);
  box-shadow: 0 30px 70px -20px var(--c);
}
.fcard:hover .fimg img {
  transform: scale(1.07);
}
.pill {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: 600 15px var(--font-display);
  color: #031317;
  background: var(--c);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.pill:hover {
  box-shadow: 0 0 28px var(--c);
  transform: translateX(-50%) scale(1.05);
}
.fcard__label {
  font-size: 13px;
}
.fcard__title {
  margin: -8px 0 0;
  font: 500 20px var(--font-display);
}

/* ---------- 08. Avis clients ---------- */
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}
.tcard {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  opacity: 0.55;
  transform: scale(0.94);
  transition: all 0.6s var(--ease);
}
.tcard.is-on {
  opacity: 1;
  transform: scale(1);
  border-color: color-mix(in srgb, var(--acc) 60%, transparent);
  background: rgba(10, 30, 40, 0.55);
  box-shadow: 0 0 60px -10px color-mix(in srgb, var(--acc) 55%, transparent);
}
.tcard figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tcard__who {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 14px var(--font-display);
}
.tcard__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: inline-block;
}
.tcard__stars {
  color: #ffc94d;
  letter-spacing: 2px;
  font-size: 13px;
}
.tcard blockquote {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}
.dots {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.dothit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.3s;
}
.dothit[aria-pressed="true"] .dot {
  width: 30px;
  background: var(--acc);
}

/* ---------- 09. Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.svc {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.svc:hover {
  transform: translateY(-6px);
}
.svc--acc {
  --c: var(--acc);
}
.svc--acc2 {
  --c: var(--acc2);
}
.svc--acc3 {
  --c: var(--acc3);
}
.svc-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--c);
  color: #031317;
  font: 600 14px var(--font-display);
}
.svc-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(3, 19, 23, 0.88);
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc h3 {
  margin: 0;
  font: 500 24px var(--font-display);
  letter-spacing: -0.025em;
}
.svc p {
  margin: 0;
}
.svc__foot {
  margin: auto 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 10. Portfolio ---------- */
.pf-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fbtn {
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 500 14px var(--font-display);
  cursor: pointer;
  transition: all 0.25s;
}
.fbtn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.fbtn[aria-pressed="true"] {
  background: var(--acc);
  border-color: var(--acc);
  color: #031317;
}

.masonry {
  columns: 3 300px;
  column-gap: 20px;
}
.tile {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  animation: rise 0.7s var(--ease) both;
}
.tile[hidden] {
  display: none;
}
.tile__img {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0c1220;
}
.tile__img img {
  width: 100%;
  height: auto;
  display: block;
  transition:
    transform 0.7s var(--ease),
    filter 0.5s;
}
.tile:hover .tile__img img {
  transform: scale(1.05);
  filter: saturate(1.15);
}
.tile__img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.4s;
}
.tile:hover .tile__img::after {
  box-shadow: inset 0 0 0 2px var(--acc);
}
.tile__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px 0;
  font-size: 14px;
}
.tile__cap strong {
  font: 500 14px var(--font-display);
}
.pf-more {
  display: flex;
  justify-content: center;
}

/* ---------- 11. Méthode ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -28px;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  transform-origin: left;
  animation: draw 1.2s var(--ease) both;
}
.step::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--acc);
  box-shadow: 0 0 16px var(--acc);
}
.step__num {
  font: 14px var(--font-display);
  color: var(--acc);
}
.step h3 {
  margin: 0;
  font: 500 20px var(--font-display);
}
.step p {
  margin: 0;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tools .eyebrow {
  margin-right: 8px;
}

/* ---------- 12. Contact ---------- */
.cta {
  position: relative;
  border-radius: 32px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
/* Contour animé « comète » autour du bloc */
.cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--beam),
    transparent 0deg,
    transparent 262deg,
    color-mix(in srgb, var(--acc) 45%, transparent) 296deg,
    color-mix(in srgb, var(--acc) 60%, #fff) 330deg,
    #fff 344deg,
    color-mix(in srgb, var(--acc) 60%, #fff) 352deg,
    color-mix(in srgb, var(--acc) 40%, transparent) 357deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  animation: beam 6s linear infinite;
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.cta__text {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cta__text p {
  margin: 0;
  font-size: 17px;
  max-width: 520px;
}
.cta__actions {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 13. Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: #7e8ba0;
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  color: var(--text-2);
}

/* ---------- 14. Fenêtres ---------- */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 6, 12, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  animation: fade 0.3s ease both;
}
.dialog[hidden] {
  display: none;
}
.dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
}
.lb__img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  animation: rise 0.4s ease both;
}
.lb__cap {
  margin: 0;
  text-align: center;
}
.lb__nav {
  display: flex;
  gap: 10px;
}

.dialog--case {
  justify-content: flex-start;
  overflow-y: auto;
}
.case {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 0;
  animation: rise 0.45s ease both;
}
.case__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.case__head h2 {
  margin: 0;
  font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--font-display);
}
.case__imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.case__imgs img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  display: block;
}
.dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 15px;
  padding: 28px;
}
.dl dt {
  color: var(--muted);
  font: 600 12px var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 3px;
}
.dl dd {
  margin: 0;
}
body.no-scroll {
  overflow: hidden;
}

/* ---------- 15. Animations ---------- */
@keyframes beam {
  to {
    --beam: 360deg;
  }
}
@keyframes ltr {
  from {
    opacity: 0;
    transform: translateY(40%) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(70px, -40px) scale(1.15);
  }
  66% {
    transform: translate(-50px, 30px) scale(0.92);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes rot {
  0% {
    opacity: 0;
    transform: translateY(70%);
  }
  4%,
  21% {
    opacity: 1;
    transform: none;
  }
  25%,
  100% {
    opacity: 0;
    transform: translateY(-70%);
  }
}
@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Apparition au défilement (Chrome, Edge, Safari récents) */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
  .tile {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  .step::before {
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 45%;
  }
}

/* ---------- 16. Responsive (≤ 900 px) ---------- */
@media (max-width: 900px) {
  /* Menu : hamburger */
  .navlinks,
  .hdr__cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .mmenu {
    display: block;
  }

  /* Hero empilé */
  .hero {
    min-height: 0;
    padding-top: 20px;
  }
  .stage {
    height: clamp(360px, 92vw, 520px);
  }
  .figure {
    width: min(78vw, 420px);
  }
  .hero-row {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 32px 0 8px;
  }
  .hero-right {
    text-align: left;
  }
  .avail {
    justify-content: flex-start;
  }

  /* Avis : un seul visible, hauteur stable */
  .tgrid {
    grid-template-columns: 1fr;
  }
  .tcard {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
  }
  .tcard.is-on {
    visibility: visible;
    opacity: 1;
  }

  /* Allègement pour un défilement fluide */
  .glow {
    animation: none;
    mix-blend-mode: normal;
    filter: blur(60px);
    opacity: 0.22 !important;
  }
  .spot {
    display: none;
  }
  .glass,
  .hdr {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass {
    background: rgba(255, 255, 255, 0.045);
  }
  .hdr {
    background: rgba(6, 10, 18, 0.94);
  }
  .figure__float {
    animation: none;
  }
  .giant,
  .figure img {
    transform: none;
    transition: none;
  }

  /* Espacements & divers */
  .section {
    padding: 64px 0;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .dl dd {
    margin-bottom: 10px;
  }
  .step::before {
    right: 0;
  }
  .case__imgs img {
    height: 300px;
  }
}

/* Écrans tactiles : pas d'effets de survol figés */
@media (hover: none) {
  .fcard:hover .fimg {
    transform: none;
    box-shadow: none;
  }
  .svc:hover {
    transform: none;
  }
}

/* ---------- 17. Animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
