/* ==========================================================
   DeliverFit funnel page — CSS propre et consolidé
   ========================================================== */

body.page-id-6431 {
    padding-top: 0 !important;
}

/* 01. Page shell */
.aidf-funnel {
    --df-green: #1a9e4f;
    --df-green-dark: #0d6e32;
    --df-green-light: #e8f7ee;
    --df-ink: #111827;
    --df-muted: #6b7280;
    --df-soft: #f9fafb;
    --df-line: #e5e7eb;
    --df-bg: #f3f4f6;

    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 10px;
    border-radius: 14px;
    background: var(--df-bg);
    color: var(--df-ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.aidf-funnel *,
.aidf-funnel *::before,
.aidf-funnel *::after {
    box-sizing: border-box;
    margin: 0;
}

.aidf-funnel button,
.aidf-funnel input {
    font: inherit;
}

/* 02. Brand header */
.aidf-funnel-brand {
    padding: 14px 22px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--df-line);
    border-radius: 10px 10px 0 0;
    background: #fff;
}

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

.aidf-funnel-logo {
    height: 38px;
    width: auto;
    display: block;
}

/* 03. Deux colonnes : questions | calculateur */
.aidf-funnel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

/* ── Colonne gauche : stepper ── */
.aidf-funnel-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--df-line);
    border-radius: 12px;
    overflow: hidden;
    min-height: 520px;
}

/* En-tête de progression */
.aidf-stepper-head {
    display: grid;
    gap: 8px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--df-line);
}

.aidf-stepper-label {
    color: var(--df-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.aidf-stepper-label strong {
    color: var(--df-green);
    font-weight: 800;
}

.aidf-stepper-bar {
    height: 4px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
}

.aidf-stepper-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--df-green);
    transition: width 0.35s ease;
}

/* Formulaire stepper */
.aidf-stepper-form {
    flex: 1;
    padding: 28px 24px 16px;
}

/* Steps */
.aidf-step {
    display: none;
    animation: aidf-fadeIn 0.2s ease;
}

.aidf-step.is-active {
    display: block;
}

@keyframes aidf-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aidf-step-title {
    margin-bottom: 24px;
    color: #111827;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.aidf-step-title strong {
    color: var(--df-green);
}

/* Navigation */
.aidf-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--df-line);
    margin-top: 8px;
}

.aidf-nav-prev {
    padding: 12px 20px;
    border: 1.5px solid var(--df-line);
    border-radius: 10px;
    background: #fff;
    color: var(--df-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.aidf-nav-prev:hover {
    border-color: #b0d9c0;
    color: var(--df-green-dark);
}

.aidf-nav-next {
    flex: 1;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #16a34a, #00843d);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.15s;
    box-shadow: 0 4px 14px rgba(26,158,79,.3);
}

.aidf-nav-next:hover { opacity: .92; }

/* CTA final — caché par défaut, affiché uniquement après la dernière question */
.aidf-funnel-cta[hidden] { display: none !important; }
.aidf-funnel-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 24px 32px;
    text-align: center;
    animation: aidf-fadeIn 0.3s ease;
}

.aidf-cta-intro {
    color: var(--df-muted);
    font-size: 14px;
    line-height: 1.6;
}

.aidf-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 380px;
    padding: 16px 28px;
    border-radius: 12px;
    background: linear-gradient(180deg, #16a34a, #00843d);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(26,158,79,.35);
    transition: opacity 0.15s;
}

.aidf-cta-btn:hover { opacity: .92; color: #fff; }

.aidf-cta-note {
    color: #9ca3af;
    font-size: 12px;
}

/* 04. Champs numériques libres */
.aidf-number-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0 6px;
}

.aidf-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.aidf-num-input {
    width: 160px;
    padding: 12px 16px;
    border: 2px solid var(--df-line);
    border-radius: 12px;
    background: #f9fafb;
    color: var(--df-green);
    text-align: center;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    transition: border-color 0.15s, background 0.15s;
    -moz-appearance: textfield;
}

.aidf-num-input::-webkit-inner-spin-button,
.aidf-num-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.aidf-num-input:focus {
    outline: none;
    border-color: var(--df-green);
    background: #f0faf4;
}

.aidf-num-input.aidf-input-error {
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
}

.aidf-num-unit {
    color: var(--df-muted);
    font-size: 22px;
    font-weight: 700;
    min-width: 36px;
}

.aidf-num-hint {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

/* ── Colonne droite : calculateur ── */
.aidf-funnel-right {
    position: sticky;
    top: 20px;
}

.aidf-calc-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px 24px 24px;
    border: 1px solid var(--df-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

/* Overlay loader */
.aidf-calc-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(10,16,32,0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: inherit;
}

.aidf-calc-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #d1fae5;
    border-top-color: var(--df-green);
    border-radius: 50%;
    animation: aidf-spin 0.7s linear infinite;
}

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

.aidf-calc-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--df-green);
    letter-spacing: .03em;
}

