/* =========================================
   GENERAL MANAGER PRESENTATION SECTION
   (section-gm.css)
========================================= */

.section-gm {
  --gm-font-display: "Manrope", "Avenir Next", "Avenir", sans-serif;
  --gm-font-body: "Roboto", system-ui, sans-serif;

  --gm-brown: #391a00;
  --gm-orange: #ef8e01;
  --gm-teal: #009e96;
  --gm-card: rgba(255, 255, 255, 0.9);
  --gm-card-border: rgba(57, 26, 0, 0.09);
  --gm-muted: rgba(42, 30, 22, 0.78);
  --gm-text: #19130f;
  --gm-text-soft: #2a221d;
  --gm-shadow: 0 18px 45px rgba(25, 18, 10, 0.08);

  position: relative;
  padding-block: 3.5rem;
  background:
    radial-gradient(circle at 6% 8%, rgba(239, 142, 1, 0.08), transparent 35%),
    radial-gradient(circle at 92% 90%, rgba(0, 158, 150, 0.08), transparent 35%),
    linear-gradient(180deg, #fbfaf7 0%, #f6f4ef 100%);
  overflow: clip;
  font-family: var(--gm-font-body);
  color: var(--gm-text-soft);
}

.section-gm::before {
  content: "";
  position: absolute;
  inset: auto -7rem -6rem auto;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 158, 150, 0.14), transparent 70%);
  pointer-events: none;
}

.section-gm .img-holder {
  aspect-ratio: var(--width) / var(--height);
  overflow: hidden;
  background: #f1efe8;
  border-radius: 14px;
}

.section-gm .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-gm .has-before,
.section-gm .has-after {
  position: relative;
  z-index: 1;
}

.section-gm .has-before::before,
.section-gm .has-after::after {
  content: "";
  position: absolute;
}

.mot-madame-container {
  position: relative;
  z-index: 1;
}

.gm-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  grid-template-columns: 1fr;
  grid-template-areas:
    "center"
    "right"
    "left";
}

.md-left { grid-area: left; }
.md-center { grid-area: center; }
.md-right { grid-area: right; }

.gm-card {
  position: relative;
  background: var(--gm-card);
  border: 1px solid var(--gm-card-border);
  border-radius: 18px;
  box-shadow: var(--gm-shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===== LEFT COLUMN ===== */
.md-left {
  display: grid;
  gap: 1rem;
}

.md-left-item {
  padding: 0.95rem;
  min-width: 0;
}

.gm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.gm-card-head--tight {
  margin-bottom: 0.45rem;
}

.gm-eyebrow {
  font-family: var(--gm-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(57, 26, 0, 0.78);
}

.gm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 158, 150, 0.22);
  background: rgba(0, 158, 150, 0.06);
  color: var(--gm-teal);
  font-weight: 700;
  font-size: 0.68rem;
  white-space: nowrap;
  font-family: var(--gm-font-display);
}

.gm-chip--soft {
  border-color: rgba(239, 142, 1, 0.22);
  background: rgba(239, 142, 1, 0.06);
  color: #9e5f00;
}

.gm-mark { flex: 0 0 auto; display: block; }
.gm-mark--sm { width: 22px; height: 16px; opacity: 0.9; }
.gm-mark--lg { width: 74px; height: 54px; opacity: 0.95; }
.gm-mark--line { width: 22px; height: 16px; opacity: 0.9; }

.gm-card-title {
  margin: 0 0 0.7rem;
  font-family: var(--gm-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--gm-text);
}

.gm-card-note {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gm-muted);
}

/* ===== PRIORITY CHIPS (same language/style as "Tourisme" / "Swiper main project") ===== */
.gm-priority-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gm-priority-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 158, 150, 0.18);
  background: rgba(0, 158, 150, 0.05);
  color: var(--gm-teal);
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.15;
  white-space: nowrap;
  font-family: var(--gm-font-display);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* subtle alternating accent (optional but nice) */
.gm-priority-chip:nth-child(even) {
  border-color: rgba(239, 142, 1, 0.18);
  background: rgba(239, 142, 1, 0.05);
  color: #9e5f00;
}

.gm-sub-divider {
  margin: 0.7rem 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gm-sub-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(57,26,0,.14), rgba(57,26,0,.04));
}

/* ===== PROJECTS BLOCK (now used inside center card) ===== */
.gm-projects-block {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(57, 26, 0, 0.14);
}

.gm-projects-block--compact .swiper-main-project {
  padding-bottom: 0.8rem;
}

.gm-message-card .gm-projects-block .gm-card-head {
  margin-bottom: 0.55rem;
}

/* ===== SVG LINE CHART ===== */
.gm-line-chart-wrap {
  margin-top: 0.1rem;
  padding: 0.55rem 0.55rem 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(57, 26, 0, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.52));
}

.gm-line-chart-legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.gm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--gm-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.gm-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.gm-legend-dot--line {
  background: linear-gradient(90deg, var(--gm-orange), var(--gm-teal));
  box-shadow: 0 0 0 2px rgba(239, 142, 1, 0.12);
}

