/* --- Global Styles --- */
/* Applique un dégradé au fond, et configure un layout en flex avec des espacements */
body {
    background: transparent linear-gradient(180deg, #FEE2D7 0%, #FFFFFF 100%) 0% 0% no-repeat padding-box;
    display: flex;
    flex-direction: column;
    gap: 54px;
    width: 100%;
    margin-bottom: 54px;
}

/* Conteneur principal centré et avec marges automatiques */
.container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 24px;
}

/* --- Navigation --- */
/* Centrage et espacement des éléments du menu */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Typography --- */
/* Forcer le poids de la police pour les titres */
h1,
h1 span,
b {
    font-weight: bolder;
}

h2 {
    font-size: 36px !important;
    margin: 20px 0 !important;
}

p,
li,
a {
    font-size: 18px !important;
    line-height: normal;
}

h3 {
    font-size: 24px !important;
    margin-bottom: 1rem !important;
}

h4 {
    font-size: 20px !important;
    margin-bottom: 1rem !important;
}

h1,
h2,
h3,
b,
strong,
h4 {
    color: #222 !important;
    font-weight: 700 !important;
    font-family: 'Poppins', 'Poppins Fallback', sans-serif !important;
}

/* --- Titles Visibility --- */
/* Gestion de la visibilité des titres selon les écrans */
.title-min {
    display: unset !important;
}

.title-max {
    display: none !important;
}

/* --- Margin and Padding Utilities --- */
.m-auto {
    margin: auto;
}

.p-0 {
    padding: 0;
}

.m-0 {
    margin: 0;
}

.px-1 {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.py-1 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.m-0 {
    margin: 0 !important
}

.m-1 {
    margin: .25rem !important
}

.m-2 {
    margin: .5rem !important
}

.m-3 {
    margin: 1rem !important
}

.m-4 {
    margin: 1.5rem !important
}

.m-5 {
    margin: 3rem !important
}

.m-auto {
    margin: auto !important
}

.mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important
}

.mx-1 {
    margin-right: .25rem !important;
    margin-left: .25rem !important
}

.mx-2 {
    margin-right: .5rem !important;
    margin-left: .5rem !important
}

.mx-3 {
    margin-right: 1rem !important;
    margin-left: 1rem !important
}

.mx-4 {
    margin-right: 1.5rem !important;
    margin-left: 1.5rem !important
}

.mx-5 {
    margin-right: 3rem !important;
    margin-left: 3rem !important
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important
}

.my-1 {
    margin-top: .25rem !important;
    margin-bottom: .25rem !important
}

.my-2 {
    margin-top: .5rem !important;
    margin-bottom: .5rem !important
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important
}

.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important
}

.mt-0 {
    margin-top: 0 !important
}

.mt-1 {
    margin-top: .25rem !important
}

.mt-2 {
    margin-top: .5rem !important
}

.mt-3 {
    margin-top: 1rem !important
}

.mt-4 {
    margin-top: 1.5rem !important
}

.mt-5 {
    margin-top: 3rem !important
}

.mt-auto {
    margin-top: auto !important
}

.me-0 {
    margin-right: 0 !important
}

.me-1 {
    margin-right: .25rem !important
}

.me-2 {
    margin-right: .5rem !important
}

.me-3 {
    margin-right: 1rem !important
}

.me-4 {
    margin-right: 1.5rem !important
}

.me-5 {
    margin-right: 3rem !important
}

.me-auto {
    margin-right: auto !important
}

.mb-0 {
    margin-bottom: 0 !important
}

.mb-1 {
    margin-bottom: .25rem !important
}

.mb-2 {
    margin-bottom: .5rem !important
}

.mb-3 {
    margin-bottom: 1rem !important
}

.mb-4 {
    margin-bottom: 1.5rem !important
}

.mb-5 {
    margin-bottom: 3rem !important
}

.mb-auto {
    margin-bottom: auto !important
}

