/* =====================================================================
   RESULTANCE — BIBLIOTHÈQUE DE COMPOSANTS
   Dépend de tokens.css. Préfixe de classe : .rs-
   ===================================================================== */

/* ------------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: var(--ring-width) solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--red-200); color: var(--ruby-900); }

/* ------------------------------------------------------------------
   TYPOGRAPHIE
   ------------------------------------------------------------------ */
.rs-display, .rs-h1, .rs-h2, .rs-h3, .rs-h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  text-wrap: balance;
}
.rs-display { font-size: var(--fs-display); font-weight: var(--fw-extra); line-height: var(--lh-tight); }
.rs-h1 { font-size: var(--fs-h1); }
.rs-h2 { font-size: var(--fs-h2); }
.rs-h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-normal); }
.rs-h4 { font-size: var(--fs-h4); letter-spacing: var(--ls-normal); }

.rs-lead { font-size: var(--fs-body-lg); line-height: var(--lh-normal); color: var(--text-secondary); }
.rs-body { font-size: var(--fs-body); }
.rs-small { font-size: var(--fs-body-sm); }
.rs-caption { font-size: var(--fs-caption); color: var(--text-muted); }

/* Surtitre / overline — signe d'expertise structurée */
.rs-overline {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-brand);
}
.rs-overline::before {
  content: ""; width: 1.75rem; height: 2px; border-radius: var(--radius-pill);
  background: var(--red-500);
}

/* Mot surligné (highlight de marque, façon brand platform) */
.rs-mark { background: var(--gold-200); padding: 0.05em 0.25em; border-radius: var(--radius-xs); }
.rs-mark--red { background: var(--red-500); color: #fff; }

/* ------------------------------------------------------------------
   BOUTONS
   ------------------------------------------------------------------ */
.rs-btn {
  --_pad-y: 0.8rem; --_pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  font-family: var(--font-stat); font-size: 1.05rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.05em;
  line-height: 1; text-decoration: none; white-space: nowrap;
  padding: var(--_pad-y) var(--_pad-x);
  border: 2px solid transparent; border-radius: var(--radius-cta);
  cursor: pointer; transition: background var(--dur-fast) var(--ease-out),
            border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.rs-btn:active { transform: translateY(1px); }
/* Flèche : masquée par défaut, apparaît à droite au hover */
.rs-btn .rs-btn__arrow { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; margin-left: 0; transform: translateX(-4px);
  transition: max-width .25s var(--ease-out), opacity .2s, transform .25s, margin .25s; }
.rs-btn:hover .rs-btn__arrow { max-width: 1.4em; opacity: 1; margin-left: 0.4em; transform: translateX(0); }

/* Primaire — Momentum Red (CTA principal : « Parler à un expert ») */
.rs-btn--primary { background: var(--action-primary-bg); color: var(--action-primary-text); }
.rs-btn--primary:hover { background: var(--action-primary-bg-hover); color: #fff; }
.rs-btn--primary:active { background: var(--action-primary-bg-active); }

/* Secondaire — Ruby Depth (expertise) */
.rs-btn--secondary { background: var(--action-secondary-bg); color: var(--action-secondary-text); }
.rs-btn--secondary:hover { background: var(--action-secondary-bg-hover); color: #fff; }

/* Outline — sur fond clair */
.rs-btn--outline { background: transparent; color: var(--ruby-700); border-color: var(--border-default); }
.rs-btn--outline:hover { border-color: var(--ruby-700); background: var(--ruby-50); color: var(--ruby-700); }

/* Ghost / texte avec flèche (CTA tertiaire) */
.rs-btn--ghost { background: transparent; color: var(--link); padding-left: 0; padding-right: 0; border-radius: var(--radius-xs); }
.rs-btn--ghost:hover { color: var(--link-hover); }

/* Gold — accent chaleureux (CTA secondaire mis en avant, sur fond clair).
   Texte foncé sur fond gold uniquement (accessibilité charte). */
.rs-btn--gold { background: var(--gold-400); color: var(--ruby-900); }
.rs-btn--gold:hover { background: var(--gold-300); color: var(--ruby-900); }
.rs-btn--gold:active { background: var(--gold-500); }

/* Sur fond sombre */
.rs-btn--on-dark { background: var(--soft-blush); color: var(--ruby-700); }
.rs-btn--on-dark:hover { background: #fff; }
.rs-btn--on-dark.rs-btn--outline { background: transparent; color: var(--soft-blush); border-color: var(--border-inverse); }
.rs-btn--on-dark.rs-btn--outline:hover { border-color: var(--soft-blush); background: rgba(255,255,255,0.08); color: #fff; }

/* Tailles */
.rs-btn--sm { --_pad-y: 0.6rem; --_pad-x: 1.1rem; font-size: 0.95rem; }
.rs-btn--lg { --_pad-y: 1.05rem; --_pad-x: 2rem; font-size: 1.3rem; }
.rs-btn--block { display: flex; width: 100%; }
.rs-btn:disabled, .rs-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ------------------------------------------------------------------
   TAGS, BADGES & CHIPS DE TIERING (HERO / LIGHT)
   ------------------------------------------------------------------ */
.rs-tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-caption); font-weight: var(--fw-medium);
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--bg-surface-alt); color: var(--text-secondary);
}
.rs-tag--solid { background: var(--ruby-700); color: var(--soft-blush); border-color: transparent; }

/* Tier HERO — secteurs/expertises prioritaires */
.rs-chip-tier {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-overline); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-xs);
}
.rs-chip-tier--hero  { background: var(--red-500); color: #fff; }
.rs-chip-tier--light { background: transparent; color: var(--text-muted); border: 1px solid var(--border-default); }

/* Badge métrique (statut) */
.rs-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-caption);
  font-weight: var(--fw-semibold); padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); }
