/* ==========================================================
   VincenTimes — styles partagés
   Fond jaune-orangé tramé, autocollants crème, couleurs franches,
   contours au crayon (graphite grainé, trait repassé).
   Filtres SVG #rough (coloriage) et #pencil / #pencil-text (traits)
   définis dans chaque page.
   ========================================================== */

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/quicksand-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Patrick Hand';
  src: url('fonts/patrick-hand-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
/* Typo de toonesque. (Yann Le Coroller) */
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('fonts/AlteHaasGroteskRegular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('fonts/AlteHaasGroteskBold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Fond */
  --sun: #ffbe0b;
  --dots: #ff6a1a;

  /* Autocollants & encre */
  --cream: #fff6e4;
  --ink: #2b1712;
  --ink-soft: #5a3624;
  --graphite: #2b1712;
  --smudge: rgba(120, 40, 0, 0.28);

  /* Couleurs franches */
  --red: #e8281e;
  --blue: #1f6fe0;
  --cyan: #1cb4ee;
  --pink: #ff86ad;
  --royal: #2c4fd1;

  /* toonesque. */
  --t-violet: #6a2ff0;
  --t-violet-hi: #8656ff;
  --t-pink: #ff3fc8;
  --t-green: #4dea6b;
  --t-cyan: #3ee0f0;

  --font-logo: 'Quicksand', ui-rounded, system-ui, sans-serif;
  --font-hand: 'Patrick Hand', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --font-toon: 'Alte Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Coins irréguliers : le tracé à main levée */
  --blob: 18px 22px 16px 24px / 22px 16px 24px 18px;
  --blob-2: 24px 14px 22px 18px / 16px 24px 18px 22px;

  /* Texture crayon : grain + hachures */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --hatch: repeating-linear-gradient(-58deg, rgba(255, 255, 255, 0.12) 0 1.5px, transparent 1.5px 5px);
  --grain-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Grain atténué pour les grands aplats foncés (carte toonesque.) */
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 0.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--sun);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.12rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Trame de points en quinconce, uniforme et discrète sur toute la hauteur
   (fixée à l'écran : elle reste présente pendant le défilement).
   Elle défile lentement en diagonale, en boucle, comme un fond de cartoon :
   le calque déborde d'une case (28 px) et glisse d'exactement une case,
   la boucle est donc invisible. Animée en transform (GPU, pas de repaint). */
body::before {
  content: '';
  position: fixed;
  inset: -28px;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--dots) 0 4px, transparent 5px) 0 0 / 28px 28px,
    radial-gradient(circle, var(--dots) 0 4px, transparent 5px) 14px 14px / 28px 28px;
  opacity: 0.22;
  will-change: transform;
  animation: trame-scroll 4s linear infinite;
}
@keyframes trame-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(28px, 28px, 0); }
}
/* Grain par-dessus tout le fond */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--grain);
  background-size: 140px 140px;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}

a { color: inherit; }

:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 4px;
  border-radius: 10px;
}

/* ---------- Décor : nuages ---------- */

/* Bande de ciel qui contient les nuages et coupe ce qui dépasse :
   un nuage qui sort de l'écran ne crée jamais de défilement horizontal */
