/**
 * TerangaExplorer - Homepage CSS
 * Styles spécifiques à la page d'accueil (front-page.php)
 * Chargé uniquement sur is_front_page()
 */

/* ============================
   1. BARRE DE STATISTIQUES
   ============================ */
.te-stats-bar {
    background: linear-gradient(135deg, var(--te-color-primary, #1B4965) 0%, #0d2d42 100%);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.te-stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.te-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    text-align: center;
    position: relative;
}

.te-stat-item {
    padding: 1rem;
}

.te-stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    font-family: var(--te-font-heading);
    line-height: 1;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.te-stat-label {
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================
   2. CARTES PERSONAS
   ============================ */
.te-persona-card {
    background: var(--te-color-white, #fff);
    border-radius: var(--te-radius-lg, 16px);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.te-persona-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--te-color-primary), var(--te-color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.te-persona-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.te-persona-card:hover::before {
    opacity: 1;
}

.te-persona-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.te-persona-title {
    font-family: var(--te-font-heading);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--te-color-primary);
    margin-bottom: 0.5rem;
}

/* ============================
   3. TÉMOIGNAGES
   ============================ */
.te-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
}

.te-testimonial-card {
    background: var(--te-color-white, #fff);
    border-radius: var(--te-radius-lg, 16px);
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.te-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--te-shadow-lg);
}

.te-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: var(--te-font-heading);
    color: var(--te-color-accent, #F4E5C3);
    opacity: 0.5;
    line-height: 1;
}

.te-testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.te-testimonial-text {
    font-size: var(--te-fs-body, 0.95rem);
    line-height: 1.7;
    color: var(--te-text-muted, #666);
    margin-bottom: 1rem;
}

.te-testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--te-text-main, #333);
}

.te-testimonial-origin {
    font-size: 0.8rem;
    color: var(--te-text-muted, #666);
}

/* ============================
   4. GARANTIES
   ============================ */
.te-guarantee-card {
    background: var(--te-color-white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--te-radius-lg, 16px);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    transition: transform 0.3s ease;
}

.te-guarantee-card:hover {
    transform: translateY(-4px);
}

.te-guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.te-guarantee-badge--green { background: rgba(34, 197, 94, 0.1); color: #166534; }
.te-guarantee-badge--yellow { background: rgba(245, 158, 11, 0.1); color: #92400e; }
.te-guarantee-badge--blue { background: rgba(59, 130, 246, 0.1); color: #1e40af; }

/* ============================
   5. BOÎTE PARTENAIRE
   ============================ */
.te-partner-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--te-radius-xl, 24px);
    padding: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.te-partner-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(27, 73, 101, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* ============================
   6. GUIDE DE VOYAGE
   ============================ */
.te-guide-section {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    padding: clamp(3rem, 6vw, 6rem) 0;
    color: #fff;
}

.te-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
}

.te-guide-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--te-radius-lg, 16px);
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.te-guide-preview:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* ============================
   7. DARK MODE OVERRIDES
   ============================ */
[data-theme="dark"] .te-stats-bar {
    background: linear-gradient(135deg, #020617, #0f172a);
}

[data-theme="dark"] .te-persona-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .te-testimonial-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .te-guarantee-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .te-guarantee-badge--green { background: rgba(34,197,94,0.15); }
[data-theme="dark"] .te-guarantee-badge--yellow { background: rgba(245,158,11,0.15); }
[data-theme="dark"] .te-guarantee-badge--blue { background: rgba(59,130,246,0.15); }

[data-theme="dark"] .te-partner-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
}

[data-theme="dark"] .te-guide-section {
    background: linear-gradient(135deg, #020617, #0f172a);
}

/* ============================
   8. RESPONSIVE MOBILE
   ============================ */
@media (max-width: 768px) {
    .te-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .te-testimonial-grid { grid-template-columns: 1fr; }
    .te-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .te-stats-grid { gap: 0.5rem; }
    .te-stat-number { font-size: 2rem; }
    .te-partner-box { padding: 2rem 1.5rem; }
}
