/**
 * Page Prestations - QuantisDigitale
 * Styles pour affichage des packs
 */

/* ========================================
   HERO PRESTATIONS
   ======================================== */

.hero-prestations {
    padding: calc(var(--hauteur-header-desktop) + var(--espace-16)) 0 var(--espace-16) 0;
    background: var(--couleur-fond-principal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-prestations::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--couleur-accent-transparent) 0%, transparent 70%);
    opacity: 0.08;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--espace-2);
    background: var(--couleur-accent-transparent);
    color: var(--couleur-accent);
    padding: var(--espace-2) var(--espace-4);
    border-radius: var(--rayon-pilule);
    font-family: var(--polices-texte);
    font-size: var(--texte-sm);
    font-weight: var(--poids-semibold);
    margin-bottom: var(--espace-6);
    border: var(--bordure-1) solid var(--couleur-accent);
}

.hero-titre {
    font-family: var(--polices-titres);
    font-size: var(--texte-5xl);
    font-weight: var(--poids-bold);
    color: var(--couleur-texte);
    line-height: var(--ligne-serree);
    margin: 0 0 var(--espace-6) 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-family: var(--polices-texte);
    font-size: var(--texte-xl);
    color: var(--couleur-texte-secondaire);
    line-height: var(--ligne-relachee);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   NAVIGATION CATEGORIES
   ======================================== */

.nav-categories {
    padding: var(--espace-8) 0;
    background: var(--couleur-fond-secondaire);
    border-bottom: var(--bordure-1) solid var(--couleur-bordure);
    position: sticky;
    top: var(--hauteur-header-desktop);
    z-index: var(--z-sticky);
}

.categories-liste {
    display: flex;
    gap: var(--espace-3);
    justify-content: center;
    align-items:center;
    flex-wrap: wrap;
    max-width:1200px;
    margin:0 auto;
    padding:0 var(--espace-4);
}

.categorie-btn {
    display: flex;
    align-items: center;
    gap: var(--espace-2);
    padding: var(--espace-3) var(--espace-5);
    background: var(--couleur-fond-carte);
    border: var(--bordure-2) solid var(--couleur-bordure);
    border-radius: var(--rayon-lg);
    font-family: var(--polices-texte);
    font-size: var(--texte-base);
    font-weight: var(--poids-medium);
    color: var(--couleur-texte-secondaire);
    cursor: pointer;
    transition: all var(--duree-rapide);
}

.categorie-btn i {
    font-size: var(--texte-lg);
}

.categorie-btn:hover {
    border-color: var(--couleur-accent);
    color: var(--couleur-texte);
    transform: translateY(-2px);
}

.categorie-btn.active {
    background: var(--couleur-accent);
    border-color: var(--couleur-accent);
    color: var(--couleur-fond-principal);
    box-shadow: var(--ombre-md);
}

.badge-count {
    background: var(--couleur-fond-principal);
    color: var(--couleur-texte);
    padding: var(--espace-1) var(--espace-2);
    border-radius: var(--rayon-pilule);
    font-size: var(--texte-xs);
    font-weight: var(--poids-bold);
    min-width: 24px;
    text-align: center;
}

.categorie-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========================================
   SECTIONS PACKS
   ======================================== */

.packs-section {
    padding: var(--espace-20) 0;
    background: var(--couleur-fond-principal);
}

.section-header {
    text-align: center;
    margin-bottom: var(--espace-12);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--espace-2);
    background: var(--couleur-accent-transparent);
    color: var(--couleur-accent);
    padding: var(--espace-2) var(--espace-4);
    border-radius: var(--rayon-pilule);
    font-family: var(--polices-texte);
    font-size: var(--texte-sm);
    font-weight: var(--poids-semibold);
    margin-bottom: var(--espace-4);
    border: var(--bordure-1) solid var(--couleur-accent);
}

.section-titre {
    font-family: var(--polices-titres);
    font-size: var(--texte-4xl);
    font-weight: var(--poids-bold);
    color: var(--couleur-texte);
    margin: 0 0 var(--espace-3) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--espace-3);
}

.section-titre i {
    color: var(--couleur-accent);
}

.section-description {
    font-family: var(--polices-texte);
    font-size: var(--texte-lg);
    color: var(--couleur-texte-secondaire);
    margin: 0;
}

