/* ===================================
   RT Consulting Talents – styles.css
   =================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1b2c5e;
  --coral:  #e8566e;
  --coral-dark: #c94460;
  --gray-light: #f5f6f8;
  --gray-mid:   #e8eaf0;
  --text:   #2d3142;
  --text-light: #5a607a;
  --white:  #ffffff;
  --font:   'Montserrat', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(27,44,94,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-light); }

.section__title {
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 48px;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--coral);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 26px;
}
.btn--dark:hover { background: #14224b; }

.btn--coral {
  background: var(--coral);
  color: var(--white);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 26px;
}
.btn--coral:hover { background: var(--coral-dark); }

.btn--cta {
  background: var(--coral);
  color: var(--white);
  font-size: .75rem;
  padding: 12px 18px;
  border-radius: 6px;
  flex-direction: row;
  gap: 6px;
}
.btn--cta:hover { background: var(--coral-dark); }

.btn--outline-dark {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-size: .85rem;
}
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

.btn--icon { flex-direction: row; align-items: center; padding: 16px 28px; font-size: .85rem; }

.btn__sub {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  opacity: .85;
  letter-spacing: .02em;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo__img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform .2s;
}

.logo:hover .logo__img {
  transform: scale(1.05);
}

.logo__rt {
  background: var(--navy);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  letter-spacing: -.02em;
}

.logo__text {
  font-size: .65rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: .08em;
}

.logo--white .logo__text { color: var(--white); }
.logo--white .logo__rt { background: var(--coral); }

/* Nav */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item a {
  display: block;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 4px;
  transition: color .2s;
  white-space: nowrap;
}

.nav__item a:hover,
.nav__item--active > a { color: var(--navy); }

.nav__item--active > a {
  border-bottom: 2px solid var(--navy);
  border-radius: 0;
}

.chevron { font-size: .7em; }

/* Dropdown */
.nav__item--dropdown { position: relative; }

.dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-mid);
  min-width: 220px;
  /* padding-top crée un pont invisible entre le nav item et le dropdown */
  padding: 8px 0 8px;
  margin-top: 0;
  z-index: 200;
  transition: opacity .15s ease, visibility .15s ease;
  /* délai de fermeture : laisse le temps à la souris de traverser le pont */
  transition-delay: 0s;
}

/* Pont invisible qui comble le gap entre le lien et le dropdown */
.dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav__item--dropdown:hover .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Délai de 150ms avant fermeture pour laisser le temps de descendre */
.nav__item--dropdown:not(:hover) .dropdown {
  transition-delay: 150ms;
}

.dropdown li a {
  padding: 10px 20px;
  font-size: .82rem;
  font-weight: 500;
  display: block;
}
.dropdown li a:hover { background: var(--gray-light); color: var(--navy); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #f0f2f8 0%, #e8ebf5 100%);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 24px;
}

.hero__label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: .95rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
}

/* Placeholder fond si image manquante */
.hero__image {
  background: linear-gradient(160deg, #dce2f0 0%, #c8d0e8 100%);
  min-height: 480px;
}

/* ---- Stats Bar ---- */
.statsbar {
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  padding: 28px 0;
}

.statsbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
  color: var(--text);
  flex: 1;
  min-width: 160px;
}

.stat__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--navy);
}

.stat__text strong { font-weight: 700; }

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--gray-mid);
  flex-shrink: 0;
}

/* ---- Needs ---- */
.needs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.needs__card {
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.needs__card--dark {
  background: var(--navy);
  color: var(--white);
}

.needs__card--light {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  box-shadow: var(--shadow);
}

.needs__icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.needs__icon--coral {
  background: rgba(232,86,110,.1);
}

.needs__heading {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.needs__heading--coral { color: var(--coral); }

.needs__tagline {
  font-size: 1.15rem;
  font-weight: 700;
}

.needs__card--dark .needs__tagline { color: var(--white); }

.needs__desc {
  font-size: .875rem;
  opacity: .85;
  line-height: 1.7;
}

.needs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .875rem;
}

.needs__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.needs__list--dark li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.needs__list--light li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.needs__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 8px;
}

.needs__link--dark { color: var(--white); opacity: .9; }
.needs__link--dark:hover { opacity: 1; text-decoration: underline; }

