/* Container and general styling */
.how-it-works {
    padding: 60px 20px;
    background-color: #f8f8f8;
}
.how-image {
    max-width: 800px;       /* largeur maximale */
    width: 100%;            /* responsive */
    border-radius: 12px;    /* coins arrondis */
    display: block;         /* pour centrer si nécessaire */
    margin: 0 auto 20px;    /* centrage et espacement en bas */
}


.container-C {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Title section */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    color: #3d3d3d;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: #666;
    margin: 0 auto 40px;
    max-width: 600px;
    text-align: center;
}

/* Steps container */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;

    max-width: 800px;  /* même largeur que .how-image */
    margin-left: auto;
    margin-right: auto; /* centre les steps */
    flex-wrap: wrap;    /* passe à la ligne si écran petit */
}

.step {
    text-align: center;
    flex: 1 1 0;       /* s'étire également */
    min-width: 200px;  /* largeur minimale pour petit écran */
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #ffffff; /* fond blanc */
    color: #5C4DFF;            /* couleur du numéro (violet visible) */
    font-size: 18px;           /* chiffre plus petit */
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;              /* réduit encore la taille visuelle */
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    border: 2px solid #5C4DFF; /* cercle bien visible */
}
.steps-title {
    color: #4a3dff;       /* bleu */
    font-size: 24px;       /* taille du texte */
    font-weight: 700;      /* gras */
    margin-bottom: 30px;   /* espace après le titre */
    text-align: center;    /* centré */
}

.step h3 {
    font-size: 20px;
    color: #4a4a4a;
    font-weight: bold;
    margin-bottom: 10px;
}

.step p {
    font-size: 16px;           /* taille du texte */
    color: #999;               /* couleur gris clair */
    margin: 0;                 /* supprime marges par défaut */
    line-height: 1.5;          /* hauteur relative pour chaque ligne */
    white-space: pre-line;     /* respecte les <br> */
    text-align: center;        /* centre le texte */
}


/* Call to action button */
.cta {
    text-align: center;
}

.cta-button {
    padding: 5px 30px;
    background-color: #6a62f1;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #5a52e1;
}

/* Bouton créer une cagnotte */
.btn-create-cagnotte {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    background-color: #6f42c1; /* violet */
    color: #fff;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-create-cagnotte:hover {
    background-color: #5930a2;
}

.btn-create-cagnotte i {
    color: #fff;
    font-size: 18px;
}

/* --- MOBILE --- */
@media (max-width: 576px) {
    .btn-create-cagnotte {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        align-items: center;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1050; /* au-dessus du contenu */
    }

    .btn-create-cagnotte span {
        display: none; /* cacher le texte sur mobile */
    }

    .btn-create-cagnotte i {
        font-size: 24px; /* plus visible sur mobile */
    }
}
