/* Page vitrine leroch.name : s'appuie sur app.css (mêmes couleurs, mêmes composants). */

.top__cta { padding: 9px 16px; font-size: .9rem; }
.top__nav { display: flex; align-items: center; gap: 8px; }
@media (max-width: 520px) { .top__cta { padding: 8px 11px; font-size: .8rem; } }
@media (max-width: 380px) { .top__nav { gap: 6px; } .top__cta { padding: 7px 9px; font-size: .74rem; } }

.btn--glass { background: rgba(11, 16, 32, .55); color: var(--text); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(11, 16, 32, .8); }

/* Bandeau d'accueil : un peu plus haut, avec accroche et boutons */
.brand--home { min-height: clamp(340px, 34vw, 480px); }
.brand--home .brand__in { padding: 30px 0 28px; }
.brand--home .brand__title { margin-top: 0; font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.brand--home .brand__sub { font-size: clamp(1rem, 1.4vw, 1.12rem); margin-bottom: 14px; text-shadow: 0 1px 4px rgba(11,16,32,.95), 0 2px 24px rgba(11,16,32,.8); }
.brand--home .brand__sub--punch { color: #cfe3ff; margin-bottom: 22px; }
@media (min-width: 720px) { .brand--home .brand__sub { max-width: min(54ch, 54%); } }
.brand__who { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 99px; font-size: .85rem; font-weight: 600; color: #cfe3ff; background: rgba(11, 16, 32, .55); border: 1px solid rgba(79, 179, 255, .35); backdrop-filter: blur(6px); }
.brand__tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.brand__tags li { font-size: .9rem; font-weight: 600; color: #e8ecf6; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.brand__tags li + li::before { content: "·"; margin-right: 14px; color: var(--accent); }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.brand__lead { max-width: 560px; color: #d6dcec; font-size: 1.05rem; margin: 0 0 22px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.brand__cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .brand--home { padding-top: 170px; }
  .brand__cta .btn { flex: 1 1 100%; }
}

/* Titres de section */
.skills h2, .proofcase h2, .method h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-top: 14px; }
.section__lead { max-width: 760px; color: #c3cbe0; font-size: 1.08rem; }

/* Savoir-faire */
.skills { position: relative; overflow: hidden; padding: 80px 0; }
.skills > .wrap { position: relative; z-index: 1; }
.skills__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 30px; }
.skill { background: rgba(19, 28, 58, .82); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(4px); transition: transform .2s, border-color .2s; }
.skill:hover { transform: translateY(-3px); border-color: rgba(46, 230, 166, .45); }
.skill__icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.skill h3 { font-size: 1.2rem; margin-bottom: 8px; }
.skill p { color: #c3cbe0; font-size: .96rem; }
.skill ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.skill li { padding-left: 24px; position: relative; font-size: .9rem; color: var(--muted); }
.skill li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* La preuve */
.proofcase { padding: 80px 0; border-top: 1px solid var(--line); background: radial-gradient(900px 420px at 80% 0%, rgba(88, 120, 255, .12), transparent 70%); }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; margin-top: 30px; }
.case__shot { position: sticky; top: 90px; }
@media (max-width: 900px) { .case__shot { position: static; } }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
.case__shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s; }
.case__shot:hover { transform: scale(1.01); }
.case__shot img { display: block; width: 100%; height: auto; }
.case__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case__checks li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 44px; position: relative; color: #c3cbe0; font-size: .95rem; }
.case__checks li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: rgba(46, 230, 166, .15); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.case__checks b { display: block; color: var(--text); margin-bottom: 2px; }
.case__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* Méthode */
.method { padding: 80px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; counter-reset: none; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #4fb3ff); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Au labo : la chaîne complète ---------- */
.lab { position: relative; overflow: hidden; padding: 72px 0 80px; }
.lab > .wrap { position: relative; z-index: 1; }
.lab h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); margin-top: 14px; }
.lab h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent), #4fb3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.chain { --gap: 14px; list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); position: relative; counter-reset: step; }
/* La « fibre » qui relie les étapes, et le paquet de données qui la parcourt */
.chain::before { content: ""; position: absolute; left: 4%; right: 4%; top: 34px; height: 2px; background: linear-gradient(90deg, rgba(46, 230, 166, .15), rgba(79, 179, 255, .5), rgba(46, 230, 166, .15)); }
.chain::after { content: ""; position: absolute; top: 30px; left: 4%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 3px rgba(46, 230, 166, .7); animation: packet 5s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes packet { 0% { left: 4%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(96% - 10px); opacity: 0; } }
.chain__step { position: relative; counter-increment: step; background: rgba(19, 28, 58, .85); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 18px; backdrop-filter: blur(4px); text-align: center; transition: border-color .2s, transform .2s; }
.chain__step:hover { border-color: rgba(46, 230, 166, .5); transform: translateY(-3px); }
.chain__icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(79, 179, 255, .6); font-size: 1rem; position: relative; z-index: 1; }
.chain__step h3 { font-size: 1rem; margin: 0 0 6px; }
.chain__step h3::before { content: counter(step) ". "; color: var(--accent); }
.chain__step p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .chain { grid-template-columns: 1fr; }
  .chain::before { left: 34px; right: auto; top: 4%; bottom: 4%; width: 2px; height: auto; background: linear-gradient(180deg, rgba(46, 230, 166, .15), rgba(79, 179, 255, .5), rgba(46, 230, 166, .15)); }
  .chain::after { left: 30px; top: 4%; animation-name: packet-v; }
  .chain__step { text-align: left; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding-left: 16px; }
  .chain__icon { margin: 0; grid-row: span 2; }
}
@keyframes packet-v { 0% { top: 4%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(96% - 10px); opacity: 0; } }

