/* =========================================================
   ReallyEdit · Legal pages
   ========================================================= */
.re-legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--re-text);
}
.re-legal h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0 0 4px;
}
.re-legal__meta {
  color: var(--re-text-muted);
  font-size: 13px;
  margin: 0 0 32px;
  font-family: var(--re-font-mono);
}
.re-legal h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 8px;
}
.re-legal h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 4px;
}
.re-legal p { margin: 0 0 12px; color: #1f1f1f; }
.re-legal ul, .re-legal ol { padding-left: 22px; margin: 0 0 12px; }
.re-legal li { margin-bottom: 4px; }
.re-legal a { color: var(--re-accent); text-decoration: underline; text-underline-offset: 3px; }
.re-legal a:hover { color: var(--re-accent-hi); }
.re-legal__toc {
  background: var(--re-surface-2);
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-md);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13.5px;
}
.re-legal__toc h4 { margin: 0 0 8px; font-family: var(--re-font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--re-text-muted); }
.re-legal__toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }

/* =========================================================
   Library (transitions list)
   ========================================================= */
.re-lib {
  max-width: var(--re-content-w);
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.re-lib__head { margin-bottom: 32px; max-width: 760px; }
.re-lib__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 20px;
  font-family: var(--re-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--re-text-muted);
}
.re-lib__meta b { color: var(--re-text); font-weight: 700; }
.re-lib__toolbar {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--re-surface-2);
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-lg);
  margin-bottom: 24px;
}
.re-lib__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}
.re-lib__search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-pill);
  background: var(--re-surface-1);
  font-size: 13.5px;
  color: var(--re-text);
  transition: border-color 120ms var(--re-ease), box-shadow 120ms var(--re-ease);
}
.re-lib__search input:focus {
  outline: 0;
  border-color: var(--re-accent);
  box-shadow: 0 0 0 3px var(--re-accent-low);
}
.re-lib__search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--re-text-muted);
  pointer-events: none;
}
.re-lib__filters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.re-lib__filter {
  padding: 6px 12px;
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-pill);
  background: var(--re-surface-1);
  color: var(--re-text-muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: color 120ms var(--re-ease), border-color 120ms var(--re-ease), background 120ms var(--re-ease);
}
.re-lib__filter:hover { color: var(--re-text); border-color: var(--re-text); }
.re-lib__filter.is-active {
  background: var(--re-text);
  color: #ffffff;
  border-color: var(--re-text);
}
.re-lib__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.re-lib__card {
  background: var(--re-surface-1);
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 180ms var(--re-ease), transform 180ms var(--re-ease);
}
.re-lib__card:hover { border-color: var(--re-text); transform: translateY(-3px); }
.re-lib__card.is-hidden { display: none; }
.re-lib__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--re-text);
  overflow: hidden;
  border-bottom: 1px solid var(--re-border);
}
.re-lib__preview-a, .re-lib__preview-b {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--re-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.re-lib__preview-a { background: linear-gradient(135deg, var(--re-accent) 0%, var(--re-accent-hi) 100%); }
.re-lib__preview-b { background: var(--re-text); }
.re-lib__preview-b::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--re-r-sm);
}
.re-lib__preview-tape {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--re-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  z-index: 3;
}

/* Variantes d'animation par catégorie au hover */
.re-lib__card .re-lib__preview-b { transition: transform 420ms var(--re-ease), opacity 420ms var(--re-ease), clip-path 420ms var(--re-ease), filter 420ms var(--re-ease); }
.re-lib__card[data-cat="classique"]  .re-lib__preview-b { opacity: 1; }
.re-lib__card[data-cat="classique"]:hover  .re-lib__preview-b { opacity: 0; }
.re-lib__card[data-cat="dynamique"]  .re-lib__preview-b { transform: translateX(0); }
.re-lib__card[data-cat="dynamique"]:hover  .re-lib__preview-b { transform: translateX(102%); }
.re-lib__card[data-cat="narratif"]   .re-lib__preview-b { transform: scale(1); }
.re-lib__card[data-cat="narratif"]:hover   .re-lib__preview-b { transform: scale(1.18); opacity: 0; }
.re-lib__card[data-cat="esthetique"] .re-lib__preview-b { filter: none; }
.re-lib__card[data-cat="esthetique"]:hover .re-lib__preview-b { filter: blur(10px) hue-rotate(60deg); opacity: 0.4; }
.re-lib__card[data-cat="graphique"]  .re-lib__preview-b { clip-path: inset(0 0 0 0); }
.re-lib__card[data-cat="graphique"]:hover  .re-lib__preview-b { clip-path: inset(0 50% 0 0); }