.gm-legend-dot--area {
  background: rgba(0, 158, 150, 0.18);
  border: 1px solid rgba(0, 158, 150, 0.18);
}

.gm-line-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.gm-chart-grid line {
  stroke: rgba(57, 26, 0, 0.10);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.gm-chart-ylabels text,
.gm-chart-xlabels text {
  fill: rgba(57, 26, 0, 0.58);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--gm-font-display);
}

.gm-chart-ylabels text { text-anchor: start; }
.gm-chart-xlabels text { text-anchor: middle; }

.gm-chart-area-path {
  fill: rgba(0, 158, 150, 0.10);
  opacity: 0;
}

.gm-chart-line-glow,
.gm-chart-line-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gm-chart-line-glow {
  stroke: rgba(0, 158, 150, 0.22);
  stroke-width: 8;
  opacity: 0;
}

.gm-chart-line-path {
  stroke: #0c9a91;
  stroke-width: 3;
  filter: drop-shadow(0 2px 6px rgba(0, 158, 150, 0.18));
}

.gm-point-ring {
  fill: rgba(255,255,255,0.86);
  stroke: rgba(0, 158, 150, 0.25);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.gm-point-core {
  fill: var(--gm-orange);
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.gm-point[data-point-index="2"] .gm-point-core,
.gm-point[data-point-index="3"] .gm-point-core {
  fill: var(--gm-teal);
}

.gm-point-label {
  fill: var(--gm-brown);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--gm-font-display);
  text-anchor: middle;
  opacity: 0;
}

.gm-chart-trend {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gm-trend-up {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gm-teal);
  background: rgba(0, 158, 150, 0.08);
  border: 1px solid rgba(0, 158, 150, 0.15);
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-family: var(--gm-font-display);
}

.gm-trend-up i { font-size: 0.8rem; }
.gm-trend-meta { font-size: 0.66rem; color: var(--gm-muted); }

/* ===== CENTER MESSAGE ===== */
.gm-message-card {
  padding: 1rem;
  min-width: 0;
  overflow: hidden;
}

.gm-message-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -22%;
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 142, 1, 0.10), transparent 72%);
  pointer-events: none;
}

.gm-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.gm-main-title {
  margin: 0.15rem 0 0;
  font-family: var(--gm-font-display);
  font-size: clamp(1.25rem, 2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: #130f0b;
  max-width: 20ch;
  text-wrap: balance;
}

.gm-divider {
  margin: 0.85rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gm-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(239,142,1,.35), rgba(0,158,150,.2), rgba(57,26,0,.08));
}

.gm-quote {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 142, 1, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.5)),
    radial-gradient(circle at top left, rgba(239, 142, 1, 0.06), transparent 70%);
  color: #1f1813;
  font-family: var(--gm-font-display);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 600;
  font-style: normal;
  border-left: 4px solid rgba(239, 142, 1, 0.55);
}

.gm-copy {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.gm-copy p {
  margin: 0;
  color: rgba(17, 13, 10, 0.88);
  line-height: 1.7;
  font-size: 0.98rem;
  font-weight: 400;
}

.gm-signature {
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(57, 26, 0, 0.14);
}

.gm-signature__name {
  font-family: var(--gm-font-display);
  font-weight: 800;
  color: var(--gm-brown);
  font-size: 0.95rem;
}

.gm-signature__role {
  color: var(--gm-muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
  font-weight: 500;
}

/* ===== PROJECT SWIPER CARDS ===== */
.swiper-main-project {
  overflow: hidden;
  padding-bottom: 1rem;
}

.swiper-mp-item { height: auto; }

.mp-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 14px;
  border: 1px solid rgba(57, 26, 0, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.66));
  box-shadow: 0 8px 24px rgba(26, 19, 10, 0.05);
  overflow: hidden;
}

.mp-media {
  position: relative;
  margin: 0.45rem 0.45rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    inset 0 0 0 1px rgba(57, 26, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 6px 18px rgba(20, 20, 20, 0.06);
  aspect-ratio: 1.35 / 1;
  background: #f4f1ea;
}

.mp-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.10));
  pointer-events: none;
}

.mp-media img { transition: transform 0.35s ease; }
.mp-card:hover .mp-media img { transform: scale(1.04); }

.mp-content { padding: 0.55rem 0.55rem 0.6rem; }

.mp-title {
  margin: 0;
  font-family: var(--gm-font-display);
  font-size: 0.8rem;
  color: var(--gm-text);
  line-height: 1.2;
  font-weight: 700;
}