.rs-badge--success { background: var(--success-bg); color: var(--success-fg); }
.rs-badge--warning { background: var(--warning-bg); color: var(--warning-fg); }
.rs-badge--danger  { background: var(--danger-bg);  color: var(--danger-fg); }
.rs-badge--info    { background: var(--info-bg);    color: var(--info-fg); }

/* ------------------------------------------------------------------
   CARTES
   ------------------------------------------------------------------ */
.rs-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base);
}
.rs-card--interactive:hover { border-color: var(--ruby-700); }
.rs-card__eyebrow { margin-bottom: var(--space-3); }
.rs-card__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold);
  line-height: var(--lh-snug); margin-bottom: var(--space-3); }
.rs-card__text { color: var(--text-secondary); font-size: var(--fs-body-sm); }
.rs-card__footer { margin-top: var(--space-5); display: flex; align-items: center; gap: var(--space-3); }

/* Carte secteur / expertise (avec barre d'accent latérale) */




/* Carte cas client (image + chiffre clé) */
.rs-case { overflow: hidden; padding: 0; }
.rs-case__media { aspect-ratio: 16 / 10; background: var(--ruby-700); position: relative; overflow: hidden; }
.rs-case__media img { width: 100%; height: 100%; object-fit: cover; }
.rs-case__logo { position: absolute; top: var(--space-3); left: var(--space-3);
  background: #fff; border-radius: var(--radius-sm); padding: 0.35rem 0.6rem; font-weight: var(--fw-bold); font-size: var(--fs-caption); }
.rs-case__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.rs-case__kpi { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-extra);
  color: var(--ruby-700); line-height: 1; }
.rs-case__kpi-label { font-size: var(--fs-caption); color: var(--text-muted); }

/* Carte sombre « expert » (inverse) */
.rs-card--inverse { background: var(--bg-inverse); border-color: var(--border-inverse); color: var(--text-on-inverse); }
.rs-card--inverse .rs-card__title { color: var(--soft-blush); }
.rs-card--inverse .rs-card__text { color: var(--text-on-inverse-muted); }

/* ------------------------------------------------------------------
   CHIFFRES CLÉS / STATS
   ------------------------------------------------------------------ */
.rs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-6); }
.rs-stat__value { font-family: var(--font-display); font-size: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
  font-weight: var(--fw-extra); line-height: 1; color: var(--ruby-700); letter-spacing: var(--ls-tight); }
