/* ============================================================================
   Antibes Print Services - Calculatrice interne de devis
   --------------------------------------------------------------------------
   Design sobre de herramienta interna: azul APS, amarillo/naranja y rojo.
   El CSS no modifica los cálculos PHP.
   ========================================================================== */

:root {
    --aps-blue: #005baa;
    --aps-blue-dark: #003f7d;
    --aps-blue-soft: #eef7ff;
    --aps-orange: #f6a800;
    --aps-orange-dark: #9a6400;
    --aps-orange-soft: #fff4d2;
    --aps-red: #e30613;

    --page-bg: #f4f8fd;
    --paper: #ffffff;
    --paper-soft: #fbfdff;
    --ink: #1f2937;
    --muted: #61708a;
    --line: #d5e2f1;
    --line-soft: #e9f0f8;

    --radius-sm: 9px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-panel: 0 8px 22px rgba(24, 45, 74, 0.07);
    --font-main: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-main);
    font-size: 14px;
    background:
        linear-gradient(90deg, rgba(0, 91, 170, 0.075), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, var(--page-bg) 64%, #edf4fb 100%);
}

.top-strip {
    height: 7px;
    background: linear-gradient(90deg, var(--aps-blue) 0 54%, var(--aps-orange) 54% 82%, var(--aps-red) 82% 100%);
}

.app-shell {
    width: min(1500px, calc(100% - 84px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    margin-bottom: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 78px;
    height: 52px;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    border: 2px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 91, 170, 0.14);
}

.brand-mark span { display: grid; place-items: center; }
.brand-mark span:nth-child(1) { background: var(--aps-blue); }
.brand-mark span:nth-child(2) { background: var(--aps-orange); }
.brand-mark span:nth-child(3) { background: var(--aps-red); }

.brand-text { display: grid; gap: 3px; }
.brand-text strong { font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-text small,
.panel-help,
.empty-state { color: var(--muted); }

.layout {
    display: grid;
    grid-template-columns: minmax(600px, 0.60fr) minmax(430px, 0.40fr);
    gap: 28px;
    align-items: start;
}

.panel {
    min-width: 0;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 34px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(0, 91, 170, 0.065), transparent 44%),
        var(--paper-soft);
}

.panel-header.compact {
    display: block;
    padding: 23px 28px 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--aps-blue);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1, h2, h3, h4 { margin-top: 0; line-height: 1.15; }

h1 {
    margin-bottom: 0;
    font-size: clamp(1.95rem, 2.25vw, 2.35rem);
    letter-spacing: -0.04em;
}

.panel-header h2 {
    margin-bottom: 0;
    font-size: 1.28rem;
}

.panel-help {
    max-width: 390px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.calculator-form { padding: 28px 34px 34px; }

.form-section {
    margin-bottom: 24px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--aps-blue);
    border-radius: var(--radius-md);
}

.form-section + .form-section { border-left-color: var(--aps-orange); }

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
}

.form-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.02rem;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    color: var(--aps-blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--aps-blue-soft);
    border-radius: 999px;
    white-space: nowrap;
}

.section-pill.muted {
    max-width: 58%;
    overflow: hidden;
    color: #7a5200;
    background: var(--aps-orange-soft);
    text-overflow: ellipsis;
}

.table-scroll { width: 100%; overflow-x: auto; }

.quote-form-table,
.calculator-form table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.quote-form-table tr,
.calculator-form table tr { background: transparent; }

