/* Page-level shared utilities — surcouche minimale du DS */
.ktk-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.ktk-section { padding: 140px 32px; position: relative; }
@media (max-width: 900px) { .ktk-section { padding: 80px 20px; } }
@media (max-width: 480px) { .ktk-section { padding: 64px 16px; } }
.ktk-block-bottom { border-bottom-left-radius: 48px; border-bottom-right-radius: 48px; margin-bottom: 80px; }
.ktk-block-both   { border-radius: 48px; margin: 80px 0; }
@media (max-width: 720px) {
  .ktk-block-bottom { border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; margin-bottom: 48px; }
  .ktk-block-both { border-radius: 32px; margin: 48px 0; }
}
.ktk-container { max-width: 1280px; margin: 0 auto; }
.ktk-link-arrow {
  color: var(--signature); text-decoration: none; font-weight: 500;
  font-size: 16px; border-bottom: 1px solid var(--signature);
  padding-bottom: 4px; transition: opacity 140ms;
}
.ktk-link-arrow:hover { opacity: 0.75; }
.ktk-link-dark { color: var(--charbon-profond); border-bottom-color: var(--charbon-profond); }
.icon-stroke svg { stroke-width: 1.75; }

/* Photo treatment */
.ktk-photo { position: relative; overflow: hidden; isolation: isolate; background: #1a1a1b; }
.ktk-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ktk-photo.r-tr { border-radius: 16px 80px 16px 16px; }
.ktk-photo.r-tl { border-radius: 80px 16px 16px 16px; }
.ktk-photo.r-br { border-radius: 16px 16px 80px 16px; }
.ktk-photo.r-bl { border-radius: 16px 16px 16px 80px; }
.ktk-photo.tone-charbon::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(10,10,11,0.10); mix-blend-mode: multiply;
  z-index: 2; pointer-events: none;
}
.ktk-photo.tone-creme::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(244,239,230,0.07); mix-blend-mode: lighten;
  z-index: 2; pointer-events: none;
}
.ktk-photo::after {
  content: ""; position: absolute; inset: 0;
  z-index: 3; pointer-events: none;
  opacity: 0.10; 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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* Hero secondaire (commun aux 4 pages) */
.ktk-hero-secondary {
  background: var(--charbon-profond);
  padding: 140px 32px 100px;
  position: relative; overflow: hidden;
}
.ktk-hero-secondary h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 24px 0 32px;
  max-width: 1100px;
  color: var(--fg-on-dark);
}
.ktk-hero-secondary .sub {
  font-size: 19px; line-height: 1.5;
  color: var(--fg-on-dark-muted);
  max-width: 640px;
}
@media (max-width: 720px) {
  .ktk-hero-secondary { padding: 96px 20px 64px; }
  .ktk-hero-secondary h1 { font-size: clamp(36px, 11vw, 48px); }
  .ktk-hero-secondary .sub { font-size: 17px; }
}
@media (max-width: 480px) {
  .ktk-hero-secondary { padding: 88px 16px 56px; }
}

/* Section signature (CTA / closing) - scène charbon, le Vert Signal reste un
   accent (CTA, mot pivot), jamais un aplat. (DESIGN.md : vert surligneur <=10%) */
.ktk-section-signature {
  background: var(--charbon-profond);
  color: var(--fg-on-dark);
}
.ktk-section-signature h2,
.ktk-section-signature h3 { color: var(--fg-on-dark); }

/* Conteneur large dédié aux héros 50/50 (déborde de .ktk-container) */
.ktk-container-hero {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 8px;
}
@media (max-width: 900px) {
  .ktk-container-hero { padding: 0 4px; }
}

/* Hero 50/50 split (texte gauche + visuel droite, 7 pages secondaires) */
.ktk-hero-split {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1200px) {
  .ktk-hero-split { gap: 40px; grid-template-columns: 1fr 1.1fr; }
}
@media (max-width: 900px) {
  .ktk-hero-split { grid-template-columns: 1fr; gap: 56px; }
}
.ktk-hero-split > .hero-text { min-width: 0; }
.ktk-hero-split > .hero-visual { min-width: 0; position: relative; }

/* Float keyframe pour cards / pills / bulles "préférées" */
@keyframes heroFloatY {
  0%, 100% { transform: translateY(-3px) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(3px)  rotate(var(--rot, 0deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-floats *,
  .hero-photo-wrap * { animation: none !important; }
}

/* S3 — hover des cartes étages */
.etage-card {
  will-change: transform;
}
.etage-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(244,239,230,0.04);
  opacity: 0;
  transition: opacity 380ms ease, box-shadow 380ms ease;
}
.etage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(244,239,230,0.06);
}
.etage-card:hover::after {
  opacity: 1;
  box-shadow: inset 0 0 0 1.5px var(--card-accent, var(--signature));
}
.etage-card-visual {
  transition: transform 520ms cubic-bezier(0.22,1,0.36,1);
}
.etage-card:hover .etage-card-visual {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .etage-card,
  .etage-card-visual { transition: none !important; }
  .etage-card:hover { transform: none; }
  .etage-card:hover .etage-card-visual { transform: none; }
}
