/* ============================================================
   style.css — Portfolio Lubin Royer v3 (fusion v1 + v2)
   ADN v1 : nav rouge fixed · barre progressive · curseur croix
   Visuels v2 : hero noir gif · about stats · expertise/FAQ · footer
   Tokens : accent #f10000 (v1) · fond #F2F0EF (v2) · ink #000
   ============================================================ */

:root {
  --red: #f10000;
  --bg: #F2F0EF;
  --ink: #000;
  --dark: #141414;
  --white: #F2F0EF;
  /* 2 typographies uniquement */
  --mono: "DM Mono", monospace;      /* paragraphes, petits textes, labels */
  --display: "Boska", serif;         /* titres */
  --section-gap: clamp(80px, 12vw, 160px); /* espace entre les sections */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

p {
  font-family: var(--mono);
  font-weight: 300;
  font-style: normal;
  font-size: 1.2rem;
}

a { text-decoration: none; font-family: var(--mono); }

::selection { background: var(--red); color: var(--bg); }

/* ============================================================
   Curseur custom (v1, vanilla)
   ============================================================ */
.cursor-permanent {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 120;
  pointer-events: none;
  will-change: transform;
}
.wrapper-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}
.horizontal-line {
  position: absolute;
  top: 0;
  left: -200vw;
  width: 400vw;
  height: .5px;
  background: var(--ink);
  opacity: .5;
}
.vertical-line {
  position: absolute;
  top: -200vh;
  left: 0;
  width: .5px;
  height: 400vh;
  background: var(--ink);
  opacity: .5;
}
.cross-cursor {
  position: absolute;
  top: -7px;
  left: -7px;
  opacity: 1;
}

/* ============================================================
   Nav (v1) : barre rouge fixed
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 98;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}
.navbar a {
  color: #fff;
  font-family: var(--mono);
  font-weight: 400;
  font-size: .84rem;
  transition: opacity .3s ease;
}
.navbar a:hover { opacity: .65; }
.navbar__links { display: flex; gap: 28px; }
.navbar__side--right { text-align: right; }
.navbar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Hero (v2) : 100vh noir + gif
   ============================================================ */
.home {
  height: 100vh;
  width: 100%;
  background-color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.videosbackground {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.videosbackground img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: .4;
}
.videosbackground::after {
  background: radial-gradient(
    ellipse at center,
    transparent 35%,
    rgba(0, 0, 0, 0.25) 65%,
    rgba(0, 0, 0, 0.85) 100%
  );
  content: "";
  position: absolute;
  inset: 0;
}

.quotehome {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 60px) 80px 0;
  color: var(--white);
  pointer-events: none;
}
.quotehome p {
  font-size: 1rem;
  text-align: justify;
  width: 200px;
  line-height: 1.5;
  opacity: .8;
  text-transform: uppercase;
}

.BASEtext {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 3;
  color: var(--white);
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.5rem, 17vw, 18rem);
  line-height: .9;
  color: var(--red);
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.titlecontainer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 30px;
}

.paragraphtitle {
  display: flex;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid #ffffff5e;
  justify-content: space-between;
  width: 100%;
  pointer-events: auto;
}
.paragraphtitle p { font-size: .72rem; }
.paragraphtitle a { font-size: .72rem; color: var(--white); }

/* ============================================================
   About me (v2) + cadre photo
   ============================================================ */
.aboutmecontainer {
  margin-top: var(--section-gap);
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 50px;
}

.Aboutme { width: 100%; height: auto; }

.Aboutme h2 {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--red);
  text-wrap-mode: nowrap;
  margin-bottom: 15px;
  font-weight: 300;
}

.information {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 50px;
  padding-top: 50px;
}

.paragraphinfo {
  width: 600px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.paragraphinfo p { font-size: 1rem; line-height: 1.5; }

.statwrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
}

.stattitle {
  display: flex;
  justify-content: space-between;
  height: auto;
}

.separation {
  align-self: stretch;
  width: 1px;
  background-color: var(--red);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 16px;
}
.stat h3 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .6;
  line-height: 1.4;
}
.stat h4 {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 500;
}

