/*
 * gestion — page-specific styles for /landing/gestion
 * Shared components use lp-* classes from marketing-proxy.css.
 */

/* Accent override */
.gp-page {
  --lp-accent: #2FCFC8;
  --lp-accent-glow: rgba(47,207,200,.22);
  --lp-accent-border: #A8D7D4;
}

/* ---------- Hero visual ---------- */
.gp-hero__visual { position: relative; max-width: 400px; width: 100%; margin: 0 auto; text-align: center; }
.gp-hero__visual::before {
  content: ""; position: absolute; z-index: 0;
  bottom: -2%; left: 50%; transform: translateX(-50%);
  width: 104%; max-width: 500px; aspect-ratio: 1 / 1.08;
  background: #ebfffb; border-radius: 46% 54% 57% 43% / 52% 46% 54% 48%;
}
.gp-hero__visual > img { position: relative; z-index: 1; }
.gp-hero__floats {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; max-width: 420px; margin: 16px auto 0;
}
.gp-hero__float {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: #fff; border: 1px solid #E3EDF5; border-radius: 12px; padding: 9px 12px;
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 12.5px; color: #1B4159;
  box-shadow: 0 4px 14px rgba(16,24,40,.08); white-space: nowrap;
}
.gp-hero__float-ic { width: 16px; height: 16px; color: #2FCFC8; flex: none; }

/* ---------- Hero floating cards (lo-* pattern from landing-offres) ---------- */
.gp-page {
  --lo-green: #16a34a;
  --lo-green-light: #f0fdf4;
  --lo-accent: #2fcfc8;
  --lo-accent-light: #f0fdfa;
  --lo-text-dark: #1b4159;
  --lo-text-light: #5f707c;
}

.gp-page .lo-hero__cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 420px;
  align-items: flex-end;
  justify-content: center;
}

.gp-page .lo-hero__cards-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 580px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.gp-page .lo-floating-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(27, 65, 89, 0.10), 0 2px 8px rgba(27, 65, 89, 0.06);
  position: relative;
  width: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.gp-page .lo-floating-card:hover {
  box-shadow: 0 12px 40px rgba(27, 65, 89, 0.14), 0 4px 12px rgba(27, 65, 89, 0.08);
}

.gp-page .lo-floating-card--1 { z-index: 4; transform: translateX(-20px); }
.gp-page .lo-floating-card--2 { z-index: 3; margin-top: -6px; transform: translateX(16px); }
.gp-page .lo-floating-card--3 { z-index: 2; margin-top: -6px; transform: translateX(-28px); }
.gp-page .lo-floating-card--4 { z-index: 1; margin-top: -6px; transform: translateX(8px); }

.gp-page .lo-floating-card--1:hover { transform: translateX(-20px) translateY(-3px); }
.gp-page .lo-floating-card--2:hover { transform: translateX(16px) translateY(-3px); }
.gp-page .lo-floating-card--3:hover { transform: translateX(-28px) translateY(-3px); }
.gp-page .lo-floating-card--4:hover { transform: translateX(8px) translateY(-3px); }

.gp-page .lo-floating-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-page .lo-floating-card__icon .icon3d {
  width: 36px;
  height: 36px;
}

.gp-page .lo-floating-card__body {
  flex: 1;
  min-width: 0;
}

.gp-page .lo-floating-card__title {
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--lo-text-dark);
  margin: 0 0 2px;
}

.gp-page .lo-floating-card__desc {
  font-size: 12.5px;
  color: var(--lo-text-light);
  margin: 0;
  line-height: 1.4;
}

.gp-page .lo-floating-card__tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.gp-page .lo-floating-card__tag--green {
  background: #E8F4FD;
  color: #0e7ac6;
}

.gp-page .lo-floating-card__tag--blue {
  background: #EEF1F5;
  color: #5F707C;
}

