/**
* Tooltip
*/
.tooltip {
    display: inline-block;
    width: 20px;
    position: relative;
    z-index: 99;
    text-align: left;
}

.tooltip-content {
    display: none
}

.tooltip:hover .tooltip-content {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: var(--white);
    color: var(--blue);
    border-radius: 16px;
    padding: 10px;
    border: 1px solid var(--blue);
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.1;
    margin: 0;
    text-transform: none;
}

/**
* Bloc "Contenu"
*/
.block-content {
    display: flex;
    justify-content: space-between;
}

.block-content-center {
    align-items: center;
}

.block-content-variant {
    padding: 60px 0 0;
}

.block-content-text {
    width: 48%;
}

.block-content-text h1 {
    margin: 20px 0;
}

.block-content-text p {
    font-size: 25px;
    font-weight: 500;
    line-height: 110%;
    font-family: 'DM Sans';
    margin: 20px 0;
}

.block-content-text-buttons {
    display: flex;
    gap: 0 20px;
}

.block-content-image {
    width: 48%;
    display: flex;
    justify-content: center;
}

.block-content-variant .block-content-text {
    width: 56%;
    padding-top: 20px;
}

.block-content-variant .block-content-text h1 {
    font-size: 25px;
}

.block-content-variant .block-content-text p {
    font-size: 40px;
}

.block-content-variant .block-content-image {
    width: 40%;
}

@media screen and (max-width: 900px) {
    .block-content {
        flex-wrap: wrap;
    }
    .block-content-text {
        padding-right: 0;
    }
    .block-content-text, .block-content-image {
        width: 100% !important;  
    }
    .block-content-variant {
        padding: 30px 0 0;
    }
    .block-content-variant .block-content-text h1 {
        font-size: 20px;
    }
    .block-content-variant .block-content-text p {
        font-size: 28px;    
    }
}

@media screen and (max-width: 460px) {
    .block-content-text-buttons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .block-content-text-buttons .btn {
        width: 100%;
    }
}

/**
* Bloc "Chiffres clés"
*/
.block-numbers {
    display: flex;
    justify-content: space-between;
    color: var(--blue);
    text-align: center;
    padding: 20px 0;
}

.block-numbers .item .item-number {
    font-size: 60px;
    font-weight: 900; 
}

.block-numbers .item .item-description {
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
}

@media screen and (max-width: 1260px) {
    .block-numbers .item .item-number {
        font-size: 40px;
    }
    .block-numbers .item .item-description {
        font-size: 18px;
    }
}

@media screen and (max-width: 1023px) {
    .block-numbers {
        padding: 0;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .block-numbers .item .item-number {
        font-size: 30px;
    }
    .block-numbers .item .item-description {
        font-size: 16px;
    }
}

/**
* Bloc "Niveau d’alerte"
*/
.block-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.block-alert-title {
    display: flex;
    align-items: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 500; 
    letter-spacing: -1.2px;
    padding-left: 80px;
    font-family: 'DM Sans';
}

@media screen and (max-width: 820px) {
    .block-alert-title {
        font-size: 28px;
    }
}

.block-alert-title img {
    margin-right: 15px;
}

.block-alert-info {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48%;
    height: 60px;
    background-color: var(--pink);
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px; 
    text-transform: uppercase;
    color: var(--white);
    font-family: 'DM Sans';
}

@media screen and (max-width: 480px) {
    .block-alert-info {
        font-size: 16px;
    }
}

.block-alert-info > div {
    width: 50%;
    text-align: center;
}

.block-alert-info > div:first-child {
    border-right: 1px solid var(--white);
}

.block-image-target {
    display: flex;
    justify-content: space-between;
}

.block-image-target-left {
    width: 48%;
}

.block-image-target-left img {
    display: flex;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
    object-position: center;
}

.block-image-target-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48%;
    text-align: center;
    border-radius: 30px;
    background-color: var(--gray-light);
    position: relative;
    padding: 20px 0;
}

.block-image-target-locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(245, 247, 250, 0.95);
    border-radius: 30px;
    opacity: 0;
    overflow: hidden;
}

