/* =========================================================
   RH Compétences NEW — style.css
   Charte graphique : vert sauge / beige sable / anthracite
   Playfair Display (titres) + Montserrat (textes & boutons)
   ========================================================= */

/* --- Variables ----------------------------------------- */
:root {
  --rh-sauge:      #A6B896;
  --rh-sauge-dark: #40532F;
  --rh-doux:       #DDE5DB;
  --rh-sable:      #E9E5DC;
  --rh-anthracite: #2B2B2B;
  --rh-blanc:      #FAF9F5;
  --rh-white:      #FFFFFF;
  --rh-text:       #202319;
}

/* --- Global -------------------------------------------- */
html, body { overflow-x: hidden; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--rh-text);
  background-color: var(--rh-blanc);
  line-height: 1.75em;
  padding-top: 120px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--rh-anthracite);
  margin-top: 0;
}
h1 { font-size: 50px; line-height: 1.25em; }
h2 { font-size: 36px; line-height: 1.3em; }
h3 { font-size: 30px; line-height: 1.3em; }
h4 { font-size: 20px; line-height: 1.3em; }
p  { line-height: 1.7; margin-bottom: 8px; }
ul li { line-height: 1.5; }
a  { color: var(--rh-sauge-dark); text-decoration: none; }
a:hover { color: var(--rh-sauge); }

/* --- Boutons -------------------------------------------- */
.btn-rh-primary,
.btn-rh-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--rh-sauge-dark);
  color: #fff !important;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1em;
  padding: 15px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-rh-nav { padding: 11px 22px; font-size: 14px; }
.btn-rh-primary:hover, .btn-rh-primary:focus,
.btn-rh-nav:hover, .btn-rh-nav:focus {
  background-color: var(--rh-anthracite);
  color: #fff !important;
  transform: translateY(-1px);
}
.rh-arrow { display: inline-block; transition: transform 0.2s; }
.btn-rh-primary:hover .rh-arrow, .btn-rh-nav:hover .rh-arrow { transform: translateX(3px); }

.btn-rh-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: var(--rh-anthracite) !important;
  border: 1.5px solid var(--rh-anthracite);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 15px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-rh-outline:hover {
  background-color: var(--rh-anthracite);
  color: #fff !important;
}

/* --- Navbar ------------------------------------------- */
.navbar-rh {
  background-color: var(--rh-blanc);
  border-bottom: 1px solid var(--rh-sable);
  min-height: auto;
  padding: 8px 0 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
}
.navbar-rh .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-rh .navbar-brand img {
  max-width: 120px;
  height: auto;
}
.navbar-rh .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rh-anthracite) !important;
  padding: 0.35rem 1.1rem !important;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.navbar-rh .nav-link:hover,
.navbar-rh .nav-link.active {
  color: var(--rh-sauge-dark) !important;
  border-bottom-color: var(--rh-sauge);
}
.rh-burger {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rh-doux);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.rh-burger:hover { background: var(--rh-sauge); }
.rh-burger:focus { box-shadow: 0 0 0 3px rgba(166, 184, 150, 0.35); outline: none; }
.rh-burger-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--rh-sauge-dark);
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
}
.rh-burger-bar:nth-child(1) { width: 20px; }
.rh-burger-bar:nth-child(2) { width: 26px; }
.rh-burger-bar:nth-child(3) { width: 16px; }
.rh-burger[aria-expanded="true"] .rh-burger-bar {
  width: 22px;
}
.rh-burger[aria-expanded="true"] .rh-burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rh-burger[aria-expanded="true"] .rh-burger-bar:nth-child(2) {
  opacity: 0;
}
.rh-burger[aria-expanded="true"] .rh-burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Éléments décoratifs (arc + branche, charte graphique) --- */
.rh-deco-arc {
  position: absolute;
  color: var(--rh-sauge);
  opacity: 0.55;
  pointer-events: none;
}
.rh-deco-arc svg { width: 100%; height: 100%; display: block; }

