/* Page d'accueil */
.md-main, .md-container { background: var(--mc-paper); }
.md-header, .md-footer { display: none; }
.md-main__inner.md-grid { max-width: none; margin: 0; }

.mc {
  --pad: clamp(20px, 5vw, 72px);
  color: var(--mc-ink);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
.mc a { color: inherit; }
.mc h1, .mc h2, .mc h3 { font-family: var(--mc-display); font-weight: 800; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.mc p { margin: 0; text-wrap: pretty; }
.mc :focus-visible { outline: 3px solid var(--mc-brick); outline-offset: 3px; border-radius: 6px; }

/* --- barre --- */
.mc-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
  background: var(--mc-yellow); color: #1e2329;
}
.mc-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mc-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.02em; }
.mc-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 0.95rem; font-weight: 500; }
.mc-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.mc-nav a:hover { border-bottom-color: #1e2329; }
.mc-nav__gh { display: inline-flex; align-items: center; gap: 7px; }
.mc-nav__gh svg { width: 18px; height: 18px; fill: currentColor; }
.mc-brand { white-space: nowrap; }
@media (max-width: 760px) { .mc-nav a:not(.mc-nav__gh):not([href*="installation"]) { display: none; } }
@media (max-width: 460px) { .mc-nav a:not(.mc-nav__gh) { display: none; } }

/* --- ouverture : le champ jaune du couvercle --- */
.mc-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 64px) var(--pad) 170px;
  background: var(--mc-yellow); color: #1e2329;
}
.mc-hero__text, .mc-stage { position: relative; z-index: 2; }
.mc-hero h1 { font-size: clamp(2.3rem, 7.4vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; }
.mc-lid { display: inline-block; background: #1e2329; color: var(--mc-yellow); padding: 0.02em 0.18em 0.08em; border-radius: 0.14em 0.14em 0.05em 0.05em; rotate: -2deg; margin: 0.06em 0 0 -0.06em; }
.mc-hero__lede { margin-top: 46px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34em; color: #2b3138; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mc-btn {
  display: inline-flex; text-align: center; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; text-decoration: none; border: 2px solid #1e2329; color: #1e2329;
  transition: translate 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.mc-btn:hover { translate: 0 -2px; box-shadow: 0 10px 22px -10px rgba(30, 35, 41, 0.55); }
.mc-btn--ink { background: #1e2329; color: #fffdf8 !important; }
.mc-hero__note { margin-top: 18px; font-size: 0.92rem; color: #4a4633; }

.mc-stage { justify-self: center; width: min(100%, 440px); }
.mc-stage__card { rotate: 1.2deg; }
.mc-stage__card > * { box-shadow: 0 2px 4px rgba(30, 35, 41, 0.12), 0 34px 60px -24px rgba(30, 35, 41, 0.6); }
.mc-moments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 0.88rem; color: #3a3a2a; }
.mc-moments button {
  font: inherit; font-weight: 500; cursor: pointer; color: #1e2329;
  padding: 7px 13px; border-radius: 99px; border: 1.5px solid rgba(30, 35, 41, 0.45); background: transparent;
  transition: background 0.2s, color 0.2s;
}
.mc-moments button:hover { border-color: #1e2329; }
.mc-moments button[aria-pressed="true"] { background: #1e2329; border-color: #1e2329; color: var(--mc-yellow); }

.mc-skyline { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 120px; fill: var(--mc-yellow-deep); z-index: 1; }
.mc-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 1;
  background:
    repeating-linear-gradient(90deg, var(--mc-yellow) 0 34px, transparent 34px 64px) 0 15px / 100% 3px no-repeat,
    #1e2329;
}
@media (max-width: 900px) {
  .mc-hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 150px; }
  .mc-stage { justify-self: start; }
  .mc-stage__card { rotate: 0deg; }
}

/* --- sections --- */
.mc-section { padding: clamp(56px, 9vw, 120px) var(--pad) 0; max-width: 1280px; margin: 0 auto; }
.mc-intro { max-width: 44em; }
.mc-intro h2, .mc-auto h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; }
.mc-intro p { margin-top: 18px; font-size: 1.1rem; color: var(--mc-soft); }

.mc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 6vw, 96px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.mc-row--flip .mc-row__text { order: 2; }
.mc-row h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; }
.mc-row h3::before { content: ""; display: block; width: 64px; height: 16px; margin-bottom: 20px; border-radius: 8px 8px 3px 3px; background: var(--lid); }
.mc-row p { margin-top: 14px; color: var(--mc-soft); max-width: 34em; }
.mc pre { margin: 22px 0 0; padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--mc-ink) 7%, var(--mc-paper)); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.86rem; overflow-x: auto; width: fit-content; max-width: 100%; }
.mc pre code { background: none; padding: 0; font: inherit; color: var(--mc-ink); }
@media (max-width: 820px) {
  .mc-row { grid-template-columns: minmax(0, 1fr); }
  .mc-row--flip .mc-row__text { order: 0; }
}

/* --- vidéo --- */
.mc-video__frame { margin-top: 36px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1e2329; box-shadow: 0 30px 70px -30px rgba(30, 35, 41, 0.6); }
.mc-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mc-video__alt { margin-top: 14px; font-size: 0.92rem; color: var(--mc-soft); }

/* --- installation --- */
.mc-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 3px solid var(--mc-ink); }
.mc-steps li { counter-increment: step; padding: 26px 28px 8px 0; }
.mc-steps li + li { padding-left: 28px; border-left: 1px solid var(--mc-line); }
.mc-steps li::before { content: counter(step); display: block; font-family: var(--mc-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--mc-brick); margin-bottom: 14px; }
.mc-steps h3 { font-size: 1.3rem; }
.mc-steps p { margin-top: 10px; color: var(--mc-soft); }
.mc-link { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--mc-yellow-deep); }
.mc-link:hover { text-decoration-color: currentColor; }
@media (max-width: 820px) {
  .mc-steps { grid-template-columns: minmax(0, 1fr); }
  .mc-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--mc-line); }
}

/* --- automatisations --- */
.mc-auto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.mc-auto p { margin-top: 16px; color: var(--mc-soft); max-width: 34em; }
.mc pre.mc-code { width: auto; margin: 0; padding: 26px 28px; border-radius: 16px; background: #1e2329; color: #e9e4d6; font-size: 0.8rem; line-height: 1.7; overflow-x: auto; }
.mc pre.mc-code code { color: inherit; }
.mc-code .k { color: var(--mc-yellow); }
@media (max-width: 820px) { .mc-auto { grid-template-columns: minmax(0, 1fr); } }

/* --- pied --- */
.mc-foot { margin-top: clamp(72px, 10vw, 140px); padding: 40px var(--pad) 48px; background: #1e2329; color: #cfd3d8; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; font-size: 0.95rem; }
.mc-foot strong { color: var(--mc-yellow); }
.mc-foot nav { display: grid; gap: 8px; justify-items: start; }
.mc-foot a { color: #fffdf8; text-underline-offset: 3px; }
@media (max-width: 700px) { .mc-foot { grid-template-columns: minmax(0, 1fr); } }

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