/* Template "createur" — accueil. La planche du hero : trois fenetres 4/5 bord a
   bord separees d'un filet, et le panneau d'encre a cheval sur deux d'entre
   elles. Sur mobile la planche se replie en une fenetre et le panneau glisse
   dessous, pleine largeur. */

/* ---- Hero : banniere plein cadre, voile, panneau translucide ---- */
.cr-hero { position: relative; min-height: min(52vh, 480px); display: flex; align-items: flex-end; overflow: hidden; background: var(--cr-ink); color: var(--cr-paper); isolation: isolate; }
.cr-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
/* Sans image : encre teintee par l'accent de la boutique, deux halos. */
.cr-hero:not(.has-image) { background:
  radial-gradient(ellipse 60% 70% at 85% 20%, color-mix(in srgb, var(--cr-accent) 55%, transparent), transparent 70%),
  radial-gradient(ellipse 50% 60% at 15% 90%, color-mix(in srgb, var(--cr-accent) 30%, transparent), transparent 70%),
  var(--cr-ink); }
.cr-hero-veil { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(23, 25, 26, 0.62) 0%, rgba(23, 25, 26, 0.28) 55%, rgba(23, 25, 26, 0.05) 100%),
  linear-gradient(180deg, rgba(23, 25, 26, 0) 40%, rgba(23, 25, 26, 0.55) 100%); }
.cr-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 40px; }
.cr-hero-panel {
  max-width: 560px; padding: 28px 32px; border-radius: 16px;
  background: rgba(23, 25, 26, 0.55); border: 1px solid rgba(245, 244, 240, 0.16);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  display: flex; flex-direction: column; gap: 12px;
}
.cr-hero-panel h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 0.98; font-weight: 800; font-stretch: 112%; letter-spacing: -0.032em; max-width: 16ch; color: var(--cr-paper); }
.cr-hero-panel p { margin: 0; max-width: 48ch; font-size: 15.5px; line-height: 1.55; color: rgba(245, 244, 240, 0.86); }
.cr-hero-actions { display: flex; align-items: center; gap: 10px; padding-top: 4px; flex-wrap: wrap; }
.cr-hero-actions .cr-btn { border-radius: 10px; padding: 13px 22px; font-size: 15px; }
.cr-btn-glass { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; font-size: 15.5px; font-weight: 500; color: var(--cr-paper); border: 1px solid rgba(245, 244, 240, 0.35); background: rgba(245, 244, 240, 0.06); transition: background 120ms, border-color 120ms; }
.cr-btn-glass:hover { background: rgba(245, 244, 240, 0.14); border-color: rgba(245, 244, 240, 0.6); color: var(--cr-paper); }
@media (max-width: 900px) {
  .cr-hero { min-height: min(56vh, 460px); }
  .cr-hero-inner { padding-top: 28px; padding-bottom: 16px; }
  .cr-hero-panel { max-width: none; padding: 20px 18px; border-radius: 14px; gap: 10px; }
  .cr-hero-panel h1 { font-size: 30px; line-height: 1; font-stretch: 100%; letter-spacing: -0.028em; max-width: none; }
  .cr-hero-panel p { font-size: 15.5px; }
  .cr-hero-actions { flex-direction: column; align-items: stretch; }
}
@supports not (backdrop-filter: blur(1px)) { .cr-hero-panel { background: rgba(23, 25, 26, 0.82); } }

/* ---- Collections : cartes compactes, une rangee dense ---- */
.cr-collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cr-collection {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; overflow: hidden;
  transition: border-color 160ms, transform 160ms ease-out;
}
.cr-collection:hover { border-color: var(--cr-ink); transform: translateY(-2px); }
.cr-collection-img { display: block; aspect-ratio: 1 / 1; background: #fff; padding: 8%; overflow: hidden; }
.cr-collection-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 200ms ease-out; }
.cr-collection:hover .cr-collection-img img { transform: scale(1.05); }
.cr-collection-img.is-empty { background: repeating-linear-gradient(135deg, var(--cr-planche) 0 10px, var(--cr-planche-2) 10px 20px); }
.cr-collection-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; border-top: 1px solid var(--cr-line); background: var(--cr-paper); padding-right: 44px; }
.cr-collection-body .name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.cr-collection-body .count { font-size: 12.5px; color: var(--cr-mention); }
.cr-collection-arrow { position: absolute; right: 12px; bottom: 14px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--cr-line); display: grid; place-items: center; color: var(--cr-ink); background: var(--cr-paper); transition: background 160ms, color 160ms, border-color 160ms; }
.cr-collection-arrow svg { width: 14px; height: 14px; }
.cr-collection:hover .cr-collection-arrow { background: var(--cr-accent); color: var(--cr-on-accent); border-color: var(--cr-accent); }
@media (prefers-reduced-motion: reduce) {
  .cr-collection, .cr-collection-img img { transition: none; }
  .cr-collection:hover { transform: none; }
  .cr-collection:hover .cr-collection-img img { transform: none; }
}
@media (max-width: 720px) {
  .cr-collections { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; margin: 0 calc(-1 * var(--cr-gutter)); padding-left: var(--cr-gutter); padding-right: var(--cr-gutter); scrollbar-width: none; }
  .cr-collections::-webkit-scrollbar { display: none; }
  .cr-collection { flex: none; width: 160px; scroll-snap-align: start; }
  .cr-collection-body { padding: 10px 12px 12px; padding-right: 40px; }
  .cr-collection-body .name { font-size: 14px; }
  .cr-collection-arrow { right: 10px; bottom: 12px; width: 26px; height: 26px; }
}

/* ---- Banniere (image + lien) ---- */
.cr-banner { display: grid; grid-template-columns: 5fr 7fr; background: var(--cr-planche); border: 1px solid var(--cr-line); }
.cr-banner-text { padding: 48px 44px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.cr-banner-image { min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cr-banner-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .cr-banner { grid-template-columns: 1fr; }
  .cr-banner-text { padding: 20px; order: 2; }
  .cr-banner-image { min-height: 0; }
}

/* ---- Campagne de financement ---- */
.cr-campaign { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--cr-line); border: 1px solid var(--cr-line); }
.cr-campaign-text, .cr-campaign-progress { background: var(--cr-paper); padding: 36px 40px; display: flex; flex-direction: column; gap: 12px; }
.cr-campaign-progress { gap: 18px; justify-content: center; }
.cr-campaign-text h3 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.cr-campaign-text p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--cr-text-2); }
.cr-campaign-amounts { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cr-campaign-amounts .big { font-size: 24px; font-weight: 500; }
.cr-bar { height: 8px; background: var(--cr-planche); }
.cr-bar span { display: block; height: 8px; background: var(--cr-accent); max-width: 100%; }
.cr-campaign-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .cr-campaign { grid-template-columns: 1fr; }
  .cr-campaign-text, .cr-campaign-progress { padding: 22px 20px; }
  .cr-campaign-text h3 { font-size: 21px; }
}
