/**
 * =============================================================================
 * PRESTATIONS PAGE - Celine Nail Studio
 * =============================================================================
 * Charte "Artisanat Contemporain Mineral"
 * Refonte complète : cartes minérales, CTA or patiné, filtres premium
 * =============================================================================
 */

/* =============================================================================
   VARIABLES SPECIFIQUES PRESTATIONS
   ============================================================================= */
:root {
    /* Couleurs minérales */
    --presta-bg-card: rgba(12, 14, 18, 0.55);
    --presta-bg-card-hover: rgba(18, 20, 26, 0.65);
    --presta-border: rgba(237, 235, 230, 0.10);
    --presta-border-hover: rgba(237, 235, 230, 0.18);
    --presta-border-accent: rgba(201, 168, 87, 0.25);

    /* Radius */
    --presta-radius: 20px;
    --presta-radius-sm: 12px;
    --presta-radius-chip: 6px;

    /* Shadows */
    --presta-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    --presta-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Or patiné */
    --presta-gold: #C9A857;
    --presta-gold-light: #E5D4A1;
    --presta-gold-dark: #B8962E;
    --presta-gold-gradient: linear-gradient(135deg, #C9A857 0%, #E5D4A1 45%, #B8962E 100%);

    /* Textes */
    --presta-text-primary: rgba(255, 255, 255, 0.92);
    --presta-text-secondary: rgba(255, 255, 255, 0.72);
    --presta-text-muted: rgba(255, 255, 255, 0.50);
}

/* =============================================================================
   1. PAGE HERO - Style minéral
   ============================================================================= */
.PrestationsPage .page-hero {
    background: transparent;
    padding: calc(var(--header-height, 100px) + 3rem) 0 3rem;
    text-align: center;
    position: relative;
}

@media (max-width: 768px) {
    .PrestationsPage .page-hero {
        padding: calc(var(--header-height-mobile, 80px) + 2rem) 0 2rem;
    }
}

.PrestationsPage .page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 87, 0.4), transparent);
}

.PrestationsPage .page-hero__title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--presta-text-primary);
    margin-bottom: 1rem;
}

.PrestationsPage .page-hero__subtitle {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--presta-text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* =============================================================================
   2. FILTRES CATEGORIES - Chips premium
   ============================================================================= */
.PrestationsPage .filtres-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 1rem;
    background: var(--presta-bg-card);
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.PrestationsPage .filtre-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--presta-text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius-chip);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.PrestationsPage .filtre-btn:hover {
    color: var(--presta-text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--presta-border-hover);
}

.PrestationsPage .filtre-btn--active {
    color: var(--color-black, #1A1A1A);
    background: var(--presta-gold-gradient);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(201, 168, 87, 0.25);
}

.PrestationsPage .filtre-btn--active:hover {
    background: linear-gradient(135deg, #D4B86A 0%, #F0E4B8 45%, #C9A857 100%);
}

/* Pastille catégorie - accent discret */
.PrestationsPage .filtre-btn__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.PrestationsPage .filtre-btn:hover .filtre-btn__dot,
.PrestationsPage .filtre-btn--active .filtre-btn__dot {
    opacity: 1;
}

.PrestationsPage .filtre-btn--active .filtre-btn__dot {
    background-color: var(--color-black, #1A1A1A) !important;
}

/* Focus visible WCAG */
.PrestationsPage .filtre-btn:focus-visible {
    outline: 2px solid var(--presta-gold);
    outline-offset: 2px;
}

/* =============================================================================
   3. SECTIONS CATEGORIES
   ============================================================================= */
.PrestationsPage .categorie-section {
    margin-bottom: 4rem;
}

.PrestationsPage .categorie-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--presta-border);
    flex-wrap: wrap;
}

.PrestationsPage .categorie-header__content {
    flex: 1;
    min-width: 250px;
}

/* Titre catégorie - serif uppercase tracking */
.PrestationsPage .categorie-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.625rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--presta-text-primary);
    margin: 0 0 0.75rem;
}

.PrestationsPage .categorie-title__bar {
    width: 3px;
    height: 24px;
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Description catégorie - Inter opacity */
.PrestationsPage .categorie-description {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--presta-text-secondary);
    margin: 0;
    max-width: 580px;
}

/* Badge count - chip minéral */
.PrestationsPage .categorie-count {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--presta-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius-chip);
    white-space: nowrap;
}

/* =============================================================================
   4. GRILLE PRESTATIONS - Responsive 3/2/1
   ============================================================================= */
