.tt-competence-wrap {
    --tt-orange: #ff7f00;
    --tt-orange-dark: #cc6600;
    --tt-green: #16a34a;
    --tt-green-dark: #166534;
    --tt-border: #d0d5dd;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tt-competence-section {
    margin-top: 18px;
}

.tt-competence-section .section-title.sect_dec {
    margin: 0 0 12px;
}

.tt-competence-section .section-title.sect_dec h4 {
    display: block;
    margin: 2px 0 0;
    font-weight: 800;
    color: #166534;
}

.section-title.sect_dec h4 {
    margin: 2px 0 0;
    font-weight: 800;
    color: #166534;
}

.tt-competence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .tt-competence-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.tt-competence-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding: 14px 10px;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid var(--tt-border);
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
    outline: none;
    cursor: default;
}

.tt-competence-alert {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 14px 12px;
    border-color: #ff7f00;
}

.tt-competence-alert .tt-competence-ico {
    margin: 0;
    color: #ff7f00;
    font-size: 30px;
}

.tt-competence-alert .tt-competence-label {
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    font-weight: 800;
    line-height: 1.5;
    font-size: 14px;
}

.tt-competence-alert-title {
    display: block;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .2px;
    margin: 0 0 2px;
}

.tt-competence-card:hover {
    border-color: var(--tt-orange);
    background: #fff2e6;
}

.tt-competence-card:focus-visible {
    border-color: var(--tt-orange);
}

.tt-competence-ico {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #111827;
    font-size: 22px;
    transition: color .16s ease;
    position: relative;
    z-index: 1;
}

.tt-competence-card:hover .tt-competence-ico {
    color: var(--tt-orange-dark);
}

.tt-competence-label {
    text-align: center;
    font-weight: 900;
    letter-spacing: .25px;
    text-transform: uppercase;
    color: #0f172a;
    font-size: 10px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .tt-competence-label {
        font-size: 11px;
    }
}

.tt-has-float-actions {
    position: relative;
}

.tt-float-actions {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 15;
}

.tt-float-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    color: #111827;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
    font-size: 16px;
    line-height: 1;
}

.tt-float-btn--orange {
    color: var(--tt-orange);
}

.tt-float-btn--green {
    color: var(--tt-green);
}

.tt-float-btn:hover,
.tt-float-btn:focus {
    border-color: var(--tt-orange);
    color: var(--tt-orange);
    background: #ffffff;
}

.tt-float-btn i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.tt-float-btn i::before {
    display: block;
    line-height: 1;
    font-weight: 900;
}

.tt-assistance-card {
    cursor: pointer;
}

.tt-assistance-card:focus-visible {
    outline: 2px solid #ff7f00;
    outline-offset: 2px;
}

.tt-mfp-dialog {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    border: 1px solid #d0d5dd;
}

.tt-mfp-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    background: #ff7f00;
    border-bottom: 1px solid #d0d5dd;
}

.tt-mfp-dialog-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: .2px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.2;
}

.tt-mfp-dialog-body {
    padding: 14px 16px 16px;
}

.tt-mfp-lead {
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.tt-mfp-section {
    margin-top: 12px;
}

.tt-mfp-section-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2px;
    color: #0f172a;
    font-size: 12px;
    margin: 0 0 8px;
}

.tt-mfp-dialog p {
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.55;
}

.tt-mfp-list {
    margin: 0 0 10px;
    padding: 0;
    color: #334155;
    list-style: none;
}

.tt-mfp-list li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 14px;
    line-height: 1.55;
    border-left: 3px solid #16a34a;
    background: #ffffff;
}

.tt-mfp-callout {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #16a34a;
    background: #f0fdf4;
    color: #166534;
    font-weight: 800;
}

.tt-mfp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tt-mfp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 0;
    border: 1px solid #d0d5dd;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .2px;
}

.tt-mfp-btn--primary {
    background: #ff7f00;
    border-color: #ff7f00;
    color: #111827;
}

