/* Page « Créez le vôtre » : complète style.css du site (mêmes couleurs, mêmes composants) */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête de page ---------- */
.create-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.howto li { display: flex; gap: 16px; padding: 24px 24px 0 0; }
.howto li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.howto__n {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--amber); font-weight: 700; font-size: 15px;
}
.howto strong { display: block; font-weight: 650; font-variation-settings: "wdth" 110; margin-bottom: 4px; }
.howto p { color: var(--mute); font-size: 15px; line-height: 1.5; }

.resume {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 32px; padding: 16px 20px; border-radius: 14px;
  background: rgba(47, 92, 255, .12); border: 1px solid rgba(74, 115, 255, .4);
}
.resume[hidden] { display: none; }
.resume strong { display: block; font-weight: 650; }
.resume span { color: var(--sky); font-size: 14.5px; }

/* ---------- Barre de recherche et filtres ---------- */
.gallery { padding-bottom: clamp(80px, 10vw, 140px); }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.gallery__count { color: var(--mute); font-weight: 500; font-size: 15px; margin-left: 6px; }
.search {
  position: relative; display: flex; align-items: center; width: min(340px, 100%);
}
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 11px;
  background: rgba(10, 18, 54, .6); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: #5D6690; }
.search input:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(47, 92, 255, .22); }
.gallery .filters { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Cartes de modèles ---------- */
.tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(18px, 2vw, 28px); }
.tpls__state { grid-column: 1 / -1; color: var(--mute); padding: 40px 0; }
.tpls__state.is-error { color: #FF9A9A; }
.tpl { display: flex; flex-direction: column; min-width: 0; }
.tpl__shot {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  background: var(--night); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease), border-color .3s;
}
.tpl__shot img, .tpl__ph { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.tpl__ph { display: grid; place-items: center; font-size: 1.6rem; font-weight: 750; background: linear-gradient(135deg, var(--night-2), color-mix(in oklab, var(--brand) 45%, var(--night))); }
.tpl__shot .chrome { height: 28px; }
.tpl__shot .chrome i { width: 8px; height: 8px; }
.tpl__shot .chrome em { font-size: 11px; }
@media (hover: hover) {
  .tpl__shot:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--brand) 60%, transparent); }
  .tpl__shot:hover img { transform: scale(1.025); }
}
.tpl__body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.tpl__body .case__kind { margin-bottom: 8px; font-size: 13.5px; }
.tpl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tpl__name { font-size: 1.45rem; font-weight: 750; font-variation-settings: "wdth" 118; letter-spacing: -.02em; line-height: 1.1; }
.tpl__sw { display: flex; flex: none; }
.tpl__sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); }
.tpl__sw i + i { margin-left: -6px; }
.tpl__desc { color: #C3CAE3; font-size: 15.5px; line-height: 1.55; margin-bottom: 14px; }
.tpl .case__list { margin-bottom: 20px; gap: 6px; }
.tpl .case__list li { font-size: 12.5px; padding: 4px 10px; }
.tpl__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl__actions .btn { width: 100%; min-width: 0; padding: 0 10px; white-space: normal; text-align: center; line-height: 1.15; min-height: 44px; height: auto; font-size: 14px; }
.tpl__actions .link { font-size: 15px; }

/* ---------- Partir de zéro ---------- */
.zero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 96px); padding: clamp(24px, 3vw, 36px); border-radius: 18px;
  background: radial-gradient(600px 300px at 0% 100%, rgba(47, 92, 255, .22), transparent 70%), rgba(10, 18, 54, .55);
  border: 1px solid var(--line-2);
}
.zero .h3 { font-size: 1.35rem; margin-bottom: 6px; }
.zero p { color: var(--mute); max-width: 40em; }
.works-empty .link { background: none; border: 0; border-bottom: 1px solid var(--amber); cursor: pointer; }

@media (max-width: 1080px) {
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .howto { grid-template-columns: 1fr; }
  .howto li, .howto li + li { padding: 18px 0; border-left: 0; }
  .howto li + li { border-top: 1px solid var(--line); }
  .search { width: 100%; }
}
@media (max-width: 620px) {
  .tpls { grid-template-columns: 1fr; }

}
