/* ============================================
   ABOUT PAGE - OPTIMISÉ
   ============================================ */

.about-page {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 130px 0 0;
    position: relative;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 65% 30%, rgba(255,140,90,0.55) 0%, transparent 55%),
        radial-gradient(circle at 75% 55%, rgba(230,57,70,0.5) 0%, transparent 50%),
        linear-gradient(160deg, #b5451f 0%, #7a1f1f 45%, #2a0f0f 80%, #120808 100%);
}

.about-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(255,180,120,0.35), transparent 60%),
        radial-gradient(ellipse at 30% 90%, rgba(0,0,0,0.5), transparent 60%);
    pointer-events: none;
}

.about-page::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    background:
        radial-gradient(circle at 60% 35%, rgba(255,255,255,0.06) 0%, transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

.about-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 70px;
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   ✅ IMAGE - AVEC DIMENSIONS FIXES (évite le CLS)
   ============================================ */
.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    /* ✅ Réservation d'espace pour éviter le CLS */
    min-height: 200px;
}

.about-image {
    width: 100%;
    max-width: 420px;
    /* ✅ Dimensions explicites pour éviter le CLS */
    height: auto;
    aspect-ratio: 1 / 1; /* ✅ Maintient le ratio carré */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,107,53,0.3);
    /* ✅ Décodage asynchrone pour améliorer les performances */
    image-rendering: auto;
}

/* ✅ Fallback pour les navigateurs qui ne supportent pas aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .about-image {
        height: 420px;
        max-height: 420px;
    }
}

/* ============================================
   ABOUT TAG
   ============================================ */
.about-tag {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    background: rgba(255,107,53,0.12);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* ============================================
   ABOUT TITRE
   ============================================ */
.about-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--white);
    margin-bottom: 20px;
}

.about-title span {
    color: var(--accent);
}

/* ============================================
   ABOUT CONTENT
   ============================================ */
.about-content {
    margin-bottom: 30px;
    padding: 0 5px;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.about-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools-section {
    margin-bottom: 35px;
    padding: 0 5px;
}

.tools-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tool-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.tool-tag i {
    font-size: 0.95rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.tool-tag:hover i {
    color: var(--white);
}

/* ============================================
   CTA BOUTONS
   ============================================ */
.about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 5px;
}

.about-cta .btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.about-cta .btn-primary {
    background: var(--white);
    color: var(--bg-dark);
}

.about-cta .btn-primary:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,53,0.35);
}

.about-cta .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.about-cta .btn-outline:hover {
    background: var(--white);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .about-page {
        border-radius: 0 0 24px 24px;
        text-align: center;
        padding-top: 110px;
    }
    .about-title {
        font-size: 2.5rem;
    }
    .about-image {
        max-width: 320px;
        margin: 0 auto 20px;
    }
    @supports not (aspect-ratio: 1 / 1) {
        .about-image {
            height: 320px;
            max-height: 320px;
        }
    }
    .about-cta {
        justify-content: center;
    }
    .about-content {
        text-align: center;
    }
    .tools-grid {
        justify-content: center;
    }
    .about-lead {
        font-size: 1.1rem;
    }
    .about-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .about-page {
        padding-top: 100px;
        min-height: 85vh;
    }
    .about-title {
        font-size: 2rem;
    }
    .about-image {
        max-width: 260px;
    }
    @supports not (aspect-ratio: 1 / 1) {
        .about-image {
            height: 260px;
            max-height: 260px;
        }
    }
    .about-lead {
        font-size: 1rem;
    }
    .about-text {
        font-size: 0.9rem;
    }
    .tool-tag {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    .about-cta .btn {
        padding: 12px 26px;
        font-size: 0.85rem;
    }
    .about-inner {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 576px) {
    .about-page {
        padding-top: 90px;
        min-height: 80vh;
        padding-bottom: 40px;
        border-radius: 0 0 16px 16px;
    }
    .about-title {
        font-size: 1.6rem;
        letter-spacing: -1px;
    }
    .about-tag {
        font-size: 0.75rem;
        display: table;
        margin: 0 auto 16px;
    }
    .about-image {
        max-width: 200px;
    }
    @supports not (aspect-ratio: 1 / 1) {
        .about-image {
            height: 200px;
            max-height: 200px;
        }
    }
    .about-lead {
        font-size: 0.95rem;
    }
    .about-text {
        font-size: 0.85rem;
    }
    .tool-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
        gap: 6px;
        white-space: normal;
    }
    .tool-tag i {
        font-size: 0.8rem;
    }
    .tools-grid {
        gap: 8px;
        justify-content: center;
    }
    
    /* ✅ BOUTONS ALIGNÉS VERTICALEMENT SUR MOBILE */
    .about-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }
    
    .about-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .about-inner {
        padding-left: 8px;
        padding-right: 8px;
    }
    .about-content {
        padding: 0 3px;
    }
    .tools-section {
        padding: 0 3px;
    }
    .about-cta {
        padding: 0 3px;
    }
}

@media (max-width: 400px) {
    .about-page {
        padding-top: 85px;
        padding-bottom: 30px;
    }
    .about-title {
        font-size: 1.3rem;
    }
    .about-image {
        max-width: 160px;
    }
    @supports not (aspect-ratio: 1 / 1) {
        .about-image {
            height: 160px;
            max-height: 160px;
        }
    }
    .about-lead {
        font-size: 0.85rem;
    }
    .about-text {
        font-size: 0.8rem;
    }
    .tool-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .tool-tag i {
        font-size: 0.7rem;
    }
    .about-cta .btn {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
    .about-inner {
        padding-left: 5px;
        padding-right: 5px;
    }
}