/* --- Hero (photo plein fond + texte en surimpression) -- */
.rh-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  overflow: hidden;
  background-position: 8% center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--rh-blanc);
}
@media (min-width: 992px) {
  .rh-hero { aspect-ratio: 1950 / 724; min-height: 420px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .rh-hero {
    min-height: 420px;
    background-position: right center;
  }
}
.rh-hero > .container {
  width: 100%;
}
.rh-hero-text {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  max-width: 500px;
}
.rh-hero-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-sauge-dark);
  margin-bottom: 0.8rem;
}
.rh-hero-text h1 {
  font-size: 34px;
  margin-bottom: 1.2rem;
}
.rh-hero-text p {
  font-size: 17px;
  color: var(--rh-text);
  margin-bottom: 1.8rem;
}
.rh-hero-text p strong { color: var(--rh-anthracite); font-weight: 600; }
.rh-hero-text p a { color: var(--rh-sauge-dark); font-weight: 600; text-decoration: underline; }

.rh-hero-arc {
  width: 220px;
  height: 220px;
  left: -60px;
  bottom: -70px;
  z-index: 1;
  opacity: 0.4;
}

/* --- Hero pages intérieures (photo plein fond + texte à venir) --- */
.rh-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--rh-blanc);
}
@media (min-width: 992px) {
  .rh-page-hero { aspect-ratio: 1950 / 450; min-height: 0; }
}
.rh-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(250,249,245,0), var(--rh-blanc));
  pointer-events: none;
}
.rh-page-hero > .container {
  width: 100%;
}
.rh-page-hero-text {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  max-width: 500px;
}
.rh-page-hero-text h1 {
  font-size: 34px;
  margin-bottom: 1rem;
}
.rh-page-hero-text p {
  font-size: 17px;
  color: var(--rh-text);
  margin-bottom: 0.9rem;
}
.rh-page-hero-text p:last-child { margin-bottom: 0; }
@media (max-width: 767.98px) {
  .rh-page-hero-text h1 { font-size: 26px; }
}
.rh-page-hero--align-top {
  align-items: flex-start;
  min-height: 0;
  margin-bottom: 18px;
}
@media (min-width: 992px) {
  .rh-page-hero--align-top { aspect-ratio: auto; }
}
.rh-page-hero-text--full {
  max-width: none;
  width: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
}
.rh-page-hero-text--full h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* --- Qui sommes nous : image à gauche + texte à droite --- */
.rh-qsn-approche {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}
.rh-qsn-approche-media {
  flex: 0 0 29%;
}
.rh-qsn-approche-media img {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 469;
  object-fit: cover;
  border-radius: 14px;
}
.rh-qsn-approche-text {
  flex: 1;
}
.rh-qsn-approche-text p {
  font-size: 17px;
  color: var(--rh-text);
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .rh-qsn-approche { flex-direction: column; gap: 24px; }
  .rh-qsn-approche-media { flex: none; width: 100%; }
}

