/* ============================================
   AC_DATAGRID.CSS — Page produit
   artisan-code.fr
   ============================================ */

/* Hero prix */
.hero-price {
    display: inline-block;
    background: rgba(247, 147, 30, 0.2);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 12px;
    vertical-align: middle;
}

/* ============================================
   ACCROCHE
   ============================================ */

.accroche-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
}

.accroche-lead {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.demo-warning {
    display: inline-block;
    background: rgba(247, 147, 30, 0.1);
    border: 1px solid rgba(247, 147, 30, 0.3);
    color: var(--color-gold);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
}

/* ============================================
   CONTROLES DÉMO
   ============================================ */

.controls-section {
    padding: 20px 0;
}

.demo-controls-bar {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--color-bg-light);
    padding: 20px 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group select {
    padding: 8px 14px;
    border: 1px solid var(--color-blue-dark);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--color-blue-dark);
    background: #fff;
    cursor: pointer;
    min-width: 140px;
    transition: border-color 0.2s ease;
}

.control-group select:hover {
    border-color: var(--color-gold);
}

/* ============================================
   INFO FORMAT CONDITIONNEL
   ============================================ */

.format-cond-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--color-bg-light);
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 20px;
    margin-bottom: 15px;
    font-size: 0.82rem;
    color: #555;
}

.fc-sep {
    color: #ddd;
}

/* ============================================
   GRILLE
   ============================================ */

.grille-section {
    padding: 10px 0 40px;
}

/* ============================================
   FONCTIONNALITÉS
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--color-bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(14, 46, 82, 0.08);
    border-color: var(--color-gold);
}

.feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    color: var(--color-blue-dark);
    display: block;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--color-blue-dark);
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.feature-card strong {
    color: var(--color-blue-dark);
}

/* ============================================
   COMPARAISON
   ============================================ */

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

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.compare-card {
    padding: 30px;
    border-radius: 10px;
}

.compare-others {
    background: #fff;
    border: 1px solid var(--border);
}

.compare-artisan {
    background: #fff;
    border: 1px solid var(--color-gold);
}

.compare-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.compare-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* ============================================
   INTÉGRATION
   ============================================ */

.integration-steps {
    max-width: 700px;
    margin: 0 auto 40px;
}

.integration-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-blue-dark);
}

.code-block {
    background: var(--color-blue-dark);
    color: #a8d8a8;
    padding: 15px 20px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre;
}

/* ============================================
   ACHAT
   ============================================ */

.achat-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-light);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.achat-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.achat-ttc {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

.achat-licence {
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 1rem;
}

.achat-includes {
    text-align: left;
    margin-bottom: 25px;
}

.achat-includes p {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-blue-dark);
}

.achat-includes ul {
    list-style: none;
    padding: 0;
}

.achat-includes li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: #444;
}

.achat-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

.achat-includes code {
    background: #f3f4f6;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.btn-achat {
    font-size: 1.1rem;
    padding: 14px 40px;
}

.achat-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

/* ============================================
   DOCUMENTATION
   ============================================ */

.doc-download {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 1px solid var(--color-gold);
    border-radius: 6px;
    color: var(--color-gold);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-doc:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .demo-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group select {
        width: 100%;
    }

    .hero-price {
        display: block;
        margin: 10px auto 0;
        width: fit-content;
    }

    .integration-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .code-block {
        font-size: 0.75rem;
    }

    .doc-download {
        flex-direction: column;
        align-items: center;
    }
}
