/* --- Global Styles --- */
/* Applique un dégradé au fond, et configure un layout en flex avec des espacements */
body {
    background: #FFF2F0;
    display: flex;
    flex-direction: column;
    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;
}

/* --- Onglets --- */
.tabs {
    max-width: 600px;
    margin: auto;
}

.tab-buttons {
    display: flex;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    background: #FFF2F0 !important;
    border-radius: 4px 4px 0 0;
    font-size: 16px;
}

.tab-btn:hover {
    background: #F9D3CE !important;
}

.tab-btn.active {
    color: #000000;
    font-weight: 600;
    background: #F9D3CE !important;
}

.tab-content {
    display: block;
}

.tab-content[hidden] {
    display: none;
}

/* Onglets Responsive Mobile */
@media (max-width: 600px) {
    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .tab-content {
        border-top: none;
    }
}

/* --- Typography --- */
/* Forcer le poids de la police pour les titres */

b {
    font-weight: bolder;
}
h1 {
    font-size: 42px !important;
    font-weight: bold;
    padding-left: 84px;
}  

h2 {
    font-size: 24px !important;
    font-weight: bold;
    padding-bottom: 20px;
}
h3 {
    font-size: 18px;
    padding-bottom: 20px;
    font-weight: 600;

}
h4 {
    font-size: 18px;
    font-weight:600;
    padding-bottom: 20px;
    color:#E2250C;
    text-align: center;
}
p,
li,
a {
    font-size: 18px !important;
    line-height: normal;
}

/* Code LP */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px
}
.d-flex-stretch .bg-blanc {
    text-align: center;
}
.d-flex-stretch .bg-blanc ul {
    text-align: left !important;
}
.d-flex-stretch .bg-blanc img {
    width: 20% !important;
}

.d-flex-stretch .bg-blanc img {
    padding-bottom: 20px;
    width: 20% !important;

}
.d-flex-stretch .bg-blanc ul {
    text-align: left;
    list-style-type: disc;
    padding: 0 20px 20px 20px !important;
}

.d-flex-stretch .bg-blanc ul li {
    font-size: 16px !important;
}

.d-flex-stretch .bg-blanc h3 {
    padding-bottom: 20px;
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
    letter-spacing: -0.8px;
}
.bg-blanc {
    border-radius: 20px;
    margin: 0px 10px;
    padding: 30px 30px 0 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}
.bg-blanc-plein {
    border-radius: 20px;
    padding: 30px 30px 0 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin: 0 auto !important;
}

.bg-corail {
    border-radius: 20px;
    margin: 0px 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #F9D3CE;
}

.bg-corail h2 {
    padding-top: 20px !important;
}
.header img {
    max-width: 300px;
}
.header p {
    text-align: left;
    padding-left: 84px;
}


.header p .text-corail {
    font-size: 18px;
    color: #E2250C; 
}

.intro p {
    font-size: 18px;
}

font-size20 {
    font-size: 20px;
}

/* --- 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;
}
.mt-05 {
    margin-top: 5px !important;
}
.mt-10 {
    margin-top: 10px !important;
}
.mt-15 {
    margin-top: 15px !important;
}
.mt-20 {
    margin-top: 20px !important;
}
.mt-25 {
    margin-top: 25px !important;
}
.mt-30 {
    margin-top: 30px !important;
}
.mt-40 {
    margin-top: 40px !important;
}
.mt-50 {
    margin-top: 50px !important;
}
.mt-55 {
    margin-top: 55px !important;
}
.mt-100 {
    margin-top: 100px !important;
}
.pb-10 {
    padding-bottom: 10px !important;
}
.pb-20 {
    padding-bottom: 20px !important;
}
.pb-30 {
    padding-bottom: 30px !important;
}
/* --- Utility Classes --- */
/* Flexbox utilitaires pour alignements et directions */
.d-flex {
    display: flex;
    flex-wrap: nowrap; 
    align-items: stretch;
}

