.offre-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .offre-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Card d'informations */
.offre-detail-card {
    background-color: rgba(126, 116, 116, 0.75); /* #7E7474 with opacity */
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: fit-content;
}
/* Card Votre candidature */
.offre-candidature-card {
    background-color: var(--background-color);
}

.offre-detail-title {
    /* Utilise .title-small depuis app.css */
    font-size: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offre-detail-company {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.offre-detail-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem;
}

.offre-detail-reference {
    margin: 0;
    padding: 0.6rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Footer bas de carte (Grille 2 colonnes) */
.offre-detail-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hover-red-color);
}

.footer-col-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
}

.company-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.offre-detail-reference {
    margin: 0;
    font-weight: 500;
}

.offre-detail-company {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

.link-simple {
    color: #6da2d0; /* Couleur bleue typique pour les liens */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.link-simple:hover {
    text-decoration: underline;
}

.link-retour {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.link-visiter {
    align-self: flex-end;
    font-weight: 400;
}

/* Action block bottom right */
.action-block {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

/* Styles de .btn-apply définis dans app.css */

.offre-detail-footer-actions .link-simple {
    color: var(--primary-color, #e63946);
    text-decoration: none;
    font-weight: 500;
}

/* Liste d'informations */
.offre-detail-info-list {
    margin: 0 0 1rem;
    flex-grow: 0;
}

.offre-detail-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    color: #000000;
}

.offre-detail-info-row:last-child {
    margin-bottom: 0;
}

.offre-detail-info-row i {
    flex-shrink: 0;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-top: 0.15rem;
}

.offre-detail-info-row span {
    word-break: break-word;
}

.offre-detail-meta-left {
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.offre-detail-meta-left p {
    margin: 0.3rem 0;
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.offre-detail-meta-left p:first-child {
    margin-top: 0;
}

.offre-detail-meta-left p:last-child {
    margin-bottom: 0;
}

/* Informations recruteur */
.offre-detail-recruiter-info {
    margin: 0.75rem 0;
    flex-grow: 0;
}

.offre-detail-recruiter-info .offre-detail-info-row {
    margin-bottom: 0.7rem;
}

.offre-detail-recruiter-info .offre-detail-info-row:last-child {
    margin-bottom: 0;
}

/* Espace blanc */
.offre-detail-spacer {
    flex-grow: 1;
    min-height: 1rem;
}

.offre-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.offre-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offre-detail-company-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.offre-detail-subtitle {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.offre-detail-section {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
    white-space: pre-wrap;
    word-break: break-word;
}

.offre-detail-back-link {
    margin-top: 0.5rem;
}

/* Liens */
.link-simple {
    color: var(--primary-color);
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: text-decoration 0.2s ease, color 0.2s ease;
}

.link-simple:hover {
    text-decoration: underline;
    color: var(--hover-red-color);
}

/* Styles pour le formulaire de CV */
.offre-cv-upload {
    margin: 1.5rem 0;
}

.offre-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.offre-file-trigger {
    width: 100%;
    min-height: 140px;
    border-radius: 15px;
    border: 1px dashed #d5c9c9;
    background-color: #fbf5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.offre-file-main {
    color: #2c2323;
    font-family: Inter, sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.35rem);
    font-weight: 500;
    line-height: 1.2;
}

.offre-file-main .bi-paperclip {
    color: var(--primary-color);
    margin-right: 0.35rem;
    font-size: 1.2em;
    vertical-align: middle;
}

.offre-file-help {
    color: #2c2323;
    font-family: Inter, sans-serif;
    font-style: italic;
    font-size: clamp(0.82rem, 1.1vw, 1.05rem);
    line-height: 1.2;
}

.offre-file-input:focus-visible + .offre-file-trigger,
.offre-file-trigger:hover {
    border-color: #c9b4b4;
    background-color: #f6ecec;
}

.offre-cv-upload.has-file .offre-file-trigger {
    display: none;
}

.offre-file-selected {
    width: 100%;
    min-height: 96px;
    border-radius: 22px;
    background-color: #eeeeee;
    border: 1px solid #e2e2e2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.4rem;
}

.offre-file-selected[hidden] {
    display: none !important;
}

.offre-file-selected-name {
    color: var(--primary-color);
    font-family: Inter, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.9rem);
    font-weight: 500;
    line-height: 1.2;
    min-width: 0;
    max-width: 62%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offre-file-selected-size {
    color: #2c2c2c;
    font-family: Inter, sans-serif;
    font-size: clamp(0.95rem, 1.35vw, 1.5rem);
    font-weight: 500;
    white-space: nowrap;
}

.offre-file-remove {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.offre-file-remove .bi {
    font-size: 0.9rem;
}

.offre-file-remove:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.offre-file-remove:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 27, 29, 0.2);
}

.offre-submit-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.offre-submit-container .btn-danger {
    width: 100%;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
    .offre-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .offre-detail-card {
        padding: 1.2rem;
    }

    .offre-detail-footer-top,
    .offre-detail-footer-bottom {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .offre-detail-footer-top .offre-detail-footer-actions {
        flex-direction: row;
    }

    .btn-apply {
        flex: 0;
        min-width: auto;
    }

    .offre-detail-logo {
        width: 60px;
        height: 60px;
    }
}