/* ICF Membership v2 */

/* ================================================================
   PLANS GRID
   ================================================================ */

.icf-subscribe-wrapper {
    max-width: 1020px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
}

.icf-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.icf-plan-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 36px 28px 28px;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    cursor: default;
}

.icf-plan-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

.icf-plan-card.icf-plan-selected {
    border-color: #111;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}

.icf-plan-featured {
    border-color: #111;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.icf-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.icf-badge-soldout {
    background: #ef4444;
}

.icf-plan-founding {
    border-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, .18);
}

.icf-plan-founding .icf-plan-badge {
    background: #f59e0b;
}

.icf-plan-founding .icf-btn {
    background: #f59e0b;
}

.icf-plan-founding .icf-btn:hover {
    background: #d97706;
}

.icf-plan-soldout {
    opacity: .6;
    pointer-events: none;
}

.icf-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.icf-plan-price {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    line-height: 1;
    margin-bottom: 24px;
}

.icf-plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
}

.icf-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.icf-plan-features li {
    font-size: 14px;
    color: #374151;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icf-plan-features li:last-child { border-bottom: none; }

/* ================================================================
   BUTTONS
   ================================================================ */

.icf-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-sizing: border-box;
    letter-spacing: .01em;
}

.icf-btn:hover  { background: #333; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.icf-btn:active { transform: scale(.98); }
.icf-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ================================================================
   FORM WRAPPER
   ================================================================ */

.icf-form-wrapper {
    margin-top: 8px;
    animation: icf-slide-down .3s ease;
}

@keyframes icf-slide-down {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.icf-form-card {
    background: #fff;
    border: 2px solid #111;
    border-radius: 24px;
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 16px 60px rgba(0, 0, 0, .12);
}

/* Header sombre avec logo */
.icf-form-header {
    background: #111;
    padding: 28px 32px;
    text-align: center;
}

.icf-form-logo {
    height: 64px;
    width: auto;
    display: block;
    margin: 0 auto 12px;
    filter: brightness(0) invert(1);
}

.icf-form-header h3 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 4px;
    opacity: .7;
}

.icf-form-plan-name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: .02em;
}

/* Corps du formulaire */
.icf-form-body {
    padding: 32px;
}

/* Grille 2 colonnes */
.icf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .icf-field-row { grid-template-columns: 1fr; }
    .icf-form-body { padding: 24px 20px; }
    .icf-form-header { padding: 24px 20px; }
}

.icf-field {
    margin-bottom: 18px;
}

.icf-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.icf-field input,
.icf-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #111;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .15s, background .15s, box-shadow .15s;
    appearance: auto;
}

.icf-field input:focus,
.icf-field select:focus {
    outline: none;
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.icf-field input::placeholder { color: #c4c8d0; }

.icf-readonly {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    border-color: #e5e7eb !important;
}

/* Zone photo */
.icf-photo-zone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #fafafa;
    position: relative;
}

.icf-photo-zone:hover,
.icf-photo-zone.icf-drag-over {
    border-color: #111;
    background: #f5f5f5;
}

.icf-photo-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.icf-photo-icon { font-size: 32px; margin-bottom: 8px; }

.icf-photo-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px;
}

.icf-photo-sub {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.icf-photo-preview {
    margin-top: 12px;
    text-align: center;
}

.icf-photo-preview img {
    max-height: 80px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.icf-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

/* Divider dans le form */
.icf-form-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 24px 0;
}

/* Submit dans le form */
.icf-form-submit-wrap {
    margin-top: 8px;
}

.icf-btn-large {
    padding: 17px 20px;
    font-size: 16px;
    border-radius: 12px;
}

/* ================================================================
   STATUS MESSAGES
   ================================================================ */

.icf-status {
    min-height: 16px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.icf-status:empty { display: none; }
.icf-status-error   { background: #fee2e2; color: #dc2626; }
.icf-status-info    { background: #f0f9ff; color: #0369a1; }
.icf-status-success { background: #dcfce7; color: #16a34a; }

/* ================================================================
   SUCCESS / CANCELLED PAGES
   ================================================================ */

.icf-success-wrapper,
.icf-cancelled-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.icf-success-header { text-align: center; margin-bottom: 32px; }
.icf-success-emoji  { font-size: 56px; margin-bottom: 8px; }
.icf-success-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #111; }
.icf-success-header p  { color: #6b7280; font-size: 15px; }

.icf-card-ready {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.icf-card-ready p { color: #374151; font-size: 15px; margin-bottom: 20px; }

.icf-already-generated { text-align: center; padding: 40px 24px; }
.icf-cancelled-wrapper  { text-align: center; padding: 60px 20px; }
