:root {
    /* Colors */
    --color-primary: #cb111c;
    --color-text: #545d7a;
    --color-white: #fff;
    --color-title: black;
    --color-background: #f0f0f0; /* Adjusted to a light grey background */
    --color-border: #dae1f5;

    /* Fonts */
    --font-family: "Poppins", sans-serif;
    --fs-sm: 1.4rem;
    --fs-md: 1.6rem;
    --fs-lg: 2.2rem;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* Transition & Box Shadow */
    --transition: 0.4s ease-in-out;
    --shadow: 0px 60px 56px -12px rgba(9, 40, 163, 0.05);
}

html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.containerfaq {
    width: 100%;
    margin: auto;
    min-height: 100vh;
    padding: 2rem;
    display: grid;
    place-items: center;
}

.accordion__wrapper {
    background-color: var(--color-white);
    border: 2px solid var(--color-primary); /* Added border for better contrast */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1); /* Adjusted shadow for better elevation effect */
    border-radius: 2.5rem;
    width: 100%;
    max-width: 60rem;
    padding: 3rem; /* Adjusted padding for better spacing */
}

.accordion__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-title);
    text-align: center;
    margin-bottom: 4rem;
}

.accordion {
    border-bottom: 0.1rem solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.accordion__icon {
    background-color: var(--color-primary);
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--color-white);
    flex-shrink: 0;
}

.accordion__question {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    color: var(--color-title);
}

.accordion__answer {
    padding: 2rem 0;
}

.accordion__content {
    overflow: hidden;
    height: 0;
    transition: var(--transition);
}

@media screen and (min-width: 580px) {
    .accordion__wrapper {
        padding: 5rem 8rem;
    }
}

/* CSS ajouté pour réduire l'espacement entre les lignes sur mobile */
@media screen and (max-width: 580px) {
    .accordion__question {
        line-height: 1.3; /* Réduit l'espacement entre les lignes */
        margin-bottom: 1; /* Évite les marges supplémentaires */
    }
    .accordion__title {
        line-height: 1.2; /* Réduit l'espacement entre les lignes */
        margin-bottom: 2; 
    }
}
