/* ============================================================
   RTG — Univers Corporate
   ============================================================ */

body.rtg-corporate {
  --rtg-bg: #171717;
  --rtg-surface: #1f1f1f;
  --rtg-text: #ffffff;
  --rtg-text-muted: rgba(255, 255, 255, 0.72);
  --rtg-line: rgba(255, 255, 255, 0.06);
  --rtg-cta-1: #7c95a3;
  --rtg-cta-2: #9b79a3;
  --rtg-header-height: 90px;

  background-color: var(--rtg-bg);
  color: var(--rtg-text);
}

body.rtg-corporate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
    to right,
    var(--rtg-line) 1px,
    transparent 1px
  );
  background-size: 450px 100%;
  background-repeat: repeat;
}

body.rtg-corporate #main,
body.rtg-corporate main,
body.rtg-corporate .page-wrapper,
body.rtg-corporate .elementor-location-header,
body.rtg-corporate .elementor-location-footer {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.rtg-corporate .rtg-section {
  background: transparent;
}

body.rtg-corporate .rtg-section .elementor-heading-title,
body.rtg-corporate .rtg-section p,
body.rtg-corporate .rtg-section li,
body.rtg-corporate .rtg-home-hero .elementor-heading-title,
body.rtg-corporate .rtg-home-hero p,
body.rtg-corporate .rtg-home-hero li {
  color: inherit;
}

body.rtg-corporate .rtg-eyebrow .elementor-heading-title {
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rtg-text-muted);
}

body.rtg-corporate .rtg-display .elementor-heading-title {
  font-size: clamp(56px, 8vw, 132px);
  max-width: 25ch;
}

body.rtg-corporate .rtg-lead p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--rtg-text-muted);
  max-width: 84ch;
}

/* ============================================================
   CORPORATE — BOUTONS
   ============================================================ */

body.rtg-corporate .rtg-btn .elementor-button,
body.rtg-corporate .elementor-widget-button.rtg-btn .elementor-button,
body.rtg-corporate .rtg-btn-primary .elementor-button,
body.rtg-corporate .rtg-btn-secondary .elementor-button {
  border-radius: 0 !important;
}

body.rtg-corporate .rtg-btn-primary .elementor-button {
  background: var(--rtg-cta-1);
  color: #ffffff;
}

