/* ============================================================
   GEOMAPIA CONCEPTS — COHÉRENCE AVEC LE SITE PARENT
   Couche isolée : n'altère aucun automatisme métier.
   Version 2026-08-05.1
   ============================================================ */

:root {
  --gpc-parent-height: 76px;
  --gpc-navy: #071c27;
  --gpc-deep: #0b2c36;
  --gpc-petrol: #0a4f4b;
  --gpc-teal: #1ad2c4;
  --gpc-mint: #53e1b2;
  --gpc-lime: #c9f36b;
  --gpc-white: #ffffff;
  --gpc-text: #12303d;
  --gpc-muted: #708792;
  --gpc-line: #d8e5e2;
  --gpc-shadow: 0 18px 46px rgba(3, 24, 32, .20);
}

/* Barre de la plateforme parente */
.gpc-parentbar,
.gpc-parentbar *,
.gpc-platform-footer,
.gpc-platform-footer * {
  box-sizing: border-box;
}

.gpc-parentbar {
  position: sticky;
  top: 0;
  z-index: 5000;
  width: 100%;
  color: var(--gpc-white);
  background:
    linear-gradient(112deg, rgba(7,28,39,.99), rgba(10,79,75,.96));
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 8px 28px rgba(3, 18, 24, .18);
  backdrop-filter: blur(14px);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.gpc-parentbar__inner {
  width: min(1240px, calc(100% - 2rem));
  min-height: var(--gpc-parent-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.gpc-parentbar__brand {
  min-width: max-content;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: #fff;
  text-decoration: none;
}

.gpc-parentbar__logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.23);
}

.gpc-parentbar__identity {
  display: grid;
  gap: .08rem;
  line-height: 1.12;
}

.gpc-parentbar__identity strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .015em;
}

.gpc-parentbar__identity small {
  color: #bdd0d5;
  font-size: .69rem;
  font-weight: 650;
}

.gpc-parentbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.07);
  cursor: pointer;
}

.gpc-parentbar__toggle svg { width: 21px; height: 21px; }

.gpc-parentbar__content {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.gpc-parentbar__menus {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.gpc-parentbar__group { position: relative; }

.gpc-parentbar__menu-button {
  min-height: 44px;
  padding: .62rem .92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  border: 0;
  border-radius: 11px;
  color: #dce9ec;
  background: transparent;
  font: 800 .89rem/1 Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.gpc-parentbar__menu-button svg {
  width: 13px;
  height: 13px;
  transition: transform .18s ease;
}

.gpc-parentbar__menu-button:hover,
.gpc-parentbar__menu-button:focus-visible,
.gpc-parentbar__menu-button[aria-expanded="true"] {
  color: #fff;
  background: rgba(255,255,255,.11);
  outline: none;
}

.gpc-parentbar__menu-button[aria-expanded="true"] svg { transform: rotate(180deg); }

.gpc-parentbar__dropdown {
  position: absolute;
  top: calc(100% + .65rem);
  left: 0;
  width: 350px;
  padding: .72rem;
  border: 1px solid var(--gpc-line);
  border-radius: 19px;
  color: var(--gpc-text);
  background: rgba(255,255,255,.995);
  box-shadow: var(--gpc-shadow);
}

.gpc-parentbar__dropdown--right { left: auto; right: 0; }
.gpc-parentbar__dropdown[hidden] { display: none !important; }

.gpc-parentbar__dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 26px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--gpc-line);
  border-top: 1px solid var(--gpc-line);
}

.gpc-parentbar__dropdown--right::before { left: auto; right: 28px; }

.gpc-parentbar__dropdown-title {
  padding: .42rem .65rem .58rem;
  color: #7a919c;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.gpc-parentbar__dropdown a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: .78rem;
  padding: .68rem;
  border-radius: 13px;
  color: var(--gpc-text);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.gpc-parentbar__dropdown a:hover,
.gpc-parentbar__dropdown a:focus-visible,
.gpc-parentbar__dropdown a[aria-current="page"] {
  color: #075f58;
  background: #edf8f6;
  transform: translateX(2px);
  outline: none;
}

.gpc-parentbar__item-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #079386;
  background: #e4f7f3;
}

.gpc-parentbar__item-icon svg { width: 19px; height: 19px; }

.gpc-parentbar__dropdown strong,
.gpc-parentbar__dropdown small { display: block; }

.gpc-parentbar__dropdown strong {
  color: inherit;
  font-size: .9rem;
  line-height: 1.2;
}

.gpc-parentbar__dropdown small {
  margin-top: .2rem;
  color: var(--gpc-muted);
  font-size: .71rem;
  line-height: 1.35;
}

.gpc-parentbar__soon {
  padding: .26rem .48rem;
  border-radius: 999px;
  color: #607800;
  background: #eef8c9;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gpc-parentbar__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.gpc-parentbar__action {
  min-height: 44px;
  padding: .63rem .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.07);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}

