/* ==========================================================
   Réalisations : galerie des démonstrations et études de cas
   (entreprises fictives). Toutes les classes sont préfixées .rz-
   Les couleurs des mini-sites reprennent les variables des
   variantes .mini--menuisier / --restaurant / --cabinet / --coach
   définies dans style.css (--m-bg, --m-ink, --m-accent, --m-soft, --m-font).
   ========================================================== */

/* ---------- Mention « entreprise fictive » ---------- */
.rz-notice {
  display: flex; gap: 14px; align-items: flex-start; max-width: 640px; margin-top: 34px; padding: 16px 20px;
  border: 1px solid rgba(198, 164, 103, .35); background: rgba(198, 164, 103, .06); font-size: 14px; color: var(--muted);
}
.rz-notice::before { content: "✦"; color: var(--gold); font-size: 12px; padding-top: 2px; }
.rz-notice b { color: var(--ink); font-weight: 500; }

/* Pastille de couleur d'un projet */
.rz-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--m-accent, var(--gold)); border: 2px solid var(--m-soft, transparent);
}

/* Raccourcis vers les projets */
.rz-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.rz-jump a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: border-color .3s, color .3s;
}
.rz-jump a:hover { border-color: var(--gold); color: var(--ink); }

/* ==========================================================
   Mini-site détaillé (.rz-site) — s'adapte à la largeur de son cadre
   ========================================================== */
.rz-screen, .rz-phone__screen { container-type: inline-size; }

