/* =========================================================
   CARTE
   ========================================================= */
.elementor-widget-teacher_card_b9d25d38,
.elementor-widget-teacher_card_b9d25d38 > .elementor-widget-container {
    height: 100%;
}

.tc-card-wrapper-b9d25d38 {
    height: 100%;
    display: flex;
    box-sizing: border-box;
}

.tc-card-b9d25d38 {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
}

.tc-card-strip-b9d25d38 {
    flex: 0 0 auto;
    width: var(--tc-strip, 6px);
    background-color: var(--tc-accent, #6B2D6B);
}

.tc-strip-right-b9d25d38 .tc-card-b9d25d38 {
    flex-direction: row-reverse;
}

.tc-strip-top-b9d25d38 .tc-card-b9d25d38 {
    flex-direction: column;
}

.tc-strip-top-b9d25d38 .tc-card-strip-b9d25d38 {
    width: 100%;
    height: var(--tc-strip, 6px);
}

.tc-card-content-b9d25d38 {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Textes de la carte (sélecteurs doublés pour passer devant les styles globaux du kit) */
.tc-card-b9d25d38 .tc-name-b9d25d38 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #111111;
}

.tc-card-b9d25d38 .tc-subject-b9d25d38 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--tc-accent, #6B2D6B);
}

/* Bas de carte : séparateur + bouton, toujours calés en bas */
.tc-card-footer-b9d25d38 {
    margin-top: auto;
}

.tc-card-b9d25d38 .tc-divider-b9d25d38 {
    height: 0;
    width: 100%;
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 28px 0 24px;
}

/* Bouton (reset des styles de bouton du thème / kit Elementor) */
.tc-card-b9d25d38 .tc-button-b9d25d38 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #111111;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tc-card-b9d25d38 .tc-button-b9d25d38:hover,
.tc-card-b9d25d38 .tc-button-b9d25d38:focus {
    background: none;
    border: 0;
    box-shadow: none;
}

.tc-card-b9d25d38 .tc-button-b9d25d38:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.tc-button-icon-b9d25d38 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.tc-button-icon-b9d25d38 svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.tc-button-b9d25d38:hover .tc-button-icon-b9d25d38 {
    transform: translateX(4px);
}

/* =========================================================
   MODALE
   ========================================================= */
html.tc-modal-open-b9d25d38,
body.tc-modal-open-b9d25d38 {
    overflow: hidden !important;
}

.tc-modal-b9d25d38[hidden] {
    display: none !important;
}

.tc-modal-b9d25d38 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.tc-modal-b9d25d38.tc-modal-visible-b9d25d38 {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
}

.tc-modal-b9d25d38 .tc-modal-overlay-b9d25d38 {
    position: absolute;
    inset: 0;
    background-color: rgba(22, 22, 30, 0.72);
}

.tc-modal-b9d25d38 .tc-modal-content-b9d25d38 {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1100px;
    max-height: calc(100vh - 48px);
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    outline: none;
    transform: scale(0.97);
    transition: transform 0.25s ease;
}

.tc-modal-b9d25d38.tc-modal-visible-b9d25d38 .tc-modal-content-b9d25d38 {
    transform: none;
}

.tc-modal-b9d25d38 .tc-modal-body-b9d25d38 {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: var(--tc-min-h, 560px);
}

.tc-modal-b9d25d38 .tc-modal-photo-col-b9d25d38 {
    position: relative;
    flex: 0 0 var(--tc-photo-w, 45%);
    background: #eeeeee;
}

.tc-modal-b9d25d38 .tc-modal-photo-b9d25d38 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.tc-modal-b9d25d38 .tc-modal-text-col-b9d25d38 {
    flex: 1 1 0;
    min-width: 0;
    overflow-y: auto;
}

.tc-modal-b9d25d38 .tc-modal-text-inner-b9d25d38 {
    box-sizing: border-box;
    padding: 96px 72px 72px 84px;
}

.tc-modal-b9d25d38 .tc-modal-subject-b9d25d38 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #111111;
}

.tc-modal-b9d25d38 .tc-modal-name-b9d25d38 {
    margin: 0 0 32px;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #111111;
}

.tc-modal-b9d25d38 .tc-bio-b9d25d38 {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #222222;
}

.tc-modal-b9d25d38 .tc-bio-b9d25d38 p {
    margin: 0 0 1em;
}

.tc-modal-b9d25d38 .tc-bio-b9d25d38 > *:last-child {
    margin-bottom: 0;
}

/* Bouton fermer (reset des styles de bouton du thème / kit) */
.tc-modal-b9d25d38 .tc-modal-close-b9d25d38 {
    position: absolute;
    top: 28px;
    right: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    box-shadow: none;
    color: #111111;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tc-modal-b9d25d38 .tc-modal-close-b9d25d38:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 3px;
}

.tc-modal-b9d25d38 .tc-modal-close-b9d25d38 svg {
    width: 34%;
    height: 34%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: square;
}

/* =========================================================
   TABLETTE + MOBILE : une seule colonne
   ========================================================= */
@media (max-width: 1024px) {
    .tc-modal-b9d25d38 {
        padding: 16px;
    }

    .tc-modal-b9d25d38 .tc-modal-content-b9d25d38 {
        max-height: 90vh;
        overflow-y: auto;
    }

    .tc-modal-b9d25d38 .tc-modal-body-b9d25d38 {
        flex-direction: column;
        min-height: 0;
    }

    .tc-modal-b9d25d38 .tc-modal-photo-col-b9d25d38 {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: var(--tc-ratio, 4 / 3);
    }

    .tc-modal-b9d25d38 .tc-modal-text-col-b9d25d38 {
        flex: 0 0 auto;
        overflow: visible;
    }

    .tc-modal-b9d25d38 .tc-modal-close-b9d25d38 {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-modal-b9d25d38,
    .tc-modal-b9d25d38 .tc-modal-content-b9d25d38,
    .tc-button-icon-b9d25d38 {
        transition: none;
    }
}