/* Badge */
.aidf-calc-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 11px;
    border: 1px solid #d1fae5;
    border-radius: 7px;
    background: #ecfdf5;
    color: var(--df-green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Donut + macros côte à côte */
.aidf-calc-top {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Projection */
.aidf-calc-projection {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--df-line);
    border-radius: 10px;
}

.aidf-proj-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: start;
    gap: 10px;
}

.aidf-proj-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 2px;
    border-radius: 8px;
    background: #f0faf4;
    font-size: 14px;
}

.aidf-proj-row small {
    display: block;
    margin-bottom: 2px;
    color: var(--df-green);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aidf-proj-row strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.aidf-proj-row em {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

/* Features liste */
.aidf-calc-features {
    display: grid;
    gap: 8px;
}

.aidf-calc-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--df-line);
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.aidf-calc-feature span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--df-green);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

/* 05. Sex cards */
.aidf-sex-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.aidf-sex-grid button {
    display: grid;
    overflow: hidden;
    border: 1.5px solid var(--df-line);
    border-radius: 10px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.15s;
}

.aidf-sex-grid button.is-active {
    border-color: var(--df-green);
    box-shadow: 0 0 0 1px rgba(26, 158, 79, .15);
}

.aidf-sex-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.35;
    object-fit: cover;
    object-position: center top;
}

.aidf-sex-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 0;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.aidf-sex-grid button.is-active span {
    color: var(--df-green-dark);
}

.aidf-sex-grid span::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
}

.aidf-sex-grid button.is-active span::before {
    border-color: var(--df-green);
    background: var(--df-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* 06. Range controls */
.aidf-range-card {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 10px 0;
}

.aidf-range-card strong {
    display: block;
    color: var(--df-green);
    text-align: center;
    font-size: clamp(52px, 5vw, 72px);
    line-height: 1;
    font-weight: 900;
}

.aidf-range-card small {
    display: block;
    margin-top: -4px;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.aidf-range-card input[type="range"] {
    width: 100%;
    height: 4px;
    accent-color: var(--df-green);
    cursor: pointer;
}

.aidf-range-card .range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: -4px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
}

.aidf-range-card [data-aidf-range-current] {
    color: var(--df-green);
    font-weight: 800;
}

/* 07. Option lists */
.aidf-option-list {
    display: grid;
    gap: 8px;
}

.aidf-option-list button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid var(--df-line);
    border-radius: 10px;
    background: #fff;
    color: #374151;
    text-align: left;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.aidf-option-list button:hover {
    border-color: #b0d9c0;
    background: #f9fdfb;
}

.aidf-option-list button.is-active {
    border-color: var(--df-green);
    background: #f0faf4;
    color: var(--df-green-dark);
    box-shadow: 0 0 0 1px rgba(26, 158, 79, .15);
}

.aidf-option-list button.is-active::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--df-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M8 13.5L4.5 10l1-1L8 11.5l6.5-6.5 1 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.aidf-option-list span.icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 16px;
}

/* 08. Result section */
.aidf-funnel-result {
    display: grid;
    grid-template-columns: 200px 180px minmax(340px, 1fr) minmax(460px, 1.15fr) 250px;
    align-items: stretch;
    gap: 24px;
    min-height: 260px;
    padding: 0 0 0 26px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid var(--df-line);
    border-radius: 12px;
    background: #fff;
}

.aidf-result-ring,
.aidf-result-macros,
.aidf-result-copy,
.aidf-result-features {
    align-self: center;
}

/* Donut ring */
.aidf-result-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    text-align: center;
}

.aidf-result-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.aidf-result-ring circle {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
}

.aidf-result-ring .bg-circle {
    stroke: #f0f0f0;
}

.aidf-result-ring .is-protein {
    stroke: #22c55e;
    stroke-dasharray: 106 365;
    stroke-dashoffset: 0;
}

.aidf-result-ring .is-carbs {
    stroke: #f59e0b;
    stroke-dasharray: 230 365;
    stroke-dashoffset: -112;
}

.aidf-result-ring .is-fat {
    stroke: #8b5cf6;
    stroke-dasharray: 88 365;
    stroke-dashoffset: -346;
}

.aidf-result-ring-inner {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 2px;
}

