/* --- ZONE DE RÉGLAGE INDEX --- */
:root {
    --index-rond-taille: calc(45 / 16 * 1rem);
    --index-img-padding: calc(8 / 16 * 1rem);
}

/* -------------------------------------- */
/* 2. SECTION INTRODUCTION ET INDEX GRID  */
/* -------------------------------------- */

.index-container {
    padding: calc(15 / 16 * 1rem) calc(20 / 16 * 1rem);
    background-color: var(--color-index-container-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-z2);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.index-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(300 / 16 * 1rem), 1fr));
    gap: calc(15 / 16 * 1rem);
    max-width: calc(1200 / 16 * 1rem);
    margin: 0 auto;
}

.index-step-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--source-color-white-transparent) !important;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-z2);
    border: calc(1 / 16 * 1rem) solid var(--color-step-item-border);
}

.index-card-header {
    display: flex;
    align-items: center;
    gap: calc(15 / 16 * 1rem);
    margin-bottom: var(--space-md);
}

.index-step-icon {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--index-rond-taille);
    height: var(--index-rond-taille);
    border-radius: 50%;
    background-color: #ffffff;
    border: calc(2 / 16 * 1rem) solid #000000;
    padding: var(--index-img-padding);
    box-sizing: border-box;
    box-shadow: var(--shadow-z2);
}

.index-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.index-card-header h3 {
    margin: 0;
    font-size: calc(22.4 / 16 * 1rem);
    color: var(--colore-index-step-h3);
    text-align: left;
}

.index-step-item p {
    color: black;
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
    flex-grow: 1;
}

.index-btn-container {
    margin: 0;
    text-align: center;
}

.cta-vegetal-index {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}
/* ================================================= */
/* === MODE SOMBRE === */
/* ================================================= */
html[data-theme="dark"] .index-step-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--source-color-white-transparent) !important;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-z2);
    border: calc(1.5 / 16 * 1rem) solid #808080;
}
html[data-theme="dark"] .index-step-item {
    background-color: #000000 !important;
}

html[data-theme="dark"] .index-step-item p,
html[data-theme="dark"] .share-text {
    color: #a39f9f !important;
}
html[data-theme="dark"] .index-step-icon {
    background-color: #676767; /* Un gris très foncé */
    border-color: #aaa8a8;     /* Bordure blanche pour qu'on voit le rond */
}

html[data-theme="dark"] .index-step-icon {
    background-color: #4A813F;
    border: none;
}
/* ========================================================================= */
/* ========================================================================= */
/* ========================================================================= */
/* ========================================================================= */
@media (max-width: calc(580 / 16 * 1rem)) {
    .index-step-grid {
        grid-template-columns: 1fr;
    }
}