/* Visuels « photo » dessinés en CSS, un par métier */
.rz-site.mini--menuisier {
  --rz-art:
    linear-gradient(160deg, rgba(255, 255, 255, .2), transparent 45%),
    linear-gradient(180deg, transparent 60%, #5e3b1a 60% 64%, transparent 64%),
    repeating-linear-gradient(90deg, #8a5a2b 0 14px, #9b6a38 14px 22px, #7d5025 22px 34px),
    #8a5a2b;
}
.rz-site.mini--restaurant {
  --rz-art:
    radial-gradient(circle at 34% 56%, #fbf8ef 0 19%, #e3dcc6 19.5% 23%, transparent 23.5%),
    radial-gradient(circle at 74% 34%, #fbf8ef 0 12%, #e3dcc6 12.5% 15%, transparent 15.5%),
    radial-gradient(circle at 30% 52%, #3f4a1c 0 2.4%, transparent 2.8%),
    radial-gradient(circle at 39% 60%, #3f4a1c 0 2%, transparent 2.4%),
    radial-gradient(circle at 76% 32%, #c0583c 0 2.4%, transparent 2.8%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px),
    linear-gradient(150deg, #6f7c3a, #4c5824);
}
.rz-site.mini--cabinet {
  --rz-art:
    repeating-linear-gradient(180deg, #fff 0 11px, #c9d4e4 11px 12px) 16% 50% / 32% 62% no-repeat,
    linear-gradient(#dfe6f0, #dfe6f0) 64% 78% / 8% 28% no-repeat,
    linear-gradient(#dfe6f0, #dfe6f0) 75% 78% / 8% 44% no-repeat,
    linear-gradient(#ffffff, #ffffff) 86% 78% / 8% 60% no-repeat,
    linear-gradient(140deg, #2a5fa3, #14213d);
}
.rz-site.mini--coach {
  --rz-art:
    radial-gradient(circle at 68% 58%, #f1ddd3 0 9%, transparent 9.5%),
    repeating-radial-gradient(circle at 68% 58%, rgba(255, 255, 255, .2) 0 2px, transparent 2px 20px),
    linear-gradient(150deg, #c0583c, #8f3b26);
}

.rz-site {
  background: var(--m-bg, #f4efe6); color: var(--m-ink, #2b2118);
  font-family: var(--sans); font-weight: 400; font-size: clamp(11px, 1.6cqi, 14px); line-height: 1.55;
  padding: 0 clamp(16px, 4.5cqi, 48px);
}
.rz-site__nav {
  display: flex; align-items: center; gap: clamp(10px, 2.4cqi, 26px);
  padding: clamp(14px, 2.6cqi, 24px) 0; border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.rz-site__nav b { font-family: var(--m-font, Georgia, serif); font-size: clamp(14px, 2.2cqi, 20px); font-weight: 600; margin-right: auto; white-space: nowrap; }
.rz-site__nav span { opacity: .7; white-space: nowrap; }
.rz-site__nav em { font-style: normal; background: var(--m-accent); color: #fff; padding: .6em 1.1em; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.rz-site__burger { display: none; width: 20px; height: 13px; border-top: 2px solid; border-bottom: 2px solid; position: relative; flex-shrink: 0; }
.rz-site__burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3.5px; border-top: 2px solid; }

.rz-site__hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(18px, 4cqi, 48px); align-items: center;
  padding: clamp(26px, 6cqi, 70px) 0 clamp(24px, 5cqi, 56px);
}
.rz-site__hero > * { min-width: 0; }
.rz-site__kicker { color: var(--m-accent); font-size: .78em; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1em; }
.rz-site__title { font-family: var(--m-font, Georgia, serif); font-size: clamp(24px, 5cqi, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }
.rz-site__text { margin-top: 1em; opacity: .78; max-width: 34em; }
.rz-site__btn { display: inline-block; margin-top: 1.5em; background: var(--m-ink); color: var(--m-bg); padding: .8em 1.4em; border-radius: 4px; font-weight: 500; }
.rz-site__img { display: block; background: var(--rz-art); border-radius: 6px; }
.rz-site__img--hero { aspect-ratio: 4 / 3.4; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .45); }

.rz-site__info { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.rz-site__info > div { padding: 1.2em 1.2em 1.2em 0; min-width: 0; }
.rz-site__info > div + div { padding-left: 1.4em; border-left: 1px solid rgba(0, 0, 0, .1); }
.rz-site__info dt { font-size: .74em; letter-spacing: .16em; text-transform: uppercase; color: var(--m-accent); font-weight: 600; }
.rz-site__info dd { font-weight: 500; margin-top: .2em; }

.rz-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2cqi, 20px); padding: clamp(24px, 5cqi, 56px) 0; }
.rz-site__card { background: var(--m-soft); border-radius: 6px; overflow: hidden; min-width: 0; }
.rz-site__card .rz-site__img { aspect-ratio: 16 / 10; border-radius: 0; }
.rz-site__card:nth-child(2) .rz-site__img { filter: brightness(.88) saturate(1.1); }
.rz-site__card:nth-child(3) .rz-site__img { filter: brightness(1.08) saturate(.8); }
.rz-site__card b { display: block; font-family: var(--m-font, Georgia, serif); font-size: 1.3em; font-weight: 600; line-height: 1.2; padding: .9em 1rem .3em; }
.rz-site__card p { padding: 0 1rem 1.2em; opacity: .75; font-size: .92em; }

.rz-site__cta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1em;
  background: var(--m-ink); color: var(--m-bg); border-radius: 8px; padding: clamp(18px, 4cqi, 36px) clamp(18px, 4cqi, 40px);
}
.rz-site__cta p { font-family: var(--m-font, Georgia, serif); font-size: clamp(18px, 3.2cqi, 30px); font-weight: 600; line-height: 1.15; }
.rz-site__cta .rz-site__btn { margin-top: 0; background: var(--m-accent); color: #fff; }
.rz-site__foot { display: flex; justify-content: space-between; gap: 1em; padding: 1.6em 0; font-size: .85em; opacity: .6; }

@container (max-width: 760px) {
  .rz-site__nav span { display: none; }
}
@container (max-width: 520px) {
  .rz-site { font-size: 12px; padding: 0 16px; }
  .rz-site__nav em { display: none; }
  .rz-site__burger { display: block; }
  .rz-site__hero { grid-template-columns: 1fr; padding: 24px 0; }
  .rz-site__img--hero { aspect-ratio: 16 / 10; }
  .rz-site__title { font-size: 26px; }
  .rz-site__info { grid-template-columns: 1fr; }
  .rz-site__info > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: .8em 0; }
  .rz-site__info > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(0, 0, 0, .1); }
  .rz-site__info dd { text-align: right; }
  .rz-site__cards { grid-template-columns: 1fr; padding: 24px 0; }
  .rz-site__cta { flex-direction: column; align-items: flex-start; }
  .rz-site__foot { flex-direction: column; gap: .3em; }
}

/* ---------- Téléphone ---------- */
.rz-phone {
  width: 270px; padding: 10px; border-radius: 40px;
  background: linear-gradient(145deg, #2a2c33, #0a0b0d); border: 1px solid #383a42;
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.rz-phone__screen { position: relative; height: 540px; border-radius: 31px; overflow: hidden; background: var(--m-bg, #fff); }
.rz-phone__screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 80px; height: 22px; margin-left: -40px;
  border-radius: 12px; background: #0a0b0d; z-index: 3;
}
.rz-phone .rz-site { padding-top: 28px; padding-bottom: 84px; animation: rz-scroll 18s ease-in-out 1s infinite alternate; }
.rz-phone:hover .rz-site { animation-play-state: paused; }
@keyframes rz-scroll {
  0%, 12% { transform: none; }
  88%, 100% { transform: translateY(calc(-100% + 540px)); }
}
.rz-phone__sticky { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.rz-phone__sticky span {
  flex: 1; text-align: center; padding: 11px 6px; border-radius: 8px; background: var(--m-accent); color: #fff;
  font-size: 12px; font-weight: 600; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .45);
}
.rz-phone__sticky span + span { background: var(--m-ink); color: var(--m-bg); }

/* ==========================================================
   Page Réalisations : galerie des projets
   ========================================================== */
.rz-gallery { display: grid; gap: 140px; }
.rz-project { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.rz-project > * { min-width: 0; }
.rz-project:nth-child(even) .rz-project__visual { order: 2; }
.rz-project__visual { --rz-h: 420px; position: relative; display: block; padding-bottom: 46px; }
.rz-project__visual .browser { transition: transform .6s cubic-bezier(.2, .8, .2, 1), border-color .4s; }
.rz-project__visual .rz-screen { height: var(--rz-h); overflow: hidden; }
.rz-project__visual .rz-screen .rz-site { transition: transform 7s ease-in-out; }
.rz-project:hover .rz-project__visual .browser, .rz-project:focus-within .rz-project__visual .browser { transform: translateY(-6px); border-color: rgba(198, 164, 103, .5); }
.rz-project:hover .rz-screen .rz-site, .rz-project:focus-within .rz-screen .rz-site { transform: translateY(calc(-100% + var(--rz-h))); }
.rz-project__phone { position: absolute; right: -24px; bottom: 0; transform: scale(.5); transform-origin: bottom right; }
.rz-project__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; }
.rz-project__kicker { margin-top: 18px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.rz-project h2 { margin: 14px 0 26px; }
.rz-project__label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 22px; border-top: 1px solid var(--line); max-width: 440px; }
.rz-project__goal { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.3; margin-top: 10px; max-width: 440px; }
.rz-project__more { margin-top: 36px; }
.rz-gallery-end { margin-top: 120px; }

/* ==========================================================
   Études de cas
   ========================================================== */
.rz-stage { position: relative; overflow: hidden; }
.rz-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 40% 45%, rgba(198, 164, 103, .09), transparent 70%);
}
.rz-showcase { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 60px; align-items: start; }
.rz-showcase > * { min-width: 0; }
.rz-showcase__phone { position: sticky; top: 120px; }
.rz-showcase__label { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.rz-showcase__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rz-showcase__caption { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--muted); }

/* Fiche projet : objectif, pages, recherches */
.rz-brief { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border: 1px solid var(--line); }
.rz-brief > div { padding: 46px 38px; min-width: 0; }
.rz-brief > div + div { border-left: 1px solid var(--line); }
.rz-brief h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 26px; }
.rz-brief__goal { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; color: var(--gold-soft); }
.rz-pages { list-style: none; counter-reset: rzp; }
.rz-pages li { counter-increment: rzp; display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); color: #bdb7ad; font-size: 15px; }
.rz-pages li:first-child { border-top: 1px solid var(--line); }
.rz-pages li::before { content: counter(rzp, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 17px; line-height: 1.5; }
.rz-searches { list-style: none; display: grid; gap: 12px; }
.rz-searches li {
  position: relative; padding: 12px 18px 12px 46px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 14px; overflow-wrap: anywhere;
}
.rz-searches li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: 1.5px solid var(--gold); border-radius: 50%; }
.rz-searches li::after { content: ""; position: absolute; left: 28px; top: 50%; width: 6px; height: 1.5px; margin-top: 4px; background: var(--gold); transform: rotate(45deg); }

/* Appel à l'action et navigation entre démonstrations */
.rz-next .cta-inline { margin-top: 0; padding-top: 0; border-top: 0; }
.rz-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rz-pager > a { min-width: 0; }
.rz-pager__prev, .rz-pager__next { display: flex; flex-direction: column; gap: 8px; padding: 30px 0; }
.rz-pager__next { align-items: flex-end; text-align: right; }
.rz-pager small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.rz-pager strong { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; transition: color .3s; }
.rz-pager__prev:hover strong, .rz-pager__next:hover strong { color: var(--gold-soft); }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1020px) {
  .rz-project { grid-template-columns: 1fr; gap: 40px; }
  .rz-project:nth-child(even) .rz-project__visual { order: 0; }
  .rz-gallery { gap: 110px; }
  .rz-project__phone { right: 0; }
  .rz-showcase { grid-template-columns: 1fr; gap: 50px; }
  .rz-showcase__phone { position: static; justify-self: center; }
  .rz-brief { grid-template-columns: 1fr; }
  .rz-brief > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  .rz-project__visual { --rz-h: 340px; padding-bottom: 0; }
  .rz-project__phone { display: none; }
  .rz-gallery-end { margin-top: 90px; }
  .rz-showcase__phone { display: none; }
  .rz-brief > div { padding: 34px 22px; }
  .rz-pager { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .rz-pager__all { grid-column: 1 / -1; order: 3; justify-self: center; margin-bottom: 26px; }
  .rz-pager strong { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .rz-phone .rz-site { animation: none; }
  .rz-phone__screen { overflow-y: auto; }
  .rz-project .rz-screen .rz-site { transform: none !important; }
  .rz-project .rz-project__visual .browser { transform: none !important; }
}

/* ==========================================================
   Vraies réalisations clients (bloc commun : partials/clients.html)
   ========================================================== */
.cl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 36px; }
.cl-grid > * { min-width: 0; }
.cl-card { display: flex; flex-direction: column; }
.cl-card__visual { position: relative; display: block; padding-right: 34px; padding-bottom: 30px; }
.cl-card__visual .browser { transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s; }
.cl-card__visual .browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cl-phone {
  position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 390 / 760; overflow: hidden;
  border: 3px solid #23252b; border-radius: 16px; background: #000;
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .9); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.cl-phone img { width: 100%; height: auto; }
.cl-card:hover .browser { transform: translateY(-6px); border-color: rgba(198, 164, 103, .5); }
.cl-card:hover .cl-phone { transform: translateY(-12px); }
.cl-card__kicker { margin-top: 26px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.cl-card h3 { margin: 10px 0 8px; }
.cl-card__text { color: var(--muted); font-size: 15px; }
.cl-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.cl-tags li { font-size: 12px; color: var(--ink); opacity: .8; border: 1px solid var(--line); padding: 3px 10px; }
.cl-card .link-arrow { margin-top: auto; }
@media (max-width: 1100px) { .cl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cl-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cl-card:hover .browser, .cl-card:hover .cl-phone { transform: none; } }