/* --- Section 2 : pourquoi (4 colonnes icônes) ----------- */
.rh-section2 {
  background: var(--rh-sable);
  padding: 36px 0 36px;
}
.rh-pourquoi {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 2rem;
}
.rh-pourquoi-text { flex: 0 0 52%; }
.rh-pourquoi-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-sauge-dark);
  margin-bottom: 0.8rem;
}
.rh-pourquoi-text h2 {
  font-size: 34px;
  margin-bottom: 1.1rem;
}
.rh-pourquoi-text p {
  font-size: 16.5px;
  color: var(--rh-text);
  margin-bottom: 1.4rem;
}
.rh-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rh-anthracite);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
}
.rh-link-arrow:hover { color: var(--rh-sauge-dark); }
.rh-pourquoi-media { flex: 1; }
.rh-pourquoi-media-wrap {
  position: relative;
  max-width: 380px;
  margin-left: 30px;
  padding: 18px 40px 6px 0;
}
.rh-pourquoi-deco {
  position: absolute;
  inset: 0 0 0 40px;
  background: #e4e4da;
  border-radius: 14px;
  z-index: 0;
}
.rh-pourquoi-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 600 / 466;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(43, 43, 43, 0.1);
}
.rh-card {
  background: var(--rh-white);
  padding: 34px 24px;
  height: 100%;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(43, 43, 43, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.rh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(43, 43, 43, 0.1);
}
.rh-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rh-doux);
  color: var(--rh-sauge-dark);
}
.rh-card-icon svg { width: 26px; height: 26px; }
.rh-card h3 {
  font-size: 18px;
  color: var(--rh-anthracite);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.rh-card p {
  font-size: 15px;
  color: var(--rh-text);
  margin: 0;
  line-height: 1.6;
}

/* --- Section 4 : Le Bilan de Compétences --------------- */
/* --- Cards services (page services) --------------------- */
.rh-service-card {
  background: var(--rh-white);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 18px rgba(43, 43, 43, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.rh-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(43, 43, 43, 0.1);
}
.rh-service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.rh-service-card-body { padding: 26px 24px 28px; }
.rh-service-card h2 { font-size: 19px; margin-bottom: 0.6rem; line-height: 1.4; }
.rh-service-card p { font-size: 15px; color: var(--rh-text); line-height: 1.6; margin-bottom: 1rem; }

/* --- Page contact --------------------------------------- */
.rh-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.6rem;
}
.rh-contact-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rh-doux);
  color: var(--rh-sauge-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rh-contact-icon svg { width: 20px; height: 20px; }
.rh-contact-item strong {
  display: block;
  color: var(--rh-anthracite);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.rh-contact-item p { font-size: 15px; margin-bottom: 0; line-height: 1.6; }

.rh-form-card {
  background: var(--rh-white);
  border-radius: 14px;
  padding: 34px 32px;
  box-shadow: 0 4px 18px rgba(43, 43, 43, 0.06);
}
.rh-form-card h2 { font-size: 26px; margin-bottom: 1.3rem; }
.rh-form-card .form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rh-anthracite);
  margin-bottom: 0.35rem;
}
.rh-form-card .form-control {
  border: 1.5px solid var(--rh-doux);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  color: var(--rh-text);
}
.rh-form-card .form-control:focus {
  border-color: var(--rh-sauge-dark);
  box-shadow: 0 0 0 3px rgba(64, 83, 47, 0.12);
}
.rh-captcha-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rh-captcha-wrap img { border-radius: 6px; display: block; }
.rh-captcha-refresh {
  font-size: 13px;
  font-weight: 600;
  color: var(--rh-sauge-dark);
  white-space: nowrap;
}
.rh-captcha-wrap .form-control { max-width: 140px; }

.rh-form-result {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 14px;
  background: var(--rh-white);
  box-shadow: 0 4px 18px rgba(43, 43, 43, 0.06);
}
.rh-form-result h2 { margin-bottom: 0.8rem; }
.rh-form-result p { margin-bottom: 1.6rem; }
.rh-form-result--err h2 { color: #a5433b; }

.rh-legal-content h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--rh-sauge-dark);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}
.rh-legal-content h2:first-child { margin-top: 0; }

.rh-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(43, 43, 43, 0.06);
  line-height: 0;
}

.rh-section4 {
  background-color: var(--rh-blanc);
  padding: 40px 0 40px;
}
#bilan {
  scroll-margin-top: 140px;
}
.rh-section4-title {
  margin-bottom: 1.2rem;
}
.rh-section4-title h2 {
  font-size: 32px;
  color: var(--rh-anthracite);
  line-height: 1.3;
  white-space: nowrap;
}
.rh-section4-right h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--rh-sauge-dark);
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
}
.rh-section4-right h2:first-child { margin-top: 0; }
.rh-section4-right p.rh-group-label {
  font-size: 15px;
  color: var(--rh-anthracite);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}
.rh-section4-right ul {
  padding-left: 1.4rem;
  margin-bottom: 0;
}
.rh-section4-right ul li {
  font-size: 15px;
  color: var(--rh-text);
  line-height: 1.6;
  margin-bottom: 0.1rem;
}

