/*
 * Convertisseur des shapers (page CMS 45).
 * Chargé uniquement sur cette page par templates/cms/page.tpl.
 * Toutes les règles sont préfixées par .page-cms-45 pour ne pas toucher
 * aux champs du reste du site (recherche, newsletter...).
 */

/* Bloc impérial */
.page-cms-45 .converter-box {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dcdde1;
    margin-bottom: 24px;
    padding: 20px;
}

.page-cms-45 .section-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bloc métrique (rose) */
.page-cms-45 .converter-box-pink {
    background: #fcfcfc;
    border-radius: 12px;
    border: 1px solid #ca1e8b;
    margin-bottom: 24px;
    padding: 20px;
}

.page-cms-45 .section-title-pink {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-cms-45 .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 575px) {
    .page-cms-45 .grid {
        grid-template-columns: 1fr;
    }
}

.page-cms-45 .input-group {
    position: relative;
    width: 100%;
    display: table;
    border-collapse: separate;
}

.page-cms-45 .input-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark, #2c3e50);
}

.page-cms-45 .input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.page-cms-45 .input-wrapper input {
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    font-weight: 500;
}

.page-cms-45 .unit {
    padding-right: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #95a5a6;
    background: transparent;
    white-space: nowrap;
}

.page-cms-45 .help-text {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
    font-style: italic;
}

/* Tableau des correspondances */
.page-cms-45 .visual-guide {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border, #dcdde1);
}

.page-cms-45 .guide-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-cms-45 table.convert {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.page-cms-45 th.convert {
    background: #ffffff;
    color: #ca1e8b;
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: 1px solid #dcdcdc;
}

.page-cms-45 td.convert {
    padding: 8px 12px;
    border-bottom: 1px solid #dcdcdc;
}
