/* ==========================================================================
   ZAMOHA Nouvelles Technologies : Feuille de style
   Conforme à la Charte graphique v1.0 (Août 2026)
   Bleu #12ACDE · Noir #111111 · Gris #808080 · Blanc #FFFFFF
   ========================================================================== */

:root {
    --zh-blue: #12ACDE;
    --zh-blue-dark: #0B7EA3;
    --zh-black: #111111;
    --zh-grey: #808080;
    --zh-grey-light: #CCCCCC;
    --zh-grey-bg: #F5F7F8;
    --zh-white: #FFFFFF;
    --zh-error: #D93025;
    --zh-radius: 6px;
    --zh-radius-sm: 4px;
    --zh-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--zh-font);
    color: var(--zh-black);
    background: var(--zh-grey-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- En-tête / logo ---------- */

.zh-header {
    background: var(--zh-white);
    border-bottom: 2px solid var(--zh-blue);
}

.zh-header__inner {
    max-width: 840px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.zh-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.zh-logo__image {
    height: 56px;
    width: auto;
    display: block;
}

/* ---------- Structure principale ---------- */

.zh-main {
    max-width: 840px;
    margin: 32px auto 64px;
    padding: 0 24px;
}

.zh-card {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.08);
    overflow: hidden;
}

.zh-page-title {
    font-family: "Arial Black", Arial, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 26px;
    color: var(--zh-black);
    margin: 0 0 4px;
}

.zh-page-subtitle {
    color: var(--zh-grey);
    font-size: 14px;
    margin: 0 0 24px;
}

.zh-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.zh-page-header .zh-page-subtitle { margin-bottom: 0; }

/* ---------- Alertes ---------- */

.zh-alert {
    padding: 14px 18px;
    border-radius: var(--zh-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.zh-alert--success {
    background: #E7F8EE;
    color: #1E7A45;
    border: 1px solid #1E7A45;
}

.zh-alert--error {
    background: #FBEAE9;
    color: var(--zh-error);
    border: 1px solid var(--zh-error);
}

/* ---------- Annonce ---------- */

.zh-job {
    padding: 24px 28px;
    border-bottom: 1px solid #ECECEC;
}

.zh-job__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--zh-blue);
    text-transform: uppercase;
    margin: 0 0 6px;
}

.zh-job__lead {
    font-size: 14px;
    color: var(--zh-black);
    margin: 0 0 14px;
    line-height: 1.5;
}

.zh-job__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--zh-grey);
}

.zh-job__meta strong { color: var(--zh-black); }

.zh-job__list {
    margin: 12px 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--zh-black);
    line-height: 1.6;
}

/* ---------- Sections du formulaire (bandeau bleu) ---------- */

.zh-section { padding: 0 0 4px; }

.zh-section__band {
    background: var(--zh-blue);
    color: var(--zh-white);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh-section__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--zh-white);
    color: var(--zh-blue);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.zh-section__body {
    padding: 20px 28px 24px;
}

/* ---------- Champs de formulaire ---------- */

.zh-field { margin-bottom: 18px; }

.zh-field:last-child { margin-bottom: 0; }

.zh-field label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--zh-black);
    margin-bottom: 6px;
}

/* Symfony's default form theme auto-adds a "required" class to <label> itself,
   so a dedicated class is used here to color only the asterisk, not the label text. */
.zh-required-mark {
    color: var(--zh-error);
    font-weight: 700;
    margin-left: 2px;
}

.zh-field input[type="text"],
.zh-field input[type="email"],
.zh-field input[type="tel"],
.zh-field input[type="number"],
.zh-field input[type="password"],
.zh-field select,
.zh-field textarea {
    width: 100%;
    min-height: 36px;
    padding: 9px 12px;
    font-family: var(--zh-font);
    font-size: 14px;
    color: var(--zh-black);
    background: var(--zh-white);
    border: 1px solid var(--zh-grey-light);
    border-radius: var(--zh-radius-sm);
    transition: border-color 0.15s ease;
}

.zh-field textarea { resize: vertical; min-height: 90px; }

.zh-field input:focus,
.zh-field select:focus,
.zh-field textarea:focus {
    outline: none;
    border-color: var(--zh-blue);
    box-shadow: 0 0 0 3px rgba(18, 172, 222, 0.15);
}

