/**
 * TerangaExplorer — Homepage CSS Externalisé v12.1
 * Extrait de front-page.php pour améliorer les Core Web Vitals.
 * Styles spécifiques à la page d'accueil (non-critiques).
 */

/* ============================================================
   BENTO GRID — Grille destinations
   ============================================================ */
.te-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}
.te-bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    transform: translateZ(0); /* Safari fix for border-radius + overflow */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.te-bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.te-bento-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 0;
}
.te-bento-item:hover img { transform: scale(1.05); }
.te-bento-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}
.te-bento-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    color: #fff;
    width: 100%;
}
.te-bento-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.te-bento-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.te-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.te-bento-corner {
    position: absolute;
    top: 15px; right: 15px;
    background: #f59e0b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.te-bento-corner-premium { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.te-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.te-stat-item { display: flex; align-items: center; gap: 6px; }

/* Grid Spans */
.bento-dakar       { grid-column: span 8; grid-row: span 2; }
.bento-petite-cote { grid-column: span 4; grid-row: span 2; }
.bento-saint-louis { grid-column: span 4; grid-row: span 1; }
.bento-casamance   { grid-column: span 4; grid-row: span 1; }
.bento-saloum      { grid-column: span 4; grid-row: span 1; }
.bento-oriental    { grid-column: span 12; grid-row: span 1; }

@media (max-width: 992px) {
    .te-bento-grid { grid-template-columns: repeat(6, 1fr); }
    .bento-dakar { grid-column: span 6; }
    .bento-petite-cote { grid-column: span 6; }
    .bento-saint-louis, .bento-casamance, .bento-saloum { grid-column: span 6; }
    .bento-oriental { grid-column: span 6; }
}
@media (max-width: 768px) {
    .te-bento-grid { display: flex; flex-direction: column; }
    .te-bento-item { height: 280px; }
    .bento-saint-louis, .bento-casamance, .bento-saloum { height: 250px; }
}

/* ============================================================
   PERSONAS CARDS
   ============================================================ */
.persona-card { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.persona-card:hover { transform: translateY(-5px); }

/* ============================================================
   SIMULATEUR BUDGET — Slider
   ============================================================ */
input[type=range] {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}
input[type=range]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}
.te-budget-card {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.te-budget-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* ============================================================
   SEARCH BAR PLACEHOLDER
   ============================================================ */
.search-bar input::placeholder { color: rgba(255,255,255,0.8); }

/* ============================================================
   GARANTIES — Float Icon Animation
   ============================================================ */
@keyframes float-icon {
    0%   { transform: translateY(0px) scale(1); }
    50%  { transform: translateY(-8px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}
.te-guarantee-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
.te-guarantee-card:hover .te-guarantee-icon {
    animation: float-icon 2s ease-in-out infinite;
}

/* ============================================================
   WOLOF CARDS
   ============================================================ */
.te-wolof-card {
    background: var(--te-color-light, #f9f9f9);
    padding: 1.5rem;
    border-radius: var(--te-radius-md, 8px);
    text-align: center;
    transition: var(--te-transition);
    cursor: default;
    border: 1px solid transparent;
}
.te-wolof-card:hover {
    border-color: var(--te-color-primary, #f59e0b);
    transform: translateY(-5px);
    box-shadow: var(--te-shadow-md);
}

/* ============================================================
   KIT VOYAGE CARDS
   ============================================================ */
.te-kit-card {
    background: var(--te-color-white, #fff);
    padding: 2rem;
    border-radius: var(--te-radius-lg, 16px);
    box-shadow: var(--te-shadow-sm);
    transition: var(--te-transition);
}
.te-kit-card:hover {
    box-shadow: var(--te-shadow-hover);
    transform: translateY(-5px);
}

/* ============================================================
   QUIZ DE VOYAGE (section homepage)
   ============================================================ */
.te-quiz-section {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}
.te-quiz-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.te-quiz-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    transition: width 0.5s ease;
}
.te-quiz-option {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-weight: 600;
    text-align: left;
}
.te-quiz-option:hover, .te-quiz-option.selected {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
    transform: translateX(5px);
}

/* ============================================================
   DARK MODE — Sections Homepage
   ============================================================ */
[data-theme="dark"] .te-guarantee-card  { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .te-testimonial-card { background: #1e293b; }
[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); }
[data-theme="dark"] .te-wolof-card      { background: #1e293b; }
[data-theme="dark"] .te-kit-card        { background: #1e293b; }
