/* ========================================
   PLAN DU SITE - STYLES PREMIUM
   ======================================== */

.sitemap-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.sitemap-hero {
    background: linear-gradient(135deg,
     var(--premium-primary) 0%,
        var(--premium-secondary) 50%,
#16537e 100%
    );
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px var(--premium-shadow),
                0 4px 12px rgba(0, 0, 0, 0.1);
}

.sitemap-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
  rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    animation: rotateSitemapHero 20s linear infinite;
}

@keyframes rotateSitemapHero {
  from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sitemap-hero-content {
    position: relative;
    z-index: 1;
}

.sitemap-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
  height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
   rgba(255, 255, 255, 0.15) 100%
    );
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.sitemap-hero-icon i {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sitemap-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.sitemap-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   CARTES DE SECTIONS
   ======================================== */

.sitemap-card {
    background: linear-gradient(135deg,
    #ffffff 0%,
        #f8f9fa 100%
    );
    border: 2px solid var(--premium-shadow);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
          0 4px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
 position: relative;
}

.sitemap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--premium-primary) 50%,
        transparent 100%
    );
}

.sitemap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--premium-shadow),
                0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--premium-shadow);
}

/* Header de carte */
.sitemap-card-header {
    background: linear-gradient(135deg,
        var(--premium-primary) 0%,
        var(--premium-secondary) 100%
    );
    padding: 1.5rem;
 color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.sitemap-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
 left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
  circle at center,
     rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotateCardHeader 15s linear infinite;
}

@keyframes rotateCardHeader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sitemap-card-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.sitemap-card-header-icon i {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sitemap-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Body de carte */
.sitemap-card-body {
    padding: 1.5rem;
}

/* ========================================
   LISTES DE LIENS
   ======================================== */

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 0.75rem;
}

.sitemap-list li:last-child {
    margin-bottom: 0;
}

.sitemap-list a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg,
        rgba(27, 110, 194, 0) 0%,
      rgba(27, 110, 194, 0.03) 100%
    );
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.sitemap-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0%;
    width: 4px;
    background: linear-gradient(180deg,
        var(--premium-primary) 0%,
    var(--premium-secondary) 100%
    );
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
}

.sitemap-list a:hover {
    background: linear-gradient(90deg,
        rgba(27, 110, 194, 0.12) 0%,
 rgba(27, 110, 194, 0.06) 100%
    );
    transform: translateX(8px);
    border-color: var(--premium-shadow);
    box-shadow: 0 4px 12px var(--premium-shadow);
    color: var(--premium-primary);
}

.sitemap-list a:hover::before {
    height: 60%;
}

.sitemap-list a .bi-chevron-right {
    color: var(--premium-primary);
    margin-right: 0.75rem;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.sitemap-list a:hover .bi-chevron-right {
    transform: translateX(4px);
}

.sitemap-list a span {
    flex: 1;
    font-weight: 500;
}

/* Icônes de catégories */
.sitemap-list a i:not(.bi-chevron-right):not(.bi-arrow-return-right):not(.bi-box-arrow-up-right) {
    margin-right: 0.5rem;
    color: var(--premium-primary);
}

/* Icône externe */
.sitemap-list a .bi-box-arrow-up-right {
    margin-left: auto;
    color: #6c757d;
    font-size: 0.75rem;
}

/* ========================================
   SOUS-LISTES (SOUS-CATÉGORIES)
   ======================================== */

.sitemap-sublist {
    list-style: none;
    padding-left: 2rem;
 margin-top: 0.5rem;
    border-left: 3px solid var(--premium-shadow);
    margin-left: 1rem;
}

.sitemap-sublist li {
    margin-bottom: 0.5rem;
}

.sitemap-sublist a {
    padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
    background: linear-gradient(90deg,
        rgba(27, 110, 194, 0) 0%,
        rgba(27, 110, 194, 0.02) 100%
    );
}

.sitemap-sublist a .bi-arrow-return-right {
    color: var(--premium-primary);
  margin-right: 0.5rem;
    font-size: 0.75rem;
}

.sitemap-sublist a:hover {
    transform: translateX(6px);
}

/* ========================================
   SECTION D'AIDE
   ======================================== */

.sitemap-help-section .card {
border: 2px solid var(--premium-shadow);
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.sitemap-help-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--premium-primary) 50%,
        transparent 100%
    );
}

.sitemap-help-section .card-body {
    padding: 3rem 2rem;
}

