/* ==========================================================================
   Réseau31 — habillage de l'espace candidat (à coller dans
   coreadminz > Fonctions avancées > CSS spécifique)
   Maquettes « e-candidate-r31-v3 » + charte graphique e-candidate Réseau31.
   Aucun appel externe : images dans img/, polices dans fonts/ (Images & Fonts)
   ========================================================================== */

/* Police KoHo hébergée localement : fichiers dans fonts/ (coreadminz > Images & Fonts) */
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/koho-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/koho-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/koho-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/koho-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/koho-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/koho-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/koho-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'KoHo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/koho-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Charte graphique ---------- */
:root {
    --r31-bleu: #054993;          /* bleu principal (menu de navigation) */
    --r31-bleu-fonce: #254065;
    --r31-orange: #ED6C23;
    --r31-bleu-clair: #4EC2F1;    /* accent des maquettes (compteur, bouton Rechercher) — hors charte, à valider */
    --r31-gris: #EFEFEF;
    --r31-texte: #1a1a1a;
    --r31-degrade: linear-gradient(180deg, #254065 0%, #054993 100%);
    --r31-police-texte: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --r31-police-titre: "KoHo", "Segoe UI", Arial, sans-serif;
    --r31-largeur: 1300px;
    --r31-rayon: 30px;
}

/* ---------- Général ---------- */
body {
    font-family: var(--r31-police-texte);
    font-size: 16px;
    line-height: 1.5;
    color: var(--r31-texte);
    background: #fff;
}
p, ul, li, label, input, select, textarea { font-family: var(--r31-police-texte); }
p, ul, li { font-size: 16px; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--r31-police-titre);
    color: var(--r31-bleu);
    line-height: 1.25;
    letter-spacing: 0;
}
/* candidat.css impose font-weight: normal !important sur tous les titres */
h1, h2, h3, h4, h5, h6 { font-weight: 600 !important; }
a { color: var(--r31-bleu); }
a:hover, a:focus { color: var(--r31-bleu-fonce); }

/* Masquage accessible (texte lu par les lecteurs d'écran uniquement) */
.r31-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.r31-masque { display: none !important; }

