/* ============================================================
   muyuexchange — Styles personnalisés complémentaires
   Tailwind gère la majorité, ce fichier est pour les ajustements
   ============================================================ */

/* Reset léger */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Empêcher le débordement horizontal global */
html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}
/* Lien sans souligné par défaut */
a {
    text-decoration: none;
}

/* Image responsive par défaut */
img {
    max-width: 100%;
    height: auto;
}

/* Champ de fichier personnalisé */
.file-drop-zone {
    border: 2px dashed #d3cdcd;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: #2da991;
    background-color: #eaf7f4;
}

.file-drop-zone input[type="file"] {
    display: none;
}

/* Barre de progression des étapes */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-progress .step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid #d3cdcd;
    background: #fff;
    color: #9e9393;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-progress .step-dot.active {
    border-color: #2da991;
    background: #2da991;
    color: #fff;
}

.step-progress .step-dot.completed {
    border-color: #2da991;
    background: #eaf7f4;
    color: #2da991;
}

.step-progress .step-line {
    height: 2px;
    width: 60px;
    background: #d3cdcd;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.step-progress .step-line.active {
    background: #2da991;
}

/* Carte de moyen de paiement sélectionnable */
.payment-card {
    border: 2px solid #e9e6e6;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.payment-card:hover {
    border-color: #2da991;
    box-shadow: 0 2px 8px rgba(45, 169, 145, 0.1);
}

.payment-card.selected {
    border-color: #2da991;
    background: #eaf7f4;
    box-shadow: 0 0 0 1px #2da991;
}

/* Dropdown personnalisé */
.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239e9393' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Checkbox personnalisée */
.custom-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #2da991;
    cursor: pointer;
}

/* Bouton principal */
.btn-primary {
    background-color: #2da991;
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #258876;
    box-shadow: 0 4px 12px rgba(45, 169, 145, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Bouton secondaire */
.btn-secondary {
    background-color: #3c3737;
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: #2a2626;
}

/* Bouton outline */
.btn-outline {
    background-color: transparent;
    color: #2da991;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1.5px solid #2da991;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: #eaf7f4;
}

/* Champ de saisie */
.input-field {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e9e6e6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #3c3737;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-field:focus-visible {
    outline: none;
}


.input-field:focus {
    border-color: #2da991;
    box-shadow: 0 0 0 3px rgba(45, 169, 145, 0.1);
    outline: none;
}

.input-field::placeholder {
    color: #bdb4b4;
}

.input-field:disabled {
    background: #f7f6f6;
    color: #9e9393;
    cursor: not-allowed;
}

/* Modal overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-content {
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ticket défilant */
.ticker-scroll {
    display: flex;
    animation: tickerScroll 40s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transform: skewX(-20deg);
    animation: shine 2.5s infinite;
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}