.sjw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin:20px 0}
.sjw-box{background:#fff;border:1px solid #e6e6e6;border-radius:14px;padding:20px;box-shadow:0 4px 14px rgba(0,0,0,.04)}
.sjw-form input,.sjw-form textarea,
.sjw-form select{width:100%;padding:12px;border:1px solid #d9d9d9;border-radius:10px;margin-top:6px}
.sjw-form button,.sjw-button{display:inline-block;background:#0f766e;color:#fff!important;padding:12px 18px;border-radius:10px;text-decoration:none;border:0;cursor:pointer}
.sjw-error{border-color:#ef4444}
.sjw-success{border-color:#10b981}
.sjw-list{display:grid;gap:16px}

/* === DESIGN ANNONCES === */

.sjw-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sjw-box {
    border: 1px solid #cfe3ff;
    border-radius: 12px;
    padding: 20px;
    background: #eaf4ff;
    transition: 0.2s ease;
}

.sjw-box:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.sjw-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #1e3a8a;
}

.sjw-box p {
    margin: 5px 0;
    color: #555;
}

.sjw-box a {
    color: #1e3a8a;
    font-weight: 500;
    text-decoration: none;
}

.sjw-box a:hover {
    text-decoration: underline;
}

.sjw-box p {
    margin-bottom: 8px;
}

/* Boutons */
.sjw-form button {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.sjw-form button:hover {
    background: #1c357a;
}
.sjw-list .sjw-box {
    background: #f8fbff;
    border: 2px solid #1e3a8a;
}
.sjw-list .sjw-box {
    background: #eaf4ff !important;
    border: 3px solid #1e3a8a !important;
}

.sjw-list .sjw-box h3 {
    color: #124175 !important;
}
/* === FORMULAIRE CREATION ANNONCE === */

.sjw-form {
    max-width: 760px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sjw-form p {
    margin-bottom: 22px;
}

.sjw-form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #163d77;
    margin-bottom: 8px;
}

.sjw-form input,
.sjw-form textarea,
.sjw-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.sjw-form textarea {
    min-height: 180px;
    resize: vertical;
}

.sjw-form input:focus,
.sjw-form textarea:focus,
.sjw-form select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
}

.sjw-form button {
    min-width: 220px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
}
.sjw-form {
    max-width: 760px !important;
    margin: 40px auto !important;
    padding: 30px !important;
    background: #f8fbff !important;
    border: 2px solid #1e3a8a !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.sjw-form p {
    margin-bottom: 24px !important;
}

.sjw-form label {
    display: block !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 8px !important;
}

.sjw-form textarea {
    min-height: 180px !important;
}
/*Woocommerce*/
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
    background: #eaf2ff !important;
    color: #1e3a8a !important;
    border-top: 4px solid #3b82f6 !important;
    border-radius: 10px !important;
    padding: 20px 24px !important;
}

.woocommerce-message * {
    color: #1e3a8a !important;
}

.woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message .button {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
/*color prix*/
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #0f4c81 !important; 
}

.woocommerce div.product p.price span,
.woocommerce div.product span.price span {
    color: #374151 !important; 
}
/* TTC en bleu comme le prix */
.woocommerce div.product p.price .woocommerce-Price-amount {
    color: #0f4c81 !important;
}

/* HT plus discret mais lisible */
.woocommerce div.product p.price small {
    color: #4b5563 !important;
}
/*CV + fun*/
.sjw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.sjw-grid .sjw-box {
    background: #eaf4ff !important;
    border: 1px solid #d9e2f0;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sjw-grid .sjw-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.sjw-grid .sjw-box h3 {
    margin: 0 0 16px 0;
    color: #0f4c81;
    font-size: 30px;
    line-height: 1.2;
}

.sjw-grid .sjw-box p {
    margin: 10px 0;
    font-size: 18px;
    color: #374151;
}

.sjw-grid .sjw-box strong {
    color: #1e3a8a;
}

.sjw-locked {
    margin-top: 18px !important;
    padding: 12px 14px;
    background: #eef5ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    color: #1e3a8a !important;
    font-weight: 600;
    font-size: 15px !important;
}
/*ajustement presentatioCV liste*/
.sjw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.sjw-pagination .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 10px 14px;
    text-align: center;
    border: 1px solid #cdd9ee;
    border-radius: 10px;
    background: #ffffff;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.sjw-pagination .page-numbers.current {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.sjw-pagination .page-numbers:hover {
    background: #eef4ff;
}
/* CARTES CV COTE RECRUTEUR */
.sjw-grid .sjw-box {
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(15, 76, 129, 0.06);
}

.sjw-grid .sjw-box h3 {
    margin-bottom: 18px;
    color: #0f4c81;
    font-size: 28px;
    line-height: 1.2;
}

.sjw-grid .sjw-box p {
    margin: 10px 0;
    font-size: 17px;
    line-height: 1.6;
    color: #334155;
}

.sjw-grid .sjw-box strong {
    color: #1e3a8a;
    font-weight: 700;
}

.sjw-content {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5edf7;
    color: #475569;
}
/*bouton bleu*/
.sjw-button {
    background-color: #044078 !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sjw-button:hover {
    background-color: #022f59 !important;
}
/*pages annonces*/
.sjw-pagination {
    margin-top: 30px;
    text-align: center;
}

.sjw-pagination a,
.sjw-pagination span {
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f5f5f5;
    text-decoration: none;
}

.sjw-pagination .current {
    background: #1e3a8a;
    color: white;
}

/*box annonce*/
.sjw-box p strong {
    color: #1e3a8a;
}

/*filtres annonces*/
.sjw-filters {
    margin-bottom: 20px;
}

.sjw-filters form {
    display: flex;
    justify-content: flex-start;
}

.sjw-filters select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 12px 40px 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    min-width: 250px;

    background-image: url("data:image/svg+xml;utf8,<svg fill='%231e3a8a' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sjw-filters select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30,58,138,0.1);
}
/* === ANNONCES PUBLIQUES : LIRE LA SUITE + REPONSE === */
.sjw-readmore {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #d7e6f8;
}

.sjw-readmore summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
    background-color: #044078;
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    line-height: 1.2;
}

.sjw-readmore summary::-webkit-details-marker {
    display: none;
}

.sjw-readmore summary:hover,
.sjw-readmore summary:focus {
    background-color: #022f59;
    outline: none;
}

.sjw-readmore[open] summary {
    margin-bottom: 16px;
}

.sjw-readmore .sjw-content {
    margin-top: 12px;
}

.sjw-reply-wrap {
    margin-top: 22px !important;
}

.sjw-reply-button {
    display: inline-block;
}

/* === PAGE DE REPONSE ANNONCE === */
.sjw-reply-info {
    margin-bottom: 24px;
}

.sjw-reply-info h3 {
    margin-top: 0;
}

/* === FORMULAIRE PUBLIC DEPOT CV === */
.sjw-cv-form h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.sjw-cv-form .sjw-consent label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600 !important;
    line-height: 1.4;
}