/* Focus clavier toujours visible (RGAA 10.7) */
.r31 a:focus-visible,
.r31 button:focus-visible,
.r31 input:focus-visible,
.r31 select:focus-visible,
.r31 textarea:focus-visible {
    outline: 3px solid var(--r31-orange);
    outline-offset: 2px;
}
.r31 .site-header a:focus-visible,
.r31 .r31-hero a:focus-visible,
.r31 .r31-hero button:focus-visible,
.r31 .r31-hero input:focus-visible,
.r31 .offre-infos a:focus-visible,
.r31 .r31-footer a:focus-visible { outline-color: #fff; }
.r31 .r31-hero .select2-container--focus .select2-selection { outline: 3px solid #fff; outline-offset: 2px; }

.site-header .container,
.section-content > .container,
.site-main > .container,
.r31-container {
    max-width: var(--r31-largeur);
    margin-left: auto;
    margin-right: auto;
}
.site-main { background-color: #fff; }

/* ---------- Boutons (charte) ---------- */
/* Principal : bleu → orange au survol (texte noir : le blanc sur orange n'atteint que 3,1:1) */
a.r31-btn,
.btn-primary,
.btn-success,
.btn2,
.ebtn,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 8px 26px !important;
    border: 2px solid var(--r31-bleu) !important;
    border-radius: 40px !important;
    background-color: var(--r31-bleu) !important;
    color: #fff !important;
    font-family: var(--r31-police-titre);
    font-size: 18px;
    font-weight: 400 !important;      /* charte : KoHo regular */
    letter-spacing: .02em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none !important;
    transition: background-color .2s, border-color .2s, color .2s;
}
a.r31-btn:hover, a.r31-btn:focus,
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus,
.btn2:hover, .btn2:focus,
.ebtn:hover, .ebtn:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
button[type="submit"]:hover, button[type="submit"]:focus {
    border-color: var(--r31-orange) !important;
    background-color: var(--r31-orange) !important;
    color: #000 !important;
    text-decoration: none;
}
/* Secondaire (charte) : fond transparent, contour fin bleu → fond bleu, texte blanc au survol */
.ebtn.r31-btn-secondaire,
.ebtn.btn_back {
    border-width: 1.5px !important;
    background-color: transparent !important;
    color: var(--r31-bleu) !important;
}
.ebtn.r31-btn-secondaire:hover, .ebtn.r31-btn-secondaire:focus,
.ebtn.btn_back:hover, .ebtn.btn_back:focus {
    border-color: var(--r31-bleu) !important;
    background-color: var(--r31-bleu) !important;
    color: #fff !important;
}

/* ---------- En-tête : barre bleue arrondie ---------- */
.site-header {
    background: #fff;
    padding: 30px 15px 0;
    min-height: 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 30px;
    min-height: 76px;
    padding: 8px 40px 8px 25px;
    border-radius: 40px;
    background-color: var(--r31-bleu);
}
.site-header .img-logo { flex: 0 0 auto; max-width: none; }
.site-header .site-title { margin: 0; }
.site-header .header-logo { display: block; padding: 0; }
.site-header .header--logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: none;
}
.site-header .menu-principal { flex: 1 1 auto; }
.site-header .menu,
#menutop {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 5px 45px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-header .menu > li { float: none !important; margin: 0; }
.site-header .menu > li > a {
    float: none !important;
    display: inline-block;
    padding: 6px 0;
    background: transparent;
    color: #fff;
    font-family: var(--r31-police-titre);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: none;
}
.site-header .menu > li > a:hover,
.site-header .menu > li > a:focus,
.site-header .menu > li.active > a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}
.site-header .menu .dropdown-menu a { color: var(--r31-bleu); font-weight: 600; }

/* ---------- Titre de page / bandeau ---------- */
.page-header__background { display: none; }
#site-nav-breadcrumbs,
.section-content > .header-content > nav { display: none; }
.section-content > .header-content .page-header__title {
    margin: 40px 0 30px;
    color: var(--r31-bleu);
    font-size: 44px;
    text-align: center;
}

/* ---------- Page d'accueil ---------- */
.site-main.candidature { padding: 10px 0 80px; background: #fff; }
.r31-page-liste #list-offres { margin: 0; }
.r31-page-liste #list-offres > #section-offres {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

/* Bloc recherche + photos */
.r31-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 30px;
    margin: 0 45px 50px;
}
.r31-hero-recherche {
    padding: 30px 32px 28px;
    border-radius: var(--r31-rayon);
    background: var(--r31-degrade);
    color: #fff;
}
.r31-hero-intro {
    margin: 0 0 22px;
    padding: 0 0 18px;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    background: linear-gradient(#fff, #fff) left bottom / 95px 1px no-repeat;
}
.r31-hero-titre {
    margin: 0 0 15px;
    color: #fff;
    font-size: 25px;
}
.r31-hero #filter { padding: 0; background: transparent; }
.r31-hero #filter .block-title { display: none; }
.r31-hero .filter_fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
    align-items: center;
}
.r31-hero .filter_fields > .row { display: block; margin: 0 !important; }
.r31-hero .filter_fields .col-sm-10 { width: 100%; max-width: 100%; flex: none; padding: 0; }
/* Champs compacts, nom du champ dans le champ (maquette) */
.r31-hero #filter .form-control,
.r31-hero #filter .select2-container .select2-selection {
    min-height: 34px;
    border: 0;
    border-radius: 3px;
    background-color: #fff;
    color: var(--r31-texte);
    font-size: 16px;
    box-shadow: none;
}
.r31-hero #filter .form-control { height: 34px; padding: 4px 10px; }
.r31-hero #filter .form-control::placeholder,
.r31-hero #filter .select2-search__field::placeholder { color: #444; opacity: 1; }
.r31-hero #filter .select2-container { width: 100% !important; }
.r31-hero #filter .select2-selection--multiple {
    display: flex;
    align-items: center;
    padding: 2px 38px 2px 10px;
    cursor: pointer;
    /* chevron de la maquette */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1.5 1.5 10 10l8.5-8.5' fill='none' stroke='%23054993' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 11px;
}
.r31-hero #filter .select2-selection__rendered { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0 !important; }
.r31-hero #filter .select2-search--inline { margin: 0; }
.r31-hero #filter .select2-search--inline:first-child,
.r31-hero #filter .select2-search--inline:first-child .select2-search__field { width: 100% !important; }
.r31-hero #filter .select2-search__field { margin: 0; height: 28px; font-family: var(--r31-police-texte); font-size: 16px; color: var(--r31-texte); }
.r31-hero #filter .select2-selection__choice { margin: 0; }
/* Bouton Rechercher dans la grille, à la hauteur des champs.
   Texte bleu foncé : le bleu principal sur bleu clair n'atteint que 4,3:1 */
