/* ================================================
   POPNTOP — index.css
   Styles spécifiques à la landing page index.html
   ================================================ */

/* ── 1. HERO ──────────────────────────────────── */
/* ══════════════════════════════════════════════════════
   HERO — Nouvelle présentation (logo + image + CTA)
══════════════════════════════════════════════════════ */
.lp-hero {
    background: #ffffff;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--color-border);
}

.lp-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
}

/* Logo + tagline */
.lp-hero__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.lp-hero__logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.lp-hero__tagline {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

.lp-hero__tagline #lpBaselineLabel {
    font-weight: 800;
    color: var(--color-secondary);
    transition: opacity 0.7s ease-in-out;
}

/* Ligne image + CTA côte à côte */
.lp-hero__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
	margin-top: -20px;
}

/* Zone image */
.lp-hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lp-hero__crown-wrap {
    height: 52px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.lp-hero__crown-wrap svg {
    width: 48px;
    height: auto;
    display: block;
    transition: color 0.9s ease-in-out;
}

.lp-hero__imgbox {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-background);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
	margin-bottom:60px;
}

.lp-hero__imgbox img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.lp-hero__imgbox img.active {
    opacity: 1;
}

.lp-hero__imgbox-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.25;
}

/* Boutons CTA */
.lp-hero__cta {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 260px;
    max-width: 260px;
    width: 100%;
}

.lp-hero__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.3rem 1.6rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.lp-hero__btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.lp-hero__btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.lp-hero__btn--primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,60,0.25);
}

.lp-hero__btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: #c8c8c8;
}

.lp-hero__btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 576px) {
    .lp-hero__imgbox { width: 150px; height: 150px;margin-bottom:0px }
    .lp-hero__cta { min-width: 100%; }
    .lp-hero__content { gap: 1.5rem; }
}

/* ── 2. CARROUSEL ─────────────────────────────── */
.lp-carousel-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background);
}

.lp-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* ── Étoile décorative en haut à droite du carrousel ── */
.lp-carousel__star {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    z-index: 10;
    width: 28px;
    height: 28px;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
    opacity: 0.92;
}

.lp-carousel__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.lp-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.lp-slide-inner {
    position: relative;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-primary);
}

@media (max-width: 576px) { .lp-slide-inner { height: 260px; } }

.lp-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-slide-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent 30%,
        rgba(0,0,0,0.25) 60%,
        rgba(0,0,0,0.72) 100%);
    pointer-events: none;
}

.lp-slide__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 2;
}

.lp-slide__title {
    font-size: clamp(1.05rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-bold);
    color: #fff;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.lp-slide__desc {
    font-size: 0.9rem;
    font-weight: var(--font-weight-regular);
    color: rgba(255,255,255,0.92);
    margin-bottom: 0.7rem;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.lp-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    background: var(--color-secondary);
    color: #FFF;
    font-weight: var(--font-weight-bold);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lp-slide__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    color: #FFF;
}

/* skeleton shimmer */
.lp-carousel__slide--skeleton .lp-slide-inner {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* boutons prev/next */
.lp-carousel__btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-fast), transform var(--transition-fast);
    color: var(--color-primary);
    font-size: 1.1rem;
}

.lp-carousel__btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.lp-carousel__btn--prev { left: 10px; }
.lp-carousel__btn--next { right: 10px; }

/* dots */
.lp-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0 0;
}

.lp-carousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(0,0,202,0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.lp-carousel__dot.active {
    background: var(--color-primary);
    width: 20px;
    border-radius: 4px;
}

/* Carrousel vide */
.lp-carousel--empty {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-background-light);
    border-radius: var(--radius-lg);
    color: var(--color-text-light);
}

/* ── 5. TENDANCES ─────────────────────────────── */
.lp-trending {
    padding: var(--spacing-xxl) 0;
    background: var(--color-background);
}

.lp-trending .tabs-filter { margin-bottom: var(--spacing-lg); }

/* ══════════════════════════════════════════════════════════════
   TENDANCES — styles repris de trending.html (inline → partagé)
   ══════════════════════════════════════════════════════════════ */

/* ── Filtres catégories ─────────────────────────────────────── */
.tabs-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tab-btn {
    border: 2px solid var(--color-border);
    background: white;
    border-radius: 99px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text);
    font-family: var(--font-family);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ── Item tendance ──────────────────────────────────────────── */