.block-image-target-right:hover .block-image-target-locked, .block-image-target-right:focus .block-image-target-locked {
    opacity: 1;
}

.block-image-target-locked p {
    line-height: 1.5;
    font-size: 15px;
    margin: 20px 0;
    width: 262px;
    max-width: 100%;
}

.block-image-target-locked .btn {
    font-size: 20px;
    font-weight: 700;
    margin-left: -25px;
    transition: all 0.3s ease-in-out;
    transform: translateX(-100%);
}

.block-image-target-right:hover .block-image-target-locked .btn, .block-image-target-right:focus .block-image-target-locked .btn {
    transform: translateX(0);
}

.block-image-target-right ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.block-image-target-right ul li {
    margin: 10px 0;
}

.block-image-target-right ul li a {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    color: var(--black); 
    text-decoration: none;
}

.block-image-target-right ul li a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    .block-alert {
        flex-wrap: wrap;    
    }
    .block-alert-title {
        width: 100%;
        padding-left: 0;
        margin-bottom: 20px;
    }
    .block-alert-info {
        width: 100%;   
    }
    .block-image-target {
        flex-wrap: wrap;
    }
    .block-image-target-left {
        width: 100%;
        margin-bottom: 20px;
    }
    .block-image-target-left img {
        width: 100%;
    }
    .block-image-target-right {
        width: 100%;
    }
}

/**
* Bloc "HUB de gestion de crise"
*/
.block-hub {
    margin-top: 20px;
    background-color: var(--gray-light);
    border-radius: 30px;
    padding: 20px 0;
}

.block-hub-title {
    font-family: 'DM Sans';
    display: flex;
    align-items: center;
    font-size: 40px;    
    font-style: normal;
    font-weight: 500; 
    padding: 0 80px;
    letter-spacing: -1.2px;
}

@media screen and (max-width: 820px) {
    .block-hub-title {
        font-size: 28px;
    }
}

.block-hub-title img {
    margin-right: 15px;
}

.block-hub-swiper-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.block-hub-item {
    width: 212px;
    padding: 20px;
}

.block-hub-item-locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(245, 247, 250, 0.95);
    opacity: 0;
    overflow: hidden;
}

.block-hub-item:hover .block-hub-item-locked, .block-hub-item:focus .block-hub-item-locked {
    opacity: 1;
}

.block-hub-item-locked p {
    line-height: 1.5;
    font-size: 15px;
    margin: 20px 0;
}

.block-hub-item-locked .btn {
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    transform: translateX(-100%);
    padding-left: 0;
    padding-right: 0;
}

.block-hub-item:hover .block-hub-item-locked .btn, .block-hub-item:focus .block-hub-item-locked .btn {
    transform: translateX(0);
}

.block-hub-item-title {    
    font-size: 20px;
    font-weight: 700;
    height: 90px;
    line-height: 1.1;
    margin-bottom: 20px;
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 4; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.block-hub-item-alert-progress-bar {
    height: 16px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 20px;
}

.block-hub-item-info-label {
    font-size: 15px;
}

.block-hub-item-info-value {
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 20px;
}

.block-hub-item-button .btn {
    width: 100%;
}

@media screen and (max-width: 1023px) {
    .block-hub-title {
        padding: 0 30px;
    }
}

/**
* Bloc "Exemples d'avis émis la semaine précédente"
*/
.block-reviews-examples-title {
    text-align: center;
    font-size: 40px;    
    font-style: normal;
    font-weight: 500; 
    letter-spacing: -1.2px;
    font-family: 'DM Sans';
}

@media screen and (max-width: 820px) {
    .block-reviews-examples-title {
        font-size: 28px;
    }
}

.block-reviews-examples-swiper-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.block-reviews-examples-item {
    position: relative;
    width: 212px;
    padding: 20px;
    border-radius: 14px; 
    background-color: var(--gray-light);
}

.block-reviews-examples-item:hover {
    z-index: 2;
}

.block-reviews-examples-item-locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 14px; 
    background: rgba(245, 247, 250, 0.95);
    opacity: 0;
    overflow: hidden;
}

