/* ==========================================================================
   Page « About » — harmonisation avec l'accueil

   Trois sections ont été reprises pour suivre le même langage visuel que
   l'accueil (surtitre + titre + cartes arrondies) :

     1. Our Areas of Expertise  → `.expertise-card`
     2. Our Values              → réutilise les classes de css/values.css
     3. Our Team                → `.team-card`

   Ce qui a été corrigé au passage :
     - les montants étaient écrits en ROUGE (`text-danger`) et les boutons
       « Apply » en vert Bootstrap (#198754) : on repart sur les couleurs de
       la charte (noir #000000) — ❌ pas de jaune ;
     - le bloc d'introduction répétait la liste des 6 domaines juste
       au-dessus des 6 cartes correspondantes : supprimé ;
     - `text-justify` n'existe plus dans Bootstrap 5 : supprimé.

   Les variables de couleur sont fournies par `.about-charte` (voir plus bas)
   pour ne pas polluer le reste du site.
   ========================================================================== */

.about-charte {
    --primaire: #000000;
    --primaire-fonce: #000000;
    --accent: #000000;
    --bordure: #eef1f6;
    --texte-muet: #6b7280;
}

.about-intro {
    max-width: 680px;
}

.about-gris {
    background-color: #f8fafc;
}

/* ==========================================================================
   CARTES D'EXPERTISE (section « Our Areas of Expertise »)
   ========================================================================== */
.expertise-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    background-color: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.expertise-card:hover,
.expertise-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* En-tête : pastille d'icône à gauche, montant à droite.
   `flex-wrap` évite tout débordement si le montant est long. */
.expertise-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.expertise-icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primaire);
    font-size: 1.3rem;
}

.expertise-amount {
    max-width: 100%;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--primaire-fonce);
    font-size: 0.78rem;
    font-weight: 700;
}

.expertise-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primaire-fonce);
}

.expertise-text {
    margin-bottom: 1rem;
    color: var(--texte-muet);
    font-size: 0.925rem;
    line-height: 1.65;
}

.expertise-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    color: var(--texte-muet);
    font-size: 0.9rem;
}

.expertise-list li i {
    flex: 0 0 auto;
    margin-top: 0.3rem;
    color: var(--primaire);
    font-size: 0.75rem;
}

/* `margin-top: auto` aligne les boutons sur toutes les cartes */
.expertise-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.btn-more,
.btn-apply {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-more {
    color: var(--couleur-boutons);
    background-color: transparent;
    border: 1px solid rgba(235, 41, 44, 0.45);
}

.btn-more:hover,
.btn-more:focus {
    color: #ffffff;
    background-color: var(--couleur-boutons);
    border-color: var(--couleur-boutons);
}

.btn-apply {
    color: #ffffff;
    background-color: var(--couleur-boutons);
    border: 1px solid var(--couleur-boutons);
}

.btn-apply:hover,
.btn-apply:focus {
    color: #ffffff;
    background-color: var(--couleur-boutons-fonce);
    border-color: var(--couleur-boutons-fonce);
}

/* ==========================================================================
   QUI SOMMES-NOUS (section placée juste avant les domaines)
   ========================================================================== */
.company-text {
    margin-bottom: 1rem;
    color: var(--texte-muet);
    font-size: 0.975rem;
    line-height: 1.75;
}

.company-points {
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
}

.company-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    color: var(--primaire-fonce);
    font-size: 0.95rem;
    font-weight: 600;
}

.company-points li i {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 0.15rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.12);
    color: var(--primaire);
    font-size: 0.6rem;
}

.company-actions {
    margin-top: 1.75rem;
}

.company-actions .btn-apply {
    flex: 0 0 auto;
    padding: 0.7rem 1.35rem;
}

.company-media {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.company-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   CARTES D'ÉQUIPE (section « Our Team »)
   ========================================================================== */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.6rem 1.1rem;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover,
.team-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.team-photo {
    flex: 0 0 auto;
    width: 118px;
    height: 118px;
    margin-bottom: 1.1rem;
    overflow: hidden;
    border: 4px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primaire-fonce);
}

.team-role {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--primaire);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-desc {
    margin-bottom: 1rem;
    color: var(--texte-muet);
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.team-mail:hover {
    text-decoration: underline;
}

/* --- Mobile : cartes pleine largeur et un peu plus compactes ------------- */
@media (max-width: 575.98px) {

    .expertise-card,
    .team-card {
        padding: 1.35rem 1.1rem;
    }

    .expertise-actions {
        flex-direction: column;
    }
}
