/* =============================================
   DCToolz — index.css
   Styles spécifiques à la home page
   (complète style.css qui reste partagé)
   ============================================= */


/* --------------------------------------------------
   HERO SECTION
   -------------------------------------------------- */

#home {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    text-align: center;
}

/* Couche GIF de fond (optionnelle) */
.hero-gif-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

/* Couches de dégradé animées (fallback ou superposées au GIF) */
.hero-gradient-l1 {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(18, 143, 181, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(92, 217, 213, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(127, 119, 221, 0.25) 0%, transparent 55%);
    background-size: 200% 200%;
    animation: heroGradient1 14s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient-l2 {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(18, 100, 150, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(100, 60, 180, 0.20) 0%, transparent 55%);
    background-size: 200% 200%;
    animation: heroGradient2 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* Vignette bas de hero pour lisibilité du texte */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 30, 40, 0.00) 0%,
        rgba(26, 30, 40, 0.75) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Contenu hero au-dessus de toutes les couches */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
}

@keyframes heroGradient1 {
    0%   { background-position: 0%   0%;   }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0%   0%;   }
}

@keyframes heroGradient2 {
    0%   { background-position: 100% 0%;   }
    50%  { background-position: 0%   100%; }
    100% { background-position: 100% 0%;   }
}

/* Badge section */
.section-badge {
    display: inline-block;
    font-size: 0.72rem;
    color: #128fb5;
    border: 0.5px solid #128fb5;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

/* Headline hero */
.hero-headline {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 14px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

.hero-sub {
    font-size: 0.88rem;
    color: #aaaaaa;
    max-width: 440px;
    margin: 0 auto 22px;
    line-height: 1.75;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------
   HERO STATS GRID
   -------------------------------------------------- */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.hero-stat {
    padding: 12px 8px;
    text-align: center;
    border-right: 0.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat-val {
    font-size: 0.85rem;
    font-weight: 500;
    color: #128fb5;
    margin-bottom: 3px;
}

.hero-stat-lbl {
    font-size: 0.68rem;
    color: #666;
    line-height: 1.4;
}

/* Bande arguments souplesse */
.sub-strip {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.sub-strip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #888;
}

.sub-strip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #128fb5;
    flex-shrink: 0;
}

.sub-strip-sep {
    color: #333;
    font-size: 0.8rem;
}

/* Responsive hero stats */
@media (max-width: 575.98px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stat:nth-child(2) {
        border-right: none;
    }
    .hero-stat:nth-child(3) {
        border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    }
    .hero-stat:nth-child(4) {
        border-top: 0.5px solid rgba(255, 255, 255, 0.08);
        border-right: none;
    }
}


/* --------------------------------------------------
   PRODUCT CARDS
   -------------------------------------------------- */

.product-section {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767.98px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.dc-product-card {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    padding: 18px;
    border: 0.5px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
}

/* GIF thumbnail cliquable */
.gif-thumb {
    border-radius: 10px;
    display: block;
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    line-height: 0;
}

.gif-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    pointer-events: none;
}

.gif-thumb:hover {
    border-color: #128fb5;
    transform: scale(1.01);
}

.gif-thumb:active {
    transform: scale(0.99);
}

.gif-thumb:hover .gif-zoom-hint {
    opacity: 1;
}

.gif-zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.8rem;
    color: #ffffff;
    border-radius: 10px;
}

/* En-tête produit */
.dc-product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dc-product-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dc-product-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.dc-product-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.dc-product-audience {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.audience-anim {
    background: rgba(18, 143, 181, 0.15);
    color: #5cd9d5;
}

.audience-rig {
    background: rgba(127, 119, 221, 0.15);
    color: #b0a9ec;
}

.dc-product-price {
    margin-left: auto;
    font-size: 0.8rem;
    color: #128fb5;
    white-space: nowrap;
    align-self: flex-start;
    padding-top: 2px;
}

.dc-product-desc {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Grille features */
.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 14px;
}

.feat-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px 10px;
    border-left: 2px solid #128fb5;
}

.feat-item.purple {
    border-left-color: #7f77dd;
}

.feat-item-title {
    font-size: 0.72rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 2px;
}

.feat-item-desc {
    font-size: 0.67rem;
    color: #666;
    line-height: 1.35;
}

/* Boutons bas de carte */
.dc-product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.dc-product-actions .btn-custom,
.dc-product-actions .btn-outline-secondary {
    flex: 1;
    font-size: 0.8rem;
    text-align: center;
}

/* Placeholder "coming soon" */
.coming-soon-placeholder {
    text-align: center;
    padding: 18px;
    border: 0.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 12px;
    color: #444;
    font-size: 0.8rem;
}


/* --------------------------------------------------
   PRICING SECTION
   -------------------------------------------------- */

.pricing-product-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-product-label img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pricing-cards-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.dc-price-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 10px;
    padding: 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.dc-price-card.featured {
    border: 1px solid #128fb5;
}

.dc-price-card .plan-name {
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 6px;
}

.dc-price-card.featured .plan-name {
    color: #128fb5;
}

.dc-price-card .price-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.dc-price-card .price-period {
    font-size: 0.72rem;
    color: #666;
    margin-top: 3px;
}

.dc-price-card .price-saving {
    font-size: 0.68rem;
    color: #5ce87a;
    margin-top: 4px;
}

/* Bande réassurance pricing */
.pricing-reassurance {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px 16px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
}

.pricing-reassurance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #666;
}

.pricing-reassurance-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #128fb5;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .pricing-cards-row {
        flex-direction: column;
    }
}


