.values {
    background-color: #FDF9F0;
    padding-block: 60px;
    overflow-x: clip; /* l'étoile près du titre ne doit pas créer de défilement horizontal sur mobile */
}

.values-container {
    position: relative; /* ancre pour le soleil/nuage dessinés */
}
.doodle-values-sun {
    position: absolute;
    top: -6px;
    left: 2%;
    width: 46px;
    height: 46px;
    stroke: #F6C11A;
    stroke-width: 3;
}
.doodle-values-sun circle {
    fill: rgba(246, 193, 26, 0.12);
}
.doodle-values-cloud {
    position: absolute;
    top: 10px;
    right: 3%;
    width: 70px;
    height: 40px;
    stroke: #22B0E0;
    stroke-width: 3;
}

.values-header {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.values-label {
    position: relative;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8DC63F;
}
/* Petite étoile dessinée, juste au-dessus du label */
.doodle-values-star {
    position: absolute;
    top: -16px;
    right: -18px;
    width: 18px;
    height: 18px;
    stroke: #F6C11A;
    stroke-width: 2.5;
}

.values-header h2 {
    font-size: 2rem;
    line-height: 1.3;
    color: #2d1b4e;
}

.values-underline {
    position: relative;
    display: inline-block;
}
.values-underline::after {
    content: "";
    position: absolute;
    left: -30px;
    bottom: -10px;
    width: 200px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12' viewBox='0 0 140 12'%3E%3Cpath d='M2 8 Q12 2 22 8 T42 8 T62 8 T82 8 T102 8 T122 8 T138 8' stroke='%238DC63F' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.values-header p {
    margin-top: 8px;
    color: var(--color-text);
    line-height: 1.6;
}

/* Mobile d'abord : 1 colonne */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    background-color: #fff;
    border: 4px solid;
    border-top: 12px solid;
    border-radius: 34px;
    padding: 24px;
    box-shadow: 0px 10px 0px 0px rgba(59, 30, 78, 0.06);
}
.value-card h3 {
    margin-bottom: 8px;
}
.value-card p {
    color: var(--color-text);
    line-height: 1.5;
    font-size: 0.95rem;
}

.value-card-red    { border-color: #C60E10; }
.value-card-red h3    { color: #C60E10; }

.value-card-green  { border-color: #A5C61B; }
.value-card-green h3  { color: #A5C61B; }

.value-card-purple { border-color: #B49AD6; }
.value-card-purple h3 { color: #B49AD6; }

.value-card-blue   { border-color: #22B0E0; }
.value-card-blue h3   { color: #22B0E0; }

.value-card-orange { border-color: #EE8B2B; }
.value-card-orange h3 { color: #EE8B2B; }

.value-card-yellow { border-color: #F6C11A; }
.value-card-yellow h3 { color: #F6C11A; }

/* Bandeau "La famille occupe une place..." */
.values-banner {
    background-color: #F19BB0;
    border-radius: 16px;
    padding: 24px 32px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.values-banner p {
    color: #4A1030;
    line-height: 1.5;
}
.values-banner-title {
    font-weight: 700;
}

/* À partir de 768px : grille 3 colonnes, bandeau en ligne */
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .values-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }
    .values-banner-title {
        flex: 0 0 auto;
        max-width: 280px;
    }
}
