﻿/* ============================================================
   design-v2.css — style « noir minimal / télé analogique » (chargé après design.css sur toutes les pages)
   - fond noir avec bruit de télé (canvas, voir v2.js) + fines lignes de balayage
   - images qui défilent moins vite que le premier plan (parallaxe)
   - flou + assombrissement des vidéos au survol
   - or remplacé par du blanc cassé, titres en serif (Cormorant), texte en Inter
   Réglages rapides : opacité du bruit -> #tv-noise ; force de la parallaxe -> facteur 0.25 dans v2.js
   ============================================================ */

body.v2 {
  --gold: #f2f2ee;
  --gold-soft: #ffffff;
  --gold-deep: #f2f2ee;
  --ink: #050505;
  --ink-2: #050505;
  --ivory: #f2f2ee;
  --muted-light: #a9a9a3;
  --line: rgba(255, 255, 255, 0.14);
  --bg-white: #050505;
  --text: #e9e9e6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #050505;
  color: var(--text);
}

/* ---------- Fond « télé analogique » ---------- */
#tv-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
  image-rendering: pixelated;
}

.tv-scanlines {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 3px);
}

/* Bande claire qui descend lentement, comme le balayage d'un vieux écran */
.tv-scanlines::after {
  content: "";
  position: absolute;
  top: -25vh;
  right: 0;
  left: 0;
  height: 25vh;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: tv-roll 11s linear infinite;
}

@keyframes tv-roll {
  to {
    transform: translateY(160vh);
  }
}

/* ---------- Typographie : titres en serif élégant (Cormorant), texte en Inter, étiquettes en mono ---------- */
body.v2 h1,
body.v2 h2,
body.v2 h3,
body.v2 h4,
body.v2 .testimonial blockquote {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ivory);
  text-transform: none;
}

body.v2 .hero-text h1 {
  font-size: clamp(3.6rem, 11vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: none;
}

body.v2 .hero-text p,
body.v2 .eyebrow,
body.v2 .work-tags span,
body.v2 .v2-badge {
  font-family: var(--mono) !important;
}

body.v2 .hero-text p {
  font-size: clamp(0.72rem, 1.3vw, 0.9rem);
  letter-spacing: 0.22em;
  color: var(--muted-light);
}

body.v2 .eyebrow {
  color: var(--muted-light);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

/* ---------- Sections transparentes : le fond de télé reste visible ---------- */
body.v2 .section,
body.v2 .section.white-section,
body.v2 .section.white-section.portfolio,
body.v2 .testimonials,
body.v2 .cta-band,
body.v2 .works,
body.v2 .site-footer {
  background: transparent !important;
}

body.v2 .site-footer {
  border-top: 1px solid var(--line);
}

body.v2 .site-header {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.6));
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

/* « Qui suis-je ? » : carte sombre et discrète */
body.v2 #about.section.white-section {
  background: transparent !important;
}

body.v2 #about .container.two-col.align-center.reflow {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none;
  backdrop-filter: none;
}

body.v2 #about p,
body.v2 #about .text-block p {
  color: var(--muted-light);
}

body.v2 #about .photo-block img {
  animation: none;
  border-radius: 0;
  box-shadow: none;
}

body.v2 #about .photo-block {
  border-radius: 4px;
}

/* Lignes de sélection numérotées de l'accueil : texte clair, étiquettes en police mono */
body.v2 .section.white-section.portfolio .text-block::before {
  font-family: var(--mono) !important;
  color: var(--muted-light);
}

body.v2 .section.white-section.portfolio h3 {
  color: var(--ivory);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

/* ---------- Parallaxe : l'image est plus grande que son cadre et glisse moins vite que la page ---------- */
body.v2 .px-frame {
  position: relative;
  overflow: hidden;
}

body.v2 .px-frame .px-media {
  scale: 1.38;
  translate: 0 0;
  transform: none !important;
  will-change: translate;
  transition: filter 0.55s ease, scale 0.9s ease;
}

/* ---------- Flou au survol (pas sur le portrait de « Qui suis-je ? ») ---------- */
body.v2 .px-frame:not(.no-blur):hover img.px-media,
body.v2 .px-frame:not(.no-blur):hover video.px-media {
  filter: blur(8px) brightness(0.55);
}

body.v2 .portfolio .image-block::after {
  content: "Voir";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

body.v2 .portfolio .image-block:hover::after {
  opacity: 1;
}

/* ---------- Cartes de réalisations ---------- */
.works {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.works-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.works-head h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 1;
}

.works-head p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted-light);
  line-height: 1.7;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
}

