.mc-compagnons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
}

.mc-compagnon-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: visible;
    text-align: center;
    background: #fff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.mc-compagnon-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.mc-compagnon-card.mc-followed {
    border-color: #b48043;
    position: relative;
}
.mc-compagnon-card.mc-followed .mc-compagnon-thumbnail::after {
    content: "🌿";
    display: block;
    background-image: linear-gradient(39deg,#b48043 0%,#b48043 64%,#ebbf78 100%);
    background-color: #B48043;
    font-size: 20px;
    width: 25px;
    height: 25px;
    padding: 5px;
    position: absolute;
    top: -10px;
    right: -10px;
    border-radius: 20px;
    text-align: center;
}

.mc-compagnon-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mc-no-thumbnail {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.mc-compagnon-info {
    padding: 10px;
}

.mc-compagnon-info h3 {
    font-size: 1.8em;
    margin: 5px 0;
}
.mc-compagnon-card.mc-followed .mc-compagnon-info h3 {
    color: #b48043;
    font-weight: bold;
}

.mc-compagnon-info p {
    font-size: 0.9em;
    color: #666;
}

.messageFollow {
    padding: 20px !important;
    background: #dedede;
    margin: 15px auto;
    border-radius: 10px;
}


a.mc-button, button.mc-button {
    background: #b48043 !important;
    color: white !important;
    cursor: pointer;
}
a.mc-button:hover, button.mc-button:hover,
a.mc-button:focus, button.mc-button:focus,
a.mc-button:active, button.mc-button:active {
    background: #643a16 !important;
}

a.mc-button-alt, button.mc-button-alt {
    background: white !important;
    color: #b48043 !important;
    border: 1px solid #b48043 !important;
    padding : 7px 11px;
    border-radius: 5px;
    cursor: pointer;
}
a.mc-button-alt:hover, button.mc-button-alt:hover,
a.mc-button-alt:focus, button.mc-button-alt:focus,
a.mc-button-alt:active, button.mc-button-alt:active {
    color: #643a16 !important;
    border: 1px solid #643a16 !important;
}
.mc-back-arian {
    background-color: black;
    background-image: linear-gradient(39deg,#18161b 0%,#18161b 64%,#643a16 100%);
    color: white;
    padding: 5px;
    border-radius: 5px 5px 0 0;
    margin-left: 5px;
}


.mc-compagnon-card.mc-solo-card {
    max-width: 650px;
    width: 90%;
    position: relative;
    padding: 20px;
}
.mc-compagnon-card.mc-solo-card:hover {
    transform: scale(1);
}
.mc-img-wrapper {
    max-width: 250px;
    margin: 10px auto;
    width: 95%;
    position: relative;
}
.mc-compagnon-card.mc-solo-card img {
    width: 100%;
    border-radius: 10px;
}
.mc-compagnon-card.mc-solo-card.mc-followed img {
    border: 2px solid #b48043;
}
.mc-compagnon-card.mc-solo-card.mc-followed .mc-img-wrapper::after {
    content: "🌿";
    display: block;
    background-color: #B48043;
    background-image: linear-gradient(39deg,#b48043 0%,#b48043 64%,#ebbf78 100%);
    font-size: 20px;
    width: 25px;
    height: 25px;
    padding: 5px;
    position: absolute;
    top: -10px;
    right: -10px;
    border-radius: 20px;
    text-align: center;
}
.mc-solo-card ul {
    text-align: left;
    margin-top: 30px;
    border-top: 1px dotted #b48043;
    border-bottom: 1px dotted #b48043;
    padding-top: 10px;
}
.mc-solo-card.mc-followed ul {
    border-top: 1px dotted #b48043;
    border-bottom: 1px dotted #b48043;
}
#mc-healing-notifications {
    margin-top: 80px;
}
.mc-notification {
    text-align: justify;
    padding: 20px !important;
    background: #efefef;
}
.mc-notification a.btn_protocol {
    background: #b48043;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    transition: all 0.3s ease-in-out;
}
.mc-notification a.btn_protocol:hover,
.mc-notification a.btn_protocol:focus,
.mc-notification a.btn_protocol:active {
    background: #643a16;
}
.mc-button {
    padding : 8px 12px;
    margin-top: 20px;
    margin-bottom: 15px;
    border: none;
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.mc-button-green {
    background: #b48043;
}
.mc-button-green:hover,
.mc-button-green:focus,
.mc-button-green:active {
    background: #643a16;
}


/* Mini Menu to manage Compagnon */
.mc-menu-wrapper {
    position: absolute;
    display: inline-block;
    top: -5px;
    left: auto;
    right: -5px;
    min-width: 30px;
    background: #18161b;
    border-radius: 20px;
}
.mc-menu-trigger {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 100%;
    padding: 0;
}
.mc-menu-options {
    position: absolute;
    right: 0;
    top: 30px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    z-index: 999;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 250px;
}
.mc-menu-options a,
.mc-menu-options button {
    display: block;
    background: none;
    border: none;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.mc-menu-options a:hover,
.mc-menu-options button:hover {
    background-color: #f0f0f0;
}


/* Add Form */
#mc-add-compagnon-form {
    padding: 20px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
}
#mc-add-compagnon-form label {
    color: #b48043;
    font-size: 14px;
    font-weight: bold;
    display: block;
}
#mc-add-compagnon-form input[type="text"],
#mc-add-compagnon-form input[type="date"],
#mc-add-compagnon-form input[type="number"],
#mc-add-compagnon-form textarea {
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 21px;
    min-width: 100%;
}
#mc-add-compagnon-form input[type="submit"] {
    background: #b48043;
    padding: 15px;
    border: none;
    color: white;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    display: block;
    width: 150px;
    margin: 25px auto;
    transition: 0.34s;
}
#mc-add-compagnon-form input[type="submit"]:hover,
#mc-add-compagnon-form input[type="submit"]:focus,
#mc-add-compagnon-form input[type="submit"]:active {
    background: #b48043;
}