/* É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);

}

a.text-corail {
    font-weight: normal;
}
/* --- 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%;
        padding-right: 40px;
}

.col-2 {
    width: 16.66%;
}

.col-1 img { 
width: 100%;

}

.col-3 {
    width: 25%;
    text-align: center;
}

.col-4 {
    width: 33.33%;
    text-align: center;

}

.picto img {
    width: 60px !important;
    padding-bottom: 10px;
}
.col-4 .bg-blanc {
    padding-bottom: 20px;
}
.col-4 h3 {
    text-align: center;
}
.col-5 {
    width: 41.66%;
}

.col-5 img {
    padding-top: 40px !important;
   width: 100%;

}

.col-6 {
    width: 50%;
    text-align: center;

}


.col-7 {
    width: 58.33%;
}

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

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

.col-7 h3 {
    padding-bottom: 0;
}

.col-8 {
    width: 66.66%;
    
}

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

.col-9 {
    width: 75%;
}
.col-9 h3 {
    padding-bottom: 0px;
}
.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}


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

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

/* --- Header --- */
/* Code LP */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px
}
.header img {
    max-width: 300px;
}

.d-flex-stretch {
    display: flex;
    align-items: stretch !important;
}

.d-flex-stretch .bg-blanc {
    text-align: center;
}
.d-flex-stretch .bg-blanc ul {
    text-align: left !important;
}
.d-flex-stretch .bg-blanc img {
    width: 20% !important;
}

.d-flex-stretch .bg-blanc img {
    padding-bottom: 20px;
    width: 20% !important;

}
.d-flex-stretch .bg-blanc ul {
    text-align: left;
    list-style-type: disc;
    padding: 0 20px 20px 20px !important;
}

.d-flex-stretch .bg-blanc ul li {
    font-size: 16px !important;
}

.d-flex-stretch .bg-blanc h3 {
    padding-bottom: 20px;
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
    letter-spacing: -0.8px;
}
.bg-blanc {
    border-radius: 20px;
    margin: 0px 10px;
    padding: 30px 30px 0 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}
.bg-blanc-plein {
    border-radius: 20px;
    padding: 30px 30px 0 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin: 0 auto !important;
}


.font-size20 {
    font-size: 20px;
}

.numero {
     text-align: center;
}
.numero a, .numero a:hover {
    font-weight: bold !important;
    color:#E2250C !important;
    font-size: 20px !important;
    text-decoration: none !important;
    line-height: 24px !important;
   
}
.col-6 .numero img {
    width: 40% !important;
}
.lien {
    text-decoration: underline !important;
    color:#E2250C !important;
}



/* --- Header --- */
/* Centrage des éléments du header */

.separateur {
    border: solid 1px #F3A89E !important;
    width: 30% !important;
    margin: 0 auto !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;
}



.legend {
    font-size: 12px !important;
    line-height: 16px;
}
h4 .legend {
    color: #222222 !important;
}
.partage img {
    width: 7% !important;
    padding-bottom: 20px !important;
}
.font-size22 {
        font-size: 22px !important;
    }

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

    h1,
    h1 span {
        font-size: px !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;
}


/* --- 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;
}


/* 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;
    }
    .hide {
        display: none;
    }
    .header h1 {
        font-size: 36px;
        text-align: left;
        padding: 0px 20px 40px 0 !important;
    }

    .carousel-title {
        padding: 24px;
    }
    h1 {
        padding-bottom: 20px !important;
    }
    h2 {
        padding-top: 20px;
    }
    .block,
    .w-full {
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .d-flex {
        flex-direction: column !important;
        width: 100% !important;
        text-align: center !important;
    }

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

    }
    .container-small {
        margin: 0 auto;
    }
    .container-small,
    .col-2,
    .col-4,
    .col-6,
    .col-10,
    .picto {
        width: 100% !important;
    }
   

.picto img {
    width: 60px !important;
    padding-bottom: 10px;
}

    .bg-blanc {
        margin: 20px 0;
    }
   
    p.my-3 {
        padding: 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;
    }
h1 {
        padding-bottom: 20px !important;
    }
}

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

/* --- 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 */

.btn {

    text-align: center !important;

}
.btn {
    text-decoration: none !important;
}

.btn a, .btn:hover{
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/*a:not(.corail_mh_brand):hover {
    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;
}
