/* =============================================================================
   SEVA Product Characteristics — Frontend CSS  v3.0.0
   Sections :
     1. Variables & reset
     2. En-tête (titre + ligne séparateur style SEVA)
     3. Grille
     4. Carte
     5. Pilule icône image
     6. Texte (label + valeur)
     7. Responsive
   ============================================================================= */


/* =============================================================================
   1. Variables & reset
   ============================================================================= */

.seva-char-root {
    --seva-char-cols       : 2;
    --seva-char-icon-bg    : #e8eef5;
    --seva-char-title-color: #0e2a45;
    --seva-char-sep-color  : #e4e2dc;

    --seva-char-navy       : #0e2a45;
    --seva-char-stone      : #e4e2dc;
    --seva-char-text       : #1a1a18;
    --seva-char-text-muted : #888880;
    --seva-char-white      : #ffffff;
    --seva-char-radius     : 10px;
    --seva-char-gap        : 8px;

    width      : 100%;
    box-sizing : border-box;
    font-family: inherit;
}

.seva-char-root *,
.seva-char-root *::before,
.seva-char-root *::after {
    box-sizing: border-box;
}


/* =============================================================================
   2. En-tête — titre + ligne (style SEVA)
   ============================================================================= */

.seva-char-section-header {
    display      : flex;
    align-items  : baseline;
    gap          : 14px;
    margin-bottom: 1.5rem;
}

.seva-char-section-title {
    font-family   : 'DM Serif Display', 'Georgia', serif;
    font-size     : 22px;
    font-weight   : 400;
    font-style    : normal;
    color         : var(--seva-char-title-color, #0e2a45);
    margin        : 0;
    padding       : 0;
    line-height   : 1.2;
    white-space   : nowrap;
    letter-spacing: -0.01em;
}

.seva-char-section-line {
    flex      : 1;
    height    : 1px;
    background: var(--seva-char-sep-color, #e4e2dc);
    min-width : 20px;
}


/* =============================================================================
   3. Grille
   ============================================================================= */

.seva-char-grid {
    display              : grid;
    grid-template-columns: repeat( var(--seva-char-cols), 1fr );
    gap                  : var(--seva-char-gap);
}


/* =============================================================================
   4. Carte
   ============================================================================= */

.seva-char-card {
    display      : flex;
    align-items  : flex-start;
    gap          : 10px;
    background   : var(--seva-char-white);
    border       : 1px solid var(--seva-char-stone);
    border-radius: var(--seva-char-radius);
    padding      : 12px 14px;
    transition   : border-color 0.18s;
}

.seva-char-card:hover {
    border-color: #c0beba;
}


/* =============================================================================
   5. Pilule icône image
   ============================================================================= */

.seva-char-card__icon {
    display        : flex;
    align-items    : center;
    justify-content: center;
    width          : 36px;
    height         : 36px;
    min-width      : 36px;
    border-radius  : 8px;
    background     : var(--seva-char-icon-bg);
    margin-top     : 1px;
    overflow       : hidden;
}

.seva-char-card__icon img,
.seva-char-icon-img {
    display   : block;
    max-width : 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Pilule vide (pas d'icône assignée) */
.seva-char-card__icon--empty {
    background: transparent;
    border    : 1.5px dashed var(--seva-char-stone);
}


/* =============================================================================
   6. Texte — label + valeur
   ============================================================================= */

.seva-char-card__text {
    display       : flex;
    flex-direction: column;
    gap           : 2px;
    min-width     : 0;
}

.seva-char-card__label {
    display      : block;
    font-size    : 11px;
    color        : var(--seva-char-text-muted);
    line-height  : 1.4;
    white-space  : nowrap;
    overflow     : hidden;
    text-overflow: ellipsis;
}

.seva-char-card__value {
    display    : block;
    font-size  : 13px;
    font-weight: 500;
    color      : var(--seva-char-text);
    line-height: 1.4;
}


/* =============================================================================
   7. Responsive
   ============================================================================= */

@media ( max-width: 768px ) {
    .seva-char-grid {
        grid-template-columns: repeat( min( var(--seva-char-cols), 2 ), 1fr );
    }
}

@media ( max-width: 600px ) {
    .seva-char-grid {
        grid-template-columns: 1fr 1fr;
        gap                  : 6px;
    }
    .seva-char-card {
        padding: 10px 11px;
        gap    : 8px;
    }
    .seva-char-card__icon {
        width    : 30px;
        height   : 30px;
        min-width: 30px;
    }
}

@media ( max-width: 360px ) {
    .seva-char-grid { grid-template-columns: 1fr; }
}
