/* Conteneur principal du composant */
.imtis-diaphragm {
    width: var(--imtis-width, 520px);
    max-width: 100%;
}

/* Le SVG suit la largeur du conteneur */
.imtis-diaphragm__svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Légende sous le SVG */
.imtis-diaphragm__legend {
    margin: 10px 0 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    color: #1f2126;
}

/* Cercle de référence interne */
.imtis-ring {
    fill: none;
    stroke: #1f2126;
    stroke-width: 6;
}

/* Bordure externe de l'anneau */
.imtis-outer-ring-border {
    fill: none;
    stroke: #1f2126;
    stroke-width: 2.4;
    pointer-events: none;
}

/* Segments de l'anneau externe (affichage uniquement) */
.imtis-edge-segment {
    fill: #ccb1c2;
    stroke: #ccb1c2;
    stroke-width: 0.6;
    stroke-linejoin: round;
    cursor: default;
    pointer-events: none;
}

/* Segment volontairement vide/non interactif */
.imtis-edge-segment--empty {
    fill: #ccb1c2;
    cursor: default;
}

/* Pales internes */
.imtis-blade {
    fill: #8eb4e3;
    stroke: #1f2126;
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
    cursor: pointer;
}

/* Trou central */
.imtis-center-hole {
    fill: #f7f7f7;
    stroke: #1f2126;
    stroke-width: 2.2;
    pointer-events: none;
}

/* Style commun des labels */
.imtis-label {
    fill: #1f2126;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
}

/* Taille labels pales */
.imtis-label--blade {
    font-size: 12px;
}

/* Taille labels anneau */
.imtis-label--edge {
    font-size: 12px;
}

/* Overlay modal */
.imtis-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
}

.imtis-modal.is-active {
    display: flex;
}

/* Carte du modal */
.imtis-modal__card {
    width: 65vw;
    background: #fff;
    border: 2px solid #1f2126;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Tablette */
@media (max-width: 1024px) {
    .imtis-modal__card {
        width: 85vw;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .imtis-modal__card {
        width: 90vw;
    }
}

.imtis-modal__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}

.imtis-modal__text {
    margin: 0 0 18px;
    line-height: 1.4;
    font-size: 16px;
}

.imtis-modal_text-title {
    margin: 0;

    h3{
        font-size: 18px;
        font-weight: 600;
    }

    h4{
        font-size: 16px;
        font-weight: 500;
    }
}

.imtis-modal__close {
    background: #1f2126;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}

/*
 * Bloc texte SEO:
 * - reste présent dans le DOM pour les moteurs/accessibilité
 * - invisibilisé visuellement proprement
 */
.imtis-seo-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

