/**
 * Page-specific styles for histoire-ats-huntool.html
 */

/* ── Histoire Hero ── */
.histoire-hero {
    padding: var(--space-20) 0 var(--space-6);
}

.histoire-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--gray-800);
    margin-bottom: var(--space-2);
}

.histoire-title em {
    font-style: normal;
    color: var(--orange-500);
}

/* Pills de contexte dans le hero */
.histoire-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.histoire-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--gray-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-600);
}

/* Caption sous la citation */
.histoire-caption {
    text-align: center;
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--gray-500);
    letter-spacing: 0.04em;
    margin-top: calc(-1 * var(--space-2));
}

/* Phrase d'accroche */
.histoire-accroche {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--gray-400);
    margin-top: var(--space-2);
    letter-spacing: -0.01em;
}

/* ── Encart cards ── */
.histoire-encarts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

@media (max-width: 639px) {
    .histoire-encarts {
        grid-template-columns: 1fr;
    }
}

.histoire-encart-card {
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    background: white;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.histoire-encart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-200);
    color: inherit;
}

.encart-emoji {
    font-size: var(--text-4xl);
    line-height: 1;
}

.encart-label {
    font-family: var(--font-display);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    color: var(--gray-900);
    text-align: center;
}

.histoire-stats-row {
    display: flex;
    gap: var(--space-3);
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
    flex-wrap: wrap;
}

.histoire-stat {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: var(--space-5) var(--space-5);
    border-radius: var(--radius-2xl);
    background: white;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-out);
}

.histoire-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-200);
}

.histoire-stat-n {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: var(--orange-500);
    line-height: 1;
}

.histoire-stat-l {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 768px) {
    .histoire-title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        white-space: normal;
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange-400), var(--turquoise-400));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-10);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--space-8) - 5px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange-500);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--orange-200);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--orange-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.timeline-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
}

.timeline-text strong {
    color: var(--gray-900);
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1023px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Team card */
.team-card {
    text-align: center;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-2xl);
    background: white;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-out);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.team-card-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 4px solid var(--orange-100);
    transition: border-color var(--duration-base) var(--ease-out);
}

.team-card:hover .team-card-avatar {
    border-color: var(--orange-400);
}

.team-card h4 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.team-card-role {
    font-size: var(--text-sm);
    font-style: italic;
    font-weight: var(--font-normal);
    color: var(--gray-400);
    margin-top: calc(-1 * var(--space-3));
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

.team-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* Bottom links */
.bottom-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    text-align: center;
}

@media (max-width: 639px) {
    .bottom-links-grid {
        grid-template-columns: 1fr;
    }
}

.bottom-link-card {
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    background: white;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.bottom-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-200);
    color: inherit;
}

.bottom-link-card .link-emoji {
    font-size: var(--text-4xl);
}

.bottom-link-card .link-text {
    font-family: var(--font-display);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    color: var(--gray-900);
}

/* Moved from inline styles */
.page-histoire-ats .histoire-hero-subtitle {
    text-align: center;
}
.page-histoire-ats .histoire-quote-wrap {
    display: flex;
    justify-content: center;
}
.page-histoire-ats .histoire-caption.histoire-caption--right {
    text-align: right;
    padding-right: 1.8rem;
}
.page-histoire-ats .section-team {
    min-height: auto;
    padding-top: var(--space-8);
}
.page-histoire-ats .timeline-section {
    min-height: auto;
}
.page-histoire-ats .timeline-container {
    max-width: 48rem;
}
.page-histoire-ats .section-engagements {
    min-height: auto;
    padding-block: var(--space-14);
}
.page-histoire-ats .histoire-encarts-spacing {
    margin-bottom: var(--space-16);
}
.page-histoire-ats .cta-section.cta-final {
    min-height: auto;
    padding-block: var(--space-8);
}
.page-histoire-ats .cta-counter {
    color: var(--orange-400);
}
.page-histoire-ats .cta-actions {
    flex-wrap: wrap;
    justify-content: center;
}
.page-histoire-ats .btn-ghost-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.page-histoire-ats .footer-address {
    font-size: var(--text-sm);
    padding-block: var(--space-2);
}
