/************************/
/* CSS Carte Teacher-Map */
/************************/

.teacher-map {
    margin-top: 30px;
}

#teacher-map {
    width: 100%;
    height: 350px;
    border-radius: 12px;
}

/************************/
/* CSS Single Teacher */
/************************/

 .teacher-single{
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 20px;
}

.teacher-single h3 {
    font-size: 20px;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    padding: 20px 0;
    line-height: 1.4em;
}

.teacher-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* LEFT CONTENT */

.teacher-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* RIGHT SIDEBAR */

.teacher-sidebar {
    flex: 0 0 340px;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* MOBILE */
@media (max-width: 768px) {
    .teacher-layout {
        flex-direction: column;
    }

    .teacher-sidebar {
        position: static;
    }
}

.teacher-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 500;
}
.teacher-back-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}
.teacher-back-link.teacher-footer-main{
    padding-top: 60px;
}

.teacher-hero-inner{
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.teacher-hero-inner img{
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.teacher-hero-content h1{
    margin: 0;
}

.teacher-hero-content h2{
    font-size: 28px;
    margin: 5px 0 0;
    font-weight: 400;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .teacher-hero-inner img{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    }
    .teacher-hero-content h1{
        font-size: 26px;
    }

    .teacher-hero-content h2{
        font-size: 22px;
    }
}

.teacher-single .teacher-badge{
    display: inline-block;
    padding: 4px 12px;
    background: var(--ast-global-color-1);
    border-radius: 999px;
    margin: 4px;
    font-size: 16px;
    color: var(--ast-global-color-2);
}

.teacher-single .teacher-badge-type{
    display: inline-block;
    padding: 4px 12px;
    background: var(--ast-global-color-4);
    border-radius: 999px;
    margin: 4px;
    font-size: 16px;
    color: var(--ast-global-color-2);
    opacity: 0.8;
}

.teacher-badge-certification {
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--ast-global-color-1);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.teacher-badge-certification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.teacher-contact{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.teacher-map{
    margin-top: 10px;
}

#teacher-map{
    height: 350px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.teacher-social .teacher-social-icons .social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ast-global-color-4);
    color: #fff; /* important pour SVG currentColor */
    transition: 0.2s ease;
}

.teacher-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.teacher-social .teacher-social-icons .social-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.teacher-social .teacher-social-icons .social-icon:hover {
    background-color: var(--ast-global-color-1);
    color: #fff;
}

.teacher-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.teacher-contact-btn {
    width: 100%;
    border: none;
    background: var(--ast-global-color-2);
    border: 1px solid var(--ast-global-color-4);
    color: var(--ast-global-color-4);
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.teacher-contact-btn:hover{
    opacity: 0.9;
    color: #fff;
    background-color: var(--ast-global-color-4);
    transform: translateY(-2px);
}

.teacher-phone-toggle.is-revealed {
    background: var(--ast-global-color-4);
    color: #fff;
}
.teacher-phone-toggle.is-revealed a {
    color: #fff;
}

.teacher-phone-toggle, .teacher-mail, .teacher-website, .teacher-badge-certification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

/* SVG icon */
.teacher-phone-toggle svg, .teacher-mail svg, .teacher-website svg , .teacher-badge-certification svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

/* sécurité si SVG a des styles internes */
.teacher-phone-toggle svg path, .teacher-mail svg path, .teacher-website svg path , .teacher-badge-certification svg path {
    fill: currentColor;
}

.teacher-phone-toggle:hover svg, .teacher-mail:hover svg, .teacher-website:hover svg {
    transition: 0.2s ease;
}

.teacher-specialty-description,
.teacher-certifications {
    margin-top: 20px;
}

.teacher-specialty-description h3,
.teacher-certifications h3 {
    margin-bottom: 8px;
}