/* lisaxe-form.css */

#commande-formulaire {
    font-family: "Graphik", serif !important;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.double-field-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

#commande-formulaire label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #222;
}

#commande-formulaire input,
#commande-formulaire textarea,
#commande-formulaire select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 300;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background: white;
    /* margin-bottom: 1.5rem; */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="color"] {
    padding: 0px !important;
    border: 0px !important;
    margin-bottom: 0px !important;
}

#apercu-fond {
    border: 1px solid #ccc;
}

#commande-formulaire input:focus,
#commande-formulaire textarea:focus,
#commande-formulaire select:focus {
    border-color: #52B788 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}

#commande-formulaire button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-right: 0.5rem;
}

#commande-formulaire button.next-step,
#commande-formulaire button[type="submit"] {
    background-color: #52B788;
    color: white;
}

#commande-formulaire button.next-step:hover,
#commande-formulaire button[type="submit"]:hover {
    background-color: #459c6f;
    box-shadow: 0 2px 6px rgba(82, 183, 136, 0.4);
}

#commande-formulaire button.prev-step {
    background-color: transparent;
    color: #666;
    border: 1px solid #ccc;
}

#commande-formulaire button.prev-step:hover {
    color: #333;
    border-color: #999;
}

.choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.choice-grid .choice {
    flex: 1 1 30%;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 0.5rem;
    border: 2px solid #ccc;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.choice-grid .choice.active {
    border-color: #52B788;
    background-color: #e9f9f0;
}

.objectif-option {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: 0.2s ease;
    font-weight: 500;
    text-align: center;
}

.objectif-option:hover {
    background: #f7f7f7;
}

.objectif-option.active {
    background: #e9f9f0;
    border-color: #52B788;
}

.style-choices, .color-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.style-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.style-choices .option {
    flex: 1 1 30%;
    min-width: 120px;
    max-width: 180px;
    font-size: 0.95rem;
}

.style-choices .option span[style*="font-size"] {
    font-size: 1.05em !important;
}

.style-choices .option,
.color-choices .option {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #ccc;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    font-weight: 500;
    flex: 1 1 30%;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-choices .option.active,
.color-choices .option.active {
    border-color: #52B788;
    background-color: #e9f9f0;
}

[data-show-if],
[data-show-contenu],
[data-show-logo],
[data-show-bg] {
    display: none;
}

[data-show-if].visible,
[data-show-contenu].visible,
[data-show-logo].visible,
[data-show-bg].visible {
    display: block;
}

@media (max-width: 900px) {
    .style-choices {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .double-field-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .choice-grid .choice {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
    .style-choices {
        grid-template-columns: 1fr;
    }
    .style-choices .option,
    .color-choices .option {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
    #commande-formulaire label {
        margin-bottom: 0.4rem;
    }
    .choice-grid {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .style-choices, .color-choices {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Radios et checkboxes customisées */
.choice-grid .choice input[type="radio"],
.choice-grid .choice input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    outline: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    display: none;
}
.choice-grid .choice {
    position: relative;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.choice-grid .choice:hover {
    border-color: #52B788;
    background-color: #f3fcf7;
    color: #52B788;
}
.choice-grid .choice.active,
.choice-grid .choice input[type="radio"]:checked + span,
.choice-grid .choice input[type="checkbox"]:checked + span {
    border-color: #52B788;
    background-color: #e9f9f0;
    color: #52B788;
}

/* Pour permettre le style .active via JS, ajouter la classe .active sur le label parent lors de la sélection */
.choice-grid .choice span {
    display: block;
    pointer-events: none;
}

.color-choices .option input[type="radio"],
.color-choices .option input[type="checkbox"],
.style-choices .option input[type="radio"],
.style-choices .option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    outline: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    display: none;
}
.color-choices .option,
.style-choices .option {
    position: relative;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.color-choices .option:hover,
.style-choices .option:hover {
    border-color: #52B788;
    background-color: #f3fcf7;
    color: #52B788;
}
.color-choices .option.active,
.color-choices .option input[type="radio"]:checked + span,
.color-choices .option input[type="checkbox"]:checked + span,
.style-choices .option.active,
.style-choices .option input[type="radio"]:checked + span,
.style-choices .option input[type="checkbox"]:checked + span {
    border-color: #52B788;
    background-color: #e9f9f0;
    color: #52B788;
}

.custom-color-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.custom-color-choices .custom-color-option {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    max-width: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    border: 1.5px solid #e5e7eb;
}
.custom-color-choices .custom-color-option:hover,
.custom-color-choices .custom-color-option.active {
    border-color: #52B788;
    box-shadow: 0 2px 6px rgba(82, 183, 136, 0.08);
}
.custom-color-choices input[type="color"] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 0.5rem;
    cursor: pointer;
    background: none;
    padding: 0;
}
.custom-color-choices label {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* Utilitaires d'espacement pour harmonisation */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.25rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.pl-6 { padding-left: 1.5rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pb-4 { padding-bottom: 1rem !important; } 

/* Centrage vertical du texte dans les labels des étapes 4 et 10 */
.choice-grid .choice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

/* Style pour le bouton Retour de l'étape 1 */
.prev-step {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
}

.prev-step:hover {
    color: #333;
    border-color: #999;
} 

/* Styles pour la case à cocher et les liens légaux */
.flex {
    display: flex !important;
}

.items-start {
    align-items: flex-start !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-red-600 {
    color: #dc2626 !important;
}

.text-blue-600 {
    color: #2563eb !important;
}

.text-center {
    text-align: center !important;
}

.hover\:underline:hover {
    text-decoration: underline !important;
}

/* Style pour la case à cocher */
input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Style pour la case à cocher du récapitulatif */
.flex.items-start.gap-3.cursor-pointer {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
}

.flex.items-start.gap-3.cursor-pointer input[type="checkbox"] {
    margin-top: 0.25rem !important;
    flex-shrink: 0 !important;
}

.flex.items-start.gap-3.cursor-pointer span {
    flex: 1 !important;
    line-height: 1.5 !important;
}

/* Masquer le cercle dans le bouton "Autre" pour les couleurs */
.color-choices .option input[type="radio"][value="autre"] + span span:first-child {
    display: none !important;
}

/* Amélioration de l'harmonisation des étapes 5 et 6 */
.color-choices .option span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.style-choices .option span {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

/* Styles pour l'aide sous les champs */
.field-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    line-height: 1.4;
    font-style: italic;
}

/* Styles pour les messages d'erreur */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Animation pour les messages d'erreur */
.error-message.show {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

 