.block-reviews-examples-item:hover .block-reviews-examples-item-locked, .block-reviews-examples-item:focus .block-reviews-examples-item-locked {
    opacity: 1;
}

.block-reviews-examples-item-locked p {
    line-height: 1.5;
    font-size: 15px;
    margin: 20px 0;
}

.block-reviews-examples-item-locked .btn {
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    transform: translateX(-100%);
    padding-left: 0;
    padding-right: 0;
}

.block-reviews-examples-item:hover .block-reviews-examples-item-locked .btn, .block-reviews-examples-item:focus .block-reviews-examples-item-locked .btn {
    transform: translateX(0);
}

.block-reviews-examples-item-title {    
    font-size: 20px;
    font-weight: 700;
    height: 90px;
    line-height: 1.1;
    margin-bottom: 20px;
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 4; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    text-align: center;
}

.block-reviews-examples-item-alert-progress-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.block-reviews-examples-item-alert-progress-bar-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 15px;
}

.block-reviews-examples-item-alert-progress-bar-label span {
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
}

.block-reviews-examples-item-info-label {
    text-align: center;
    font-size: 15px;
}

.block-reviews-examples-item-info-value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.block-reviews-examples-item-button .btn {
    width: 100%;
}

.block-reviews-examples-swiper-scrollbar {
    background-color: var(--gray-light) !important;
}

/**
* Bloc "Publications du Cert-IST"
*/
.block-publications-title {
    font-family: 'DM Sans';
    text-align: center;
    font-size: 40px;    
    font-style: normal;
    font-weight: 500; 
    letter-spacing: -1.2px;
    margin-bottom: 40px;
}

.block-publications-items {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 3%;
}

.block-publications-item {
    width: 31.3%;
    position: relative;
}

.block-publications-item-image {
    position: relative;
    display: flex;
}

.block-publications-item-image img {
    border-radius: 16px;
    width: 100%;
    height: 261px !important;
    object-fit: cover;
    object-position: center;
}

.block-publications-item-download-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.block-publications-item-download-icon span {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    padding-top: 70px;
    background: url('/bundles/certcommon/images/download.svg') no-repeat top center;
}

.block-publications-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--blue);
}

.block-publications-item-description {
    margin-top: 0;
    margin-bottom: 15px;
}

.block-publications-item-date {
    display: inline-block;
    margin: 0;
    border-radius: 4px;
    background: #e2e8f0;
    padding: 2px 8px;
    font-size: 15px;
}

.block-publications-item-link {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.block-publications-item:hover .block-publications-item-download-icon, .block-publications-item:focus .block-publications-item-download-icon {
    opacity: 1;    
}

@media screen and (max-width: 900px) {
    .block-publications-item {
        width: 48.5%;    
    }
}

@media screen and (max-width: 820px) {
    .block-publications-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 640px) {
    .block-publications-items {
        gap: 50px 0;
    }
    .block-publications-item {
        width: 100%;    
    }
}

/**
* Divers
*/
.site-public-private-block {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
}

.site-public-private-block .public {
    border-radius: 7px;      
    border: 2px solid var(--blue);
    color: var(--blue);
    margin: 0 10px;
    padding: 1px 10px; 
}

.site-public-private-block .private {
    border-radius: 7px;
    border: 2px solid #F5F7FA;
    background: #E2E8F0;
    color: var(--white);
    padding: 1px 10px; 
}

/**
* X
*/
.x-button {
    width: 75px;
    height: 75px;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 2;
    right: 0;
    top: 50%;
    margin-top: -40px;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.x-button.open {
    top: 140px;
    width: 350px;
    border-bottom-left-radius: 0;
}

.x-container {
    background-color: var(--white);
    position: fixed;
    z-index: 1;
    right: 0;
    top: 175px;
    width: 350px;
    height: 600px;
    transform: translateX(350px);
    transition: all 0.3s ease-in-out;
}

.x-container.open {
    transform: translateX(0);
}

@media screen and (max-width: 1023px) {
    .x-button, .x-container {
        display: none;
    }
}