/*
Theme Name: Rif Xalima
Theme URI: https://rifxalima.sn
Author: Cherif Diouck
Author URI: https://rifxalima.sn
Description: Thème officiel du portail sénégalais Rif Xalima — Emploi, Restauration, Écoles CAMES, Concours. Palette tricolore sénégalaise (#00853F, #FDEF42, #E31B23). Polices Poppins + Inter.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rif-xalima
Tags: senegal, portal, blog, custom-colors, custom-menu, responsive-layout
*/

/* =============================================
   VARIABLES
============================================= */
:root {
  --sn-green:  #00853F;
  --sn-green-dark: #006830;
  --sn-red:    #E31B23;
  --sn-yellow: #FDEF42;
  --sn-dark:   #0f172a;
  --sn-slate:  #475569;
  --sn-light:  #f8fafc;
  --sn-border: #e2e8f0;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--sn-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--sn-green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sn-green-dark); }

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

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; }

/* =============================================
   LAYOUT
============================================= */
.rx-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.rx-section { padding: 64px 0; }

.rx-section-sm { padding: 40px 0; }

/* =============================================
   HEADER
============================================= */
.rx-header {
  background: #fff;
  border-bottom: 1px solid var(--sn-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

.rx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

/* Flag stripe */
.rx-flag-stripe {
  height: 3px;
  background: linear-gradient(to right, var(--sn-green) 33.33%, var(--sn-yellow) 33.33% 66.66%, var(--sn-red) 66.66%);
}

/* Logo */
.rx-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.rx-logo__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--sn-dark);
  letter-spacing: -0.02em;
}

.rx-logo__title span:first-child { color: var(--sn-green); }
.rx-logo__title span:last-child  { color: var(--sn-red); }

.rx-logo__sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--sn-slate);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.rx-logo__sub span { margin: 0 3px; }
.rx-logo__sub span:nth-child(1) { color: var(--sn-green); }
.rx-logo__sub span:nth-child(3) { color: var(--sn-red); }

/* Nav */
.rx-nav { display: flex; align-items: center; gap: 0.25rem; }

.rx-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  white-space: nowrap;
}

.rx-nav a:hover,
.rx-nav a.current-menu-item {
  background: #f1f5f9;
  color: var(--sn-dark);
}

.rx-nav__contact {
  background: var(--sn-green) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}

.rx-nav__contact:hover {
  background: var(--sn-green-dark) !important;
}

/* Burger */
.rx-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}

.rx-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sn-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.rx-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 1.25rem 16px;
  border-top: 1px solid var(--sn-border);
  gap: 4px;
  background: #fff;
}

.rx-mobile-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
}