.r31-hero .r31-champ-submit-droite { grid-column: 2; }
.r31-hero #search_offre button[type="submit"] {
    display: block;
    width: 100%;
    min-height: 34px;
    margin: 0 !important;
    padding: 4px 15px !important;
    border-color: var(--r31-bleu-clair) !important;
    border-radius: 3px !important;
    background-color: var(--r31-bleu-clair) !important;
    color: var(--r31-bleu-fonce) !important;
    font-size: 19px;
    font-weight: 600 !important;
    float: none !important;
}
.r31-hero #search_offre button[type="submit"]:hover,
.r31-hero #search_offre button[type="submit"]:focus {
    border-color: var(--r31-orange) !important;
    background-color: var(--r31-orange) !important;
    color: #000 !important;
}
.container{width: 100%; max-width: 100%;}
/* Bouton d'ouverture du filtre sur petit écran : la règle .ebtn ci-dessus ne doit pas l'afficher sur grand écran */
#filter .btn-recherche-mobile { display: none; }
@media (max-width: 991.98px) {
    #filter .btn-recherche-mobile { display: block; width: 100%; margin: 0 0 15px !important; }
}
.r31-hero .btn-recherche-mobile {
    border-color: #fff !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    color: var(--r31-bleu) !important;
}
/* Dernière ligne : Réinitialiser les filtres | Créer une alerte */
.r31-hero-alerte {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
    align-items: center;
    margin-top: 14px;
}
.r31-hero-alerte .btn-reset { grid-column: 1; text-align: center; }
.r31-hero-alerte .btn-link {
    float: none !important;
    padding: 0;
    color: #fff;
    font-family: var(--r31-police-titre);
    font-size: 19px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.r31-hero-alerte .btn-link:hover,
.r31-hero-alerte .btn-link:focus { color: #fff; text-decoration-thickness: 2px; }
.r31-hero-alerte .r31-btn-alerte {
    grid-column: 2;
    min-height: 34px;
    padding: 3px 15px !important;
    border: 2px solid #fff !important;
    border-radius: 3px !important;
    background-color: transparent !important;
    color: #fff !important;
    font-size: 19px;
    font-weight: 600 !important;
}
.r31-hero-alerte .r31-btn-alerte:hover,
.r31-hero-alerte .r31-btn-alerte:focus {
    border-color: #fff !important;
    background-color: #fff !important;
    color: var(--r31-bleu) !important;
}

/* Photos (décoratives) : largeur proportionnelle au format de chaque image */
.r31-hero-photos { display: flex; flex-direction: column; gap: 20px; }
.r31-photos-ligne { display: flex; flex: 1 1 0; gap: 30px; min-height: 160px; }
.r31-photo {
    flex: var(--r31-ratio, 1) 1 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 25px;
    background: var(--r31-gris);
}
.r31-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r31-hero:has(.r31-sans-photo) { grid-template-columns: minmax(0, 1fr); }
.r31-sans-photo { display: none; }

/* Compteur « 99 offres d'emploi à pourvoir » */
.r31-page-liste .bloc_result { display: flex; justify-content: center; padding: 0 0 45px; }
.r31-compteur {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    color: var(--r31-bleu);
    font-size: 42px;
    text-align: center;
}
.r31-compteur-nb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 88px;
    padding: 0 14px;
    border-radius: 44px;
    background: var(--r31-bleu-clair);
    color: var(--r31-bleu-fonce);
    font-size: 46px;
}

/* Cartes des offres */
.r31-page-liste #liste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
    padding: 0 45px;
}
#liste .offre.r31-carte {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--r31-rayon);
    background: var(--r31-gris);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    text-align: left;
}
/* Offre expirée : pas d'opacité réduite (le texte passerait sous 4,5:1, RGAA 3.2) */
#liste .offre.r31-carte.expired { opacity: 1; filter: grayscale(1); }
#liste .offre.r31-carte .card__thumbnail,
#liste .offre.r31-carte .info.image { display: none; }
#liste .offre.r31-carte .offre-inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 25px 22px;
}
#liste .offre.r31-carte h2.libelle {
    margin: 0 0 15px;
    padding: 0 0 15px;
    font-size: 25px;
    line-height: 1.25;
    text-transform: none;
    background: linear-gradient(#999, #999) left bottom / 95px 2px no-repeat;
}
#liste .offre.r31-carte .info { margin: 0 0 2px; color: var(--r31-texte); font-size: 16px; }
#liste .offre.r31-carte .info .liste-label { font-weight: 400; color: var(--r31-texte); }
#liste .offre.r31-carte .info .liste-value,
#liste .offre.r31-carte .info time { color: var(--r31-texte); }
.r31-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
}
.r31-actions::before {
    content: "";
    display: block;
    width: 95px;
    height: 2px;
    background: #999;
}
/* candidat.css masque les documents dans la liste (#list-offres .offre .zone.documents) */
#list-offres .offre .r31-actions .zone.documents { display: block; margin: 0; }
.r31-actions .zone.documents ul { margin: 0; padding: 0; }
.r31-actions .zone.documents li { margin: 0; list-style: none; }
.r31-actions .zone.documents .doc-title,
.r31-actions .zone.documents .question,
.r31-actions .zone.documents .info-doc { display: none; }
.r31-actions .zone.documents a.file-link {
    color: var(--r31-bleu);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
}
.r31-actions .zone.documents a.file-link::before {
    content: "\f1c1";
    margin-right: 6px;
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
}
.r31-actions a.r31-btn { display: block; width: 100%; padding: 8px 12px !important; font-size: 20px; }
/* Survol de la maquette : le bouton devient orange et affiche « Postuler à cette offre ».
   Le libellé « Consulter cette offre » reste lu par les lecteurs d'écran (masqué visuellement seulement). */
