/* ============================================================
   rrc-shared.css — Référentiel Restauration Collective
   Charte commune à toutes les mini-apps
   Version : 1.0 — 05/03/2026
   ============================================================ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  --rrc-vert-fonce:  #1A5C2E;
  --rrc-vert-clair:  #8DC63F;
  --rrc-orange:      #E8A020;
  --rrc-rouge:       #D32F2F;
  --rrc-blanc:       #FFFFFF;
  --rrc-gris-clair:  #F5F5F5;
  --rrc-gris-border: #E0E0E0;
  --rrc-gris-texte:  #333333;
  --rrc-gris-leger:  #757575;

  --rrc-font-xs:   0.75rem;
  --rrc-font-sm:   0.875rem;
  --rrc-font-base: 1rem;
  --rrc-font-lg:   1.125rem;
  --rrc-font-xl:   1.25rem;
  --rrc-font-2xl:  1.5rem;

  --rrc-radius:    6px;
  --rrc-shadow:    0 2px 8px rgba(0,0,0,0.10);
  --rrc-shadow-lg: 0 4px 16px rgba(0,0,0,0.14);
  --rrc-transition: 0.18s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: var(--rrc-font-base);
  color: var(--rrc-gris-texte);
  background: var(--rrc-gris-clair);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rrc-vert-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── CONTENEURS ─────────────────────────────────────────────── */
.rrc-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.rrc-container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.rrc-card {
  background: var(--rrc-blanc);
  border-radius: var(--rrc-radius);
  box-shadow: var(--rrc-shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.rrc-card-title {
  font-size: var(--rrc-font-xl);
  font-weight: 700;
  color: var(--rrc-vert-fonce);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rrc-gris-border);
}

/* ── GRILLES ────────────────────────────────────────────────── */
.rrc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rrc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Grille planner 4 semaines × 5 jours */
.rrc-grid-semaine {
  display: grid;
  grid-template-columns: 120px repeat(4, 1fr);
  gap: 4px;
  min-width: 700px;
}

.rrc-grid-semaine-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rrc-grid-semaine .rrc-cell-header {
  background: var(--rrc-vert-fonce);
  color: var(--rrc-blanc);
  font-size: var(--rrc-font-sm);
  font-weight: 600;
  padding: 8px 6px;
  text-align: center;
  border-radius: var(--rrc-radius) var(--rrc-radius) 0 0;
}

.rrc-grid-semaine .rrc-cell {
  background: var(--rrc-blanc);
  border: 1px solid var(--rrc-gris-border);
  border-radius: var(--rrc-radius);
  padding: 6px;
  font-size: var(--rrc-font-sm);
  min-height: 60px;
}

/* ── HEADER APP ─────────────────────────────────────────────── */
.rrc-app-header {
  background: var(--rrc-blanc);
  border-bottom: 3px solid var(--rrc-vert-fonce);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--rrc-shadow);
}

.rrc-app-header img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.rrc-app-header-text { flex: 1; }

.rrc-app-header h1 {
  font-size: var(--rrc-font-2xl);
  font-weight: 700;
  color: var(--rrc-vert-fonce);
  line-height: 1.2;
}

.rrc-app-subtitle {
  font-size: var(--rrc-font-sm);
  color: var(--rrc-gris-leger);
  margin-top: 2px;
}

/* ── SÉLECTEUR PROFIL ───────────────────────────────────────── */
.rrc-select-profil {
  background: var(--rrc-vert-fonce);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-radius: var(--rrc-radius);
  flex-wrap: wrap;
}

.rrc-select-profil label {
  color: var(--rrc-blanc);
  font-size: var(--rrc-font-sm);
  font-weight: 600;
  white-space: nowrap;
}

.rrc-select-profil select {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  color: var(--rrc-blanc);
  font-size: var(--rrc-font-sm);
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 160px;
}

.rrc-select-profil select option { background: var(--rrc-vert-fonce); color: var(--rrc-blanc); }

