/* ==========================================================================
   IMPORT DES STYLES MODULAIRES PAR FORMULAIRE & FICHE
   ========================================================================== */
@import url('offres.css');
@import url('evenement.css');
@import url('association.css');
@import url('annonce.css');
@import url('onglet.css');

/* Custom stepper style */
.stepper-horizontal {
    margin-bottom: 2.5rem;
    position: relative;
}
.stepper-horizontal::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background-color: #e4e6eb;
    z-index: 1;
}
.stepper-horizontal .stepper-progress {
    position: absolute;
    top: 25px;
    left: 12.5%;
    height: 2px;
    background-color: #024a35;
    z-index: 1;
    width: 0%;
    transition: width 0.3s ease;
}
.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
    cursor: pointer;
}
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #e4e6eb;
    color: #6c757d;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.step-item.active .step-circle {
    background-color: #024a35;
    border-color: #024a35;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 74, 53, 0.25);
    transform: scale(1.1);
}
.step-item.completed .step-circle {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
}
.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}
.step-item.active .step-text {
    color: #024a35;
    font-weight: 700;
}
.step-item.completed .step-text {
    color: #198754;
}
.step-item:not(.completed):not(.active) {
    cursor: not-allowed;
}

/* S'assurer que les animations de transition d'étape ont un aspect de haute qualité */
.ent-step-container {
    animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   En-tête, Fil d'Ariane & Badges
   ========================================================================== */

.flat-title-inner {
    border-bottom: 1px solid #e4e6eb;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.flat-title-inner .title-group a.home {
    color: #073D30;
    font-weight: 700;
    transition: color 0.2s ease-in-out;
}

.flat-title-inner .title-group a.home:hover {
    color: #052820;
}

.flat-title-inner .title-group span {
    font-size: 14px;
    color: #8c9096;
}

.headings-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #e4e6eb;
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.headings-widget {
    flex: 1 1 500px;
    max-width: 100%;
}

.header-contact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Boutons de coordonnées avec boîte bordée */
.btn-contact-box {
    width: 44px;
    height: 44px;
    border-radius: 8px; /* Coins légèrement arrondis comme dans le template */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #4a5056;
    border: 1px solid #e4e6eb;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn-contact-box:hover {
    background-color: #073D30; /* Fond vert de la marque au survol */
    color: #ffffff;            /* Icone blanche */
    border-color: #073D30;
    transform: translateY(-2px);
}

.headings-widget .title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1d20;
    line-height: 1.25;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.headings-widget .icon-box {
    gap: 24px;
}

.headings-widget .icon-box .icons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4a5056;
    font-weight: 500;
}

.headings-widget .icon-box .icons i {
    font-size: 18px;
    color: #073D30; /* Couleur de marque du thème (Vert Foncé) */
    line-height: 1;
}

.headings-widget .icon-box .icons span {
    color: #24272c;
}

/* ==========================================================================
   Galerie Mosaïque de Photos
   ========================================================================== */

.gallery-mosaic .gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-mosaic .gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 61, 48, 0.12);
}