.zh-field input.is-invalid,
.zh-field select.is-invalid,
.zh-field textarea.is-invalid {
    border-color: var(--zh-error);
}

.zh-help {
    font-size: 9pt;
    font-style: italic;
    color: var(--zh-grey);
    margin-top: 5px;
}

.zh-counter {
    font-size: 9pt;
    color: var(--zh-grey);
    margin-top: 5px;
    text-align: right;
}

.zh-counter.is-over { color: var(--zh-error); }

.zh-error,
.zh-section__body ul {
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
    font-size: 12px;
    color: var(--zh-error);
}

.zh-section__body ul li { margin: 2px 0; }

.zh-field-file input[type="file"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px dashed var(--zh-grey-light);
    border-radius: var(--zh-radius-sm);
    background: var(--zh-grey-bg);
    font-size: 13px;
}

.zh-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--zh-black);
}

.zh-checkbox input { margin-top: 3px; flex-shrink: 0; }

/* ---------- Grille deux colonnes ---------- */

.zh-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.zh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
}

@media (max-width: 620px) {
    .zh-grid-2, .zh-grid-3 { grid-template-columns: 1fr; }
    .zh-section__body, .zh-job { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Actions ---------- */

.zh-actions {
    padding: 24px 28px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.zh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--zh-font);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--zh-radius);
    padding: 12px 28px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.zh-btn--primary {
    background: var(--zh-blue);
    color: var(--zh-white);
}

.zh-btn--primary:hover,
.zh-btn--primary:focus {
    background: var(--zh-blue-dark);
}

.zh-btn--secondary {
    background: var(--zh-white);
    color: var(--zh-black);
    border-color: var(--zh-grey-light);
}

.zh-btn--secondary:hover {
    border-color: var(--zh-grey);
}

/* ---------- Page de succès ---------- */

.zh-success {
    text-align: center;
    padding: 64px 28px;
}

.zh-success h1 {
    font-family: "Arial Black", Arial, sans-serif;
    text-transform: uppercase;
    font-size: 22px;
    margin: 0 0 10px;
}

.zh-success p {
    color: var(--zh-grey);
    font-size: 14px;
    max-width: 440px;
    margin: 0 auto 24px;
}

/* ---------- Pied de page ---------- */

.zh-footer {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 11px;
    color: var(--zh-grey);
}

.zh-footer__admin-link {
    color: var(--zh-grey);
    text-decoration: none;
    margin-right: auto;
}

.zh-footer__admin-link:hover {
    color: var(--zh-blue);
}

/* ---------- Espace recruteur (admin) : structure large ---------- */

.zh-admin-page .zh-header__inner,
.zh-admin-page .zh-main,
.zh-admin-page .zh-footer {
    max-width: 1120px;
}

.zh-admin-page .zh-main {
    margin-top: 28px;
}

/* ---------- Barre supérieure admin ---------- */

.zh-admin-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zh-admin-nav__link {
    color: var(--zh-grey);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--zh-radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.zh-admin-nav__link:hover {
    color: var(--zh-black);
    background: var(--zh-grey-bg);
}

.zh-admin-nav__link.is-active {
    color: var(--zh-blue);
    background: rgba(18, 172, 222, 0.1);
}

.zh-admin-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #ECECEC;
}

.zh-admin-account__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--zh-blue);
    color: var(--zh-white);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.zh-admin-account__name {
    font-size: 13px;
    color: var(--zh-black);
    white-space: nowrap;
}

.zh-admin-account__logout {
    color: var(--zh-grey);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--zh-grey-light);
    border-radius: var(--zh-radius-sm);
    padding: 6px 12px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.zh-admin-account__logout:hover {
    color: var(--zh-error);
    border-color: var(--zh-error);
}

@media (max-width: 720px) {
    .zh-header__inner { flex-wrap: wrap; }
    .zh-admin-account__name { display: none; }
}

/* ---------- Connexion ---------- */

.zh-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px);
}

.zh-login-card {
    max-width: 400px;
    width: 100%;
    padding: 36px 32px;
}

.zh-login-form .zh-field { margin-bottom: 16px; }