/* Cadre photo About — 4/5, calée sur la hauteur du bloc texte + stats */
.photoframe {
  position: relative;
  flex: 0 0 clamp(300px, 30vw, 420px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--red);
  overflow: hidden;
  background: transparent;
}
.photoframe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- Expertise : 4 blocs rectangulaires ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin-top: 80px;
  border-left: 1px solid var(--red);
  border-top: 1px solid var(--red);
}
.expertise-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  padding: 24px;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
}
.expertise-card__title {
  margin-bottom: auto;
  padding-bottom: 40px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.expertise-card__text {
  max-width: 36ch;
  font-size: .85rem;
  line-height: 1.6;
}
.expertise-card__tools {
  font-size: .72rem;
  color: var(--red);
}

/* ============================================================
   Timeline « Mon parcours » (v1)
   ============================================================ */
.Titleprogress {
  height: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 50px;
  margin-top: var(--section-gap);
}
.monparcours h2 {
  font-family: var(--mono);
  font-weight: 300;
  font-size: 1rem;
  color: var(--red);
  line-height: .8;
}

.progresscontainer { height: 300vh; }

.timeline {
  position: relative;
  width: 100%;
  height: 300vh;
}
.timeline__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  gap: 40px;
  padding: 48px 50px;
}
.timeline__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.timeline__col--left { align-items: flex-end; text-align: right; }
.timeline__bar {
  position: relative;
  width: 80px;
  display: flex;
  justify-content: center;
}
.timeline__ticks {
  width: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.timeline__ticks span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  opacity: .1;
  will-change: opacity;
}
.timeline__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 10px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--red);
  white-space: nowrap;
}
.timeline__unit { opacity: .6; font-size: 11px; }

/* Positionnement décalé : les étapes ne se font jamais face */
.step--1 { margin-top: 2vh; }
.step--3 { margin-top: 20vh; }
.step--2 { margin-top: 18vh; }
.step--4 { margin-top: 18vh; }

.step {
  max-width: 420px;
  transition: opacity .6s var(--ease);
}
.js .step { opacity: .45; }
.js .step.is-active { opacity: 1; }
.step__year {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #9a9a9a;
  transition: color .4s ease;
}
.timeline__col--left .step__year { flex-direction: row-reverse; }
.step__year::before {
  content: "";
  flex: 0 0 26px;
  height: 4px;
  background: #c4c4c4;
  transition: background .4s ease;
}
.step.is-active .step__year { color: var(--red); }
.step.is-active .step__year::before { background: var(--red); }
.step__text {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}

/* ============================================================
   Expertise + FAQ (v2, 50/50)
   ============================================================ */
.More {
  margin-top: var(--section-gap);
  display: flex;
  min-height: 700px;
  padding: 50px;
  width: 100%;
  gap: 100px;
}

.Software {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 50%;
}

.Softwarewrap {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  border-left: 1px solid var(--red);
  border-top: 1px solid var(--red);
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-height: 190px;
  padding: 20px;
  justify-content: space-between;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
}

.detail p {
  font-size: 14px;
  text-transform: uppercase;
}

.detail svg {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.detail:hover svg { transform: translateY(-6px) scale(1.12); }

.Software h4 {
  font-size: 1rem;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--red);
}

/* ---------- FAQ : accordéon ---------- */
.faq { width: 50%; }
.faq h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 300;
  padding-bottom: 10px;
  padding-left: 15px;
  color: var(--red);
}

.faq-item { margin: 20px 0; }

.faqwrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
  border: 0;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding-left: 15px;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}
.faqwrap:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
.faqwrap p {
  font-size: 1.05rem;
  transition: color .3s ease;
}
.faqwrap:hover p { color: var(--red); }
.faqwrap svg {
  flex-shrink: 0;
  margin-right: 15px;
  transition: transform .35s var(--ease);
}
.faq-item.is-open .faqwrap svg { transform: rotate(90deg); }

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq-item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__inner { overflow: hidden; }
.faq__inner p {
  margin: 14px 15px 6px;
  max-width: 60ch;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}

.morequestion { text-align: end; }
.morequestion a { color: var(--red); }

/* ============================================================
   Footer (v2, fond blanc cassé)
   ============================================================ */
footer { margin-top: var(--section-gap); }