.sitemap-help-section h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sitemap-help-section .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sitemap-help-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--premium-shadow);
}

/* ========================================
 RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .sitemap-hero-title {
        font-size: 2rem;
    }

    .sitemap-hero-icon {
    width: 80px;
      height: 80px;
    }

    .sitemap-hero-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .sitemap-page-wrapper {
        padding: 1.5rem 1rem;
    }

    .sitemap-hero {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 1rem;
    }

    .sitemap-hero-title {
        font-size: 1.75rem;
  }

    .sitemap-hero-subtitle {
     font-size: 1rem;
    }

    .sitemap-hero-icon {
        width: 70px;
     height: 70px;
    }

    .sitemap-hero-icon i {
    font-size: 2rem;
    }

    .sitemap-card {
 border-radius: 1rem;
    }

    .sitemap-card-header {
        padding: 1.25rem;
    }

    .sitemap-card-header-icon {
     width: 40px;
        height: 40px;
    }

  .sitemap-card-header-icon i {
        font-size: 1.5rem;
    }

    .sitemap-card-header h3 {
        font-size: 1.1rem;
    }

    .sitemap-card-body {
        padding: 1.25rem;
    }

    .sitemap-list a {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    .sitemap-sublist {
        padding-left: 1.5rem;
    }

  .sitemap-help-section .card-body {
  padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .sitemap-page-wrapper {
     padding: 1rem 0.75rem;
    }

    .sitemap-hero {
  padding: 2rem 1rem;
        border-radius: 0.75rem;
    }

    .sitemap-hero-title {
        font-size: 1.5rem;
  }

    .sitemap-hero-subtitle {
font-size: 0.9rem;
    }

    .sitemap-hero-icon {
    width: 60px;
  height: 60px;
    }

    .sitemap-hero-icon i {
        font-size: 1.75rem;
    }

    .sitemap-card {
      border-radius: 0.75rem;
    }

    .sitemap-card-header {
        padding: 1rem;
    }

    .sitemap-card-header-icon {
        width: 36px;
        height: 36px;
    }

    .sitemap-card-header-icon i {
 font-size: 1.25rem;
    }

    .sitemap-card-header h3 {
        font-size: 1rem;
    }

    .sitemap-card-body {
        padding: 1rem;
    }

    .sitemap-list a {
        padding: 0.6rem 0.75rem;
        font-size: 0.875rem;
    }

    .sitemap-list a:hover {
        transform: translateX(4px);
    }

    .sitemap-sublist {
        padding-left: 1.25rem;
   margin-left: 0.75rem;
    }

    .sitemap-sublist a {
     padding: 0.45rem 0.65rem;
        font-size: 0.85rem;
    }

    .sitemap-help-section .card-body {
   padding: 1.5rem 1rem;
    }

    .sitemap-help-section h4 {
        font-size: 1.1rem;
    }

    .sitemap-help-section .d-flex {
        flex-direction: column !important;
    }

    .sitemap-help-section .btn {
   width: 100%;
      padding: 0.65rem 1.25rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
      opacity: 1;
        transform: translateY(0);
    }
}

.sitemap-card {
    animation: fadeInUp 0.6s ease-out;
}

.sitemap-card:nth-child(1) { animation-delay: 0.1s; }
.sitemap-card:nth-child(2) { animation-delay: 0.2s; }
.sitemap-card:nth-child(3) { animation-delay: 0.3s; }
.sitemap-card:nth-child(4) { animation-delay: 0.4s; }
.sitemap-card:nth-child(5) { animation-delay: 0.5s; }
.sitemap-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

.sitemap-list a:focus {
    outline: 3px solid var(--premium-glow);
    outline-offset: 2px;
}

.sitemap-help-section .btn:focus {
 outline: 3px solid var(--premium-glow);
    outline-offset: 3px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .sitemap-hero {
        background: #f8f9fa;
        color: black;
        box-shadow: none;
    }

    .sitemap-hero-icon,
    .sitemap-hero::before,
    .sitemap-card::before,
.sitemap-card-header::before {
        display: none;
 }

    .sitemap-card {
        border: 1px solid #ddd;
     box-shadow: none;
        page-break-inside: avoid;
    }

    .sitemap-card-header {
        background: #f0f0f0;
        color: black;
    }

    .sitemap-help-section {
 display: none;
    }

    .sitemap-list a {
   color: black;
   text-decoration: underline;
    }
}
