/**
 * Lin Teas - Page Notre Histoire
 * Design premium inspiré du mockup histoire-lin.html
 */

/* ==========================================================================
   Global Emoji Styles
   ========================================================================== */

.histoire-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Uniformiser tous les émojis de la page */
.histoire-page .story-badge,
.histoire-page .timeline-marker,
.histoire-page .value-icon {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.story-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(127, 179, 163, 0.95), rgba(172, 215, 210, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,25 50,50 Q75,75 100,50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') repeat;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,10 80,20" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.story-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.chinese-name {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: #D3AE27;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.story-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.lin-portrait {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.lin-portrait span {
    font-size: 8rem;
    line-height: 1;
}

.story-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D3AE27;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */

.timeline-section {
    padding: 6rem 0;
    background: #FEFEFE;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7FB3A3;
    margin-bottom: 4rem;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Items impairs : emoji à gauche, contenu à droite */
.timeline-item:nth-child(odd) {
    grid-template-areas: "content marker empty";
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-area: content;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-marker {
    grid-area: marker;
}

/* Items pairs : emoji à droite, contenu à gauche */
.timeline-item:nth-child(even) {
    grid-template-areas: "empty marker content";
}

.timeline-item:nth-child(even) .timeline-content {
    grid-area: content;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-marker {
    grid-area: marker;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FB3A3 0%, #ACD7D2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.timeline-content {
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

/* Couleurs alternées pour les timeline items */
.timeline-item:nth-child(1) .timeline-content {
    background: linear-gradient(135deg, #E8F5F3 0%, #F0F9F7 100%);
    border-color: #7FB3A3;
}

.timeline-item:nth-child(2) .timeline-content {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFFCF5 100%);
    border-color: #D3AE27;
}

.timeline-item:nth-child(3) .timeline-content {
    background: linear-gradient(135deg, #F0F8F6 0%, #F5FBFA 100%);
    border-color: #ACD7D2;
}

.timeline-item:nth-child(4) .timeline-content {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF8F8 100%);
    border-color: #B85450;
}

.timeline-item:nth-child(5) .timeline-content {
    background: linear-gradient(135deg, #E8F5F3 0%, #F0F9F7 100%);
    border-color: #7FB3A3;
}

.timeline-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2C3E50;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.timeline-date {
    display: inline-block;
    background: rgba(127, 179, 163, 0.2);
    color: #2C3E50;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #5A6C7D;
    line-height: 1.8;
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   Values Section
   ========================================================================== */

.values-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #FEFEFE 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

/* Couleurs alternées pour les cards */
.value-card:nth-child(1) {
    background: linear-gradient(135deg, #F0F8F6 0%, #FFFFFF 100%);
    border-color: #ACD7D2;
}

.value-card:nth-child(2) {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFFFFF 100%);
    border-color: #D3AE27;
}

.value-card:nth-child(3) {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    border-color: #B85450;
}

.value-card:nth-child(4) {
    background: linear-gradient(135deg, #F0F8F6 0%, #FFFFFF 100%);
    border-color: #7FB3A3;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.value-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.value-card p {
    color: #5A6C7D;
    line-height: 1.6;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #7FB3A3 0%, #ACD7D2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #B85450;
    color: white;
}

.btn-primary:hover {
    background: #A04440;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(184, 84, 80, 0.3);
}

.btn-secondary {
    background: white;
    color: #7FB3A3;
}

.btn-secondary:hover {
    background: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .story-title {
        font-size: 2rem;
    }

    .lin-portrait {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

