/* ========================================
   SEARCH BAR NATIVE - CSS MOBILE FIRST
   Zones de saisie BLANCHES dans zone ORANGE
   ======================================== */

/* Container principal */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Wrapper = zone ORANGE */
.search-wrapper {
    display: flex;
    flex-direction: column;
    background: #f7941e;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 12px;
    gap: 10px;
}

.search-wrapper:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.search-wrapper:focus-within {
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

/* ========================================
   CHAMPS DE SAISIE = BLANCS (Mobile first)
   ======================================== */
.search-field {
    display: flex;
    align-items: center;
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 15px;
    min-height: 55px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-field:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.search-field:focus-within {
    box-shadow:
        0 0 0 3px rgba(0, 123, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Icônes */
.search-field-icon {
    margin-right: 12px;
    color: #6c757d;
    font-size: 18px;
    transition: color 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.search-field:focus-within .search-field-icon {
    color: #007bff;
}

/* Contenu des champs */
.search-field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Labels */
.search-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs */
.search-input {
    border: none;
    outline: none;
    background: #ffffff;
    font-size: 15px;
    color: #333;
    padding: 0;
    width: 100%;
    min-width: 0;
}

.search-input::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

.search-input:focus::placeholder {
    color: #ced4da;
}

/* ========================================
   SÉPARATEUR (Mobile first - caché)
   ======================================== */
.search-separator {
    display: none;
}

/* ========================================
   BOUTON DE RECHERCHE (Mobile first)
   ======================================== */
.search-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.search-button:active {
    transform: translateY(0);
}

.search-button i {
    font-size: 16px;
}

.search-button-text {
    white-space: nowrap;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
   ======================================== */

/* Écrans moyens (>= 480px) */
@media (min-width: 480px) {
    .search-container {
        padding: 15px;
    }

    .search-wrapper {
        padding: 15px;
        gap: 12px;
    }

    .search-field {
        padding: 14px 18px;
        min-height: 60px;
    }

    .search-field-icon {
        font-size: 20px;
        margin-right: 14px;
    }

    .search-label {
        font-size: 12px;
    }

    .search-input {
        font-size: 16px;
    }

    .search-button {
        padding: 16px 24px;
        font-size: 17px;
    }
}

/* Tablettes et desktop (>= 768px) */
@media (min-width: 768px) {
    .search-container {
        padding: 20px;
    }

    .search-wrapper {
        flex-direction: row;
        align-items: stretch;
        padding: 15px;
        gap: 0;
        border-radius: 12px;
    }

    .search-field {
        padding: 15px 20px;
        min-height: 65px;
        border-radius: 8px;
        margin: 0 5px;
    }

    .search-field:first-child {
        margin-left: 0;
    }

    .search-separator {
        display: block;
        width: 1px;
        background: rgba(255, 255, 255, 0.4);
        margin: 12px 5px;
        align-self: stretch;
    }

    .search-button {
        margin-left: 5px;
        padding: 15px 30px;
        min-width: 150px;
        border-radius: 8px;
    }
}

/* Grands écrans (>= 992px) */
@media (min-width: 992px) {
    .search-field {
        padding: 18px 25px;
        min-height: 70px;
    }

    .search-field-icon {
        font-size: 22px;
    }

    .search-input {
        font-size: 17px;
    }

    .search-button {
        padding: 18px 35px;
        font-size: 18px;
    }
}
