/* ═══════════════════════════════════════════════════════════════
   SOS Animal — Charte graphique inspiree Royal Canin
   Rouge Pantone 485C / DIN Pro → Barlow
   Premium, professionnel, genereux en espace blanc
   ═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts (si pas deja charge) ─── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand */
  --rc-red:       #de2b33;
  --rc-red-dk:    #b8232b;
  --rc-red-lt:    #FFF0F0;
  --rc-red-hover: #CC0017;
  --rc-gold:      #E2AE49;
  --rc-gold-lt:   #FDF6E9;

  /* Neutrals */
  --rc-white:     #FFFFFF;
  --rc-bg:        #F5F5F5;
  --rc-bg-warm:   #FAFAF8;
  --rc-black:     #1A1A1A;
  --rc-grey-900:  #212121;
  --rc-grey-800:  #333333;
  --rc-grey-700:  #555555;
  --rc-grey-600:  #777777;
  --rc-grey-500:  #999999;
  --rc-grey-300:  #D5D5D5;
  --rc-grey-200:  #E8E8E8;
  --rc-grey-100:  #F5F5F5;

  /* Semantic */
  --rc-success:   #1B8A4A;
  --rc-success-lt:#E8F8EF;
  --rc-warning:   #E2AE49;
  --rc-warning-lt:#FDF6E9;
  --rc-danger:    #de2b33;
  --rc-danger-lt: #FFF0F0;
  --rc-info:      #0078C8;
  --rc-info-lt:   #E6F3FC;

  /* Typography */
  --font:         'Barlow', Arial, Helvetica, sans-serif;
  --font-cond:    'Barlow Condensed', Arial, sans-serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;

  /* Radius — RC style = nets, pas trop arrondis */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 100px;

  /* Shadows — RC style = subtils, elegants */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:  0 20px 48px -12px rgba(0,0,0,0.12);
  --shadow-red: 0 4px 20px rgba(226,0,26,0.2);

  /* Transitions */
  --ease:       0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--rc-black);
  background: var(--rc-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rc-red); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--rc-red-dk); }

/* ─── TYPOGRAPHY — RC Style ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cond);
  font-weight: 800;
  line-height: 1.15;
  color: var(--rc-red);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--rc-grey-700); line-height: 1.75; }

/* ─── NAVIGATION BAR — RC Style (blanc, ombre subtile) ─── */
.rc-nav {
  background: var(--rc-white);
  height: 68px;
  padding: 0 var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--rc-red);
}
.rc-nav-logo {
  font-family: var(--font-cond);
  font-size: 28px;
  font-weight: 900;
  color: var(--rc-red);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.rc-nav-logo .sos { color: var(--rc-red); }
.rc-nav-logo .animal { color: var(--rc-black); }
.rc-nav-badge {
  background: var(--rc-red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── HERO SECTION ─── */
.rc-hero {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl) var(--sp-2xl);
  background: var(--rc-bg-warm);
  position: relative;
}
.rc-hero h1 {
  color: var(--rc-black);
  margin-bottom: var(--sp-md);
}
.rc-hero h1 .red { color: var(--rc-red); }
.rc-hero-sub {
  font-size: 1.15rem;
  color: var(--rc-grey-600);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── BUTTONS — RC Style (nets, 2px border) ─── */
.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-xs);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1.4;
}
.rc-btn-primary {
  background: var(--rc-red);
  color: white;
  border-color: var(--rc-red);
}
.rc-btn-primary:hover {
  background: var(--rc-red-dk);
  border-color: var(--rc-red-dk);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}
.rc-btn-secondary {
  background: white;
  color: var(--rc-red);
  border-color: var(--rc-red);
}
.rc-btn-secondary:hover {
  background: var(--rc-red);
  color: white;
}
.rc-btn-ghost {
  background: transparent;
  color: var(--rc-grey-700);
  border-color: var(--rc-grey-300);
}
.rc-btn-ghost:hover {
  border-color: var(--rc-red);
  color: var(--rc-red);
}
.rc-btn-gold {
  background: var(--rc-gold);
  color: white;
  border-color: var(--rc-gold);
}
.rc-btn-gold:hover {
  background: #C89A3A;
  border-color: #C89A3A;
}
.rc-btn-lg {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: var(--radius-sm);
}

/* ─── CARDS — RC Style (blanc, ombre douce, hover scale) ─── */
.rc-card {
  background: var(--rc-white);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--ease);
  border: 1px solid var(--rc-grey-200);
}
.rc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.rc-card-red {
  border-top: 4px solid var(--rc-red);
}
.rc-card-gold {
  border-top: 4px solid var(--rc-gold);
}

/* ─── BADGES / TAGS ─── */
.rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.rc-badge-red { background: var(--rc-red); color: white; }
.rc-badge-gold { background: var(--rc-gold); color: white; }
.rc-badge-grey { background: var(--rc-grey-100); color: var(--rc-grey-700); }
.rc-badge-success { background: var(--rc-success-lt); color: var(--rc-success); }
.rc-badge-danger { background: var(--rc-danger-lt); color: var(--rc-danger); }

