/* assets/css/financement.css */
.fp-wrap{--fp-green:#087647;--fp-deep:#193c35;--fp-muted:#61736e;--fp-line:#d9e6dd;max-width:1320px;margin:26px auto;padding:0 20px;color:var(--fp-deep);font-size:16px}.fp-wrap h1{font-size:clamp(25px,3vw,35px);line-height:1.2;letter-spacing:-.6px}.fp-wrap h2{font-size:21px}.fp-wrap h3{font-size:18px}.fp-wrap p{line-height:1.6}.fp-wrap .text-secondary{color:var(--fp-muted)!important}.fp-eyebrow{font-size:12px;font-weight:750;color:var(--fp-green);text-transform:uppercase;letter-spacing:1.3px;margin-bottom:8px}.fp-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:23px}.fp-heading p{font-size:15px;margin:8px 0 0;color:var(--fp-muted)}.fp-nav{display:flex;gap:5px;overflow:auto;white-space:nowrap;padding-bottom:12px;margin-bottom:23px;border-bottom:1px solid var(--fp-line)}.fp-nav a{display:block;padding:10px 15px;font-weight:650;font-size:14px;text-decoration:none;border-radius:8px;color:var(--fp-deep)}.fp-nav a:hover{background:#eaf5ed}.fp-nav a.active{background:var(--fp-green);color:#fff}.fp-panel{background:rgba(255,255,255,.98);border:1px solid var(--fp-line);border-radius:15px;box-shadow:0 6px 25px #183b2910;margin-bottom:20px;overflow:hidden}.fp-panel-header{padding:19px 21px;border-bottom:1px solid var(--fp-line);display:flex;gap:15px;justify-content:space-between;align-items:center;flex-wrap:wrap}.fp-panel-header h2{margin:0}.fp-panel-body{padding:22px}.fp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.fp-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fp-split{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:22px}.fp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:22px 0}.fp-stat{border:1px solid var(--fp-line);border-radius:13px;padding:18px;background:#fff}.fp-stat span{font-size:14px;color:var(--fp-muted)}.fp-stat b{display:block;font-size:25px;letter-spacing:-.5px;margin:8px 0}.fp-stat small{font-size:12px;color:var(--fp-muted)}.fp-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--fp-line);border-radius:15px;overflow:hidden;box-shadow:0 6px 24px #153a2810}.fp-card-cover{position:relative;aspect-ratio:500/250;background:#e6f0e9;overflow:hidden}.fp-card-cover img{width:100%;height:100%;object-fit:cover;display:block}.fp-card-cover .fp-badge{position:absolute;top:13px;left:13px;background:#fffffff0}.fp-card-body{padding:20px;display:flex;flex-direction:column;flex:1}.fp-card-body h2{font-size:20px;line-height:1.35;margin:8px 0 12px}.fp-card-body p{font-size:14px;color:var(--fp-muted);margin-bottom:18px}.fp-card-body .fp-funding{margin-top:auto}.fp-meta{font-size:12px;color:var(--fp-muted)}.fp-amount{font-size:22px;font-weight:750;letter-spacing:-.5px}.fp-progress{height:7px;border-radius:10px;background:#e5eee8;overflow:hidden;margin:11px 0}.fp-progress i{height:100%;display:block;background:var(--fp-green);border-radius:10px}.fp-between{display:flex;justify-content:space-between;gap:13px;align-items:center}.fp-progress-label{font-size:13px;color:var(--fp-muted)}.fp-badge{display:inline-block;border-radius:6px;background:#edf1ef;color:#53675a;padding:4px 8px;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap}.fp-badge.good{background:#e3f4e7;color:#087440}.fp-badge.wait{background:#fff1d8;color:#94601a}.fp-badge.info{background:#e8f1f8;color:#285e7b}.fp-badge.bad{background:#fdebed;color:#a53740}.fp-filter{display:flex;gap:13px;align-items:end;flex-wrap:wrap}.fp-field{margin-bottom:17px;min-width:0}.fp-field>label,.fp-field>.form-label{font-size:14px;font-weight:600;display:block;margin-bottom:7px}.fp-field .form-control,.fp-field .form-select{min-height:43px;border-color:#c6d8cb;border-radius:8px;color:var(--fp-deep);font-size:15px}.fp-field textarea{min-height:110px}.fp-filter .fp-field{margin:0;flex:1;min-width:145px}.fp-filter .fp-search{flex:2;min-width:220px}.fp-error{font-size:13px;color:#b02b38;margin-top:5px}.fp-wrap .form-control:focus,.fp-wrap .form-select:focus{box-shadow:0 0 0 3px #6cba8750;border-color:var(--fp-green)}.fp-wrap .is-invalid{border-color:#b02b38!important}.fp-wrap .table{font-size:14px;color:var(--fp-deep);margin-bottom:0}.fp-wrap .table th{background:#edf6ef;color:#476752;text-transform:uppercase;letter-spacing:.4px;font-size:12px;padding:14px 16px;white-space:nowrap}.fp-wrap .table td{padding:15px 16px;vertical-align:middle;border-color:var(--fp-line)}.fp-wrap .table td small{display:block;color:var(--fp-muted);font-size:12px;margin-top:4px}.fp-pagination{padding:14px 19px;border-top:1px solid var(--fp-line);display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px;color:var(--fp-muted)}.fp-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.fp-wrap .btn{border-radius:8px;min-height:41px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:650}.fp-wrap .btn-sm{min-height:34px;font-size:13px}.fp-hero{display:grid;grid-template-columns:1.15fr 1fr;background:#eaf4ec;border:1px solid #d2e4d6;border-radius:20px;overflow:hidden;margin-bottom:27px}.fp-hero-text{padding:35px}.fp-hero-text h1{font-size:clamp(28px,3vw,43px);line-height:1.15}.fp-hero-text p{color:#52705c;margin:18px 0 25px}.fp-hero-art{min-height:280px;position:relative}.fp-hero-art img{width:100%;height:100%;object-fit:cover;position:absolute}.fp-detail-cover{aspect-ratio:500/320;width:100%;object-fit:cover;border-radius:15px;background:#e4eee6}.fp-detail-head{display:grid;grid-template-columns:1.2fr 1fr;gap:26px;margin:20px 0 25px;align-items:stretch}.fp-detail-head h1{margin:14px 0}.fp-detail-head p{color:var(--fp-muted)}.fp-empty{padding:45px 20px;text-align:center;color:var(--fp-muted)}.fp-empty h2{color:var(--fp-deep);margin:12px 0}.fp-timeline{margin:5px 0 5px 7px;border-left:2px solid #d8e9de;padding-left:23px}.fp-timeline article{position:relative;padding-bottom:24px}.fp-timeline article:before{content:'';position:absolute;left:-29px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--fp-green);border:3px solid #d8ebde}.fp-timeline article:last-child{padding-bottom:0}.fp-timeline p{font-size:14px;margin-top:8px;white-space:pre-line;color:var(--fp-muted)}.fp-timeline time{font-size:12px;color:var(--fp-muted)}.fp-budget-row,.fp-metric{display:flex;justify-content:space-between;gap:17px;padding:11px 0;border-bottom:1px solid var(--fp-line);font-size:14px}.fp-budget-row b,.fp-metric b{white-space:nowrap}.fp-budget-edit{display:grid;grid-template-columns:1.7fr 1fr 38px;gap:10px;align-items:end;margin-bottom:12px}.fp-budget-edit .fp-field{margin-bottom:0}.fp-budget-total{background:#eef6ef;border-radius:9px;padding:15px;margin:18px 0;font-weight:750}.fp-document{display:flex;align-items:center;gap:12px;border:1px solid var(--fp-line);border-radius:9px;padding:13px;margin-bottom:10px}.fp-document>.fa-solid{color:var(--fp-green);font-size:23px}.fp-document strong{font-size:14px}.fp-document small{font-size:12px;color:var(--fp-muted);display:block}.fp-document .btn{margin-left:auto}.fp-cover-preview{width:100%;max-height:220px;object-fit:cover;border-radius:10px;background:#e4eee6}.fp-notice{background:#eef6fa;border:1px solid #d8e8ef;border-radius:10px;padding:14px 16px;font-size:14px;color:#2e5b6e;margin-bottom:20px}.fp-notice.gold{background:#fff7e8;border-color:#f0dfbd;color:#845f20}.fp-notice.good{background:#ecf7ef;border-color:#d0e7d5;color:#346a47}.fp-modal .modal-content{border-radius:14px;overflow:hidden}.fp-modal .modal-body{overflow-y:auto}.fp-modal .modal-header,.fp-modal .modal-footer{flex-shrink:0;background:#fff}.fp-modal .modal-body{padding:22px}.fp-modal .modal-footer .btn{min-height:41px}.fp-amounts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:17px}.fp-payment-method{display:flex;gap:12px;padding:15px;border:1px solid var(--fp-line);border-radius:10px;align-items:center;margin:11px 0;cursor:pointer}.fp-payment-method input{accent-color:var(--fp-green)}.fp-payment-method.disabled{opacity:.55;cursor:not-allowed}.fp-pay-logo{padding:9px;border-radius:6px;background:#ff7900;color:#111;font-size:13px;font-weight:800}.fp-pay-logo.yas{background:#ffd12b;color:#234355}.fp-pay-summary{background:#f2f8f3;border:1px solid var(--fp-line);border-radius:11px;padding:18px;margin-bottom:20px}.fp-form-section{margin-bottom:25px}.fp-form-section h2{font-size:19px;margin-bottom:16px}.fp-wrap pre{white-space:pre-line;font:inherit}.fp-wrap .form-check-label{font-size:14px}.fp-wrap .form-check-input{accent-color:var(--fp-green)}.fp-terms{max-height:200px;overflow:auto;border:1px solid var(--fp-line);border-radius:8px;padding:13px;font-size:14px;white-space:pre-line;margin:15px 0}.fp-audit{margin-bottom:16px;padding-bottom:15px;border-bottom:1px solid var(--fp-line);font-size:14px}.fp-audit small{display:block;color:var(--fp-muted);margin:4px 0}.fp-audit p{white-space:pre-line;font-size:14px;margin-bottom:0}.fp-payment-status{font-size:14px}.fp-pending{display:inline-flex;gap:9px;align-items:center}.fp-hint{font-size:12px;color:var(--fp-muted)}.fp-nav-count{background:#fff3;padding:2px 6px;border-radius:6px;margin-left:5px}.fp-form-loading{pointer-events:none;opacity:.7}.fp-offline-methods{font-size:14px;color:var(--fp-muted)}
@media(max-width:1000px){.fp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-split{grid-template-columns:1fr}.fp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-hero-text{padding:27px}.fp-detail-head{gap:20px}}
@media(max-width:640px){.fp-wrap{margin:20px auto;padding:0 14px}.fp-heading{align-items:flex-start;gap:12px}.fp-heading p{font-size:14px}.fp-heading .btn{font-size:13px;padding:9px 11px}.fp-grid,.fp-grid-two,.fp-detail-head,.fp-hero{grid-template-columns:1fr}.fp-grid-two{gap:0}.fp-stats{gap:10px}.fp-stat{padding:14px}.fp-stat b{font-size:22px}.fp-stat span{font-size:12px}.fp-panel-body,.fp-panel-header{padding:17px}.fp-card-body{padding:18px}.fp-card-body p{font-size:15px}.fp-filter{gap:10px}.fp-filter .fp-field{min-width:calc(50% - 10px)}.fp-filter .fp-search{min-width:100%}.fp-nav a{padding:9px 12px;font-size:13px}.fp-hero-text{padding:26px 22px}.fp-hero-text h1{font-size:30px}.fp-hero-art{min-height:210px}.fp-detail-head{gap:18px}.fp-detail-head h1{font-size:28px}.fp-amounts{grid-template-columns:repeat(2,1fr)}.fp-budget-edit{grid-template-columns:1.3fr 1fr 33px;gap:8px}.fp-budget-edit .form-label{font-size:12px}.fp-pagination{flex-wrap:wrap;font-size:12px}.fp-metric,.fp-budget-row{font-size:13px}.fp-progress-label{font-size:12px}.fp-document{gap:9px}.fp-document .btn{padding:6px 9px}.fp-modal .modal-dialog{margin:9px}.fp-wrap .modal-title{font-size:21px}.fp-terms{font-size:13px}}
@media print{.fp-nav,.fp-actions,.fp-filter,.fp-wrap form,.fp-pagination{display:none!important}.fp-wrap{max-width:none;padding:0}.fp-panel,.fp-card{box-shadow:none;break-inside:avoid}.fp-stats{grid-template-columns:repeat(4,1fr)}}

.fp-modal .modal-content>.fp-form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 56px)}

