/* ===== Page À propos — Chrijdid.ma ===== */

/* ---------- Elements communs ---------- */
.about-section {
    padding: 90px 0;
    
}
.about-title {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    color: #161e2d;
    margin-bottom: 20px;
}
.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 16px;
}
.about-text:last-child {
    margin-bottom: 0;
}
.about-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-bordeaux);
    margin-bottom: 16px;
}
.about-eyebrow.light {
    color: var(--color-turquoise);
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background-color: var(--color-bordeaux);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.about-btn:hover {
    background-color: var(--color-bordeaux-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(139, 48, 51, 0.25);
}
.about-btn .icon {
    font-size: 13px;
}
.about-btn.light {
    background-color: #ffffff;
    color: var(--color-bordeaux);
}
.about-btn.light:hover {
    background-color: #ffffff;
    color: var(--color-bordeaux-dark);
}
.about-btn.outline {
    background-color: transparent;
    border: 1.5px solid #e4e4e4;
    color: #161e2d;
}
.about-btn.outline:hover {
    background-color: transparent;
    border-color: var(--color-bordeaux);
    color: var(--color-bordeaux);
    box-shadow: none;
}

/* ---------- Banniere ---------- */
.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 200px 0 110px;
    background-color: #161e2d;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* Un simple fondu en opacite (pas d'animation sur background-size : cette
       propriete n'est pas accelere par le GPU et force un repaint a chaque
       frame, ce qui donne une impression de lenteur pendant 1,5s). */
    animation: heroImageReveal 0.6s ease-out forwards;
}

@keyframes heroImageReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.about-hero > .container {
    position: relative;
    z-index: 2;
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 30, 45, 0.7);
    z-index: 1;
}
.about-hero-inner {
    max-width: 780px;
}
.about-hero-title {
    font-size: 48px;
    line-height: 1.18;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 22px;
}
.about-hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 34px;
}
.about-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    background-color: var(--color-bordeaux);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-hero-cta:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}
.about-hero-cta .icon {
    font-size: 11px;
}

/* ---------- Bloc image + texte ---------- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-split.reverse .about-split-media {
    order: 2;
}
.about-split-media {
    position: relative;
}
.about-split-media img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    background-color: var(--color-gray-light);
}
.about-split-badge {
    position: absolute;
    right: -18px;
    bottom: -18px;
    background-color: var(--color-bordeaux);
    color: #ffffff;
    border-radius: 18px;
    padding: 20px 26px;
    text-align: center;
    box-shadow: 0 16px 34px rgba(22, 30, 45, 0.18);
}
.about-split-badge .value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}
.about-split-badge .label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-top: 6px;
    opacity: 0.92;
}

/* ---------- Grille "la plateforme permet de" ---------- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 70px;
}
.mission-item {
    background: #ffffff;
    border: 1px solid #edeff2;
    border-radius: 16px;
    padding: 26px 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mission-item:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(22, 30, 45, 0.1);
}
.mission-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: #e2f2f0;
    color: #2f8f88;
    font-size: 22px;
    margin-bottom: 16px;
}
.mission-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #161e2d;
    font-weight: 600;
    margin: 0;
}

/* ---------- Parcours en 5 etapes ---------- */
.about-journey {
    background-color: #f7f9fc;
}
.about-journey .steps-modern-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.about-journey .steps-modern-row::before {
    left: 10%;
    right: 10%;
}
.about-journey .step-card {
    background: #ffffff;
}
.about-journey .steps-modern-row.js-ready .step-card:nth-child(5) {
    transition-delay: 0.48s;
}
@media (max-width: 1199px) {
    .about-journey .steps-modern-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-journey .steps-modern-row::before {
        display: none;
    }
}
@media (max-width: 767px) {
    .about-journey .steps-modern-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .about-journey .steps-modern-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Immotis ---------- */
.about-immotis {
    background-color: #ffffff;
}

/* ---------- Mot du directeur general ---------- */
.about-word {
    padding-top: 0;
}
.dg-quote-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0;
    background-color: #161e2d;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}
.dg-quote-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-turquoise);
}
.dg-quote-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
    background-color: #202a3c;
}
.dg-quote-content {
    padding: 56px 54px;
}
.dg-quote-mark {
    display: block;
    font-size: 44px;
    color: var(--color-turquoise);
    margin-bottom: 18px;
}
.dg-quote-title {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 22px;
}
.dg-quote-text {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
}
.dg-quote-author {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.dg-quote-author .name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}
.dg-quote-author .role {
    display: block;
    font-size: 13px;
    color: var(--color-turquoise);
    margin-top: 4px;
}

/* ---------- Temoignages ---------- */
.about-testimonials {
    background-color: #f3f7fd;
}
.about-testimonials .sw-pagination-testimonial {
    margin-top: 28px;
}

/* ---------- Double appel a l'action ---------- */
.about-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.about-cta-card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    padding: 46px 44px;
}
.about-cta-card.promoters {
    background-color: #8b3033;
    color: #ffffff;
}
.about-cta-card.buyers {
    background-color: #ffffff;
    border: 1px solid #e9ecf1;
    box-shadow: 0 10px 30px rgba(22, 30, 45, 0.06);
}
.about-cta-title {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 18px;
}
.about-cta-card.promoters .about-cta-title {
    color: #ffffff;
}
.about-cta-card.buyers .about-cta-title {
    color: #161e2d;
}
.about-cta-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-cta-card.promoters .about-cta-text {
    color: rgba(255, 255, 255, 0.78);
}
.about-cta-card.buyers .about-cta-text {
    color: #6b7280;
}
.about-cta-card .about-btn,
.about-cta-actions {
    margin-top: auto;
    padding-top: 14px;
}
.about-cta-card > .about-btn {
    align-self: flex-start;
}
.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Animations d'apparition ---------- */
.about-reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-reveal-ready [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}
.about-reveal-ready .about-journey .step-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
}
.about-reveal-ready .about-journey .step-card.in-view {
    opacity: 1;
    transform: translateY(0);
}
.about-reveal-ready .about-journey .step-card:hover {
    transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
    .about-reveal-ready [data-reveal],
    .about-reveal-ready .about-journey .step-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .about-hero-title {
        font-size: 40px;
    }
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 991px) {
    .about-section {
        padding: 64px 0;
    }
    .about-hero {
        min-height: 520px;
        padding: 170px 0 80px;
    }
    .about-hero-title {
        font-size: 34px;
    }
    .about-title {
        font-size: 28px;
    }
    .about-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .about-split.reverse .about-split-media {
        order: 0;
    }
    .about-split-media img {
        height: 340px;
    }
    .about-split-badge {
        right: 16px;
        bottom: -14px;
    }
    .dg-quote-card {
        grid-template-columns: 1fr;
    }
    .dg-quote-media img {
        min-height: 300px;
    }
    .dg-quote-content {
        padding: 38px 30px;
    }
    .about-cta-grid {
        grid-template-columns: 1fr;
    }
    .about-cta-card {
        padding: 34px 28px;
    }
}
@media (max-width: 575px) {
    .about-hero-title {
        font-size: 28px;
    }
    .mission-grid {
        grid-template-columns: 1fr;
        margin-top: 44px;
    }
    .about-cta-actions {
        flex-direction: column;
    }
    .about-cta-actions .about-btn {
        justify-content: center;
    }
}
