/* AJF Planning V2 — Public Styles */

/* ── Calendrier ── */
.ajfp-calendar { font-family: inherit; margin: 20px 0; overflow-x: auto; }

.ajfp-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}
.ajfp-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1d6fa4;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: background .15s;
}
.ajfp-nav-btn:hover { background: #155a87; color: #fff; }
.ajfp-week-label { font-size: 16px; font-weight: 600; color: #333; }

.ajfp-cal-grid { min-width: 620px; }

.ajfp-cal-header,
.ajfp-cal-row {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
}
.ajfp-cal-header {
    border-bottom: 2px solid #1d6fa4;
    margin-bottom: 2px;
}
.ajfp-th-hour { }
.ajfp-th-day {
    text-align: center;
    padding: 6px 2px;
    font-size: 12px;
    color: #555;
}
.ajfp-th-day.ajfp-today .ajfp-day-num {
    display: inline-block;
    background: #1d6fa4;
    color: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    line-height: 26px;
}
.ajfp-day-name { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #888; }
.ajfp-day-num  { display: block; font-size: 16px; font-weight: 600; color: #333; }

.ajfp-cal-row { min-height: 42px; border-bottom: 1px solid #f0f0f0; }
.ajfp-cal-row:hover { background: #fafcff; }
.ajfp-td-hour {
    display: flex;
    align-items: flex-start;
    padding-top: 6px;
    font-size: 11px;
    color: #999;
    border-right: 1px solid #e8e8e8;
}
.ajfp-td-cell {
    padding: 3px 2px;
    min-height: 40px;
    border-right: 1px solid #f4f4f4;
}

/* Créneaux */
.ajfp-slot {
    border-radius: 5px;
    padding: 4px 6px;
    margin: 2px 1px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}
.ajfp-slot img { border-radius: 50%; width: 32px; height: 32px; object-fit: cover; }
.ajfp-slot-name { font-size: 11px; font-weight: 600; color: #333; line-height: 1.2; }

.ajfp-slot-private  { background: #e8f4fd; border: 1px solid #c2ddf5; }
.ajfp-slot-skype    { background: #e8fde8; border: 1px solid #a8e6a8; }
.ajfp-slot-public   { background: #fff8e6; border: 1px solid #f5d98c; }

.ajfp-slot-available .ajfp-slot-link {
    display: inline-block;
    margin-top: 2px;
    padding: 2px 8px;
    background: #1d6fa4;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.ajfp-slot-available .ajfp-slot-link:hover { background: #155a87; }
.ajfp-slot-taken { opacity: .55; }
.ajfp-slot-full { font-size: 10px; color: #999; }

/* ── Formulaire de réservation ── */
.ajfp-booking-form, .ajfp-booking-confirm {
    max-width: 500px;
    margin: 20px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ajfp-booking-form h2, .ajfp-booking-confirm h2 { margin-bottom: 16px; }
.ajfp-recap-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.ajfp-recap-table th { text-align: left; padding: 6px 10px; color: #666; font-weight: 500; width: 130px; }
.ajfp-recap-table td { padding: 6px 10px; border-bottom: 1px solid #f0f0f0; }

.ajfp-btn-book {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1d6fa4;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.ajfp-btn-book:hover { background: #155a87; }

.ajfp-success { background: #e6f4ea; border: 1px solid #a8d5b5; border-radius: 5px; padding: 12px 16px; color: #1e7e34; }
.ajfp-error   { background: #fce8e8; border: 1px solid #f5c6c6; border-radius: 5px; padding: 10px 16px; color: #c0392b; margin-bottom: 12px; }
.ajfp-positive { color: #1e7e34; font-weight: 600; }
.ajfp-negative { color: #c0392b; font-weight: 600; }

/* ── Compte étudiant ── */
.ajfp-account, .ajfp-form { max-width: 500px; }
.ajfp-form label { display: block; margin-bottom: 12px; font-size: 14px; color: #444; }
.ajfp-input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.ajfp-btn {
    padding: 9px 22px;
    background: #1d6fa4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.ajfp-btn:hover { background: #155a87; }

/* ── Tableau leçons étudiant ── */
.ajfp-lessons-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ajfp-lessons-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #1d6fa4; color: #555; font-size: 12px; text-transform: uppercase; }
.ajfp-lessons-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; }
.ajfp-lessons-table tr:hover td { background: #fafcff; }

/* ── Professeurs ── */
.ajfp-profs-grid { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0; }
.ajfp-prof-card  { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; max-width: 260px; text-align: center; }
.ajfp-prof-card img { border-radius: 50%; margin-bottom: 10px; }
.ajfp-prof-card h3, .ajfp-prof-card h4 { margin: 0 0 4px; font-size: 15px; }
.ajfp-prof-jp { display: block; font-size: 13px; color: #888; }
.ajfp-prof-card p { font-size: 13px; color: #555; margin: 4px 0; }

/* Crédits */
.ajfp-credits-count { font-weight: 700; color: #1d6fa4; }
