/* Section « Générateur d'emploi du temps » de la page d'accueil (chargée uniquement sur index.html). */
.outil-edt {
    background: linear-gradient(180deg, var(--white, #fff) 0%, #eef4ff 100%);
}

.outil-edt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}

.outil-edt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(var(--accent-color-rgb, 245, 158, 11), 0.14);
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.outil-edt-titre {
    font-size: 2.3rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color, #1e3a8a);
    margin-bottom: 1rem;
}

.outil-edt-description {
    font-size: 1.1rem;
    color: var(--gray-600, #4b5563);
    margin-bottom: 1.5rem;
}

.outil-edt-liste {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.outil-edt-liste li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700, #374151);
    font-weight: 500;
}

.outil-edt-liste i {
    flex: 0 0 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--secondary-color-rgb, 59, 130, 246), 0.12);
    color: var(--secondary-color, #3b82f6);
    font-size: 0.95rem;
}

.outil-edt-cta i {
    margin-inline-end: 0.4rem;
}

/* Aperçu décoratif */
.outil-edt-apercu {
    position: relative;
    padding: 1.5rem;
}

.outil-edt-feuille {
    background: var(--white, #fff);
    border-radius: 16px;
    box-shadow: 0 20px 45px -15px rgba(30, 58, 138, 0.35);
    padding: 1.25rem;
    transform: rotate(-1.5deg);
    direction: ltr;
}

.outil-edt-entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 3px solid var(--primary-color, #1e3a8a);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
}

.outil-edt-ecole {
    width: 45%;
    height: 0.8rem;
    border-radius: 4px;
    background: var(--gray-300, #d1d5db);
}

.outil-edt-classe {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-color, #1e3a8a);
    line-height: 1;
}

.outil-edt-table {
    display: grid;
    grid-template-columns: 2.6rem repeat(5, minmax(0, 1fr));
    grid-auto-rows: 2.6rem;
    gap: 0.3rem;
    font-size: 0.65rem;
}

.outil-edt-table .j,
.outil-edt-table .h {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-600, #4b5563);
}

.outil-edt-table .j {
    height: auto;
}

.outil-edt-table .pause {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100, #f3f4f6);
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gray-500, #6b7280);
    height: 1.6rem;
    align-self: center;
}

.outil-edt-table .c {
    border-radius: 6px;
    border-left: 3px solid;
}

.outil-edt-table .c.x2 {
    grid-row: span 2;
}

.outil-edt-table .c1 { background: #dcfce7; border-color: #16a34a; }
.outil-edt-table .c2 { background: #fee2e2; border-color: #dc2626; }
.outil-edt-table .c3 { background: #fce7f3; border-color: #db2777; }
.outil-edt-table .c4 { background: #dbeafe; border-color: #2563eb; }
.outil-edt-table .c5 { background: #ede9fe; border-color: #7c3aed; }
.outil-edt-table .c6 { background: #ffedd5; border-color: #ea580c; }

.outil-edt-pastille {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: var(--white, #fff);
    border-radius: 999px;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.15));
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700, #374151);
    direction: ltr;
}

.outil-edt-pastille-pdf { top: 0.2rem; right: 0.4rem; }
.outil-edt-pastille-pdf i { color: #dc2626; }
.outil-edt-pastille-ok { bottom: 0.2rem; left: 0.4rem; }
.outil-edt-pastille-ok i { color: #16a34a; }

@media (max-width: 992px) {
    .outil-edt-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .outil-edt-apercu {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .outil-edt-titre {
        font-size: 1.8rem;
    }

    .outil-edt-description {
        font-size: 1rem;
    }
}