.rrc-profil-badge {
  background: var(--rrc-vert-clair);
  color: var(--rrc-blanc);
  font-size: var(--rrc-font-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: auto;
}

/* ── BOUTONS ─────────────────────────────────────────────────── */
.rrc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rrc-vert-fonce);
  color: var(--rrc-blanc);
  border: none;
  border-radius: var(--rrc-radius);
  padding: 10px 20px;
  font-size: var(--rrc-font-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--rrc-transition), transform var(--rrc-transition);
  text-decoration: none;
  line-height: 1;
  font-family: inherit;
}

.rrc-btn:hover { background: #144d26; transform: translateY(-1px); text-decoration: none; color: var(--rrc-blanc); }
.rrc-btn:active { transform: translateY(0); }

.rrc-btn:disabled,
.rrc-btn[disabled] {
  background: var(--rrc-gris-border);
  color: var(--rrc-gris-leger);
  cursor: not-allowed;
  transform: none;
}

.rrc-btn-outline {
  background: transparent;
  color: var(--rrc-vert-fonce);
  border: 2px solid var(--rrc-vert-fonce);
}

.rrc-btn-outline:hover {
  background: var(--rrc-vert-fonce);
  color: var(--rrc-blanc);
  transform: translateY(-1px);
}

.rrc-btn-export {
  background: var(--rrc-vert-clair);
  color: var(--rrc-blanc);
}

.rrc-btn-export:hover { background: #76a832; }
.rrc-btn-export::before { content: "📄 "; }

.rrc-btn-danger {
  background: var(--rrc-rouge);
  color: var(--rrc-blanc);
}

.rrc-btn-danger:hover { background: #b71c1c; }

.rrc-btn-sm {
  padding: 6px 12px;
  font-size: var(--rrc-font-sm);
}

.rrc-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ── FORMULAIRES ─────────────────────────────────────────────── */
.rrc-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.rrc-label {
  font-size: var(--rrc-font-sm);
  font-weight: 600;
  color: var(--rrc-gris-texte);
}

.rrc-label-required::after {
  content: " *";
  color: var(--rrc-rouge);
}

.rrc-input,
.rrc-select,
.rrc-textarea {
  width: 100%;
  border: 1px solid var(--rrc-gris-border);
  border-radius: var(--rrc-radius);
  padding: 9px 12px;
  font-size: var(--rrc-font-base);
  font-family: inherit;
  color: var(--rrc-gris-texte);
  background: var(--rrc-blanc);
  transition: border-color var(--rrc-transition), box-shadow var(--rrc-transition);
}

.rrc-input:focus,
.rrc-select:focus,
.rrc-textarea:focus {
  outline: none;
  border-color: var(--rrc-vert-fonce);
  box-shadow: 0 0 0 3px rgba(26,92,46,0.12);
}

.rrc-input::placeholder,
.rrc-textarea::placeholder { color: #bbb; }

.rrc-textarea { resize: vertical; min-height: 80px; }

.rrc-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23757575' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

.rrc-input-group {
  display: flex;
  gap: 0;
}

.rrc-input-group .rrc-input { border-radius: var(--rrc-radius) 0 0 var(--rrc-radius); }
.rrc-input-group .rrc-btn   { border-radius: 0 var(--rrc-radius) var(--rrc-radius) 0; white-space: nowrap; }

.rrc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── ALERTES ─────────────────────────────────────────────────── */
.rrc-alert-ok,
.rrc-alert-warn,
.rrc-alert-error,
.rrc-alert-info {
  padding: 10px 14px;
  border-radius: var(--rrc-radius);
  font-size: var(--rrc-font-sm);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  border-left: 4px solid;
}

.rrc-alert-ok    { background: #e8f5e9; border-color: var(--rrc-vert-clair); color: #1b5e20; }
.rrc-alert-warn  { background: #fff3e0; border-color: var(--rrc-orange);     color: #e65100; }
.rrc-alert-error { background: #ffebee; border-color: var(--rrc-rouge);      color: #b71c1c; }
.rrc-alert-info  { background: #e3f2fd; border-color: #1976d2;               color: #0d47a1; }

.rrc-alert-ok::before    { content: "✅"; font-size: 1em; }
.rrc-alert-warn::before  { content: "⚠️"; font-size: 1em; }
.rrc-alert-error::before { content: "❌"; font-size: 1em; }
.rrc-alert-info::before  { content: "ℹ️"; font-size: 1em; }

/* ── TABLEAUX ────────────────────────────────────────────────── */
.rrc-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--rrc-radius);
  box-shadow: var(--rrc-shadow);
}

.rrc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--rrc-font-sm);
  background: var(--rrc-blanc);
}

.rrc-table th {
  background: var(--rrc-vert-fonce);
  color: var(--rrc-blanc);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.rrc-table th:first-child { border-radius: var(--rrc-radius) 0 0 0; }
.rrc-table th:last-child  { border-radius: 0 var(--rrc-radius) 0 0; }

.rrc-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--rrc-gris-border);
  vertical-align: middle;
}

.rrc-table tr:nth-child(even) td { background: #fafafa; }
.rrc-table tr:hover td { background: #f0f7f2; transition: background var(--rrc-transition); }
.rrc-table tr:last-child td { border-bottom: none; }

.rrc-table .rrc-tag-ok    { color: #1b5e20; font-weight: 600; }
.rrc-table .rrc-tag-warn  { color: #e65100; font-weight: 600; }
.rrc-table .rrc-tag-error { color: var(--rrc-rouge); font-weight: 600; }

/* ── JAUGES / PROGRESS ──────────────────────────────────────── */
.rrc-jauge-wrapper {
  margin-bottom: 14px;
}

.rrc-jauge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: var(--rrc-font-sm);
}

.rrc-jauge-label { font-weight: 600; }
.rrc-jauge-valeur { font-weight: 700; font-size: var(--rrc-font-base); }

.rrc-jauge-bar {
  height: 12px;
  background: var(--rrc-gris-border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.rrc-jauge-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
  background: var(--rrc-vert-clair);
}

.rrc-jauge-fill.warn  { background: var(--rrc-orange); }
.rrc-jauge-fill.error { background: var(--rrc-rouge); }

.rrc-jauge-seuil {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--rrc-vert-fonce);
  opacity: 0.7;
}

/* ── BADGES ──────────────────────────────────────────────────── */
.rrc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: var(--rrc-font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rrc-badge-ok    { background: #e8f5e9; color: #1b5e20; }
.rrc-badge-warn  { background: #fff3e0; color: #e65100; }
.rrc-badge-error { background: #ffebee; color: var(--rrc-rouge); }
.rrc-badge-info  { background: #e3f2fd; color: #0d47a1; }
.rrc-badge-vert  { background: var(--rrc-vert-fonce); color: var(--rrc-blanc); }

/* ── BANNIÈRES ───────────────────────────────────────────────── */
.rrc-banner-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  min-height: 50px;
}

.rrc-banner {
  max-width: 728px;
  width: 100%;
  height: 90px;
  overflow: hidden;
  border-radius: var(--rrc-radius);
  display: block;
}

.rrc-banner img { width: 100%; height: 100%; object-fit: cover; }

.rrc-banner-mobile {
  max-width: 320px;
  width: 100%;
  height: 50px;
  overflow: hidden;
  border-radius: var(--rrc-radius);
  display: none;
}

/* ── PRODUIT PARTENAIRE ─────────────────────────────────────── */
.rrc-partner {
  background: var(--rrc-blanc);
  border: 1px solid var(--rrc-gris-border);
  border-radius: var(--rrc-radius);
  padding: 16px;
  max-width: 300px;
  box-shadow: var(--rrc-shadow);
}

.rrc-partner img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}

.rrc-partner-nom {
  font-size: var(--rrc-font-base);
  font-weight: 600;
  color: var(--rrc-gris-texte);
  margin-bottom: 6px;
}

.rrc-partner-desc {
  font-size: var(--rrc-font-sm);
  color: var(--rrc-gris-leger);
  margin-bottom: 10px;
  line-height: 1.4;
}

.rrc-mention-legal {
  font-size: var(--rrc-font-xs);
  color: var(--rrc-gris-leger);
  margin-top: 6px;
  font-style: italic;
}

/* ── NEWSLETTER OVERLAY ─────────────────────────────────────── */
.rrc-newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.rrc-newsletter-modal {
  background: var(--rrc-blanc);
  border-radius: 10px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--rrc-shadow-lg);
  position: relative;
}

.rrc-newsletter-modal h3 {
  font-size: var(--rrc-font-xl);
  color: var(--rrc-vert-fonce);
  font-weight: 700;
  margin-bottom: 8px;
}

.rrc-newsletter-modal p {
  font-size: var(--rrc-font-sm);
  color: var(--rrc-gris-leger);
  margin-bottom: 16px;
  line-height: 1.5;
}

.rrc-newsletter-modal .rrc-input,
.rrc-newsletter-modal .rrc-select {
  margin-bottom: 10px;
}

.rrc-newsletter-modal .rrc-btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.rrc-newsletter-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--rrc-gris-leger);
  line-height: 1;
  padding: 2px;
}

.rrc-newsletter-close:hover { color: var(--rrc-rouge); }

.rrc-rgpd {
  font-size: var(--rrc-font-xs) !important;
  color: var(--rrc-gris-leger) !important;
  margin-bottom: 0 !important;
}

.rrc-rgpd a { color: var(--rrc-vert-fonce); }

/* ── RECHERCHE RECETTE ──────────────────────────────────────── */
.rrc-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--rrc-blanc);
  border: 1px solid var(--rrc-gris-border);
  border-radius: 0 0 var(--rrc-radius) var(--rrc-radius);
  box-shadow: var(--rrc-shadow-lg);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}

.rrc-search-result-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: var(--rrc-font-sm);
  border-bottom: 1px solid var(--rrc-gris-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.rrc-search-result-item:last-child { border-bottom: none; }
.rrc-search-result-item:hover { background: #f0f7f2; }
.rrc-search-result-nom { font-weight: 500; flex: 1; }
.rrc-search-result-meta { font-size: var(--rrc-font-xs); color: var(--rrc-gris-leger); white-space: nowrap; }

.rrc-search-wrapper { position: relative; }

/* ── LOADER ──────────────────────────────────────────────────── */
.rrc-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--rrc-gris-border);
  border-top-color: var(--rrc-vert-fonce);
  border-radius: 50%;
  animation: rrc-spin 0.7s linear infinite;
}

@keyframes rrc-spin { to { transform: rotate(360deg); } }

.rrc-loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--rrc-gris-leger);
  font-size: var(--rrc-font-sm);
}

/* ── TABS ────────────────────────────────────────────────────── */
.rrc-tabs {
  display: flex;
  border-bottom: 2px solid var(--rrc-gris-border);
  margin-bottom: 16px;
  gap: 0;
  overflow-x: auto;
}

.rrc-tab {
  padding: 10px 18px;
  font-size: var(--rrc-font-sm);
  font-weight: 600;
  color: var(--rrc-gris-leger);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--rrc-transition), border-color var(--rrc-transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.rrc-tab:hover { color: var(--rrc-vert-fonce); }
.rrc-tab.active { color: var(--rrc-vert-fonce); border-bottom-color: var(--rrc-vert-fonce); }

/* ── STAT CARDS ─────────────────────────────────────────────── */
.rrc-stat-card {
  background: var(--rrc-blanc);
  border-radius: var(--rrc-radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--rrc-shadow);
  border-top: 4px solid var(--rrc-vert-fonce);
}

.rrc-stat-card.warn  { border-top-color: var(--rrc-orange); }
.rrc-stat-card.error { border-top-color: var(--rrc-rouge); }
.rrc-stat-card.ok    { border-top-color: var(--rrc-vert-clair); }

.rrc-stat-valeur {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rrc-vert-fonce);
  line-height: 1;
  margin-bottom: 4px;
}

.rrc-stat-label {
  font-size: var(--rrc-font-sm);
  color: var(--rrc-gris-leger);
}

/* ── SECTION SÉPARATEUR ─────────────────────────────────────── */
.rrc-section-title {
  font-size: var(--rrc-font-lg);
  font-weight: 700;
  color: var(--rrc-vert-fonce);
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rrc-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rrc-gris-border);
  margin-left: 8px;
}

.rrc-divider {
  border: none;
  border-top: 1px solid var(--rrc-gris-border);
  margin: 16px 0;
}

/* ── HACCP SPECIFIQUE ───────────────────────────────────────── */
.rrc-temp-ok    { color: #1b5e20; font-weight: 700; }
.rrc-temp-warn  { color: var(--rrc-orange); font-weight: 700; }
.rrc-temp-error { color: var(--rrc-rouge); font-weight: 700; }

/* ── EGALIM SPECIFIQUE ──────────────────────────────────────── */
.rrc-egalim-seuil {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--rrc-font-sm);
  color: var(--rrc-gris-leger);
  margin-top: 4px;
}

.rrc-egalim-seuil strong { color: var(--rrc-vert-fonce); }

/* ── GEMRCN BADGE SECTION ───────────────────────────────────── */
.rrc-gemrcn-section {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rrc-vert-fonce);
  color: var(--rrc-blanc);
  font-size: var(--rrc-font-xs);
  font-weight: 700;
  text-align: center;
  line-height: 28px;
  flex-shrink: 0;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.rrc-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--rrc-gris-leger);
}