.rs-stat__value .rs-stat__plus { color: var(--red-500); }
.rs-stat__label { margin-top: var(--space-2); font-size: var(--fs-body-sm); color: var(--text-secondary); }
.rs-stat--on-dark .rs-stat__value { color: var(--gold-400); }
.rs-stat--on-dark .rs-stat__label { color: var(--text-on-inverse-muted); }

/* ------------------------------------------------------------------
   HEADER + NAVIGATION + MÉGA-MENU EXPERTISE (3 colonnes)
   ------------------------------------------------------------------ */
.rs-header { position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 248, 245, 0.85); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle); }
.rs-header__inner { max-width: var(--container-wide); margin: 0 auto; padding: var(--space-3) var(--gutter);
  display: flex; align-items: center; gap: var(--space-6); }
.rs-nav { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; }
.rs-nav__link { font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--text-primary);
  text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; padding: var(--space-2) 0; position: relative; }
.rs-nav__link:hover, .rs-nav__link[aria-expanded="true"] { color: var(--ruby-700); }
.rs-nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red-500); transition: width var(--dur-base) var(--ease-out); border-radius: var(--radius-pill); }
.rs-nav__link:hover::after { width: 100%; }

/* Méga-menu */
.rs-megamenu { background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); border: 1px solid var(--border-default); padding: var(--space-7);
  display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: var(--space-7); }
.rs-megamenu__col-title { font-size: var(--fs-overline); font-weight: var(--fw-bold); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-subtle); }
.rs-megamenu__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); text-decoration: none;
  color: var(--text-primary); font-size: var(--fs-body-sm); font-weight: var(--fw-medium);
  transition: background var(--dur-fast); }
.rs-megamenu__item:hover { background: var(--bg-surface-alt); color: var(--ruby-700); }
.rs-megamenu__col--feature { background: var(--ruby-700); color: var(--soft-blush);
  margin: calc(var(--space-7) * -1); margin-left: 0; padding: var(--space-6); border-radius: var(--radius-md); }

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
.rs-footer { background: var(--ruby-900); color: var(--text-on-inverse); padding: var(--space-10) 0 var(--space-6); }
.rs-footer__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
.rs-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-7);
  padding-bottom: var(--space-8); border-bottom: 1px solid var(--border-inverse); }
.rs-footer__col-title { font-size: var(--fs-overline); text-transform: uppercase; letter-spacing: var(--ls-wide);
  font-weight: var(--fw-bold); color: var(--red-300); margin-bottom: var(--space-4); }
.rs-footer__link { display: block; color: var(--text-on-inverse-muted); text-decoration: none;
  padding: var(--space-1) 0; font-size: var(--fs-body-sm); }
.rs-footer__link:hover { color: var(--soft-blush); }
.rs-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  padding-top: var(--space-5); font-size: var(--fs-caption); color: var(--text-on-inverse-muted); }

/* ------------------------------------------------------------------
   FORMULAIRES
   ------------------------------------------------------------------ */
.rs-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.rs-label { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--text-primary); }
.rs-label__req { color: var(--red-500); }
.rs-input, .rs-textarea, .rs-select {
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--text-primary);
  background: var(--bg-surface); border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md); padding: 0.75rem 1rem; width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.rs-input::placeholder, .rs-textarea::placeholder { color: var(--text-muted); }
.rs-input:focus, .rs-textarea:focus, .rs-select:focus {
  outline: none; border-color: var(--red-500); box-shadow: 0 0 0 3px var(--red-100); }
.rs-textarea { min-height: 120px; resize: vertical; }
.rs-input[aria-invalid="true"] { border-color: var(--danger-solid); }
.rs-help { font-size: var(--fs-caption); color: var(--text-muted); }
.rs-error { font-size: var(--fs-caption); color: var(--danger-fg); }
.rs-checkbox { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-body-sm); }
.rs-checkbox input { width: 1.15rem; height: 1.15rem; accent-color: var(--red-500); margin-top: 0.15rem; }

