/*
 * apropos.css — Styles partagés pour qui-sommes-nous.html et nos-engagements.html
 */

/* ── BANNIÈRE ──────────────────────────────────────────────────── */
.apropos-banner {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    padding: 80px 20px 70px;
}
.apropos-banner .script-text {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.apropos-banner h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.apropos-banner p {
    font-size: 1.1rem;
    color: #666;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.apropos-section {
    padding: 80px 20px;
}
.apropos-section.bg-card {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.apropos-section__inner {
    max-width: 860px;
    margin: 0 auto;
}
.apropos-section__inner--wide {
    max-width: 1100px;
    margin: 0 auto;
}
.apropos-section h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 32px;
}
.apropos-section h2 .accent {
    color: var(--primary-color);
}

/* ── NARRATIF ──────────────────────────────────────────────────── */
.apropos-narrative {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 28px;
}
.apropos-narrative:last-child { margin-bottom: 0; }
.apropos-narrative strong { color: var(--text-dark); }
.apropos-narrative em { font-style: italic; }

/* ── ÉQUIPE ────────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 52px;
    overflow: hidden; /* contient les translateX pendant l'animation */
    padding: 4px;     /* laisse respirer les box-shadows au repos */
}
.team-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}
.team-card:hover {
    box-shadow: 0 8px 32px rgba(140, 90, 70, 0.12);
}
.team-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 auto 20px;
}
.team-card__role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
}
.team-card__name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.team-card__bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}
.team-card__skills {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
.team-card__skills li {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    padding: 3px 0 3px 14px;
    position: relative;
}
.team-card__skills li::before {
    content: '·';
    position: absolute;
    left: 2px;
    color: var(--primary-color);
    font-weight: 700;
}

/* ── VALEURS ────────────────────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.value-item {
    text-align: center;
    padding: 28px 16px;
}
.value-item__icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 12px;
}
.value-item__title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.value-item__text {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.65;
}

/* ── ANIMATION CARTES PILIERS ───────────────────────────────────── */
@keyframes bounce-from-left {
    0%   { opacity: 0; transform: translateX(-70px); }
    55%  { opacity: 1; transform: translateX(18px);  }
    70%  { transform: translateX(-10px); }
    85%  { transform: translateX(5px);  }
    100% { opacity: 1; transform: translateX(0);     }
}
@keyframes bounce-from-right {
    0%   { opacity: 0; transform: translateX(70px);  }
    55%  { opacity: 1; transform: translateX(-18px); }
    70%  { transform: translateX(10px);  }
    85%  { transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0);     }
}
@keyframes bounce-from-center {
    0%   { opacity: 0; transform: scale(0.6);  }
    55%  { opacity: 1; transform: scale(1.03); }
    70%  { transform: scale(0.98); }
    85%  { transform: scale(1.01); }
    100% { opacity: 1; transform: scale(1);    }
}
@keyframes bounce-from-bottom {
    0%   { opacity: 0; transform: translateY(40px); }
    55%  { opacity: 1; transform: translateY(-12px);}
    70%  { transform: translateY(6px);  }
    85%  { transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(0);    }
}

.team-card--left,
.team-card--center,
.team-card--right {
    opacity: 0;
    will-change: transform;
}

.team-card--left.is-visible   { animation: bounce-from-left   0.95s linear both; }
.team-card--center.is-visible { animation: bounce-from-center 0.95s linear both; }
.team-card--right.is-visible  { animation: bounce-from-right  0.95s linear both; }

@media (prefers-reduced-motion: reduce) {
    .team-card--left,
    .team-card--center,
    .team-card--right {
        opacity: 1;
        will-change: auto;
    }
    .team-card--left.is-visible,
    .team-card--center.is-visible,
    .team-card--right.is-visible {
        animation: none;
    }
}

/* Mobile : translateY pour les cartes latérales (pas de débordement horizontal) */
@media (max-width: 768px) {
    .team-card--left.is-visible  { animation-name: bounce-from-bottom; }
    .team-card--right.is-visible { animation-name: bounce-from-bottom; }
}

/* ── ANIMATION PILIERS ──────────────────────────────────────────── */
.piliers-anim {
    margin: 32px auto 32px;
    max-width: 720px;
}
.piliers-anim img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ── ENGAGEMENTS ────────────────────────────────────────────────── */
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 40px;
}
.engagement-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 36px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.engagement-card:hover {
    box-shadow: 0 8px 32px rgba(140, 90, 70, 0.12);
    border-color: var(--primary-color);
}
.engagement-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 36px;
    align-items: start;
}
.engagement-card__icon {
    width: 52px;
    height: 52px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-bottom: 20px;
}
.engagement-card--featured .engagement-card__icon { margin-bottom: 0; }
.engagement-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
}
.engagement-card--featured .engagement-card__label { margin-top: 4px; }
.engagement-card__title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.engagement-card__text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.75;
}

/* ── CHIFFRES ───────────────────────────────────────────────────── */
.apropos-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.apropos-stat__number {
    font-family: var(--font-text);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--primary-color);
    display: block;
    margin-bottom: 6px;
}
.apropos-stat__label {
    font-size: 0.88rem;
    color: #666;
}

/* ── CTA FINAL ──────────────────────────────────────────────────── */
.apropos-cta {
    text-align: center;
    padding: 80px 20px;
}
.apropos-cta .script-text { margin-bottom: 8px; }
.apropos-cta h2 { font-size: 2.2rem; margin-bottom: 16px; }
.apropos-cta p { color: #666; margin-bottom: 32px; font-size: 1.05rem; }
.apropos-cta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .apropos-banner h1       { font-size: 2.2rem; }
    .apropos-banner p        { font-size: 1rem; }
    .apropos-section h2      { font-size: 1.8rem; }
    .team-grid               { grid-template-columns: 1fr; }
    .values-grid             { grid-template-columns: 1fr; }
    .engagements-grid        { grid-template-columns: 1fr; }
    .engagement-card--featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .engagement-card--featured .engagement-card__icon { margin-bottom: 20px; }
    .apropos-stats           { gap: 32px; }
    .apropos-cta h2          { font-size: 1.8rem; }
}