.PrestationsPage .prestations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 1024px) {
    .PrestationsPage .prestations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .PrestationsPage .prestations-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* =============================================================================
   5. CARTES PRESTATIONS - Style minéral
   ============================================================================= */
.PrestationsPage .prestation-card {
    display: flex;
    flex-direction: column;
    background: var(--presta-bg-card);
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius);
    overflow: hidden;
    box-shadow: var(--presta-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.PrestationsPage .prestation-card:hover {
    background: var(--presta-bg-card-hover);
    border-color: var(--presta-border-hover);
    box-shadow: var(--presta-shadow-hover);
    transform: translateY(-6px);
}

/* Image prestation */
.PrestationsPage .prestation-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.PrestationsPage .prestation-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.06) brightness(0.88);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.PrestationsPage .prestation-card:hover .prestation-card__image img {
    filter: saturate(0.9) contrast(1.08) brightness(0.92);
    transform: scale(1.04);
}

/* Badge promo */
.PrestationsPage .prestation-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-black, #1A1A1A);
    background: var(--presta-gold-gradient);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Placeholder si pas d'image */
.PrestationsPage .prestation-card:not(:has(.prestation-card__image)) .prestation-card__content::before {
    content: '';
    display: block;
    height: 8px;
    margin: -1.5rem -1.5rem 1.5rem;
    background: linear-gradient(90deg,
        var(--presta-gold-dark) 0%,
        var(--presta-gold) 50%,
        var(--presta-gold-dark) 100%
    );
    opacity: 0.3;
}

/* Contenu carte */
.PrestationsPage .prestation-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.PrestationsPage .prestation-card__title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.PrestationsPage .prestation-card__title a {
    color: var(--presta-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.PrestationsPage .prestation-card__title a:hover {
    color: var(--presta-gold-light);
}

.PrestationsPage .prestation-card__title a:focus-visible {
    outline: 2px solid var(--presta-gold);
    outline-offset: 2px;
}

/* Description */
.PrestationsPage .prestation-card__desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--presta-text-secondary);
    margin: 0 0 1.25rem;
    flex: 1;
}

/* Meta (durée + prix) */
.PrestationsPage .prestation-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--presta-border);
}

/* Tag durée */
.PrestationsPage .prestation-card__duree {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--presta-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius-chip);
}

.PrestationsPage .prestation-card__duree svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Tag prix */
.PrestationsPage .prestation-card__prix {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--presta-text-primary);
}

.PrestationsPage .prestation-card__prix .prix-barre {
    font-size: 0.875rem;
    font-weight: 300;
    text-decoration: line-through;
    color: var(--presta-text-muted);
    margin-right: 0.5em;
}

.PrestationsPage .prestation-card__prix .prix-promo {
    color: var(--presta-gold-light);
}

/* =============================================================================
   6. ACTIONS CARTE - CTA Or patiné
   ============================================================================= */
.PrestationsPage .prestation-card__actions {
    display: flex;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--presta-border);
}

.PrestationsPage .prestation-card__actions .Btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bouton Détails - outline premium */
.PrestationsPage .prestation-card__actions .Btn--outline {
    color: var(--presta-text-secondary);
    background: transparent;
    border: 1px solid var(--presta-border-hover);
}

.PrestationsPage .prestation-card__actions .Btn--outline:hover {
    color: var(--presta-text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Bouton Réserver - or patiné gradient */
.PrestationsPage .prestation-card__actions .Btn--primary {
    color: var(--color-black, #1A1A1A);
    background: var(--presta-gold-gradient);
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(201, 168, 87, 0.2);
}

.PrestationsPage .prestation-card__actions .Btn--primary:hover {
    background: linear-gradient(135deg, #D4B86A 0%, #F0E4B8 45%, #C9A857 100%);
    box-shadow: 0 4px 16px rgba(201, 168, 87, 0.35);
    transform: translateY(-1px);
}

/* Focus visible WCAG */
.PrestationsPage .prestation-card__actions .Btn:focus-visible {
    outline: 2px solid var(--presta-gold);
    outline-offset: 2px;
}

/* =============================================================================
   7. INFO BOX - Style minéral
   ============================================================================= */
.PrestationsPage .Section--alt {
    background: transparent;
    margin-top: 2rem;
}

.PrestationsPage .info-box {
    background: var(--presta-bg-card);
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--presta-shadow);
}

.PrestationsPage .info-box h3 {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--presta-text-primary);
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--presta-border);
}

.PrestationsPage .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.PrestationsPage .info-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--presta-border);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--presta-text-secondary);
}

