/* ============================================
   KACOOR - Styles CSS
   ============================================ */

/* Variables */
:root {
    --primary-color: #2d5016;
    --primary-dark: #1e3a0f;
    --primary-light: #4a7c28;
    --accent-color: #d4a853;
    --accent-dark: #b8923f;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f6f3;
    --bg-cream: #faf8f5;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--text-color);
    box-shadow: var(--shadow);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark), #9a7a2e);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    text-decoration: none;
}

.logo:hover {
    color: var(--accent-color);
}

.header-cta {
    padding: 10px 25px;
    font-size: 0.95rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.hero-banner {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 2rem;
    background-color: var(--bg-cream);
    border-radius: 12px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

.hero-cta {
    margin-top: 2rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.section-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Problem Section */
.problem-section {
    background: linear-gradient(135deg, #fff5f5, #fff);
}

.problem-text {
    font-size: 1.15rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-color);
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-color);
    background: var(--white);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   MODE D'EMPLOI SECTION
   ============================================ */
.mode-emploi-subtitle {
    text-align: center;
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
    margin-top: -20px;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 20px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
    position: relative;
    margin-top: 20px;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 1;
}

.step-image {
    display: block;
    width: 90px;
    height: 90px;
    margin: 10px auto;
    object-fit: contain;
}

.step-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 0;
}

.step-desc {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 8px;
    line-height: 1.4;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    padding-top: 60px;
}

/* Responsive Mode d'emploi */
@media (max-width: 950px) {
    .steps-container {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    .arrow {
        display: none;
    }
    .step {
        width: calc(50% - 40px);
        min-width: 160px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .steps-container {
        gap: 25px;
    }
    .step {
        width: 100%;
        max-width: 200px;
        padding: 30px 15px 20px;
    }
    .step-image {
        width: 80px;
        height: 80px;
    }
}

/* Story Section */
.story-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.story-section .section-title {
    color: var(--white);
}

.story-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.95;
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--success);
}

.trust-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Offer Section */
.offer-section {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    text-align: center;
}

.offer-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.offer-badge {
    display: inline-block;
    background: var(--danger);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.offer-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.offer-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 25px;
}

/* FAQ Section */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 25px 30px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--text-light);
}

/* Final CTA */
.final-cta {
    background: var(--bg-cream);
    text-align: center;
    padding: 80px 0;
}

.final-cta-text {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ============================================
   TRACKING SECTION
   ============================================ */
.tracking-section {
    background: var(--white);
    border-top: 3px solid var(--primary-color);
}

.tracking-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.tracking-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tracking-form input {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

.tracking-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tracking-form button {
    padding: 15px 30px;
}

/* Tracking Result */
.tracking-result {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.tracking-result.success {
    border-left: 4px solid var(--success);
}

.tracking-result.error {
    border-left: 4px solid var(--danger);
    background: #fff5f5;
}

.tracking-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
}

.status-pending { background: var(--warning); color: #333; }
.status-paid { background: var(--info); color: var(--white); }
.status-preparing { background: #007bff; color: var(--white); }
.status-shipping { background: #6c757d; color: var(--white); }
.status-delivered { background: var(--success); color: var(--white); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    margin: 0 15px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    opacity: 1;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 40px 0;
}

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 0 20px;
}

.checkout-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.checkout-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-errors {
    background: #fff5f5;
    border: 1px solid var(--danger);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.form-errors li {
    color: var(--danger);
}

/* Order Summary */
.order-summary {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.summary-product {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: 20px;
}

.summary-product-info h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.summary-product-price {
    color: var(--primary-color);
    font-weight: 600;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   SUCCESS / CANCEL PAGES
   ============================================ */
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px 20px;
}

.result-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.result-icon.success { color: var(--success); }
.result-icon.error { color: var(--danger); }

.result-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.result-text {
    color: var(--text-light);
    margin-bottom: 30px;
}

.order-details {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    text-align: left;
}

.order-details p {
    margin-bottom: 8px;
}

.order-id {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-cream);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin: 15px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 50px 0;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 15px 30px;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tracking-form {
        flex-direction: column;
    }

    .header .container {
        flex-direction: column;
        gap: 10px;
    }

    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero-logo {
        width: 120px;
    }

    .hero-banner {
        max-width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .checkout-form-section,
    .order-summary {
        padding: 25px;
    }

    .result-box {
        padding: 30px 20px;
    }
}
