/* --- Style général de la page Activité --- */
.sra-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0px;
}
.sra-header h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}
.sra-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .sra-content-grid {
        grid-template-columns: 2fr 1fr;
    }
}
.sra-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}
.sra-description {
    line-height: 1.7;
}

/* --- Style de la barre latérale "Infos Pratiques" --- */
.sra-infos-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 40px;
}
.sra-infos-box h3 {
    margin-top: 0;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}
.sra-infos-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.sra-infos-box ul li {
    margin-bottom: 15px;
    line-height: 1.5;
}
.sra-infos-box ul li strong {
    display: flex; /* Utilise flexbox pour un alignement parfait */
    align-items: center;
    color: #333;
    margin-bottom: 5px; /* Ajoute un petit espace sous le titre */
}

.sra-info-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    opacity: 0.7;
}

/* --- Style du formulaire de réservation --- */
.sra-booking-form-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.sra-booking-form-wrapper h4 {
    margin-top: 0;
}
.sra-quantity-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
#sra-booking-form input[type="number"] {
    width: 60px;
    padding: 8px;
    text-align: center;
}
#sra-booking-form button {
    width: 100%;
    padding: 12px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
#sra-booking-form button:hover {
    background-color: #ff4757;
}
#sra-booking-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Style des messages de retour (feedback) --- */
#sra-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}
.sra-feedback.success { background-color: #d4edda; color: #155724; }
.sra-feedback.error { background-color: #f8d7da; color: #721c24; }
.sra-feedback.notice { background-color: #fff3cd; color: #856404; }

/* Avis pour se connecter ou événement complet */
.sra-login-notice, .sra-sold-out-notice {
    text-align: center;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
}

/* --- Style du formulaire de création [formulaire_activite] --- */
#sra-frontend-form {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
#sra-frontend-form p {
    margin-bottom: 15px;
}
#sra-frontend-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
#sra-frontend-form input[type="text"],
#sra-frontend-form input[type="datetime-local"],
#sra-frontend-form input[type="number"],
#sra-frontend-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#sra-frontend-form button {
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

/* --- Style du Popup (Modal) de Confirmation --- */
.sra-modal {
    display: none;
}
.sra-modal.is-open {
    display: block;
}
.sra-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.sra-modal-container {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: sra-slide-down 0.3s ease-out;
}
.sra-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}
.sra-modal-header h2 {
    margin: 0;
    font-size: 1.4em;
}
.sra-modal-close {
    background: transparent;
    border: 0;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.sra-modal-content {
    padding: 20px;
    line-height: 1.6;
}
.sra-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}
.sra-modal-content li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sra-modal-content li:last-child {
    border-bottom: none;
}
.sra-booking-code-wrapper {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    text-align: center;
    border-radius: 4px;
}
.sra-modal-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #ddd;
}
.sra-modal-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.sra-modal-btn:hover {
    background-color: #5a6268;
}
.sra-booking-codes-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}
.sra-booking-codes-list li {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff6b6b;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
.sra-booking-codes-list li:last-child {
    border-bottom: none;
}

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

/* Style pour la liste de villes sur le formulaire */
.sra-form-group-checkboxes {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.sra-checkbox-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    columns: 2;
}
.sra-checkbox-list li {
    margin-bottom: 8px;
}

/* --- Styles pour les taxonomies sous la description --- */
.sra-activity-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.sra-terms-list {
    margin-top: 5px;
}
.sra-term-item {
    display: inline-block;
    background-color: #e9ecef;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 0.9em;
    text-decoration: none;
    color: #495057;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}
.sra-term-item:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}
.sra-term-item.sra-tag {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}
.sra-term-item.sra-tag:hover {
    background-color: #ffeeba;
}

/* --- Style pour les Pages d'Archives --- */
.sra-archive-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.sra-archive-title {
    font-size: 2.8rem;
}

/* --- Grille des Activités --- */
.sra-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* --- Responsive Design de la Grille --- */
@media (max-width: 1024px) {
    .sra-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .sra-grid-container {
        grid-template-columns: repeat(2, 1fr); /* ✅ Votre modification pour 2 colonnes sur mobile */
    }
    .sra-archive-title {
        font-size: 2rem;
    }
}


/*
 * ===================================================================
 * SECTION CARTE D'ACTIVITÉ
 * ===================================================================
*/

/* --- Conteneur principal de la carte --- */
.sra-activity-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.sra-activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --- Conteneur de l'image (PARENT POUR LE BOUTON) --- */
.sra-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* ✅ LA CORRECTION EST ICI */
    background-color: #f0f0f0;
    flex-shrink: 0;
    overflow: hidden; /* Assure que rien ne déborde, comme les coins de l'image */
}
.sra-card-image a,
.sra-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contenu texte de la carte --- */
.sra-card-content {
    padding: 7px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.sra-card-title {
    font-size: 1.2rem;
    margin: 0 0 0px 0;
    font-weight: 600;
}
.sra-card-title a {
    text-decoration: none;
    color: inherit;
}
.sra-card-price {
    margin: 0;
    margin-top: auto;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff6b6b;
}
.sra-card-price .sra-price-label {
    font-weight: 400;
    font-size: 0.9em;
    color: #6c757d;
}
.sra-card-price .sra-price-free {
    color: #28a745;
    font-weight: bold;
}

/* --- Bouton Favori --- */
.sra-favorite-toggle {
    /* Positionnement précis et superposition */
    position: absolute !important;
    z-index: 100 !important;
    top: 5px;      /* Plus proche du coin */
    right: 5px;     /* Plus proche du coin */
    left: auto;

    /* Apparence visuelle */
    width: 20px;   /* Taille légèrement réduite */
    height: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Fond sombre et transparent */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Fine bordure blanche transparente */
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15); /* Ombre plus subtile */
    backdrop-filter: blur(4px); /* Effet de verre dépoli pour la lisibilité */
    cursor: pointer;

    /* Centrage de l'icône à l'intérieur */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Animation douce */
    transition: all 0.25s ease-in-out;
}
.sra-favorite-toggle .sra-favorite-icon {
    font-size: 20px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.sra-favorite-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.7);
}
.sra-favorite-toggle.is-favorite .sra-favorite-icon {
    color: #ff6b6b;
}
.sra-favorite-toggle.is-favorite:hover .sra-favorite-icon {
    color: #ff4757;
}