.PrestationsPage .info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.PrestationsPage .info-list strong {
    font-weight: 500;
    color: var(--presta-gold);
}

/* =============================================================================
   8. EMPTY STATE - Style minéral
   ============================================================================= */
.PrestationsPage .empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--presta-bg-card);
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius);
}

.PrestationsPage .empty-state svg {
    margin-bottom: 1.5rem;
    color: var(--presta-text-muted);
    opacity: 0.5;
}

.PrestationsPage .empty-state p {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.0625rem;
    color: var(--presta-text-secondary);
    margin: 0 0 2rem;
}

/* =============================================================================
   9. RESPONSIVE MOBILE
   ============================================================================= */
@media (max-width: 768px) {
    .PrestationsPage .filtres-categories {
        padding: 1.25rem;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .PrestationsPage .filtre-btn {
        flex-shrink: 1;
        padding: 8px 14px;
        font-size: 0.6875rem;
    }

    /* Sur très petits écrans, réduire encore */
    @media (max-width: 480px) {
        .PrestationsPage .filtres-categories {
            padding: 1rem;
            gap: 6px;
        }

        .PrestationsPage .filtre-btn {
            padding: 6px 10px;
            font-size: 0.625rem;
            letter-spacing: 0.02em;
        }

        .PrestationsPage .filtre-btn__dot {
            width: 6px;
            height: 6px;
        }
    }

    .PrestationsPage .categorie-header {
        flex-direction: column;
        gap: 1rem;
    }

    .PrestationsPage .categorie-count {
        align-self: flex-start;
    }

    .PrestationsPage .categorie-title {
        font-size: 1.375rem;
    }

    .PrestationsPage .prestation-card__content {
        padding: 1.25rem;
    }

    .PrestationsPage .prestation-card__actions {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 10px;
    }

    .PrestationsPage .prestation-card__actions .Btn {
        width: 100%;
    }

    .PrestationsPage .info-box {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .PrestationsPage .page-hero__title {
        font-size: 1.875rem;
    }

    .PrestationsPage .page-hero__subtitle {
        font-size: 0.9375rem;
    }

    .PrestationsPage .categorie-section {
        margin-bottom: 3rem;
    }

    .PrestationsPage .prestation-card__title {
        font-size: 1.125rem;
    }

    .PrestationsPage .prestation-card__prix {
        font-size: 1.25rem;
    }
}

/* =============================================================================
   10. ANIMATIONS & TRANSITIONS
   ============================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.PrestationsPage .categorie-section {
    animation: fadeInUp 0.5s ease-out;
}

.PrestationsPage .prestation-card {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.PrestationsPage .prestations-grid .prestation-card:nth-child(1) { animation-delay: 0.05s; }
.PrestationsPage .prestations-grid .prestation-card:nth-child(2) { animation-delay: 0.1s; }
.PrestationsPage .prestations-grid .prestation-card:nth-child(3) { animation-delay: 0.15s; }
.PrestationsPage .prestations-grid .prestation-card:nth-child(4) { animation-delay: 0.2s; }
.PrestationsPage .prestations-grid .prestation-card:nth-child(5) { animation-delay: 0.25s; }
.PrestationsPage .prestations-grid .prestation-card:nth-child(6) { animation-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .PrestationsPage .categorie-section,
    .PrestationsPage .prestation-card,
    .PrestationsPage .prestation-card__image img,
    .PrestationsPage .Btn {
        animation: none;
        transition: none;
    }
}

/* =============================================================================
   11. HIGH CONTRAST MODE
   ============================================================================= */
@media (prefers-contrast: high) {
    .PrestationsPage .prestation-card__desc,
    .PrestationsPage .categorie-description,
    .PrestationsPage .info-list li {
        color: rgba(255, 255, 255, 0.88);
    }

    .PrestationsPage .prestation-card__duree,
    .PrestationsPage .categorie-count {
        color: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .PrestationsPage .filtre-btn {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* =============================================================================
   12. PRINT STYLES
   ============================================================================= */
@media print {
    .PrestationsPage .filtres-categories,
    .PrestationsPage .prestation-card__actions {
        display: none;
    }

    .PrestationsPage .prestation-card {
        background: #fff;
        color: #000;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .PrestationsPage .prestation-card__title a,
    .PrestationsPage .categorie-title {
        color: #000;
    }
}