/* Rédaction et galerie du financement participatif. */
.fp-rich-content,.fp-terms{overflow-wrap:anywhere;white-space:normal}.fp-rich-content p:last-child,.fp-terms p:last-child{margin-bottom:0}.fp-rich-content ul,.fp-rich-content ol,.fp-terms ul,.fp-terms ol{padding-left:1.5rem}
.fp-wrap .sun-editor{max-width:100%;border:1px solid #b5ccbe;border-radius:8px;overflow:hidden;color:#173c2a;background:#fff}.fp-wrap .sun-editor .se-toolbar{background:#f4f8f5;outline:none}.fp-wrap .sun-editor .se-btn{padding:0!important;min-width:34px;height:34px;box-shadow:none}.fp-wrap .sun-editor .se-menu-list{padding:4px!important}.fp-wrap .sun-editor .se-wrapper-inner{background:#fff;color:#173c2a}.fp-wrap .sun-editor-editable.is-invalid{outline:2px solid #dc3545;outline-offset:-2px}
.fp-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.fp-gallery img{width:100%;height:160px;object-fit:cover;border-radius:9px}.fp-photo-existing{display:flex;flex-direction:column;gap:9px;padding:9px;border:1px solid #c9ddcf;border-radius:10px}.fp-photo-existing:has(input:checked){opacity:.55}.fp-photo-existing span{font-size:13px}
@media(max-width:640px){.fp-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-gallery img{height:115px}.fp-wrap .sun-editor .se-container{width:100%!important}.fp-field{min-width:0}.fp-heading{flex-wrap:wrap}}

.fp-modal{--fp-green:#087f49;--fp-deep:#1c3c2c;--fp-line:#d5e5da;--fp-muted:#60766a}.fp-modal .modal-content{background:#fff!important}.fp-modal .btn{border-radius:8px;min-height:41px}.fp-modal .form-control,.fp-modal .form-select{min-height:43px;border-radius:8px}