.needs__link--coral { color: var(--coral); }
.needs__link--coral:hover { text-decoration: underline; }

/* ---- Why ---- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why__card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s;
}

.why__card:hover { transform: translateY(-4px); }

.why__icon {
  width: 64px;
  height: 64px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.why__card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why__card p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---- Expertises ---- */
.expertises__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertises__card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.expertises__icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.expertises__title {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.expertises__desc {
  font-size: .85rem;
  opacity: .8;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.tag {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--white);
  cursor: default;
}

/* ---- Testimonials ---- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial__quote {
  font-size: 4rem;
  color: var(--coral);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.testimonial p {
  font-size: .87rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 24px;
}

.testimonial__author strong {
  display: block;
  font-size: .82rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

.stars {
  color: #f5c518;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ---- Avis Google ---- */
.gavis { background: var(--white); }

.gavis__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.gavis__score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gavis__glogo { flex-shrink: 0; }

.gavis__stars {
  color: #FBBC05;
  font-size: 1.3rem;
  letter-spacing: 2px;
  line-height: 1;
}

.gavis__note {
  font-size: .88rem;
  color: var(--text-light);
  margin-top: 3px;
}
.gavis__note strong { color: var(--text); font-weight: 700; }

.gavis__cta-link {
  font-size: .8rem;
  font-weight: 700;
  color: #4285F4;
  letter-spacing: .04em;
  transition: opacity .15s;
  white-space: nowrap;
}
.gavis__cta-link:hover { opacity: .75; }

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

.gavis__card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 12px rgba(27,44,94,.07);
  transition: transform .2s, box-shadow .2s;
}
.gavis__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(27,44,94,.12);
}

.gavis__card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.gavis__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gavis__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gavis__meta strong { font-size: .85rem; color: var(--text); }
.gavis__meta span   { font-size: .73rem; color: var(--text-light); }

.gavis__stars-small {
  color: #FBBC05;
  font-size: .9rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.gavis__card p {
  font-size: .84rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---- CTA Final ---- */
.cta-final {
  background: linear-gradient(120deg, #1b2c5e 0%, #2a3f7e 100%);
  color: var(--white);
  padding: 80px 0;
}

.cta-final__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-final__text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-final__text p {
  font-size: .9rem;
  opacity: .8;
}

.cta-final__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-final .btn--coral { flex-direction: row; font-size: .82rem; }
.cta-final .btn--outline-dark {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  background: transparent;
}
.cta-final .btn--outline-dark:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.btn__cal { font-size: 1.1rem; }

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 48px;
}

.footer__brand .logo { margin-bottom: 16px; }

.footer__brand p {
  font-size: .8rem;
  line-height: 1.7;
  max-width: 220px;
}

.footer__col h4 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer__col ul li a:hover { color: var(--white); }

.social__icons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social__icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background .2s;
}
.social__icon:hover { background: var(--coral); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__bottom-inner span { font-size: .78rem; }

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__legal a:hover { color: var(--white); }

.privacy-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  color: #2d3142;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27,44,94,.18);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
}

.privacy-banner a {
  color: #e8566e;
  font-weight: 700;
  text-decoration: underline;
}

.privacy-banner button {
  position: relative;
  z-index: 1;
  margin-left: auto;
  background: #1b2c5e;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}

.calendly-legal {
  text-align: center;
  padding: 16px 24px;
  font-size: .75rem;
  color: var(--text-light);
}

.calendly-legal a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-mid); padding: 16px 24px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  .nav.is-open .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav.is-open .nav__item a { padding: 12px 0; font-size: .9rem; }
  .nav.is-open .dropdown { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .header__inner { position: relative; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__image { order: -1; }
  .hero__image img { height: 320px; }

  .needs__grid { grid-template-columns: 1fr; }
  .expertises__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .statsbar__inner { gap: 16px; }
  .stat__divider { display: none; }

  .cta-final__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 860px) {
  .gavis__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gavis__grid { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
  .why__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__brand { grid-column: auto; }
  .hero__btns { flex-direction: column; }
  .btn--dark, .btn--coral { width: 100%; }
  .cta-final__btns { flex-direction: column; width: 100%; }
  .cta-final__btns .btn { width: 100%; justify-content: center; }

  .privacy-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-banner button {
    width: 100%;
    margin-left: 0;
  }
}
