/* ========================================================= */
/* GRETA Search Experience - V7                              */
/* Recherche globale : hero media séparé + résultats clairs  */
/* ========================================================= */

.gse-experience,
.gse-experience * {
  box-sizing: border-box;
}

.gse-experience {
  --gse-media-opacity: 0.88;
  --gse-accent-green: #43a93f;
  --gse-accent-teal: #17b3c1;
  --gse-dark: #14343f;
  --gse-muted: rgba(20,52,63,0.72);
  --gse-card: rgba(255,255,255,0.88);
  --gse-card-strong: rgba(255,255,255,0.96);
  --gse-border: rgba(255,255,255,0.78);

  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--gse-dark);
  background: #f7fbfb;
}

/* ========================================================= */
/* Hero : le média de fond est limité au hero uniquement      */
/* ========================================================= */

.gse-hero-stage {
  position: relative;
  width: 100%;
  min-height: 60vh;
  padding: clamp(92px, 11vh, 132px) 24px clamp(58px, 7vh, 84px);
  overflow: hidden;
  isolation: isolate;

  background: linear-gradient(180deg, #f8fbfa 0%, #eef8f5 100%);
}

.gse-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--gse-hero-image);
  background-size: cover;
  background-position: center;
  opacity: var(--gse-media-opacity);
  filter: blur(7px) saturate(1.04) contrast(1.05);
  transform: scale(1.055);
  pointer-events: none;
}

/* Si une vidéo est renseignée, elle est le seul média de fond :
   l'image de fallback ne doit pas se superposer par-dessus. */
.gse-experience.gse-has-video .gse-hero-stage::before {
  display: none !important;
}

.gse-hero-stage::after {
  content: none !important;
  display: none !important;
}

.gse-hero-video {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--gse-media-opacity);
  filter: blur(7px) saturate(1.04) contrast(1.05);
  transform: scale(1.055);
  pointer-events: none;
}

.gse-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.gse-hero {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 34px;
  text-align: center;
}

.gse-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(67,169,63,0.18);
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #0b7f7a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow:
    0 10px 26px rgba(20,52,63,0.08),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

.gse-hero .gse-eyebrow {
  margin-bottom: 18px;
}

.gse-hero h1 {
  margin: 0;
  color: var(--gse-dark);
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.gse-hero p {
  max-width: 850px;
  margin: 20px auto 0;
  color: var(--gse-muted);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 750;
  line-height: 1.5;
}

/* ========================================================= */
/* Zone résultats : conteneur séparé du hero                  */
/* ========================================================= */

.gse-results-stage {
  position: relative;
  padding: 50px 24px 88px;
  background:
    radial-gradient(circle at 12% 4%, rgba(38,204,177,0.10), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(67,169,63,0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5fbfa 44%, #edf7fb 100%);
}

.gse-results-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(120deg, transparent 0 54%, rgba(23,179,193,0.045) 54% 70%, transparent 70% 100%);
}

.gse-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--gse-dark);
}

/* ========================================================= */
/* Search hub                                                */
/* ========================================================= */

.gse-search-hub {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 18px 20px;

  display: grid;
  grid-template-columns:
    minmax(300px, 1.55fr)
    minmax(140px, 0.72fr)
    minmax(220px, 1.05fr)
    minmax(168px, 0.86fr)
    minmax(190px, 0.96fr)
    minmax(270px, auto);
  gap: 14px;
  align-items: end;

  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.70);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 22px 60px rgba(20,52,63,0.12),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.gse-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gse-field label {
  color: rgba(20,52,63,0.74);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gse-field input[type="search"],
.gse-field select {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: 16px;
  border: 1px solid rgba(20,52,63,0.10);
  outline: none;
  background: rgba(255,255,255,0.96);
  color: var(--gse-dark);
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    0 9px 20px rgba(20,52,63,0.07),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.gse-field input[type="search"]::placeholder {
  color: rgba(20,52,63,0.50);
  font-weight: 650;
}

.gse-field input[type="search"]:focus,
.gse-field select:focus {
  background: #ffffff;
  border-color: rgba(23,179,193,0.38);
  box-shadow:
    0 14px 30px rgba(20,52,63,0.11),
    0 0 0 3px rgba(23,179,193,0.13),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.gse-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  align-items: end;
  min-width: 0;
}

.gse-actions button,
.gse-reset,
.gse-card-button,
.gse-section-link,
.gse-pagination a,
.gse-suggestions a {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.52);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--gse-dark) !important;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow:
    0 10px 24px rgba(20,52,63,0.10),
    inset 0 1px 0 rgba(255,255,255,0.60);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gse-actions button {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(67,169,63,0.92), rgba(23,179,193,0.86));
}

.gse-reset {
  color: var(--gse-dark) !important;
  background: rgba(255,255,255,0.58);
}

.gse-actions button:hover,
.gse-reset:hover,
.gse-card-button:hover,
.gse-section-link:hover,
.gse-pagination a:hover,
.gse-suggestions a:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.92);
  box-shadow:
    0 16px 34px rgba(20,52,63,0.14),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

/* ========================================================= */
/* States / summary                                          */
/* ========================================================= */

.gse-summary {
  margin: 0 0 32px;
  color: var(--gse-muted);
  font-size: 16px;
  font-weight: 800;
}

.gse-summary strong {
  margin-left: 6px;
  color: var(--gse-dark);
}