.rx-mobile-menu a:hover { background: #f1f5f9; color: var(--sn-dark); }

@media (max-width: 768px) {
  .rx-nav { display: none; }
  .rx-burger { display: flex; }
  .rx-mobile-menu.open { display: flex; }
}

/* =============================================
   HERO HOME
============================================= */
.rx-hero {
  background: linear-gradient(135deg, var(--sn-green-dark) 0%, var(--sn-green) 60%, #14532d 100%);
  color: #fff;
  padding: 72px 1.25rem 60px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.rx-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.rx-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.rx-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.15;
}

.rx-hero h1 mark {
  background: var(--sn-yellow);
  color: var(--sn-dark);
  padding: 2px 12px;
  border-radius: 6px;
}

.rx-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.rx-hero__search {
  display: flex;
  gap: 12px;
  max-width: 580px;
  margin-bottom: 24px;
}

.rx-hero__search input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.rx-hero__search button {
  background: var(--sn-yellow);
  color: var(--sn-dark);
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  transition: opacity 0.2s;
}

.rx-hero__search button:hover { opacity: 0.9; }

.rx-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.rx-hero__tags span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.rx-hero__tags span:hover { background: rgba(255,255,255,0.22); }

/* =============================================
   TOOLS CARDS (HOME)
============================================= */
.rx-tools { background: var(--sn-light); }

.rx-tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.rx-tool-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--sn-border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rx-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.rx-tool-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.rx-tool-card__icon--green { background: #d1fae5; }
.rx-tool-card__icon--red   { background: #fee2e2; }
.rx-tool-card__icon--blue  { background: #dbeafe; }
.rx-tool-card__icon--amber { background: #fef3c7; }

.rx-tool-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sn-dark);
}

.rx-tool-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.rx-tool-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.rx-tool-card__cta:hover { opacity: 0.85; }

.rx-btn-green { background: var(--sn-green); color: #fff; }
.rx-btn-red   { background: var(--sn-red); color: #fff; }
.rx-btn-blue  { background: #2563eb; color: #fff; }
.rx-btn-amber { background: #d97706; color: #fff; }

/* =============================================
   SECTION TITLE
============================================= */
.rx-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.rx-section-title__badge {
  display: inline-block;
  background: #d1fae5;
  color: var(--sn-green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.rx-section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--sn-dark);
  margin-bottom: 12px;
}

.rx-section-title p {
  color: #64748b;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   STATS BAR
============================================= */
.rx-stats {
  background: var(--sn-dark);
  color: #fff;
}

.rx-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
}

.rx-stat {
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.rx-stat:last-child { border-right: none; }

.rx-stat__num {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--sn-yellow);
  line-height: 1;
  margin-bottom: 6px;
}

.rx-stat__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* =============================================
   LATEST JOBS (HOME PREVIEW)
============================================= */
.rx-jobs-preview { background: #fff; }

.rx-jobs-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.rx-job-mini {
  background: var(--sn-light);
  border: 1px solid var(--sn-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  border-left: 3px solid var(--sn-green);
}

.rx-job-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rx-job-mini__badge {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: #d1fae5;
  color: var(--sn-green);
  width: fit-content;
}

.rx-job-mini h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sn-dark);
}

.rx-job-mini__meta {
  font-size: 0.8rem;
  color: #64748b;
}

/* =============================================
   NEWSLETTER
============================================= */
.rx-newsletter {
  background: linear-gradient(135deg, var(--sn-green-dark), var(--sn-green));
  color: #fff;
}

.rx-newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.rx-newsletter h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.rx-newsletter p {
  opacity: 0.88;
  font-size: 1rem;
  margin: 0;
}

.rx-newsletter__form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.rx-newsletter__form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.rx-newsletter__form button {
  background: var(--sn-yellow);
  color: var(--sn-dark);
  border: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.rx-newsletter__form button:hover { opacity: 0.9; }

/* =============================================
   FOOTER
============================================= */
.rx-footer {
  background: var(--sn-dark);
  color: rgba(255,255,255,0.75);
}

.rx-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding: 56px 0 40px;
}

.rx-footer__brand h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.rx-footer__brand h3 span:first-child { color: var(--sn-green); }
.rx-footer__brand h3 span:nth-child(2) { color: #fff; }
.rx-footer__brand h3 span:last-child  { color: var(--sn-red); }

.rx-footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.rx-footer__col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 16px;
}

.rx-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.rx-footer__col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.rx-footer__col ul li a:hover { color: #fff; }

.rx-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* =============================================
   PAGE HERO (INNER PAGES)
============================================= */
.rx-page-hero {
  padding: 48px 1.25rem 40px;
  color: #fff;
}

.rx-page-hero__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 12px;
}

.rx-page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.rx-page-hero p {
  font-size: 1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0;
}

/* =============================================
   CONTENT
============================================= */
.rx-content { padding: 48px 1.25rem; }

.wp-block-image { margin: 1.5rem 0; }

.entry-title { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 16px; }

.entry-content { max-width: 760px; }

.entry-content p { color: #475569; line-height: 1.8; margin-bottom: 1.25rem; }

.entry-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.entry-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .rx-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .rx-hero__search { flex-direction: column; }
  .rx-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .rx-footer__bottom { flex-direction: column; text-align: center; }
  .rx-stats__grid { grid-template-columns: 1fr 1fr; }
  .rx-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* =============================================
   UTILITIES
============================================= */
.rx-text-center { text-align: center; }
.rx-mt-8 { margin-top: 2rem; }

.rx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.rx-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.rx-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* =============================================
   BLOG (archive.php / single.php)
============================================= */
.rx-blog-hero {
  background: linear-gradient(135deg, #00853F 0%, #00a04a 100%);
  color: #fff;
  padding: 70px 20px 50px;
  text-align: center;
}
.rx-blog-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  margin: 0 0 12px;
  font-weight: 800;
}
.rx-blog-hero__subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0;
}
.rx-blog-list { padding: 60px 20px; background: #f9fafb; }
.rx-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.rx-post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rx-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.rx-post-card__link { text-decoration: none; color: inherit; display: block; }
.rx-post-card__thumb {
  height: 200px;
  background: linear-gradient(135deg, #00853F, #fdef42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.rx-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rx-post-card__body { padding: 25px; }
.rx-post-card__meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}
.rx-post-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: #111;
  font-weight: 700;
  line-height: 1.3;
}
.rx-post-card__excerpt {
  color: #6b7280;
  margin: 0 0 15px;
  line-height: 1.6;
}
.rx-post-card__cta {
  color: #00853F;
  font-weight: 700;
}
.rx-pagination { margin-top: 50px; text-align: center; }
.rx-pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 4px;
  background: #fff;
  border-radius: 8px;
  color: #00853F;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}
.rx-pagination .page-numbers.current {
  background: #00853F;
  color: #fff;
  border-color: #00853F;
}

/* =============================================
   MOBILE RESPONSIVE GLOBAL
============================================= */
@media (max-width: 640px) {
  .rx-blog-hero__title { font-size: 1.75rem; }
  .rx-blog-hero__subtitle { font-size: 1rem; }
  .rx-posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .rx-post-card__title { font-size: 1.15rem; }
  .rx-container { padding-left: 16px; padding-right: 16px; }
  .rx-section { padding: 40px 0; }
  .rx-hero h1, .rx-hero__title { font-size: 1.85rem !important; line-height: 1.2; }
  .rx-hero p { font-size: 1rem !important; }
  .rx-stats__grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .rx-card, .rx-feature { padding: 20px !important; }
  .rx-grid, [class*="grid-cols"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .rx-stats__grid { grid-template-columns: 1fr; }
}

/* Menu burger mobile */
@media (max-width: 768px) {
  .rx-header__nav { display: none; }
  .rx-header__nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .rx-header__burger { display: block !important; }
}
.rx-header__burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #00853F;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE GLOBAL — Tablette & Mobile (renforcement)
═══════════════════════════════════════════════════════ */

/* Conteneur fluide */
.rx-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Tablette < 1024px */
@media (max-width: 1024px) {
  .rx-container { padding: 0 18px; }
  .rx-hero h1, .rx-hero__title { font-size: 2.2rem !important; }
  .rx-hero p { font-size: 1.05rem !important; }
  .rx-section { padding: 50px 0 !important; }
  .rx-grid-3, .rx-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .rx-tools__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
  .rx-stats__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .rx-footer__top { grid-template-columns: 1fr 1fr !important; gap: 30px !important; }
  img, video, iframe { max-width: 100%; height: auto; }
}

/* Tablette portrait & gros téléphone < 768px */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .rx-container { padding: 0 14px; }
  .rx-nav { display: none !important; }
  .rx-burger { display: flex !important; }
  .rx-hero { padding: 50px 16px 40px !important; }
  .rx-hero h1, .rx-hero__title { font-size: 1.75rem !important; line-height: 1.2; }
  .rx-hero p { font-size: 1rem !important; }
  .rx-section { padding: 36px 0 !important; }
  .rx-section h2, .rx-section__title { font-size: 1.5rem !important; }
  .rx-grid-3, .rx-grid-4, .rx-tools__grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .rx-stats__grid { grid-template-columns: 1fr 1fr !important; }
  .rx-footer__top { grid-template-columns: 1fr !important; gap: 28px !important; text-align: left; }
  .rx-footer__bottom { flex-direction: column !important; gap: 12px; text-align: center !important; }
  .rx-flag-stripe { height: 4px !important; }
  .rx-logo__title { font-size: 1.1rem !important; }
  .rx-logo__sub { font-size: 0.7rem !important; }
}

/* Téléphone < 560px */
@media (max-width: 560px) {
  .rx-container { padding: 0 12px; }
  .rx-hero h1, .rx-hero__title { font-size: 1.4rem !important; }
  .rx-hero p { font-size: 0.95rem !important; }
  .rx-stats__grid { grid-template-columns: 1fr !important; }
  .rx-section { padding: 28px 0 !important; }
  .rx-section h2, .rx-section__title { font-size: 1.25rem !important; }
  .rx-card, .rx-tools__card { padding: 16px !important; }
  .rx-cta__buttons { flex-direction: column; gap: 10px; }
  .rx-cta__buttons a, .rx-cta__buttons button { width: 100%; text-align: center; }
}

/* Petit téléphone < 380px */
@media (max-width: 380px) {
  .rx-hero h1, .rx-hero__title { font-size: 1.2rem !important; }
  .rx-logo__title { font-size: 0.95rem !important; }
  .rx-logo__sub { display: none; }
}

/* Anti-débordement horizontal global */
html, body { overflow-x: hidden; max-width: 100%; }
* { box-sizing: border-box; }

/* Menu mobile : style amélioré */
.rx-mobile-menu { display: none; }
.rx-mobile-menu.open {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; padding: 16px; border-top: 2px solid #00853F;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.rx-mobile-menu.open a {
  padding: 12px 14px; border-radius: 8px; color: #0f172a;
  font-weight: 600; text-decoration: none; transition: all .2s;
}
.rx-mobile-menu.open a:hover { background: #f0fdf4; color: #00853F; }
