/* ================================================================
   PLAN DU SITE — Une navigation visuelle, lisible et accessible.
   ================================================================ */

.page-plan-du-site .plan-main {
  padding: 0 0 64px;
  background: #070f2c;
}

.plan-complet .plan-container {
  width: min(1400px, 92%);
}

.plan-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 64px 5%;
  overflow: hidden;
}

.plan-hero-picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.plan-hero-picture img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.plan-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #060e28 0%, #060e28d9 35%, #060e2810 75%);
}

.plan-hero-copy {
  width: min(670px, 55%);
}

.plan-hero h1 {
  font: 700 clamp(42px, 5vw, 80px)/1.12 Georgia, serif;
  color: #fff;
  margin: 20px 0;
}

.plan-hero h1 em {
  color: #ff63ac;
}

.plan-hero-copy > p:not(.plan-eyebrow) {
  font-size: 20px;
  line-height: 1.7;
  color: #e2e8fa;
}

.plan-cta {
  display: inline-block;
  margin: 12px 10px 0 0;
  padding: 15px 22px;
  border: 1px solid #ef6ab7;
  border-radius: 32px;
  background: linear-gradient(110deg, #df2c90, #a83bc7);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.plan-cta-outline {
  border-color: #d2ae60;
  background: #08102b;
}

.plan-find,
.plan-univers,
.plan-xml {
  margin: 36px 0;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid #544068;
  border-radius: 24px;
  background: linear-gradient(120deg, #172344, #10162f);
}

.plan-complet h2 {
  font-family: Georgia, serif;
  color: #fff;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.25;
}

.plan-complet h3 {
  color: #ff90c6;
  font: 700 clamp(23px, 2.5vw, 32px)/1.3 Georgia, serif;
  margin: 32px 0 20px;
}

.plan-complet p {
  line-height: 1.75;
}

.plan-find label {
  display: block;
  margin: 22px 0 10px;
  font-weight: 700;
}

#plan-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 740px;
  padding: 17px 20px;
  border: 1px solid #a280b8;
  border-radius: 14px;
  background: #070f2c;
  color: #fff;
  font: inherit;
}

#plan-search::placeholder {
  color: #b9c2d9;
}

.plan-complet :focus-visible {
  outline: 3px solid #ffd16f;
  outline-offset: 5px;
}

.plan-complet [hidden] {
  display: none !important;
}

#plan-search-status {
  color: #ffabd3;
  min-height: 1.7em;
}

#plan-results {
  columns: 2;
  gap: 30px;
}

.plan-complet .plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-complet .plan-section {
  padding: 30px;
}

.plan-complet .plan-section h2 {
  font-size: 29px;
}

.plan-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-photo-card {
  overflow: hidden;
  background: #080f28;
  border: 1px solid #62466c;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.plan-photo-card:hover {
  border-color: #ff7bbb;
  transform: translateY(-3px);
}

.plan-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.plan-photo-card span {
  display: block;
  text-align: center;
  padding: 14px 10px;
  font-family: Georgia, serif;
  font-size: 21px;
}

.plan-xml a {
  display: inline-block;
  margin: 8px 24px 8px 0;
  color: #ff9ccc;
}

@media (max-width: 900px) {
  .plan-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-hero-copy { width: 70%; }
}

@media (max-width: 600px) {
  .plan-hero { padding: 230px 6% 32px; min-height: 0; }
  .plan-hero-picture { height: 240px; }
  .plan-hero-picture img { object-fit: contain; object-position: center top; }
  .plan-hero::after { background: linear-gradient(0deg, #070f2c 0%, #070f2c 55%, #070f2c00 85%); }
  .plan-hero-copy { width: 100%; }
  .plan-hero-copy > p:not(.plan-eyebrow) { font-size: 17px; }
  .plan-cta { display: block; text-align: center; margin-right: 0; }
  .plan-complet .plan-grid { grid-template-columns: 1fr; }
  .plan-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .plan-photo-card span { font-size: 18px; }
  #plan-results { columns: 1; }
  .plan-complet .plan-section { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-photo-card { transition: none; }
}

/* Les titres ciblés restent visibles sous le menu fixe. */
.plan-complet [id] { scroll-margin-top: 120px; }