.gallery-mosaic .gallery-item img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-mosaic .gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-mosaic .gallery-overlay {
    background-color: rgba(7, 61, 48, 0.75); /* Vert de la marque avec opacité */
    backdrop-filter: blur(6px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 2;
}

.gallery-mosaic .gallery-overlay span {
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.gallery-mosaic .gallery-item:hover .gallery-overlay {
    background-color: rgba(5, 40, 32, 0.85);
    backdrop-filter: blur(8px);
}

.gallery-mosaic .gallery-item:hover .gallery-overlay span {
    transform: scale(1.05);
}

/* ==========================================================================
   Onglets de Navigation & Contenu
   ========================================================================== */

.tab-listing-scroll {
    margin-bottom: 30px;
}

.tab-listing-scroll .nav-pills {
    display: flex;
    gap: 12px;
    width: 100%;
}

.tab-listing-scroll .nav-pills .nav-item {
    flex: 1;
}

.tab-listing-scroll .nav-pills .nav-item .nav-link {
    border: 1px solid #e4e6eb;
    border-radius: 8px; /* Coins légèrement arrondis pour un aspect moderne */
    color: #24272c;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 8px;
    background-color: #ffffff;
    transition: all 0.25s ease-in-out;
}

.tab-listing-scroll .nav-pills .nav-item .nav-link.active,
.tab-listing-scroll .nav-pills .nav-item .nav-link:hover {
    background-color: #073D30 !important; /* Couleur de marque (Vert Foncé) */
    border-color: #073D30;
    color: #ffffff !important;
}

/* Zone de contenu des onglets */
.entreprise-profile-modern .tab-content {
    background-color: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.entreprise-profile-modern .tab-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1d20;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.entreprise-profile-modern .tab-content .text-muted {
    font-size: 15px;
    line-height: 1.75;
    color: #4a5056 !important;
}

/* ==========================================================================
   Barre Latérale & Formulaire
   ========================================================================== */

/* Carte principale de la barre latérale */
.entreprise-profile-modern .profile-sidebar-card {
    background-color: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.entreprise-profile-modern .sidebar-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1d20;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* Boutons circulaires d'action de contact rapide */
.entreprise-profile-modern .btn-contact-ring {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f6f6f6;
    color: #24272c;
    border: none;
    font-size: 16px;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.entreprise-profile-modern .btn-contact-ring:hover {
    background-color: #073D30 !important; /* Couleur primaire du thème */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(7, 61, 48, 0.15);
}

/* Personnalisation des champs du formulaire de contact */
.entreprise-profile-modern .form-inner form .form-group {
    margin-bottom: 16px;
}

.entreprise-profile-modern .form-inner form label {
    font-size: 14px;
    font-weight: 600;
    color: #24272c;
    margin-bottom: 6px;
}

.entreprise-profile-modern .form-inner form input[type="text"],
.entreprise-profile-modern .form-inner form input[type="email"],
.entreprise-profile-modern .form-inner form input[type="tel"],
.entreprise-profile-modern .form-inner form input[type="number"],
.entreprise-profile-modern .form-inner form select,
.entreprise-profile-modern .form-inner form textarea {
    width: 100% !important;
    border: 1px solid #e4e6eb !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #24272c !important;
    background-color: #ffffff !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

.entreprise-profile-modern .form-inner form input[type="text"]:focus,
.entreprise-profile-modern .form-inner form input[type="email"]:focus,
.entreprise-profile-modern .form-inner form input[type="tel"]:focus,
.entreprise-profile-modern .form-inner form input[type="number"]:focus,
.entreprise-profile-modern .form-inner form select:focus,
.entreprise-profile-modern .form-inner form textarea:focus {
    border-color: #073D30 !important;
    box-shadow: 0 0 0 3px rgba(7, 61, 48, 0.08) !important;
    outline: none !important;
}

/* Bouton de soumission du formulaire */
.entreprise-profile-modern .form-inner form button,
.entreprise-profile-modern .form-inner form input[type="submit"] {
    width: 100% !important;
    height: 50px !important;
    background-color: #073D30 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    border-radius: 8px !important;
    transition: all 0.25s ease-in-out !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.entreprise-profile-modern .form-inner form button:hover,
.entreprise-profile-modern .form-inner form input[type="submit"]:hover {
    background-color: #052820 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(7, 61, 48, 0.2) !important;
}

/* ==========================================================================
   Widget Get In Touch & Formulaire Modal
   ========================================================================== */

.sidebar-contact-card {
    background-color: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-contact-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.sidebar-contact-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.dealer-info-row {
    border-bottom: 1px solid #f1f5f9;
}

.dealer-avatar {
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
}

.dealer-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 3px solid #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dealer-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.dealer-verified {
    font-size: 13px;
    font-weight: 600;
}

.btn-contact-large {
    background-color: #073D30 !important;
    border-color: #073D30 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    transition: all 0.25s ease-in-out !important;
}

.btn-contact-large:hover {
    background-color: #052820 !important;
    border-color: #052820 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 61, 48, 0.25);
}

.btn-send-message-large {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    transition: all 0.25s ease-in-out !important;
}

.btn-send-message-large:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

/* Formulaire Modal */
#contactFormModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

#contactFormModal .modal-header {
    padding: 25px 30px 10px 30px;
}

#contactFormModal .modal-body {
    padding: 20px 30px 30px 30px;
}

#contactFormModal .form-wrapper-modal .form-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

#contactFormModal .form-wrapper-modal .form-subtitle {
    font-size: 14px;
    color: #64748b;
}

/* Champs de saisie du formulaire Modal */
#contactFormModal .form-inner-modal input[type="text"],
#contactFormModal .form-inner-modal input[type="email"],
#contactFormModal .form-inner-modal input[type="tel"],
#contactFormModal .form-inner-modal input[type="number"],
#contactFormModal .form-inner-modal select,
#contactFormModal .form-inner-modal textarea {
    width: 100% !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0px !important;
    padding: 10px 0px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background-color: transparent !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
}

#contactFormModal .form-inner-modal input[type="text"]:focus,
#contactFormModal .form-inner-modal input[type="email"]:focus,
#contactFormModal .form-inner-modal input[type="tel"]:focus,
#contactFormModal .form-inner-modal input[type="number"]:focus,
#contactFormModal .form-inner-modal select:focus,
#contactFormModal .form-inner-modal textarea:focus {
    border-bottom-color: #073D30 !important;
    box-shadow: none !important;
    outline: none !important;
}

#contactFormModal textarea[name="message"],
#contactFormModal textarea.form-control,
#contactFormModal .form-inner-modal textarea {
    height: 80px !important;
    resize: vertical !important;
}

#contactFormModal .form-inner-modal label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    display: inline-block;
}