.sjw-cv-form .sjw-consent input[type="checkbox"] {
    width: auto !important;
    margin-top: 4px;
    flex: 0 0 auto;
}


/* === FORMULAIRE PUBLIC DEPOT CV : NOM PUBLIC AUTOMATIQUE + LARGEUR === */
.sjw-form.sjw-cv-form {
    max-width: 1040px !important;
    width: 100% !important;
    padding: 42px !important;
}

.sjw-form.sjw-cv-form input,
.sjw-form.sjw-cv-form textarea,
.sjw-form.sjw-cv-form select {
    font-size: 17px !important;
}

@media (max-width: 767px) {
    .sjw-form.sjw-cv-form {
        padding: 24px !important;
    }
}

/* === ANNONCES RECRUTEUR : PHOTOS + VIDEO === */
.sjw-job-media-fields {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: #f8fbff;
}

.sjw-job-media-fields h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.sjw-help {
    color: #475569;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.sjw-current-photos,
.sjw-photo-inputs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sjw-current-photo {
    display: block !important;
    font-weight: 600 !important;
}

.sjw-current-photo img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe5f2;
    margin-bottom: 8px;
}

.sjw-current-photo input[type="checkbox"] {
    width: auto !important;
    margin-right: 6px;
}

.sjw-photo-inputs input[type="file"] {
    padding: 12px !important;
    background: #ffffff;
    border: 1px dashed #b8c7da !important;
}

.sjw-job-media {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5edf7;
}

.sjw-job-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sjw-job-photo-link {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #dbe5f2;
    background: #f1f5f9;
    aspect-ratio: 3 / 2;
}

.sjw-job-photo-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.sjw-job-photo-link:hover img {
    transform: scale(1.04);
}

.sjw-job-video {
    margin-top: 18px !important;
}

.sjw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(2, 15, 32, 0.86);
}

.sjw-lightbox.is-open {
    display: flex;
}

.sjw-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background: #ffffff;
}

.sjw-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #044078;
    cursor: pointer;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
}

body.sjw-lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .sjw-current-photos,
    .sjw-photo-inputs,
    .sjw-job-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .sjw-job-media-fields {
        padding: 18px;
    }

    .sjw-current-photos,
    .sjw-photo-inputs,
    .sjw-job-gallery {
        grid-template-columns: 1fr;
    }
}

.sjw-label-note {
    font-weight: 400;
    font-size: 0.9em;
    opacity: 0.75;
}
