/* Boxmyjob : couleurs de la marque (dégradé bleu, violet, rose, orange) */
:root {
    --bleu: #2a7fc1;
    --bleu-fonce: #1d4f7a;
    --violet: #8a6ee6;
    --rose: #dc5a7c;
    --orange: #f07c4a;
    --orange-fonce: #d9622f;
    --texte: #1f2937;
    --texte-doux: #5b6472;
    --fond: #f5f6fa;
    --bord: #e3e6ee;
    --degrade: linear-gradient(135deg, #2a7fc1 0%, #8a6ee6 38%, #dc5a7c 68%, #f0884c 100%);
    --rayon: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--texte);
    background: var(--fond);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--bleu); }

img { max-width: 100%; }

/* Formulaire de recherche */
.recherche { display: flex; gap: 10px; }

.recherche input {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 16px;
    font: inherit;
    color: var(--texte);
    background: #fff;
}

.recherche input:focus { outline: 3px solid rgba(255, 255, 255, .55); border-color: #fff; }

.recherche button, .bouton {
    border: 0;
    border-radius: 10px;
    padding: 0 26px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--orange);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.recherche button:hover, .bouton:hover { background: var(--orange-fonce); }

.recherche.grande { max-width: 860px; margin: 0 auto; }
.recherche.grande input, .recherche.grande button { height: 58px; font-size: 17px; }
.recherche.grande input { box-shadow: 0 10px 30px rgba(20, 20, 60, .18); }
.recherche.grande button { box-shadow: 0 10px 30px rgba(120, 40, 20, .25); }

.recherche.compacte { flex: 1; max-width: 760px; }
.recherche.compacte input, .recherche.compacte button { height: 42px; }

/* Accueil */
.accueil .degrade {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--degrade);
    color: #fff;
}

.haut, .barre-interieur {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 28px;
}

.haut { justify-content: space-between; }

.logo img { display: block; height: 38px; width: auto; }

.liens-haut { margin-left: auto; }
.liens-haut a { color: #fff; text-decoration: none; font-weight: 500; opacity: .92; }
.liens-haut a:hover { opacity: 1; text-decoration: underline; }

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px 110px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.hero .sous-titre { margin: 12px 0 40px; font-size: clamp(18px, 2.4vw, 24px); opacity: .95; }

.suggestions { margin: 28px 0 0; font-size: 15px; opacity: .95; }

.suggestions a {
    display: inline-block;
    margin: 4px 3px;
    padding: 5px 13px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
}

.suggestions a:hover { background: rgba(255, 255, 255, .18); }

/* Bandeau des autres pages */
.barre { background: var(--degrade); color: #fff; }
.barre-interieur { max-width: 1200px; margin: 0 auto; padding: 14px 24px; }

/* Page de résultats */
.page-resultats {
    flex: 1;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.filtres h2 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

.filtres section { margin-bottom: 26px; }
.filtres > summary { display: none; }
.filtres ul { margin: 0; padding: 0; list-style: none; }

.filtres a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    margin: 0 -8px;
    border-radius: 8px;
    color: var(--texte);
    text-decoration: none;
}

.filtres a:hover { background: #e9ecf4; }
.filtres a.actif { color: var(--bleu); font-weight: 600; }

.filtres .case {
    width: 16px;
    height: 16px;
    flex: none;
    border: 2px solid #b8bfcc;
    border-radius: 4px;
    background: #fff;
}

.filtres a.actif .case {
    border-color: var(--bleu);
    background: var(--bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/12px no-repeat;
}

.filtres .nb { margin-left: auto; color: var(--texte-doux); font-size: 14px; font-weight: 400; }

.nombre { margin: 0 0 16px; font-size: 20px; font-weight: 400; }
.nombre .pour { color: var(--texte-doux); }

.offre {
    margin-bottom: 14px;
    padding: 20px 22px;
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
    background: #fff;
    transition: box-shadow .15s, border-color .15s;
}

.offre:hover { border-color: #cfd5e2; box-shadow: 0 6px 20px rgba(30, 40, 80, .08); }

.offre h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.offre h2 a { color: var(--bleu-fonce); text-decoration: none; }
.offre h2 a:hover { color: var(--bleu); text-decoration: underline; }

.infos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; font-size: 15px; }
.entreprise { font-weight: 600; }
.ville { color: var(--texte-doux); }

.contrat {
    padding: 1px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #6a3fd1;
    background: #efeafd;
}

.extrait { margin: 0 0 8px; color: #3b4351; font-size: 15px; }
.date { margin: 0; color: var(--texte-doux); font-size: 13px; }

.vide { padding: 40px 0; text-align: center; color: var(--texte-doux); }
.vide h2 { color: var(--texte); font-size: 20px; }

.pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }

.pages a, .pages span {
    min-width: 42px;
    padding: 9px 14px;
    border: 1px solid var(--bord);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    text-decoration: none;
}

.pages .courante { border-color: var(--bleu); background: var(--bleu); color: #fff; font-weight: 600; }

/* Pages d'erreur */
.texte {
    flex: 1;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    padding: 36px 24px 56px;
}

.texte h1 { font-size: 34px; margin: 0 0 20px; }
.texte h2 { margin: 36px 0 12px; font-size: 22px; }
.texte p { color: #3b4351; }
.erreur { text-align: center; padding-top: 80px; }
.bouton { display: inline-block; padding: 12px 26px; text-decoration: none; }

/* Pied de page */
.pied { padding: 26px 24px; border-top: 1px solid var(--bord); background: #fff; text-align: center; font-size: 14px; color: var(--texte-doux); }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 8px; }
.pied a { color: var(--texte); text-decoration: none; }
.pied a:hover { color: var(--bleu); text-decoration: underline; }
.pied p { margin: 0; }

/* Mobile */
@media (max-width: 860px) {
    .page-resultats { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
    .filtres { padding: 10px 16px; border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; }
    .filtres > summary { display: list-item; cursor: pointer; font-weight: 600; }
    .filtres[open] > summary { margin-bottom: 12px; }
    .filtres section { margin-bottom: 14px; }
    .barre-interieur { flex-wrap: wrap; gap: 12px; }
    .recherche.compacte { order: 3; flex-basis: 100%; max-width: none; }
}

@media (max-width: 640px) {
    .recherche { flex-direction: column; }
    .recherche.grande input, .recherche.grande button { height: 52px; flex: none; }
    .recherche.compacte input, .recherche.compacte button { flex: none; }
    .haut { padding: 16px 18px; }
    .hero { padding-bottom: 60px; }
    .offre { padding: 16px; }
}
