/*
    Auteur: AfricaStore.org
    Thème: eCommerce Landing Page (One Page Checkout)
*/

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css');

:root {
    --text-color: #262626;
    --primary-color: #38bdf8;
    --primary-light: #7dd3fc;
    --primary-dark: #0ea5e9;
    --button-bg: linear-gradient(180deg, #10b981 0%, #059669 100%);
    --button-shadow: rgba(0, 0, 0, 0.2);
    --form-border: #e2e8f0;
    --form-bg: #f8fafc;
}

/* Général */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: #f3f4f6;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.svg-input {
    width: 24px;
    height: 24px;
}

.fw-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-0 {
    margin-top: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

/* Formulaire */
.box-form {
    padding: 1.5rem;
    background-color: #f8fafc;
    border: 1px solid var(--form-border);
    border-radius: 0.5rem;
    margin: 1rem;
}

.form-row, .form-row2 {
    display: flex;
    align-items: center;
    border: 1px solid var(--form-border);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-row:hover, .form-row2:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row input[type="radio"]:checked + .form-label {
    background-color: var(--primary-light);
    border-color: var(--primary-dark);
}

.form-label {
    margin-left: 0.5rem;
    flex-grow: 1;
}

input[type="radio"], .form-input {
    margin-right: 0.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

input[type="radio"]:checked {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Badge de vente flash */
.badge-corner {
    position: relative;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    background-color: var(--primary-color);
    border-radius: 0.25rem;
    transform: rotate(-45deg);
    transform-origin: top left;
    margin-top: 0.25rem;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--form-border);
    border-radius: 0.5rem;
    background-color: #fff;
}

.input-group-prepend {
    background-color: #262626;
    padding: 0.75rem;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.form-control {
    border: none;
    background-color: #fff;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Bouton d'achat */
.btn-buy, .btn-cmd {
    background: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--button-shadow);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-buy:hover, .btn-cmd:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px var(--button-shadow);
}

.btn-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.svg-shop {
    width: 30px;
    height: 24px;
    margin-right: 0.5rem;
}

/* Animation de chargement */
.load {
    display: none;
}

/* Bouton sticky en bas de page */
#div-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.btn-sticky {
    width: 100%;
    font-size: 1.1rem;
}

.spn-pm {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        box-shadow: none;
    }

    .box-form {
        margin: 0.5rem;
        padding: 1rem;
    }

    .form-row, .form-row2 {
        padding: 0.75rem;
    }

    .btn-buy, .btn-cmd {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

