/* Styles dédiés à la page Plan du site (scopés via .sitemap-page) */

.sitemap-page {
  font-family: var(--global-font-family);
}

/* Hero plein écran revisité (moderne + pro) */
.sitemap-page .hero-formation {
  position: relative;
  min-height: clamp(60vh, 68vh, 78vh);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--base-white-color);
  background-size: 112%;
  background-position: 50% 50%;
  animation: heroPan 22s ease-in-out infinite alternate;
  isolation: isolate;
}

.sitemap-page .hero-formation::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Overlay dégradé profond pour une lisibilité parfaite */
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(143,21,21,.35) 0%, rgba(143,21,21,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.38) 100%);
  z-index: -1;
}

.sitemap-page .hero-formation::after {
  /* Accent en bas pour un effet premium */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,.5) 100%);
  opacity: .65;
}

.sitemap-page .hero-inner {
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1rem, 2.5vw, 2rem);
  max-width: 1000px;
  width: min(92%, 1000px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.08) 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(8px) saturate(120%);
}

.sitemap-page .hero-formation .header-title {
  color: #fff;
  text-shadow: 0 8px 20px rgba(0,0,0,.28);
  background: linear-gradient(90deg, #ffffff 0%, #f3f3f3 45%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--global-font-family);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
  margin: 0 0 .25rem 0;
  letter-spacing: .3px;
}

.sitemap-page .hero-formation .header-subtitle {
  color: #fff;
  opacity: .95;
  text-shadow: 0 4px 14px rgba(0,0,0,.25);
  margin-top: .35rem;
  font-family: var(--global-font-family);
  line-height: 1.6;
  margin: 0 auto 1.25rem;
  max-width: 68ch;
}

.sitemap-page .hero-actions { 
  margin-top: 1.25rem; 
  display: flex; 
  gap: .8rem; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.sitemap-page .btn-primary, 
.sitemap-page .btn-secondary {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: .9rem 1.3rem; 
  border-radius: 999px; 
  text-decoration: none; 
  font-weight: 700;
  font-family: var(--global-font-family);
}

.sitemap-page .btn-primary { 
  background: linear-gradient(145deg, var(--base-rouge-color) 0%, #8f1515 100%); 
  color: #fff; 
  box-shadow: 0 12px 26px rgba(143,21,21,.25); 
}

.sitemap-page .btn-secondary { 
  background: rgba(255,255,255,.2); 
  color: #fff; 
  border: 1px solid rgba(255,255,255,.6); 
  backdrop-filter: blur(4px); 
}

.sitemap-page .btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 16px 32px rgba(143,21,21,.32); 
}

.sitemap-page .btn-secondary:hover { 
  background: rgba(255,255,255,.28); 
}

.sitemap-page .btn-primary:focus-visible, 
.sitemap-page .btn-secondary:focus-visible { 
  outline: 3px solid rgba(255,255,255,.55); 
  outline-offset: 2px; 
}

/* Styles pour les liens du contenu principal (pas la navbar) */
.sitemap-page .content-section a,
.sitemap-page .card-link,
.sitemap-page .hero-actions a {
  font-family: var(--global-font-family);
  transition: all 0.3s ease;
}

.sitemap-page .content-section a:hover,
.sitemap-page .card-link:hover,
.sitemap-page .hero-actions a:hover {
  text-decoration: none;
}



@keyframes heroPan {
  0% { background-size: 112%; background-position: 50% 50%; }
  100% { background-size: 118%; background-position: 48% 52%; }
}

/* Conteneur principal */
.sitemap-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* Carte propre pour le contenu */
.sitemap-page .content-section {
  margin: 2rem 0 0;
  background: var(--base-white-color);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-md);
  padding: 2rem clamp(1rem, 3vw, 2.2rem);
}

.sitemap-page .two-col { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0,1fr)); 
  gap: clamp(1rem, 2.5vw, 2rem); 
}

.sitemap-page .content-section h2 {
  font-family: var(--global-font-family);
  color: var(--base-rouge-color);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.8rem);
  margin: 0 0 1rem 0;
  position: relative;
}

.sitemap-page .content-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--base-rouge-color) 0%, rgba(143,21,21,.5) 100%);
  border-radius: 999px;
}

.sitemap-page .content-section p {
  color: var(--base-noir-color);
  line-height: 1.8;
  margin: .75rem 0 1rem;
  font-family: var(--global-font-family);
}

.sitemap-page .content-section ul {
  list-style: none;
  padding: .25rem 0 0 .25rem;
  margin: .25rem 0 1.25rem 0;
}

.sitemap-page .content-section li {
  position: relative;
  padding-left: 1.5rem;
  margin: .5rem 0;
  color: var(--base-noir-color);
  font-family: var(--global-font-family);
}

.sitemap-page .content-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--base-rouge-color);
  box-shadow: 0 0 0 3px rgba(143,21,21,.12);
}

/* Grille d'accès rapide en cartes */
.sitemap-page .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: .5rem;
}
.sitemap-page .card-link {
  display: block;
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  position: relative;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  text-decoration: none;
  color: var(--base-rouge-color);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sitemap-page .card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.12);
  border-color: rgba(143,21,21,.2);
}
.sitemap-page .card-link .label { font-weight: 700; }
.sitemap-page .card-link .desc { display: block; color: var(--base-noir-color); opacity: .8; margin-top: .25rem; }
.sitemap-page .card-link::before {
  content: "→";
  font-family: var(--global-font-family);
  font-weight: 700;
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--base-rouge-color);
}

/* Variante pour les cartes de la section Formations */
.sitemap-page .card-link.training::before {
  content: "🎓";
  font-family: var(--global-font-family);
}

/* Variante pour les cartes de la section Informations légales */
.sitemap-page .card-link.legal::before {
  content: "⚖";
  font-family: var(--global-font-family);
}

/* Listes de navigation en colonnes */
.sitemap-page .two-col { gap: clamp(1rem, 2.5vw, 2rem); }
.sitemap-page ul { list-style: none; padding-left: 0; }
.sitemap-page li { margin: .4rem 0; }
.sitemap-page .link-list a {
  display: inline-block;
  padding: .45rem .75rem .45rem 2.25rem;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  color: var(--base-rouge-color);
  text-decoration: none;
  background: #fff;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sitemap-page .link-list a::before {
  content: "›";
  font-family: var(--global-font-family);
  font-weight: 700;
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--base-rouge-color);
  opacity: .9;
}
.sitemap-page .link-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(143,21,21,.2);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* Titres de section */
.sitemap-page h2 { 
  position: relative; 
  padding-left: 0; 
}

/* Responsive */
@media (max-width: 992px) {
  .sitemap-page .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .sitemap-page .hero-formation { min-height: 54vh; }
  .sitemap-page .hero-inner { border-radius: 14px; backdrop-filter: blur(6px) saturate(115%); }
  .sitemap-page .container { padding: 1.25rem 1rem 2rem; }
  .sitemap-page .content-section { 
    border-radius: var(--border-radius-md); 
    padding: 1.25rem 1rem; 
  }
  .sitemap-page .card-grid { grid-template-columns: 1fr; }
}


