@charset "UTF-8";
/**
 * Styles pour la page Dissolution TUP
 * Fichier: /assets/css/dissolution-tup.css
 * Encodage: UTF-8
 * Version optimisée pour mobile et tablette
 */

/* ===== IMPORT DES STYLES DE BASE ===== */
/* Note: Dans production, importer dissolution-anticipee.css pour réutiliser tous les styles de base */
/* @import url('dissolution-anticipee.css'); */

/* ===== RESET ET BASE (si pas d'import) ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Classes utilitaires pour la détection d'appareil */
body.is-mobile {
    -webkit-tap-highlight-color: transparent;
}

body.is-tablet {
    -webkit-tap-highlight-color: transparent;
}

/* ===== HERO SECTION TUP ===== */
.hero-tup-compact {
    background: linear-gradient(135deg, #f5f5fe 0%, #e8e8fb 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-tup-compact::before {
    content: "TUP";
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 145, 0.05);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #000091;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.hero-description {
    color: #3a3a3a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
}

.hero-description-intro {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== PRICE BANNER ===== */
.price-banner {
    background: #000091;
    color: white;
    padding: 2rem;
    margin: -2rem -2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    position: relative;
}

.price-banner-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-banner-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-banner-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-link {
    color: white !important;
    text-decoration: none !important;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    border: none !important;
    outline: none;
}

.price-link span {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.price-link:hover {
    opacity: 1;
}

.price-link:hover span {
    border-bottom-color: white;
}

.price-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.price-banner-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-banner-ttc {
    font-size: 1.75rem;
    font-weight: 600;
}

.price-banner-info small {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Badge "TARIF RÉGLEMENTÉ" */
.price-banner::before {
    content: "TARIF RÉGLEMENTÉ";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #e1000f;
    color: white;
    padding: 0.375rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #c60e13;
}

/* ===== ALERT TUP SPÉCIFIQUE ===== */
.tup-alert {
    background-color: #fef4f4;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid #e1000f;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tup-alert-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
}

.tup-alert-content {
    flex: 1;
}

.tup-alert-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #161616;
    line-height: 1.5;
}

.tup-alert-content strong {
    color: #e1000f;
    font-weight: 700;
}

/* ===== EMAIL CAPTURE SECTION ===== */
.email-capture-section {
    background: #f8f8fb;
    padding: 1.5rem;
    margin: -2rem -2rem 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.email-capture-section .form-group {
    margin-bottom: 0;
}

.email-capture-section .form-help {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.email-capture-section .form-help a {
    color: #000091;
    text-decoration: underline;
}

/* ===== FORM CONTAINER ===== */
.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.form-step {
    margin-bottom: 3rem;
}

.form-step-header {
    background: #f5f5fe;
    padding: 1rem 1.5rem;
    margin: -2rem -2rem 2rem;
    border-left: 4px solid #000091;
}

.form-step-header h3 {
    color: #000091;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    background: #000091;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== SUBSECTION TITLES ===== */
.subsection-title {
    color: #000091;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

/* ===== FORM FIELDS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    color: #161616;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #ce614a;
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    line-height: 1.4;
    font-family: inherit;
}

.form-control[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    cursor: pointer;
}

input[type="date"].form-control,
input[type="text"].form-control,
input[type="number"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
select.form-control {
    height: 48px;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: #000091;
}

.form-control.error {
    border-color: #ce614a;
}

.form-control.valid {
    border-color: #18753c;
}

.form-help {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.875rem;
    color: #ce614a;
    margin-top: 0.25rem;
    display: none;
}

.form-control.error + .form-error {
    display: block;
}

/* ===== RADIO & CHECKBOX GROUPS ===== */
.form-radio-group,
.form-checkbox-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-radio,
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-radio input[type="radio"],
.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===== INFO ALERTS ===== */
.info-alert {
    background-color: #e3e3fd;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid #000091;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.info-alert-content {
    flex: 1;
}

.info-alert-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #161616;
}

/* ===== TRIBUNAL INFO ===== */
.tribunal-info {
    background: #f8f8fb;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.tribunal-info p {
    margin: 0;
    font-size: 1rem;
}

.tribunal-info strong {
    color: #000091;
}

#tribunal-ville-siege {
    text-transform: uppercase;
}

/* ===== INFO TOOLTIPS ===== */
.info-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    cursor: help;
    position: relative;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    background: #e3e3fd;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-tooltip::before {
    content: "?";
    font-size: 12px;
    font-weight: 600;
    color: #000091;
    line-height: 1;
}

.info-tooltip:hover {
    background: #000091;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 18, 0.15);
}

.info-tooltip:hover::before {
    color: white;
}

.info-tooltip svg {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #161616;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid #000091;
    min-width: 280px;
    max-width: 320px;
    font-weight: normal;
    white-space: normal;
    pointer-events: none;
}

.info-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}

/* ===== PREVIEW CARD ===== */
.preview-card {
    background: white;
    border: 2px solid #000091;
    border-radius: 8px;
    position: sticky;
    top: 2rem;
    overflow: hidden;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.preview-header {
    background: linear-gradient(135deg, #000091 0%, #1212ff 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: white !important;
    font-size: 1.125rem;
}

.preview-header svg {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

.preview-content {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 11px;
    line-height: 1.4;
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    text-align: justify;
    color: #000;
}

.preview-annonce {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 11px;
    line-height: 1.3;
    text-align: justify;
    color: #000;
}

.preview-footer {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===== BOTTOM CTA ===== */
.bottom-cta {
    background: #f5f5fe;
    padding: 2rem;
    margin: 2rem -2rem -2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.mobile-only {
    display: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #000091 !important;
    color: white !important;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1212ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary:disabled {
    background: #929292 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== TUP SPECIFIC STYLES ===== */
.tup-specific-section {
    background: linear-gradient(135deg, #fef4f4 0%, #fff5f5 100%);
    border: 2px solid #e1000f;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlightTup {
    0% { background-color: #fef4f4; }
    50% { background-color: #ffe8e8; }
    100% { background-color: #fef4f4; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-step {
    animation: fadeIn 0.3s ease-out;
}

.tup-specific-section.highlight {
    animation: highlightTup 2s ease-in-out;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #18753c;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
}

.notification.show {
    transform: translateX(0);
}

.notification-error {
    background: #ce614a;
}

.notification-warning {
    background: #fc9f00;
}

.notification-info {
    background: #000091;
}

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

/* ===== MODAL TOOLTIP MOBILE ===== */
.tooltip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.tooltip-modal-overlay.active {
    display: flex;
}

.tooltip-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: min(90vw, 400px);
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #000091;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.tooltip-modal-header {
    background: linear-gradient(135deg, #000091 0%, #1212ff 100%);
    color: white;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    position: relative;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tooltip-modal-body {
    padding: 1.75rem 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    font-size: 0.95rem;
    line-height: 1.65;
    color: #333;
}

.tooltip-modal-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: white;
    color: #e1000f;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    line-height: 0;
    padding: 0;
}

.tooltip-modal-close:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.05);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 767px) {
    /* Hero */
    .hero-tup-compact {
        padding: 2rem 1rem;
    }
    
    .hero-tup-compact::before {
        font-size: 4rem;
        right: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        text-align: left;
        padding: 0 0.5rem;
    }
    
    /* Price banner */
    .price-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem 2rem;
        margin: -1rem -1rem 1.5rem;
    }
    
    .price-banner::before {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }
    
    .price-banner-left {
        align-items: center;
    }
    
    .price-banner-info {
        text-align: center;
        align-items: center;
    }
    
    .price-banner-amount {
        font-size: 1.75rem;
    }
    
    .price-banner-ttc {
        font-size: 1.25rem;
    }
    
    /* TUP Alert */
    .tup-alert {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .tup-alert-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Form */
    .form-container {
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
    }
    
    .form-step {
        margin-bottom: 2rem;
    }
    
    .form-step-header {
        margin: -1rem -1rem 1.5rem;
        padding: 1rem;
    }
    
    .form-step-header h3 {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .subsection-title {
        font-size: 1rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    /* Form fields */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-control {
        font-size: 16px; /* Empêche le zoom sur iOS */
        padding: 0.875rem;
        border-radius: 6px;
    }
    
    input[type="date"].form-control,
    input[type="text"].form-control,
    input[type="number"].form-control,
    input[type="email"].form-control,
    input[type="tel"].form-control,
    select.form-control {
        height: 52px;
        font-size: 16px;
    }
    
    textarea.form-control {
        min-height: 100px;
        font-size: 16px;
    }
    
    /* Radio et checkbox */
    .form-radio-group,
    .form-checkbox-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-radio,
    .form-checkbox {
        padding: 1rem;
        background: #f8f8f8;
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }
    
    .form-radio input[type="radio"],
    .form-checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
    
    /* Info alerts */
    .info-alert {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .info-alert-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    /* Tribunal info */
    .tribunal-info {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Container */
    .fr-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-bottom: 0 !important;
    }
    
    /* Sidebar mobile */
    .sidebar {
        display: flex !important;
        flex-direction: column;
        position: static !important;
        margin: 2rem 0 0 0 !important;
        padding: 0 !important;
        flex: 1;
        padding-bottom: 100px !important;
    }
    
    /* Preview card mobile */
    .preview-card {
        display: block !important;
        position: static !important;
        max-width: 100% !important;
        margin: 0 0.75rem !important;
        border-radius: 8px;
        flex: 1 1 auto;
        min-height: 300px;
    }
    
    .preview-content {
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    /* Bottom CTA mobile */
    .bottom-cta.mobile-only {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem 0.75rem !important;
        background: #f5f5fe !important;
        border-top: 1px solid #e0e0e0 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
        text-align: center;
    }
    
    .bottom-cta.mobile-only .btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .bottom-cta.mobile-only p {
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        font-size: 0.75rem !important;
        padding: 0 0.5rem;
    }
    
    /* Masquer le bottom-cta desktop sur mobile */
    .form-container .bottom-cta {
        display: none !important;
    }
    
    /* Tooltips mobile */
    .tooltip-content {
        display: none !important;
    }
    
    .info-tooltip {
        width: 24px;
        height: 24px;
        padding: 0;
        touch-action: manipulation;
    }
    
    .info-tooltip::before {
        font-size: 14px;
    }
    
    /* Email capture */
    .email-capture-section {
        padding: 1rem;
        margin: -1rem -1rem 1.5rem;
    }
    
    /* Masquer les éléments de scroll to top */
    .back-to-top,
    .scroll-to-top,
    [class*="to-top"],
    [class*="scroll-top"] {
        display: none !important;
    }
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-tup-compact::before {
        font-size: 6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .fr-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .price-banner {
        padding: 2rem 1.5rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .price-banner-amount {
        font-size: 2rem;
    }
    
    .price-banner-ttc {
        font-size: 1.5rem;
    }
    
    .tup-alert {
        padding: 1rem;
    }
    
    .tup-alert-content p {
        font-size: 0.85rem;
    }
    
    .fr-col-12.fr-col-lg-4 {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
    
    .sidebar {
        position: static !important;
    }
    
    .sidebar-card.preview-card {
        position: static !important;
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    @media (max-width: 900px) {
        .form-radio-group,
        .form-checkbox-group {
            flex-direction: column;
            gap: 1rem;
        }
        
        .form-radio,
        .form-checkbox {
            padding: 0.75rem;
            background: #f8f8f8;
            border-radius: 4px;
            margin-bottom: 0.5rem;
        }
    }
    
    .tooltip-content {
        display: none !important;
    }
}

/* ===== DESKTOP SPECIFIC ===== */
@media (min-width: 992px) {
    .sidebar-card.preview-card {
        top: 160px !important;
    }
}

/* ===== OPTIMISATIONS TACTILES ===== */
@media (hover: none) and (pointer: coarse) {
    .form-radio,
    .form-checkbox {
        min-height: 48px;
        padding: 12px;
    }
    
    button,
    .btn-primary {
        min-height: 48px;
    }
    
    .info-tooltip {
        padding: 0.5rem;
        margin: -0.5rem 0 -0.5rem 0.25rem;
    }
    
    .info-tooltip svg {
        width: 24px;
        height: 24px;
    }
    
    .info-tooltip:hover .tooltip-content {
        opacity: 0;
        visibility: hidden;
    }
    
    button:active,
    .btn-primary:active,
    .form-radio:active,
    .form-checkbox:active,
    .info-tooltip:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-tup-compact,
    .price-banner,
    .tup-alert,
    .info-tooltip,
    .tooltip-content,
    .bottom-cta,
    .mobile-only,
    .email-capture-section,
    .sidebar,
    .back-to-top {
        display: none !important;
    }
    
    .form-container {
        box-shadow: none;
        padding: 0;
    }
    
    .preview-content {
        max-height: none;
        overflow: visible;
        page-break-inside: avoid;
    }
    
    .preview-annonce {
        font-size: 10pt;
        line-height: 1.2;
    }
}

/* ===== ACCESSIBILITÉ ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 3px solid #000091;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== CORRECTIONS FINALES ===== */
/* Fix pour l'encodage UTF-8 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Assurer que tous les éléments utilisent le bon encodage */
input, select, textarea, button {
    font-family: inherit;
}

/* Fix pour les selects sur iOS */
select.form-control:not(:focus):not([data-touched="true"]) {
    border-color: #ddd !important;
    cursor: pointer !important;
}

select.form-control.error[data-touched="true"]:not(:focus) {
    border-color: #ce614a !important;
}

select.form-control:focus {
    border-color: #000091 !important;
}

/* État hover sur desktop uniquement */
@media (hover: hover) {
    .form-control:hover:not(:disabled) {
        border-color: #000091;
    }
    
    .btn-primary:hover {
        background: #1212ff !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .info-tooltip:hover {
        background: #000091;
        transform: scale(1.15);
    }
    
    .info-tooltip:hover::before {
        color: white;
    }
}

/* Correction du scroll horizontal mobile */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    main {
        max-width: 100vw !important;
    }
    
    .form-container {
        padding-top: 2rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .price-banner,
    .email-capture-section,
    .form-step-header {
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
        width: calc(100% + 1.5rem) !important;
    }
    
    .price-banner {
        overflow: visible !important;
        margin-top: 0 !important;
    }
    
    .fr-grid-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .form-control,
    .btn-primary,
    select,
    input,
    textarea {
        max-width: 100% !important;
    }
}

/* Fin du fichier CSS */