/* --- Style pour le Slider --- */
.sra-slider {
    width: 100%;
    padding: 10px 0 40px 0;
    overflow: visible;
}
.sra-slider .swiper-slide {
    height: auto;
}
.sra-slider .swiper-button-next,
.sra-slider .swiper-button-prev {
    background-color: white;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #ff6b6b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sra-slider .swiper-button-next:hover,
.sra-slider .swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.sra-slider .swiper-button-next:after,
.sra-slider .swiper-button-prev:after {
    font-size: 10px;
    font-weight: bold;
}
.sra-slider .swiper-button-prev {
    left: -25px;
}
.sra-slider .swiper-button-next {
    right: -25px;
}
@media (max-width: 767px) {
    .sra-slider .swiper-button-prev {
        left: -10px;
    }
    .sra-slider .swiper-button-next {
        right: -10px;
    }
}
.sra-slider .swiper-pagination-bullet {
    background-color: #ccc;
    width: 10px;
    height: 10px;
    opacity: 0.8;
    transition: background-color 0.2s ease;
}
.sra-slider .swiper-pagination-bullet-active {
    background-color: #ff6b6b;
}

/* On force le conteneur de l'image à être le référent pour la position */
.sra-activity-card .sra-card-image {
    position: relative !important;
}

/* On force le bouton à se positionner de manière absolue à l'intérieur */
.sra-activity-card .sra-favorite-toggle {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 2 !important;
}

/*
 * ===================================================================
 * STYLE POUR LES TABLEAUX DE BORD
 * ===================================================================
*/
.sra-dashboard {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* --- Onglets (Mes Réservations) --- */
.sra-tabs {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}
.sra-tab-link {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.sra-tab-link.active {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
    font-weight: bold;
}
.sra-tab-content {
    display: none;
}
.sra-tab-content.active {
    display: block;
}

/* --- Carte de Réservation (Utilisateur) --- */
.sra-reservation-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}
.sra-reservation-card.past {
    opacity: 0.7;
}
.sra-reservation-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}
.sra-reservation-details h3 {
    margin: 0 0 10px;
}
.sra-reservation-details h3 a {
    text-decoration: none;
    color: #333;
}
.sra-reservation-details p {
    margin: 5px 0;
}
.sra-reservation-codes ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sra-reservation-codes code {
    background: #e0e0e0;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* --- Carte d'Activité (Organisateur) --- */
.sra-organizer-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}
.sra-organizer-card-header {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.sra-organizer-card-header h3 {
    margin: 0;
    flex-grow: 1;
}
.sra-organizer-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}
.sra-toggle-participants {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.sra-participants-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.sra-participants-list.open {
    max-height: 1000px; /* Hauteur suffisante pour afficher la liste */
}
.sra-participants-list table {
    width: 100%;
    border-collapse: collapse;
}
.sra-participants-list th, 
.sra-participants-list td {
    text-align: left;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
}
.sra-participants-list tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

/*
 * ===================================================================
 * STYLE RESPONSIVE POUR LA TABLE DES PARTICIPANTS (MOBILE)
 * ===================================================================
*/
@media (max-width: 767px) {
    /* On cache l'en-tête du tableau sur mobile */
    .sra-responsive-table thead {
        display: none;
    }

    /* Chaque ligne <tr> devient une carte */
    .sra-responsive-table tr {
        display: block;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 15px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    /* Chaque cellule <td> devient une ligne avec son label */
    .sra-responsive-table td {
        display: flex;
        justify-content: space-between; /* Place le label à gauche et la valeur à droite */
        align-items: center;
        padding: 10px 15px;
        text-align: right; /* Aligne le texte de la valeur à droite */
        border-bottom: 1px solid #f1f1f1;
    }
    .sra-responsive-table tr td:last-child {
        border-bottom: none;
    }

    /* On utilise le "data-label" pour créer le titre de chaque ligne */
    .sra-responsive-table td::before {
        content: attr(data-label); /* Récupère le texte du data-label */
        font-weight: bold;
        text-align: left;
        color: #333;
        margin-right: 15px;
    }

    /* Ajustement pour que la table ne soit pas collée aux bords */
    .sra-participants-list table {
        background-color: transparent;
        border: none;
    }
    .sra-participants-list tbody,
    .sra-participants-list tr,
    .sra-participants-list td {
        display: block;
        width: 100%;
    }
    .sra-participants-list td a {
        word-break: break-all; /* Coupe les emails trop longs */
    }
}
/*
 * ===================================================================
 * STYLE POUR LE TABLEAU DE BORD ORGANISATEUR (AJOUTS)
 * ===================================================================
*/

/* Conteneur pour les boutons d'action */
.sra-organizer-actions {
    margin-left: auto; /* Pousse les boutons tout à droite */
    display: flex;
    gap: 10px; /* Espace entre les boutons */
}

/* Style du nouveau bouton "Modifier" */
.sra-edit-button {
    background-color: #6c757d; /* Couleur grise neutre */
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px; /* Même taille que l'autre bouton */
    line-height: 1.5;
    transition: background-color 0.2s;
}

.sra-edit-button:hover {
    background-color: #5a6268;
    color: white;
}

/* Ajustement responsive pour que l'en-tête ne soit pas surchargé */
@media (max-width: 767px) {
    .sra-organizer-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sra-organizer-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .sra-organizer-actions a,
    .sra-organizer-actions button {
        text-align: center;
    }
}

/*
 * ===================================================================
 * STYLE POUR LA MODALE D'EMAIL
 * ===================================================================
*/
.sra-email-participants-btn {
    background-color: #17a2b8; /* Bleu-vert pour l'information */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}
.sra-email-participants-btn:hover {
    background-color: #138496;
}

/* Formulaire dans la modale */
#sra-email-form .sra-form-group {
    margin-bottom: 15px;
}
#sra-email-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
#sra-email-form input[type="text"],
#sra-email-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.sra-modal-btn-primary {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
.sra-modal-btn-primary:hover {
    background-color: #ff4757;
}

#sra-email-feedback {
    margin-top: 15px;
}

/*
 * ===================================================================
 * STYLE POUR L'IMAGE STICKY ET LA SECTION CONTACT
 * ===================================================================
*/

/* --- Image Sticky --- */
/* On change la disposition de la grille principale */
@media (min-width: 768px) {
    .sra-content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.sra-main-content-sticky {
    /* Ce conteneur va permettre à l'image d'être sticky */
    position: relative;
}

.sra-sticky-element {
    position: sticky;
    top: 40px; /* Espace depuis le haut de la page */
}

/* On annule l'ancien effet sticky de la sidebar */
.sra-infos-box {
    position: static;
}


/* --- Section Contact Organisateur --- */
.sra-organizer-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.sra-organizer-contact h3 {
    margin-top: 0;
    font-size: 1.2rem;
}
.sra-organizer-contact ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}
.sra-organizer-contact li {
    margin-bottom: 10px;
}
.sra-organizer-contact a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
    font-size: 0.95em;
}
.sra-organizer-contact a:hover {
    color: #ff6b6b;
}
/* On cible maintenant les images des icônes */
.sra-contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.sra-organizer-contact a:hover .sra-contact-icon {
    opacity: 1;
}

/* --- Style pour le bouton Pause et l'état "is-paused" --- */
.sra-pause-button {
    background-color: #ffc107; /* Jaune pour l'avertissement */
    color: #212529;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}
.sra-pause-button:hover {
    background-color: #e0a800;
}
.sra-organizer-card.is-paused {
    opacity: 0.6;
    background-color: #fafafa;
}
.sra-status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    margin-left: 10px;
}
.sra-status-badge.paused {
    background-color: #ffc107;
    color: #212529;
}
.sra-status-badge.expired {
    background-color: #6c757d;
}
/* ===================================================================
   STYLES POUR LA RECHERCHE D'ACTIVITÉS [soft_activite_recherche]
   =================================================================== */
.sra-search-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sra-search-header {
    margin-bottom: 20px;
}

.sra-search-title {
    font-size: 1.8em;
    margin: 0 0 10px;
    color: #212529;
}

.sra-search-city-info {
    margin: 0;
    font-size: 0.95em;
    color: #6c757d;
}

.sra-search-city-info strong {
    color: #ff6b6b;
}

.sra-search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sra-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.sra-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sra-search-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.sra-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    pointer-events: none;
}