body.rtg-corporate .rtg-btn-primary .elementor-button:hover {
  background: color-mix(in srgb, var(--rtg-cta-1) 88%, #ffffff 12%);
  color: #ffffff;
}

body.rtg-corporate .rtg-btn-secondary .elementor-button {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

body.rtg-corporate .rtg-btn-secondary .elementor-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

body.rtg-corporate .rtg-card {
  border-color: var(--rtg-line);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero home corporate */
body.rtg-corporate .rtg-home-hero {
  min-height: calc(100vh - var(--rtg-header-height));
  display: flex;
  align-items: center;
}

body.rtg-corporate .rtg-home-hero__inner {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: var(--rtg-container-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: end;
}

body.rtg-corporate .rtg-home-hero__main {
  max-width: 980px;
}

body.rtg-corporate .rtg-home-hero__intro {
  max-width: 420px;
  margin-bottom: 28px;
}

body.rtg-corporate .rtg-home-hero__intro p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--rtg-text-muted);
  margin: 0;
}

body.rtg-corporate .rtg-home-hero__title .elementor-heading-title {
  font-size: clamp(72px, 12vw, 170px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
}

body.rtg-corporate .rtg-home-hero__cta {
  margin-top: 32px;
}

body.rtg-corporate .rtg-home-hero__side {
  display: flex;
  justify-content: flex-end;
}

body.rtg-corporate .rtg-home-hero__socials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

body.rtg-corporate .rtg-home-hero__socials a,
body.rtg-corporate .rtg-home-hero__socials .elementor-icon-list-text {
  font-size: 14px;
  color: var(--rtg-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

body.rtg-corporate .rtg-home-hero__socials a:hover {
  color: var(--rtg-text);
}

@media (max-width: 991px) {
  body.rtg-corporate .rtg-home-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  body.rtg-corporate .rtg-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.rtg-corporate .rtg-home-hero__side {
    justify-content: flex-start;
  }

  body.rtg-corporate .rtg-home-hero__socials {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (max-width: 767px) {
  body.rtg-corporate .rtg-home-hero {
    padding-top: 96px;
    padding-bottom: 64px;
  }

  body.rtg-corporate .rtg-home-hero__title .elementor-heading-title {
    font-size: clamp(56px, 18vw, 96px);
  }
}
/* ============================================================
   CORPORATE — TITLE COLOR UTILITIES
   Utilisation Elementor :
   Avancé > Classes CSS
   Exemple : rtg-title-blue
   ============================================================ */

body.rtg-corporate .rtg-title-blue,
body.rtg-corporate .rtg-title-blue .elementor-heading-title {
  --rtg-title-color: #6383fe;
  color: var(--rtg-title-color) !important;
}

body.rtg-corporate .rtg-title-tan,
body.rtg-corporate .rtg-title-tan .elementor-heading-title {
  --rtg-title-color: tan;
  color: var(--rtg-title-color) !important;
}

body.rtg-corporate .rtg-title-cream,
body.rtg-corporate .rtg-title-cream .elementor-heading-title {
  --rtg-title-color: #f5f8cb;
  color: var(--rtg-title-color) !important;
}

body.rtg-corporate .rtg-title-sky,
body.rtg-corporate .rtg-title-sky .elementor-heading-title {
  --rtg-title-color: #5ab7fc;
  color: var(--rtg-title-color) !important;
}

body.rtg-corporate .rtg-title-coral,
body.rtg-corporate .rtg-title-coral .elementor-heading-title {
  --rtg-title-color: #ef7c62;
  color: var(--rtg-title-color) !important;
}

body.rtg-corporate .rtg-title-mint,
body.rtg-corporate .rtg-title-mint .elementor-heading-title {
  --rtg-title-color: #53e496;
  color: var(--rtg-title-color) !important;
}


/* ============================================================
   CORPORATE — TITLE OUTLINE UTILITY
   Exemple :
   rtg-display rtg-title-blue rtg-title-outline
   ============================================================ */

body.rtg-corporate .rtg-title-outline,
body.rtg-corporate .rtg-title-outline .elementor-heading-title {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: var(--rtg-title-stroke-width, 1px);
  -webkit-text-stroke-color: var(--rtg-title-color, currentColor);
}

body.rtg-corporate .rtg-title-outline-2,
body.rtg-corporate .rtg-title-outline-2 .elementor-heading-title {
  --rtg-title-stroke-width: 2px;
}

/* ============================================================
   CORPORATE — MENU PRINCIPAL PORTO
   Objectif :
   - conserver la taille, typo, padding et structure Porto
   - lien normal blanc
   - lien actif / hover bleu #6383FE
   - aucun soulignement
   ============================================================ */

@media (min-width: 992px) {

  /* Menu corporate uniquement */
  body.rtg-corporate #menu-corporate_menu,
  body.rtg-corporate #menu-corporate_menu.main-menu,
  body.rtg-corporate #menu-corporate_menu.mega-menu {
    list-style: none;
  }

  /* Liens niveau 1 — on ne touche PAS à la taille ni aux espacements Porto */
  body.rtg-corporate #menu-corporate_menu > li.menu-item > a {
    color: #ffffff !important;
    text-decoration: none !important;
  }

  /* État actif WordPress / Porto */
  body.rtg-corporate #menu-corporate_menu > li.active > a,
  body.rtg-corporate #menu-corporate_menu > li.current-menu-item > a,
  body.rtg-corporate #menu-corporate_menu > li.current_page_item > a,
  body.rtg-corporate #menu-corporate_menu > li.current-menu-ancestor > a,
  body.rtg-corporate #menu-corporate_menu > li.current-menu-parent > a,
  body.rtg-corporate #menu-corporate_menu > li > a.current {
    color: #6383FE !important;
    text-decoration: none !important;
  }

  /* Hover */
  body.rtg-corporate #menu-corporate_menu > li.menu-item > a:hover,
  body.rtg-corporate #menu-corporate_menu > li.menu-item:hover > a,
  body.rtg-corporate #menu-corporate_menu > li.menu-item.focus > a {
    color: #6383FE !important;
    text-decoration: none !important;
  }

  /* Suppression stricte des soulignements / pseudo-éléments éventuels */
  body.rtg-corporate #menu-corporate_menu > li > a::before,
  body.rtg-corporate #menu-corporate_menu > li > a::after {
    display: none !important;
    content: none !important;
  }

  /* Sécurité si Porto ou Elementor ajoute une bordure active */
  body.rtg-corporate #menu-corporate_menu > li,
  body.rtg-corporate #menu-corporate_menu > li > a {
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  /* Si le thème applique une couleur aux spans internes */
  body.rtg-corporate #menu-corporate_menu > li > a span {
    color: inherit !important;
    text-decoration: none !important;
  }
}

/* ============================================================
   CORPORATE — BANDEAU DE RÉASSURANCE
   Classes Elementor :
   - rtg-reassurance
   - rtg-reassurance__inner
   - rtg-reassurance__grid
   - rtg-reassurance__item
   - rtg-reassurance__icon
   - rtg-reassurance__label
   - rtg-reassurance__microcopy
   ============================================================ */

body.rtg-corporate .rtg-reassurance {
  position: relative;
  width: 100%;
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 56px);
  background: transparent;
}

