:root {
    --po-blue: #001F54;
    --po-gold: #C9A961;
    --po-white: #ffffff;
}

/* === RESET BOX-SIZING UNIVERSEL === */
.po-ultimate-form-container,
.po-ultimate-form-container *,
.po-ultimate-form-container *::before,
.po-ultimate-form-container *::after {
    box-sizing: border-box;
}

/* --- CONTAINER GLOBAL --- */
.po-ultimate-form-container {
    max-width: 900px;
    margin: 4rem auto;
    background: var(--po-white);
    padding: 4rem;
    border: 1px solid #eee;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
    width: 100%;
}

.po-form-section {
    margin-bottom: 3rem;
}

.po-section-tag {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--po-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.po-step-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    color: var(--po-blue);
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.po-step-title-small {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    color: var(--po-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* --- GRILLES --- */
.po-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.po-field {
    width: 100%;
    min-width: 0;
}

.po-custom-label {
    display: block;
    font-size: 0.75rem;
    color: var(--po-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.po-input-wrapper {
    width: 100%;
}

.po-input-wrapper input,
.po-input-date,
.po-select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--po-blue);
    background: transparent;
    border-radius: 0;
    outline: none;
}

.po-input-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* --- PROGRAMMES --- */
.po-program-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.po-card {
    width: 100%;
    min-width: 0;
    display: block;
}

.po-card input {
    display: none;
}

.po-card-content {
    padding: 2rem;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    background: #fff;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.po-card-header {
    margin-bottom: 1rem;
}

.po-badge {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--po-gold);
    font-weight: 700;
}

.po-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--po-blue);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.po-card-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.po-card input:checked + .po-card-content {
    background: var(--po-blue);
    border-color: var(--po-gold);
}

.po-card input:checked + .po-card-content .po-badge,
.po-card input:checked + .po-card-content .po-card-title,
.po-card input:checked + .po-card-content .po-card-desc {
    color: white;
}

/* --- LOGISTIQUE (PILLS) --- */
.po-conditional-field {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #fdfdfd;
    border-left: 3px solid var(--po-gold);
    width: 100%;
}

.po-option-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.po-option-pill {
    width: 100%;
    min-width: 0;
    display: block;
}

.po-option-pill input {
    display: none;
}

.po-option-pill .pill-content {
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.pill-text {
    font-size: 0.95rem;
    color: var(--po-blue);
    font-weight: 500;
}

.po-option-pill input:checked + .pill-content {
    background: var(--po-blue);
    border-color: var(--po-gold);
}

.po-option-pill input:checked + .pill-content .pill-text {
    color: white;
}

/* --- BOUTON --- */
.po-footer-btn {
    margin-top: 3rem;
    width: 100%;
}

.po-submit-btn {
    width: 100%;
    background: var(--po-blue);
    color: white;
    border: 1px solid var(--po-gold);
    padding: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.po-submit-btn:hover {
    background: var(--po-gold);
    color: var(--po-blue);
}

/* --- MESSAGE --- */
.po-message {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.po-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.po-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
/* ========================================
   MOBILE RESPONSIVE - FORCÉ 1 COLONNE
======================================== */

@media only screen and (max-width: 768px) {
    
    /* Reset du container */
    .po-ultimate-form-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 2rem 1.5rem !important;
        border: none !important;
        box-shadow: none !important;
        overflow-x: hidden !important;
    }
    
    /* Sections */
    .po-form-section {
        margin-bottom: 3rem !important;
        width: 100% !important;
    }
    
    /* Titres */
    .po-section-tag {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 0.8rem !important;
    }
    
    .po-step-title {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.25 !important;
    }
    
    .po-step-title-small {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.25 !important;
    }
    
    /* === FORCER 1 COLONNE PARTOUT === */
    .po-grid,
    .po-grid.po-grid,
    div.po-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }
    
    .po-program-selector,
    .po-program-selector.po-program-selector,
    div.po-program-selector {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }
    
    .po-option-group,
    .po-option-group.po-option-group,
    div.po-option-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }
    
    /* Champs - 100% largeur */
    .po-field,
    .po-card,
    .po-option-pill {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Labels */
    .po-custom-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Inputs - 100% largeur */
    .po-input-wrapper,
    .po-input-wrapper input,
    .po-input-date,
    .po-select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1.1rem !important;
        padding: 14px 0 !important;
    }
    
    /* Cards programmes - Plus d'espace */
    .po-card {
        margin-bottom: 0 !important;
    }
    
    .po-card-content {
        padding: 2.5rem 2rem !important;
        width: 100% !important;
    }
    
    .po-badge {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .po-card-title {
        font-size: 1.7rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .po-card-desc {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }
    
    /* Conditional field */
    .po-conditional-field {
        padding: 2.5rem 2rem !important;
        margin: 3rem 0 !important;
        width: 100% !important;
    }
    
    /* Pills */
    .po-option-pill .pill-content {
        padding: 1.5rem 1.5rem !important;
        width: 100% !important;
    }
    
    .pill-text {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
    }
    
    /* Bouton */
    .po-footer-btn {
        margin-top: 3rem !important;
        width: 100% !important;
    }
    
    .po-submit-btn {
        width: 100% !important;
        padding: 1.6rem !important;
        font-size: 0.8rem !important;
        letter-spacing: 3px !important;
    }
    
    /* Messages */
    .po-message {
        margin: 2rem 0 !important;
        padding: 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* === TRÈS PETITS ÉCRANS === */
@media only screen and (max-width: 480px) {
    .po-ultimate-form-container {
        padding: 1.5rem 1rem !important;
    }
    
    .po-step-title {
        font-size: 1.5rem !important;
    }
    
    .po-step-title-small {
        font-size: 1.3rem !important;
    }
    
    .po-card-content {
        padding: 2rem 1.5rem !important;
    }
    
    .po-conditional-field {
        padding: 2rem 1.5rem !important;
    }
    
    .po-submit-btn {
        padding: 1.4rem !important;
        font-size: 0.75rem !important;
    }
}