/* --------------------------------------------------
   DOWNLOAD SECTION
   -------------------------------------------------- */

.download-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    padding: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.07);
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: center;
}

.download-card-header img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.download-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

.download-os-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-os-buttons .btn-custom {
    min-width: 110px;
}


/* --------------------------------------------------
   CTA FOOTER STRIP
   -------------------------------------------------- */

.cta-footer-strip {
    background: rgba(18, 143, 181, 0.07);
    border-top: 0.5px solid rgba(18, 143, 181, 0.2);
    padding: 24px 0;
}


/* --------------------------------------------------
   LIGHTBOX
   Les animations zoom sont gérées par la WAAPI (index.js)
   pour éviter le bug Firefox avec var() dans @keyframes.
   -------------------------------------------------- */

.dc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.dc-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
}

.dc-lightbox-inner {
    position: relative;
    z-index: 1;
    background: #1a1e28;
    border-radius: 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    padding: 20px;
    max-width: min(1200px, 96vw);
    width: 96vw;
    max-height: 94vh;
    overflow-y: auto;
    transform-origin: center center;
    opacity: 0;
}

.dc-lightbox-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaa;
    font-size: 1rem;
    transition: background 0.15s, color 0.15s;
    border: none;
    line-height: 1;
}

.dc-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.dc-lightbox-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dc-lightbox-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dc-lightbox-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.dc-lightbox-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 2px;
}

.dc-lightbox-sub {
    font-size: 0.75rem;
    color: #888;
}

.dc-lightbox-gif {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    line-height: 0;
}

.dc-lightbox-gif img {
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.dc-lightbox-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}


/* --------------------------------------------------
   CLASSES DE REMPLACEMENT DES STYLES INLINE
   (politique CSP — pas de style="" autorisé)
   -------------------------------------------------- */

/* Bouton ghost transparent (hero, CTA, lightbox) */
.btn-ghost-custom {
    background: transparent !important;
}

/* Bouton ghost avec bordure et texte atténués (actions produit, lightbox dl) */
.btn-ghost-muted {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #aaa !important;
}
.btn-ghost-muted:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Icones produit — couleurs de fond */
.dc-product-icon--blue {
    background: rgba(18, 143, 181, 0.2);
}
.dc-product-icon--purple {
    background: rgba(127, 119, 221, 0.2);
}

/* CTA footer strip — tailles de texte */
.cta-strip-title {
    font-size: 1.05rem;
}
.cta-strip-sub {
    font-size: 0.85rem;
}

/* Icones lightbox — couleurs de fond (appliquées via JS className, pas style) */
.dc-lightbox-icon.dc-product-icon--blue {
    background: rgba(18, 143, 181, 0.2);
}
.dc-lightbox-icon.dc-product-icon--purple {
    background: rgba(127, 119, 221, 0.2);
}