.tt-mfp-btn--primary:hover,
.tt-mfp-btn--primary:focus {
    background: #e67300;
    border-color: #e67300;
    color: #111827;
}

.tt-mfp-btn--secondary {
    background: #ffffff;
    color: #166534;
    border-color: #16a34a;
}

.tt-mfp-btn--secondary:hover,
.tt-mfp-btn--secondary:focus {
    background: #f0fdf4;
    color: #166534;
}

.mfp-bg {
    background: rgba(15, 23, 42, 0.25);
    opacity: 0;
    transition: opacity .18s ease;
}

.mfp-ready.mfp-bg {
    opacity: 0.60;
}

.mfp-removing.mfp-bg {
    opacity: 0;
}

.mfp-close {
    color: #ffffff;
    opacity: 1;
}

.tt-mfp-zoom .tt-mfp-dialog {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity .18s ease, transform .18s ease;
}

.tt-mfp-zoom.mfp-ready .tt-mfp-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tt-mfp-zoom.mfp-removing .tt-mfp-dialog {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

.tt-mfp-dialog .mfp-close {
    right: 6px;
    top: 6px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 28px;
}

.tt-events-widget .widget-title {
    font-weight: 900;
}

.tt-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tt-event-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.tt-event-link:hover,
.tt-event-link:focus {
    border-color: #ff7f00;
    transform: translateX(2px);
}

.tt-event-ico {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff7f00;
    color: #ff7f00;
    background: #ffffff;
    flex: 0 0 auto;
}

.tt-event-ico i {
    font-size: 16px;
}

.tt-event-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.tt-event-title {
    font-weight: 900;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .2px;
    white-space: normal;
}

.tt-event-date {
    font-weight: 800;
    color: #166534;
    font-size: 12px;
}

.tt-event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2px;
    font-size: 11px;
    flex: 0 0 auto;
}

.tt-event-status i {
    font-size: 14px;
}

.tt-event-status--avenir {
    border-color: #ff7f00;
    color: #ff7f00;
}

.tt-event-status--encours {
    border-color: #16a34a;
    color: #16a34a;
}

.tt-event-status--passe {
    border-color: #0f172a;
    color: #0f172a;
}

.tt-event-status-text {
    display: none;
}

@media (min-width: 768px) {
    .tt-event-status-text {
        display: inline;
    }
}

.tt-events-empty {
    padding: 12px 10px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #334155;
    font-weight: 800;
}

.tt-ad-widget {
    margin-top: 12px;
}

.tt-ad-banner {
    display: block;
    text-decoration: none;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    transition: border-color .16s ease, transform .16s ease;
}

.tt-ad-banner:hover,
.tt-ad-banner:focus {
    border-color: #ff7f00;
    transform: translateY(-1px);
}

.tt-ad-banner:focus-visible {
    outline: 2px solid #ff7f00;
    outline-offset: 2px;
}

.tt-ad-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.tt-ad-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 127, 0, 0.35);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .22s ease;
    pointer-events: none;
}

.tt-ad-overlay-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #16a34a;
    border: 1px solid #16a34a;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2px;
    font-size: 12px;
    transform: translateY(6px);
    transition: transform .18s ease;
}

.tt-ad-banner:hover .tt-ad-overlay,
.tt-ad-banner:focus .tt-ad-overlay {
    clip-path: inset(0 0 0 0);
}

.tt-ad-banner:hover .tt-ad-overlay-inner,
.tt-ad-banner:focus .tt-ad-overlay-inner {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mfp-bg,
    .tt-mfp-zoom .tt-mfp-dialog,
    .tt-ad-overlay,
    .tt-ad-overlay-inner {
        transition: none;
    }
}

.tt-ad-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.tt-ad-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #ff7f00;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2px;
    font-size: 11px;
    border: 1px solid #ff7f00;
}

.tt-ad-banner:hover .tt-ad-badge,
.tt-ad-banner:focus .tt-ad-badge {
    background: #16a34a;
    border-color: #16a34a;
}

.tt-ad-badge i {
    font-size: 14px;
}