.quote-form-table td,
.calculator-form table td {
    padding: 11px 12px;
    vertical-align: middle;
    background: var(--paper-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.quote-form-table td:first-child,
.calculator-form table td:first-child {
    width: 165px;
    border-left: 1px solid var(--line-soft);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.quote-form-table td:last-child,
.calculator-form table td:last-child {
    border-right: 1px solid var(--line-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-form-table td:empty,
.calculator-form table td:empty,
.legacy-hidden-row {
    display: none !important;
}

/* Textos explicativos del PHP antiguo: se conservan, pero no parecen inputs vacíos. */
.legacy-note-row td,
.legacy-form-output .legacy-note-row td,
.product-section .legacy-note-row td {
    display: table-cell !important;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
    background: #ffffff;
    border: 1px dashed var(--line);
    border-left: 4px solid var(--aps-blue-soft);
    border-radius: var(--radius-sm) !important;
}

.options-section .legacy-note-row td {
    border-left-color: var(--aps-orange-soft);
}

label {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 800;
}

input, select, textarea, button { font: inherit; }

select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input:not([type]),
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #c7d4e4;
    border-radius: 9px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea { min-height: 90px; resize: vertical; }

select:focus,
input:focus,
textarea:focus {
    border-color: var(--aps-blue);
    box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.12);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    accent-color: var(--aps-blue);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 26px;
}

.button-primary,
.button-secondary,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    font-weight: 900;
    text-decoration: none;
    border-radius: 9px;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button-primary,
input[type="submit"] {
    color: #ffffff;
    background: var(--aps-blue);
    box-shadow: 0 8px 16px rgba(0, 91, 170, 0.20);
}

.button-primary:hover,
input[type="submit"]:hover {
    background: var(--aps-blue-dark);
    transform: translateY(-1px);
}

.button-secondary {
    color: var(--aps-blue-dark);
    background: var(--aps-orange-soft);
    border: 1px solid #f1d485;
}

.button-secondary:hover {
    color: #ffffff;
    background: var(--aps-orange);
}

.panel-summary {
    position: static;
    top: auto;
}

.panel-summary .panel-header { border-top: 5px solid var(--aps-red); }

.summary-content { padding: 24px 28px 30px; }

.summary-content h2 {
    margin: 0 0 10px;
    color: var(--aps-blue-dark);
    font-size: 1.55rem;
}

.summary-content h3 {
    margin: 0 0 14px;
    color: #344054;
    font-size: 1.02rem;
}

.summary-content h4 {
    margin: 20px 0 10px;
    color: var(--aps-blue-dark);
    font-size: 0.98rem;
}

.summary-content div,
.summary-content p { line-height: 1.58; }

.summary-content a {
    color: var(--aps-blue);
    font-weight: 800;
}

.summary-content hr,
.summary-content HR {
    height: 1px;
    margin: 22px 0;
    border: 0;
    background: var(--line);
}

.summary-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.88rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.summary-content th,
.summary-content td {
    padding: 9px;
    border: 1px solid var(--line);
    text-align: left;
}

.summary-content th {
    color: #0f2740;
    background: var(--aps-blue-soft);
}

.summary-content tr:nth-child(even) td { background: #fbfdff; }

.empty-state {
    margin: 0;
    padding: 16px;
    background: var(--aps-orange-soft);
    border: 1px solid #f4da91;
    border-left: 5px solid var(--aps-orange);
    border-radius: var(--radius-sm);
}

@media (max-width: 1240px) {
    .app-shell { width: min(1500px, calc(100% - 44px)); }
    .layout { grid-template-columns: minmax(560px, 1fr) minmax(390px, 0.55fr); }
}

@media (max-width: 1060px) {
    .layout { grid-template-columns: 1fr; }
    .panel-summary { position: static; }
}

@media (max-width: 760px) {
    .app-shell {
        width: min(100% - 22px, 1500px);
        padding-top: 20px;
    }

    .app-header,
    .panel-header,
    .section-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-header,
    .calculator-form,
    .summary-content { padding: 20px; }

    .form-section { padding: 16px; }

    .section-pill,
    .section-pill.muted {
        max-width: 100%;
        width: fit-content;
    }

    .quote-form-table,
    .calculator-form table,
    .quote-form-table tbody,
    .calculator-form table tbody,
    .quote-form-table tr,
    .calculator-form table tr,
    .quote-form-table td,
    .calculator-form table td {
        display: block;
        width: 100%;
    }

    .quote-form-table,
    .calculator-form table { border-spacing: 0; }

    .quote-form-table tr,
    .calculator-form table tr {
        margin-bottom: 12px;
        padding: 12px;
        background: var(--paper-soft);
        border: 1px solid var(--line-soft);
        border-radius: var(--radius-sm);
    }

    .quote-form-table td,
    .calculator-form table td,
    .quote-form-table td:first-child,
    .calculator-form table td:first-child,
    .quote-form-table td:last-child,
    .calculator-form table td:last-child {
        padding: 7px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .legacy-note-row td,
    .legacy-form-output .legacy-note-row td,
    .product-section .legacy-note-row td {
        padding: 8px 10px;
        border: 1px dashed var(--line);
        border-left: 4px solid var(--aps-blue-soft);
        background: #ffffff;
    }

    .actions { flex-direction: column; }

    .button-primary,
    .button-secondary,
    input[type="submit"] { width: 100%; }
}

/* ==========================================================================
   Ajustes v5
   - Sin franja superior APS.
   - Botones con icono tipo calculadora / reinicio.
   - Resultado más ancho y más legible.
   - Mantiene los comentarios antiguos visibles.
   ========================================================================== */

.top-strip { display: none !important; }

.app-shell {
    width: min(1440px, calc(100% - 92px));
    padding-top: 42px;
}

.layout {
    grid-template-columns: minmax(560px, 0.56fr) minmax(470px, 0.44fr);
    gap: 30px;
}

.panel-form .panel-header {
    padding: 26px 34px;
}

.calculator-form {
    padding: 30px 34px 36px;
}

.form-section {
    padding: 24px;
    margin-bottom: 26px;
}

.actions {
    gap: 15px;
    margin-top: 28px;
}

.button-primary,
.button-secondary,
input[type="submit"] {
    min-height: 52px;
    padding: 12px 26px;
    gap: 12px;
    border-radius: 11px;
}

.button-primary {
    min-width: 255px;
}

.button-secondary {
    min-width: 185px;
    background: #ffffff;
    border: 1px solid var(--aps-blue-dark);
}

.button-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.button-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel-summary {
    border-top: 5px solid var(--aps-red);
}

.panel-summary .panel-header {
    border-top: 0;
    background: linear-gradient(90deg, rgba(0, 91, 170, 0.06), transparent 58%), #ffffff;
}

.panel-summary .panel-header h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 12px;
    background: var(--aps-orange);
    border-radius: 999px;
}

.summary-content {
    padding: 28px 32px 34px;
}

.summary-content > h2:first-child {
    display: block;
    margin: 0 0 6px;
    padding: 22px 24px;
    color: var(--aps-blue-dark);
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.summary-content > h3:first-of-type {
    margin: 0 0 24px;
    padding: 0 4px 22px;
    color: #344054;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
}

.summary-content h2:not(:first-child) {
    margin-top: 26px;
    color: var(--aps-blue-dark);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.summary-content h4 {
    margin-top: 22px;
    color: var(--aps-blue-dark);
    font-size: 1rem;
}

.summary-content table {
    font-size: 0.92rem;
}

.summary-content th,
.summary-content td {
    padding: 10px 11px;
}

@media (max-width: 1240px) {
    .app-shell { width: min(1440px, calc(100% - 46px)); }
    .layout { grid-template-columns: minmax(520px, 0.55fr) minmax(420px, 0.45fr); }
}

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

@media (max-width: 760px) {
    .app-shell {
        width: min(100% - 22px, 1440px);
        padding-top: 22px;
    }

    .button-primary,
    .button-secondary {
        min-width: 0;
    }
}

/* ==========================================================================
   Ajustes v6
   - Recupera el diseño anterior del bloque Résultat: más sobrio y compacto.
   - Quita la línea amarilla bajo “Résumé du devis”.
   - Mantiene los iconos de Calculer / Réinitialiser.
   ========================================================================== */

.panel-summary .panel-header h2::after {
    display: none !important;
    content: none !important;
}

.summary-content {
    padding: 24px 28px 30px;
}

.summary-content > h2:first-child,
.summary-content h2 {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    color: var(--aps-blue-dark);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.summary-content > h3:first-of-type,
.summary-content h3 {
    margin: 0 0 14px;
    padding: 0;
    color: #344054;
    font-size: 1.02rem;
    border-bottom: 0;
}

.summary-content h2:not(:first-child) {
    margin-top: 24px;
    font-size: 1.48rem;
}

.summary-content h4 {
    margin: 20px 0 10px;
    color: var(--aps-blue-dark);
    font-size: 0.98rem;
}

.summary-content hr,
.summary-content HR {
    margin: 22px 0;
}

.summary-content table {
    font-size: 0.9rem;
}

.summary-content th,
.summary-content td {
    padding: 9px;
}

.legacy-note-row td[data-auto-quantity="true"] {
    color: var(--aps-blue-dark);
    background: #f7fbff;
    border-style: solid;
    border-left-color: var(--aps-blue);
    font-weight: 800;
}


/* ==========================================================================
   Ajustes v7
   - Más parecido a la vista al 80%: más ancho útil en zoom 100%.
   - La calculadora gana espacio y el resultado queda un poco más compacto.
   - Evita que “Calculatrice de devis” se parta en dos líneas.
   - Evita que selects cortos como A4/A3 se corten.
   ========================================================================== */

.app-shell {
    width: min(1540px, calc(100% - 36px));
    padding-top: 34px;
}

.layout {
    grid-template-columns: minmax(690px, 0.63fr) minmax(390px, 0.37fr);
    gap: 24px;
}

.panel-form .panel-header {
    padding: 24px 32px;
}

.panel-header {
    gap: 22px;
}

.panel-header h1,
#form-title {
    white-space: nowrap;
    font-size: clamp(2rem, 2.05vw, 2.35rem);
}

.panel-help {
    max-width: 360px;
    font-size: 0.94rem;
}

.calculator-form {
    padding: 28px 32px 34px;
}

.form-section {
    padding: 23px;
}

.quote-form-table td:first-child,
.calculator-form table td:first-child {
    width: 150px;
}

select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input:not([type]),
textarea {
    min-height: 43px;
}

.legacy-form-output select {
    min-width: 130px;
}

.legacy-form-output td:last-child select,
.legacy-form-output td:last-child input {
    min-width: 82px;
}

.panel-summary .panel-header.compact {
    padding: 21px 24px 16px;
}

.summary-content {
    padding: 23px 25px 28px;
}

.summary-content > h2:first-child,
.summary-content h2 {
    font-size: 1.48rem;
}

.summary-content h2:not(:first-child) {
    font-size: 1.42rem;
}

.summary-content h3 {
    font-size: 0.98rem;
}

.summary-content table {
    font-size: 0.86rem;
}

.summary-content th,
.summary-content td {
    padding: 8px;
}

@media (max-width: 1320px) {
    .app-shell { width: min(1540px, calc(100% - 24px)); }
    .layout {
        grid-template-columns: minmax(660px, 0.62fr) minmax(375px, 0.38fr);
        gap: 22px;
    }
    .panel-form .panel-header,
    .calculator-form { padding-left: 28px; padding-right: 28px; }
    .panel-help { max-width: 340px; }
    .quote-form-table td:first-child,
    .calculator-form table td:first-child { width: 140px; }
}

@media (max-width: 1120px) {
    .layout { grid-template-columns: 1fr; }
    .panel-summary { position: static; }
    #form-title { white-space: normal; }
}

@media (max-width: 760px) {
    .app-shell { width: min(100% - 18px, 1540px); }
    .panel-header h1,
    #form-title { white-space: normal; }
    .legacy-form-output select,
    .legacy-form-output td:last-child select,
    .legacy-form-output td:last-child input { min-width: 0; }
}

/* ========================================================================== 
   Ajuste v12
   Base visual igual a v7 para que "Copies simples et façonnage" conserve
   sus proporciones. El extra de espacio de títulos de v8 se aplica solo a
   los módulos donde hacía falta: Brochures y Affiches/Prospectus.
   ========================================================================== */

body.product-brochure .quote-form-table td:first-child,
body.product-brochure .calculator-form table td:first-child,
body.product-prospectus .quote-form-table td:first-child,
body.product-prospectus .calculator-form table td:first-child {
    width: 178px;
    min-width: 178px;
    white-space: nowrap;
}

body.product-brochure .legacy-form-output select,
body.product-prospectus .legacy-form-output select {
    min-width: 118px;
}

body.product-brochure .legacy-form-output td:last-child select,
body.product-brochure .legacy-form-output td:last-child input,
body.product-prospectus .legacy-form-output td:last-child select,
body.product-prospectus .legacy-form-output td:last-child input {
    min-width: 76px;
}

@media (max-width: 1320px) {
    body.product-brochure .quote-form-table td:first-child,
    body.product-brochure .calculator-form table td:first-child,
    body.product-prospectus .quote-form-table td:first-child,
    body.product-prospectus .calculator-form table td:first-child {
        width: 168px;
        min-width: 168px;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    body.product-brochure .quote-form-table td:first-child,
    body.product-brochure .calculator-form table td:first-child,
    body.product-prospectus .quote-form-table td:first-child,
    body.product-prospectus .calculator-form table td:first-child {
        width: auto;
        min-width: 0;
        white-space: normal;
    }
}


/* ========================================================================== 
   Ajuste v12 mínimo
   - Conserva los valores originales: las filas técnicas se ocultan, no se eliminan.
   - En Cartes de visites damos un poco más de ancho al título sin mover toda la web.
   ========================================================================== */

body.product-card .quote-form-table td:first-child,
body.product-card .calculator-form table td:first-child {
    width: 172px;
    min-width: 172px;
    white-space: nowrap;
}

body.product-card .legacy-form-output select,
body.product-card .legacy-form-output input[type="text"],
body.product-card .legacy-form-output input[type="number"],
body.product-card .legacy-form-output input:not([type]) {
    min-width: 108px;
}

@media (max-width: 1320px) {
    body.product-card .quote-form-table td:first-child,
    body.product-card .calculator-form table td:first-child {
        width: 162px;
        min-width: 162px;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    body.product-card .quote-form-table td:first-child,
    body.product-card .calculator-form table td:first-child {
        width: auto;
        min-width: 0;
        white-space: normal;
    }
}


/* ========================================================================== 
   Ajuste v12
   - En Résultat, la section technique "Calculs du devis" queda dentro de desplegable.
   - El contenido sigue existiendo, solo aparece al abrirlo.
   ========================================================================== */

.summary-dropdown {
    margin: 18px 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.summary-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 13px 15px;
    color: var(--aps-blue-dark);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(90deg, rgba(0, 91, 170, 0.055), transparent 58%), #fbfdff;
}

.summary-dropdown summary::-webkit-details-marker { display: none; }

.summary-dropdown summary span:first-child {
    line-height: 1.25;
}

.summary-chevron {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    color: var(--aps-blue-dark);
    background: var(--aps-blue-soft);
    border-radius: 999px;
    transition: transform 0.15s ease;
}

.summary-dropdown[open] .summary-chevron {
    transform: rotate(180deg);
}

.summary-dropdown-content {
    padding: 15px;
    color: var(--ink);
    border-top: 1px solid var(--line-soft);
}

.summary-dropdown-content > *:first-child,
.summary-dropdown-content > p:first-of-type,
.summary-dropdown-content > strong:first-of-type {
    margin-top: 0;
}

.summary-dropdown-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

.summary-dropdown-content > *:last-child,
.summary-dropdown-content > div:last-child,
.summary-dropdown-content p:last-child {
    margin-bottom: 0;
}


.summary-content .summary-dropdown h4 {
    margin: 0;
}

/* v13: le panneau Résultat descend normalement avec la page, sans position sticky. */


/* v15: desplegables independientes en el resultado */
.summary-dropdown-payment .payment-content p {
    margin: 0 0 12px;
}

.summary-dropdown-payment .payment-content p:last-child {
    margin-bottom: 0;
}

.summary-dropdown-info summary {
    background: linear-gradient(90deg, rgba(0, 91, 170, 0.045), transparent 58%), #ffffff;
}

/* ==========================================================================
   Ajuste v19
   - La línea separadora del resultado va DESPUÉS de Modalités de paiement.
   - Maquette, Délai y Modalités comparten color informativo.
   - Calculs du devis mantiene color interno/técnico.
   ========================================================================== */

.summary-dropdown-maquette summary,
.summary-dropdown-delay summary,
.summary-dropdown-payment summary,
.summary-dropdown-info summary {
    color: var(--aps-blue-dark);
    background: linear-gradient(90deg, rgba(0, 91, 170, 0.055), transparent 58%), #fbfdff;
}

.summary-dropdown-maquette .summary-chevron,
.summary-dropdown-delay .summary-chevron,
.summary-dropdown-payment .summary-chevron,
.summary-dropdown-info .summary-chevron {
    color: var(--aps-blue-dark);
    background: var(--aps-blue-soft);
}

.summary-dropdown-calculs summary {
    color: #6f4a00;
    background: linear-gradient(90deg, rgba(246, 168, 0, 0.13), transparent 58%), #fffdf7;
}

.summary-dropdown-calculs .summary-chevron {
    color: #7a5200;
    background: var(--aps-orange-soft);
}

.summary-internal-separator {
    height: 1px;
    margin: 20px 0;
    border: 0;
    background: var(--line);
}


/* ========================================================================== 
   Ajuste v21 - Tableau de prix pour site lu depuis la BDD
   ========================================================================== */

.bdd-source-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    color: var(--aps-blue-dark);
    font-size: 0.78rem;
    font-weight: 900;
    background: var(--aps-blue-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.bdd-prix-table th,
.bdd-prix-table td {
    vertical-align: middle;
}


/* ==========================================================================
   Ajuste v29
   - "Source BDD" se imprime directamente dentro del encabezado del resultado,
     a la derecha de "Résumé du devis".
   - Ya no se mueve por JS ni por posición absoluta desde el contenido.
   ========================================================================== */

.panel-summary .summary-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.panel-summary .summary-header-row > div:first-child {
    min-width: 0;
}

.panel-summary .bdd-source-pill-header {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 2px 0 0 auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 91, 170, 0.08);
}

.summary-content > .bdd-source-pill {
    display: none !important;
}

@media (max-width: 760px) {
    .panel-summary .summary-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-summary .bdd-source-pill-header {
        margin-top: 8px !important;
    }
}


/* ==========================================================================
   Ajuste v30
   - Sustituye el logo textual APS por la imagen real ubicada en:
     assets/img/logoAPS.png
   - Mantiene el mismo tamaño visual y el resto de la cabecera igual.
   ========================================================================== */

.brand-logo {
    display: block;
    width: 78px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 78px;
}

.brand-mark {
    display: none !important;
}

/* Step 24 — selector commercial par désignation */
.quote-form-table select optgroup {
    font-weight: 700;
}

.aps-designation-meta {
    font-weight: 500;
    opacity: 0.85;
}

/* Step 25 — selector produit demandé + debug de l'entrée commerciale */
.product-section .aps-product-selector-table {
    table-layout: auto;
    width: 100%;
}

.product-section .aps-product-selector-table td:first-child {
    width: 175px !important;
    min-width: 175px;
    max-width: 175px;
    white-space: nowrap;
    vertical-align: middle;
}

.product-section .aps-product-selector-table td:first-child label {
    white-space: nowrap;
    display: inline-block;
}

.product-section .aps-product-selector-table td[colspan] {
    width: auto;
}

.product-section .aps-product-selector-table select {
    width: 100%;
    min-width: 0;
}

.aps-designation-debug-panel {
    margin-top: 14px;
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .product-section .aps-product-selector-table td:first-child {
        width: 145px !important;
        min-width: 145px;
        max-width: 145px;
    }
}


/* ==========================================================================
   Ajuste step87
   - Labels plus lisibles sans toucher au menu commercial.
   - Quantité et commentaires mieux placés par le PHP.
   ========================================================================== */
@media (min-width: 761px) {
    .legacy-form-output .quote-form-table td:first-child,
    .legacy-form-output table td:first-child {
        width: 172px;
        min-width: 172px;
        white-space: nowrap;
    }

    body.product-scanmail .legacy-form-output .quote-form-table td:first-child,
    body.product-scanmail .legacy-form-output table td:first-child {
        width: 190px;
        min-width: 190px;
    }

    body.product-brochure .legacy-form-output .quote-form-table td:first-child,
    body.product-brochure .legacy-form-output table td:first-child {
        width: 214px;
        min-width: 214px;
    }

    body.product-prospectus .legacy-form-output .quote-form-table td:first-child,
    body.product-prospectus .legacy-form-output table td:first-child {
        width: 190px;
        min-width: 190px;
    }

    body.product-shoparticle .legacy-form-output .quote-form-table td:first-child,
    body.product-shoparticle .legacy-form-output table td:first-child {
        width: 195px;
        min-width: 195px;
    }
}


/* ========================================================================== 
   Ajuste step91
   - Labels plus larges pour éviter les retours à la ligne avant les deux-points.
   - Notes techniques génériques moins présentes visuellement.
   ========================================================================== */
@media (min-width: 761px) {
    .legacy-form-output .quote-form-table td:first-child,
    .legacy-form-output table td:first-child {
        width: 230px;
        min-width: 230px;
        max-width: 230px;
        white-space: nowrap;
        vertical-align: middle;
    }

    body.product-brochure .legacy-form-output .quote-form-table td:first-child,
    body.product-brochure .legacy-form-output table td:first-child,
    body.product-shoparticle .legacy-form-output .quote-form-table td:first-child,
    body.product-shoparticle .legacy-form-output table td:first-child,
    body.product-prospectus .legacy-form-output .quote-form-table td:first-child,
    body.product-prospectus .legacy-form-output table td:first-child,
    body.product-scanmail .legacy-form-output .quote-form-table td:first-child,
    body.product-scanmail .legacy-form-output table td:first-child {
        width: 235px;
        min-width: 235px;
        max-width: 235px;
    }
}

.legacy-form-output .legacy-note-row td {
    font-size: 0.92rem;
}

/* ========================================================================== 
   Ajuste v46 - Devis composé / panier de produits
   - Permet d'ajouter plusieurs produits au même résumé sans toucher les calculs.
   ========================================================================== */

.button-disabled,
.button-disabled:hover {
    color: #ffffff !important;
    background: #9aa9ba !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.82;
}

.quote-flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    color: var(--aps-blue-dark);
    font-weight: 800;
    background: var(--aps-blue-soft);
    border: 1px solid var(--line);
    border-left: 5px solid var(--aps-blue);
    border-radius: 12px;
}

.quote-cart {
    display: grid;
    gap: 18px;
}

.quote-total-card {
    padding: 18px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.quote-total-label {
    margin: 0 0 8px;
    color: var(--aps-blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.summary-content .quote-total-card h2 {
    margin: 0 0 4px;
    color: var(--aps-blue-dark);
    font-size: clamp(1.75rem, 2.6vw, 2.45rem);
    letter-spacing: -0.045em;
}

.summary-content .quote-total-card h3 {
    margin: 0;
    color: #344054;
    font-size: 1rem;
}

.quote-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.summary-content .quote-cart-header h3 {
    margin: 0;
    color: var(--aps-blue-dark);
    font-size: 1.06rem;
}

.quote-inline-form,
.quote-remove-form {
    margin: 0;
}

.quote-clear-button,
.quote-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 900;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.quote-clear-button {
    color: #7a5200;
    background: var(--aps-orange-soft);
    border: 1px solid #f1d485;
}

.quote-clear-button:hover {
    color: #ffffff;
    background: var(--aps-orange);
    border-color: var(--aps-orange);
}

.quote-items-list {
    display: grid;
    gap: 16px;
}

.quote-item-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--aps-blue);
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(24, 45, 74, 0.055);
}

.quote-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    background: #fbfdff;
    border-bottom: 1px solid var(--line-soft);
}

.quote-item-eyebrow {
    margin: 0 0 5px;
    color: var(--aps-blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.summary-content .quote-item-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
}

.quote-item-category {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.quote-item-total {
    display: grid;
    justify-items: end;
    gap: 1px;
    min-width: 92px;
    color: var(--aps-blue-dark);
}

.quote-item-total strong {
    font-size: 1.05rem;
    line-height: 1.1;
}

.quote-item-total span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.quote-item-body {
    padding: 15px 16px 6px;
}

.quote-item-body > h2:first-child {
    margin-bottom: 4px;
    font-size: 1.18rem;
}

.quote-item-body > h3:first-of-type {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.quote-item-body .summary-dropdown {
    margin: 12px 0;
}

.quote-item-body .summary-dropdown summary {
    min-height: 42px;
    padding: 10px 12px;
}

.quote-item-body .summary-dropdown-content {
    padding: 12px;
}

.quote-remove-form {
    padding: 0 16px 15px;
}

.quote-remove-button {
    color: var(--aps-red);
    background: #fff7f7;
    border: 1px solid #ffd1d1;
}

.quote-remove-button:hover {
    color: #ffffff;
    background: var(--aps-red);
    border-color: var(--aps-red);
}

.quote-current-preview {
    margin: 18px 0 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.quote-current-preview summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 13px 15px;
    color: var(--aps-blue-dark);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(90deg, rgba(0, 91, 170, 0.045), transparent 58%), #ffffff;
}

.quote-current-preview summary::-webkit-details-marker { display: none; }

.quote-current-preview[open] .summary-chevron {
    transform: rotate(180deg);
}

.quote-current-preview-content {
    padding: 15px;
    border-top: 1px solid var(--line-soft);
}

.quote-current-preview-content > h2:first-child {
    font-size: 1.2rem;
}

@media (max-width: 760px) {
    .quote-cart-header,
    .quote-item-header {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-item-total {
        justify-items: start;
    }
}

/* ========================================================================== 
   Ajuste step95 - Accueil plus propre + lignes de devis plus compactes
   ========================================================================== */

.aps-home-output {
    overflow: visible;
}

.aps-home-card {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(0, 91, 170, 0.10), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.aps-home-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 5px 11px;
    color: var(--aps-blue-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--aps-blue-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.aps-home-card h3 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}

.aps-home-card p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.aps-home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.aps-home-steps span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--aps-blue-dark);
    font-size: 0.86rem;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
}

.aps-home-steps strong {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #ffffff;
    font-size: 0.78rem;
    background: var(--aps-blue);
    border-radius: 999px;
    flex: 0 0 auto;
}

.summary-empty-home {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(246, 168, 0, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.summary-empty-eyebrow {
    margin: 0 0 9px;
    color: var(--aps-blue);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.summary-content .summary-empty-home h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.22rem;
}

.summary-empty-home p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.quote-item-body {
    padding-top: 13px;
}

.quote-item-body > hr:first-child {
    display: none;
}

@media (max-width: 760px) {
    .aps-home-steps {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== 
   Ajuste step96 - Accueil: devis composé dans la zone principale
   ========================================================================== */

.aps-home-output {
    overflow: visible;
}

.aps-home-quote-board {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.aps-home-quote-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.aps-home-quote-head .eyebrow {
    margin: 0 0 4px;
}

.aps-home-quote-head h3 {
    margin: 0;
    color: var(--aps-blue-dark);
    font-size: 1.16rem;
    letter-spacing: -0.015em;
}

.aps-home-quote-empty {
    padding: 18px;
    color: var(--muted);
    background: #f8fbff;
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.aps-home-quote-empty h4 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1rem;
}

.aps-home-quote-empty p {
    max-width: 620px;
    margin: 0;
    line-height: 1.5;
}

.quote-items-list-wide {
    gap: 18px;
}

.aps-home-quote-board .quote-item-card {
    box-shadow: 0 6px 16px rgba(24, 45, 74, 0.06);
}

.aps-home-quote-board .quote-item-header {
    padding: 16px 18px;
}

.aps-home-quote-board .quote-item-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.aps-home-quote-board .quote-item-body {
    padding: 16px 18px 8px;
}

.aps-home-quote-board .quote-remove-form {
    padding: 0 18px 16px;
}

.summary-home-total {
    padding: 18px 0 4px;
}

.summary-content .summary-home-total h2 {
    margin: 0 0 6px;
    color: var(--aps-blue-dark);
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.summary-content .summary-home-total h3 {
    margin: 0;
    color: #344054;
    font-size: 0.98rem;
}

.summary-home-note {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 760px) {
    .aps-home-quote-head {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================================================== 
   Ajuste step97 - Accueil: lignes directes + descriptions à droite
   ========================================================================== */

.options-section-home {
    padding-top: 18px;
}

.options-section-home .aps-home-output {
    margin-top: 0;
}

.aps-home-quote-board-direct {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.aps-home-quote-tools {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.aps-home-quote-board-direct .aps-home-quote-empty {
    padding: 18px;
    background: #f8fbff;
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.home-product-descriptions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.home-product-descriptions > h2 {
    margin: 0 0 12px;
    color: var(--aps-blue-dark);
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}

.home-product-descriptions .summary-dropdown {
    margin: 9px 0;
}

.home-product-descriptions .summary-dropdown:first-of-type {
    margin-top: 0;
}

.home-product-descriptions .summary-dropdown summary {
    min-height: 42px;
    padding: 10px 12px;
}

.home-product-descriptions .summary-dropdown-content {
    padding: 12px;
}

/* ========================================================================== 
   Ajuste step98 - Accueil: bouton vider en bas + total plus compact
   ========================================================================== */

.summary-content-home {
    padding-top: 14px;
}

.summary-content-home .summary-home-total {
    padding-top: 0;
}

.aps-home-quote-tools-bottom {
    justify-content: flex-end;
    margin: 12px 0 0;
}

/* ========================================================================== 
   Ajuste step99 - Cartes de produits plus compactes + infos historiques
   ========================================================================== */

.quote-item-body {
    padding-top: 8px;
}

.quote-item-body > div,
.quote-item-body > section {
    margin-top: 0;
}

.quote-item-body h4:first-child,
.quote-item-body div > h4:first-child,
.quote-item-body section > h4:first-child {
    margin-top: 0;
}

.quote-item-body > div:first-child > br:first-child,
.quote-item-body > section:first-child > br:first-child {
    display: none;
}

.aps-home-quote-board .quote-item-body {
    padding-top: 10px;
}

.quote-item-body .summary-dropdown-info,
.quote-item-body .summary-dropdown-payment,
.quote-item-body .summary-dropdown-calculs {
    margin-top: 10px;
    margin-bottom: 10px;
}

.quote-item-body .summary-dropdown-info:first-child,
.quote-item-body .summary-dropdown-payment:first-child,
.quote-item-body .summary-dropdown-calculs:first-child:first-child {
    margin-top: 0;
}

/* ========================================================================== 
   Ajuste step100 - Copie du devis + Résultat sans bouton Vider
   ========================================================================== */
.quote-total-topline,
.quote-total-card .quote-total-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.quote-copy-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--aps-blue-dark);
    background: var(--aps-blue-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.quote-copy-button:hover,
.quote-copy-button.is-copied {
    color: #ffffff;
    background: var(--aps-blue);
    border-color: var(--aps-blue);
    transform: translateY(-1px);
}

.quote-copy-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quote-cart-header .quote-copy-button {
    flex: 0 0 auto;
}

.aps-copy-source {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ========================================================================== 
   Ajuste step101 - Copie du descriptif Tiime + informations générales accueil
   ========================================================================== */
.quote-item-side {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 8px;
    min-width: 92px;
}

.quote-item-side .quote-copy-button {
    width: 30px;
    height: 30px;
}

.quote-item-side .quote-copy-button svg {
    width: 14px;
    height: 14px;
}

.home-general-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.home-general-info > h2 {
    margin: 0 0 12px;
    color: var(--aps-blue-dark);
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}

.home-general-info .summary-dropdown {
    margin: 9px 0;
}

.home-general-info .summary-dropdown:first-of-type {
    margin-top: 0;
}

.home-general-info .summary-dropdown summary {
    min-height: 42px;
    padding: 10px 12px;
}

.home-general-info .summary-dropdown-content {
    padding: 12px;
}

@media (max-width: 760px) {
    .quote-item-side {
        width: 100%;
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: end;
    }
}

/* ========================================================================== 
   Ajuste step102 - Copie descriptif par lignes + infos utiles visibles
   ========================================================================== */
.home-general-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.home-general-info > h2 {
    margin: 0 0 12px;
    color: #6f4a00;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.home-general-info .summary-dropdown {
    margin: 9px 0;
    border-color: rgba(246, 168, 0, 0.36);
    background: #fffdf7;
}

.home-general-info .summary-dropdown:first-of-type {
    margin-top: 0;
}

.home-general-info .summary-dropdown summary,
.home-general-info .summary-dropdown-maquette summary,
.home-general-info .summary-dropdown-delay summary,
.home-general-info .summary-dropdown-payment summary,
.home-general-info .summary-dropdown-info summary {
    min-height: 42px;
    padding: 10px 12px;
    color: #6f4a00;
    background: linear-gradient(90deg, rgba(246, 168, 0, 0.14), transparent 58%), #fffdf7;
}

.home-general-info .summary-dropdown .summary-chevron,
.home-general-info .summary-dropdown-maquette .summary-chevron,
.home-general-info .summary-dropdown-delay .summary-chevron,
.home-general-info .summary-dropdown-payment .summary-chevron,
.home-general-info .summary-dropdown-info .summary-chevron {
    color: #7a5200;
    background: var(--aps-orange-soft);
}

.home-general-info .summary-dropdown-content {
    padding: 12px;
    border-top-color: rgba(246, 168, 0, 0.24);
}

/* ========================================================================== 
   Ajuste step103 - Informations utiles depuis les textes PHP historiques
   ========================================================================== */
.home-general-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.home-general-info > h2 {
    margin: 0 0 12px;
    color: #6f4a00;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.home-general-info .summary-dropdown {
    margin: 9px 0;
    border-color: rgba(246, 168, 0, 0.38);
    background: #fffdf7;
}

.home-general-info .summary-dropdown summary,
.home-general-info .summary-dropdown-maquette summary,
.home-general-info .summary-dropdown-delay summary,
.home-general-info .summary-dropdown-payment summary,
.home-general-info .summary-dropdown-info summary {
    min-height: 42px;
    padding: 10px 12px;
    color: #6f4a00;
    background: linear-gradient(90deg, rgba(246, 168, 0, 0.15), transparent 58%), #fffdf7;
}

.home-general-info .summary-dropdown .summary-chevron,
.home-general-info .summary-dropdown-maquette .summary-chevron,
.home-general-info .summary-dropdown-delay .summary-chevron,
.home-general-info .summary-dropdown-payment .summary-chevron,
.home-general-info .summary-dropdown-info .summary-chevron {
    color: #7a5200;
    background: var(--aps-orange-soft);
}

.home-general-info .summary-dropdown-content {
    padding: 14px 14px 15px;
    color: var(--text);
    line-height: 1.55;
    border-top-color: rgba(246, 168, 0, 0.25);
}

.home-general-info .summary-dropdown-content p {
    margin: 0 0 14px;
}

.home-general-info .summary-dropdown-content p:last-child {
    margin-bottom: 0;
}

.home-general-info .summary-dropdown-content strong {
    color: #3a2a00;
    font-weight: 900;
}