.rrc-empty-icon { font-size: 2.5rem; margin-bottom: 8px; }
.rrc-empty-text { font-size: var(--rrc-font-sm); }

/* ── FOOTER APP ─────────────────────────────────────────────── */
.rrc-app-footer {
  text-align: center;
  padding: 16px;
  font-size: var(--rrc-font-xs);
  color: var(--rrc-gris-leger);
  border-top: 1px solid var(--rrc-gris-border);
  margin-top: 24px;
}

.rrc-app-footer a { color: var(--rrc-gris-leger); }
.rrc-app-footer a:hover { color: var(--rrc-vert-fonce); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .rrc-app-header { padding: 10px 14px; gap: 10px; }
  .rrc-app-header img { height: 30px; }
  .rrc-app-header h1 { font-size: var(--rrc-font-xl); }

  .rrc-select-profil { padding: 8px 14px; }

  .rrc-banner { display: none; }
  .rrc-banner-mobile { display: block; }

  .rrc-grid-2,
  .rrc-grid-3 { grid-template-columns: 1fr; }

  .rrc-form-row { grid-template-columns: 1fr; }

  .rrc-container,
  .rrc-container-wide { padding: 0 10px; }

  .rrc-card { padding: 14px; }

  .rrc-newsletter-modal { padding: 20px 16px; }

  .rrc-partner { max-width: 100%; }

  .rrc-stat-valeur { font-size: 1.5rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rrc-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .rrc-banner-mobile { display: block; }
  .rrc-banner { display: none; }
}

/* ── PRINT ───────────────────────────────────────────────────── */
@media print {
  .rrc-app-header,
  .rrc-select-profil,
  .rrc-banner-wrapper,
  .rrc-partner,
  .rrc-newsletter-overlay,
  .rrc-btn-export,
  .rrc-btn-group { display: none !important; }

  body { background: white; }
  .rrc-card { box-shadow: none; border: 1px solid #ddd; }
  .rrc-table th { background: #1A5C2E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