.zh-actions--start {
    justify-content: flex-start;
    padding: 8px 0 0;
}

.zh-actions--start .zh-btn { width: 100%; }

/* ---------- Cartes statistiques ---------- */

.zh-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.zh-stat-card {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.08);
    padding: 18px 20px;
}

.zh-stat-card__value {
    font-family: "Arial Black", Arial, sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--zh-black);
    line-height: 1.1;
}

.zh-stat-card__label {
    font-size: 12px;
    color: var(--zh-grey);
    margin-top: 4px;
}

.zh-stat-card--accent .zh-stat-card__value { color: var(--zh-blue); }

@media (max-width: 720px) {
    .zh-stats { grid-template-columns: 1fr; }
}

/* ---------- État vide ---------- */

.zh-empty {
    padding: 48px 28px;
    color: var(--zh-grey);
    font-size: 14px;
    text-align: center;
}

/* ---------- Tableau des candidatures ---------- */

.zh-table-wrap {
    overflow-x: auto;
}

.zh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.zh-table thead th {
    background: var(--zh-blue);
    color: var(--zh-white);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 12px 16px;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.zh-table tbody tr {
    transition: background-color 0.1s ease;
}

.zh-table tbody tr:hover {
    background: var(--zh-grey-bg);
}

.zh-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #ECECEC;
    vertical-align: middle;
}

.zh-table tbody tr:last-child td {
    border-bottom: none;
}

.zh-table__candidate {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh-table__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--zh-black);
    color: var(--zh-white);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.zh-table__name {
    font-weight: 700;
    color: var(--zh-black);
}

.zh-table__muted {
    color: var(--zh-grey);
    font-size: 12px;
    margin-top: 2px;
}

.zh-badge {
    display: inline-block;
    background: rgba(18, 172, 222, 0.1);
    color: var(--zh-blue-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.zh-btn--sm {
    padding: 7px 16px;
    font-size: 12px;
}

.zh-btn--block {
    display: flex;
    width: 100%;
}

/* ---------- Fiche candidature ---------- */

.zh-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--zh-grey);
    text-decoration: none;
    margin-bottom: 16px;
}

.zh-back-link:hover { color: var(--zh-blue); }

.zh-candidate-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 820px) {
    .zh-candidate-layout { grid-template-columns: 1fr; }
}

.zh-profile-card {
    padding: 28px 24px;
    text-align: center;
    position: sticky;
    top: 20px;
}

.zh-profile-card__avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--zh-blue);
    color: var(--zh-white);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh-profile-card__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--zh-black);
    margin: 0 0 2px;
}

.zh-profile-card__meta {
    font-size: 12px;
    color: var(--zh-grey);
    margin: 0 0 20px;
}

.zh-profile-card__list {
    text-align: left;
    border-top: 1px solid #ECECEC;
    padding-top: 16px;
    margin-bottom: 20px;
}

.zh-profile-card__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.zh-profile-card__item:last-child { margin-bottom: 0; }

.zh-profile-card__item-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--zh-grey);
}

.zh-profile-card__item-value {
    font-size: 13px;
    color: var(--zh-black);
}

.zh-profile-card__item-value a {
    color: var(--zh-blue);
    text-decoration: none;
}

.zh-info-card {
    padding: 22px 24px;
    margin-bottom: 16px;
}

.zh-info-card:last-child { margin-bottom: 0; }

.zh-info-card__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--zh-blue);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ECECEC;
}

.zh-info-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ECECEC;
}

.zh-info-card__header .zh-info-card__title {
    margin: 0;
    padding: 0;
    border: 0;
}

.zh-info-card__action {
    font-size: 12px;
    font-weight: 700;
    color: var(--zh-blue);
    text-decoration: none;
    white-space: nowrap;
}

.zh-info-card__action:hover {
    color: var(--zh-blue-dark);
}

.zh-cv-preview {
    width: 100%;
    max-width: 620px;
    height: 800px;
    margin: 0 auto;
    border: 1px solid var(--zh-grey-light);
    border-radius: var(--zh-radius-sm);
    display: block;
}

@media (max-width: 680px) {
    .zh-cv-preview { height: 520px; }
}

.zh-prose {
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.6;
    color: var(--zh-black);
    margin: 0;
}