/* ------------------------------------------------------------------
   FAQ / ACCORDÉON (AEO — réponse directe)
   ------------------------------------------------------------------ */
.rs-accordion { border-top: 1px solid var(--border-subtle); }
.rs-accordion__item { border-bottom: 1px solid var(--border-subtle); }
.rs-accordion__trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: var(--space-5) 0; font-family: var(--font-display); font-size: var(--fs-h4);
  font-weight: var(--fw-semibold); color: var(--text-primary); }
.rs-accordion__icon { flex-shrink: 0; width: 1.5rem; height: 1.5rem; position: relative; color: var(--red-500); }
.rs-accordion__icon::before, .rs-accordion__icon::after { content: ""; position: absolute; inset: 0; margin: auto;
  background: currentColor; border-radius: var(--radius-pill); }
.rs-accordion__icon::before { width: 100%; height: 2px; }
.rs-accordion__icon::after { width: 2px; height: 100%; transition: transform var(--dur-base) var(--ease-out); }
.rs-accordion__item[open] .rs-accordion__icon::after { transform: rotate(90deg); }
.rs-accordion__panel { padding-bottom: var(--space-5); color: var(--text-secondary); max-width: 68ch; }

/* ------------------------------------------------------------------
   FIL D'ARIANE
   ------------------------------------------------------------------ */
.rs-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-size: var(--fs-caption); color: var(--text-muted); }
.rs-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.rs-breadcrumb a:hover { color: var(--ruby-700); }
.rs-breadcrumb li { display: flex; align-items: center; gap: var(--space-2); list-style: none; }
.rs-breadcrumb li:not(:last-child)::after { content: "/"; color: var(--border-strong); }

/* ------------------------------------------------------------------
   TÉMOIGNAGE
   ------------------------------------------------------------------ */
.rs-quote { background: var(--bg-surface-alt); border-radius: var(--radius-xl); padding: var(--space-8);
  position: relative; }
.rs-quote__text { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-medium);
  line-height: var(--lh-normal); color: var(--text-primary); }
.rs-quote__mark { font-family: var(--font-display); font-size: 5rem; line-height: 0.5; color: var(--red-200);
  position: absolute; top: var(--space-5); right: var(--space-6); }
.rs-quote__author { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.rs-quote__avatar { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; background: var(--ruby-200); }
.rs-quote__name { font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }
.rs-quote__role { font-size: var(--fs-caption); color: var(--text-muted); }

/* ------------------------------------------------------------------
   BANDE CTA & SECTIONS
   ------------------------------------------------------------------ */
.rs-cta-band { background: var(--ruby-700); color: var(--soft-blush); border-radius: var(--radius-2xl);
  padding: var(--space-9) var(--space-8); text-align: center; position: relative; overflow: hidden; }
.rs-cta-band .rs-h2 { color: var(--soft-blush); }
.rs-cta-band__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-6); }

/* Bandeau langue / géolocalisation (UX discrète) */
.rs-locale-banner { display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  background: var(--ruby-900); color: var(--text-on-inverse); font-size: var(--fs-caption); padding: var(--space-2) var(--gutter); }
.rs-locale-banner a { color: var(--gold-300); font-weight: var(--fw-semibold); }

/* Bandeau logos références */
.rs-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); justify-content: center; }
.rs-logos__item { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h4);
  color: var(--neutral-400); filter: grayscale(1); transition: color var(--dur-base); }
.rs-logos__item:hover { color: var(--ruby-700); }

/* ------------------------------------------------------------------
   HERO (gabarit page HERO vs LIGHT)
   ------------------------------------------------------------------ */
.rs-hero { padding: var(--section-y) 0; }
.rs-hero__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.rs-hero__title { font-family: var(--font-display); font-size: var(--fs-display); font-weight: var(--fw-extra);
  line-height: var(--lh-tight); letter-spacing: var(--ls-tight); max-width: 16ch; }