.re-lib__card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.re-lib__card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.re-lib__card h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.re-lib__card p  { margin: 0; color: var(--re-text-muted); font-size: 13.5px; line-height: 1.5; }
.re-lib__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.re-lib__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--re-text-muted);
  border: 1px dashed var(--re-border-strong);
  border-radius: var(--re-r-lg);
  background: var(--re-surface-2);
}
.re-lib__reset {
  margin-top: 14px;
  background: var(--re-text);
  color: #ffffff;
  border: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--re-r-sm);
  cursor: pointer;
  transition: background-color 120ms var(--re-ease);
}
.re-lib__reset:hover { background: #1a1a1a; }
.re-lib__card.is-hidden { display: none; }
.re-lib__hint {
  margin-top: 48px;
  padding: 24px 28px;
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-lg);
  background: var(--re-surface-2);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.re-lib__hint p { margin: 0; color: var(--re-text-muted); font-size: 14px; }
.re-lib__hint b { color: var(--re-text); }

/* =========================================================
   Pricing
   ========================================================= */
.re-pricing {
  max-width: var(--re-content-w);
  margin: 0 auto;
  padding: 80px 32px 96px;
}
.re-pricing__head { text-align: center; margin-bottom: 32px; }
.re-pricing__toggle-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0 auto 40px;
}
.re-pricing__toggle-note {
  font-family: var(--re-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--re-text-muted);
}
.re-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.re-pricing__plan {
  background: var(--re-surface-1);
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 160ms var(--re-ease), transform 160ms var(--re-ease);
}
.re-pricing__plan:hover { border-color: var(--re-text); transform: translateY(-2px); }
.re-pricing__plan--accent {
  border-color: var(--re-text);
  background: var(--re-surface-1);
  position: relative;
  transform: translateY(-4px);
  box-shadow: var(--re-shadow-3);
}
.re-pricing__plan--accent:hover { transform: translateY(-6px); }
.re-pricing__plan--accent::before {
  content: 'Recommandé';
  position: absolute;
  top: -12px; left: 24px;
  background: var(--re-text);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--re-r-sm);
}
.re-pricing__name {
  font-size: 12px;
  font-family: var(--re-font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--re-text-muted);
}
.re-pricing__plan--accent .re-pricing__name { color: var(--re-text); }
.re-pricing__price { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.re-pricing__price small { font-size: 14px; font-weight: 500; color: var(--re-text-muted); }
.re-pricing__price-annual {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-family: var(--re-font-mono);
  color: var(--re-text-muted);
}
.re-pricing__tagline {
  color: var(--re-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: -4px 0 0;
}
.re-pricing__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--re-text); }
.re-pricing__features li {
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.45;
}
.re-pricing__features li::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: var(--re-r-sm);
  background: var(--re-accent-low);
  color: var(--re-accent);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.re-pricing__features li.is-muted { color: var(--re-text-dim); }
.re-pricing__features li.is-muted::before { content: '·'; background: transparent; font-size: 16px; }

.re-pricing__extras {
  max-width: 1040px;
  margin: 72px auto 0;
  display: flex; flex-direction: column; gap: 56px;
}
.re-pricing__compare-wrap { overflow-x: auto; border-radius: var(--re-r-lg); }
.re-pricing__note {
  text-align: center;
  font-size: 13px;
  color: var(--re-text-muted);
  margin-top: 12px;
}

@media (max-width: 880px) {
  .re-pricing__grid { grid-template-columns: 1fr; }
  .re-pricing__plan--accent { transform: none; }
  .re-pricing__plan--accent:hover { transform: translateY(-2px); }
}

/* =========================================================
   Contact
   ========================================================= */
.re-contact {
  max-width: var(--re-content-w);
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.re-contact__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.re-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.re-contact__form-card {
  background: var(--re-surface-1);
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-lg);
  padding: 32px 32px 28px;
}
.re-contact__form-head { margin-bottom: 22px; }
.re-contact__form-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.re-contact__form-head p  { margin: 4px 0 0; font-size: 13.5px; color: var(--re-text-muted); }
.re-contact__sidebar { display: flex; flex-direction: column; gap: 20px; }
.re-contact__row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.re-contact__row-2 > * { min-width: 0; }
.re-contact__sla {
  padding: 16px 18px;
  background: var(--re-surface-2);
  color: var(--re-text);
  border: 1px solid var(--re-border);
  border-radius: var(--re-r-lg);
  display: flex; align-items: flex-start; gap: 14px;
}
.re-contact__sla-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--re-accent);
  margin-top: 6px;
  box-shadow: 0 0 0 4px var(--re-accent-low);
  flex-shrink: 0;
  animation: re-pulse 2.4s ease-in-out infinite;
}
.re-contact__sla h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--re-text);
}
.re-contact__sla p { margin: 0; font-size: 13px; color: var(--re-text-muted); }
@keyframes re-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--re-accent-low); }
  50%      { box-shadow: 0 0 0 8px rgba(10,10,10,0.04); }
}
@media (max-width: 880px) {
  .re-contact__layout { grid-template-columns: 1fr; }
  .re-contact__row-2  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .re-contact__form-card { padding: 24px 20px 20px; }
}