.gse-empty-state,
.gse-no-results {
  padding: 34px;
  border-radius: 30px;
  background: var(--gse-card);
  border: 1px solid var(--gse-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 58px rgba(20,52,63,0.12);
}

.gse-empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 30px;
  align-items: center;
}

.gse-empty-state h2,
.gse-no-results h2 {
  margin: 12px 0 10px;
  color: var(--gse-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.gse-empty-state p,
.gse-no-results p {
  max-width: 760px;
  margin: 0;
  color: var(--gse-muted);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 650;
}

.gse-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.gse-suggestions a {
  min-height: 38px;
  font-size: 12px;
}

/* ========================================================= */
/* Sections                                                  */
/* ========================================================= */

.gse-section {
  margin: 0 0 42px;
}

.gse-section:not(.gse-section-recommended) {
  padding-top: 2px;
}

.gse-section-header {
  margin: 0 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.gse-section-kicker,
.gse-section-header > div > span:not(.gse-section-icon) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(23,179,193,0.18);
  background: rgba(255,255,255,0.70);
  color: #0b7f7a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(20,52,63,0.06);
}

.gse-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  line-height: 1;
}

.gse-section-header h2 {
  margin: 0;
  color: var(--gse-dark);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.gse-section-header p {
  max-width: 820px;
  margin: 9px 0 0;
  color: var(--gse-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
}

.gse-section-link {
  flex: 0 0 auto;
  min-height: 40px;
  font-size: 12px;
}

.gse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ========================================================= */
/* Cards                                                     */
/* ========================================================= */

.gse-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid var(--gse-border);
  background: var(--gse-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    0 18px 48px rgba(20,52,63,0.12),
    inset 0 1px 0 rgba(255,255,255,0.66);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.gse-card:hover {
  transform: translateY(-3px);
  background: var(--gse-card-strong);
  border-color: rgba(255,255,255,0.95);
  box-shadow:
    0 26px 64px rgba(20,52,63,0.16),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.gse-card-featured {
  border-color: rgba(23,179,193,0.24);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.76)),
    linear-gradient(90deg, rgba(67,169,63,0.10), rgba(23,179,193,0.10));
}

.gse-card-media {
  display: block;
}

.gse-card-image {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(20,52,63,0.13);
}

.gse-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67,169,63,0.84), rgba(23,179,193,0.76));
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.gse-card-body {
  min-width: 0;
}

.gse-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.gse-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23,179,193,0.20);
  background: rgba(255,255,255,0.76);
  color: #0b7f7a;
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gse-badge-recommended {
  color: #ffffff;
  border-color: rgba(255,255,255,0.60);
  background: linear-gradient(90deg, rgba(67,169,63,0.86), rgba(23,179,193,0.78));
}

.gse-card-title {
  margin: 0 0 10px;
  color: var(--gse-dark);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.gse-card-title a {
  color: var(--gse-dark) !important;
  text-decoration: none !important;
}

.gse-card-desc {
  max-width: 940px;
  margin: 0 0 18px;
  color: rgba(20,52,63,0.78);
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 600;
}

.gse-card-desc p {
  margin: 0 0 8px;
}

.greta-result-subtitle,
.greta-result-label,
.greta-result-text {
  display: block;
}

.gse-card-desc .greta-result-text {
  margin: 0 0 8px;
}

.greta-result-subtitle {
  margin: 0 0 8px;
  color: var(--gse-dark);
  font-size: 17px;
  font-weight: 950;
}

.greta-result-label {
  margin: 0 0 5px;
  color: var(--gse-dark);
  font-size: 13.5px;
  font-weight: 950;
}

.gse-card-button {
  min-height: 39px;
  padding: 0 17px;
  color: #ffffff !important;
  font-size: 12px;
  background: linear-gradient(90deg, rgba(67,169,63,0.88), rgba(23,179,193,0.82));
}

/* ========================================================= */
/* Pagination                                                */
/* ========================================================= */

.gse-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}

.gse-pagination a {
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
}

.gse-pagination a.is-current {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(67,169,63,0.82), rgba(23,179,193,0.78));
  border-color: rgba(255,255,255,0.90);
}

/* ========================================================= */
/* Responsive                                                */
/* ========================================================= */

@media (max-width: 1280px) {
  .gse-search-hub {
    grid-template-columns: 1.5fr 0.8fr 1.15fr;
  }

  .gse-field-search {
    grid-column: 1 / -1;
  }

  .gse-actions {
    grid-column: 1 / -1;
    width: min(100%, 420px);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .gse-hero-stage {
    min-height: 58vh;
    padding: 72px 18px 46px;
  }

  .gse-results-stage {
    padding: 40px 18px 64px;
  }

  .gse-wrap {
    max-width: 760px;
  }

  .gse-search-hub {
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
  }

  .gse-field-search {
    grid-column: 1 / -1;
  }

  .gse-empty-state {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .gse-hero-stage {
    min-height: 56vh;
    padding: 58px 14px 38px;
  }

  .gse-results-stage {
    padding: 34px 14px 56px;
  }

  .gse-search-hub {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 22px;
  }

  .gse-actions {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gse-actions button,
  .gse-reset {
    width: 100%;
  }

  .gse-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gse-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
  }

  .gse-card-image {
    width: 100%;
    height: 170px;
  }

  .gse-card-title {
    font-size: 23px;
  }
}