.rs-hero__lead { font-size: var(--fs-body-lg); color: var(--text-secondary); max-width: 52ch; margin-top: var(--space-5); }
.rs-hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-7); }
.rs-hero--inverse { background: var(--bg-inverse); color: var(--text-on-inverse); border-radius: 0 0 var(--radius-2xl) var(--radius-2xl); }
.rs-hero--inverse .rs-hero__title { color: var(--soft-blush); }
.rs-hero--inverse .rs-hero__lead { color: var(--text-on-inverse-muted); }

/* ------------------------------------------------------------------
   ÉLÉMENTS GRAPHIQUES SIGNATURE (issus de la charte SoMe)
   ------------------------------------------------------------------ */
/* Badge circulaire « 500+ » */
.rs-orb { display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 132px; height: 132px; border-radius: var(--radius-full); background: var(--gold-400);
  color: var(--ruby-700); font-family: var(--font-display); font-weight: var(--fw-bold); line-height: 1.1;
  padding: var(--space-4); }
.rs-orb--red { background: var(--red-500); color: #fff; }
.rs-orb--mint { background: var(--mint-400); color: var(--ruby-700); }

/* Diagonale d'accent (coin de section) */
.rs-diagonal { position: relative; overflow: hidden; }
.rs-diagonal::after { content: ""; position: absolute; top: -20%; right: -10%; width: 45%; height: 140%;
  background: var(--red-500); transform: rotate(12deg); opacity: 0.9; }

/* Texture de points (fond) */
.rs-dots { background-image: radial-gradient(var(--ruby-200) 1.4px, transparent 1.4px);
  background-size: 18px 18px; }

/* Filet décoratif / vague (rappel du swoosh logo) */
.rs-rule { height: 4px; width: 64px; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--red-500), var(--gold-400)); }

/* ==================================================================
   ÉLÉMENTS SIGNATURE — langage visuel de la charte SoMe
   (typo outline+plein · vagues organiques · cadres image arrondis ·
    pastilles colorées · cercle fin · texture de points · logo)
   ================================================================== */

/* --- LOGO (wordmark « resultance » + swoosh) --- */
.rs-logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.rs-logo__mark { width: 52px; height: auto; flex-shrink: 0; }
.rs-logo__img { height: 56px; width: auto; display: block; }
.rs-logo__img--white { height: 50px; filter: brightness(0) invert(1); }
.rs-logo__wordmark { display: flex; flex-direction: column; line-height: 1; }
.rs-logo__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  letter-spacing: 0.005em; text-transform: lowercase; color: var(--ruby-700); }
.rs-logo__tag { font-family: var(--font-display); font-weight: 500; font-size: 0.58rem;
  letter-spacing: 0.32em; text-transform: lowercase; color: var(--text-muted); margin-top: 0.28rem; }
.rs-logo--inverse .rs-logo__name { color: var(--soft-blush); }
.rs-logo--inverse .rs-logo__tag { color: var(--text-on-inverse-muted); }

/* --- TITRE OUTLINE + PLEIN (« LOREM / ADIPISCING ») --- */
.rs-title-outline {
  font-family: var(--font-display); font-weight: var(--fw-extra); text-transform: uppercase;
  line-height: 0.95; letter-spacing: 0.005em;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2.5px var(--outline-color, var(--ruby-700));
  text-stroke: 2.5px var(--outline-color, var(--ruby-700));
}
.rs-title-fill {
  font-family: var(--font-display); font-weight: var(--fw-extra); text-transform: uppercase;
  line-height: 0.95; letter-spacing: 0.005em; color: var(--fill-color, var(--ruby-700));
}

/* --- CADRE IMAGE arrondi --- */
.rs-frame { border-radius: var(--radius-xl); overflow: hidden; position: relative;
  background: var(--bg-surface-alt); }
.rs-frame--lg { border-radius: var(--radius-2xl); }
.rs-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-frame__overlay { position: absolute; inset: 0; display: flex; padding: var(--space-4); gap: var(--space-2);
  flex-wrap: wrap; align-content: flex-end; }