.gpc-parentbar__action svg { width: 17px; height: 17px; }
.gpc-parentbar__action:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-1px); }

.gpc-parentbar__action--accent {
  border-color: transparent;
  background: linear-gradient(135deg, #16b981, #1988ef);
  box-shadow: 0 8px 20px rgba(25,136,239,.22);
}

.gpc-parentbar__action--accent:hover { background: linear-gradient(135deg, #18c58b, #2a96f5); }

/* Sous-navigation propre à Geomapia Concepts */
.gpc-shell-ready .masthead {
  top: var(--gpc-parent-height) !important;
  z-index: 4000 !important;
  color: var(--gpc-text) !important;
  background: rgba(255,255,255,.985) !important;
  border-bottom: 1px solid var(--gpc-line) !important;
  box-shadow: 0 8px 25px rgba(7,28,39,.08) !important;
}

.gpc-shell-ready .masthead-line {
  height: 3px !important;
  background: linear-gradient(90deg, var(--gpc-teal), var(--gpc-lime)) !important;
}

.gpc-shell-ready .masthead .brand strong { color: var(--gpc-navy) !important; }
.gpc-shell-ready .masthead .brand small { color: var(--gpc-muted) !important; }
.gpc-shell-ready .masthead .brand-logo {
  border: 1px solid #d4e3e0;
  box-shadow: 0 5px 16px rgba(7,28,39,.13) !important;
}

.gpc-shell-ready .masthead nav a,
.gpc-shell-ready .masthead .nav a {
  color: #294652 !important;
  background: transparent !important;
  border-radius: 9px !important;
}

.gpc-shell-ready .masthead nav a:hover,
.gpc-shell-ready .masthead nav a:focus-visible,
.gpc-shell-ready .masthead .nav a:hover,
.gpc-shell-ready .masthead .nav a:focus-visible {
  color: #075f58 !important;
  background: #edf8f6 !important;
}

.gpc-shell-ready .masthead nav a.active,
.gpc-shell-ready .masthead nav a[aria-current="page"],
.gpc-shell-ready .masthead .nav a.active,
.gpc-shell-ready .masthead .nav a[aria-current="page"] {
  color: var(--gpc-navy) !important;
  background: var(--gpc-lime) !important;
}

.gpc-shell-ready .masthead nav a.active::after,
.gpc-shell-ready .masthead nav a[aria-current="page"]::after,
.gpc-shell-ready .masthead .nav a.active::after,
.gpc-shell-ready .masthead .nav a[aria-current="page"]::after { display: none !important; }

.gpc-shell-ready .author-credit { color: var(--gpc-muted) !important; border-left-color: var(--gpc-line) !important; }
.gpc-shell-ready .author-credit strong { color: #087d75 !important; }

/* Bannières : palette actuelle du site parent */
.gpc-shell-ready .catalogue-hero,
.gpc-shell-ready .about-hero,
.gpc-shell-ready .contact-hero,
.gpc-shell-ready .convention-hero,
.gpc-shell-ready .dictionary-hero,
.gpc-shell-ready .indicator-hero,
.gpc-shell-ready .news-hero,
.gpc-shell-ready .relations-hero,
.gpc-shell-ready .hero {
  background:
    radial-gradient(circle at 85% 22%, rgba(26,210,196,.15), transparent 25rem),
    linear-gradient(122deg, #061c2d 0%, #0b3448 54%, #075a67 100%) !important;
  border-bottom: 4px solid var(--gpc-teal) !important;
}

.gpc-shell-ready .eyebrow { color: var(--gpc-lime) !important; border-color: rgba(201,243,107,.32) !important; background: rgba(201,243,107,.08) !important; }
.gpc-shell-ready .primary-button,
.gpc-shell-ready .contact-submit {
  color: var(--gpc-navy) !important;
  background: var(--gpc-lime) !important;
  border-color: var(--gpc-lime) !important;
}
.gpc-shell-ready .primary-button:hover,
.gpc-shell-ready .contact-submit:hover { background: #b8ef35 !important; }

/* Pied scientifique du sous-site */
.gpc-shell-ready .site-footer {
  margin: 0 !important;
  color: #bfd0d3 !important;
  background:
    radial-gradient(circle at 85% 0, rgba(26,210,196,.10), transparent 24rem),
    linear-gradient(126deg, var(--gpc-navy), var(--gpc-deep) 58%, #073c43) !important;
  border-top: 1px solid rgba(26,210,196,.20) !important;
}
.gpc-shell-ready .site-footer strong { color: #fff !important; }
.gpc-shell-ready .site-footer a { color: var(--gpc-lime) !important; }

/* Barre de plateforme ajoutée après le pied scientifique */
.gpc-platform-footer {
  color: #b9cbcf;
  background: #04141c;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.gpc-platform-footer__inner {
  width: min(1240px, calc(100% - 2rem));
  min-height: 92px;
  margin: 0 auto;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem 2rem;
}

.gpc-platform-footer__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.gpc-platform-footer__brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.gpc-platform-footer__brand strong,
.gpc-platform-footer__brand small { display: block; }
.gpc-platform-footer__brand strong { color: #fff; font-size: .95rem; }
.gpc-platform-footer__brand small { margin-top: .18rem; color: var(--gpc-lime); font-size: .72rem; font-weight: 750; }

.gpc-platform-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem 1rem;
  flex-wrap: wrap;
}

.gpc-platform-footer__links a {
  color: #b9cbcf;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 700;
}
.gpc-platform-footer__links a:hover,
.gpc-platform-footer__links a[aria-current="page"] { color: var(--gpc-lime); }

.gpc-platform-footer__meta {
  grid-column: 1 / -1;
  padding-top: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #829ba1;
  font-size: .73rem;
}
.gpc-platform-footer__meta a { color: #a9c2c6; text-decoration: none; }
.gpc-platform-footer__meta a:hover { color: var(--gpc-lime); }

@media (max-width: 1050px) {
  :root { --gpc-parent-height: 68px; }
  .gpc-parentbar__inner { min-height: var(--gpc-parent-height); }
  .gpc-parentbar__toggle { display: grid; place-items: center; }
  .gpc-parentbar__content {
    position: fixed;
    top: calc(var(--gpc-parent-height) + 10px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: #092630;
    box-shadow: var(--gpc-shadow);
  }
  .gpc-parentbar.is-open .gpc-parentbar__content { display: block; }
  .gpc-parentbar__menus { display: grid; gap: .28rem; }
  .gpc-parentbar__group { width: 100%; }
  .gpc-parentbar__menu-button { width: 100%; justify-content: space-between; }
  .gpc-parentbar__dropdown,
  .gpc-parentbar__dropdown--right {
    position: static;
    width: 100%;
    margin-top: .35rem;
    box-shadow: none;
  }
  .gpc-parentbar__dropdown::before { display: none; }
  .gpc-parentbar__actions { margin-top: .65rem; display: grid; grid-template-columns: 1fr 1fr; }
  .gpc-parentbar__action { width: 100%; }
}

@media (max-width: 720px) {
  .gpc-parentbar__identity small { display: none; }
  .gpc-parentbar__logo { width: 41px; height: 41px; flex-basis: 41px; }
  .gpc-parentbar__actions { grid-template-columns: 1fr; }
  .gpc-platform-footer__inner { grid-template-columns: 1fr; }
  .gpc-platform-footer__links { justify-content: flex-start; }
  .gpc-platform-footer__meta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 500px) {
  .gpc-parentbar__dropdown a { grid-template-columns: 38px minmax(0,1fr); }
  .gpc-parentbar__soon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gpc-parentbar *, .gpc-platform-footer * { transition: none !important; }
}


/* ============================================================
   Correction ciblée demandée — bannière d’accueil + retours
   Version fondée sur la première harmonisation.
   Aucun automatisme métier n’est modifié.
   ============================================================ */

/* L’accueil reprend exactement les proportions, l’alignement et
   la typographie des bannières documentaires des autres pages. */
.gpc-shell-ready .home-hero-uniform {
  min-height: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.gpc-shell-ready .home-hero-uniform .hero-grid {
  width: min(1240px, calc(100% - 2rem)) !important;
  min-height: 330px !important;
  margin-inline: auto !important;
  padding-block: 62px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 0 !important;
  text-align: left !important;
}

.gpc-shell-ready .home-hero-uniform .hero-copy {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 !important;
  text-align: left !important;
}

.gpc-shell-ready .home-hero-uniform h1 {
  margin: 0 !important;
  color: #fff !important;
  font: 500 clamp(44px, 6vw, 68px)/1 Georgia, "Times New Roman", serif !important;
  letter-spacing: -.04em !important;
}

.gpc-shell-ready .home-hero-uniform .hero-subtitle {
  max-width: 760px !important;
  margin: 24px 0 30px !important;
  color: #d8e0e6 !important;
  font: 18px/1.65 Georgia, "Times New Roman", serif !important;
  text-align: left !important;
}

.gpc-shell-ready .home-hero-uniform .primary-button {
  margin: 0 !important;
}

/* Lien discret et explicite vers le site parent, dans chaque bannière. */
.gpc-back-link--banner {
  position: absolute;
  z-index: 5;
  top: 22px;
  right: max(1rem, calc((100% - 1240px) / 2));
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: .58rem .82rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff !important;
  background: rgba(7,28,39,.46);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(8px);
  font: 800 .76rem/1 Inter, "Segoe UI", Arial, sans-serif;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.gpc-back-link--banner:hover,
.gpc-back-link--banner:focus-visible {
  color: var(--gpc-navy) !important;
  background: var(--gpc-lime);
  border-color: var(--gpc-lime);
  transform: translateY(-1px);
  outline: none;
}

/* Le footer existant n’est pas redessiné : seul ce lien est ajouté. */
.gpc-footer-back-wrap {
  width: min(1240px, calc(100% - 2rem));
  margin: 20px auto 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.gpc-footer-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--gpc-lime) !important;
  font: 800 .78rem/1.2 Inter, "Segoe UI", Arial, sans-serif;
  text-decoration: none !important;
}

.gpc-footer-back:hover,
.gpc-footer-back:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
  outline: none;
}

@media (max-width: 760px) {
  .gpc-back-link--banner {
    position: static;
    margin: 18px 1rem 0 auto;
    width: fit-content;
  }

  .gpc-shell-ready .home-hero-uniform .hero-grid {
    min-height: 0 !important;
    padding-block: 44px 56px !important;
  }

  .gpc-shell-ready .home-hero-uniform h1 {
    font-size: clamp(38px, 12vw, 52px) !important;
  }

  .gpc-shell-ready .home-hero-uniform .hero-subtitle {
    font-size: 17px !important;
  }
}
