/* ============================================================
   CATCHY · ARTICLE · feuille de style magazine new wave
   Utilisée par tous les fichiers .html dans /actus/
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ink: #0A0A0A;
  --ink-2: #131316;
  --ink-3: #1C1C22;
  --paper: #F4F1EC;
  --paper-2: #E8E3D8;

  --g1: #C75B4E;  /* brique */
  --g2: #8B4CB0;  /* violet */
  --g3: #2D3A8C;  /* nuit */
  --gradient: linear-gradient(135deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-ink: rgba(10, 10, 10, 0.12);

  --font-display: 'General Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-image: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Largeur de colonne unifiée pour l'article */
  --col-w: 720px;
  --col-pad: 40px;
}

html, body { background: var(--ink); }
body {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--g1); color: var(--paper); }

/* ============================================================
   GRADIENT TEXT · fix coupure droite
   Tout texte avec background-clip: text reçoit un padding-right
   pour ne pas couper le dernier caractère (surtout en italique).
============================================================ */
.grad,
.grad-text,
em.grad,
.article-head__title .grad,
.article-body .cta-line a {
  display: inline-block;
  padding-right: 0.22em;
  margin-right: -0.1em;
  overflow: visible;
}
.article-back .arrow,
.article-nav__title .arrow,
.article-body ol li::before {
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.08em;
}

/* ============================================================
   GRAIN
============================================================ */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   NAV
============================================================ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.topnav__brand {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-weight: 700;
  font-size: 22px; letter-spacing: -0.05em;
}
.topnav__brand-stop {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
  display: inline-block;
}
.topnav__links { display: flex; align-items: center; gap: 28px; }
.topnav__links a { opacity: 0.6; transition: opacity .2s; }
.topnav__links a:hover, .topnav__links a.is-active { opacity: 1; }
.topnav__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--paper);
  opacity: 1 !important;
}
@media (max-width: 720px) {
  .topnav { padding: 14px 20px; }
  .topnav__links a:not(.topnav__cta) { display: none; }
}

/* ============================================================
   HEADER ARTICLE · colonne unifiée
============================================================ */
.article-head {
  position: relative;
  padding: 120px 0 24px;
  overflow: hidden;
  background: var(--ink);
}
.article-head__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 90% 0%, #8b4cb02e 0%, transparent 60%),
    radial-gradient(50% 50% at 5% 100%, #c75b4e22 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.article-head__inner {
  position: relative; z-index: 1;
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 0 var(--col-pad);
}

.article-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 40px;
  transition: opacity .2s, transform .3s var(--ease-out);
}
.article-back:hover { opacity: 1; transform: translateX(-4px); }
.article-back .arrow {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 14px;
}

/* Meta · poussée à droite */
.article-head__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.article-head__meta .tag {
  padding: 7px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 0 var(--g1);
  display: inline-block;
}
.article-head__meta .sep { opacity: 0.4; }

.article-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  padding-block: 0.04em;
}
.article-head__title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.stop {
  display: inline-block;
  width: 0.14em; height: 0.14em; border-radius: 50%;
  background: var(--g1);
  margin-left: 0.04em;
  vertical-align: baseline;
}

.article-head__lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: rgba(244, 241, 236, 0.78);
  max-width: 50ch;
  padding-bottom: 24px;
}

/* ============================================================
   COVER IMAGE · contenue dans la colonne, plus petite
============================================================ */
.article-cover {
  position: relative;
  max-width: var(--col-w);
  margin: 0 auto 64px;
  padding: 0 var(--col-pad);
  overflow: visible;
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 440px;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.02);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .article-cover { margin-bottom: 48px; padding: 0 24px; }
  .article-cover img { aspect-ratio: 4 / 3; max-height: 320px; }
}

/* ============================================================
   CORPS · même colonne que le header
============================================================ */
.article-body {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 0 var(--col-pad) 24px;
  position: relative;
}

/* Lede sans drop cap (plus propre) */
.article-body .lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--paper);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
  letter-spacing: -0.015em;
  max-width: none;
}

/* H2 · sans compteur, plus discret */
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 56px 0 20px;
  color: var(--paper);
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 36px 0 14px;
  color: var(--paper);
}

.article-body p {
  color: rgba(244, 241, 236, 0.82);
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.7;
}

.article-body p strong { color: var(--paper); font-weight: 700; }

/* Listes · barres gradient */
.article-body ul, .article-body ol {
  margin: 20px 0 28px 0;
  padding-left: 0;
  list-style: none;
  color: rgba(244, 241, 236, 0.82);
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.65;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 18px; height: 2px;
  background: var(--gradient);
}
.article-body ol { counter-reset: olist; }
.article-body ol li { counter-increment: olist; padding-left: 44px; }
.article-body ol li::before {
  content: counter(olist, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

/* PULL QUOTE · nouveau style : pas de cadre paper, juste typo XL gradient
   avec barre verticale gradient à gauche */
.article-body blockquote {
  position: relative;
  margin: 64px 0;
  padding: 8px 0 8px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--paper);
  border: 0;
  background: none;
}
.article-body blockquote::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--gradient);
  border-radius: 2px;
  padding: 0;
  margin: 0;
}
.article-body blockquote::after { display: none; }