.aidf-result-ring-inner strong {
    color: #111827;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.aidf-result-ring-inner span {
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aidf-result-ring-inner small {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 500;
}

/* Macros */
.aidf-result-macros {
    display: grid;
    gap: 18px;
}

.aidf-result-macros .macro-row {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 10px;
}

.aidf-result-macros .macro-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.aidf-result-macros .macro-dot.is-protein {
    background: #22c55e;
}

.aidf-result-macros .macro-dot.is-carbs {
    background: #f59e0b;
}

.aidf-result-macros .macro-dot.is-fat {
    background: #8b5cf6;
}

.aidf-result-macros .macro-body {
    display: grid;
    gap: 2px;
}

.aidf-result-macros .macro-grams {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.aidf-result-macros .macro-grams span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.aidf-result-macros .macro-name {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.aidf-result-macros .macro-pct {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0faf4;
    color: var(--df-green-dark);
    font-size: 12px;
    font-weight: 800;
}

/* Result copy */
.aidf-result-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 22px;
}

.aidf-result-copy>.result-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #ecfdf5;
    color: var(--df-green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aidf-result-copy h2 {
    margin-bottom: 8px;
    color: #111827;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.aidf-result-copy h2 strong {
    color: var(--df-green);
}

.aidf-result-copy>.result-intro {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 13px;
}

.aidf-result-detected {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--df-line);
    border-radius: 10px;
}

.aidf-result-detected .detected-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: start;
    gap: 10px;
}

.aidf-result-detected .detected-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 2px;
    border-radius: 8px;
    background: #f0faf4;
    font-size: 14px;
}

.aidf-result-detected small {
    display: block;
    margin-bottom: 2px;
    color: var(--df-green);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aidf-result-detected strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.aidf-result-detected em {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

/* Result features */
.aidf-result-features {
    width: 100%;
}

.aidf-result-features h3 {
    margin-bottom: 14px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.aidf-result-features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}

.aidf-result-features .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 128px;
    min-height: 128px;
    padding: 14px 10px;
    overflow: hidden;
    border: 1px solid var(--df-line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.aidf-result-features .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
}

.aidf-result-features .feature-icon img {
    display: block;
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.aidf-result-features .feature-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: #111827;
    text-align: center;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

/* Result image */
.aidf-result-image {
    display: block;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: none;
    border-radius: 0 12px 12px 0;
    object-fit: cover;
    object-position: 34% center;
}


/* 09. Pricing section */
.aidf-funnel-pricing {
    padding: 28px 26px 24px;
    border: 1px solid var(--df-line);
    border-radius: 12px;
    background: #fff;
}

.aidf-pricing-head {
    margin-bottom: 24px;
    text-align: center;
}

.aidf-pricing-head h2 {
    margin-bottom: 6px;
    color: #111827;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.aidf-pricing-head p {
    color: #9ca3af;
    font-size: 13px;
}

.aidf-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.aidf-price-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 20px;
    min-height: 215px;
    padding: 50px 24px 22px;
    border: 1.5px solid var(--df-line);
    border-radius: 12px;
    background: #fff;
}

.aidf-price-card.is-featured {
    border-color: var(--df-green);
    box-shadow: 0 0 0 1px rgba(26, 158, 79, .08);
}

.aidf-price-card>b {
    position: absolute;
    top: -1px;
    left: 50%;
    min-width: 150px;
    padding: 8px 22px;
    transform: translateX(-50%);
    border-radius: 0 0 8px 8px;
    background: #16a34a;
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.aidf-price-content {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

.aidf-price-left {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.aidf-price-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0faf4;
}

.aidf-price-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.aidf-price-main>span {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aidf-price-main h3 {
    margin-bottom: 6px;
    color: #111827;
    font-size: 42px;
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.04em;
}

.aidf-price-main h3.aidf-price-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 6px;
    color: #111827;
    line-height: 1;
    letter-spacing: normal;
}

.aidf-price-main h3.aidf-price-value>span {
    display: inline-block;
    margin: 0;
    color: #111827;
    font-size: 52px;
    line-height: .9;
    font-weight: 700;
    letter-spacing: -.04em;
    text-transform: none;
}

.aidf-price-main h3.aidf-price-value small {
    color: #374151;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: normal;
    white-space: nowrap;
}

.aidf-price-main p {
    color: #374151;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
}

.aidf-price-main p strong {
    font-weight: 700;
}

.aidf-price-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin: 0;
    padding: 0;
}

.aidf-price-features li {
    position: relative;
    list-style: none;
    padding-left: 24px;
    color: #374151;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 500;
}

.aidf-price-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='white' d='M5.4 9.6L2.5 6.7l1-1 1.9 1.9 5.1-5.1 1 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.aidf-price-card.is-featured .aidf-price-features {
    align-content: center;
}

/* Évolutif : seulement 2 puces comme la maquette */
.aidf-price-card.is-featured .aidf-price-features-evolutive {
    grid-template-columns: 1fr !important;
    max-width: 360px;
    gap: 16px !important;
}

.aidf-price-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    border-radius: 7px;
    background: linear-gradient(180deg, #16a34a, #00843d);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: opacity 0.15s;
}

.aidf-price-cta::after {
    content: "→";
    font-size: 18px;
    font-weight: 500;
}

.aidf-price-cta:hover {
    opacity: .92;
}

/* 10. Payment row */
.aidf-payment-row {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(100px, .65fr)) 1.3fr;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.aidf-payment-row .pay-trust {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--df-line);
    border-radius: 10px;
    background: #fff;
}

.aidf-payment-row .pay-trust .trust-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aidf-payment-row .pay-trust .trust-icon {
    color: var(--df-green);
    font-size: 18px;
}

.aidf-payment-row .pay-trust strong {
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aidf-payment-row .pay-trust small {
    color: #9ca3af;
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 500;
}

.aidf-payment-row .pay-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--df-line);
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.aidf-payment-row .pay-method-logo {
    min-height: 64px;
    padding: 12px 18px;
}

.aidf-payment-row .pay-method-logo img {
    display: block;
    width: auto;
    max-width: 110px;
    height: 53px;
    object-fit: contain;
}

.aidf-payment-row .pay-method-card {
    gap: 8px;
}

.aidf-payment-row .pay-method-card img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.aidf-payment-row .pay-method-card span {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

/* ── 11. Panneau droit enrichi — MODE SOMBRE ── */

.aidf-calc-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: linear-gradient(160deg, #0a1020 0%, #0a2118 100%);
    overflow: hidden;
}

/* En-tête */
.aidf-cp-hd {
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
}

.aidf-cp-hd-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.aidf-cp-star {
    color: #f59e0b;
    font-size: 14px;
}

.aidf-cp-hd-title {
    font-size: 12px;
    font-weight: 900;
    color: #34d975;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aidf-cp-hd-sub {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    font-weight: 500;
}

/* Objectif détecté */
.aidf-cp-goal-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(30,184,90,.08);
}

.aidf-cp-goal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
}