body.rtg-corporate .rtg-reassurance__inner {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(99, 131, 254, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

body.rtg-corporate .rtg-reassurance__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

body.rtg-corporate .rtg-reassurance__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 150px;
  padding: 10px clamp(18px, 2vw, 32px);
  text-align: center;
}

body.rtg-corporate .rtg-reassurance__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  width: 1px;
  height: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.12);
}

/* Icône Elementor */
body.rtg-corporate .rtg-reassurance__icon {
  margin-bottom: 18px;
}

body.rtg-corporate .rtg-reassurance__icon .elementor-icon,
body.rtg-corporate .rtg-reassurance__icon i,
body.rtg-corporate .rtg-reassurance__icon svg {
  display: inline-flex;
  width: clamp(44px, 4vw, 64px);
  height: clamp(44px, 4vw, 64px);
  color: #ffffff;
  fill: none;
  stroke: currentColor;
}

/* Si icône Font Awesome */
body.rtg-corporate .rtg-reassurance__icon i {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

/* Si SVG Elementor */
body.rtg-corporate .rtg-reassurance__icon svg path,
body.rtg-corporate .rtg-reassurance__icon svg circle,
body.rtg-corporate .rtg-reassurance__icon svg rect,
body.rtg-corporate .rtg-reassurance__icon svg line,
body.rtg-corporate .rtg-reassurance__icon svg polyline,
body.rtg-corporate .rtg-reassurance__icon svg polygon {
  stroke: currentColor;
}

/* Label */
body.rtg-corporate .rtg-reassurance__label,
body.rtg-corporate .rtg-reassurance__label .elementor-heading-title {
  margin: 0;
  font-family: var(--rtg-font-body);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #ffffff !important;
}

/* Microcopy */
body.rtg-corporate .rtg-reassurance__microcopy {
  position: relative;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(22px, 3vw, 34px);
  text-align: center;
}

body.rtg-corporate .rtg-reassurance__microcopy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 760px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    rgba(99, 131, 254, 0.85),
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

body.rtg-corporate .rtg-reassurance__microcopy,
body.rtg-corporate .rtg-reassurance__microcopy p {
  margin-bottom: 0;
  font-family: var(--rtg-font-body);
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
}

body.rtg-corporate .rtg-reassurance__microcopy strong {
  font-weight: 500;
  color: #6383FE;
}

/* ============================================================
   RESPONSIVE — TABLETTE / MOBILE
   ============================================================ */

@media (max-width: 991px) {
  body.rtg-corporate .rtg-reassurance__inner {
    width: min(100%, calc(100% - 32px));
    padding: 32px 24px;
  }

  body.rtg-corporate .rtg-reassurance__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.rtg-corporate .rtg-reassurance__item {
    min-height: 150px;
    padding: 24px 18px;
  }

  body.rtg-corporate .rtg-reassurance__item::after {
    display: none;
    content: none;
  }

  body.rtg-corporate .rtg-reassurance__item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.rtg-corporate .rtg-reassurance__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 767px) {
  body.rtg-corporate .rtg-reassurance {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  body.rtg-corporate .rtg-reassurance__inner {
    width: min(100%, calc(100% - 24px));
    padding: 28px 18px;
  }

  body.rtg-corporate .rtg-reassurance__item {
    min-height: 132px;
    padding: 20px 12px;
  }

  body.rtg-corporate .rtg-reassurance__icon {
    margin-bottom: 14px;
  }

  body.rtg-corporate .rtg-reassurance__label,
  body.rtg-corporate .rtg-reassurance__label .elementor-heading-title {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.25;
  }

  body.rtg-corporate .rtg-reassurance__microcopy {
    margin-top: 26px;
    padding-top: 24px;
  }

  body.rtg-corporate .rtg-reassurance__microcopy,
  body.rtg-corporate .rtg-reassurance__microcopy p {
    font-size: 15px;
    line-height: 1.5;
  }
}