.footer {
  min-height: 70vh;
  background-color: var(--bg);
  padding: 50px 50px 30px;
  border-top: 1px solid var(--red);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.contactfooter {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  line-height: 1;
  border-bottom: 1px solid #00000026;
  padding-bottom: 20px;
}

.contactfooter h2 {
  font-family: var(--display);
  font-size: clamp(3.5rem, 17vw, 18rem);
  font-weight: 400;
  color: var(--red);
  line-height: .85;
}

.contactfooter p {
  color: var(--red);
  font-size: .78rem;
  padding-bottom: 8px;
}

.linkfooter {
  width: 100%;
  justify-content: space-between;
  display: flex;
  align-items: baseline;
}

.linkfoot { display: flex; gap: 30px; }

.infodata {
  display: flex;
  gap: 150px;
  opacity: .5;
  color: var(--ink);
}
.infodata p { font-size: .7rem; }

.linkfooter a {
  font-size: .88rem;
  color: var(--ink);
  text-transform: uppercase;
  transition: color .3s ease;
}
.linkfooter a:hover { color: var(--red); }

.socialfooter {
  display: flex;
  gap: 50px;
  width: 100%;
  padding-bottom: 20px;
}

.socialfooter a {
  color: var(--ink);
  font-size: .82rem;
  opacity: .5;
  text-transform: uppercase;
  transition: opacity .3s ease;
}
.socialfooter a:hover { opacity: 1; }

.footerinfo {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.textinfo p {
  font-size: .9rem;
  color: var(--red);
}

.detailinfo1 {
  display: flex;
  gap: 60px;
  align-items: baseline;
}

.detailinfo1 a {
  color: var(--ink);
  font-size: .82rem;
  text-transform: uppercase;
  transition: color .3s ease;
}
.detailinfo1 a:hover { color: var(--red); }

.detailinfo1 p {
  color: var(--ink);
  opacity: .5;
  font-size: .72rem;
}

/* ============================================================
   Reveals
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 1100px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 991px) {
  .cursor-permanent { display: none; }
  .quotehome { padding: calc(var(--nav-h) + 40px) 40px 0; }
  .titlecontainer { padding-left: 40px; padding-right: 40px; }
  .information { flex-direction: column; gap: 40px; }
  .paragraphinfo { width: 100%; max-width: 680px; }
  .photoframe { flex: none; width: min(100%, 440px); }
  .More { flex-direction: column; gap: 60px; min-height: 0; }
  .Software, .faq { width: 100%; }
  .timeline { height: 280vh; }
}

@media screen and (max-width: 767px) {
  :root { --nav-h: 40px; }
  .navbar__email, .navbar__tel { display: none; }
  .navbar__links { width: 100%; justify-content: center; gap: 40px; }
  .home { height: 100svh; }
  .quotehome {
    padding: calc(var(--nav-h) + 30px) 20px 0;
    gap: 20px;
  }
  .quotehome p { font-size: .78rem; width: 150px; }
  .titlecontainer { padding-left: 20px; padding-right: 20px; padding-bottom: 20px; }
  .paragraphtitle { flex-wrap: wrap; gap: 6px; }
  .aboutmecontainer { padding: 40px 20px; }
  .information { flex-direction: column; gap: 40px; padding-top: 30px; }
  .paragraphinfo { width: 100%; }
  .stattitle { flex-wrap: wrap; row-gap: 40px; }
  .separation { display: none; }
  .stat { flex: 0 0 50%; align-items: flex-start; padding: 0; }
  .stat h4 { font-size: 2.2rem; }
  .photoframe { width: 100%; }
  .expertise-grid { grid-template-columns: 1fr; margin-top: 60px; }
  .expertise-card { min-height: 0; padding: 20px; }
  .expertise-card__title { padding-bottom: 28px; }
  .expertise-card__text { max-width: none; }
  
  /* Timeline mobile : barre de ticks à gauche, étapes empilées */
  .timeline { height: 300vh; }
  .timeline__viewport {
    display: grid;
    grid-template-columns: 20px 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0 16px;
    align-items: center;
    padding: 28px 16px 64px;
  }
  .timeline__col { display: contents; }
  .timeline__bar { grid-column: 1; grid-row: 1 / -1; width: 100%; }
  .timeline__ticks { width: 14px; }
  .timeline__counter { bottom: 14px; font-size: 12px; padding: 3px 8px; }
  .timeline__col--left { align-items: stretch; text-align: left; }
  .step { grid-column: 2; max-width: none; margin-top: 0; }
  .step--1 { order: 1; }
  .step--2 { order: 2; }
  .step--3 { order: 3; }
  .step--4 { order: 4; }
  .step__year { font-size: 20px; gap: 8px; }
  .step__year::before { flex-basis: 16px; height: 3px; }
  .step__text { font-size: 15px; line-height: 1.55; }

  .More { padding: 40px 20px; }
  .Softwarewrap { grid-template-columns: repeat(2, 1fr); }
  .detail { min-height: 150px; }
  .detail svg { width: 56px; height: 56px; }
  .faqwrap { min-height: 80px; }
  .faqwrap p { font-size: .9rem; }
  .footer { padding: 30px 20px 20px; min-height: 0; gap: 30px; }
  .linkfooter { flex-direction: column; gap: 16px; }
  .infodata { gap: 40px; }
  .contactfooter { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contactfooter p { padding-bottom: 0; }
  .detailinfo1 { gap: 30px; }
  .socialfooter { gap: 24px; flex-wrap: wrap; }
}

/* ============================================================
   Pages secondaires — works.html & contact.html (v1)
   ============================================================ */
.works-hero,
.contact-hero { padding: calc(var(--nav-h) + 66px) 50px 30px; }
.works-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--red);
}
.works-title,
.contact-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8.5vw, 120px);
  font-weight: 500;
  line-height: 100%;
}
.works-sub {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;
  width: 100%;
  max-width: 1654px;
  margin: 0 auto;
  padding: 60px 50px 0;
}
.work-card { display: block; color: inherit; }
.work-card__frame {
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 3 / 4;
}
.work-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-card:hover .work-card__frame img,
.work-card:focus-visible .work-card__frame img { transform: scale(1.05); }
.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 14px;
}
.work-card__index { color: var(--red); }
.work-card__tag { opacity: .55; text-align: right; }

