.ndja-fb {
    --fb-green: #007254;
    --fb-green-2: #078e6b;
    --fb-mint: #65bc99;
    --fb-soft: #eff8f3;
    --fb-navy: #12324a;
    --fb-orange: #ff8300;
    --fb-border: #d9e8df;
    --fb-muted: #5d6d73;
    max-width: 1120px;
    margin: 0 auto 4rem;
    padding: 0 24px;
    color: var(--fb-navy);
    font-family: Sarabun, system-ui, sans-serif;
}
.ndja-fb *, .ndja-fb *::before, .ndja-fb *::after { box-sizing: border-box; }
.ndja-fb__hero {
    margin: 0 -24px 24px;
    padding: clamp(36px, 6vw, 70px) 24px;
    border-radius: 0 0 26px 26px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--fb-green), var(--fb-green-2));
}
.ndja-fb__hero h1 { margin: 4px 0 10px; color: #fff; font-family: Raleway, Sarabun, sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; }
.ndja-fb__hero p { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.ndja-fb__hero .ndja-fb__eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ndja-fb__notice, .ndja-fb__help {
    padding: 18px 20px;
    border: 1px solid var(--fb-border);
    border-left: 5px solid var(--fb-orange);
    border-radius: 14px;
    background: #fffaf2;
}
.ndja-fb__notice p, .ndja-fb__help p { margin: 5px 0 0; color: #44545b; }
.ndja-fb__progress { margin: 30px 0 22px; }
.ndja-fb__progress ol { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0; list-style: none; }
.ndja-fb__progress li { position: relative; display: grid; justify-items: center; gap: 8px; color: #6b797d; text-align: center; font-size: .72rem; }
.ndja-fb__progress li::before { content: ""; position: absolute; z-index: 0; top: 17px; right: 50%; width: 100%; height: 3px; background: #d7e4dc; }
.ndja-fb__progress li:first-child::before { display: none; }
.ndja-fb__progress span { position: relative; z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; border: 3px solid #d7e4dc; border-radius: 50%; background: #fff; font-weight: 800; }
.ndja-fb__progress em { font-style: normal; font-weight: 700; line-height: 1.2; }
.ndja-fb__progress li.is-active, .ndja-fb__progress li.is-done { color: var(--fb-green); }
.ndja-fb__progress li.is-active span { border-color: var(--fb-green); box-shadow: 0 0 0 5px rgba(101,188,153,.2); }
.ndja-fb__progress li.is-done span { border-color: var(--fb-green); color: #fff; background: var(--fb-green); }
.ndja-fb__progress li.is-done::before, .ndja-fb__progress li.is-active::before { background: var(--fb-mint); }
.ndja-fb__progress-mobile { display: none; margin: 0; font-weight: 800; color: var(--fb-green); }
.ndja-fb__form { padding: 0; }
.ndja-fb__step {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--fb-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(18,50,74,.08);
}
.ndja-fb__step[hidden], .ndja-fb__conditional:not(.is-visible) { display: none !important; }
.ndja-fb__step-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--fb-border); }
.ndja-fb__step-head p, .ndja-fb__tag { margin: 0 0 4px; color: var(--fb-green); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ndja-fb__step-head h2 { margin: 0 0 5px; color: var(--fb-navy); font-family: Raleway, Sarabun, sans-serif; font-size: clamp(1.65rem, 4vw, 2.35rem); }
.ndja-fb__step-head span { color: var(--fb-muted); }
.ndja-fb__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ndja-fb__field { display: grid; align-content: start; gap: 7px; margin: 0; }
.ndja-fb__field--wide { grid-column: 1 / -1; }
.ndja-fb__field > span, .ndja-fb__fieldset legend { color: var(--fb-navy); font-size: .93rem; font-weight: 700; }
.ndja-fb__field b, .ndja-fb__fieldset b { color: #a43e20; }
.ndja-fb__field small, .ndja-fb__fieldset small { color: var(--fb-muted); font-weight: 500; }
.ndja-fb input[type="text"], .ndja-fb input[type="number"], .ndja-fb input[type="date"], .ndja-fb input[type="time"], .ndja-fb select, .ndja-fb textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #b9cbc1;
    border-radius: 9px;
    color: var(--fb-navy);
    background: #fff;
    font: inherit;
}
.ndja-fb textarea { resize: vertical; }
.ndja-fb input:focus, .ndja-fb select:focus, .ndja-fb textarea:focus { outline: 3px solid rgba(101,188,153,.34); border-color: var(--fb-green); }
.ndja-fb__help { margin-top: 22px; border-left-color: var(--fb-green); background: var(--fb-soft); }
.ndja-fb__fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.ndja-fb__fieldset legend { margin-bottom: 12px; }
.ndja-fb__choice-grid, .ndja-fb__grandir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ndja-fb__choice-grid label, .ndja-fb__grandir label { cursor: pointer; }
.ndja-fb__choice-grid input, .ndja-fb__grandir input { position: absolute; opacity: 0; pointer-events: none; }
.ndja-fb__choice-grid label > span, .ndja-fb__grandir label > span {
    display: grid;
    min-height: 76px;
    align-content: center;
    gap: 2px;
    padding: 15px 17px;
    border: 2px solid var(--fb-border);
    border-radius: 12px;
    background: #fff;
    transition: .15s ease;
}
.ndja-fb__choice-grid small { color: var(--fb-muted); }
.ndja-fb__choice-grid input:checked + span, .ndja-fb__grandir input:checked + span { border-color: var(--fb-green); background: var(--fb-soft); box-shadow: 0 0 0 3px rgba(101,188,153,.18); }
.ndja-fb__choice-grid input:focus-visible + span, .ndja-fb__grandir input:focus-visible + span { outline: 3px solid var(--fb-orange); outline-offset: 2px; }
.ndja-fb__grandir label > span { min-height: 58px; font-weight: 700; }
.ndja-fb__duration { min-height: 26px; margin: 20px 0 0; padding: 12px 15px; border-radius: 10px; color: var(--fb-green); background: var(--fb-soft); font-weight: 700; }
.ndja-fb__duration:empty { display: none; }
.ndja-fb__inline-error { min-height: 20px; margin: 8px 0 0; color: #9d351d; font-size: .9rem; }
.ndja-fb__section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.ndja-fb__section-title h3, .ndja-fb__subcard h3 { margin: 0; color: var(--fb-navy); font-family: Raleway, Sarabun, sans-serif; }
.ndja-fb__section-title p { margin: 4px 0 0; color: var(--fb-muted); }
.ndja-fb__program { display: grid; gap: 16px; }
.ndja-fb__program:empty::before { content: "Aucun temps ajouté pour le moment."; display: block; padding: 22px; border: 2px dashed var(--fb-border); border-radius: 12px; color: var(--fb-muted); text-align: center; }
.ndja-fb__program-card { position: relative; padding: 22px; border: 1px solid var(--fb-border); border-radius: 14px; background: #fbfdfc; }
.ndja-fb__program-number { position: absolute; top: -10px; left: -10px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--fb-green); font-weight: 800; }
.ndja-fb__program-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ndja-fb__program-actions button { min-height: 38px; padding: 7px 10px; border: 1px solid var(--fb-border); border-radius: 8px; color: var(--fb-navy); background: #fff; cursor: pointer; }
.ndja-fb__program-actions button[data-remove] { color: #9d351d; }
.ndja-fb__subcard { margin-top: 24px; padding: 22px; border: 1px solid var(--fb-border); border-radius: 15px; background: #fbfdfc; }
.ndja-fb__subcard > h3 { margin-bottom: 16px; }
.ndja-fb__meals { display: grid; gap: 12px; }
.ndja-fb__meal { padding: 16px; border-left: 4px solid var(--fb-mint); border-radius: 10px; background: #fff; }
.ndja-fb__meal h4 { margin: 0 0 10px; }
.ndja-fb__privacy-reminder { margin: 16px 0 0; padding: 12px; border-radius: 9px; color: #70430d; background: #fff3de; font-size: .9rem; }
.ndja-fb__adult-grid { display: grid; gap: 10px; }
.ndja-fb__adult-row { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; align-items: end; gap: 12px; padding: 13px; border-radius: 10px; background: #fff; }
.ndja-fb__adult-row label { display: grid; gap: 4px; margin: 0; }
.ndja-fb__adult-row label span { color: var(--fb-muted); font-size: .75rem; font-weight: 700; }
.ndja-fb__summary-status { margin-bottom: 22px; }
.ndja-fb__status-ok, .ndja-fb__status-warning { padding: 18px; border-radius: 13px; }
.ndja-fb__status-ok { color: #075a43; background: #e4f5ec; }
.ndja-fb__status-warning { color: #70430d; background: #fff3de; }
.ndja-fb__status-warning ul { margin: 10px 0 0 20px; }
.ndja-fb__summary { display: grid; gap: 18px; }
.ndja-fb__summary-section { padding: 20px; border: 1px solid var(--fb-border); border-radius: 13px; }
.ndja-fb__summary-section h3 { margin: 0 0 12px; color: var(--fb-green); }
.ndja-fb__summary-section dl { display: grid; grid-template-columns: minmax(150px, .65fr) 1.5fr; gap: 8px 18px; margin: 0; }
.ndja-fb__summary-section dt { font-weight: 800; }
.ndja-fb__summary-section dd { margin: 0; white-space: pre-wrap; }
.ndja-fb__summary-table { width: 100%; border-collapse: collapse; }
.ndja-fb__summary-table th, .ndja-fb__summary-table td { padding: 9px; border: 1px solid var(--fb-border); text-align: left; vertical-align: top; }
.ndja-fb__summary-table th { background: var(--fb-soft); }
.ndja-fb__print-actions { margin-top: 22px; text-align: center; }
.ndja-fb__print-actions p { color: var(--fb-muted); font-size: .85rem; }
.ndja-fb__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ndja-fb__button {
    min-height: 46px;
    padding: 11px 19px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--fb-green);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.ndja-fb__button:hover { color: #fff; background: var(--fb-green-2); }
.ndja-fb__button--secondary { border: 2px solid var(--fb-green); color: var(--fb-green); background: #fff; }
.ndja-fb__button--secondary:hover { color: var(--fb-green); background: var(--fb-soft); }
.ndja-fb__button--small { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.ndja-fb__button--print { background: var(--fb-orange); }

@media (max-width: 720px) {
    .ndja-fb { padding: 0 16px; }
    .ndja-fb__hero { margin-right: -16px; margin-left: -16px; }
    .ndja-fb__progress ol { display: none; }
    .ndja-fb__progress-mobile { display: block; padding: 13px 16px; border-radius: 10px; background: var(--fb-soft); }
    .ndja-fb__step { padding: 20px 16px; border-radius: 15px; }
    .ndja-fb__grid, .ndja-fb__choice-grid, .ndja-fb__grandir { grid-template-columns: 1fr; }
    .ndja-fb__field--wide { grid-column: auto; }
    .ndja-fb__section-title { align-items: stretch; flex-direction: column; }
    .ndja-fb__adult-row { grid-template-columns: 1fr; align-items: stretch; }
    .ndja-fb__program-actions { flex-wrap: wrap; justify-content: flex-start; }
    .ndja-fb__summary-section { padding: 15px; overflow-x: auto; }
    .ndja-fb__summary-section dl { grid-template-columns: 1fr; gap: 2px; }
    .ndja-fb__summary-section dd { margin-bottom: 10px; }
    .ndja-fb__nav { flex-direction: column-reverse; }
    .ndja-fb__nav .ndja-fb__button { width: 100%; }
}

@media print {
    body * { visibility: hidden !important; }
    .ndja-fb, .ndja-fb * { visibility: visible !important; }
    .ndja-fb { position: absolute; top: 0; left: 0; width: 100%; max-width: none; margin: 0; padding: 0; color: #111; }
    .ndja-fb__hero, .ndja-fb__notice, .ndja-fb__progress, .ndja-fb__step:not(.ndja-fb__step--summary), .ndja-fb__step-head > p, .ndja-fb__step-head > span, .ndja-fb__summary-status, .ndja-fb__print-actions, .ndja-fb__nav { display: none !important; }
    .ndja-fb__step--summary { display: block !important; padding: 0; border: 0; box-shadow: none; }
    .ndja-fb__step-head { margin: 0 0 18px; }
    .ndja-fb__step-head h2::before { content: "Fiche d’activité Farfadets — "; }
    .ndja-fb__summary { gap: 10px; }
    .ndja-fb__summary-section { break-inside: avoid; padding: 12px; border-color: #aaa; }
    .ndja-fb__summary-section h3 { color: #111; }
    .ndja-fb__summary-table th { background: #eee; }
}

