.main-div {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: transparent;
    overflow: hidden;
    padding: 40px 0; /* Ajout de padding pour éviter le débordement */
}

.circle-container {
    position: relative;
    width: 120vmin; /* Augmenté de 100vmin à 120vmin */
    height: 120vmin; /* Augmenté de 100vmin à 120vmin */
    max-width: 900px; /* Augmenté de 600px à 900px */
    max-height: 900px; /* Augmenté de 600px à 900px */
    margin: 0 auto;
}

.center-diamond {
    position: absolute;
    width: 30vmin;
    height: 30vmin;
    background: #c4052c;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 10;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    max-width: 180px;
    max-height: 180px;
    animation: pulse 3s infinite ease-in-out;
    overflow: hidden;
}

.center-diamond_::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #ffffff, #c4052c, #ffffff);
    border-image-slice: 1;
    transform: rotate(45deg);
    animation: borderSnake 8s linear infinite;
    pointer-events: none;
}

.center-text {
    position: absolute;
    color: #0843d5;
    font-weight: bold;
    text-align: center;
    width: 20vmin;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.3;
    /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);*/
}

.center-diamond:hover {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    animation: none;
}

.item {
    position: absolute;
    width: 18%;
    height: 18%;
    max-width: 130px; /* Augmenté de 120px à 130px */
    max-height: 130px; /* Augmenté de 120px à 130px */
    background: linear-gradient(145deg, #3498db, #2980b9);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(12px, 1.8vw, 16px); /* Taille de police augmentée */
    padding: 10px; /* Padding augmenté */
    box-sizing: border-box;
    word-break: break-word;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    border-radius: 5px;

    /* Forme de D stylisé */
    clip-path: polygon(
        0% 0%, 60% 0%, 75% 10%, 85% 30%, 85% 70%, 75% 90%, 60% 100%,
        0% 100%
    );

    /* Texte vertical */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    line-height: 15px;
}

.item:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: linear-gradient(145deg, #2980b9, #3498db);
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn_ {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

@keyframes borderSnake {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
    25% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    75% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

.round-modal .modal-dialog {
    max-width: 400px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
}

.round-modal .modal-content {
    border-radius: 50%;
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.round-modal .modal-title-container {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.round-modal .modal-title {
    color: #c4052c;
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}

.round-modal .modal-body {
    padding: 0 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.round-modal .definition {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.round-modal .modal-footer {
    border: none;
    padding: 0;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-fermer {
    background-color: #c4052c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-fermer:hover {
    background-color: #a00424;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .circle-container {
        width: 100vmin;
        height: 100vmin;
        max-width: 700px;
        max-height: 700px;
    }

    .item {
        width: 16%;
        height: 16%;
        max-width: 100px;
        max-height: 100px;
        font-size: 9px;
        padding: 6px;
        line-height: 8px;
    }

    .round-modal .modal-content {
        width: 300px;
        height: 300px;
        padding: 30px 20px 20px;
    }

    .round-modal .modal-title {
        font-size: 20px;
        margin-top: 15px;
    }

    .round-modal .definition {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .circle-container {
        width: 90vmin;
        height: 90vmin;
        max-width: 500px;
        max-height: 500px;
    }

    .item {
        width: 15%;
        height: 15%;
        max-width: 80px;
        max-height: 80px;
        font-size: 7px;
        padding: 4px;
        line-height: 8px;
    }
}
