/* ============================================================================
 * APP-DETAILS.CSS — la feuille de la fiche produit
 * ============================================================================
 * Extraite le 2026-09-07 du <style> en ligne de `app_details.php` (536 lignes).
 *
 * 💡 Pourquoi la sortir : la page ouvrait son PROPRE <!doctype>/<html>/<head>
 * puis incluait `header.php`, qui en ouvrait un SECOND. Le document servi
 * portait donc deux <html>, deux <head> et DEUX <title> — Google en retenait
 * un au hasard, et c'etait le generique (« Details de l'application »), pas le
 * nom du produit. Pour que la page adopte le <head> commun, il fallait que sa
 * feuille cesse d'etre en ligne.
 *
 * ⚠️ Aucun PHP ici, et il ne doit jamais y en avoir : c'est un fichier statique
 * servi avec le cache long de Cloudflare. La page l'appelle avec
 * `?v=filemtime`, sans quoi une retouche n'atteindrait jamais les navigateurs.
 * ============================================================================ */

    /* ========================================================================
       STYLES APP_DETAILS - VERSION 7.0
       ======================================================================== */
    
    body {
        background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
        min-height: 100vh;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.14);
    }
    
    .back-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: #4b5563;
        text-decoration: none;
        font-size: 0.9rem;
        margin-bottom: 2rem;
        transition: color 0.3s;
    }
    
    .back-btn:hover {
        color: #667eea;
    }
    
    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(102, 126, 234, 0.15);
        color: #4f46e5;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        color: #4b5563;
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    /* ========================================================================
       NOUVEAU v7.0 : Alerte panier visiteur
       ======================================================================== */
    .guest-cart-alert {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        border: 1px solid rgba(102, 126, 234, 0.3);
        border-radius: 12px;
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .guest-cart-alert i {
        font-size: 1.5rem;
        color: #4f46e5;
    }
    
    .guest-cart-alert-content {
        flex: 1;
    }
    
    .guest-cart-alert-content strong {
        color: #0f172a;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .guest-cart-alert-content p {
        color: #4b5563;
        margin: 0;
        font-size: 0.9rem;
    }
    
    .in-cart-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(16, 185, 129, 0.15);
        color: #047857;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    /* Pricing Section */
    .pricing-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        font-weight: 800;
        color: #0f172a;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        color: #4b5563;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Mode Switch */
    .mode-switch-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .mode-switch {
        display: inline-flex;
        background: #ffffff;
        border: 2px solid rgba(102, 126, 234, 0.3);
        border-radius: 14px;
        padding: 4px;
        gap: 4px;
    }
    
    .mode-btn {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s;
        background: transparent;
        color: #4b5563;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mode-btn:hover {
        color: #1e293b;
    }
    
    .mode-btn.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    .mode-description {
        text-align: center;
        color: #6b7280;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    /* Collab Selector */
    .collab-selector-wrapper {
        max-width: 400px;
        margin: 0 auto 2rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .collab-selector-wrapper.visible {
        opacity: 1;
        max-height: 150px;
    }
    
    .collab-selector {
        background: rgba(16, 185, 129, 0.1);
        border: 2px solid rgba(16, 185, 129, 0.3);
        border-radius: 16px;
        padding: 1.25rem;
        text-align: center;
    }
    
    .collab-selector-title {
        color: #047857;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    
    .collab-input-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .collab-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        border: 2px solid rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.15);
        color: #047857;
        font-size: 1.5rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .collab-btn:hover {
        background: rgba(16, 185, 129, 0.3);
        transform: scale(1.05);
    }
    
    .collab-input {
        width: 90px;
        height: 50px;
        text-align: center;
        font-size: 1.75rem;
        font-weight: 800;
        color: #0f172a;
        background: #ffffff;
        border: 2px solid rgba(16, 185, 129, 0.4);
        border-radius: 10px;
        -moz-appearance: textfield;
        appearance: textfield;
    }
    
    .collab-input::-webkit-outer-spin-button,
    .collab-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    .collab-input:focus {
        outline: none;
        border-color: #10b981;
    }
    
    /* Pricing Cards */
    .pricing-card {
        background: #ffffff;
        border: 2px solid rgba(15, 23, 42, 0.14);
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    
    .pricing-card.pro { border-color: rgba(59, 130, 246, 0.3); }
    .pricing-card.pro:hover { border-color: #3b82f6; box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2); }
    
    .pricing-card.premium { border-color: rgba(139, 92, 246, 0.3); }
    .pricing-card.premium:hover { border-color: #8b5cf6; box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2); }
    
    .pricing-card.elite { border-color: rgba(245, 158, 11, 0.3); }
    .pricing-card.elite:hover { border-color: #f59e0b; box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2); }
    
    /* Pricing Header */
    .pricing-header {
        padding: 2rem;
        text-align: center;
        position: relative;
    }
    
    .pricing-card.pro .pricing-header { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05)); }
    .pricing-card.premium .pricing-header { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05)); }
    .pricing-card.elite .pricing-header { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05)); }
    
    .pricing-badge {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #8b5cf6, #6366f1);
        color: white;
        padding: 0.35rem 1rem;
        font-size: 0.7rem;
        font-weight: 700;
        border-radius: 0 0 10px 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .pricing-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .pricing-card.pro .pricing-icon { color: #2563eb; }
    .pricing-card.premium .pricing-icon { color: #7c3aed; }
    .pricing-card.elite .pricing-icon { color: #b45309; }
    
    .pricing-name {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 0.25rem;
    }
    
    .pricing-card.pro .pricing-name { color: #2563eb; }
    .pricing-card.premium .pricing-name { color: #7c3aed; }
    .pricing-card.elite .pricing-name { color: #b45309; }
    
    .pricing-desc {
        color: #4b5563;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .pricing-formula {
        font-size: 0.85rem;
        color: #6b7280;
        font-family: monospace;
        margin-bottom: 0.5rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1;
    }
    
    .pricing-price .currency {
        font-size: 1.25rem;
    }
    
    .pricing-period {
        color: #6b7280;
        font-size: 0.9rem;
    }
    
    /* Pricing Body */
    .pricing-body {
        padding: 1.5rem 2rem;
        flex-grow: 1;
    }
    
    /* Pack Info */
    .pack-info {
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: 10px;
        padding: 0.75rem;
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: 600;
        color: #4f46e5;
    }
    
    .pricing-card.elite .pack-info {
        background: rgba(245, 158, 11, 0.1);
        border-color: rgba(245, 158, 11, 0.3);
        color: #b45309;
    }
    
    .pack-info.hide-collabs {
        display: none !important;
    }
    
    /* Per User Info */
    .peruser-info {
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 10px;
        padding: 0.75rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .peruser-info-value {
        font-size: 1.25rem;
        font-weight: 700;
        color: #047857;
    }
    
    .peruser-info-label {
        font-size: 0.8rem;
        color: #6b7280;
    }
    
    /* Features List */
    .pricing-features {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .pricing-features li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.6rem 0;
        color: #1e293b;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }
    
    .pricing-features li:last-child {
        border-bottom: none;
    }
    
    .pricing-features li i {
        color: #047857;
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }
    
    /* Pricing Footer */
    .pricing-footer {
        padding: 1.5rem 2rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
    
    .pricing-btn {
        width: 100%;
        padding: 1rem;
        border: none;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .pricing-card.pro .pricing-btn {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
    }
    
    .pricing-card.premium .pricing-btn {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        color: white;
    }
    
    .pricing-card.elite .pricing-btn {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
    }
    
    .pricing-btn:hover {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
    
    .pricing-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        filter: none;
    }
    
    /* Notification */
    .notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        color: white;
        font-weight: 600;
        z-index: 9999;
        animation: slideIn 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    /* ====================================================================
       LE PALIER GRATUIT
       --------------------------------------------------------------------
       Volontairement en BANDE, et non en quatrième carte de la grille. Une
       carte de plus aurait mis le gratuit sur le même plan visuel que les
       paliers payants - alors qu'il ne s'achète pas, n'a pas de sélecteur de
       collaborateurs et pas de prix à recalculer. La bande dit ce qu'il est :
       la porte d'entrée, avant la grille de tarifs.
       ==================================================================== */
    .free-plan {
        display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
        justify-content: space-between;
        padding: 1.6rem 1.8rem; border-radius: 18px;
        background: rgba(15, 23, 42, 0.009);
        border: 1px dashed rgba(15, 23, 42, 0.18);
    }
    .free-plan-main  { flex: 1 1 22rem; min-width: 0; }
    .free-plan-cta   { flex: 0 0 auto; min-width: 15rem; }
    .free-plan-cta .pricing-btn {
        background: rgba(15, 23, 42, 0.026); color: inherit;
        border: 1px solid rgba(15, 23, 42, 0.18); text-decoration: none;
    }
    .free-plan-tag {
        display: inline-flex; align-items: center; gap: .35rem;
        font-size: .72rem; font-weight: 700; letter-spacing: .06em;
        text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px;
        background: rgba(34,197,94,.16); color: #16a34a;
    }
    .free-plan-title { font-size: 1.15rem; font-weight: 700; margin: .6rem 0 .35rem; }
    .free-plan-sub   { font-size: .9rem; opacity: .72; margin: 0; max-width: 40rem; }
    .free-plan-features {
        list-style: none; padding: 0; margin: 1rem 0 0;
        display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .88rem;
    }
    .free-plan-features li { display: flex; align-items: center; gap: .45rem; }
    .free-plan-features i  { color: #16a34a; }
    @media (max-width: 640px) {
        .free-plan { padding: 1.2rem; }
        .free-plan-cta { width: 100%; min-width: 0; }
    }