/* Liens dans le corps · soulignement gradient */
.article-body a:not(.cta-line-link) {
  color: var(--paper);
  font-weight: 600;
  position: relative;
  background-image: var(--gradient);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease-out);
}
.article-body a:not(.cta-line-link):hover {
  background-size: 100% 100%;
  color: var(--paper);
}

.article-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 56px 0;
}

/* CTA en fin d'article · plus discret */
.article-body .cta-line {
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.article-body .cta-line a {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: var(--gradient);
  background-size: 100% 100% !important;
  font-weight: 700;
  font-style: italic;
  padding: 0;
  padding-right: 0.12em;
  margin-right: -0.06em;
}

@media (max-width: 720px) {
  .article-head { padding: 100px 0 24px; }
  .article-head__inner { padding: 0 24px; }
  .article-body { padding: 0 24px 60px; font-size: 16px; }
  .article-body p { font-size: 16px; }
  .article-head__meta { justify-content: flex-start; }
}

/* ============================================================
   TAKEAWAY · "Ce qu'on retient chez Catchy"
   Encadré simple, dans la colonne de l'article
============================================================ */
.article-takeaway {
  max-width: var(--col-w);
  margin: 48px auto 0;
  padding: 0 var(--col-pad);
}
.article-takeaway__inner {
  padding: 28px 32px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid;
  border-image: var(--gradient) 1;
  border-image-slice: 1;
}
.article-takeaway__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--paper);
}
.article-takeaway p {
  color: rgba(244, 241, 236, 0.82);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
.article-takeaway p strong { color: var(--paper); font-weight: 600; }

/* ============================================================
   CTA CARD · "Un projet ?" carte flottante glassmorphism
   Contenue dans la colonne de l'article
============================================================ */
.article-cta-card-wrap {
  max-width: var(--col-w);
  margin: 72px auto 0;
  padding: 0 var(--col-pad);
}
.article-cta-card {
  position: relative;
  display: block;
  padding: 32px 36px 28px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(199, 91, 78, 0.55) 0%, rgba(139, 76, 176, 0.55) 50%, rgba(45, 58, 140, 0.55) 100%),
    rgba(15, 15, 22, 0.4);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 44px -16px rgba(0, 0, 0, 0.55),
    0 6px 16px -6px rgba(0, 0, 0, 0.35);
  transform: rotate(-1deg);
  animation: cta-float 5.5s ease-in-out infinite;
  will-change: transform;
  transition:
    transform .55s var(--ease-spring),
    box-shadow .4s,
    border-color .4s;
}
@keyframes cta-float {
  0%, 100% { transform: rotate(-1deg) translate3d(0, 0, 0); }
  50%      { transform: rotate(-1deg) translate3d(0, -22px, 0); }
}
.article-cta-card:hover {
  transform: rotate(0deg) translate3d(0, -26px, 0);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 40px 70px -20px rgba(0, 0, 0, 0.7),
    0 14px 26px -10px rgba(0, 0, 0, 0.5);
  animation-play-state: paused;
}
.article-cta-card::after {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  transform: rotate(25deg);
}

.article-cta-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--paper);
}
.article-cta-card__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(244, 241, 236, 0.88);
  margin-bottom: 26px;
  max-width: 44ch;
}
.article-cta-card__text strong {
  color: var(--paper);
  font-weight: 600;
}
.article-cta-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: gap .3s var(--ease-out), background .3s;
}
.article-cta-card:hover .article-cta-card__btn {
  gap: 16px;
  background: rgba(10, 10, 10, 0.92);
}
.article-cta-card__btn .arrow { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .article-cta-card { animation: none; transform: none; }
}
@media (max-width: 640px) {
  .article-takeaway__inner { padding: 22px 22px; }
  .article-cta-card { padding: 26px 24px 22px; }
  .article-cta-card__title { font-size: 22px; }
}

/* Figure dans l'article */
.article-body figure { margin: 40px 0; }
.article-body figure img {
  width: 100%;
  border: 1px solid var(--line);
}
.article-body figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  text-align: left;
}

/* ============================================================
   NAV INTER-ARTICLES · même colonne
============================================================ */
.article-nav {
  max-width: var(--col-w);
  margin: 56px auto 0;
  padding: 0 var(--col-pad) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .4s, border-color .4s, transform .4s var(--ease-out);
}
.article-nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient);
  opacity: 0.7;
  transition: opacity .3s, width .3s var(--ease-out);
}
.article-nav a:hover {
  background: var(--ink-3);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.article-nav a:hover::before { opacity: 1; width: 5px; }
.article-nav__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}
.article-nav__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.article-nav__title .arrow {
  display: inline-block;
  margin-left: 6px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .3s var(--ease-out);
}
.article-nav a:hover .article-nav__title .arrow { transform: translateX(8px); }
.article-nav__prev .article-nav__title .arrow { margin-left: 0; margin-right: 6px; }
.article-nav__prev:hover .article-nav__title .arrow { transform: translateX(-8px); }
@media (max-width: 720px) {
  .article-nav { padding: 0 24px 60px; grid-template-columns: 1fr; }
  .article-nav a { padding: 22px 24px; }
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 32px 40px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  opacity: 0.7;
}
footer .left, footer .right { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { transition: opacity .2s; opacity: 0.85; }
footer a:hover { opacity: 1; }
footer .brand-mini {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  opacity: 1;
}
footer .brand-mini-stop {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gradient);
  display: inline-block;
}
@media (max-width: 720px) {
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

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