/* css/quel-salaire.css */

.rv-page {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f7f7f7;
}

.rv-page h1, .rv-page h2, .rv-page h3, .rv-page h4, .rv-page h5, .rv-page h6 {
  font-family: 'Manrope', sans-serif;
}

/* HERO */
.rv-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 60px 20px 100px;
  overflow: hidden;
}

.rv-hero__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.rv-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.rv-hero__inner {
  position: relative;
  z-index: 2;
  /* max-width géré par .container (Bootstrap 5) — ajout lee */
  margin: 0 auto;
  width: 100%;
}

.rv-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
}

.rv-hero__features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
}

.rv-hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}

.rv-hero__features li::before {
  content: '\f058'; /* fa-check-circle */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #bff574;
  font-size: 18px;
}

.rv-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.rv-hero__ctas .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ec1c24;
  border: 1px solid #ec1c24;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* Famille CTA rouge : survol = fond blanc, bordure + texte rouge. */
.rv-hero__ctas .btn-primary:hover {
  background-color: #fff;
  border-color: #ec1c24;
  color: #ec1c24;
}

/* OVERLAP QUOTE */
.rv-overlap-quote {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: -60px auto 30px;
  padding: 0 20px;
}

.rv-overlap-quote__inner {
  background: #fff;
  padding: 30px 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
}

.rv-overlap-quote__inner p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.rv-overlap-quote__icon, .rv-overlap-quote__icon-right {
  position: absolute;
  color: #4738de;
  font-size: 24px;
}

.rv-overlap-quote__icon {
  top: 20px;
  left: 20px;
}

.rv-overlap-quote__icon-right {
  bottom: 20px;
  right: 20px;
}

/* BREADCRUMB */
.rv-breadcrumb {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.rv-breadcrumb__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.rv-breadcrumb__inner a {
  color: #333;
  text-decoration: none;
}

.rv-breadcrumb__inner a:hover {
  text-decoration: underline;
}

/* MAIN LAYOUT */
.rv-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.rv-layout__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* SIDEBAR */
.rv-sidebar__sommaire {
  background: #eef0fa;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.rv-sidebar__sommaire h3 {
  color: #ec1c24;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.rv-sidebar__sommaire ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.rv-sidebar__sommaire a {
  color: #4738de;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  display: block;
}

.rv-sidebar__sommaire a:hover {
  text-decoration: underline;
}

.rv-sidebar__cta {
  background: #4738de;
  color: #fff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
}

.rv-sidebar__cta p {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
}

.rv-sidebar__cta .btn-green {
  display: inline-block;
  background: #bff574;
  border: 2px solid #bff574;
  color: #333;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Famille CTA lime : survol = fond blanc, bordure + texte lime. */
.rv-sidebar__cta .btn-green:hover {
  background: #fff;
  border-color: #bff574;
  color: #bff574;
}

.rv-sidebar__cta small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.4;
}

.rv-sidebar__share {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.rv-sidebar__share .share-icons {
  display: flex;
  gap: 10px;
}

.rv-sidebar__share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.rv-sidebar__share a:hover {
  background: #4738de;
  color: #fff;
  border-color: #4738de;
}

/* CONTENT */
.rv-content h2 {
  color: #4738de;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  padding-top: 20px;
}

.rv-content h3.rv-h3-blue {
  color: #4738de;
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px;
}

.rv-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 20px;
}

.rv-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.rv-content li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #444;
}

.rv-note {
  border: 1px solid #ec1c24;
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
  background: #fff;
}

.rv-note__header {
  background: #ec1c24;
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 10px;
  font-size: 14px;
}

.rv-note__body {
  padding: 20px;
  display: flex;
  gap: 15px;
}

.rv-note__body i {
  color: #ec1c24;
  font-size: 24px;
  margin-top: 5px;
}

.rv-note__body p {
  margin: 0;
  font-size: 14px;
}

.rv-note--with-image {
  display: flex;
  border: none;
  background: none;
  align-items: center;
  gap: 30px;
}

.rv-note--with-image > img {
  width: 200px;
  border-radius: 12px;
}

.rv-note--with-image .rv-note__content {
  border: 1px solid #ec1c24;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex: 1;
}

.rv-note--reverse {
  flex-direction: row-reverse;
}