/* --- Section 5 : Côté pratique ------------------------- */
.rh-section5 {
  background-color: var(--rh-doux);
  padding: 50px 0;
  border-radius: 18px;
  margin: 0 auto 0;
}
.rh-section5 .container { max-width: 960px; }
.rh-section5 h2 {
  font-size: 27px;
  color: var(--rh-anthracite);
  margin-bottom: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
}
.rh-section5 ul { padding-left: 1.3rem; }
.rh-section5 ul li {
  font-size: 16.5px;
  color: var(--rh-text);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.rh-section5 ul li strong { color: var(--rh-anthracite); }

/* --- Section CTA finale -------------------------------- */
.rh-section-cta {
  position: relative;
  background: var(--rh-sauge);
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
}
.rh-section-cta .rh-cta-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-anthracite);
  margin-bottom: 0.6rem;
}
.rh-section-cta h2 {
  margin-bottom: 0.6rem;
}
.rh-section-cta .rh-cta-texte {
  font-size: 16px;
  color: var(--rh-anthracite);
  max-width: 480px;
  margin: 0 auto 1.8rem;
}
.rh-section-cta .btn-rh-primary {
  background-color: var(--rh-anthracite);
}
.rh-section-cta .btn-rh-primary:hover {
  background-color: #1b1b1b;
}
.rh-section-cta .rh-deco-arc {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: -70px;
  color: #fff;
  opacity: 0.18;
}

/* --- Footer --------------------------------------------- */
.rh-footer {
  position: relative;
  background-color: var(--rh-sable);
  border-top: 1px solid var(--rh-doux);
  padding: 26px 0 12px;
  font-size: 15px;
  color: var(--rh-text);
  overflow: hidden;
}
.rh-footer-branch {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(380px, 42%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 100%);
  mask-image: linear-gradient(to left, #000 40%, transparent 100%);
  opacity: 0.8;
}
.rh-footer-branch img { width: 100%; height: 100%; object-fit: cover; object-position: right top; display: block; }
.rh-footer-logo { max-width: 140px; height: auto; display: block; margin-bottom: 0.8rem; }
.rh-footer .footer-label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rh-anthracite);
  margin-bottom: 0.8rem;
}
.rh-footer a { color: var(--rh-text); text-decoration: none; }
.rh-footer a:hover { color: var(--rh-sauge-dark); }
.rh-footer p { margin-bottom: 0.3rem; line-height: 1.7; font-size: 15px; }
.rh-footer-bottom {
  border-top: 1px solid var(--rh-doux);
  margin-top: 0;
  padding: 0.2rem 0;
  font-size: 13px;
  color: var(--rh-text);
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.rh-footer-bottom a {
  color: var(--rh-sauge-dark);
  font-weight: 600;
}

/* --- Animations scroll -------------------------------- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.revealed { opacity: 1 !important; transform: none !important; }

.rh-section2 .col-sm-6:nth-child(1).reveal { transition-delay: 0s; }
.rh-section2 .col-sm-6:nth-child(2).reveal { transition-delay: 0.15s; }
.rh-section2 .col-sm-6:nth-child(3).reveal { transition-delay: 0.30s; }
.rh-section2 .col-sm-6:nth-child(4).reveal { transition-delay: 0.45s; }

/* --- Responsive --------------------------------------- */
@media (max-width: 991.98px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .rh-section4-title h2 { font-size: 24px; }
  .rh-section4-right h2 { font-size: 22px; }
  .rh-section5 h2 { font-size: 23px; }
}
@media (max-width: 767.98px) {
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  h3 { font-size: 22px; }
  .navbar-rh { min-height: auto; }
  .rh-hero {
    min-height: 420px;
    background-position: right center;
  }
  .rh-hero-text { max-width: 100%; padding: 32px 0 28px; }
  .rh-hero-text h1 { font-size: 26px; }
  .rh-section4 { padding: 50px 0 20px; }
  .rh-pourquoi { flex-direction: column; gap: 28px; margin-bottom: 2.5rem; }
  .rh-pourquoi-text { flex: none; }
  .rh-pourquoi-text h2 { font-size: 26px; }
  .rh-pourquoi-media { width: 100%; }
  .rh-pourquoi-media-wrap { max-width: 100%; padding: 0; }
  .rh-pourquoi-deco { display: none; }

  /* Rangée icônes : 1 colonne */
  .rh-section2 .row.g-4 > div { flex: 0 0 100%; max-width: 100%; }
}