#mc-add-compagnon-form p {
    background: #b48043;
    padding: 20px;
    border-radius: 12px;
    color: white;
    margin: 15px 0;
}
#mc-add-compagnon-form button#remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
#mc-add-compagnon-form #file-size-warning {
    color: #990000;
    display: none;
}
#mc-add-compagnon-form #preview-container {
    display: none;
    position: relative;
    max-width: 200px;
}
#mc-add-compagnon-form #preview-container.preview-visible {
    display: block;
}
#mc-add-compagnon-form #image-preview {
    max-width: 100%;
    height: auto;
}
.mc-cancel-link {
    text-align: center;
    display: block;
    width: 200px;
    text-decoration: underline;
    margin: 10px auto;
}

#mc-observations-form h3 {
    margin-top: 45px;
}
#mc-observations-text {
    border-radius: 8px;
    padding: 10px;
    display: block;
    width: 90%;
    margin: 20px auto;
}




/* Style des produits suggéré en fin de liste de compagnons */
hr {
    border-top: 1px solid #b48043;
    border-bottom: none;
}hr.spacer {
    margin: 55px auto;
}
.mc-naturo-products-list {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.mc-product {
    position: relative;
    top: 0px;
    width: 250px;
    max-width: 31.4%;
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    box-shadow: 0 4px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
}
.mc-product:hover {
    top: -5px;
    box-shadow: 0 8px 8px rgba(0,0,0,0.15);
}
.mc-product img {
    max-width: 100%;
    height: auto;
}
.mc-product .fake-btn {
    background: #b48043;
    color: white;
    padding: 12px !important;
    font-weight: bold;
}


/* Personnalisation du nouveau champs dans les produits de suivi */
.mc-champ-compagnon {
    margin: 20px auto;
}
.mc-champ-compagnon label {
    display: block;
    font-weight: bold;
    color: #b48043;
}
.mc-champ-compagnon input[type="text"] {
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 21px;
    min-width: 100%;
}
.mc-champ-compagnon input[type="text"]:focus {
    border: 1px solid rgba(0,0,0,0.4);
}


@media screen and (max-width : 1200px) {

    .mc-product {
        width: 46%;
        max-width: 46%;
    }

}
@media screen and (max-width : 490px) {

    .mc-product {
        width: 100%;
        max-width: 100%;
    }

}