/* Gonn Edit – feuille de style du site */
img[height] { height: auto; }
/* Gonn Edit, v14
   Direction artistique tirée de l'affiche de référence : mots énormes et très gras qui se
   superposent (rouge derrière, encre devant), grands mots fantômes coupés par les bords,
   fond gris clair et petits blocs de texte sobres. Deux thèmes : clair et sombre (inversé). */

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

.theme-light {
  --bg: #e7e6e6;
  --ink: #1e1e1e;
  --red: #c8302f;
  --ghost: #d7d6d6;
  --soft: #575757;
  --line: #c9c8c8;
}
.theme-dark {
  --bg: #1e1e1e;
  --ink: #e7e6e6;
  --red: #d33533;
  --ghost: #2a2a2a;
  --soft: #a3a3a3;
  --line: #3a3a3a;
}

:root { --pad: clamp(1.1rem, 3.4vw, 3rem); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Mots superposés ---------- */
.stack {
  display: grid;
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-stretch: 112%;
  line-height: .8;
  letter-spacing: -.045em;
}
.stack > span { grid-area: 1 / 1; white-space: nowrap; }
.back { color: var(--red); font-size: clamp(3.2rem, 15.2vw, 17.5rem); justify-self: center; }
.front {
  color: var(--ink);
  font-size: clamp(1.9rem, 7.8vw, 9rem);
  align-self: center;
  justify-self: center;
  letter-spacing: -.05em;
}

.stack-sm { margin-bottom: 2.5rem; justify-items: start; }
.stack-sm .back { font-size: clamp(3.4rem, 13vw, 15rem); justify-self: start; }
.stack-sm .front { font-size: clamp(1.8rem, 5.6vw, 6.5rem); justify-self: start; margin-left: clamp(1rem, 7vw, 8rem); }

.ghost {
  position: absolute;
  z-index: 0;
  color: var(--ghost);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(5rem, 24vw, 28rem);
  line-height: .8;
  letter-spacing: -.045em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- En-tête ---------- */
.head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2.2rem var(--pad) 0;
}
.tag { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; }
.tag span { font-size: .9rem; }
.tag strong { font-weight: 800; font-size: 1.1rem; }
.nav { display: flex; gap: 1.5rem; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--red); }

/* ---------- Ouverture ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 980px);
  margin-top: -5.6rem;
  padding: 9rem var(--pad) 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ghost-top { top: -4.5vw; right: -5vw; }
.ghost-bottom { bottom: -3.5vw; left: -1.5vw; }
.hero-note {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  max-width: 30rem;
  margin: 2.4rem 4vw 0 0;
  font-size: .98rem;
  line-height: 1.45;
}
.sign { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; font-size: .92rem; }
.sign img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------- Créateurs ---------- */
.for { padding: 3rem var(--pad) 5rem; border-top: 1px solid var(--line); }
.for-intro { font-size: .95rem; color: var(--soft); margin-bottom: .8rem; }
.for-list { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 2.2rem; }
.for-list a {
  text-decoration: none;
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  letter-spacing: -.03em;
}
.for-list a:hover { color: var(--red); }