.mp-text {
  margin: 0.25rem 0 0;
  color: var(--gm-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.mp-pagination {
  position: static !important;
  margin-top: 0.25rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.mp-pagination .swiper-pagination-bullet {
  width: 5px;
  height: 5px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(57, 26, 0, 0.28);
  opacity: 1;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.mp-pagination .swiper-pagination-bullet-active {
  width: 14px;
  background: linear-gradient(90deg, var(--gm-orange), var(--gm-teal));
}

/* ===== RIGHT PORTRAIT ===== */
.md-right { min-width: 0; }

.portrait-card {
  padding: 0.9rem;
  height: 100%;
  overflow: hidden;
  perspective: 900px;
}

.portrait-card__deco {
  position: absolute;
  top: -1.2rem;
  right: -1.2rem;
  width: 6.5rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 158, 150, 0.20), transparent 65%);
  pointer-events: none;
}

.portrait-media-wrap {
  border-radius: 16px;
  padding: 0.3rem;
  background:
    linear-gradient(135deg, rgba(239, 142, 1, 0.28), rgba(0, 158, 150, 0.24), rgba(57, 26, 0, 0.14));
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.portrait-media {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    inset 0 0 0 1px rgba(57, 26, 0, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateZ(14px);
}

.portrait-media img { transition: transform 0.45s ease; }
.portrait-media-wrap:hover .portrait-media img { transform: scale(1.045); }

.portrait-media-wrap.has-before::before {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 84%;
  border-radius: 18px;
  background: repeating-linear-gradient(
    45deg,
    rgba(239, 142, 1, 0.08) 0px,
    rgba(239, 142, 1, 0.08) 8px,
    rgba(0, 158, 150, 0.06) 8px,
    rgba(0, 158, 150, 0.06) 16px
  );
  z-index: -1;
}

.hover\:shine {
  position: relative;
  overflow: hidden;
}

.hover\:shine::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -65%;
  width: 42%;
  height: 120%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.24) 45%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.18) 60%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.hover\:shine:hover::after {
  opacity: 1;
  animation: gmShine 0.95s ease forwards;
}

@keyframes gmShine {
  from { left: -65%; }
  to { left: 130%; }
}

.portrait-card-content { margin-top: 0.75rem; }

.portrait-name {
  margin: 0.2rem 0 0;
  color: var(--gm-text);
  font-family: var(--gm-font-display);
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 800;
}

.portrait-role {
  margin: 0.25rem 0 0;
  color: var(--gm-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 500;
}

.portrait-meta {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.portrait-meta li {
  display: grid;
  gap: 0.06rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(57, 26, 0, 0.06);
}

.portrait-meta li span {
  color: var(--gm-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--gm-font-display);
  font-weight: 700;
}

.portrait-meta li strong {
  color: var(--gm-brown);
  font-size: 0.78rem;
  line-height: 1.28;
  font-weight: 600;
}

/* Reveal fallback */
.gm-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.gm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   BREAKPOINTS
========================= */

@media (min-width: 576px){
  .section-gm { padding-block: 3.8rem; }
  .gm-layout { gap: 1.1rem; }
  .gm-card, .md-left-item { border-radius: 20px; }
  .md-left-item { padding: 1rem; }
  .gm-message-card { padding: 1.1rem; }

  .gm-main-title { max-width: 24ch; }
  .gm-quote { font-size: 1.02rem; }
  .gm-copy p { font-size: 1rem; }

  .gm-line-chart-wrap { padding: 0.6rem 0.6rem 0.5rem; }
  .gm-priority-chip { font-size: 0.72rem; }
}

@media (min-width: 768px){
  .section-gm { padding-block: 4.2rem; }
  .gm-layout { gap: 1.15rem; }
  .gm-message-card { padding: 1.2rem; }

  .gm-main-title { font-size: clamp(1.4rem, 2vw, 2.2rem); }
  .gm-copy p { font-size: 1.03rem; line-height: 1.72; }

  .md-left-item { padding: 1.05rem; }
  .portrait-card { padding: 1rem; }
}

@media (min-width: 992px){
  /* 2-column state */
  .gm-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "left right";
    gap: 1.2rem;
  }

  .md-left { grid-template-rows: auto auto; }

  .gm-message-card {
    padding: 1.3rem;
    min-height: 100%;
  }

  .gm-main-title { max-width: 22ch; }
  .portrait-name { font-size: 1.05rem; }
}

@media (min-width: 1200px){
  /* left and right equal, center wider */
  .gm-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-areas: "left center right";
    gap: 1.25rem;
  }

  .md-left { grid-template-rows: auto auto; }

  .gm-card, .md-left-item { border-radius: 22px; }
  .gm-message-card { padding: 1.4rem; }

  .gm-main-title {
    max-width: 19ch;
    font-size: clamp(1.55rem, 1.8vw, 2.35rem);
  }

  .gm-quote {
    font-size: 1.05rem;
    line-height: 1.55;
    padding: 1rem 1.05rem;
  }

  .gm-copy p {
    font-size: 1.04rem;
    line-height: 1.75;
  }

  .portrait-role { font-size: 0.82rem; }
}

@media (min-width: 1400px){
  .section-gm { padding-block: 4.8rem; }
  .gm-layout { gap: 1.35rem; }
  .gm-message-card { padding: 1.55rem; }

  .md-left-item, .portrait-card { padding: 1.05rem; }

  .gm-main-title {
    font-size: clamp(1.7rem, 1.9vw, 2.55rem);
    max-width: 18ch;
  }

  .gm-quote { font-size: 1.08rem; }
  .gm-copy p { font-size: 1.06rem; }

  .mp-title { font-size: 0.84rem; }
}