/*
 * Feuille de style du parcours de souscription (subscribe.php et pages de retour) : theme vert Neolis.
 */
:root {
    --neolis-green-900: #0d3b25;
    --neolis-green-800: #145536;
    --neolis-green-700: #1b6e46;
    --neolis-green-600: #228a58;
    --neolis-green-500: #2ba86c;
    --neolis-green-100: #e3f5ea;
    --neolis-green-50:  #f2faf5;
    --neolis-grey-600:  #5a6b62;
    --neolis-grey-300:  #cfe0d6;
    --neolis-danger:    #c0392b;
    --neolis-white:     #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, var(--neolis-green-50) 0%, #ffffff 260px);
    color: #1c2a22;
}

.neolis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5vw;
}

.neolis-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neolis-green-800);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.neolis-logo span {
    color: var(--neolis-green-500);
}

.neolis-logo-img {
    display: block;
    height: 42px;
    width: auto;
}

.neolis-tagline {
    font-size: 0.85rem;
    background: var(--neolis-green-100);
    color: var(--neolis-green-800);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.neolis-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.neolis-offer-title {
    text-align: center;
    margin: 10px 0 4px;
    color: var(--neolis-green-900);
    font-size: 1.6rem;
}

.neolis-offer-subtitle {
    text-align: center;
    margin: 0 0 32px;
    color: var(--neolis-grey-600);
    font-size: 0.95rem;
}

.neolis-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.neolis-progress .step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--neolis-white);
    border: 2px solid var(--neolis-grey-300);
    color: var(--neolis-grey-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.neolis-progress .step-dot.active {
    background: var(--neolis-green-600);
    border-color: var(--neolis-green-600);
    color: var(--neolis-white);
}

.neolis-progress .step-dot.done {
    background: var(--neolis-green-100);
    border-color: var(--neolis-green-500);
    color: var(--neolis-green-700);
}

.neolis-progress .step-line {
    width: 40px;
    height: 2px;
    background: var(--neolis-grey-300);
}

.neolis-card {
    background: var(--neolis-white);
    border: 1px solid var(--neolis-green-100);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(20, 85, 54, 0.06);
}

.neolis-step-panel h2 {
    margin-top: 0;
    color: var(--neolis-green-900);
    font-size: 1.15rem;
}

.neolis-field {
    margin-bottom: 20px;
}

.neolis-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--neolis-green-900);
    font-size: 0.92rem;
}

.neolis-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--neolis-green-500);
    background: var(--neolis-green-50);
    color: var(--neolis-green-700);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

.neolis-info-panel {
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--neolis-green-50);
    border: 1px solid var(--neolis-green-100);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #1c2a22;
}

.neolis-info-panel p {
    margin: 0 0 8px;
}

.neolis-info-panel p:last-child {
    margin-bottom: 0;
}

.neolis-field input[type="email"],
.neolis-field input[type="number"],
.neolis-field input[type="text"],
.neolis-field input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--neolis-grey-300);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.neolis-field input:focus {
    border-color: var(--neolis-green-500);
}

.neolis-formule-toggle {
    display: flex;
    gap: 8px;
    background: var(--neolis-green-50);
    border: 1px solid var(--neolis-green-100);
    border-radius: 10px;
    padding: 5px;
}

.neolis-formule-toggle .formule-option,
.neolis-formule-toggle .periode-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--neolis-green-800);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.neolis-formule-toggle .formule-option.active,
.neolis-formule-toggle .periode-option.active {
    background: var(--neolis-green-600);
    color: #fff;
}

.formule-option-price {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.neolis-site-card {
    background: var(--neolis-green-50);
    border: 1px solid var(--neolis-green-100);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.neolis-site-card h3 {
    margin: 0 0 10px;
    color: var(--neolis-green-900);
    font-size: 1rem;
}

.neolis-site-materiel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
}

.neolis-site-materiel-row label {
    font-size: 0.88rem;
    color: #1c2a22;
}

.neolis-site-materiel-row input {
    width: 70px;
    padding: 7px 8px;
    border-radius: 8px;
    border: 1.5px solid var(--neolis-grey-300);
    text-align: center;
}

.neolis-lignes-recap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--neolis-green-900);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
}

.neolis-lignes-recap .recap-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

.neolis-lignes-recap .recap-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.neolis-sda-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--neolis-green-50);
    border: 1px solid var(--neolis-green-100);
    border-radius: 10px;
    margin-bottom: 10px;
}

.neolis-sda-row .sda-index {
    font-weight: 700;
    color: var(--neolis-green-700);
    width: 26px;
}

.neolis-sda-row select {
    flex: 1;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--neolis-grey-300);
}

.neolis-sda-row .sda-price {
    min-width: 90px;
    text-align: right;
    font-weight: 600;
    color: var(--neolis-green-700);
    font-size: 0.88rem;
}

.neolis-sda-row .sda-remove {
    background: none;
    border: none;
    color: var(--neolis-danger);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px 8px;
}

.neolis-add-sda {
    background: none;
    border: 1.5px dashed var(--neolis-green-500);
    color: var(--neolis-green-700);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
}

.neolis-add-sda:hover {
    background: var(--neolis-green-100);
}

.neolis-total {
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--neolis-green-900);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.neolis-total .label {
    font-size: 0.9rem;
    opacity: 0.85;
}

.neolis-total .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.neolis-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--neolis-green-50);
    border: 1px solid var(--neolis-green-100);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--neolis-grey-600);
    cursor: pointer;
}

.neolis-checkbox-row input {
    margin-top: 2px;
    flex-shrink: 0;
}

.neolis-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.neolis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.05s ease, background 0.15s ease;
}

.neolis-btn-primary {
    background: var(--neolis-green-600);
    color: #fff;
    flex: 1;
}

.neolis-btn-primary:hover {
    background: var(--neolis-green-700);
}

.neolis-btn-primary:disabled {
    background: var(--neolis-grey-300);
    cursor: not-allowed;
}

.neolis-btn-secondary {
    background: var(--neolis-white);
    color: var(--neolis-green-700);
    border: 1.5px solid var(--neolis-green-300, var(--neolis-grey-300));
}

.neolis-test-banner {
    background: #fff6da;
    color: #8a6d00;
    border: 1px solid #f0dd8f;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.neolis-error {
    background: #fdecea;
    color: var(--neolis-danger);
    border: 1px solid #f5c6c2;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: none;
}

.neolis-error.visible {
    display: block;
}

.neolis-hint {
    font-size: 0.8rem;
    color: var(--neolis-grey-600);
    margin-top: -12px;
    margin-bottom: 18px;
}

.neolis-poste-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.neolis-poste-img {
    width: 90px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--neolis-green-100);
    flex-shrink: 0;
}

.neolis-poste-info {
    flex: 1;
    min-width: 0;
}

.neolis-poste-description {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--neolis-grey-600);
}

.neolis-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: neolis-spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: -3px;
}

@keyframes neolis-spin {
    to { transform: rotate(360deg); }
}

[hidden] {
    display: none !important;
}

.neolis-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 59, 37, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.neolis-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.neolis-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--neolis-green-900);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.neolis-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.neolis-modal-iframe {
    flex: 1;
    border: none;
    width: 100%;
    min-height: 60vh;
}

.neolis-tarifs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.neolis-tarifs-table th,
.neolis-tarifs-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--neolis-green-100);
}

.neolis-tarifs-table th {
    color: var(--neolis-green-900);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.neolis-tarifs-table td {
    font-size: 0.95rem;
    color: #1c2a22;
}

.neolis-tarifs-table tbody tr:last-child td {
    border-bottom: none;
}