.contact-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1654px;
  margin: 0 auto;
  padding: 40px 50px 0;
}
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 40px;
  border-top: 1px solid #00000026;
  padding: 34px 0;
}
.contact-row__label {
  margin: 0;
  min-width: 140px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--red);
}
.contact-link {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 50px);
  line-height: 110%;
  color: var(--ink);
  transition: color .3s ease;
}
.contact-link:hover { color: var(--red); }
.contact-socials { display: flex; gap: 48px; flex-wrap: wrap; }
.contact-socials__link {
  position: relative;
  color: var(--ink);
  font-size: 24px;
  font-family: var(--mono);
}
.contact-socials__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.contact-socials__link:hover::after { transform: scaleX(1); }

@media screen and (max-width: 767px) {
  .works-hero, .contact-hero { padding: calc(var(--nav-h) + 46px) 20px 10px; }
  .works-sub { font-size: 14px; }
  .works-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px 0; }
  .contact-main { padding: 30px 20px 0; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 0; }
  .contact-row__label { min-width: 0; }
  .contact-link { word-break: break-all; }
  .contact-socials { gap: 20px; }
  .contact-socials__link { font-size: 18px; }
}

/* ============================================================
   UI « web sci-fi » : boutons, HUD, flèches, filtres, CTA
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid currentColor; border-radius: 0;
  background: none; color: var(--ink); cursor: pointer;
  font: 400 .82rem var(--mono); white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover, .btn:focus-visible, .btn.is-active { background: var(--red); border-color: var(--red); color: var(--bg); }
.btn--solid { background: var(--red); border-color: var(--red); color: var(--bg); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--ink); border-color: var(--ink); }
.btn--sm { padding: 8px 12px; font-size: .72rem; margin-left: auto; }
.paragraphtitle .btn { padding: 8px 12px; }
.paragraphtitle .btn:hover { color: var(--bg); }

.scroll-progress { position: fixed; top: var(--nav-h); left: 0; right: 0; height: 2px; z-index: 99; background: var(--ink); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.videosbackground::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px); }
.quotehome .status { width: auto; text-align: center; display: flex; align-items: center; gap: 10px; font-size: .78rem; }
.status::before { content: ""; width: 8px; height: 8px; background: var(--red); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.photoframe::before, .photoframe::after { content: ""; position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none; border: 0 solid var(--red); }
.photoframe::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.photoframe::after { right: 10px; bottom: 10px; border-right-width: 1px; border-bottom-width: 1px; }
.photo-tag { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: .68rem; color: #fff; text-shadow: 0 0 6px #000; }

.stat h3::before { content: "↳ "; color: var(--red); }
.expertise-card { transition: background .35s var(--ease), color .35s var(--ease); }
.expertise-card__title::after { content: " ↘"; color: var(--red); font-family: var(--mono); font-size: .5em; }
.expertise-card:hover { background: var(--red); color: var(--bg); }
.expertise-card:hover .expertise-card__title, .expertise-card:hover .expertise-card__tools, .expertise-card:hover .expertise-card__title::after { color: inherit; }
.detail p::after { content: " ↗"; color: var(--red); }
.work-card__name::after { content: " ↗"; opacity: 0; transition: opacity .3s ease; }
.work-card:hover .work-card__name::after { opacity: 1; }
.work-card[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 30px 50px 0; }

.cta-band { margin-top: var(--section-gap); padding: 60px 50px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid var(--red); border-bottom: 1px solid var(--red); }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 6rem); line-height: 1; color: var(--red); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.totop { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink); font: 400 .82rem var(--mono); opacity: .5; text-transform: uppercase; transition: opacity .3s ease; }
.totop:hover, .totop:focus-visible { opacity: 1; color: var(--red); }

@media screen and (max-width: 767px) {
  .quotehome .status { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 20px; }
  .filters { padding: 24px 20px 0; }
  .contact-row .btn--sm { margin-left: 0; }
}

/* ============================================================
   Accessibilité mouvement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .status::before { animation: none; }
  .step, .faq__body, .faqwrap svg, .detail svg { transition: none; }
  .js .step { opacity: 1; }
}

    /* L'overlay couvre toute la page pendant la transition */
    .load_grid {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100vh;
      z-index: 99999;
      grid-template-columns: repeat(12, 1fr);
      grid-template-rows: repeat(8, 1fr);
      pointer-events: none;
    }

    .load_grid_item {
      width: 100%;
      height: 100%;
      background: #0040ff;
      opacity: 1;
    }