/* ---------- Travail ---------- */
.block { position: relative; padding: 2rem var(--pad) 6rem; }
.yt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.6rem; }
.work-main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 0 2rem; align-items: end; }
.work-main .work-frame { grid-row: 1 / 4; }
.work-frame { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.work-video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-frame:hover .work-video { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .work-video { transition: none; } }
.work-title { font-weight: 800; font-stretch: 105%; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.02em; margin-top: .9rem; }
.work-main .work-title { font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1; margin-top: 0; }
.work-meta { margin-top: .35rem; font-size: .95rem; display: flex; column-gap: .8rem; row-gap: .1rem; flex-wrap: wrap; }
.work-meta a { color: var(--red); font-weight: 700; text-decoration: none; }
.work-meta a:hover { text-decoration: underline; }
.work-meta span { color: var(--soft); }
.work-what { margin-top: .8rem; color: var(--soft); max-width: 26rem; }

.reel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.work-reel .work-frame { aspect-ratio: 9 / 16; }

/* ---------- Valentin ---------- */
.about {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: 7rem var(--pad) 6rem;
  border-top: 1px solid var(--line);
}
.ghost-about { top: 1rem; right: -3vw; font-size: clamp(4rem, 17vw, 20rem); }
.portrait { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.about-text { position: relative; z-index: 1; }
.about-lead {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 1.6rem;
  max-width: 18ch;
}
.about-text > p { max-width: 36rem; margin-bottom: 1rem; }
.steps { margin: 2rem 0 0 1.2rem; max-width: 34rem; }
.steps li { padding-left: .3rem; margin-bottom: .35rem; }
.steps li::marker { font-weight: 800; color: var(--red); }

.quote { margin-top: 2.6rem; max-width: 36rem; padding-left: 1.2rem; border-left: 3px solid var(--red); }
.quote blockquote { font-weight: 600; font-size: 1.2rem; line-height: 1.4; letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote a { color: var(--red); font-weight: 700; text-decoration: none; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding: 7rem var(--pad) 6rem;
  border-top: 1px solid var(--line);
}
.ghost-contact { bottom: -4vw; left: -2vw; }
.contact .back { font-size: clamp(3.4rem, 17vw, 19.5rem); }
.contact .front { font-size: clamp(1.6rem, 7vw, 8rem); }
.contact-note { position: relative; z-index: 1; max-width: 30rem; margin: 2.6rem 4vw 0 auto; }
.mail { display: inline-block; font-weight: 800; font-stretch: 110%; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--red); text-underline-offset: 5px; margin-bottom: .8rem; overflow-wrap: anywhere; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem var(--pad) 1.6rem;
  font-size: .88rem;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

/* ---------- Lecteur ---------- */
.player { position: fixed; inset: 0; z-index: 50; background: #000; color: #e7e6e6; display: flex; flex-direction: column; }
.player[hidden] { display: none; }
.player-top { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem var(--pad); font-weight: 700; }
.player-top button { color: #e7e6e6; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.player-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad) var(--pad); }
.player-stage iframe { width: min(100%, 1280px); aspect-ratio: 16 / 9; border: 0; }
.player-stage video { height: 100%; max-height: 100%; aspect-ratio: 9 / 16; background: #111; }
.yt-out { background: #c8302f; color: #fff; padding: 1rem 1.6rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; }

/* ---------- Téléphone ---------- */
@media (max-width: 820px) {
  .hero { min-height: 0; padding: 8rem var(--pad) 6rem; }
  .hero-note { align-self: stretch; margin: 2rem 0 0; }
  .yt-grid { grid-template-columns: 1fr; }
  .work-main { grid-template-columns: 1fr; }
  .work-main .work-frame { grid-row: auto; }
  .work-main .work-title { margin-top: .9rem; }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .contact-note { margin: 2rem 0 0; }
}
/* v15 = v14 + tarifs + animation d'ouverture
   L'animation ne joue qu'à la première ouverture de la visite, dure environ 1,6 seconde,
   ne bloque ni le défilement ni les clics, et ne joue pas si l'utilisateur a réduit les animations. */

/* ---------- Tarifs ---------- */
.prices {
  position: relative;
  padding: 6rem var(--pad) 6rem;
  border-top: 1px solid var(--line);
}
.price-rows { border-top: 2px solid var(--ink); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 15rem;
  gap: 1rem 3rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.price-row h3 {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.price-row p { color: var(--soft); max-width: 34rem; }
.price {
  justify-self: end;
  text-align: right;
  color: var(--ink) !important;
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: .9;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.price small {
  display: block;
  font-weight: 500;
  font-stretch: 100%;
  font-size: .9rem;
  letter-spacing: 0;
  color: var(--soft);
  margin-bottom: .3rem;
}
.price-example { max-width: 44rem; margin-top: 2rem; font-size: 1.05rem; }
.price-cta {
  display: inline-block;
  margin-top: 1.6rem;
  background: var(--red);
  color: #fff;
  padding: .9rem 1.4rem;
  font-weight: 800;
  font-stretch: 110%;
  text-decoration: none;
}
.price-cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 820px) {
  .price-row { grid-template-columns: 1fr auto; }
  .price-row p:not(.price) { grid-column: 1 / -1; grid-row: 2; }
  .price { grid-column: 2; grid-row: 1; }
}

/* ---------- Animation d'ouverture ---------- */
/* le mot noir doit toujours rester au-dessus du mot rouge, même pendant le balayage */
.stack > .front { position: relative; z-index: 1; }

/* 1. MONTAGE se dévoile par un balayage, comme un fondu au volet
   2. GONN EDIT tombe par-dessus en coupe franche
   3. les mots fantômes glissent en place, puis le texte de présentation apparaît */
.intro .hero .back { animation: wipe .7s cubic-bezier(.7, 0, .2, 1) .1s both; }
.intro .hero .front { animation: cut .01s steps(1) .62s both, settle .5s cubic-bezier(.2, .8, .2, 1) .62s both; }
.intro .ghost-top { animation: slide-left 1.1s cubic-bezier(.2, .8, .2, 1) .25s both; }
.intro .ghost-bottom { animation: slide-right 1.1s cubic-bezier(.2, .8, .2, 1) .35s both; }
.intro .hero-note, .intro .head { animation: appear .5s ease 1.05s both; }

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes cut {
  from { visibility: hidden; }
  to   { visibility: visible; }
}
@keyframes settle {
  from { letter-spacing: .02em; }
  to   { letter-spacing: -.05em; }
}
@keyframes slide-left {
  from { transform: translateX(12vw); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes slide-right {
  from { transform: translateX(-12vw); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .intro * { animation: none !important; }
}

/* ---------- Mots fantômes entiers, quelle que soit la taille de l'écran ----------
   Chaque mot est dimensionné selon son nombre de lettres pour tenir dans la largeur,
   et placé à l'intérieur de sa section au lieu d'être coupé par les bords. */
.ghost-top {
  top: 4.6rem;
  right: var(--pad);
  left: auto;
  font-size: min(14.2vw, 17rem);
}
.ghost-bottom {
  bottom: 1.2rem;
  left: var(--pad);
  font-size: min(19vw, 22rem);
}
.ghost-about { top: 1.5rem; right: var(--pad); font-size: min(11.8vw, 14rem); }
.ghost-contact { bottom: 1.2rem; left: var(--pad); font-size: min(15.5vw, 18rem); }
.hero { padding-top: calc(9rem + 8vw); padding-bottom: calc(6rem + 12vw); }
.contact { padding-bottom: calc(5rem + 13vw); }
@media (max-width: 820px) {
  .hero { padding-top: calc(7rem + 10vw); padding-bottom: calc(4rem + 18vw); }
}

/* Menu sur téléphone : rien ne passe à la ligne */
.nav a, .tag strong { white-space: nowrap; }
@media (max-width: 520px) {
  .head { gap: 1rem; }
  .nav { gap: .9rem; font-size: .85rem; }
}

/* Compétences et logiciels, dans la présentation */
.skills { margin-top: 1.6rem; max-width: 36rem; }
.skills div { padding: .55rem 0; border-top: 1px solid var(--line); }
.skills dt, .skills dd { display: inline; }
.skills div:last-child { border-bottom: 1px solid var(--line); }
.skills dt { font-weight: 800; }
.skills dd { margin: 0; }

/* Contact sans mot fantôme : on retire l'espace qui lui était réservé */
.contact { padding-bottom: 5rem; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--red); }
.skills dt { margin-right: .35rem; }

/* ---------- À propos : photo + présentation en haut, le reste sur toute la largeur en dessous ---------- */
.about { align-items: start; }
.about-extra {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--ink);
}
.about-extra .skills { margin-top: 0; }
.about-extra .steps { margin-top: 0; }
.extra-title { font-weight: 800; font-size: 1rem; margin-bottom: .7rem; }
.about-extra .quote { margin-top: 0; }
@media (max-width: 1000px) {
  .about-extra { grid-template-columns: 1fr 1fr; }
  .about-extra .extra-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .about-extra { grid-template-columns: 1fr; }
}

/* À propos, bas de section : compétences puis avis empilés à gauche, étapes sur toute la hauteur à droite.
   Plus de creux sous les compétences, quelle que soit la largeur de l'écran. */
.about-extra {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "skills steps" "quote steps";
  grid-template-rows: auto 1fr;
  gap: 2.2rem 3.5rem;
}
.about-extra .extra-col:nth-child(1) { grid-area: skills; }
.about-extra .extra-col:nth-child(2) { grid-area: steps; }
.about-extra .extra-col:nth-child(3) { grid-area: quote; grid-column: auto; }
@media (max-width: 1000px) {
  .about-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-extra .extra-col:last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .about-extra { grid-template-columns: 1fr; grid-template-areas: "skills" "steps" "quote"; grid-template-rows: auto; }
}

/* Équilibre final : compétences puis étapes à gauche, l'avis à droite, centré en hauteur */
.about-extra { grid-template-areas: "skills quote" "steps quote"; grid-template-rows: auto auto; }
.about-extra .extra-col:nth-child(3) { align-self: center; }
.about-extra .quote blockquote { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
@media (max-width: 640px) {
  .about-extra { grid-template-areas: "skills" "steps" "quote"; }
}

/* Texte de présentation et photo de l'ouverture, plus grands */
.hero-note { max-width: 40rem; font-size: clamp(1.05rem, 1.35vw, 1.4rem); line-height: 1.45; }
.sign { gap: 1rem; margin-top: 1.4rem; font-size: clamp(1rem, 1.15vw, 1.2rem); }
.sign img { width: clamp(56px, 5vw, 76px); height: clamp(56px, 5vw, 76px); }
/* v16 = v15 + coins arrondis sur les vidéos et les photos, à la façon d'Apple */
.work-frame { border-radius: 22px; overflow: hidden; isolation: isolate; }
.work-main .work-frame { border-radius: 28px; }
.work-reel .work-frame { border-radius: 20px; }
.portrait { border-radius: 28px; }
.player-stage iframe, .player-stage video { border-radius: 18px; }
.price-cta { border-radius: 980px; }
@media (max-width: 820px) {
  .work-frame, .work-main .work-frame { border-radius: 18px; }
  .portrait { border-radius: 22px; }
}

/* Deux avis empilés dans la colonne de droite */
.about-extra .extra-col:nth-child(3) { display: grid; gap: 2.4rem; }
.about-extra .quote blockquote { font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.quote-initial { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 1.05rem; }

/* Petit titre au-dessus de l'exemple de prix */
.price-example-title { display: block; margin-bottom: .45rem; font-weight: 800; color: var(--ink); }

/* Lien discret de l'exemple vers la vidéo des auberges */
.jump-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color .2s; }
.jump-link:hover, .jump-link:focus-visible { text-decoration-color: var(--red); }

/* Mise en valeur passagère de la vidéo visée */
.work.is-spotlit .work-frame { animation: spotlit 2.4s ease-out; }
@keyframes spotlit {
  0%   { box-shadow: 0 0 0 0 var(--red); transform: scale(1); }
  18%  { box-shadow: 0 0 0 6px var(--red); transform: scale(1.02); }
  70%  { box-shadow: 0 0 0 6px var(--red); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .work.is-spotlit .work-frame { animation: none; box-shadow: 0 0 0 6px var(--red); }
}

/* À propos sur ordinateur : compétences et étapes remontent à côté de la photo,
   les deux avis passent côte à côte en dessous. Plus de grand vide à droite. */
@media (min-width: 1000px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
    grid-template-areas:
      "photo text text"
      "photo skills steps"
      "quote quote quote";
    column-gap: clamp(2rem, 4vw, 4.5rem);
    row-gap: 2.8rem;
  }
  .about > .portrait { grid-area: photo; align-self: stretch; height: auto; min-height: 30rem; aspect-ratio: auto; contain: size; object-position: center 35%; }
  .about-text { grid-area: text; }
  .about-text > p { max-width: 48rem; }
  .about-lead { max-width: 22ch; }
  .about-extra { display: contents; }
  .about-extra .extra-col { position: relative; z-index: 1; }
  .about-extra .extra-col:nth-child(1),
  .about-extra .extra-col:nth-child(2) { border-top: 2px solid var(--ink); padding-top: 1.6rem; }
  .about-extra .extra-col:nth-child(3) {
    grid-area: quote;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4.5rem);
    align-self: start;
    border-top: 2px solid var(--ink);
    padding-top: 2.6rem;
    margin-top: .6rem;
  }
  .about-extra .quote { max-width: 44rem; }
}

/* Vidéo principale : titre, créateur et description regroupés, centrés en hauteur à côté de la vidéo */
@media (min-width: 821px) {
  .work-main { grid-template-rows: 1fr auto auto auto 1fr; align-items: start; column-gap: clamp(2rem, 3vw, 3.5rem); }
  .work-main .work-frame { grid-row: 1 / -1; }
  .work-main .work-title { grid-row: 2; margin: 0 0 1rem; }
  .work-main .work-meta { grid-row: 3; margin: 0; }
  .work-main .work-what { grid-row: 4; margin: 1.2rem 0 0; max-width: 30rem; font-size: 1.05rem; }
}