/* ---------- Hero management cards ---------- */
.gp-hero__cards { display: flex; flex-direction: column; gap: 18px; }
.gp-hero__mcard {
  display: flex; align-items: center; gap: 16px;
  background: #FFFFFF; border: 1px solid #E3EDF5; border-radius: 18px;
  padding: 18px 20px; box-shadow: 0 16px 40px rgba(16,24,40,.16);
  animation: gpFloat 5s ease-in-out infinite;
}
.gp-hero__mcard--2 { margin-left: 34px; animation-delay: .7s; }
.gp-hero__mcard--3 { margin-left: 14px; animation-delay: 1.4s; }
@keyframes gpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.gp-hero__mcard-ic {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 15px; padding: 9px;
  background: #eef8fe; display: flex; align-items: center; justify-content: center;
}
.gp-hero__mcard-ic img { width: 100%; height: 100%; object-fit: contain; }
.gp-hero__mcard-body { flex: 1; min-width: 0; }
.gp-hero__mcard-title { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 16px; color: #005B85; margin: 0 0 3px; }
.gp-hero__mcard-sub { font-size: 13px; color: #5F707C; margin: 0; }
.gp-hero__mcard-check { color: #16A34A; font-size: 22px; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .gp-hero__mcard { animation: none; } }

/* ---------- Pillars ---------- */
.gp-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.gp-pillar {
  background: #fff; border-radius: 24px; padding: 34px 30px 30px;
  border: 1px solid #E3EDF5; text-align: left;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 28px rgba(16,24,40,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gp-pillar:hover { transform: translateY(-7px); box-shadow: 0 16px 40px rgba(16,24,40,.12); }
.gp-pillar__icon { margin: 0 0 20px; }
.gp-pillar .icon3d {
  width: 72px; height: 72px; display: block;
  filter: drop-shadow(0 8px 14px rgba(16,24,40,.12));
  animation: lp-floaty 5s ease-in-out infinite;
}
.gp-pillar:nth-child(2) .icon3d { animation-delay: .8s; }
.gp-pillar:nth-child(3) .icon3d { animation-delay: 1.6s; }
.gp-pillar__title { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 21px; color: #1B4159; margin: 0 0 10px; }
.gp-pillar__desc { font-size: 15px; line-height: 1.6; color: #5F707C; margin: 0; }
@media (prefers-reduced-motion: reduce) { .gp-pillar .icon3d { animation: none; } }

/* ---------- Benefits (gestion overrides) ---------- */
.gp-page .lp-benefit { margin-bottom: 72px; }
.gp-page .lp-benefit:last-child { margin-bottom: 0; }
.gp-benefit__list { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
/* text-align:left explicite : .lp-benefit__media est centre, sinon le texte des
   puces qui passe sur 2 lignes se retrouve centre au lieu d'etre ferre a gauche. */
.gp-benefit__list li { display: flex; align-items: center; gap: 18px; font-size: 20px; color: #1B4159; font-weight: 600; line-height: 1.35; margin-bottom: 22px; text-align: left; }
.gp-benefit__list li .icon3d { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 5px 9px rgba(16,24,40,.14)); }
.gp-page .lp-benefit__media { display: flex; flex-direction: column; gap: 16px; }
.gp-benefit__illu { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.gp-page .lp-benefit__media .gp-hero__cards { max-width: 420px; margin: 0 auto; }

/* ---------- Quote cards ---------- */
.gp-quote {
  background: #FFF; border-radius: 16px; padding: 20px 22px;
  border: 1px solid #E3EDF5; box-shadow: 0 4px 20px rgba(16,24,40,.06);
}
.gp-quote__text { font-size: 14px; line-height: 1.6; color: #1B4159; margin: 0 0 14px; }
.gp-quote__stars { color: #FBBF24; font-size: 16px; letter-spacing: 3px; line-height: 1; margin: 0 0 12px; }
.gp-quote__author { display: flex; align-items: center; gap: 14px; }
.gp-page .gp-quote__avatar { width: 42px !important; height: 42px !important; max-width: 42px !important; max-height: 42px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(16,24,40,.14); }
.gp-quote__name { font-weight: 700; font-size: 15px; color: #1B4159; margin: 0; }
.gp-quote__role { font-size: 12px; color: #5F707C; margin: 0; }

/* ---------- Services tabs ---------- */
.gp-tabs__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.gp-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e6f9f7; color: #1B4159; border: none;
  border-radius: 999px; padding: 11px 20px;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1;
  cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.gp-tab i { color: #2FCFC8; font-size: 16px; transition: color .15s ease; }
.gp-tab:hover { background: #ccf5f1; }
.gp-tab.is-active {
  background: #2FCFC8; color: #FFF; border: none;
  box-shadow: 0 4px 16px rgba(47,207,200,.30);
}
.gp-tab.is-active i { color: #FFF; }
.gp-tab-panel { display: none; }
.gp-tab-panel.is-active { display: block; animation: gpTabFade .25s ease; }
@keyframes gpTabFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Service cards ---------- */
.gp-svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gp-svc-card {
  background: #FFF; border-radius: 16px; padding: 22px;
  border: 1px solid #E3EDF5;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gp-svc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,24,40,.10); }
.gp-svc-card__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: #eef8fe; color: #0e6ba6;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.gp-svc-card__title { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 16px; color: #005B85; margin: 0 0 6px; }
.gp-svc-card__desc { font-size: 13px; line-height: 1.5; color: #5F707C; margin: 0; }

/* ---------- Reviews (frosted glass + testimonial grid) ---------- */
.gp-reviews-section {
  background-color: #ECFAFF;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gp-reviews-section .lp-section__eyebrow { color: #0e6ba6; }
.gp-reviews-section .lp-section__title { color: #005B85; }
.gp-reviews { text-align: center; }
.gp-reviews__grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
  max-width: 1060px; margin: 0 auto 56px; text-align: left;
}
.gp-reviews__grid .gp-quote {
  transition: transform .2s ease, box-shadow .2s ease;
}
.gp-reviews__grid .gp-quote:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(16,24,40,.12);
}
.gp-reviews__panel {
  position: relative;
  max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px; padding: 60px 40px 44px;
  box-shadow: 0 20px 60px rgba(16,24,40,.12);
}
.gp-reviews__cloud { display: block; width: 116px; height: auto; margin: -86px auto 18px; }
.gp-reviews__stars { color: #FBBF24; font-size: 32px; letter-spacing: 4px; margin-bottom: 16px; }
.gp-reviews__stars-svg { display: inline-flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.gp-reviews__stars-svg img { width: 30px; height: auto; }
.gp-reviews__badge { position: absolute; top: -30px; right: -14px; width: 72px; height: auto; transform: rotate(12deg); filter: drop-shadow(0 8px 16px rgba(16,24,40,.35)); }
@media (max-width: 600px) { .gp-reviews__badge { width: 56px; right: 8px; top: -26px; } }
.gp-reviews__count { font-family: 'Rubik', sans-serif; font-size: 22px; font-weight: 500; color: #005B85; margin: 0 0 6px; }
.gp-reviews__avg { font-size: 17px; color: #36596F; margin: 0 0 24px; }

/* ---------- Final CTA (gestion overrides) ---------- */
.gp-final-cta { background: #f6fafd; }
.gp-final-cta .lp-btn-primary { background: var(--lp-accent); box-shadow: 0 8px 32px var(--lp-accent-glow); }
.gp-final-cta .lp-btn-primary:hover { filter: brightness(1.08); }

/* ---------- Visual panel (app mockup) ---------- */
.gp-page .gp-visual { position: relative; }
.gp-page .visual-panel {
  position: relative;
  background: #f6fafd;
  border: 1px solid #E3EDF5; border-radius: 24px;
  box-shadow: 0 16px 40px rgba(16,24,40,.12);
  padding: 60px 22px 22px; overflow: visible;
}
.gp-page .visual-panel--relation { border-color: #D9E8F6; }
.gp-page .visual-panel .big3d {
  width: 74px; height: 74px; display: block; position: absolute; right: 18px; top: -18px;
  filter: drop-shadow(0 12px 20px rgba(16,24,40,.28));
  animation: lp-floaty 6s ease-in-out infinite;
}
.gp-page .ui-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #E3EDF5; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(16,24,40,.06);
  padding: 16px 18px; margin-bottom: 14px; transition: transform .2s ease;
}
.gp-page .visual-panel--relation .ui-row { border-color: #E3EDF5; }
.gp-page .ui-row:hover { transform: translateX(4px); }
.gp-page .ui-row:last-child { margin-bottom: 0; }
.gp-page .ui-row > span { flex: 1 1 auto; min-width: 0; }
.gp-page .ui-row > span.ui-pill { flex: 0 0 auto; }
.gp-page .ui-row .icon3d {
  width: 46px; height: 46px; flex: none; box-sizing: border-box; display: block;
  padding: 8px; background: #eef8fe; border-radius: 13px;
}
.gp-page .ui-row .ui-title { font-family: 'Rubik', sans-serif; font-weight: 500; color: #005B85; font-size: 16px; line-height: 1.3; }
.gp-page .ui-row .ui-sub { font-size: 13px; color: #5F707C; }
.gp-page .ui-row .ui-pill { margin-left: auto; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.gp-page .pill-ok { background: #E4F9F5; color: #14AD9E; }
.gp-page .pill-info { background: #EAF4FD; color: #1B68AE; }
.gp-page .pill-warn { background: #FEF4DF; color: #B27508; }
.gp-page .pill-rose { background: #FDEFF1; color: #E25664; }
.gp-page .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rubik', sans-serif; font-weight: 700; color: #fff; font-size: 15px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.12), 0 4px 12px rgba(16,24,40,.10);
}
.gp-page .av-blue { background: #2F90E0; }
.gp-page .av-rose { background: #E25664; }
@media (prefers-reduced-motion: reduce) { .gp-page .visual-panel .big3d { animation: none; } }

/* ---------- Responsive (page-specific) ---------- */
@media (max-width: 992px) {
  .gp-hero__visual { max-width: 380px; }
  .gp-hero__floats { max-width: 360px; }
  .gp-hero__float { font-size: 12px; padding: 8px 10px; }
  .gp-pillars { grid-template-columns: 1fr; }
  .gp-svc-grid { grid-template-columns: 1fr 1fr; }
  .gp-reviews__grid { grid-template-columns: 1fr; max-width: 480px; }
  .gp-page .lo-hero__cards { align-items: center; min-height: auto; }
  .gp-page .lo-floating-card { width: 320px; }
  .gp-page .lo-floating-card--1 { transform: translateX(-15px); }
  .gp-page .lo-floating-card--2 { transform: translateX(15px); }
  .gp-page .lo-floating-card--3 { transform: translateX(-10px); }
  .gp-page .lo-floating-card--4 { transform: translateX(12px); }
  .gp-page .lo-floating-card--1:hover { transform: translateX(-15px) translateY(-3px); }
  .gp-page .lo-floating-card--2:hover { transform: translateX(15px) translateY(-3px); }
  .gp-page .lo-floating-card--3:hover { transform: translateX(-10px) translateY(-3px); }
  .gp-page .lo-floating-card--4:hover { transform: translateX(12px) translateY(-3px); }
}
@media (max-width: 560px) {
  .gp-hero__visual { max-width: 300px; }
  .gp-hero__floats { grid-template-columns: 1fr; max-width: 260px; }
  .gp-page .lo-floating-card { width: 280px; }
  .gp-page .lo-floating-card--1 { transform: translateX(-8px); }
  .gp-page .lo-floating-card--2 { transform: translateX(8px); }
  .gp-page .lo-floating-card--3 { transform: translateX(-6px); }
  .gp-page .lo-floating-card--4 { transform: translateX(6px); }
  .gp-page .lo-floating-card--1:hover { transform: translateX(-8px) translateY(-3px); }
  .gp-page .lo-floating-card--2:hover { transform: translateX(8px) translateY(-3px); }
  .gp-page .lo-floating-card--3:hover { transform: translateX(-6px) translateY(-3px); }
  .gp-page .lo-floating-card--4:hover { transform: translateX(6px) translateY(-3px); }
}
@media (max-width: 600px) {
  .gp-svc-grid { grid-template-columns: 1fr; }
  .gp-hero__mcard--2 { margin-left: 18px; }
  .gp-hero__mcard--3 { margin-left: 8px; }
  .gp-tabs__nav {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin-left: -20px; margin-right: -20px; padding: 0 20px 8px;
  }
  .gp-tab { flex: 0 0 auto; }
  .gp-page .visual-panel { padding: 50px 14px 16px; border-radius: 20px; }
  .gp-page .ui-row { padding: 13px 14px; gap: 11px; border-radius: 14px; }
  .gp-page .ui-row .icon3d { width: 40px; height: 40px; padding: 7px; }
  .gp-page .ui-row .ui-title { font-size: 14.5px; }
  .gp-page .ui-row .ui-sub { font-size: 12px; }
  .gp-page .ui-row .ui-pill { font-size: 11px; padding: 4px 9px; }
  .gp-page .avatar { width: 40px; height: 40px; font-size: 13px; }
  .gp-page .visual-panel .big3d { width: 64px; height: 64px; top: -14px; right: 14px; }
}

/* ============================================================
   Avis / Témoignages
   ============================================================ */
.hp-reviews { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.hp-reviews__head { text-align: center; margin-bottom: 48px; }
.hp-reviews__title {
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 40px;
  line-height: 48px; color: #005B85; margin: 0 0 16px;
}
.hp-reviews__subtitle { font-size: 17px; color: #212529; line-height: 26px; margin: 0; }
.hp-reviews__grid { display: flex; gap: 24px; align-items: stretch; }
.hp-reviews__score {
  flex: 0 0 auto; min-width: 180px;
  padding: 26px 40px; background: #fff; border-radius: 16px;
  border: 1px solid #AFDBF9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.hp-reviews__score-label { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; color: #212529; }
.hp-reviews__score-value { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 40px; color: #FBBF24; line-height: 1; }
.hp-reviews__score-stars { display: flex; gap: 6px; }
.hp-reviews__score-stars svg { width: 28px; height: 28px; fill: #FBBF24; }
.hp-reviews__score-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: #005B85;
}
.hp-reviews__score-brand img { width: 24px; height: 24px; }
.hp-reviews__card {
  flex: 1 1 0; min-width: 240px;
  padding: 26px 24px; background: #fff; border-radius: 16px;
  border: 1px solid #AFDBF9;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.hp-reviews__card-header { display: flex; align-items: center; gap: 12px; }
.hp-reviews__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hp-reviews__name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; color: #005B85; }
.hp-reviews__stars { display: flex; gap: 2px; margin-top: 4px; }
.hp-reviews__stars svg { width: 14px; height: 14px; fill: #FBBF24; }
.hp-reviews__text {
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 22px; color: #212529;
  flex: 1; margin: 0;
}
.hp-reviews__footer { font-family: 'Inter', sans-serif; font-size: 12px; color: #212529; margin: 0; }
.hp-reviews__cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 48px;
  padding: 18px 32px; border-radius: 40px;
  background: var(--lp-accent);
  color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: filter .2s ease;
}
.hp-reviews__cta:hover { filter: brightness(1.08); color: #fff; }
@media (max-width: 992px) {
  .hp-reviews__grid { flex-wrap: wrap; }
  .hp-reviews__score { flex: 1 1 100%; }
  .hp-reviews__title { font-size: 32px; line-height: 40px; }
}
@media (max-width: 576px) {
  .hp-reviews__card { min-width: 100%; }
  .hp-reviews__title { font-size: 28px; line-height: 36px; }
}