.ms-0 {
    margin-left: 0 !important
}

.ms-1 {
    margin-left: .25rem !important
}

.ms-2 {
    margin-left: .5rem !important
}

.ms-3 {
    margin-left: 1rem !important
}

.ms-4 {
    margin-left: 1.5rem !important
}

.ms-5 {
    margin-left: 3rem !important
}

.ms-auto {
    margin-left: auto !important
}

/* --- Utility Classes --- */
/* Flexbox utilitaires pour alignements et directions */
.d-flex {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start
}

/* Éléments en une seule ligne */
.flex-between {
    justify-content: space-between;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

/* Largeurs et hauteurs utilitaires */
.w-full {
    width: 100%;
    box-sizing: border-box;
}

.h-full {
    height: 100%;
}

.w-auto {
    width: auto;
}

.h-auto {
    height: auto;
}

/* Marges et padding utilitaires */
.m-auto {
    margin: auto;
}

.p-0 {
    padding: 0;
}

.m-0 {
    margin: 0;
}

.px-1 {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.py-1 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Centrage horizontal et vertical avec des marges automatiques */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

/* --- Text Alignment --- */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* --- Flexbox Direction --- */
.flex-column {
    flex-direction: column;
}

/* --- Custom Colors --- */
.text-corail {
    color: var(--corail_mh_brand);
    font-weight: bold;
}

/* --- Layout Helpers --- */
.flex-center {
    justify-content: center;
    align-items: center;
}

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

/* --- Spacing Utilities --- */
.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

/* --- Border Radius Utilities --- */
.rounded {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 50%;
}

/* --- Column Grid System --- */
/* Gestion des colonnes en pourcentages pour un système de grille flexible */
.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
    text-align: center;
    margin-top: 20px;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-6 img {
    padding: 20px;
    width: 10% !important;
}

.col-7 {
    width: 58.33%;

}

.col-8 {
    width: 66.66%;
    margin: 24px !important;
}

.col-8 ul {
    list-style-type: disc;
    padding: 0 20px !important;

}

.col-8 ul li {
    font-size: 16px !important;

}

.col-3 img {
    margin: 20px 0;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}


h3 {
    padding-top: 20px !important;
}

/* Continue jusqu'à .col-12 */

/* Reset pour les conteneurs flex */
.col {
    flex: 1;
}

/* --- Header --- */
/* Centrage des éléments du header */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px
}

.bg-blanc {
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    width: 100% !important;
    margin: 0 auto !important;
}

.col-3 img {
    width: 50% !important;
    border-radius: 16px !important;

}

.header img {
    max-width: 252px;
}

.block {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    border-radius: 16px;
    text-align: center;
    padding: 20px;
    margin: 0 20px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.block img {
    width: 40% !important;
}

.mentions-legales {
    text-align: center !important;
    margin: 0 auto !important;
}

.mentions-legales ul {
    display: flex !important;
    flex-direction: row !important;
}

.mentions-legales ul li {
    margin: 10px !important;
    text-decoration: underline !important;
    font-size: 14px !important;
    color: #636363 !important;
}

.mentions-legales ul li a {
    text-decoration: underline !important;
    font-size: 14px !important;
    color: #636363 !important;
}

button.btn {
    margin: 0 0 20px 0 !important;
    text-align: center !important;

}

.legend {
    font-size: 11px !important;
}

.bandeau img {
    width: 100% !important;
}

@media screen and (min-width: 1280px) {

    h1,
    h1 span {
        font-size: 36px !important;
    }

    .title-min {
        display: none !important;
    }

    .title-max {
        display: unset !important;
    }

    .header {
        display: flex !important;
        flex-direction: row;
    }
}

/* --- Menu Styles --- */
/* Style pour le bloc du menu */
#block-menuhp {
    padding: 10px 20px;
    border-radius: 10px;
}

/* --- Logo Style --- */
#block-menuhp .logo img {
    height: 50px;
}

