/* SH Tech Repair — feuille de style principale */

:root {
  --accent: #7c6fe0;
  --accent-dark: #6355d4;
  --accent-soft: #eeebfc;
  --ink: #16151f;
  --text: #4a4958;
  --muted: #7b7a8c;
  --line: #e6e5f0;
  --bg: #ffffff;
  --tint: #f7f7fb;
  --card: #ffffff;
  --green: #22a06b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 21, 31, .04), 0 8px 24px rgba(22, 21, 31, .06);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.4em; border-radius: 10px; font: 600 .95rem/1 var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(124, 111, 224, .3); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--sm { padding: .65em 1.1em; font-size: .88rem; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; background: #000; flex: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav__links a:hover { color: var(--accent-dark); }
.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lead { font-size: 1.08rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.stats { display: flex; gap: 40px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.hero__svg { width: 100%; height: auto; }
.v-soft { fill: #e9e8f3; }
.v-line { fill: #ecebf4; }
.v-card { fill: #f3f2fa; stroke: #e2e0ef; }
.v-dark { fill: #1d1c2b; }
.v-accent { fill: var(--accent); }
.v-accent-soft { fill: #d9d4fb; }
.v-muted { fill: #4a4866; }
.v-green { fill: #2f9e6a; }
.v-stand { fill: #d4d3e2; }
.v-stroke { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { font-size: .92rem; flex: 1; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg, .contact__list svg {
  width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.tag {
  align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.steps__n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.steps p { font-size: .92rem; margin: 0; }

/* Tarifs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tabs button {
  font: 600 .9rem var(--sans); padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line); transition: all .2s;
}
.tabs button:hover { border-color: var(--accent); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-panel {
  max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 28px; box-shadow: var(--shadow);
}
.price { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price:last-child { border-bottom: 0; }
.price strong { display: block; color: var(--ink); }
.price span { font-size: .85rem; color: var(--muted); }
.price b { font-size: 1.1rem; color: var(--accent-dark); white-space: nowrap; }
.note { text-align: center; font-size: .85rem; color: var(--muted); margin: 24px auto 0; max-width: 640px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.plan--featured { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(124, 111, 224, .18); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__tier { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-top: 6px; }
.plan__sub { color: var(--muted); font-size: .9rem; }
.plan__price { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); margin: 0; }
.plan__price small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.plan__hw { font-size: .82rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0; }
.plan li { position: relative; padding: 6px 0 6px 28px; font-size: .93rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c6fe0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.plan__opt { font-size: .85rem; background: var(--tint); border-radius: 10px; padding: 12px 14px; }

/* Works */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work__img {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(135deg, #efedfc, #f7f7fb 60%, #e9f6f0);
}
.work__img span { font-family: var(--serif); font-size: 1.4rem; color: var(--accent-dark); }
.work__img img { width: 100%; height: 100%; object-fit: cover; }
.work__img--photo { position: relative; display: block; overflow: hidden; }
.work__img--photo img { object-position: 50% 42%; transition: transform .5s ease; }
.work:hover .work__img--photo img { transform: scale(1.04); }
.work__tag {
  position: absolute; left: 12px; top: 12px; font-family: var(--sans) !important; font-size: .75rem !important;
  font-weight: 700; color: #fff !important; background: rgba(22, 21, 31, .65); padding: 4px 10px; border-radius: 999px;
}
.work__body { padding: 20px 22px 6px; }
.work__body p { font-size: .9rem; }

/* Reviews CTA */
.reviews-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px 48px; border-radius: 24px; background: var(--accent-soft);
}
.reviews-cta h2 { margin-bottom: .3em; }
.reviews-cta p { margin: 0; max-width: 40em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list svg { flex: none; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  font: 400 1rem var(--sans); color: var(--ink); background: var(--tint);
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.form .invalid { border-color: #d64545; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 14px 0 0; font-size: .92rem; min-height: 1.2em; }
.form__status.ok { color: var(--green); }
.form__status.err { color: #c53030; }
.form__legal { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent-dark); }

/* Legal pages */
.legal { max-width: 760px; padding: 64px 20px 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal .todo { background: #fff6dd; padding: 0 4px; border-radius: 4px; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: block; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 48px 0 56px; }
  .hero__grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 420px; }
  .section { padding: 64px 0; }
  .reviews-cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .cards, .steps, .works { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .stats dt { font-size: 1.5rem; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .price-panel { padding: 4px 18px; }
  .nav__cta { display: none; }
  .nav__burger { margin-left: auto; }
}

/* ===================== Pages services ===================== */

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }
.page-hero { padding: 56px 0 72px; }
.page-hero .hero__grid { grid-template-columns: 1fr 1.05fr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--text); }
.card__link { margin-top: 14px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* Animation hero */
.anim { background: var(--tint); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 14px; }
.anim svg { width: 100%; height: auto; }
.anim-caps { position: relative; height: 1.6em; margin-top: 6px; text-align: center; font-weight: 600; font-size: .95rem; color: var(--ink); }
.anim-caps span { position: absolute; inset: 0; opacity: 0; animation: cap-long 12s infinite backwards; animation-delay: var(--d); }
.anim-caps--short span { animation-name: cap-short; }
@keyframes cap-long { 0% { opacity: 0 } 2% { opacity: 1 } 15% { opacity: 1 } 17%, 100% { opacity: 0 } }
@keyframes cap-short { 0% { opacity: 0 } 1% { opacity: 1 } 6% { opacity: 1 } 7%, 100% { opacity: 0 } }

/* Pannes */
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.issue { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.issue__emoji { font-size: 1.6rem; line-height: 1; margin-bottom: 12px; }
.issue p { font-size: .92rem; }
.badge { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e3f5ec; color: #17794d; }
.badge--warn { background: #fff1db; color: #a35f00; }

/* Explication + comparatif */
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.compare__col--good { border: 2px solid var(--accent); }
.compare__col h3 { font-size: 1rem; }
.compare__col ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.compare__col li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.compare__col li:last-child { border-bottom: 0; }

/* Budgets PC */
.budgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.budget { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.budget--featured { border: 2px solid var(--accent); }
.budget .budget__price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin: 6px 0 4px; }
.budget p { font-size: .9rem; }
.budget .plan__badge { top: -12px; }

/* Liste « inclus » */
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.included div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.included strong { display: block; color: var(--ink); margin-bottom: 4px; }
.included span { font-size: .9rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; font-size: .95rem; }

/* Formulaire : options en cartes + curseur */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.form .choice { position: relative; margin: 0; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); cursor: pointer; transition: all .2s; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.fieldset legend { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.range-out { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.range-out output { font-family: var(--serif); font-size: 1.6rem; color: var(--accent-dark); text-transform: none; letter-spacing: 0; }
.range-out small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .85rem; }
.form input[type="range"] { padding: 0; background: none; border: 0; accent-color: var(--accent); box-shadow: none; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.perks li { padding-left: 30px; position: relative; }
.perks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.perks strong { display: block; color: var(--ink); }

@media (max-width: 1000px) {
  .issues, .included { grid-template-columns: repeat(2, 1fr); }
  .budgets { grid-template-columns: repeat(2, 1fr); }
  .explain { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .page-hero .hero__grid { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 56px; }
}
@media (max-width: 560px) {
  .issues, .included, .budgets, .compare, .choices { grid-template-columns: 1fr; }
  .anim-caps { font-size: .85rem; }
}

/* ===================== Animation : manette ===================== */
.pad .ly { animation: pad-explode 12s ease-in-out infinite; }
.pad .ly-top { --dy: -150px; }
.pad .ly-sticks { --dy: -80px; }
.pad .ly-board { --dy: -5px; }
.pad .ly-bat { --dy: 55px; }
.pad .ly-bottom { --dy: 105px; }
@keyframes pad-explode {
  0%, 10% { transform: translateY(0); }
  24%, 72% { transform: translateY(var(--dy)); }
  86%, 100% { transform: translateY(0); }
}
.pad .lbl { opacity: 0; animation: pad-lbl 12s ease-in-out infinite; }
@keyframes pad-lbl { 0%, 22% { opacity: 0 } 28%, 68% { opacity: 1 } 73%, 100% { opacity: 0 } }
.pad .lbl-old { animation-name: pad-lbl-old; }
.pad .lbl-new { animation-name: pad-lbl-new; }
@keyframes pad-lbl-old { 0%, 22% { opacity: 0 } 28%, 42% { opacity: 1 } 45%, 100% { opacity: 0 } }
@keyframes pad-lbl-new { 0%, 50% { opacity: 0 } 54%, 68% { opacity: 1 } 73%, 100% { opacity: 0 } }
.pad .stick-old { animation: pad-out 12s ease-in-out infinite; }
.pad .stick-new { opacity: 0; animation: pad-in 12s ease-in-out infinite; }
@keyframes pad-out {
  0%, 36% { transform: translateX(0); opacity: 1; }
  44%, 99% { transform: translateX(-120px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes pad-in {
  0%, 45% { transform: translateX(-120px); opacity: 0; }
  54%, 99% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}
.pad .ring { opacity: 0; animation: pad-ring 12s ease-in-out infinite; }
@keyframes pad-ring { 0%, 26% { opacity: 0 } 29% { opacity: 1 } 31% { opacity: .3 } 33% { opacity: 1 } 36%, 100% { opacity: 0 } }
.pad .done { opacity: 0; animation: pad-done 12s ease-in-out infinite; }
@keyframes pad-done { 0%, 86% { opacity: 0 } 89%, 98% { opacity: 1 } 100% { opacity: 0 } }

/* ===================== Animation : montage PC ===================== */
.pc .p { opacity: 0; animation-duration: 12s; animation-timing-function: ease-out; animation-iteration-count: infinite; }
.pc .p-mb    { animation-name: pc-mb; }
.pc .p-cpu   { animation-name: pc-cpu; }
.pc .p-cool  { animation-name: pc-cool; }
.pc .p-ram   { animation-name: pc-ram; }
.pc .p-gpu   { animation-name: pc-gpu; }
.pc .p-psu   { animation-name: pc-psu; }
.pc .p-cable { animation-name: pc-cable; stroke-dasharray: 260; }
.pc .p-power { animation-name: pc-power; }
@keyframes pc-mb    { 0%, 4%  { opacity: 0; transform: translateX(-220px) } 11%, 91% { opacity: 1; transform: none } 96%, 100% { opacity: 0; transform: none } }
@keyframes pc-cpu   { 0%, 12% { opacity: 0; transform: translateY(-140px) } 18%, 91% { opacity: 1; transform: none } 96%, 100% { opacity: 0; transform: none } }
@keyframes pc-cool  { 0%, 19% { opacity: 0; transform: translateY(-160px) } 25%, 91% { opacity: 1; transform: none } 96%, 100% { opacity: 0; transform: none } }
@keyframes pc-ram   { 0%, 26% { opacity: 0; transform: translateY(-140px) } 32%, 91% { opacity: 1; transform: none } 96%, 100% { opacity: 0; transform: none } }
@keyframes pc-gpu   { 0%, 33% { opacity: 0; transform: translateX(260px) } 41%, 91% { opacity: 1; transform: none } 96%, 100% { opacity: 0; transform: none } }
@keyframes pc-psu   { 0%, 42% { opacity: 0; transform: translateY(120px) } 49%, 91% { opacity: 1; transform: none } 96%, 100% { opacity: 0; transform: none } }
@keyframes pc-cable { 0%, 50% { opacity: 0; stroke-dashoffset: 260 } 51% { opacity: 1; stroke-dashoffset: 260 } 57%, 91% { opacity: 1; stroke-dashoffset: 0 } 96%, 100% { opacity: 0; stroke-dashoffset: 0 } }
@keyframes pc-power { 0%, 60% { opacity: 0 } 64%, 91% { opacity: 1 } 96%, 100% { opacity: 0 } }
.pc .blades { transform-box: fill-box; transform-origin: center; animation: pc-spin 12s linear infinite; }
@keyframes pc-spin { 0%, 62% { transform: rotate(0) } 92%, 100% { transform: rotate(1800deg) } }

/* ===================== Animation : domotique ===================== */
.home .knob, .home .track { animation-duration: 12s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.home .k1 { animation-name: dm-knob1; } .home .t1 { animation-name: dm-track1; }
.home .k2 { animation-name: dm-knob2; } .home .t2 { animation-name: dm-track2; }
.home .k3 { animation-name: dm-knob3; } .home .t3 { animation-name: dm-track3; }
@keyframes dm-knob1 { 0%, 8% { transform: none } 12%, 93% { transform: translateX(12px) } 97%, 100% { transform: none } }
@keyframes dm-knob2 { 0%, 30% { transform: none } 34%, 93% { transform: translateX(12px) } 97%, 100% { transform: none } }
@keyframes dm-knob3 { 0%, 52% { transform: none } 56%, 93% { transform: translateX(12px) } 97%, 100% { transform: none } }
@keyframes dm-track1 { 0%, 8% { fill: #d6d4e6 } 12%, 93% { fill: #7c6fe0 } 97%, 100% { fill: #d6d4e6 } }
@keyframes dm-track2 { 0%, 30% { fill: #d6d4e6 } 34%, 93% { fill: #7c6fe0 } 97%, 100% { fill: #d6d4e6 } }
@keyframes dm-track3 { 0%, 52% { fill: #d6d4e6 } 56%, 93% { fill: #7c6fe0 } 97%, 100% { fill: #d6d4e6 } }
.home .on1, .home .on2, .home .on3, .home .notif { opacity: 0; animation-duration: 12s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.home .on1 { animation-name: dm-on1; }
.home .on2 { animation-name: dm-on2; }
.home .on3 { animation-name: dm-on3; }
.home .notif { animation-name: dm-notif; }
.home .off2 { animation: dm-off2 12s ease-in-out infinite; }
@keyframes dm-on1 { 0%, 11% { opacity: 0 } 14%, 93% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes dm-on2 { 0%, 33% { opacity: 0 } 37%, 93% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes dm-off2 { 0%, 33% { opacity: 1 } 37%, 93% { opacity: 0 } 97%, 100% { opacity: 1 } }
@keyframes dm-on3 { 0%, 55% { opacity: 0 } 58%, 93% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes dm-notif { 0%, 70% { opacity: 0; transform: translateY(16px) } 74%, 93% { opacity: 1; transform: none } 97%, 100% { opacity: 0; transform: none } }
.home .blink { animation: dm-blink 1.2s ease-in-out infinite alternate; }
@keyframes dm-blink { from { opacity: 1 } to { opacity: .15 } }

/* ===================== Animations pilotées par main.js (data-on="début-fin") ===================== */
.fx { transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1), fill .4s; transform-box: fill-box; transform-origin: center; }
.fx-in { opacity: 0; transform: var(--from, none); }
.fx-in.is-on { opacity: 1; transform: none; }
.fx-out.is-on { opacity: 0; transform: var(--to, none); }
.fx-move.is-on { transform: var(--to); }
.fx-grow { transform: scaleX(0); transform-origin: left center; transition: transform 2.4s linear; }
.fx-grow.is-on { transform: scaleX(1); }
.anim-caps--tl span { animation: none; transition: opacity .4s; }
.anim-caps--tl span.is-on { opacity: 1; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan { animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translate(0, 0); } to { transform: translate(70px, 130px); } }
.pulse { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .35; } }

/* Pied de page : liste des services */
.footer__services { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer__services strong { color: var(--ink); margin-right: 4px; }

/* Sans animation si l'utilisateur le demande : on montre l'état final */
@media (prefers-reduced-motion: reduce) {
  .anim *, .anim-caps span { animation: none !important; }
  .pad .ly { transform: translateY(var(--dy)); }
  .pad .lbl:not(.lbl-old) { opacity: 1; }
  .pad .stick-old { opacity: 0; }
  .pad .stick-new { opacity: 1; }
  .pc .p, .home .on1, .home .on2, .home .on3, .home .notif { opacity: 1; }
  .home .off2 { opacity: 0; }
  .home .knob { transform: translateX(12px); }
  .home .track { fill: #7c6fe0; }
  .anim-caps span:last-child { opacity: 1; }
}