/* --- PASTILLES COLORÉES (overlay image) --- */
.rs-pill { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-caption); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); }
.rs-pill--red   { background: var(--red-500);  color: #fff; }
.rs-pill--mint  { background: var(--mint-400); color: var(--ruby-700); }
.rs-pill--gold  { background: var(--gold-400); color: var(--ruby-700); }
.rs-pill--white { background: #fff;            color: var(--ruby-700); }
.rs-pill--ruby  { background: var(--ruby-700); color: #fff; }

/* --- BADGE CIRCULAIRE À FILET (cercle fin) --- */
.rs-orb--outline { background: transparent; border: 2.5px solid var(--gold-400); color: var(--ruby-700); }
.rs-orb--outline-light { background: transparent; border: 2.5px solid var(--gold-300); color: var(--soft-blush); }

/* --- VAGUES ORGANIQUES (séparateurs de section) --- */
.rs-wave { display: block; width: 100%; height: auto; }
.rs-wave--fill-page    { fill: var(--bg-page); }
.rs-wave--fill-alt     { fill: var(--bg-surface-alt); }
.rs-wave--fill-ruby    { fill: var(--ruby-700); }
.rs-wave--fill-ruby900 { fill: var(--ruby-900); }
.rs-wave--fill-surface { fill: var(--bg-surface); }

/* Forme organique (blob) — calage décoratif d'arrière-plan */
.rs-blob { border-radius: 42% 58% 55% 45% / 55% 45% 55% 45%; }
.rs-blob--alt { border-radius: 60% 40% 38% 62% / 47% 58% 42% 53%; }

/* --- TEXTURE DE POINTS gold-sur-fond --- */
.rs-dots--gold { background-image: radial-gradient(var(--gold-400) 1.7px, transparent 1.7px);
  background-size: 16px 16px; }
.rs-dots--ruby { background-image: radial-gradient(var(--ruby-300) 1.5px, transparent 1.5px);
  background-size: 18px 18px; }

/* --- RUBANS D'ANGLE SVG (background signature de la charte) ---
   Pinwheel : rouge en TL/BR, ruby en TR/BL. Un seul tracé SVG, dupliqué
   et miroité par coin via transforms. Couleur pilotée par --ribbon-color. */
.rs-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.rs-decor__ribbon { position: absolute; width: clamp(190px, 27vw, 380px); height: clamp(190px, 27vw, 380px); }
.rs-decor__ribbon path, .rs-decor__ribbon line { stroke: var(--ribbon-color, var(--red-500)); }
.rs-decor__ribbon--tl { top: 0;    left: 0;  transform: translate(-26%, -26%); }
.rs-decor__ribbon--br { bottom: 0; right: 0; transform: translate(26%, 26%) scale(-1, -1); }
.rs-decor__ribbon--tr { top: 0;    right: 0; transform: translate(26%, -26%) scaleX(-1); --ribbon-color: var(--ruby-700); }
.rs-decor__ribbon--bl { bottom: 0; left: 0;  transform: translate(-26%, 26%) scaleY(-1); --ribbon-color: var(--ruby-700); }
/* Variante claire (rubans sur fond Soft Blush — utilise les tons saturés) */
.rs-decor--light .rs-decor__ribbon--tr,
.rs-decor--light .rs-decor__ribbon--bl { --ribbon-color: var(--ruby-700); }

/* ------------------------------------------------------------------
   UTILITAIRES DE LAYOUT
   ------------------------------------------------------------------ */
.rs-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.rs-container--wide { max-width: var(--container-wide); }
.rs-container--narrow { max-width: var(--container-narrow); }
.rs-section { padding: var(--section-y) 0; }
.rs-section--alt { background: var(--bg-surface-alt); }
.rs-section--inverse { background: var(--bg-inverse); color: var(--text-on-inverse); }
.rs-grid { display: grid; gap: var(--space-6); }
.rs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rs-stack > * + * { margin-top: var(--space-4); }

@media (max-width: 768px) {
  .rs-grid--2, .rs-grid--3, .rs-grid--4 { grid-template-columns: 1fr; }
  .rs-megamenu { grid-template-columns: 1fr; }
  .rs-footer__grid { grid-template-columns: 1fr 1fr; }
  .rs-nav { display: none; } /* → menu burger en production */
}