.lab__foot { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 34px; }
.lab__shot { max-width: 760px; width: 100%; }

/* Lien discret du pied de page (ouvre le formulaire) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; cursor: pointer; }

/* Contact : ancre sous l'en-tête fixe */
#contact { scroll-margin-top: 70px; }

.lab__next { margin-top: 18px; }
.skill p:last-child { margin-bottom: 0; }

/* ---- Section "Demander l'accès à l'audit" ---- */
.access { position: relative; padding: 64px 0; border-top: 1px solid var(--line); overflow: hidden; }
.access__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: stretch; }
.access__intro { display: flex; flex-direction: column; }
.access__intro .kicker { align-self: flex-start; }
.access__intro .shock { margin-top: 12px; flex: 1 1 auto; min-height: 0; }
@media (min-width: 901px) {
  .access__intro .shock { height: 100%; }
  .access__intro .shock__photo { height: 100%; object-fit: cover; object-position: 50% 30%; }
}
@media (max-width: 900px) { .access__grid { grid-template-columns: 1fr; gap: 28px; } }
.shock { position: relative; margin: 0; }
.shock__photo { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow, 0 20px 60px rgba(0,0,0,.4)); }
.shock__screen { position: absolute; right: -10px; bottom: -14px; width: min(80%, 370px); background: #0b1020; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 46px rgba(0,0,0,.55); }
@media (max-width: 520px) { .shock__screen { position: static; width: auto; margin-top: 14px; } }
.shock__grade { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,92,108,.16); color: var(--bad, #ff5c6c); font-weight: 800; font-size: 1.35rem; margin-bottom: 10px; }
.shock__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .82rem; }
.shock__list li { position: relative; padding-left: 22px; line-height: 1.4; color: #c9d2e6; }
.shock__list li::before { position: absolute; left: 0; top: 0; }
.shock__list .is-bad::before { content: '⛔'; }
.shock__list .is-warn::before { content: '⚠️'; }
.shock__list b { color: #fff; }
.access__cta h2 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 12px; }
.access__cta h2 em { color: var(--accent, #2ee6a6); font-style: normal; }
.access__cta form { margin-top: 18px; }
.access__cta label { display: block; font-size: .9rem; margin: 10px 0 4px; color: var(--muted, #9aa6c4); }
.access__cta input { width: 100%; background: var(--bg-2, #0f1630); color: var(--text, #e8ecf6); border: 1px solid var(--line, #243157); border-radius: 10px; padding: 12px 14px; font: 1rem var(--font, system-ui); }
.access__cta input:focus { outline: 2px solid var(--accent, #2ee6a6); outline-offset: 1px; }
.access__pending { background: rgba(46,230,166,.08); border: 1px solid rgba(46,230,166,.32); border-radius: 14px; padding: 18px 20px; }
.access__pending h3 { margin: 0 0 6px; }
.access__granted { background: rgba(90,160,255,.08); border: 1px solid rgba(90,160,255,.32); border-radius: 14px; padding: 18px 20px; }
.access__granted h3 { margin: 0 0 6px; }
.access__granted p { margin: 0 0 10px; }
.access__granted .btn { margin-top: 4px; }
.access__legal { font-size: .82rem; color: var(--muted, #9aa6c4); margin-top: 14px; }

/* ---- Avant / Après animé (dans l'écran superposé à la photo) ---- */
.shock__screen.ba { padding: 0; background: transparent; border: 0; box-shadow: 0 14px 46px rgba(0,0,0,.55); border-radius: 12px; display: grid; }
.ba__card { background: #0b1020; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; grid-area: 1 / 1; }
.ba__before { animation: baWipe 7s ease-in-out infinite; will-change: clip-path; }
.shock:hover .ba__before { animation-play-state: paused; }
@keyframes baWipe {
  0%, 20% { clip-path: inset(0 0 0 0); }        /* "Avant" visible en entier */
  50%, 70% { clip-path: inset(0 0 0 100%); }    /* balayage -> "Après" révélé */
  100% { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .ba__before { animation: none; } }
.ba__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ba__grade { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; font-weight: 800; font-size: 1.35rem; }
.ba__grade--bad { background: rgba(255,92,108,.16); color: var(--bad, #ff5c6c); }
.ba__grade--ok { background: rgba(46,230,166,.16); color: var(--accent, #2ee6a6); }
.ba__tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.ba__tag--before { background: rgba(255,92,108,.16); color: var(--bad, #ff5c6c); }
.ba__tag--after { background: rgba(46,230,166,.16); color: var(--accent, #2ee6a6); }
.shock__list .is-ok::before { content: '✅'; }

/* ============ Aperçu de l'outil : carrousel ============ */
.preview { position: relative; padding: 64px 0; border-top: 1px solid var(--line); overflow: hidden; }
.preview .wrap { position: relative; z-index: 1; }
.cx { position: relative; margin-top: 28px; overflow: hidden; }
.cx__track { display: flex; transition: transform .4s ease; touch-action: pan-y; }
.cx__slide { flex: 0 0 100%; min-width: 0; margin: 0; padding: 4px 6px; }
.cx__slide img { display: block; width: 100%; height: clamp(200px, 30vw, 340px); object-fit: contain; object-position: center; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.45); background: #0b1020; padding: 10px; }
.cx__slide figcaption { margin: 16px auto 0; max-width: 64ch; text-align: center; color: #c9d2e6; font-size: 1.02rem; line-height: 1.5; }
.cx__slide figcaption strong { color: #fff; }
.cx__nav { position: absolute; top: clamp(100px, 15vw, 170px); transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(11,16,32,.72); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .15s; z-index: 2; }
.cx__nav:hover { background: rgba(11,16,32,.96); }
.cx__prev { left: -8px; }
.cx__next { right: -8px; }
.cx__dots { display: flex; justify-content: center; gap: 2px; margin-top: 11px; }
/* Zone tactile de 24 px (WCAG 2.5.8) ; le point visible reste à 10 px */
.cx__dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cx__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .15s, transform .15s; }
.cx__dot.is-active::before { background: var(--accent, #2ee6a6); transform: scale(1.15); }
.preview__cta { text-align: center; margin-top: 28px; }
@media (max-width: 640px) { .cx__nav { display: none; } .cx__slide figcaption { font-size: .96rem; } }
@media (prefers-reduced-motion: reduce) { .cx__track { transition: none; } }

.preview__note { text-align: center; margin: 18px auto 0; max-width: 60ch; color: var(--muted, #9aa6c4); font-size: .95rem; }
