/* =====================================================================
   Vitrine des concours (visiteurs) — /concours et /concours?type=…
   S'appuie sur la charte du module : student-concours-types.css (bannière),
   student-concours-sujets.css (filtres, cartes, pagination, états vides).
   Ce fichier ne contient que ce qui est propre à la vitrine.
   ===================================================================== */

/* ───────── Bannière ───────── */
.cp-hero__fullname {
    margin: -0.25rem 0 0.75rem;
    color: #fff;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.cp-hero__cta { margin-bottom: 1.4rem; }

/* ───────── Carte d'un concours ───────── */
.cp-type {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--concours-radius-lg, 20px);
    box-shadow: var(--cs-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cp-type:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 85, 0, 0.4);
    box-shadow: var(--cs-shadow-hover);
}

.cp-type__head {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.5rem 1.5rem;
    background: #ff5500;
    color: #fff;
}

.cp-type__head::before,
.cp-type__head::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.cp-type__head::before { width: 190px; height: 190px; right: -62px; top: -86px; }
.cp-type__head::after { width: 110px; height: 110px; left: -36px; bottom: -58px; }

.cp-type__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cp-type__name {
    position: relative;
    z-index: 1;
    margin: 0.85rem 0 0;
    max-width: 85%;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    text-shadow: 0 4px 14px rgba(124, 45, 18, 0.28);
}

.cp-type__mark {
    position: absolute;
    right: 1.25rem;
    bottom: 0.9rem;
    z-index: 1;
    font-size: 3.4rem;
    color: rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 4px 10px rgba(124, 45, 18, 0.25));
}

.cp-type__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
}

.cp-type__full {
    flex: 1;
    margin: 0 0 1rem;
    color: var(--cs-muted);
    font-size: 0.97rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp-type__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.cp-type__facts .cs-tag { padding: 0.28rem 0.75rem; font-size: 0.78rem; }

.cp-type__cta {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

.cp-type__cta i { transition: transform 0.2s ease; }
.cp-type:hover .cp-type__cta i { transform: translateX(4px); }

/* ───────── Carte d'un sujet (visiteur) ───────── */
.cp-lock--free { background: rgba(255, 255, 255, 0.92); color: #15803d; }

.cp-subject .cs-foot { flex-wrap: wrap; row-gap: 0.5rem; }

/* ───────── Recherche ───────── */
.cp-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cp-search__icon {
    position: absolute;
    left: 0.9rem;
    z-index: 2;
    color: var(--cs-muted);
    pointer-events: none;
}

.cp-search__input { padding-left: 2.4rem; }

.cp-search .cs-btn { min-height: 2.65rem; }

/* ───────── Mobiles ───────── */
@media (max-width: 575.98px) {
    .cp-hero__cta .btn { flex: 1 1 100%; }
    .cp-type__head { padding: 1.15rem 1.25rem 1.3rem; }
    .cp-type__body { padding: 1.1rem 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-type, .cp-type__cta i { transition: none; }
    .cp-type:hover { transform: none; }
    .cp-type:hover .cp-type__cta i { transform: none; }
}