.sra-search-filters {
    display: flex;
    gap: 10px;
}

.sra-city-filter,
.sra-keyword-filter {
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.sra-city-filter:focus,
.sra-keyword-filter:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.sra-search-loader {
    text-align: center;
    padding: 20px;
    font-size: 1em;
    color: #6c757d;
}

.sra-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sra-search-results {
    min-height: 100px;
}

.sra-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1em;
}

.sra-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background-color: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .sra-search-form {
        flex-direction: column;
    }

    .sra-search-input-wrapper {
        min-width: 100%;
    }

    .sra-city-filter,
    .sra-keyword-filter {
        width: 100%;
    }
    
    .sra-search-filters {
        flex-direction: column;
        width: 100%;
    }

    .sra-search-title {
        font-size: 1.5em;
    }
}

/* ===================================================================
   STYLES POUR LA VÉRIFICATION DE CODE [soft_activite_verification]
   =================================================================== */

.sra-verification-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sra-verification-header {
    text-align: center;
    margin-bottom: 30px;
}

.sra-verification-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.sra-verification-description {
    color: #6c757d;
    font-size: 1em;
    line-height: 1.6;
}

.sra-verification-form {
    margin-bottom: 20px;
}

.sra-verification-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sra-verification-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.sra-verification-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.sra-verification-btn {
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sra-verification-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.sra-verification-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sra-verification-hint {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    margin: 0;
}

.sra-verification-loader {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: #007bff;
    font-weight: 500;
}

.sra-verification-result {
    margin-top: 30px;
    min-height: 50px;
}

/* Résultat de succès */
.sra-verification-success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.sra-verification-success .sra-verification-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.sra-verification-success .sra-verification-status {
    font-size: 1.8em;
    color: #155724;
    margin-bottom: 10px;
    font-weight: 600;
}

.sra-verification-success .sra-verification-message {
    color: #155724;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.sra-verification-details {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    margin-top: 20px;
}

.sra-verification-details h5 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.sra-verification-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sra-verification-row:last-child {
    border-bottom: none;
}

.sra-verification-label {
    color: #6c757d;
    font-weight: 500;
}

.sra-verification-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
}

/* Résultat d'erreur */
.sra-verification-error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.sra-verification-error .sra-verification-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.sra-verification-error .sra-verification-status {
    font-size: 1.8em;
    color: #721c24;
    margin-bottom: 10px;
    font-weight: 600;
}

.sra-verification-error .sra-verification-message {
    color: #721c24;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.sra-verification-details-error {
    color: #721c24;
    font-size: 0.95em;
    margin-top: 10px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .sra-verification-container {
        padding: 20px;
    }

    .sra-verification-title {
        font-size: 1.5em;
    }

    .sra-verification-input-wrapper {
        flex-direction: column;
    }

    .sra-verification-btn {
        width: 100%;
    }

    .sra-verification-row {
        flex-direction: column;
        gap: 5px;
    }

    .sra-verification-value {
        text-align: left;
    }
}