/* Masquer les boutons d'étape multi-étapes et l'indicateur dans le modal */
#contactFormModal #psw-prev,
#contactFormModal #psw-next,
#contactFormModal #psw-preview,
#contactFormModal .psw-steps-indicator {
    display: none !important;
}

/* Alignement vertical des elements du bas de formulaire */
#contactFormModal .form-navigation {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
    margin-top: 10px !important;
}

/* Bouton d'envoi unique (Envoyer) */
#contactFormModal #psw-submit,
#contactFormModal .form-inner-modal input[type="submit"] {
    width: 100% !important;
    height: 54px !important;
    background-color: #073D30 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 10px !important;
    transition: all 0.25s ease-in-out !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 12px rgba(7, 61, 48, 0.15) !important;
}

#contactFormModal #psw-submit:hover,
#contactFormModal .form-inner-modal input[type="submit"]:hover {
    background-color: #052820 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(7, 61, 48, 0.25) !important;
}

/* Supprimer la bordure noire par défaut autour du formulaire dans le modal */
#contactFormModal #adding-form {
    border: none !important;
    padding: 0 5px !important;
}

/* ==========================================================================
   Sidebar Suggestions & Liste de Profils Autriva
   ========================================================================== */

/* Masquer la zone de recherche */
.psw-sidebar form {
    display: none !important;
}

/* Rendre le widget de suggestions de la sidebar premium */
.psw-sidebar .widget-listing,
.psw-sidebar .aximo_recent_posts_Widget {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
}

/* Titre du Widget de suggestions */
.psw-sidebar h2,
.psw-sidebar h3,
.psw-sidebar h4,
.psw-sidebar h5,
.psw-sidebar .widget-title,
.psw-sidebar .widgettitle {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Structure des elements de la liste (Autriva style) */
.psw-sidebar .post-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: none !important;
    margin-bottom: 12px !important;
    transition: all 0.2s ease !important;
}

.psw-sidebar .post-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Vignette/Thumbnail */
.psw-sidebar .post-thumb {
    flex: 0 0 80px !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.psw-sidebar .post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease !important;
}

.psw-sidebar .post-item:hover .post-thumb img {
    transform: scale(1.05) !important;
}

/* Contenu textuel de l'element */
.psw-sidebar .post-text {
    flex: 1 !important;
}

.psw-sidebar .post-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    display: block !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.psw-sidebar .post-item:hover .post-title {
    color: #073D30 !important;
}

.psw-sidebar .post-excerpt {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Masquer le grand bandeau de titre (Page Title Hero) sur les pages individuelles des Offres et Événements */
.single-market .page-title.centred.bg-color-1,
.single-evenement .page-title.centred.bg-color-1 {
    display: none !important;
}

/* Classes de remplacement des styles inline */
.psw-icon-primary-color {
    color: #073D30 !important;
}

.psw-gallery-single-img {
    min-height: 450px;
    max-height: 550px;
}

.psw-gallery-multi-img {
    min-height: 400px;
}

.psw-sidebar-sticky {
    top: 2rem;
}

.psw-avatar-placeholder {
    width: 70px;
    height: 70px;
    border: 1px solid #e4e6eb;
}

.psw-btn-dark-green {
    background-color: #073D30 !important;
    border-color: #073D30 !important;
}

.psw-btn-outline-claim {
    color: #64748b !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
}

.psw-btn-blue {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.psw-preview-img-contain {
    max-height: 150px;
    object-fit: contain;
}

.psw-preview-img-cover {
    max-height: 150px;
    object-fit: cover;
}

.psw-preview-poster-contain {
    max-height: 200px;
    object-fit: contain;
}

.psw-gallery-thumb-height {
    height: 120px;
    object-fit: cover;
}

.psw-badge-dark-green {
    background-color: #073D30 !important;
}

.psw-badge-light-teal {
    background-color: #e6f4f1;
    color: #073D30;
    border: 1px solid #b2dfdb;
}

.psw-badge-danger {
    background-color: rgba(var(--bs-danger-rgb, 220, 53, 69), 1) !important;
}

.psw-header-logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    background-color: #ffffff;
}

.psw-card-rounded {
    border-radius: 15px !important;
}

.psw-icon-circle-primary {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #e7f1ff;
}

.psw-icon-circle-success {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #d1e7dd;
}

.psw-icon-circle-warning {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #fff3cd;
}

.psw-icon-circle-danger {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #f8d7da;
}

.psw-icon-circle-lg-success {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background: #d1e7dd;
    font-size: 40px;
}

.psw-icon-circle-auth {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    font-size: 35px;
    background: #e0f3ff;
}

.psw-card-auth-gradient {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
}

.psw-otp-input {
    width: 200px;
    letter-spacing: 5px;
}

.psw-modal-icon-lock {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #e7f1ff;
}

.psw-market-hero-img {
    max-height: 400px;
}

.psw-d-none {
    display: none !important;
}