/* ========================================
   GRILLE PACKS
   ======================================== */

.packs-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--espace-8);
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   CARTE PACK
   ======================================== */

.carte-pack {
    background: var(--couleur-fond-carte);
    border: var(--bordure-2) solid var(--couleur-bordure);
    border-radius: var(--rayon-xl);
    padding: var(--espace-8);
    transition: all var(--duree-normale) var(--easing-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.carte-pack:hover {
    transform: translateY(-8px);
    box-shadow: var(--ombre-xl);
    border-color: var(--couleur-accent);
}

/* Pack populaire */
.pack-best {
    border-color: var(--couleur-accent);
    border-width: 3px;
}

.pack-best::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--couleur-accent) 0%, var(--couleur-succes) 100%);
    border-radius: var(--rayon-xl) var(--rayon-xl) 0 0;
}

.badge-populaire {
    position: absolute;
    top: var(--espace-4);
    right: var(--espace-4);
    background: var(--couleur-accent);
    color: white;
    padding: var(--espace-2) var(--espace-3);
    border-radius: var(--rayon-lg);
    font-family: var(--polices-texte);
    font-size: var(--texte-xs);
    font-weight: var(--poids-bold);
    display: flex;
    align-items: center;
    gap: var(--espace-1);
    box-shadow: var(--ombre-md);
}

/* Header pack */
.pack-header {
    margin-bottom: var(--espace-6);
}

.pack-nom {
    font-family: var(--polices-titres);
    font-size: var(--texte-3xl);
    font-weight: var(--poids-bold);
    color: var(--couleur-texte);
    margin: 0 0 var(--espace-2) 0;
}

.pack-sous-titre {
    font-family: var(--polices-texte);
    font-size: var(--texte-base);
    color: var(--couleur-texte-secondaire);
    margin: 0;
}

/* Prix */
.pack-prix {
    text-align: center;
    padding: var(--espace-6) 0;
    margin-bottom: var(--espace-6);
    border-bottom: var(--bordure-1) solid var(--couleur-bordure);
}

.prix-montant {
    font-family: var(--polices-titres);
    font-size: var(--texte-6xl);
    font-weight: var(--poids-bold);
    color: var(--couleur-accent);
    line-height: 1;
}

.prix-devise {
    font-family: var(--polices-texte);
    font-size: var(--texte-xl);
    color: var(--couleur-texte-secondaire);
    font-weight: var(--poids-medium);
    margin-left: var(--espace-2);
}

.prix-sur-devis {
    font-family: var(--polices-titres);
    font-size: var(--texte-3xl);
    font-weight: var(--poids-semibold);
    color: var(--couleur-accent);
    display: block;
}

/* Features */
.pack-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--espace-8) 0;
    flex: 1;
}

.pack-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--espace-3);
    padding: var(--espace-3) 0;
    font-family: var(--polices-texte);
    font-size: var(--texte-base);
    color: var(--couleur-texte);
    line-height: var(--ligne-normale);
}

.pack-features li:not(:last-child) {
    border-bottom: var(--bordure-1) solid var(--couleur-bordure);
}

.pack-features i {
    color: var(--couleur-accent);
    font-size: var(--texte-lg);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Bouton */
.carte-pack .bouton {
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:var(--espace-2);
    padding:var(--espace-4) var(--espace-5);
    white-space:nowrap;
    overflow:hidden;
    box-sizing:border-box;
}

.carte-pack .bouton i {
    flex-shrink:0;
    font-size:var(--texte-base);
}

.carte-pack .bouton span {
    flex-shrink:1;
}

@media (max-width:480px) {
    .carte-pack .bouton {
        font-size:var(--texte-sm);
        padding:var(--espace-3) var(--espace-4);
        gap:var(--espace-1);
    }

    .carte-pack .bouton i {
        font-size:var(--texte-sm);
    }
}

/* ========================================
   PROCESSUS
   ======================================== */

.processus {
    padding: var(--espace-20) 0;
    background: var(--couleur-fond-secondaire);
}

.processus-timeline {
    max-width:1000px;
    margin:0 auto;
    position:relative;
    padding:var(--espace-4) 0;
}

.processus-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    width:3px;
    bottom:40px;
    background:var(--couleur-accent);
    z-index:0;
}

