@charset "UTF-8";
/**
 * Styles pour Publication Libre
 * Fichier : /pages/publication-libre/publication-libre.css
 * Version avec corrections pour les curseurs
 */

/* ===== RESET ET BASE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== CORRECTIONS CURSEUR POUR SELECTS ===== */
/* Force le curseur pointer sur TOUS les selects */
select.form-control,
select.form-control:not([disabled]),
select.form-control:enabled,
.form-control[type="select"],
.form-group select,
#publication-libre-form select,
select#type_annonce,
select#ville,
select {
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Curseur not-allowed UNIQUEMENT pour les selects désactivés */
select.form-control:disabled,
select.form-control[disabled],
select[disabled],
.form-control:disabled {
    cursor: not-allowed !important;
    opacity: 0.6;
    background-color: #f5f5f5 !important;
}

/* Override spécifique pour les selects activés */
select.form-control:not(:disabled),
select.form-control:not([disabled]),
select:not(:disabled):not([disabled]) {
    cursor: pointer !important;
    background-color: white !important;
}

/* Hover state pour les selects activés */
select.form-control:not(:disabled):hover,
select.form-control:not([disabled]):hover {
    cursor: pointer !important;
    border-color: #000091 !important;
    background-color: white !important;
}

/* Focus state */
select.form-control:not(:disabled):focus,
select.form-control:not([disabled]):focus {
    cursor: pointer !important;
    outline: none !important;
    border-color: #000091 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 145, 0.1) !important;
}

/* ===== HERO SECTION ===== */
.hero-publication {
    background: linear-gradient(135deg, #f5f5fe 0%, #e8e8fb 100%);
    padding: 3rem 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: #000091;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    color: #3a3a3a;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== FORM CONTAINER ===== */
.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: 3rem;
}

.form-section-header {
    background: #f5f5fe;
    padding: 1rem 1.5rem;
    margin: -2rem -2rem 2rem;
    border-left: 4px solid #000091;
}

.form-section-header h2 {
    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;
}

/* ===== FORM ELEMENTS ===== */
.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-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;
}

.required {
    color: #ce614a;
}

.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;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #000091;
}

.form-control.error {
    border-color: #ce614a;
}

.form-control.valid {
    border-color: #18753c;
}

/* Select avec flèche personnalisée */
select.form-control {
    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'%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 !important; /* Force le curseur pointer */
}

/* Override pour être sûr que le curseur pointer fonctionne */
select.form-control:not([disabled]):not(:disabled) {
    cursor: pointer !important;
}

/* Hauteurs fixes pour uniformité */
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;
    box-sizing: border-box;
}

/* Champ readonly */
.form-control[readonly],
.form-control:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Textarea spéciale pour l'annonce */
.annonce-textarea {
    min-height: 400px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    resize: vertical;
    height: auto !important;
    cursor: text !important;
}

/* ===== PRICE INFO ===== */
.price-info {
    background: linear-gradient(135deg, #f5f5fe 0%, #e8e8fb 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.price-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-label {
    font-weight: 600;
    color: #666;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000091;
}

/* ===== JOURNAL GRID ===== */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.journal-item {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.journal-item:hover {
    border-color: #000091;
    background: #f5f5fe;
}

.journal-item.selected {
    border-color: #000091;
    background: #e3e3fd;
}

.journal-item input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.journal-item label {
    cursor: pointer;
    display: block;
}

.journal-name {
    font-weight: 600;
    display: block;
}

.journal-site {
    font-size: 0.85rem;
    color: #666;
}

/* ===== CHARACTER COUNTER ===== */
.char-counter {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f8f8;
    border-radius: 4px;
}

.char-counter.warning {
    color: #ff9940;
    background: #fff4e5;
}

.char-counter.danger {
    color: #e1000f;
    background: #ffe5e5;
}

/* ===== INFO ALERT ===== */
.info-alert {
    background-color: #e3e3fd;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid #000091;
    display: flex;
    gap: 1rem;
}

.info-alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.info-alert-content {
    flex: 1;
}

.info-alert-content h4 {
    color: #000091;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.info-alert-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-alert-content li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #161616;
}

/* ===== RECAP SECTION ===== */
.recap-section {
    background: #f5f5fe;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.recap-section h3 {
    color: #000091;
    margin-bottom: 1rem;
}

.recap-table {
    width: 100%;
    border-collapse: collapse;
}

.recap-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.recap-table td {
    padding: 0.75rem 0;
}

.recap-table td:first-child {
    font-weight: 600;
    color: #666;
}

.recap-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.recap-table .total-row {
    border-top: 2px solid #000091;
}

.recap-table .total-row td {
    padding-top: 1rem;
    font-size: 1.1rem;
}

/* ===== BOTTOM CTA ===== */
.bottom-cta {
    background: #f5f5fe;
    padding: 2rem;
    margin: 2rem -2rem -2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #000091 !important;
    background-color: #000091 !important;
    color: white !important;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #1212ff !important;
    background-color: #1212ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer !important;
}

.btn-primary:disabled {
    background: #929292 !important;
    background-color: #929292 !important;
    cursor: not-allowed !important;
    transform: none;
    box-shadow: none;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero-publication {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .form-container {
        padding: 1rem;
        border-radius: 0;
    }
    
    .form-section-header {
        margin: -1rem -1rem 1.5rem;
        padding: 1rem;
    }
    
    .form-section-header h2 {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .journal-grid {
        grid-template-columns: 1fr;
    }
    
    .recap-section {
        padding: 1rem;
    }
    
    .bottom-cta {
        margin: 1rem -1rem -1rem;
        padding: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.875rem 2rem;
    }
    
    .annonce-textarea {
        min-height: 300px;
        font-size: 14px;
    }
    
    /* Grid responsive */
    .fr-grid-row--gutters > [class^="fr-col"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ===== OVERRIDE FINAL POUR LES CURSEURS ===== */
/* Force absolue pour tous les selects non désactivés */
#publication-libre-form select:not([disabled]):not(:disabled) {
    cursor: pointer !important;
}

/* Force le curseur sur les options */
#publication-libre-form select option {
    cursor: pointer !important;
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-publication,
    .btn-primary,
    .bottom-cta {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        padding: 0;
    }
}