/* ============================================
   RIVEST TALENT PROFILE — section du site rivest.co
   S'appuie sur les jetons de styles.css
   ============================================ */

/* Hero */
.tp-hero {
    min-height: 100vh;
    text-align: center;
}

.tp-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tp-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.92) 100%);
}

.tp-hero .hero-bg,
.tp-hero .hero-overlay {
    z-index: 1;
}

.tp-hero .hero-content {
    grid-template-columns: 1fr;
    z-index: 2;
}

.tp-hero .hero-text {
    max-width: 860px;
    margin: 0 auto;
}

.tp-hero .hero-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.tp-hero .hero-description {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.tp-hero .hero-cta {
    justify-content: center;
    margin-bottom: 0;
}

/* Forces révélées */
.tp-benefits {
    background: linear-gradient(180deg, var(--primary-900) 0%, var(--primary-800) 100%);
}

.tp-benefits .section-title {
    color: var(--white);
}

.tp-benefits .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.tp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.tp-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.tp-card:hover {
    border-color: rgba(212, 169, 18, 0.5);
    transform: translateY(-4px);
}

.tp-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(196, 153, 10, 0.18);
    color: var(--accent-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.tp-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.tp-card p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

/* Philosophie */
.tp-philosophy {
    background: var(--white);
}

.tp-philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.tp-philosophy-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    aspect-ratio: 1 / 1;
    max-height: 520px;
}

.tp-philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.tp-philosophy-image:hover img {
    transform: scale(1.04);
}

.tp-rule {
    width: 64px;
    height: 3px;
    background: var(--gradient-accent);
    margin-bottom: var(--space-xl);
}

.tp-quote {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-style: italic;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-xl);
}

.tp-philosophy-text {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--neutral-600);
    font-weight: 300;
    margin-bottom: var(--space-xl);
}

.tp-link {
    color: var(--primary-600);
    font-weight: 600;
    border-bottom: 1px solid var(--accent-400);
}

.tp-link:hover {
    color: var(--accent-600);
}

/* Formulaire */
.tp-signup {
    position: relative;
    background: var(--primary-900);
    overflow: hidden;
}

.tp-signup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/talent-profile/noise.png');
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.tp-signup .container {
    position: relative;
    z-index: 1;
}

.tp-form-card {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(12px);
}

.tp-form-card h2 {
    color: var(--white);
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--space-xl);
}

.tp-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.tp-form .form-group label {
    color: var(--accent-300);
}

.tp-form .form-group input {
    background: rgba(30, 58, 95, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.tp-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.tp-form .form-group input:focus {
    background: rgba(30, 58, 95, 0.75);
    border-color: var(--accent-400);
    box-shadow: 0 0 0 3px rgba(212, 169, 18, 0.25);
}

.tp-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tp-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    line-height: 1.5;
}

.tp-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent-400);
}

.tp-consent a {
    color: var(--accent-300);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tp-alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.tp-alert[hidden] {
    display: none;
}

.tp-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.tp-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
    text-align: center;
    padding: var(--space-xl);
}

.tp-form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.tp-form-note {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Page de confidentialité */
.tp-legal {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-4xl);
    background: var(--white);
}

.tp-legal .container {
    max-width: 760px;
}

.tp-legal h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: var(--space-xl) 0 var(--space-2xl);
    color: var(--primary-900);
}

.tp-legal h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-900);
}

.tp-legal section {
    margin-bottom: var(--space-xl);
}

.tp-legal p {
    color: var(--neutral-700);
    line-height: 1.75;
}

.tp-legal .tp-officer {
    border-top: 1px solid var(--neutral-200);
    padding-top: var(--space-xl);
    margin-top: var(--space-2xl);
}

.tp-legal a {
    color: var(--primary-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Lien actif du menu */
.nav-cta[aria-current="page"] {
    box-shadow: 0 0 0 2px rgba(212, 169, 18, 0.35);
}

@media (max-width: 1024px) {
    .tp-cards {
        grid-template-columns: 1fr;
    }

    .tp-philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .tp-form-card {
        padding: var(--space-xl);
    }

    .tp-hero .hero-cta .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-card,
    .tp-philosophy-image img {
        transition: none;
    }
}

/* ============================================
   Version alignée sur la page Signature Index
   ============================================ */
.tp-hero-v2 .hero-bg,
.tp-hero-v2 .hero-overlay {
    z-index: 1;
}

.tp-hero-v2 .hero-content {
    z-index: 2;
}

.tp-hero-v2 .tp-hero-media img {
    object-position: center right;
}

.tp-form-tag {
    display: table;
    margin: 0 auto var(--space-md);
}

.tp-already {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.tp-already a {
    color: var(--accent-300);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-already a:hover {
    color: var(--white);
}

.tp-team {
    max-width: 560px;
    margin: var(--space-2xl) auto 0;
    text-align: center;
}

.tp-team h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.tp-team p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.tp-benefits .section-tag.light,
.tp-signup .section-tag.light {
    margin-bottom: var(--space-md);
}
