        /* Général */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            background-color: #f9f9f9;
            color: #333;
        }
        .container3 {
            display: flex;
            justify-content: space-between; /* ou ce que vous voulez */
            align-items: stretch;           /* ← IMPORTANT */
            margin: 20px 5%;
            gap: 20px;
            /* retirez flex-wrap si vous ne l’utilisez pas vraiment */
          }
        .steps-container {
            flex: 3; /* 3 parts sur 5 (60%) */
            padding: 20px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }
        .mid-container {
            flex: 2;            /* rapport de taille 2/5 */
            padding: 20px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            font-size: xx-large;
        }
        .steps-container,
        .mid-container {
          display: inline-block;    /* ou float: left; */
          vertical-align: top;      /* pour aligner en haut si inline-block */
          box-sizing: border-box;   /* inclure padding/border dans la largeur */
          margin: 20px 0%;
        }
        
        .steps-container {
          width: 60%;
        }
        
        .mid-container {
          width: 35%;
        }
        
        .container2 {
            max-width: 70%;
            margin: 20px;
            padding: 20px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }


        .bas-container {
            margin: 20px;
            margin-left: 2%;
            padding: 20px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }

        /* Barre de progression */
        /* Conteneur principal */
        .progress-bar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            width: 100%;
            margin: 20px auto;
        }
        
        /* Étapes */
        .progress-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
            text-align: center;
            margin: -10px;
        }
        
        .progress-step p {
            margin-top: 8px;
            font-size: 12px;
            color: #aaa;
        }
        
        .progress-icon {
            width: 35px; height: 35px;
            border-radius: 50%;
            background-color: #e0e0e0;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: #777;
            transition: all 0.3s ease;
          }
          .progress-icon.active {
            background-color: #2d2867;
            color: #fff;
          }

        .progress-step.active .progress-icon {
            background-color: #2d2867;
            color: #fff;
        }
        
        /* Ligne entre les étapes */
        .progress-line {
            flex: 1;
            height: 5px;
            background-color: #e0e0e0;
            position: relative;
            margin: 0 10px;
        }
        
        .progress-line.active {
            flex: 1;
            height: 5px;
            background-color: #2d2867;
            color: #fff;
            position: relative;
            margin: 0 10px;
        }
        
        .progress-line.active::before {
            content: "";
            position: absolute;
            height: 100%;
            width: 100%;
            background-color: #2d2867;
            transition: width 0.5s ease;
            width: 0; /* Début non rempli */
        }
        
        /* Étapes */
        .step {
            display: none;
        }
        
        .step.active {
            display: block;
        }
        
        h2 {
            color: #312A6F;
            margin-bottom: 15px;
        }
        
        label {
            font-size: 16px;
            font-weight: 400;
            flex: 1; /* Le label occupe l'espace disponible à gauche */
        }
        
        label.switcher {
            display: flex;
            align-items: center;
            cursor: pointer;
            margin-left: auto; /* Aligne à droite */
        }
        
        label.switcher input {
            display: none; /* Cache le checkbox */
        }
        
        input, select {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        
        button {
            background-color: #2d2867;
            color: #fff;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
        
        button:hover {
            background-color: #2d2867;
        }
        
        button.prev-btn {
            background-color: #ccc;
        }
        
        button.prev-btn:hover {
            background-color: #bbb;
        }
        
        /* Bouton Stripe */
        .stripe-btn {
            background-color: #6772e5;
        }
        
        .stripe-btn:hover {
            background-color: #5469d4;
        }
        .step-2 {
            padding: 20px;
        }
        
        .form-group {
            display: flex;
            justify-content: space-between; /* Aligne le label et le slider */
            align-items: center;
            margin-bottom: 15px;
            

                }
        .switcher {
            display: flex;
            align-items: center;
        }
        
        .switcher input {
            display: none; /* Cacher le checkbox */
        }
            .slider {
                width: 60px;
                height: 30px;
                background-color: #ccc;
                border-radius: 15px;
                position: relative;
                cursor: pointer;
                transition: background-color 0.3s ease-in-out;
                margin-left: auto;
            }
            
            .slider span {
                position: absolute;
                width: 50%;
                height: 100%;
                line-height: 30px;
                text-align: center;
                font-size: 18px; /* Taille des icônes */
                color: #fff;
                font-weight: bold;
                transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
            }
        
        .switch-on {
            left: 0;
            background-color: #4CAF50; /* Vert */
            transform: translateX(100%);
            opacity: 1; /* Icône toujours visible */
        }
        
        .switch-off {
            right: 0;
            background-color: #ccc; /* Gris */
            transform: translateX(0);
            opacity: 1; /* Icône floue par défaut */
        }
        
        input:checked + .slider .switch-on {
            transform: translateX(0);
            opacity: 1; /* ✅ reste apparu */
        }
        
        input:checked + .slider .switch-off {
            transform: translateX(100%);
            opacity: 1; /* ❌ visible en mode non-check */
            display: none;
        }
        
        .step-3 {
            padding: 20px;
        }
        
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 colonnes par défaut */
            gap: 5px; /* Espacement entre les éléments */
        }
        
        .form-group.full-width {
            grid-column: span 2; /* Les éléments avec cette classe prennent toute la largeur */
        }
        
        .container {
            display: flex; /* Arrange les divs en ligne */
            justify-content: space-between;
            gap: 20px;
        }
        
        .steps-calcul {
            flex: 2; /* 40% de l'espace total */
            max-width: 40%;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        #payment-div {
            display: none; /* Caché au départ */
            flex: 3; /* 60% de l'espace total */
            max-width: 60%;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            animation: fadeIn 0.5s ease-in-out; /* Animation d'apparition */
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateX(-50%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
    
/* Responsive pour petits écrans */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container3 {
        flex-direction: column;
        gap: 20px;
    }

    .steps-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .progress-bar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-step {
        flex-direction: row;
        margin-bottom: 10px;
        text-align: left;
    }

    .progress-icon {
        margin-right: 10px;
    }

    .progress-line {
        display: none; /* Cache la ligne de progression */
    }

    .step {
        padding: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Passe à une seule colonne */
    }

    .form-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group.full-width {
        grid-column: span 1; /* Redéfini pour prendre toute la largeur */
    }

    #payment-div {
        max-width: 100%;
        flex-direction: column;
    }

    .steps-calcul {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Responsive pour très petits écrans (téléphones anciens) */
@media (max-width: 480px) {
    /* Suppression des libellés */
    .progress-step p {
        display: none; /* Cache les libellés sous les icônes */
    }

    /* Réorganisation de la dernière étape */
    .step-4 .container {
        flex-direction: column; /* Dispose les divs en colonne */
    }

    .steps-calcul {
        order: 1; /* Met le calcul en haut */
        width: 100%; /* Prend toute la largeur */
        margin-bottom: 20px; /* Ajoute un espacement sous le calcul */
    }

    #payment-div {
        order: 2; /* Met le paiement en bas */
        width: 100%; /* Prend toute la largeur */
    }

    /* Réduction des marges et tailles pour les très petits écrans */
    .steps-container {
        padding: 10px;
        width: 336px;
    }
    .mid-container {
        padding: 10px;
        width: 315px;
    }
    .step {
        padding: 10px;
    }

    h2 {
        font-size: 18px; /* Réduit la taille des titres */
    }

    label {
        font-size: 14px; /* Réduit la taille des labels */
    }

    input, select, button {
        font-size: 14px; /* Réduit la taille des champs et des boutons */
        padding: 8px; /* Réduit les marges internes */
    }
    .progress-bar-container {
        display: flex; /* Utilise un conteneur flex */
        flex-direction: row; /* Dispose les éléments sur une seule ligne */
        justify-content: space-between; /* Espacement uniforme entre les étapes */
        align-items: center; /* Centre les éléments verticalement */
    }

    .progress-step {
        flex: 1; /* Les étapes prennent une largeur égale */
        text-align: center; /* Centre le contenu de chaque étape */
        padding: 5px; /* Ajoute un peu d'espacement */
    }

    .progress-step p {
        display: none; /* Cache les libellés pour gagner de la place */
    }

    /* Réduction de la taille des icônes ou étapes si nécessaire */
    .progress-step i {
        font-size: 16px; /* Ajuste la taille des icônes */
    }
}



/* ======================
   3) (Optionnel) >768px
   ====================== */
@media (min-width: 769px) {
  .container3 {
    gap: 24px;
    padding: 0 5%;
  }
  .steps-container {
    max-width: 60%;
  }
  .mid-container {
    max-width: 35%;
  }
}