/* Style rapide globale*/
body {
    background: #e0f1f8;
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    align-items: center;
}

/* Centrage et marges automatiques pour un conteneur principal, évitant les bords de l'écran */
.container {
    max-width: 1440px !important;
    padding: 0 24px;
    width: 100%; 
    box-sizing: border-box;
}

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

/* --- Navigation --- */
/* Centrage des éléments dans la navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

i {
    font-style: italic;
}

/* --- Typography --- */
/* Forçage du poids des titres et textes en gras pour être plus lisibles */
h1, h1 span, b {
    font-weight: bold !important;
}

h3 {
    margin-bottom: 1rem;
}

/* --- Utility Classes --- */
/* Classes de flexbox utilitaires pour différents alignements et directions */
.d-flex {
    display: flex;
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
}
.flex-between { justify-content: space-between; }
.flex-row-reverse { flex-direction: row-reverse; }

/* Classes pour gérer la taille des éléments en flex */
.w-full { 
    width: 100%; 
    box-sizing: border-box;
}
.h-full { height: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }

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

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

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

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

li::marker {
    color: var(--corail_mh_brand);
  }

/* --- 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 --- */
/* Classes pour la gestion des colonnes, utile pour un système de grille */
.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
/* Continuer jusqu'à .col-12 */

/* Reset for flex container */
.col { flex: 1; 
border-radius: 0.5rem;
background: #FFFFFF; }

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

/* --- Header Section --- */
/* Alignement flex et centrage du contenu du header */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px
}

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

/* Style pour les éléments sans retour à la ligne */
.no-wrap {
    white-space: nowrap; /* Empêche le retour à la ligne pour le texte */
}

.hidden {
    opacity: 0;
}

.faq-button-reverse {
    display: inline-block;
    margin: 10px 0;
    padding: 10px !important;
    font-size: 16px !important;
    color: white;
    background-color: #ff4b33;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 50px !important;
    border: 2px solid transparent;
}

a:not(.corail_mh_brand):hover, a:not(.corail_mh_brand):active, a:not(.corail_mh_brand).active-link {
    color: var(--corail_mh_brand) !important;
}

.faq-button-reverse:hover {
    background-color: transparent !important;
    border: 2px solid #ff4b33;
    color: #ff4b33;
}

/* Icon style */
.icon {
    width: 25px;
    height: 25px;
    display: inline-block;
    background: var(--corail_mh_brand);
    border-radius: 50%;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    line-height: 25px;
    margin-right: 10px;
}

.thumb {
    display: flex;
    justify-content: center;
    transform: translateX(-100px); /* Apparition depuis la gauche */
    transition: transform 0.8s ease-out;
    margin: unset !important;
}

.thumb img {
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.container-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0; /* Masqué au départ */
    transform: translateX(50px); /* Déplacement initial */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    gap: 54px;
    padding: 2.5% 24px 2.5% 24px;
}

.container-card .card {
    display: none;
}

.container-card.show {
    opacity: 1;
    transform: translateX(0); /* Aucune translation quand affiché */
}

.container-card.show .thumb {
    transform: translateX(0); /* Pas de translation une fois affiché */
}

.container-card.show .card {
    transform: translateX(0); /* Pas de translation une fois affiché */
    display: flex !important;
    flex-direction: column;
    gap: 24px;
}

.card {
    transform: translateX(100px); /* Apparition depuis la droite */
    transition: transform 0.8s ease-out;
}

.container-card:nth-child(even) {
    flex-direction: row-reverse;
}

.container-card:nth-child(even) .thumb {
    transform: translateX(100px); /* Apparition depuis la droite pour éléments pairs */
}

.container-card:nth-child(even) .card {
    transform: translateX(-100px); /* Apparition depuis la gauche pour éléments pairs */
}

.container-card.show:nth-child(even) .thumb,
.container-card.show:nth-child(even) .card {
    transform: translateX(0); /* Pas de translation une fois affiché */
}

.vignette img {
    width: 80% !important;
    padding: 20px !important;
}
/* --- Menu Items --- */
/* Gestion du layout des items du menu, espacement, ombre, etc. */
#menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#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;
}

/* --- Active and Hover States --- */
#menu-items a.active {
    background-color: var(--corail_mh_brand);
    color: #fff;
}

#menu-items a:hover {
    background-color: var(--corail_mh_brand);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


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

#card-button:hover, #card-button:active {
    background: var(--corail_mh_dark);
    transition: all .3s ease;
    outline: none !important;
    color: white !important;
}

@media (width >= 44rem) {
    .thumb {
        flex: 0 0 25%;
        align-self: stretch;
        height: auto;
        margin: 0 4rem 0 0;
    }
}

@media screen and (min-width: 1280px) {
    h1, h1 span {
        font-size: 42px !important;
    }
    .title-min { display: none !important; }
    .title-max { display: unset !important; }
    .header {
        display: flex !important;
        flex-direction: row;
    }
}

/* --- Responsive Table Styles --- */
@media (max-width: 768px) {

    .container-card {
        flex-direction: column !important;
        transform: translateY(50px); /* Déplacement initial depuis le bas */
        transition: transform 0.8s ease-out, opacity 0.8s ease-out;
        opacity: 0; /* Masqué au départ */
    }

    .container-card.show-mobile {
        transform: translateY(0); /* Aucune translation quand affiché */
        opacity: 1;
    }

    .container-card .thumb,
    .container-card .card {
        transform: translateY(50px); /* Déplacement initial depuis le bas */
        transition: transform 0.8s ease-out;
    }

    .container-card.show-mobile .thumb,
    .container-card.show-mobile .card {
        transform: translateY(0); /* Pas de translation une fois affiché */
    }
     /* Animation pour les éléments impairs */
     .container-card:nth-child(odd) {
        transform: translateY(50px); /* Apparition depuis le bas */
    }

    .container-card.show-mobile:nth-child(odd) {
        transform: translateY(0); /* Aucune translation une fois affiché */
    }

    /* Animation pour les éléments pairs */
    .container-card:nth-child(even) {
        transform: translateY(-50px); /* Apparition depuis le haut */
    }

    .container-card.show-mobile:nth-child(even) {
        transform: translateY(0); /* Aucune translation une fois affiché */
    }

    .container-card .card {
        display: block !important;
    }

    /* Adapter les colonnes pour qu'elles s'empilent verticalement */
    table {
        display: block;
        width: 100%;
    }

    thead {
        display: none; /* Cacher l'en-tête du tableau pour les petits écrans */
    }

    tbody tr {
        display: block;
        margin-bottom: 20px; /* Espacement entre les entrées */
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px;
        border: 1px solid #ddd;
        flex-direction: column;
    }

    tbody td:before {
        content: attr(data-label); /* Ajoute une étiquette avant chaque donnée */
        flex: 1;
        font-weight: bold;
        color: #333;
    }

    a.faq-button-reverse {
        width: 100%; /* Étend les boutons sur toute la largeur */
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Réduire la taille des textes et des marges pour les très petits écrans */
    tbody td {
        flex-direction: column;
        align-items: flex-start;
    }

    tbody td:before {
        margin-bottom: 5px;
    }

    .faq-button-reverse {
        font-size: 14px;
        padding: 8px;
    }
}


