/* Eva concessions : héros vidéo, message, canaux, tableau du patron, calculateur. Griotte, grenat, nacre ; pas de vert. */
.marque-sous { margin-left: 4px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* Héros : l'accroche et la vidéo */
.k-heros { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(48px, 7vw, 110px) var(--marge) clamp(56px, 8vw, 120px); background: radial-gradient(1100px 760px at 72% 40%, #8a1a3e 0%, #4a0d22 44%, var(--griotte) 78%, #14040a 100%); color: var(--nacre); overflow: hidden; }
.k-heros h1 { font-size: clamp(34px, 4.1vw, 64px); line-height: 1.04; color: #fff; }
.k-heros h1 em { font-style: normal; color: var(--nacre); background: linear-gradient(90deg, #f0dec8, #ff9fb4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.k-chapo { margin: 22px 0 30px; max-width: 30em; font-size: 19px; line-height: 1.5; }
.k-heros .scene-action { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.k-heros .scene-action small { font-size: 14.5px; opacity: .85; }

.k-video { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #14040a; box-shadow: 0 0 0 1px rgba(240, 222, 200, .18), 0 40px 120px -40px rgba(255, 90, 126, .55), 0 30px 60px -30px rgba(0, 0, 0, .8); transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.k-video:hover, .k-video:focus-within { transform: none; }
.k-video.portrait { aspect-ratio: 9 / 16; max-height: 82svh; justify-self: center; }
.k-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-video::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 38%); }
.k-video-attente { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--nacre); font-size: 14.5px; }
.k-video-attente p { max-width: 34em; opacity: .9; }
.k-pastille { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(20, 4, 10, .6); border: 1px solid rgba(240, 222, 200, .3); backdrop-filter: blur(8px); font-weight: 650; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.k-pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a7e; box-shadow: 0 0 0 4px rgba(255, 90, 126, .25); }
@media (prefers-reduced-motion: no-preference) { .k-pastille::before { animation: battre 1.6s ease-in-out infinite; } @keyframes battre { 50% { transform: scale(.6); opacity: .6; } } }
.k-video-commandes { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; gap: 10px; }
.k-video-commandes[hidden] { display: none; }
.k-video-commandes button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(240, 222, 200, .35); border-radius: 999px; padding: 11px 18px; background: rgba(20, 4, 10, .55); backdrop-filter: blur(10px); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.k-video-commandes button:hover { background: rgba(110, 18, 48, .8); }
.k-video-commandes svg { width: 20px; height: 20px; }
.k-ecouter[aria-pressed="true"] { background: var(--nacre); color: var(--griotte); }
.k-pause { padding: 11px 12px !important; }

/* Le message */
.k-message { padding: clamp(64px, 9vw, 130px) var(--marge); background: var(--nacre); color: var(--griotte); }
.k-message h2 { max-width: 17em; font-size: clamp(32px, 4.4vw, 64px); }
.k-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin: 48px 0 0; padding: 0; list-style: none; }
.k-chiffres li { padding-top: 18px; border-top: 2px solid var(--griotte); }
.k-chiffres strong { display: block; font-size: clamp(44px, 5vw, 76px); font-weight: 650; letter-spacing: -.04em; line-height: 1; color: var(--grenat); }
.k-chiffres span { display: block; margin-top: 12px; font-size: 16px; line-height: 1.45; color: #40323a; }

/* Outils : la ligne franche */
.outils { padding-top: clamp(64px, 9vw, 120px); }
.k-nefaitpas { max-width: 50em; margin: 30px auto 0; padding: 18px 22px; border-radius: 18px; border: 1px solid #e3d7dc; background: #fff; font-size: 16px; line-height: 1.5; color: #40323a; text-align: center; }
.k-nefaitpas strong { color: var(--grenat); }
@media (max-width: 999px) { .k-nefaitpas { margin: 30px var(--marge) 0; } }

/* Canaux */
.k-canaux .expert { display: flex; flex-direction: column; }
.k-icone { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(140deg, var(--grenat), var(--griotte)); color: var(--nacre); box-shadow: 0 10px 24px -12px rgba(110, 18, 48, .9); }
.k-icone svg { width: 24px; height: 24px; }
.k-canaux .expert > p:first-of-type { font-size: 16px; color: var(--encre); }
.k-canaux ul { margin: 14px 0 0; padding: 0; list-style: none; }
.k-canaux li { position: relative; margin-top: 8px; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.k-canaux li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--grenat); }
.k-bon { margin-top: 16px !important; padding: 12px 14px; border-radius: 12px; background: #f6edf0; font-size: 14px; line-height: 1.45; }
.k-bon strong { color: var(--grenat); }
.k-conforme { max-width: 56em; margin: 26px auto 0; text-align: center; font-size: 15px; color: #40323a; }

/* L'appli du patron : une scène collante, le téléphone 3D (ou son repli 2D) change d'écran au défilement */
.k-patron { position: relative; background: var(--griotte); color: var(--nacre); }
.k-patron.vivant { height: 520svh; }
.k-patron-colle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: 100svh; padding: clamp(80px, 9vh, 120px) var(--marge) 40px; background: radial-gradient(900px 620px at 75% 45%, #8a1a3e 0%, var(--grenat) 40%, var(--griotte) 100%); overflow: hidden; }
.vivant .k-patron-colle { position: sticky; top: 0; height: 100svh; }
.k-patron h2 { font-size: clamp(26px, 3.6vw, 54px); color: #fff; max-width: 13em; }
.k-etapes { margin: 28px 0 0; padding: 0; list-style: none; }
.k-etapes li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid rgba(240, 222, 200, .16); font-size: 16.5px; line-height: 1.4; transition: opacity .4s; }
.k-etapes li::before { content: attr(data-n); position: absolute; left: 0; top: 13px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(240, 222, 200, .4); font-size: 14px; font-weight: 650; }
.k-etapes b { display: block; font-size: 19px; color: #fff; }
.k-etapes.suivi li { opacity: .38; }
.k-etapes.suivi li.actif { opacity: 1; }
.k-etapes li.actif::before { background: var(--nacre); color: var(--griotte); border-color: var(--nacre); }
.k-patron-note { margin-top: 14px; font-size: 13px; opacity: .7; }
.k-patron-pose { position: relative; height: min(78svh, 720px); min-height: 0; }
/* Repli sans 3D : la même toile, dans un cadre de téléphone */
.k-cadre { position: absolute; top: 0; left: 50%; transform: translateX(-50%); box-sizing: border-box; height: 100%; aspect-ratio: 620 / 1300; padding: 9px; border-radius: 13% / 6.2%; background: linear-gradient(145deg, #4a3f44, #1e181b 45%, #2c2528); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.k-cadre canvas { display: block; width: 100%; height: 100%; border-radius: 11% / 5.3%; }
.k-cadre:empty { display: none; }
.avec-3d .k-cadre { visibility: hidden; }
@media (max-width: 999px) {
  .k-patron-colle { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 70px var(--marge) 18px; }
  .k-patron-texte { display: contents; }
  .k-patron .surtitre { margin: 0; }
  .k-patron h2 { order: -1; font-size: clamp(22px, 6vw, 30px); }
  .k-patron .surtitre { order: -2; }
  .k-etapes { order: 2; margin: 0; min-height: 4.6em; }
  .k-etapes li { padding: 0 0 0 40px; border: 0; font-size: 15px; }
  .k-etapes li::before { top: 0; width: 28px; height: 28px; }
  .k-etapes b { font-size: 17px; }
  .k-etapes.suivi li { display: none; }
  .k-etapes.suivi li.actif { display: block; }
  .k-patron-note { order: 3; margin: 0; font-size: 12px; }
  .k-patron-pose { order: 1; flex: 1; height: auto; }
}

/* Calculateur */
.k-calcul { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding: clamp(64px, 9vw, 130px) var(--marge); background: var(--griotte); color: var(--nacre); }
.k-calcul h2 { font-size: clamp(32px, 4.2vw, 60px); color: #fff; }
.k-calcul-texte > p:not(.surtitre) { margin-top: 18px; font-size: 18px; line-height: 1.5; }
.k-calculateur { padding: clamp(20px, 3vw, 32px); border-radius: 26px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(240, 222, 200, .2); }
.k-curseur { display: block; font-size: 16px; }
.k-curseur output { float: right; font-size: 34px; font-weight: 650; letter-spacing: -.03em; color: #fff; line-height: 1; }
.k-curseur input { display: block; width: 100%; margin-top: 18px; accent-color: #ff5a7e; height: 28px; }
.k-hypotheses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.k-hypotheses label { display: grid; gap: 6px; font-size: 13.5px; opacity: .95; }
.k-hypotheses span { display: flex; align-items: center; gap: 6px; }
.k-hypotheses input { width: 5.2em; padding: 8px 10px; border: 1px solid rgba(240, 222, 200, .4); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 16px; }
.k-resultat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.k-resultat div { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.k-resultat b { display: block; font-size: clamp(28px, 3vw, 42px); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.k-resultat span { display: block; margin-top: 6px; font-size: 14px; opacity: .85; }
.k-resultat .k-formule { background: var(--nacre); color: var(--griotte); }
.k-resultat .k-formule b { color: var(--grenat); }
.k-estimation { margin-top: 16px; font-size: 13.5px; opacity: .8; }

@media (min-width: 1000px) {
  /* Le côté droit reste libre : le téléphone 3D y passe */
  .avec-3d .k-calcul { padding-right: calc(var(--marge) + 26vw); }
}
@media (max-width: 999px) {
  .k-heros, .k-calcul { grid-template-columns: minmax(0, 1fr); }
  .k-video { transform: none; }
  .k-chiffres { grid-template-columns: minmax(0, 1fr); }
  .k-hypotheses { grid-template-columns: minmax(0, 1fr); }
  .k-hypotheses label { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 520px) {
  .k-resultat { grid-template-columns: minmax(0, 1fr); }
  .k-video-attente p { display: none; }
}

/* Corrections après captures */
.k-heros .scene-action { flex-direction: row; justify-content: flex-start; margin-top: 0; }
@media (max-width: 999px) {
  .marque-sous { display: none; }
  .k-heros .scene-action .bouton { display: inline-block; }
  .k-chapo { margin: 18px 0 22px; font-size: 17.5px; }
}

/* Canaux : cartes de verre sur le fond griotte (remplace le « mur de noms » de v3) */
.equipe .cartes-3.k-canaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto; }
.k-canaux .expert.bloc { display: flex; flex-direction: column; padding: 26px; border: 1px solid rgba(240, 222, 200, .18); border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); box-shadow: none; color: var(--nacre); text-align: left; }
.k-canaux .expert.bloc:last-child { border-bottom: 1px solid rgba(240, 222, 200, .18); }
.k-canaux .expert.bloc h3 { margin: 0 0 8px; font-size: 22px; color: #fff; transform: none; }
.k-canaux .expert.bloc > p:first-of-type { max-width: none; font-size: 16px; color: #fff; opacity: .92; }
.k-canaux li { color: var(--nacre); }
.k-canaux li::before { background: #ff5a7e; }
.k-canaux .k-bon { background: rgba(240, 222, 200, .1); color: var(--nacre); font-size: 14px; }
.k-canaux .k-bon strong { color: #fff; }
.equipe .k-conforme { color: var(--nacre); opacity: .9; }
@media (min-width: 1000px) { .avec-3d .equipe .cartes-3.k-canaux { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; } }
@media (max-width: 999px) { .equipe .cartes-3.k-canaux { grid-template-columns: minmax(0, 1fr); } }
.k-canaux .expert.bloc { align-items: flex-start; } .k-canaux .expert.bloc h3, .k-canaux .expert.bloc p { text-align: left; }