.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.doodle {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.cloud-1 { top: 2.5rem; left: max(1rem, calc(50% - 560px)); width: 130px; }
.cloud-2 { top: 1.5rem; right: max(0.5rem, calc(50% - 600px)); width: 100px; }
.cloud-3, .cloud-4, .cloud-5 { display: none; }
@media (max-width: 959px) {
  .cloud-1 { top: 0.6rem; left: 0.6rem; width: 66px; }
  .cloud-2 { top: 1.4rem; right: 0.8rem; width: 54px; }
}
.doodle .float { animation: float 7s ease-in-out infinite; transform-origin: center; }
.cloud-2 .float { animation-duration: 9s; animation-delay: -3s; }
.cloud-3 .float { animation-duration: 8s; animation-delay: -1s; }
.cloud-4 .float { animation-duration: 10s; animation-delay: -5s; }
.cloud-5 .float { animation-duration: 6s; animation-delay: -2s; }
@keyframes float { 50% { transform: translate(8px, -5px); } }

/* Les nuages traversent l'écran lentement : ils apparaissent en fondu d'un
   côté, dérivent, disparaissent de l'autre, puis reviennent. Délais négatifs
   pour qu'ils soient déjà en route au chargement. Sans animation (réglage
   « réduire les animations »), ils restent à leur place d'origine. */
@media (prefers-reduced-motion: no-preference) {
  .cloud-1, .cloud-2, .cloud-3, .cloud-4, .cloud-5 { left: 0; right: auto; }
  .cloud-3, .cloud-4, .cloud-5 { display: block; }
  .cloud-1 { animation: drift 70s linear infinite; animation-delay: -12s; }
  .cloud-2 { animation: drift 95s linear infinite; animation-delay: -60s; }
  .cloud-3 { top: 6.5rem; width: 64px; opacity: 0.85; animation: drift 120s linear infinite; animation-delay: -35s; }
  .cloud-4 { top: 0.4rem; width: 84px; animation: drift 82s linear infinite; animation-delay: -74s; }
  .cloud-5 { top: 4.2rem; width: 48px; animation: drift 105s linear infinite; animation-delay: -88s; }
  @media (max-width: 959px) {
    .cloud-3 { top: 3.6rem; width: 40px; }
    .cloud-4 { top: 0.2rem; width: 46px; }
    .cloud-5 { top: 2.6rem; width: 32px; }
  }
}
@keyframes drift {
  0%   { transform: translateX(-140px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(calc(100vw + 20px)); opacity: 0; }
}

/* ---------- Mise en page ---------- */

.page {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.side, .main { display: flex; flex-direction: column; gap: 2.25rem; }

@media (min-width: 960px) {
  .page.home {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4.5rem;
    padding: 0 2rem;
  }
  .page.home .side {
    gap: 1.8rem;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    justify-content: center;
    padding: 3rem 0;
  }
  .page.home .main { padding: 5.5rem 0 4rem; }
  .page.home .hero { text-align: left; }
  .page.home .separator { margin-left: 0; }
  .page.home .contact-mail { text-align: center; }
  .page.home .footer { justify-content: flex-start; }
}
/* Écran d'ordi peu haut : la colonne de gauche ne tient plus en entier,
   elle défile normalement au lieu de rester fixe */
@media (min-width: 960px) and (max-height: 640px) {
  .page.home .side { position: static; height: auto; padding-top: 5.5rem; justify-content: flex-start; }
}
@media (max-width: 959px) {
  .page.home .side { display: contents; }
  .page.home .footer { order: 10; }
}

/* ---------- Le trait au crayon ----------
   ::before = coloriage (déborde un peu, comme à la main) + ombre estompée,
   ::after  = contour repassé deux fois, grainé par #pencil.
   Le contenu reste net au-dessus. */

.sketch {
  --fill: var(--cream);
  --c: var(--cream);
  position: relative;
  isolation: isolate;
  transition: transform 0.35s var(--pop);
}
.sketch::before,
.sketch::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: var(--blob);
  pointer-events: none;
}
.sketch::before {
  inset: 3px -3px -3px 4px;
  background: var(--hatch), var(--grain-fill), var(--fill);
  background-size: auto, 140px 140px, auto;
  box-shadow: 6px 7px 0 -1px var(--smudge);
  filter: url(#rough);
  transition: background-color 0.25s var(--ease);
}
.sketch::after {
  inset: 0;
  border: 2.4px solid var(--graphite);
  outline: 1.2px solid rgba(43, 23, 18, 0.45);
  outline-offset: -4px;
  filter: url(#pencil);
}
.sketch:nth-child(even)::before,
.sketch:nth-child(even)::after { border-radius: var(--blob-2); }
li:nth-child(even) > .sketch::before { inset: 3px 4px -4px -3px; }

/* Petits boutons en ligne : même débord pour tous, sinon l'alternance
   gauche/droite rend les espacements irréguliers */
.socials li .sketch::before,
.support-links li .sketch::before { inset: 2px -2px -2px 2px; }

a.sketch:hover { transform: rotate(-1.4deg) translateY(-3px); }
li:nth-child(even) > a.sketch:hover { transform: rotate(1.4deg) translateY(-3px); }
a.sketch:hover::before { --fill: var(--c); }
a.sketch:active { transform: scale(0.97); }

/* ---------- En-tête ---------- */

.hero { text-align: center; }

.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--red);
  filter: url(#pencil-text);
}
.logo span { color: var(--cyan); }

.separator {
  width: 120px;
  height: 14px;
  margin: 0.9rem auto 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M3 8 Q 18 1 33 7 T 63 7 T 93 7 T 117 6' fill='none' stroke='%23e8281e' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.name { font-size: 1.55rem; line-height: 1.2; }
.tagline { margin-top: 0.2rem; font-size: 1.12rem; color: var(--ink-soft); }
.bio { margin-top: 0.8rem; font-size: 1.18rem; color: var(--ink-soft); }
.bio a {
  color: var(--t-violet);
  text-decoration: underline wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* Avatar (dessin de Popuru) : autocollant découpé à la silhouette
   (bordure crème + trait d'encre précalculés dans l'image), avec le crédit
   qui en fait le tour comme une étiquette */
.avatar {
  position: relative;
  width: 236px;
  height: 236px;
  margin: 0 auto 0.4rem;
  transform: rotate(-3deg);
}
/* L'autocollant est découpé au bord intérieur du ruban : rien ne dépasse */
.avatar-clip {
  position: absolute;
  inset: 0;
  clip-path: circle(96px at 50% 50%);
}
.avatar-clip img {
  position: absolute;
  left: 46px;
  top: 26px;
  width: 144px;
  height: 191px;
  filter: drop-shadow(5px 6px 0 var(--smudge));
}
.avatar-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.avatar-ring .ring-tape {
  fill: none;
  stroke: var(--cream);
  stroke-width: 17px;
  filter: drop-shadow(2px 2px 0 var(--smudge));
}
.avatar-ring text {
  font-family: var(--font-hand);
  font-size: 15px;
  letter-spacing: 0.12em;
  fill: var(--ink);
}
/* Faux fixe (line boil) : le texte du badge frémit image par image,
   ~8 images/s, en alternant trois tremblés de bruit différent */
@media (prefers-reduced-motion: no-preference) {
  .avatar-ring text { animation: boil 0.375s steps(1, end) infinite; }
}
@keyframes boil {
  0%      { filter: url(#boil-1); }
  33.33%  { filter: url(#boil-2); }
  66.66%  { filter: url(#boil-3); }
}
/* Faux fixe du logo VincenTimes */
@media (prefers-reduced-motion: no-preference) {
  .hero .logo { animation: boil-logo 0.75s steps(1, end) infinite; }  /* ~4 images/s, plus posé que le badge */
}
@keyframes boil-logo {
  0%      { filter: url(#boil-logo-1); }
  33.33%  { filter: url(#boil-logo-2); }
  66.66%  { filter: url(#boil-logo-3); }
}
.avatar-ring a:hover text { fill: var(--red); }
.avatar-ring a text { text-decoration: none; }
.avatar-ring a:focus-visible { outline: none; }
.avatar-ring a:focus-visible text { fill: var(--red); text-decoration: underline; }
@media (min-width: 960px) {
  .page.home .avatar { margin-left: -14px; }
}

/* ---------- Titres de section : étiquettes collées ---------- */

.section-title {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.05rem 0.7rem 0.15rem;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  background: var(--cream);
  border-radius: 4px 9px 5px 8px;
  box-shadow: 3px 3px 0 var(--red);
  transform: rotate(-2deg);
}

/* ---------- toonesque. : violet électrique, trame rose, décalage d'impression ---------- */

.feature {
  --fill: var(--t-violet);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.6rem, 5vw, 2.3rem);
  color: #fff;
}
/* Écart de l'aberration chromatique (trame + titre). Déclaré pour pouvoir
   l'animer : au survol, la trame et le logo se décalent ensemble. */
@property --ab {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}
.feature { --ab: 1; }
/* Au survol : le décalage « bouillonne » image par image (sur les deux,
   ~8 images/s), comme une anim tradi ; retour sec quand on sort. */
.feature:hover { --ab: 1.8; animation: aberrate 0.5s steps(1, end) infinite; }
@keyframes aberrate {
  0%   { --ab: 1.8; }
  25%  { --ab: 2.6; }
  50%  { --ab: 1.3; }
  75%  { --ab: 2.2; }
}

/* Trame imprimée en trois passes mal repérées : rose, cyan, vert */
.feature::before {
  background-image:
    radial-gradient(circle, rgba(255, 63, 200, 0.22) 0 2.4px, transparent 3.2px),
    radial-gradient(circle, rgba(62, 224, 240, 0.18) 0 2.4px, transparent 3.2px),
    radial-gradient(circle, rgba(77, 234, 107, 0.16) 0 2.4px, transparent 3.2px),
    var(--grain-soft),
    linear-gradient(160deg, var(--t-violet-hi), var(--t-violet) 60%);
  background-size: 16px 16px, 16px 16px, 16px 16px, 140px 140px, auto;
  background-position:
    calc(var(--ab) * -1.5px) calc(var(--ab) * -1px),
    calc(var(--ab) * 1.5px) calc(var(--ab) * 0.5px),
    calc(var(--ab) * 0.5px) calc(var(--ab) * 1.6px),
    0 0, 0 0;
  box-shadow: 8px 9px 0 -1px var(--smudge);
}

.feature-title {
  font-family: var(--font-toon);
  font-weight: 700;
  font-size: clamp(3rem, 15vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #fff;
  -webkit-text-stroke: 2px #1c0b48;
  paint-order: stroke fill;
  text-shadow:
    calc(var(--ab) * -5px) calc(var(--ab) * -3px) 0 rgb(255 63 200 / 0.7),
    calc(var(--ab) * 5px)  calc(var(--ab) * 4px)  0 rgb(77 234 107 / 0.65),
    calc(var(--ab) * 1px)  calc(var(--ab) * 8px)  0 rgb(62 224 240 / 0.65);
  filter: url(#pencil-text);
}
.feature:hover .feature-title { animation: jitter 0.5s steps(1, end) infinite; }
@keyframes jitter {
  0%  { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 0); }
}
.feature-pitch { margin-top: 1.1rem; max-width: 34ch; font-size: 1.28rem; line-height: 1.3; }
.feature-quote { margin-top: 0.15rem; font-size: 1rem; color: rgba(255, 255, 255, 0.7); }

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
}
.feature-cta {
  --fill: var(--t-green);
  --c: #7cf595;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  font-size: 1.28rem;
  color: var(--ink);
  text-decoration: none;
}
.arrow { display: inline-block; transition: transform 0.3s var(--pop); }
.feature-cta:hover .arrow { transform: translateX(4px); }

.socials { display: flex; gap: 0.5rem; list-style: none; }
.socials a {
  --fill: var(--cream);
  --c: var(--t-pink);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.feature-handle { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }

/* Soutenir toonesque. : Ko-fi et Patreon, sous les réseaux */
.support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-top: -0.4rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.35);
}
.support-label { font-size: 1.12rem; color: #fff; }
.support-links { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.support-links a {
  --fill: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.support-links svg { width: 17px; height: 17px; fill: currentColor; }
.kofi    { --c: #72a4f2; }
.patreon { --c: #ff7a6b; }

/* ---------- cabinet26 ---------- */

.pro {
  --c: var(--pink);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  text-decoration: none;
}
.pro-mark {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 14px 18px 13px 17px / 17px 13px 18px 14px;
  background: #0a0a0a;     /* noir de la charte cabinet26, sans grain */
  transform: rotate(-4deg);
  position: relative;
}
/* Logo cabinet26 officiel, blanc sur noir comme la charte, via un masque */
.pro-mark::after {
  content: '';
  position: absolute;
  inset: 9px 8px 10px 7px;
  background: #fff;
  -webkit-mask: url('img/cabinet26.svg') center / contain no-repeat;
          mask: url('img/cabinet26.svg') center / contain no-repeat;
}
.pro-text { display: flex; flex-direction: column; min-width: 0; }
.pro-name { font-size: 1.4rem; line-height: 1.15; }
.pro-desc { font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- Réseaux ---------- */

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  list-style: none;
}
.link {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
  padding: 0.95rem 1.05rem;
  text-decoration: none;
}
.link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: var(--ink);
  transition: transform 0.35s var(--pop);
}
.link:hover svg { transform: rotate(-10deg) scale(1.15); }
.link-text { display: flex; flex-direction: column; min-width: 0; }
.link-title { font-size: 1.3rem; line-height: 1.15; }
.link-handle {
  font-size: 0.98rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Couleur franche de chaque plateforme, coloriée au survol */
.bluesky    { --c: #4aa3ff; }
.x          { --c: #d6d0c6; }
.instagram  { --c: #ff6fa8; }
.youtube    { --c: #ff5a4a; }
.tiktok     { --c: #3ee0e0; }
.twitch     { --c: #a77bff; }
.linkedin   { --c: #5a9cf0; }
.imdb       { --c: #ffd21f; }
.letterboxd { --c: #4dea6b; }
.backloggd  { --c: #ff7bb8; }
.anilist    { --c: #3ec3f7; }
.applemusic { --c: #ff6070; }
.lastfm     { --c: #ff5a4a; }

.mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.9rem;
  list-style: none;
}
.mini a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  font-size: 1.15rem;
  text-decoration: none;
}
.mini svg { width: 17px; height: 17px; flex-shrink: 0; fill: currentColor; }

/* ---------- Contact ---------- */

.contact {
  --fill: var(--red);
  --c: #ff4a3d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  font-size: 1.5rem;
  color: var(--cream);
  text-decoration: none;
}
.contact svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pro-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
}
@media (max-width: 380px) { .pro-actions { grid-template-columns: 1fr; } }
.cv-link {
  --fill: var(--cream);
  --c: #ffd84d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.cv-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.contact-mail {
  position: relative;
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.copy-mail {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0.1rem 0.2rem;
  opacity: 0.75;
  cursor: copy;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-mail:hover, .copy-mail:focus-visible { opacity: 1; color: var(--ink); }
.copy-done {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 2px) rotate(-3deg);
  padding: 0 0.5rem;
  border-radius: 4px 8px 5px 7px;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--red);
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.is-copied .copy-done { opacity: 1; }
.is-copied .copy-mail { color: var(--red); opacity: 1; }

/* ---------- Pied de page ---------- */

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.footer a { color: var(--ink); }
.footer a:hover { color: var(--red); }

/* ---------- Pages de texte (mentions, 404) ---------- */

.prose { max-width: 620px; gap: 0; }
.back {
  align-self: flex-start;
  margin-bottom: 2rem;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.back:hover { color: var(--red); text-decoration: underline wavy; text-underline-offset: 4px; }
.sheet { padding: clamp(1.4rem, 5vw, 2.2rem); }
.prose h1 {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.prose h2 {
  display: inline-block;
  margin: 1.6rem 0 0.5rem;
  padding: 0 0.15rem;
  font-size: 1.32rem;
  font-weight: 400;
  background: linear-gradient(transparent 58%, rgb(255 190 11 / 0.9) 58%, rgb(255 190 11 / 0.9) 90%, transparent 90%);
}
.prose p { margin-bottom: 0.5rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 400; }
.prose p a { color: var(--blue); text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose .footer { margin-top: 2rem; justify-content: flex-start; }

/* ---------- Apparition : petit rebond ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: boing 0.7s var(--pop) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
  @keyframes boing {
    from { opacity: 0; transform: translateY(18px) scale(0.96) rotate(-1deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Au survol, plus de cartes qui penchent ni d'icônes qui tournent :
     seuls les changements de couleur restent */
  a.sketch:hover, a.sketch:active,
  li:nth-child(even) > a.sketch:hover,
  .link:hover svg, .socials a:hover,
  .feature-cta:hover .arrow, .pro:hover .arrow {
    transform: none !important;
  }
}

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