/* --- Menu Items --- */
/* Gestion du layout des items du menu et du style des liens */
#menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Liens des items avec ombre et transitions */
#menu-items a {
    text-decoration: none;
    font-size: 14px;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Liens actifs et styles au survol */
#menu-items a.active,
#menu-items a:hover {
    background-color: var(--corail_mh_brand);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Burger Menu for Mobile --- */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
    border-radius: 5px;
}

/* --- Popup Styles --- */
#menu-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* --- Popup Content --- */
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

.popup-content ul {
    list-style-type: none;
    padding: 0;
}

.popup-content ul li {
    margin: 10px 0;
}

.popup-content ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Close button for popup */
.close-popup {
    cursor: pointer;
    color: var(--corail_mh_brand);
    font-weight: bold;
}

/* --- No Wrap Text --- */
.no-wrap {
    white-space: nowrap;
}

/* --- Responsive Styles --- */
@media (max-width: 756px) {
    .container-detail-box {
        flex-direction: column;
    }

    .header h1 {
        font-size: 36px;
    }

    .carousel-title {
        padding: 24px;
    }

    .block,
    .w-full {
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .d-flex {
        flex-direction: column !important;
        width: 90% !important;

    }

    .container-small {
        flex-direction: column !important;
        width: 100% !important;
        margin: auto 0 !important;

    }

    button.btn {
        margin: auto 0 !important;
        text-align: center !important;

    }

    .col-3,
    .col-6,
    .col-8 {
        width: 100% !important;
    }

    .bg-blanc {
        width: 100% !important;
        margin: 0 !important;
    }


    .col-3 img {
        width: 50% !important;
        margin-left: 10px;
        margin-top: 20px;
    }

    .col-6 p {
        text-align: center;
        padding-top: 20px !important;
    }

    .col-6 img {
        width: 10% !important;
        text-align: center !important;
    }

    .col-8 p {
        padding: 0 20px 0 0 !important;
    }

    .bandeau img {
        width: 100% !important;
    }
    .logoMH img {
        width: 100% !important;
    }
    h3 {
        font-size: 18px !important;
         padding: 0 20px 0 0 !important;
    }
    h1 {
        font-size: 26px !important;
    }
     h2 {
        font-size: 22px !important;
    }
}

/* Responsive burger menu display */
@media (max-width: 1440px) {
    .burger-menu {
        display: flex;
    }

    #menu-items {
        display: none;
    }


    .bandeau img {
        width: 100% !important;
    }

}

.container-small {
    max-width: 1220px !important;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    margin-top: 38px;
}

/* --- Card Styles --- */
/* Style pour les cartes avec ombre et centrage */
.card-container {
    display: flex;
    overflow: hidden;
    max-width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 23%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    justify-content: space-between;
}

/* Image de la carte avec taille fixe */
.card-img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* Style des titres, dates, texte et boutons des cartes */
.card h2 {
    font-size: 28px;
}

.card-date {
    color: var(--corail_mh_brand);
    margin-bottom: 10px;
    font-size: 28px;
}

.card-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Nombre de lignes à afficher */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bouton de la carte avec style de hover */
.card-button {
    background-color: var(--corail_mh_brand);
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    width: fit-content;
    text-decoration: none !important;
}

.card-button:hover,
.card-button:active {
    background-color: var(--corail_mh_brand);
    color: white !important;
    text-decoration: none !important;
}

button a {
    color: #FFFFFF !important;
    text-decoration: none !important;

}

a:not(.corail_mh_brand):hover,
a:not(.corail_mh_brand):active,
a:not(.corail_mh_brand).active-link {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* --- Responsive Card Styles --- */
@media (max-width: 768px) {
    .card {
        width: 75%;
    }
}

@media (max-width: 1200px) {
    .card-container {
        justify-content: center;
        flex-wrap: wrap;
    }
}

#menu-popup li a:hover {
    color: var(--corail_mh_brand) !important;
}