.work-card {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #0b0b0b;
  color: #fff;
  text-decoration: none;
}

.work-card .px-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card video.px-media {
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.55s ease, scale 0.9s ease;
}

.work-card.is-playing video.px-media {
  opacity: 1;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 55%);
  pointer-events: none;
}

.work-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-meta {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  left: 1.2rem;
  z-index: 2;
}

.work-meta strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.work-meta em {
  color: var(--muted-light);
  font-size: 0.85rem;
  font-style: normal;
}

.work-arrow {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease;
}

.work-card:hover .work-arrow {
  background: #fff;
  color: #000;
}

.works-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .tv-scanlines::after {
    display: none;
  }
}

/* ============================================================
   Adaptation des pages qui étaient claires (projet, contact, remerciement)
   ============================================================ */

/* Fiches projet */
body.v2 .breadcrumb ol,
body.v2 .breadcrumb a {
  color: var(--muted-light);
}

body.v2 .breadcrumb a:hover,
body.v2 .breadcrumb [aria-current] {
  color: var(--ivory);
}

body.v2 .project-tags li {
  border-color: var(--line);
  color: var(--muted-light);
}

body.v2 .project-nav a {
  color: var(--ivory);
}

body.v2 .project-nav a span {
  color: var(--muted-light);
}

body.v2 .project-nav .all {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ivory);
}

/* Contact et remerciement */
body.v2 .cinematic-contact {
  background: transparent;
}

body.v2 .cinematic-contact::before {
  display: none;
}

body.v2 .title-block .subtitle {
  color: var(--muted-light);
  font-family: var(--mono) !important;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}

body.v2 .title-block h1 {
  color: var(--ivory);
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 500;
}

body.v2 .title-block .description {
  color: var(--muted-light);
}

body.v2 .glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  backdrop-filter: none;
}

body.v2 .contact-form input,
body.v2 .contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ivory);
}

body.v2 .contact-form input::placeholder,
body.v2 .contact-form textarea::placeholder {
  color: #8b8b86;
}

body.v2 .contact-form input:focus,
body.v2 .contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.07);
}

body.v2 .contact-form button {
  background: var(--ivory);
  color: #050505;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.v2 .contact-form button:hover {
  background: #fff;
  box-shadow: none;
}

body.v2 .contact-details div {
  border-bottom-color: var(--line);
}

body.v2 .contact-details span {
  color: var(--muted-light);
  font-family: var(--mono) !important;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.v2 .contact-details p,
body.v2 .contact-details a {
  color: var(--ivory);
}

body.v2 .phone-reveal,
body.v2 .phone-challenge button {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ivory);
}

body.v2 .phone-reveal:hover,
body.v2 .phone-challenge button:hover {
  background: var(--ivory);
  color: #050505;
}

body.v2 .phone-challenge input {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ivory);
}

body.v2 .phone-note,
body.v2 .form-status {
  color: var(--muted-light);
}

body.v2 .form-status.error {
  color: #ff9d8a;
}

body.v2 .title-block a.cta {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Galeries photo : pas de lignes de balayage par-dessus les images (on garde le bruit de fond et le vignettage) */
body.portrait-page .tv-scanlines {
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

body.portrait-page .tv-scanlines::after {
  display: none;
}

/* Livre d'or : le livre reste un parchemin clair, on lui rend ses couleurs chaudes */
body.v2 .book {
  --gold: #b9935a;
  --gold-soft: #c9a45c;
  --gold-deep: #8a6a3a;
  --ivory: #3a2f22;
  --muted-light: #6d5a37;
}

body.v2 .book h1,
body.v2 .book h2 {
  color: #8a6a3a;
}

body.v2 .book .subtitle,
body.v2 .book .form-status {
  color: #6d5a37;
}