a.r31-btn .r31-btn-survol { display: none; }
a.r31-btn:hover .r31-btn-survol,
a.r31-btn:focus-visible .r31-btn-survol { display: inline; }
a.r31-btn:hover .r31-btn-repos,
a.r31-btn:focus-visible .r31-btn-repos {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ---------- Partage ---------- */
.r31-partage { position: relative; }
.r31-partage-titre,
#liste .r31-partage-titre { margin: 0 0 6px; padding: 0; color: #555; font-size: 13px; font-weight: 700; }
.r31-partage-liste { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.r31-partage-liste li { margin: 0; }
.r31-partage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #666;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s;
}
.r31-partage-btn:hover,
.r31-partage-btn:focus { background: var(--r31-bleu); color: #fff; }
.r31-partage-statut { display: block; min-height: 1.3em; margin-top: 4px; color: var(--r31-bleu); font-size: 13px; font-weight: 600; }

/* ---------- Page détail d'une offre ---------- */
.r31-bandeau-photos {
    display: flex;
    gap: 50px;
    height: 215px;
    margin: 50px 0 0;
}
.r31-bandeau-photos.r31-sans-photo { display: none; }
/* h2 natif = doublon du h1 : masqué visuellement seulement, pour garder la hiérarchie h1 > h2 > h3 (RGAA 9.1) */
.r31-page-offre #offre > .title_section {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.r31-page-offre .info-commune { max-width: 960px; margin: 0 auto 40px; text-align: center; }
.r31-page-offre .info-commune p { color: var(--r31-texte); }
.r31-page-offre #details-offre {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0;
}
.r31-page-offre #details-offre > .infos {
    flex: 0 0 33.333%;
    width: 33.333%;
    max-width: 33.333%;
    float: none;
    padding: 0 55px 0 0;
    background: transparent;   /* fond gris natif (#eee) */
}
.r31-page-offre #details-offre > .zones {
    flex: 0 0 66.666%;
    width: 66.666%;
    max-width: 66.666%;
    float: none;
    padding: 0;
}
.r31-page-offre .offre-infos {
    height: auto;
    min-height: 0;
    padding: 35px 28px 40px;
    border: 0;
    border-radius: var(--r31-rayon);
    background: var(--r31-degrade);
    color: #fff;
}
.r31-page-offre .offre-infos .block-title {
    margin: 0 0 20px;
    padding: 0 0 15px;
    color: #fff;
    font-size: 26px;
    text-transform: none;
    background: linear-gradient(#fff, #fff) left bottom / 95px 1px no-repeat;
}
.r31-page-offre .offre-infos .block-content { background: transparent; }
.r31-page-offre .offre-infos .info { margin: 0 0 18px; color: #fff; font-size: 17px; }
.r31-page-offre .offre-infos .info:last-child { margin-bottom: 0; }
.r31-page-offre .offre-infos .liste-label { display: block; color: #fff; font-weight: 700; }
.r31-page-offre .offre-infos .liste-value,
.r31-page-offre .offre-infos time { color: #fff; }
.r31-page-offre .offre-infos a { color: #fff; text-decoration: underline; }
.r31-page-offre #details-offre .zone { margin: 0 0 40px; padding: 0; border: 0; background: transparent; }
.r31-page-offre #details-offre .zone > h3 {
    margin: 0 0 22px;
    padding: 0 0 15px;
    color: var(--r31-bleu);
    font-size: 26px;
    text-transform: none;
    background: linear-gradient(var(--r31-bleu), var(--r31-bleu)) left bottom / 95px 2px no-repeat;
}
.r31-page-offre #details-offre .zone_content,
.r31-page-offre #details-offre .zone_content p,
.r31-page-offre #details-offre .zone_content li { color: var(--r31-texte); font-size: 16px; line-height: 1.5; }
.r31-page-offre #details-offre .zone.documents ul { margin: 0; padding: 0; }
.r31-page-offre #details-offre .zone.documents .doc-title { margin: 0; font-weight: 700; }
.r31-page-offre #details-offre .zone.documents a.file-link {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 22px;
    border: 1.5px solid var(--r31-bleu);
    border-radius: 40px;
    color: var(--r31-bleu);
    font-family: var(--r31-police-titre);
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
}
.r31-page-offre #details-offre .zone.documents a.file-link:hover,
.r31-page-offre #details-offre .zone.documents a.file-link:focus { background: var(--r31-bleu); color: #fff; }
.r31-page-offre .r31-partage { margin: 0 0 35px; }
.r31-offre-actions { display: flex; flex-wrap: wrap; gap: 15px 20px; margin: 0 0 20px; }
.r31-offre-actions .ebtn { min-width: 250px; padding: 8px 30px !important; font-size: 23px; }

/* Frise « recrutement chez Réseau31 » */
.r31-frise { margin: 70px 0 0; }
.r31-frise-img { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }
/* Sur grand écran l'image porte l'information ; la liste reste lue par les lecteurs d'écran */
.r31-etapes {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.r31-frise.r31-frise-sans-image .r31-etapes {
    position: static;
    width: auto;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    padding: 0;
    list-style: none;
    counter-reset: r31-etape;
}
.r31-frise-sans-image .r31-etapes li,
.r31-etapes li { counter-increment: r31-etape; position: relative; padding-left: 58px; text-align: left; }
.r31-frise-sans-image .r31-etapes li::before,
.r31-etapes li::before {
    content: counter(r31-etape);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--r31-bleu);
    color: #fff;
    font-family: var(--r31-police-titre);
    font-size: 24px;
    font-weight: 700;
}
.r31-etapes strong { display: block; color: var(--r31-bleu); font-family: var(--r31-police-titre); font-size: 20px; }

/* ---------- Pied de page ---------- */
.r31-footer { color: #fff; font-size: 15px; }
.r31-footer p, .r31-footer li, .r31-footer a { color: #fff; }
.r31-footer-top { padding: 40px 0; background: var(--r31-degrade); }
.r31-footer-grid { display: flex; align-items: center; gap: 30px 50px; padding: 0 15px; }
.r31-footer-col { padding: 0; }
.r31-footer-col.r31-col-logo { flex: 0 0 160px; }
.r31-footer-col.r31-col-texte { flex: 1 1 auto; max-width: 640px; }
.r31-footer-col.r31-col-social { flex: 0 0 auto; margin-left: auto; text-align: right; }
.r31-footer-logo a { display: inline-block; }
.r31-footer-logo img { display: block; width: 160px; max-width: 100%; height: auto; }
.r31-footer-texte { margin: 0; font-size: 15px; line-height: 1.5; }
.r31-footer-social-titre {
    display: inline-block;
    margin: 0 0 15px;
    padding: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(#fff, #fff) right bottom / 95px 1px no-repeat;
}
.r31-social { display: flex; justify-content: flex-end; gap: 9px; margin: 0; padding: 0; list-style: none; }
.r31-social li { margin: 0; }
.r31-social a {
    display: block;
    border-radius: 50%;
    line-height: 0;
    transition: transform .2s, opacity .2s;
}
.r31-social img { display: block; width: 46px; height: 46px; }
.r31-footer .r31-social a:hover,
.r31-footer .r31-social a:focus { opacity: .85; transform: scale(1.06); }
.r31-footer-bottom { padding: 0 0 25px; background: var(--r31-bleu); }
.r31-footer-bottom hr { margin: 0 15px 20px; border: 0; border-top: 1px solid rgba(255, 255, 255, .5); opacity: 1; }
.r31-footer-legal { margin: 0; padding: 0 15px; text-align: center; font-size: 15px; }
.r31-footer-legal a { text-decoration: none; }
.r31-footer-legal a:hover, .r31-footer-legal a:focus { color: #fff; text-decoration: underline; }

/* ---------- Bannière cookies ---------- */
#cookie-space { height: auto; padding: 15px 0; background-color: var(--r31-bleu-fonce); color: #fff; }
#cookie-space .cookie-message { padding: 0; border: 0; background: transparent; }
#cookie-space .cookie-message p { color: #fff; font-size: 14px; }
#cookie-space .btn-cookie {
    padding: 6px 18px !important;
    border: 2px solid #fff !important;
    border-radius: 40px !important;
    background: #fff !important;
    color: var(--r31-bleu) !important;
    font-size: 15px;
}
#cookie-space .btn-cookie:hover,
#cookie-space .btn-cookie:focus { background: var(--r31-orange) !important; border-color: var(--r31-orange) !important; color: #000 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .r31-hero { margin-left: 0; margin-right: 0; }
    .r31-page-liste #liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 0; }
    .site-header .menu, #menutop { gap: 5px 25px; }
    .site-header .menu > li > a { font-size: 16px; }
    .r31-bandeau-photos { gap: 20px; height: 170px; }
    .r31-page-offre #details-offre > .infos { padding-right: 30px; }
}
@media (max-width: 991.98px) {
    .r31-hero { grid-template-columns: minmax(0, 1fr); }
    .r31-hero-photos { flex-direction: row; }
    .r31-photos-ligne { min-height: 150px; gap: 15px; }
    .r31-hero-photos { gap: 15px; }
    .r31-footer-grid { flex-wrap: wrap; }
    .r31-footer-col.r31-col-social { flex: 0 0 100%; text-align: left; }
    .r31-social { justify-content: flex-start; }
    .r31-footer-social-titre { background-position: left bottom; }
}
@media (max-width: 767.98px) {
    .site-header { padding: 15px 10px 0; }
    .site-header .container { flex-direction: column; padding: 12px 20px; border-radius: 24px; }
    .site-header .header--logo { height: 50px; }
    .site-header .menu, #menutop { justify-content: center; gap: 2px 20px; }
    .site-header .menu > li > a { font-size: 15px; text-align: center; }
    .section-content > .header-content .page-header__title { margin: 25px 0 20px; font-size: 30px; }

    .r31-hero { gap: 20px; margin-bottom: 35px; }
    .r31-hero-recherche { padding: 22px 18px; border-radius: 22px; }
    .r31-hero-photos { display: none; }
    .r31-hero .filter_fields,
    .r31-hero-alerte { grid-template-columns: minmax(0, 1fr); }
    .r31-hero .r31-champ-submit-droite,
    .r31-hero-alerte .btn-reset,
    .r31-hero-alerte .r31-btn-alerte { grid-column: 1; }
    .r31-hero-alerte .btn-reset { order: 1; }

    .r31-compteur { gap: 14px; font-size: 26px; }
    .r31-compteur-nb { min-width: 60px; height: 60px; font-size: 30px; }
    .r31-page-liste #liste { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    #liste .offre.r31-carte h2.libelle { font-size: 22px; }

    .r31-page-offre .info-commune { text-align: left; }
    .r31-bandeau-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: auto; margin-top: 25px; }
    .r31-bandeau-photos .r31-photo { height: 120px; border-radius: 18px; }
    .r31-page-offre #details-offre > .infos,
    .r31-page-offre #details-offre > .zones { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 0; }
    .r31-page-offre #details-offre > .infos { margin-bottom: 35px; }
    .r31-page-offre .offre-infos { padding: 25px 20px; border-radius: 22px; }
    .r31-page-offre #details-offre .zone > h3,
    .r31-page-offre .offre-infos .block-title { font-size: 22px; }
    .r31-offre-actions .ebtn { width: 100%; min-width: 0; font-size: 18px; }

    /* Frise illisible en petit : remplacée par la liste des étapes */
    .r31-frise { margin-top: 45px; }
    .r31-frise-img { display: none; }
    .r31-frise .r31-etapes {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 0;
        list-style: none;
        counter-reset: r31-etape;
    }
    .r31-frise.r31-frise-sans-image .r31-etapes { grid-template-columns: minmax(0, 1fr); }

    .r31-footer-top { padding: 30px 0; }
    .r31-footer-grid { flex-direction: column; align-items: flex-start; gap: 20px; }
    .r31-footer-col { flex: 0 0 auto !important; width: 100%; max-width: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .r31 *, .r31 *::before, .r31 *::after { transition: none !important; }
}

/* ---------- Impression (bouton « Imprimer cette offre ») ---------- */
@media print {
    .site-header, .r31-footer, #cookie-space, .visually-hidden-focusable,
    .r31-bandeau-photos, .r31-frise, .r31-partage, .r31-offre-actions, #btn_actions { display: none !important; }
    .r31-page-offre #details-offre > .infos,
    .r31-page-offre #details-offre > .zones { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 0; }
    .r31-page-offre .offre-infos { margin-bottom: 20px; border: 1px solid #000; background: none; }
    .r31-page-offre .offre-infos *, .r31-page-offre .offre-infos .block-title { color: #000 !important; }
    .section-content > .header-content .page-header__title { margin-top: 0; }
}

#wrap {display:none;}