.trending-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    cursor: default;
    color: inherit;
}

.trending-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.trending-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ── Rang ───────────────────────────────────────────────────── */
.trending-rank {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 56px;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.trending-rank.rank-1 { color: #FFD700; }
.trending-rank.rank-2 { color: #C0C0C0; }
.trending-rank.rank-3 { color: #CD7F32; }

/* ── Infos ──────────────────────────────────────────────────── */
.trending-item-info {
    flex-grow: 1;
    min-width: 0;
}

.trending-item-info h5 {
    margin-bottom: 0.2rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-item-info p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ── Méta droite ────────────────────────────────────────────── */
.trending-meta {
    text-align: right;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.trending-meta .badge-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

/* ── Badges tendance ────────────────────────────────────────── */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    vertical-align: middle;
    white-space: nowrap;
}

.trend-up {
    color: var(--color-primary);
    background: rgba(0, 0, 202, 0.08);
}

.trend-up i,
.trend-down i { font-size: 0.85rem; }

.trend-down {
    color: var(--color-primary);
    background: rgba(0, 0, 202, 0.08);
}

.trend-new {
    color: var(--color-primary);
    background: #ffd800;
}

/* ── Image placeholder ──────────────────────────────────────── */
.placeholder-img {
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

/* ── Tendances : sous-titre ────────────────────── */
.lp-trending__subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-top: -1rem;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

/* ── Filtres démographiques ───────────────────── */
.lp-demo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.lp-demo-select {
    border: 2px solid var(--color-border);
    background: white;
    border-radius: 99px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text);
    font-family: var(--font-family);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%234a4a4a' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.lp-demo-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,0,202,0.1);
}

/* ── Couronnes podium ─────────────────────────── */
.lp-crown-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ── Couronne baseline (SVG inline currentColor) ─────────── */
.lp-baseline__crown {
    display: block;
    width: 30px;
    height: auto;
    margin: 0 auto 4px;
    line-height: 0;
}

.lp-baseline__crown svg {
    width: 30px;
    height: auto;
    display: block;
    transition: color 0.9s ease-in-out;  /* fondu couleur synchronisé avec les images */
}

/* Espace réservé pour "Et + encore !" (sans couronne) */
.lp-baseline__crown--empty {
    display: block;
    height: 22px; /* hauteur approx du SVG à 30px de large */
    width: 30px;
}

/* ── Indicateur de force du mot de passe ─────────────────── */
.password-strength-bar {
    height: 5px;
    background: var(--color-border, #e0e0e0);
    border-radius: 3px;
    overflow: hidden;
}
.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}
.password-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.2rem;
    display: block;
}
.password-criteria {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 0.5rem;
}
.password-criteria li {
    font-size: 0.75rem;
    color: var(--color-text-light, #888);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}
.password-criteria li .bi-x-circle-fill { color: #dc3545; font-size: 0.7rem; }
.password-criteria li.met { color: #198754; }
.password-criteria li.met .bi-check-circle-fill { color: #198754; font-size: 0.7rem; }

/* star.svg colorisé en --color-secondary (#d5b56e) dans feature-icon */
.feature-icon-star {
    width: 2rem;
    height: 2rem;
    /* filtre calculé pour #d5b56e : or champagne */
    filter: invert(76%) sepia(28%) saturate(600%) hue-rotate(5deg) brightness(98%);
}

/* ══════════════════════════════════════════════════════
   SECTION COMMENT ÇA MARCHE — hiw-card
   Cards avec image chapeau + copyright + titre + description
══════════════════════════════════════════════════════ */

.hiw-card {
    background: var(--color-card-bg, #fff);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.hiw-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.hiw-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-secondary);
    flex-shrink: 0;
}
.hiw-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hiw-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}
.hiw-card__copyright {
    position: absolute;
    bottom: 0.4rem;
    right: 0.6rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    pointer-events: none;
    line-height: 1;
}
.hiw-card__copyright:empty { display: none; }

.hiw-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.hiw-card__body h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin: 10px 0 10px 0;
}
.hiw-card__body p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.hiw-more-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
    background: transparent;
}
.hiw-more-btn:hover {
    background: var(--color-primary);
    color: #fff;
}