.aidf-cp-goal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.aidf-cp-goal-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.aidf-cp-goal-lbl {
    font-size: 9px;
    font-weight: 900;
    color: #34d975;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.aidf-cp-goal-body strong {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.aidf-cp-goal-body em {
    font-size: 11px;
    font-style: normal;
    color: rgba(255,255,255,.5);
}

/* Projection */
.aidf-cp-proj-block {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aidf-cp-proj-lbl {
    font-size: 9px;
    font-weight: 900;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.aidf-cp-proj-val {
    font-size: 17px;
    font-weight: 900;
    color: #34d975;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.aidf-cp-proj-target {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    font-weight: 500;
}

/* Section label */
.aidf-cp-sec-lbl {
    display: block;
    margin-bottom: 10px;
    font-size: 9px;
    font-weight: 900;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Aperçu du plan */
.aidf-cp-plan-block {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.aidf-cp-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.aidf-cp-kcal-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aidf-cp-kcal-icon {
    font-size: 24px;
    line-height: 1;
}

.aidf-cp-kcal-lbl {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    margin-bottom: 2px;
}

.aidf-cp-kcal-val {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.aidf-cp-kcal-val strong {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.aidf-cp-kcal-val span {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    font-weight: 700;
}

/* Donut compact */
.aidf-result-ring--compact {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0;
}

.aidf-calc-panel .aidf-result-ring .bg-circle {
    stroke: rgba(255,255,255,.12);
}

/* Macros grid */
.aidf-cp-macros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.aidf-cp-macro-cell {
    padding: 8px 6px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    text-align: center;
}

.aidf-cp-macro-grams {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1px;
}

.aidf-cp-macro-grams strong {
    color: #fff;
}

.aidf-cp-macro-name {
    font-size: 9px;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    margin-bottom: 3px;
}

.aidf-cp-macro-pct {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.aidf-cp-macro-pct.is-protein { background: rgba(52,217,117,.2);  color: #34d975; }
.aidf-cp-macro-pct.is-carbs   { background: rgba(251,191,36,.15); color: #fbbf24; }
.aidf-cp-macro-pct.is-fat     { background: rgba(167,139,250,.15); color: #a78bfa; }

/* Repas */
.aidf-cp-meals-block {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.aidf-cp-meals-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 7px;
}

.aidf-cp-meal-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    border-radius: 8px;
}

.aidf-cp-meal-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.aidf-cp-meal-item span {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    line-height: 1.3;
    text-align: center;
}

.aidf-cp-meals-sub {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-align: center;
    font-weight: 500;
}

/* Ce qu'on adapte */
.aidf-cp-adapts-block {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aidf-cp-adapt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
}

.aidf-cp-check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--df-green);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

/* Preuve sociale */
.aidf-cp-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.aidf-cp-avatars {
    display: flex;
}

.aidf-cp-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #0a1020;
    object-fit: cover;
    margin-left: -6px;
    flex-shrink: 0;
}

.aidf-cp-avatars .aidf-cp-avatar:first-child {
    margin-left: 0;
}

.aidf-cp-stars {
    font-size: 11px;
    color: #facc15;
    font-weight: 700;
    margin-bottom: 1px;
}

.aidf-cp-stars strong {
    color: #fff;
}

.aidf-cp-users {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    font-weight: 600;
}

/* Barre de personnalisation */
.aidf-cp-perso-bar {
    padding: 12px 20px 14px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.aidf-cp-perso-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.aidf-cp-perso-lbl {
    font-size: 9px;
    font-weight: 900;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.aidf-cp-perso-pct {
    font-size: 11px;
    font-weight: 800;
    color: var(--df-green);
}

.aidf-cp-perso-track {
    height: 5px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
}

.aidf-cp-perso-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #16a34a, #34d975);
    transition: width 0.6s ease;
}

/* ── 12. Cartes objectifs photo ── */
.aidf-goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.aidf-goal-card {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--df-line);
    border-radius: 12px;
    background: #111;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 0;
    text-align: left;
    aspect-ratio: 3/2;
    min-height: 96px;
}

.aidf-goal-card:hover {
    border-color: #b0d9c0;
}

.aidf-goal-card.is-active {
    border-color: var(--df-green);
    box-shadow: 0 0 0 2px rgba(26,158,79,.35);
}

/* Photo background */
.aidf-goal-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

.aidf-goal-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradient overlay for text readability */
.aidf-goal-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.05) 0%,
        rgba(0,0,0,.42) 45%,
        rgba(0,0,0,.82) 100%
    );
    pointer-events: none;
}

.aidf-goal-emoji { display: none; }

/* Text pinned to bottom */
.aidf-goal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 2;
}

.aidf-goal-info strong {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.aidf-goal-info span {
    font-size: 10px;
    color: rgba(255,255,255,.72);
    font-weight: 500;
}

/* Checkmark badge */
.aidf-goal-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.65);
    background: rgba(0,0,0,.25);
    transition: all 0.15s;
    z-index: 3;
}

.aidf-goal-card.is-active .aidf-goal-check {
    background: var(--df-green);
    border-color: var(--df-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill='white' d='M9 15.5L5 11.5l1.4-1.4L9 12.7l6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* Hint sous le titre */
.aidf-step-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f0faf4;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 16px;
}

.aidf-hint-check {
    color: var(--df-green);
    font-weight: 900;
    flex-shrink: 0;
}

/* Label sexe amélioré */
.aidf-sex-grid button small {
    display: block;
    font-size: 10px;
    color: var(--df-muted);
    font-weight: 500;
    padding: 0 0 8px;
}

.aidf-sex-grid button.is-active small {
    color: var(--df-green);
}

.aidf-sex-icon {
    font-size: 12px;
}

/* 12. Responsive */
@media (max-width: 900px) {
    .aidf-funnel-body {
        grid-template-columns: 1fr;
    }

    .aidf-funnel-right {
        position: static;
        order: 2;
    }

    .aidf-calc-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .aidf-result-ring {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 560px) {
    .aidf-funnel {
        padding: 6px;
    }

    .aidf-stepper-form {
        padding: 20px 16px 12px;
    }

    .aidf-stepper-head,
    .aidf-step-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .aidf-step-title {
        font-size: 18px;
    }

    .aidf-num-input {
        font-size: 44px;
        width: 130px;
    }

    .aidf-sex-grid {
        grid-template-columns: 1fr 1fr;
    }

    .aidf-calc-panel {
        padding: 20px 16px;
    }

    /* Pricing modal responsive */
    .aidf-pricing-grid {
        grid-template-columns: 1fr;
    }

    .aidf-price-content {
        grid-template-columns: 1fr;
    }

    .aidf-price-left {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .aidf-price-features {
        grid-template-columns: 1fr;
    }

    .aidf-price-main h3.aidf-price-value > span {
        font-size: 42px;
    }
}