/* ─── URGENCY LEVELS ─── */
.rc-urgence-vert { background: var(--rc-success-lt); border-left: 5px solid var(--rc-success); }
.rc-urgence-orange { background: var(--rc-warning-lt); border-left: 5px solid var(--rc-warning); }
.rc-urgence-rouge { background: var(--rc-danger-lt); border-left: 5px solid var(--rc-danger); }

/* ─── SECTION HEADERS ─── */
.rc-section-title {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}
.rc-section-title h2 {
  margin-bottom: var(--sp-sm);
}
.rc-section-title p {
  font-size: 1.05rem;
  color: var(--rc-grey-600);
}
.rc-section-title .rc-divider {
  width: 60px;
  height: 4px;
  background: var(--rc-red);
  margin: var(--sp-md) auto 0;
  border-radius: 2px;
}

/* ─── CONTAINER ─── */
.rc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}
.rc-container-sm { max-width: 800px; }
.rc-container-lg { max-width: 1440px; }

/* ─── GRID SYSTEM ─── */
.rc-grid {
  display: grid;
  gap: var(--sp-lg);
}
.rc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rc-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .rc-grid-2, .rc-grid-3, .rc-grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .rc-grid-3, .rc-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── FOOTER — RC Style (gris fonce) ─── */
.rc-footer {
  background: var(--rc-grey-900);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl);
  margin-top: auto;
}
.rc-footer a { color: rgba(255,255,255,0.85); }
.rc-footer a:hover { color: white; }
.rc-footer-brand {
  font-family: var(--font-cond);
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: var(--sp-md);
}
.rc-footer-brand .sos { color: var(--rc-red); }
.rc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md) var(--sp-xl);
  font-size: 14px;
  margin-bottom: var(--sp-lg);
}
.rc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-lg);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* ─── FORM ELEMENTS — RC Style ─── */
.rc-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--rc-grey-300);
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 15px;
  color: var(--rc-black);
  transition: border-color var(--ease);
  outline: none;
  background: white;
}
.rc-input:focus {
  border-color: var(--rc-red);
  box-shadow: 0 0 0 3px rgba(226,0,26,0.1);
}
.rc-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--rc-grey-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── ALERT BOXES ─── */
.rc-alert {
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rc-alert-danger {
  background: var(--rc-danger-lt);
  border: 1px solid rgba(226,0,26,0.2);
  color: #8B0000;
}
.rc-alert-warning {
  background: var(--rc-warning-lt);
  border: 1px solid rgba(226,174,73,0.3);
  color: #8B6914;
}
.rc-alert-success {
  background: var(--rc-success-lt);
  border: 1px solid rgba(27,138,74,0.2);
  color: #0A5C2F;
}
.rc-alert-info {
  background: var(--rc-info-lt);
  border: 1px solid rgba(0,120,200,0.2);
  color: #004A7C;
}

/* ─── STAT / NUMBER DISPLAY ─── */
.rc-stat {
  text-align: center;
  padding: var(--sp-lg);
}
.rc-stat-number {
  font-family: var(--font-cond);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--rc-red);
  line-height: 1;
}
.rc-stat-label {
  font-size: 14px;
  color: var(--rc-grey-600);
  margin-top: 4px;
}

/* ─── PROGRESS / GAUGE ─── */
.rc-progress {
  width: 100%;
  height: 8px;
  background: var(--rc-grey-200);
  border-radius: 4px;
  overflow: hidden;
}
.rc-progress-bar {
  height: 100%;
  background: var(--rc-red);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.rc-progress-bar.green { background: var(--rc-success); }
.rc-progress-bar.gold { background: var(--rc-gold); }

/* ─── DIVIDER ─── */
.rc-hr {
  border: none;
  height: 1px;
  background: var(--rc-grey-200);
  margin: var(--sp-xl) 0;
}

/* ─── UTILITIES ─── */
.rc-text-center { text-align: center; }
.rc-text-red { color: var(--rc-red) !important; }
.rc-text-gold { color: var(--rc-gold) !important; }
.rc-text-muted { color: var(--rc-grey-500) !important; }
.rc-bg-light { background: var(--rc-bg) !important; }
.rc-bg-red-lt { background: var(--rc-red-lt) !important; }
.rc-mt-0 { margin-top: 0 !important; }
.rc-mb-0 { margin-bottom: 0 !important; }
.rc-mb-md { margin-bottom: var(--sp-md) !important; }
.rc-mb-lg { margin-bottom: var(--sp-lg) !important; }
.rc-mb-xl { margin-bottom: var(--sp-xl) !important; }

/* ─── SCROLL INDICATOR (RC red line at top) ─── */
.rc-scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--rc-red);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ─── RESPONSIVE ADJUSTMENTS ─── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .rc-nav { height: 56px; padding: 0 var(--sp-md); }
  .rc-nav-logo { font-size: 22px; }
  .rc-hero { padding: var(--sp-2xl) var(--sp-md) var(--sp-xl); }
  .rc-container { padding: 0 var(--sp-md); }
  .rc-btn-lg { padding: 14px 28px; font-size: 16px; }
  .rc-footer { padding: var(--sp-xl) var(--sp-md) var(--sp-md); }
  .rc-footer-bottom { flex-direction: column; }
}