.rv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0 10px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.rv-table th {
  background: #4738de;
  color: #fff;
  font-weight: 600;
  padding: 15px;
  text-align: center;
  font-size: 13px;
}

.rv-table td {
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.rv-table tr:last-child td {
  border-bottom: none;
}

.rv-table tr.bg-light {
  background: #f8f9ff;
}

.rv-table-caption {
  font-size: 12px !important;
  color: #888 !important;
  font-style: italic;
  margin-top: 5px !important;
}

.rv-content-image {
  width: 100%;
  border-radius: 12px;
  margin: 30px 0;
}

.rv-formula {
  background: #4738de;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin: 30px 0;
}

.rv-formula strong {
  display: block;
  font-size: 18px;
  margin-bottom: 15px;
}

.rv-formula p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 13px;
}

.rv-conseils-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.rv-conseils-images img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1;
  object-fit: cover;
}

/* FAQ */
.rv-faq {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  background: #fff;
  margin: 40px 0;
}

.rv-faq h3 {
  color: #4738de;
  font-size: 18px;
  text-align: center;
  margin: 0 0 30px;
}

.rv-faq__list {
  display: grid;
  gap: 15px;
}

.rv-faq__item {
  border-bottom: 1px solid #eee;
}

.rv-faq__item:last-child {
  border-bottom: none;
}

.rv-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  list-style: none;
}

.rv-faq__question::-webkit-details-marker {
  display: none;
}

.rv-faq__question .fa-minus {
  display: none;
}

.rv-faq__item[open] .rv-faq__question .fa-plus {
  display: none;
}

.rv-faq__item[open] .rv-faq__question .fa-minus {
  display: block;
}

.rv-faq__answer {
  padding: 0 0 15px;
  color: #666;
  font-size: 14px;
}

/* AUTHOR */
.rv-author {
  background: #eef0fa;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.rv-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.rv-author strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.rv-author span {
  display: block;
  font-size: 12px;
  color: #666;
}

/* CHARTE */
.rv-charte {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
}

.rv-charte img {
  width: 40px;
}

.rv-charte a {
  display: block;
  color: #4738de;
  font-weight: 600;
  margin-bottom: 10px;
  text-decoration: underline;
}

.rv-charte p {
  font-size: 13px;
  margin: 0;
}

/* BOTTOM CTA */
.rv-bottom-cta {
  background: #4738de;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.rv-bottom-cta h2 {
  font-size: 32px;
  margin: 0 0 25px;
  color: #fff;
}

.rv-bottom-cta .btn-red {
  display: inline-block;
  background: #ec1c24;
  border: 2px solid #ec1c24;
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 15px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Famille CTA rouge : survol = fond blanc, bordure + texte rouge. */
.rv-bottom-cta .btn-red:hover {
  background: #fff;
  border-color: #ec1c24;
  color: #ec1c24;
}

.rv-bottom-cta p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* RELATED */
.rv-related {
  padding: 60px 20px;
  background: #f7f7f7;
  max-width: 1200px;
  margin: 0 auto;
}

.rv-related h2 {
  text-align: center;
  font-size: 28px;
  color: #333;
  margin: 0 0 40px;
}

.rv-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.rv-related__grid a {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px 20px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  transition: all 0.3s;
}

.rv-related__grid a:hover {
  border-color: #4738de;
  color: #4738de;
}

.rv-related__more {
  text-align: center;
}

.rv-related__more .btn-blue-outline {
  display: inline-block;
  background: #4738de;
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .rv-layout__inner {
    grid-template-columns: 1fr;
  }
  
  .rv-sidebar {
    display: flex;
    gap: 20px;
  }
  
  .rv-sidebar__sommaire, .rv-sidebar__cta {
    flex: 1;
    margin-bottom: 0;
  }
  
  .rv-sidebar__share {
    display: none;
  }

  .rv-conseils-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rv-hero {
    padding: 40px 20px 80px;
  }
  
  .rv-hero h1 {
    font-size: 32px;
  }
  
  .rv-overlap-quote {
    margin-top: -40px;
  }
  
  .rv-overlap-quote__inner {
    padding: 20px;
  }
  
  .rv-sidebar {
    flex-direction: column;
  }
  
  .rv-note--with-image {
    flex-direction: column;
  }
  
  .rv-note--with-image > img {
    width: 100%;
  }

  .rv-related__grid {
    grid-template-columns: 1fr;
  }
}