.etape {
    display:flex;
    gap:var(--espace-6);
    margin-bottom:var(--espace-12);
    position:relative;
    z-index:1;
}

.etape:last-child {
    margin-bottom: 0;
}

.etape-numero {
    width:80px;
    height:80px;
    background:var(--couleur-accent);
    color:white;
    border-radius:var(--rayon-rond);
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:var(--polices-titres);
    font-size:var(--texte-3xl);
    font-weight:var(--poids-bold);
    flex-shrink:0;
    box-shadow:var(--ombre-lg);
    position:relative;
    z-index:3;
}

.etape-contenu {
    flex:1;
    background:var(--couleur-fond-carte);
    border:var(--bordure-1) solid var(--couleur-bordure);
    border-radius:var(--rayon-xl);
    padding:var(--espace-6);
    transition:all var(--duree-rapide);
    position:relative;
    z-index:1;
}

.etape-contenu:hover {
    transform:translateX(10px);
    box-shadow:var(--ombre-md);
    border-color:var(--couleur-accent);
}

.etape-titre {
    font-family:var(--polices-titres);
    font-size:var(--texte-xl);
    font-weight:var(--poids-semibold);
    color:var(--couleur-texte);
    margin:0 0 var(--espace-3) 0;
    display:flex;
    align-items:center;
    gap:var(--espace-2); 
}

.etape-titre i {
    color: var(--couleur-accent);
}

.etape-texte {
    font-family: var(--polices-texte);
    font-size: var(--texte-base);
    color: var(--couleur-texte-secondaire);
    line-height: var(--ligne-normale);
    margin: 0;
}

/* CTA FINAL */

.cta-final {
    padding: var(--espace-20) 0;
    background: linear-gradient(135deg, var(--couleur-fond-principal) 0%, var(--couleur-fond-secondaire) 100%);
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--couleur-accent-transparent) 0%, transparent 70%);
    opacity: 0.1;
}

.cta-contenu {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-icone {
    width: 100px;
    height: 100px;
    background: var(--couleur-accent);
    border-radius: var(--rayon-rond);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--espace-6);
    box-shadow: 0 0 30px var(--couleur-accent-transparent);
}

.cta-icone i {
    font-size: var(--texte-4xl);
    color: white;
}

.cta-titre {
    font-family: var(--polices-titres);
    font-size: var(--texte-4xl);
    font-weight: var(--poids-bold);
    color: var(--couleur-texte);
    margin: 0 0 var(--espace-4) 0;
}

.cta-texte {
    font-family: var(--polices-texte);
    font-size: var(--texte-xl);
    color: var(--couleur-texte-secondaire);
    max-width: 600px;
    margin: 0 auto var(--espace-8) auto;
    line-height: var(--ligne-normale);
}

.bouton-large {
    padding: var(--espace-5) var(--espace-10);
    font-size: var(--texte-lg);
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .hero-prestations {
        padding: calc(var(--hauteur-header-mobile) + var(--espace-10)) 0 var(--espace-10) 0;
    }

    .hero-titre {
        font-size: var(--texte-3xl);
    }

    .hero-description {
        font-size: var(--texte-lg);
    }

    .nav-categories {
        top: var(--hauteur-header-mobile);
    }

    .categories-liste {
        flex-direction: column;
    }

    .categorie-btn {
        width: 100%;
        justify-content: space-between;
    }

    .section-titre {
        font-size: var(--texte-3xl);
        flex-direction: column;
    }

    .packs-grille {
        grid-template-columns: 1fr;
        gap: var(--espace-6);
    }

    .processus-timeline::before {
        left:30px;
        top:60px;
        bottom:30px;
    }

    .etape {
        flex-direction:column;
        padding-left:calc(60px + var(--espace-6));
    }

    .etape-numero {
        position: absolute;
        left: 0;
        top: 0;
        width: 60px;
        height: 60px;
        font-size: var(--texte-2xl);
    }

    .etape-contenu:hover {
        transform: translateX(5px);
    }

    .cta-titre {
        font-size: var(--texte-3xl);
    }
}

@media (max-width: 480px) {
    .hero-titre {
        font-size: var(--texte-2xl);
    }

    .prix-montant {
        font-size: var(--texte-5xl);
    }

    .pack-nom {
        font-size: var(--texte-2xl);
    }
}