/* =====================================================
   ENLA 2.0 — MODULE DOS
   Fichier : assets/css/accueil.css
   Style de la page d'accueil
===================================================== */

/* =====================================================
   1. PAGE PRINCIPALE
===================================================== */

.dos-page {
    width: 100%;
    min-width: 0;
    color: #29243a;
}

/* =====================================================
   2. EN-TÊTE
===================================================== */

.dos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    margin-bottom: 28px;
}

.dos-introduction {
    max-width: 760px;
}

.dos-introduction h2 {
    margin: 0;

    color: #29243a;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
}

.dos-introduction p {
    margin: 10px 0 0;

    color: #898499;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================================================
   3. GRILLE DES CARTES
===================================================== */

.dos-cartes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* =====================================================
   4. CARTE
===================================================== */

.dos-carte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    min-height: 255px;
    padding: 24px;

    background: #ffffff;
    border: 1px solid #eae7f1;
    border-radius: 12px;

    box-shadow: 0 3px 12px rgba(35, 29, 65, 0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dos-carte:hover {
    transform: translateY(-3px);

    border-color: #d6e1ff;
    box-shadow: 0 8px 22px rgba(35, 29, 65, 0.08);
}

/* =====================================================
   5. ICÔNE DE LA CARTE
===================================================== */

.dos-carte-icone {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 52px;
    height: 52px;
    margin-bottom: 18px;

    color: #165BFB;
    background: #edf2ff;
    border-radius: 12px;
}

.dos-carte-icone i {
    font-size: 1.55rem;
    line-height: 1;
}

/* =====================================================
   6. CONTENU DE LA CARTE
===================================================== */

.dos-carte-contenu {
    flex: 1;
    width: 100%;
}

.dos-carte-contenu h3 {
    margin: 0 0 9px;

    color: #29243a;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

.dos-carte-contenu p {
    margin: 0;

    color: #898499;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* =====================================================
   7. LIEN D'ACTION
===================================================== */

.dos-carte-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;

    margin-top: 22px;
    padding: 0;

    color: #165BFB;
    background: transparent;
    border: none;

    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.dos-carte-action i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.dos-carte-action:hover {
    gap: 12px;
    color: #104bd4;
}

.dos-carte-action:hover i {
    transform: translateX(2px);
}

.dos-carte-action:focus-visible {
    outline: 2px solid #165BFB;
    outline-offset: 5px;
    border-radius: 3px;
}

/* =====================================================
   8. PIED DE PAGE
===================================================== */

.dos-footer {
    margin-top: 32px;
    padding: 18px 0;

    border-top: 1px solid #eae7f1;
}

.dos-footer p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0;

    color: #898499;
    font-size: 0.78rem;
}

.dos-footer span {
    color: #898499;
}

/* =====================================================
   9. TABLETTES
===================================================== */

@media (max-width: 900px) {
    .dos-cartes {
        gap: 16px;
    }

    .dos-carte {
        min-height: 245px;
        padding: 20px;
    }

    .dos-introduction h2 {
        font-size: 1.45rem;
    }
}

/* =====================================================
   10. MOBILES
===================================================== */

@media (max-width: 600px) {
    .dos-header {
        margin-bottom: 20px;
    }

    .dos-introduction h2 {
        font-size: 1.3rem;
    }

    .dos-introduction p {
        font-size: 0.875rem;
    }

    .dos-cartes {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .dos-carte {
        min-height: 0;
        padding: 20px;
    }

    .dos-carte-icone {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }

    .dos-carte-icone i {
        font-size: 1.35rem;
    }

    .dos-carte-action {
        margin-top: 18px;
    }

    .dos-footer {
        margin-top: 24px;
    }

    .dos-footer p {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   11. ACCESSIBILITÉ
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .dos-carte,
    .dos-carte-action,
    .dos-carte-action i {
        transition: none;
    }

    .dos-carte:hover {
        transform: none;
    }
}
