/* Relais Emploi Direct : style repris de l'ancien template Protostar */

body.site {
  margin: 0;
  display: block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #333;
  background: #fff url(../images/fond-site.gif) top left repeat-x;
  border-top: 3px solid #2e2e2e;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: #2e2e2e; text-decoration: none; }
a:hover, a:focus { color: #000; text-decoration: underline; }
p { margin: 0 0 9px; }
.red-clear { clear: both; }

/* Titres */
h1, h2, h3, h4, h5, h6 { font-family: "Open Sans", sans-serif; font-weight: bold; color: inherit; margin: 12px 0; }
h2, .page-header h1 {
  font-size: 22px; line-height: 24px; background: #12b5d8; margin: 0 0 12px;
  border-radius: 6px; padding: 14px; color: #fff; text-transform: uppercase;
  box-shadow: -2px 3px 3px rgba(0,0,0,.3);
}
h3 { font-size: 22px; line-height: 24px; color: #12b5d8; margin: 1.5em 0 .8em; }
h4 { font-size: 18px; line-height: 22px; color: #8a157e; margin-top: 1em;
  border-left: 36px solid #8a157e; padding-left: 10px; border-top-left-radius: 10px; }
.page-header { margin: 2px 0 10px; padding-bottom: 5px; border: none; }

/* Structure de la page */
.red-container { max-width: 1200px; margin: 0 auto; }
.red-header { background: #fff; }
.red-header-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.red-brand { display: block; margin: 17px 0; }
.red-brand img { height: 90px; width: auto; }
.red-row { display: flex; gap: 2.1%; align-items: flex-start; }
.red-sidebar { flex: 0 0 23.4%; min-width: 250px; }
.red-aside { flex: 0 0 23.4%; min-width: 250px; }
.red-main { flex: 1 1 0; min-width: 0; margin-top: 1em; }
@media (min-width: 1200px) { .red-brand img { height: auto; } }
@media (max-width: 768px) { .red-row { display: block; } .red-sidebar, .red-aside { min-width: 0; } }

/* Contenu */
.item-page, .blog, .com-content-category-blog {
  background: #fff; padding: 8px 8px 1em; border-radius: 6px;
  border-bottom: 2px solid #ccc; margin-bottom: 2em;
}
.item-page, .item-pagehome { clear: both; }
.item-page p { text-align: justify; }
@media (min-width: 980px) { .item-page, .blog, .com-content-category-blog { border: 0; margin: 0; } }

/* Cadres de modules */
.moduletable, .moduletablerecherche, .moduletablealerte, .moduletableautres_articles, .moduletablepostez {
  background: #fff; margin-bottom: 1.5em; padding: 8px;
}
@media (min-width: 481px) {
  .moduletable, .moduletablepostez, .moduletablerecherche, .moduletablealerte {
    border-radius: 6px; box-shadow: -2px 3px 3px rgba(0,0,0,.3);
  }
  .moduletablepostez { padding: 0; }
}
.moduletableconcept { margin-bottom: 1em; padding: 8px; }
.moduletableconcept ul { margin: 0; padding: 0; }
.moduletableconcept li {
  list-style: none; background: url(../images/fleche-rose.png) left 3px no-repeat;
  font-size: 15px; line-height: 1.2em; margin-bottom: .5em; padding-left: 20px;
}
@media (min-width: 980px) { .moduletableconcept { float: left; width: 250px; } }
@media (min-width: 1200px) { .moduletableconcept { width: 280px; } }

.moduletableconnexion, .moduletablemoncompte {
  background: #bbb; border-radius: 6px; padding: 8px 10px 10px; margin-bottom: 2em;
}
.moduletableconnexion h3, .moduletablemoncompte h3, .moduletablerecherche h3, .moduletablealerte h3 {
  color: #000; margin-top: 0; font-size: 18px; line-height: 26px; border-bottom: 5px solid #ff22a9;
}
.moduletableconnexion h3 { text-transform: uppercase; }
.moduletablemoncompte a { color: #fff; }

.moduletablerubriquesblog ul { list-style: none; padding: 0; }
.customcarte { margin: 20px 0 0 1em; vertical-align: top; }
.customen_avant, .customen_avant2 {
  border-radius: 6px; color: #fff; font-size: 140%; font-weight: bold; overflow: hidden;
  padding: .6em; margin: 1em 0 2em;
}
.customen_avant a, .customen_avant2 a { color: #fff; }
.customen_avant { background: #12b5d8; clear: left; }
.customen_avant2 { background: #9dcb12; }

/* Boutons */
.bouton { display: block; padding: 5px; margin: 8px 0; font-weight: bold; color: #fff; text-align: center;
  line-height: 1.5em; letter-spacing: .05em; font-size: 110%; }
.bouton:hover, .bouton:focus { color: #fff; text-decoration: none; }
.bouton-vert { background: #9dcb12 linear-gradient(#9dcb12, #7fa50f); }
.bouton-bleu { background: #12b5d8 linear-gradient(#12b5d8, #0f93af); }
.bouton-mauve { background: #8a157e linear-gradient(#8a157e, #701166); }
.bouton-rose { background: #ff22a9 linear-gradient(#ff22a9, #cf1c89); }
.btn-primary { background: #8a157e; border: none; color: #fff; letter-spacing: .05em; }
.btn-primary:hover, .btn-primary:focus { background: #9dcb12; color: #fff; }

/* Menu haut (onglets colorés) */
.nav-haut { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 15px; padding: 0; }
.nav-haut > li { margin: 0; }
.nav-haut > li > a {
  display: block; padding: 7px 14px; margin-right: 4px; font-weight: bold; color: #fff;
  border-radius: 0 0 5px 5px; background: #ff22a9 linear-gradient(#ff22a9, #cf1c89);
}
.nav-haut > li:nth-child(2) > a { background: #12b5d8 linear-gradient(#12b5d8, #0f97b4); }
.nav-haut > li:nth-child(3) > a { background: #8a157e linear-gradient(#8a157e, #731269); }
.nav-haut > li:nth-child(4) > a { background: #9dcb12 linear-gradient(#9dcb12, #83aa0f); }
.nav-haut > li:nth-child(5) > a { background: #ffa422 linear-gradient(#ffa422, #d5891c); }
.nav-haut > li > a:hover { text-decoration: none; color: #fff; }
.red-header-search { max-width: 100%; }

/* Pied de page */
.red-footer { background: #5f5f5f; margin-top: 2em; margin-bottom: 18px; border-top: 14px solid #12b5d8; }
.red-footer ul { list-style: none; display: block; margin: 0; text-align: center; padding: 5px; background: #dcdcdc; }
.red-footer ul > li { display: inline-block; margin: 0; }
.red-footer ul > li > a {
  display: inline-block; padding: 8px 12px; margin: 2px; border-radius: 5px;
  text-transform: uppercase; color: #000; font-size: 90%;
}
.red-footer ul > li > a:hover { background: #eee; text-decoration: none; }
.red-footer ul > li.active > a, .red-footer ul > li.current > a { color: #fff; background: #2e2e2e; }
.moduletablereseauxsociaux, .customreseauxsociaux {
  margin-bottom: 3em; padding-top: 2em; border-top: 3px solid #9dcb12; text-align: center;
}
.moduletablereseauxsociaux img, .customreseauxsociaux img { height: 30px; margin: 0 10px; }
.moduletablemedias img, .custommedias img { height: 50px; width: auto; margin: 0 10px; }
.red-backtop { text-align: right; margin: 0; }
.red-backtop a { margin-right: 6px; color: #999; font-size: 80%; }
.red-copy { margin: 0 0 0 6px; color: #999; font-size: 80%; }

@media (max-width: 480px) {
  .item-pagehome, .customcarte, .customen_avant, .customen_avant2, .moduletableblog { display: none; }
}
/* Liens sans soulignement, comme sur l'ancien site */
body.site a { text-decoration: none; }
body.site a:hover, body.site a:focus { text-decoration: underline; }
body.site .nav-haut > li > a:hover { text-decoration: none; }

/* Menu haut : onglets en ligne et bonnes couleurs */
.red-header-search { flex: 0 0 55%; max-width: 55%; }
.red-header-search ul.nav-haut {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap;
  list-style: none; margin: 0 0 15px; padding: 0;
}
.red-header-search ul.nav-haut > li { width: auto; }
.nav-haut > li:nth-child(2) > a { background: #8a157e linear-gradient(#8a157e, #731269); }
.nav-haut > li:nth-child(3) > a { background: #9dcb12 linear-gradient(#9dcb12, #83aa0f); }
.nav-haut > li:nth-child(4) > a { background: #ffa422 linear-gradient(#ffa422, #d5891c); }
.nav-haut > li:nth-child(5) > a { background: #bbbbbb linear-gradient(#bbbbbb, #9c9c9c); }
@media (max-width: 768px) { .red-header-search { flex: 1 1 100%; max-width: 100%; } }

/* Cadres « Espace » de la page d'accueil */
.espace-accueil { background: #fff; width: 100%; border-radius: 6px; box-shadow: -2px 3px 3px rgba(0,0,0,.3); }
.espace-accueil h2 { margin: 0 0 12px; min-height: 2.2em; padding: 10px; }
.espace-accueil h2 a, .espace-accueil h2 small { color: #fff; }
#espace-2 h2 { background: #9dcb12; }
#espace-3 h2 { background: #8a157e; }
.espace-accueil p { margin: 2px 10px; }
@media (min-width: 481px) { .espace-accueil { width: 31.2%; margin-right: 2%; float: left; } }
.com-content-article__body::after, [itemprop="articleBody"]::after { content: ""; display: block; clear: both; }

/* Bouton de connexion */
.btn-primary { background: #2e2e2e; border-color: #2e2e2e; }
.btn-primary:hover, .btn-primary:focus { background: #9dcb12; border-color: #9dcb12; }

/* Position du fond dégradé */
@media (min-width: 1200px) { body.site { background-position: 0 159px; } }
/* Mise en page à la Protostar : "Le concept" flotte à gauche, le contenu part à droite */
body.site { background-image: none; }
.red-row { display: block; }
.red-row::after { content: ""; display: block; clear: both; }
.red-main { float: right; width: 74.468%; flex: none; margin-top: 1em; }
.red-sidebar { float: left; width: 23.404%; min-width: 250px; margin-right: 2.12766%; flex: none; }
@media (max-width: 768px) {
  .red-main, .red-sidebar { float: none; width: 100%; min-width: 0; margin-right: 0; }
}

/* Pied de page pleine largeur, "Haut de page" à droite du © */
.red-footer .red-container { max-width: none; }
.red-backtop { float: right; margin: 0; }
.red-copy { margin: 0 0 0 6px; }

/* Pas de soulignement dans les menus */
body.site .nav-haut a, body.site .red-footer a { text-decoration: none !important; }
/* Grille à deux colonnes : à gauche "Le concept" + colonne latérale, à droite le contenu */
@media (min-width: 769px) {
  .red-body .red-container {
    display: grid;
    grid-template-columns: minmax(250px, 23.4%) minmax(0, 1fr);
    column-gap: 2.1%;
    align-items: start;
  }
  .red-body .red-container > .red-header,
  .red-body .red-container > .red-navigation { grid-column: 1 / -1; }
  .red-body .red-container > .red-header { grid-row: 1; }
  .red-body .red-container > .moduletableconcept {
    grid-column: 1; grid-row: 2; float: none; width: auto; margin: 0 0 1em;
  }
  .red-row { display: contents; }
  .red-row::after { content: none; }
  .red-sidebar { grid-column: 1; grid-row: 3; float: none; width: auto; min-width: 0; margin: 0; }
  .red-main { grid-column: 2; grid-row: 2 / span 2; float: none; width: auto; margin-top: 1em; }
}
/* Colonne de gauche : "Le concept" garde sa hauteur, la ligne suivante absorbe l'excédent */
@media (min-width: 769px) {
  .red-body .red-container { grid-template-rows: auto auto 1fr; }
}

/* Carte, "Annonces vérifiées" et "Nos conseils" : deux colonnes comme sur l'ancien site */
@media (min-width: 1200px) {
  .red-main .moduletablecarte,
  .red-main .moduletableen_avant,
  .red-main .moduletableen_avant2 {
    display: inline-block; vertical-align: top; width: 48.5%; box-sizing: border-box;
  }
  .red-main .moduletablecarte { margin-right: 1%; }
  /* "Annonces vérifiées" et "Nos conseils" : deux cases côte à côte, séparées par un petit espace (comme l'ancien site) */
  .red-main .moduletableen_avant,
  .red-main .moduletableen_avant2 { width: 49.4%; }
  .red-main .moduletableen_avant { margin-right: .5%; }
}
/* Module "Dernier article du blog" */
.moduletableblog h3 {
  border-left: 1px solid #bfbfbf; display: inline-block; margin: 26px 0 0 0;
  vertical-align: top; width: 44%; text-transform: uppercase; padding: 10px;
}
.moduletableblog ul { list-style: none; padding: 0; margin: 0 0 9px; }
.moduletableblog ul li { margin-top: 2em; list-style: none; }
.moduletableblog .mod-articles-category-title { font-size: 150%; line-height: 1.1; color: #333; }
.moduletableblog .mod-articles-category-category,
.moduletableblog .mod-articles-category-date { font-size: 90%; }
.moduletableblog .mod-articles-category-introtext { margin: 1.5em 0; }
.moduletableblog .mod-articles-category-readmore { margin: 0; }
.moduletableblog .mod-articles-category-readmore a {
  background: #12b5d8; color: #fff; padding: 5px; display: inline-block;
  border-radius: 6px; font-size: 90%;
}
.moduletableblog .mod-articles-category-readmore a:hover { text-decoration: none; }
/* Trois cadres "Espace" de l'accueil : même largeur, même hauteur
   (uniquement quand l'article ne contient que les cadres, pas de titre h4 ni d'image : la page « Publiez votre annonce » garde un flux normal) */
@media (min-width: 481px) {
  .com-content-article__body:has(.espace-accueil):not(:has(> h4)):not(:has(> img)),
  [itemprop="articleBody"]:has(.espace-accueil):not(:has(> h4)):not(:has(> img)) {
    display: flex; gap: 2%; align-items: stretch;
  }
  .com-content-article__body:has(.espace-accueil):not(:has(> h4)):not(:has(> img))::after,
  [itemprop="articleBody"]:has(.espace-accueil):not(:has(> h4)):not(:has(> img))::after { content: none; }
  .com-content-article__body:has(.espace-accueil):not(:has(> h4)):not(:has(> img)) .espace-accueil,
  [itemprop="articleBody"]:has(.espace-accueil):not(:has(> h4)):not(:has(> img)) .espace-accueil { float: none; flex: 1 1 0; width: auto; margin-right: 0; }
  .com-content-article__body:has(.espace-accueil):not(:has(> h4)):not(:has(> img)) .espace-accueil h2,
  [itemprop="articleBody"]:has(.espace-accueil):not(:has(> h4)):not(:has(> img)) .espace-accueil h2 { min-height: 70px; }
}
/* Page « Publiez votre annonce » : titres, pictos, puis trois cadres côte à côte */
.com-content-article__body:has(.espace-accueil):has(> h4) h4,
[itemprop="articleBody"]:has(.espace-accueil):has(> h4) h4 { clear: none; border-left: 0; padding-left: 0; border-top-left-radius: 0; }
.com-content-article__body:has(> h4) > .espace-accueil:nth-of-type(3) + *,
[itemprop="articleBody"]:has(> h4) > .espace-accueil:nth-of-type(3) + * { clear: both; padding-top: 15px; }
.com-content-article__body:has(> h4) > .espace-accueil:first-of-type,
[itemprop="articleBody"]:has(> h4) > .espace-accueil:first-of-type { clear: left; }
.com-content-article__body:has(> h4) > .espace-accueil:nth-of-type(3n),
[itemprop="articleBody"]:has(> h4) > .espace-accueil:nth-of-type(3n) { margin-right: 0; }
/* Espace entre les trois cadres Espace et les icônes de partage */
.com-content-article__body:has(.espace-accueil),
[itemprop="articleBody"]:has(.espace-accueil) {
    margin-bottom: 30px;
}
/* Boutons de partage (bulle au clic) */
.red-share { display: flex; justify-content: center; margin: 25px 0 20px; }
.red-share-item { position: relative; border-right: 1px solid #ececec; }
.red-share-item:last-child { border-right: 0; }
.red-share-btn {
    display: block; width: 44px; height: 44px; padding: 0; border: 0;
    background: transparent; color: #2e2e2e; font-size: 30px; line-height: 44px;
    text-align: center; cursor: pointer;
}
.red-share-balloon {
    display: none; position: absolute; top: calc(100% + 12px); left: 0; z-index: 20;
    padding: 14px 16px; background: #f1f1f1; border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.red-share-balloon::before {
    content: ""; position: absolute; top: -8px; left: 14px;
    border-style: solid; border-width: 0 8px 8px 8px;
    border-color: transparent transparent #f1f1f1 transparent;
}
.red-share-item:focus-within .red-share-balloon { display: block; }
.red-share-link {
    display: inline-block; padding: 7px 14px; border-radius: 4px;
    background: #1d9bf0; color: #fff; font-size: 18px; white-space: nowrap; text-decoration: none;
}
.red-share-link:hover { color: #fff; opacity: .9; }
.red-share-item:focus-within .red-share-btn { background: #1d9bf0; color: #fff; }
.red-share-facebook .red-share-link, .red-share-facebook:focus-within .red-share-btn { background: #3b5998; }
.red-share-linkedin .red-share-link, .red-share-linkedin:focus-within .red-share-btn { background: #0077b5; }
.red-share-tumblr .red-share-link, .red-share-tumblr:focus-within .red-share-btn { background: #35465c; }
/* Ligne "Pour ajouter votre commentaire" */
.red-comment-note {
    margin: 20px 0 0;
    padding-top: 12px;
    border-top: 1px solid #ececec;
    text-align: center;
    font-size: 20px;
    color: #777;
}
.red-comment-note + .red-share { margin-top: 15px; }
/* Ajustements ligne commentaire + icônes */
.com-content-article__body:has(.espace-accueil),
[itemprop="articleBody"]:has(.espace-accueil) { margin-bottom: 0; }
.red-comment-note { margin-top: 0; padding-top: 0; border-top: 0; font-size: 16.5px; }
.red-comment-note + .red-share { margin-top: 20px; }
.red-comment-note { margin-top: 18px; padding-top: 0; border-top: 0; font-size: 16.5px; }
/* Mot ESPACE en caractères fins dans les trois cadres */
.espace-accueil h2 small { font-weight: 400; }
/* Module "Recherchez une annonce" (accueil) : à gauche de la carte, comme sur l'ancien site.
   À utiliser avec le suffixe de classe de module : recherche_accueil, balise de titre h2. */
.moduletablerecherche_accueil { margin-bottom: 1.5em; }
.moduletablerecherche_accueil h2 { margin-bottom: 12px; }
@media (min-width: 1200px) {
  .red-main .moduletablerecherche_accueil {
    display: inline-block; vertical-align: top; width: 48.5%; box-sizing: border-box; margin-right: 1%;
  }
}

/* Module "Rechercher une annonce" dans la colonne de gauche (suffixe de classe : recherche) :
   carte blanche, champs pleine largeur, gros bouton noir, comme sur l'ancien site. */
.moduletablerecherche { padding: 12px 14px 16px; }
.moduletablerecherche h3 { font-size: 20px; line-height: 28px; margin-bottom: 18px; text-transform: none; }
.moduletablerecherche .adsmanager-search-module { background: transparent; padding: 0; max-width: none; }
.moduletablerecherche .adsmanager-search-mod-item { max-width: none; margin: 0 0 12px; }
.moduletablerecherche .adsmanager-search-mod-item .form-select,
.moduletablerecherche .adsmanager-search-mod-item .form-control { height: 40px; padding: 4px 10px; font-size: 16px; border-radius: 3px; }
.moduletablerecherche .adsmanager-search-module .adsmanager-cat2:disabled { background-color: #e9ecef; }
.moduletablerecherche .adsmanager-search-mod-submit { margin: 16px 0 0; }
.moduletablerecherche .adsmanager-search-mod-submit .btn { width: 100%; padding: 6px 8px; font-size: 20px; border-radius: 3px; letter-spacing: 1px; }

/* Pied de page : liste des rubriques AdsManager avec leurs petites images (module AdsManager - Liste des catégories) */
.red-footer ul.adsmanager-cat-links {
  background: transparent; border-top: 1px solid #8a8a8a; margin-top: 10px; padding: 14px 10px 0; text-align: center;
}
.red-footer ul.adsmanager-cat-links > li { display: inline-block; margin: 0; }
.red-footer ul.adsmanager-cat-links > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin: 2px;
  color: #ddd; font-size: 100%; text-transform: uppercase; border-radius: 5px; background: transparent;
}
.red-footer ul.adsmanager-cat-links > li > a:hover { background: rgba(255,255,255,.12); color: #fff; }
.red-footer ul.adsmanager-cat-links img { height: 36px; width: 36px; border-radius: 50%; }

/* Community Builder : bouton rose */
.cb_template .btn-primary,
.cb_template input.btn-primary {
  background: #ff22a9 linear-gradient(#ff22a9, #cf1c89) !important;
  border-color: #cf1c89 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Community Builder : boutons Afficher/Show du mot de passe */
.cb_template .cbPasswordUnmaskShow,
.cb_template .cbPasswordUnmaskHide {
  background: #ff22a9 !important;
  border-color: #ff22a9 !important;
  color: #fff !important;
}

/* Community Builder : libellés en police normale */
.cb_template label,
.cb_template .col-form-label,
.cb_template .control-label {
  font-weight: normal !important;
}

/* Community Builder : texte blanc des boutons Afficher */
.cb_template button.cbPasswordUnmaskShow.text-body,
.cb_template button.cbPasswordUnmaskHide.text-body {
  color: #fff !important;
}

/* Community Builder : pied de page "Powered by" masqué */
.cbPoweredBy {
  display: none !important;
}

/* Community Builder : page de connexion, cadre autour des champs */
.cbLoginForm .mod-login__pretext { margin-bottom: 60px; }
.cbLoginForm .mod-login__userdata {
  border: 1px solid #12b5d8;
  border-radius: 10px;
  background: #f5f5f5;
  padding: 22px;
}
.cbLoginForm .mod-login__userdata .form-control,
.cbLoginForm .mod-login__userdata .input-group {
  max-width: 440px;
}

/* Community Builder : connexion, champs et bouton comme l'ancien site */
.cbLoginForm .mod-login__userdata .form-control {
  height: 38px;
  font-size: 16px;
  padding: 4px 10px;
}
.cbLoginForm .mod-login__userdata { margin-bottom: 40px; }
.cbLoginForm .mod-login__submit .btn,
.cbLoginForm .mod-login__userdata button[type="submit"] {
  background: #efefef !important;
  color: #000 !important;
  border: 1px solid #767676 !important;
  border-radius: 3px !important;
  padding: 2px 8px !important;
  font-size: 20px !important;
  letter-spacing: normal !important;
}

/* Community Builder : pas de bandeau d'onglets s'il n'y a qu'un onglet */
.cbTabsNav:has(> li:only-child),
.cbTabsNav:has(> h2:only-child) {
  display: none;
}

/* Community Builder : pas de bouton Annuler sur Modifier mes informations */
.cbProfileEditCancel {
  display: none !important;
}

/* Menu Mon compte : pas de soulignement */
.moduletablemoncompte a,
.moduletablemoncompte li.active > a,
.moduletablemoncompte .mod-menu__link {
  text-decoration: none !important;
}

/* Onglet Ads du profil Community Builder : comme l'ancien site */
.cb_template .adsmanager-listing > h2::before { content: none; }
.cb_template .adsmanager-search-own { float: left; width: 35%; max-width: none; margin: 0; }
.cb_template .adsmanager-search-own .form-control { height: 28px; font-size: 14px; padding: 2px 8px; }
.cb_template .adsmanager-sort { float: right; margin: 0; }
.cb_template .adsmanager-sort select { width: 36%; min-width: 220px; font-size: 18px; }
.cb_template .adsmanager-empty, .cb_template .adsmanager-cards, .cb_template .adsmanager-counter { clear: both; }

/* Pas d'icônes de partage sur les pages Community Builder (comme l'ancien site) */
body.com_comprofiler .red-share { display: none !important; }

/* Pas de phrase "commentaire" ni d'icônes de partage sur la connexion et Community Builder */
body.com_users .red-share,
body.com_users .red-comment-note,
body.com_comprofiler .red-comment-note {
  display: none !important;
}

/* Titre de la page de connexion : écriture normale comme l'ancien site */
body.com_comprofiler.view-login h1,
body.com_comprofiler.view-login h2 {
  font-weight: 400 !important;
}

/* Pas de phrase "commentaire" ni d'icônes de partage sur les pages Membership Pro */
body.com_osmembership .red-share,
body.com_osmembership .red-comment-note { display: none !important; }

/* Pages Membership Pro : mêmes titres que l'ancien site */
.osm-container .osm-page-title,
.osm-container h1,
body.com_osmembership main h1 {
  font-size: 22px !important; line-height: 24px !important; font-weight: 700 !important;
  padding: 14px !important; margin: 0 0 10px !important;
  color: #fff !important; background-color: #12b5d8 !important;
  border-radius: 6px !important; box-shadow: -2px 3px 3px rgba(0,0,0,.3) !important;
  text-transform: uppercase !important; text-align: left !important;
}
.osm-container .osm-item-wrapper { margin: 0 5px 10px; border-radius: 6px; }
.osm-container .osm-item-heading-box {
  background: #999 !important; padding: 4px 8px !important; margin: 0 !important;
  text-align: center !important; border: 0 !important; border-radius: 5px 5px 0 0 !important;
}
.osm-container .osm-item-heading-box h2.osm-item-title {
  font-size: 22px !important; line-height: 24px !important; font-weight: 700 !important;
  padding: 0 !important; margin: 6px 0 !important;
  color: #fff !important; background-color: #12b5d8 !important;
  border-radius: 6px !important; box-shadow: -2px 3px 3px rgba(0,0,0,.3) !important;
  text-transform: uppercase !important; text-align: center !important;
}

/* Lien du titre des formules : comme l'ancien site */
.osm-container .osm-item-heading-box h2.osm-item-title a {
  font-size: 26.4px !important; line-height: 44.88px !important; font-weight: 700 !important;
  color: #fff !important; text-transform: uppercase !important;
  font-family: 'Open Sans', sans-serif !important;
}

/* Formulaire d'abonnement Membership Pro : comme l'ancien site */
#os_form { --bs-gutter-x: 0; margin-left: 0 !important; margin-right: 0 !important; }

#osm-signup-page h3.osm-heading {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 22.5px !important; line-height: 37px !important; font-weight: 400 !important;
  color: #12b5d8 !important; text-transform: none !important;
  padding: 0 !important; margin: 25px 0 10px !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
}
#os_form h3.osm-heading ~ h3.osm-heading { margin-top: 37px !important; }

@media (min-width: 768px) {
  #os_form > div:not(.form-actions):not(.formError) {
    flex-wrap: nowrap; margin: 0 0 19px !important;
  }
  #os_form > div:not(.form-actions):not(.formError) > div:first-child {
    flex: 0 0 179px; width: 179px; max-width: 179px;
    padding: 4px 19px 0 0; font-weight: 700; text-align: left;
  }
  #os_form > div:not(.form-actions):not(.formError) > div:nth-child(2) {
    flex: 1 1 0; width: auto; max-width: none; padding: 0;
  }
}
#os_form > div > div:first-child label { margin: 0; font-weight: 700; }

#os_form input.form-control {
  width: 313px; max-width: 100%; height: 27px; padding: 3px 6px;
  font-size: 13px; line-height: 20px; color: #555; background-color: #fff;
  border: 1px solid #ccc; border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
#os_form input[name="address"].form-control,
#os_form input[name="address2"].form-control { width: 324px; }

#os_form .input-group { width: 313px; max-width: 100%; flex-wrap: nowrap; }
#os_form .input-group input.form-control { width: auto; flex: 1 1 auto; }
#os_form .input-password-toggle { display: none !important; }

#os_form #osm-amount-container .input-group { display: inline-flex; width: auto; }
#os_form #amount { width: 104px; flex: 0 0 104px; background-color: #eee; }
#os_form .input-group-text {
  height: 27px; padding: 3px 5px; font-size: 13px; color: #555;
  background-color: #eee; border: 1px solid #ccc; border-radius: 0 4px 4px 0;
}

/* Cases à cocher visibles */
#os_form input.form-check-input {
  width: 13px; height: 13px; border: 1px solid #767676; background-color: #fff;
}

/* Cadre « Données personnelles » */
#os_form > div:has(input[type=checkbox]):not(.form-actions):not(.formError) > div:nth-child(2) {
  border: 1px solid #12b5d8; border-radius: 6px; background: #f5f5f5;
  padding: 17px; line-height: 18px;
}

/* Bande grise derrière « Valider » */
#os_form .form-actions {
  background: #f5f5f5; border-top: 1px solid #e5e5e5;
  margin: 19px 0 0; padding: 16px 19px 16px 179px;
}
#os_form .form-actions .btn {
  padding: 3px 11px; font-size: 15px; line-height: 19px; border-radius: 4px;
}

/* Ajustements formulaire d'abonnement (2) */
#os_form > :not(.form-actions) { padding-left: 0 !important; padding-right: 0 !important; }

#osm-signup-page h3.osm-heading { font-size: 22px !important; }

#os_form input[name="address"],
#os_form input[name="address2"] { width: 324px !important; max-width: 100% !important; }

#os_form > div:has(input[type=checkbox]):not(.form-actions):not(.formError) > div:nth-child(2) {
  padding: 17px 17px 17px 35px !important;
}
#os_form > div:has(input[type=checkbox]):not(.form-actions):not(.formError) > div:nth-child(2) > * {
  margin-bottom: 0 !important; min-height: 0 !important;
}
#os_form > div:has(input[type=checkbox]):not(.form-actions):not(.formError) > div:nth-child(2) input[type=checkbox] {
  float: left; margin: 3px 0 0 -18px !important;
}

#os_form .osm-payment-method-item { margin-bottom: 4px; }

#os_form .form-actions { margin-top: 0; padding-top: 18px; padding-bottom: 18px; }
#os_form .form-actions .btn { padding: 4px 12px; font-size: 16px; line-height: 20px; }

/* Ajustements formulaire d'abonnement (3) */
#os_form > div:has(input[type=checkbox]):not(.form-actions):not(.formError) > div:nth-child(2) {
  margin-top: 33px;
}
#os_form .form-actions { margin-top: -24px; }

/* Ajustements formulaire d'abonnement (4) */
#os_form h3.osm-heading ~ h3.osm-heading { margin-top: 43px !important; }
#os_form .form-actions { margin-top: -29px; }

/* Case à cocher : comme l'ancien site */
#os_form input.form-check-input[type=checkbox] {
  -webkit-appearance: checkbox; appearance: auto;
  width: 13px; height: 13px; background: none; border: 0;
}


/* Cartes d'abonnement (page « Publiez votre annonce ») : rendu de l'ancien site */
#osm-plans-list-columns .osm-page-title { display: none; }
#osm-plans-list-columns .osm-item-wrapper { width: 100%; max-width: 100%; float: none; flex: none; margin: 0; padding: 0; }
#osm-plans-list-columns .osm-item-heading-box { background: #999; margin: 0; padding: 7px 10px; text-align: center; border-radius: 4px 4px 0 0; }
#osm-plans-list-columns .osm-item-heading-box a { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
#osm-plans-list-columns .osm-item-description { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; border: 1px solid #dbdee1; border-top: 0; border-radius: 0 0 4px 4px; padding: 12px 18px; margin: 0; }
#osm-plans-list-columns .osm-item-description-text { margin: 0; min-height: 0; }
#osm-plans-list-columns .osm-item-description-text .tarif { margin: 0; font-size: 20px; color: #222; }
#osm-plans-list-columns .osm-taskbar { margin: 0; }
#osm-plans-list-columns .osm-taskbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
#osm-plans-list-columns .osm-taskbar li { margin: 0; padding: 0; list-style: none; }

#osm-plans-list-columns .row, #osm-plans-list-columns .row-fluid { margin-left: 0; margin-right: 0; }
#osm-plans-list-columns .osm-item-wrapper { margin: 0 13px 12px 0; width: auto; }

.red-header-search ul.nav-haut { margin-top: -5px; }

.adsmanager-subcat-links { text-transform: none; }

/* Crayons d'édition en façade : visibles seulement au survol (comme l'ancien site) */
.btn.jmodedit, .jmenuedit { opacity: 0; transition: opacity .15s; }
:hover > .btn.jmodedit, .btn.jmodedit:hover, .btn.jmodedit:focus,
:hover > .jmenuedit, .jmenuedit:hover, .jmenuedit:focus { opacity: 1; }

/* Boutons gris des articles (classe "btn" de l'ancien site) */
.com-content-article a.btn:not([class*="btn-"]) {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 18px;
  color: #333;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(255,255,255,.75);
  background-color: #f5f5f5;
  background-image: linear-gradient(to bottom, #fff, #e6e6e6);
  border: 1px solid #ccc;
  border-bottom-color: #b3b3b3;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
}
.com-content-article a.btn:not([class*="btn-"]):hover {
  color: #333;
  background-color: #e6e6e6;
  background-image: none;
  text-decoration: none;
}

/* Rubriques du blog : titre bleu et onglets violets (comme l'ancien site) */
.moduletablerubriquesblog h4 {
  color: #12b5d8; font-size: 17px; line-height: 22px;
  border-left: 0; padding-left: 0; margin: 0 0 .7em;
}
.moduletablerubriquesblog ul { list-style: none; margin: 0; padding: 0; }
.moduletablerubriquesblog li {
  position: relative; min-height: 20px;
  margin: 0 0 .9em; padding: 0 0 0 38px;
}
.moduletablerubriquesblog li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px;
  background: #8a157e; border-top-left-radius: 10px;
}
.moduletablerubriquesblog a { color: #333; }

/* Page Blog : barre "BLOG", titres d'articles soulignés, infos sur une ligne (comme l'ancien site) */
.com-content-category-blog > h1 {
  font-size: 22px; line-height: 24px; background: #12b5d8; margin: 0 0 12px;
  border-radius: 6px; padding: 14px; color: #fff; text-transform: uppercase;
  box-shadow: -2px 3px 3px rgba(0,0,0,.3);
}
.com-content-category-blog .item-content .page-header h2 {
  background: none; box-shadow: none; border-radius: 0; padding: 0 0 8px;
  margin: 30px 0 10px; color: #333; font-weight: 400; font-size: 22px; line-height: 26px;
  border-bottom: 3px solid #999;
}
.com-content-category-blog .item-content .page-header h2 a { color: #333; text-decoration: none; }
.com-content-category-blog .article-info {
  display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0 0 14px;
  font-size: 12px; color: #999;
}
.com-content-category-blog .article-info .article-info-term { display: none; }
.com-content-category-blog .article-info dd { margin: 0; }
.com-content-category-blog .article-info a { color: #222; text-decoration: none; }

/* Page Blog : pas d'icône dossier, mois en minuscules (comme l'ancien site) */
.com-content-category-blog .article-info .category-name [class*="icon-"] { display: none; }
.com-content-category-blog .article-info .published time { display: inline-block; text-transform: lowercase; }
.com-content-category-blog .article-info .published time::first-letter { text-transform: uppercase; }

/* Pagination : cadre léger, chiffres sobres, page active en gris clair (comme l'ancien site) */
.pagination {
  display: inline-flex; margin-left: 0;
  border: 1px solid #eee; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.pagination .page-link {
  border: 0; background: transparent; color: #333;
  padding: 4px 8px; font-size: 14px; line-height: 20px; box-shadow: none;
}
.pagination .page-item.active .page-link { background: #eee; color: #999; }
.pagination .page-link:hover { background: #f5f5f5; color: #333; }
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link { border-radius: 0; }

/* Lien "Ajouter un commentaire" sous chaque article de la liste (comme l'ancien site) */
.red-add-comment { margin: 18px 0 0; font-size: 12px; text-align: left; }
.red-add-comment a { color: #333; text-decoration: none; }
.red-add-comment .fa-comment { margin-right: 4px; color: #999; }
.com-content-category-blog .red-share { margin: 6px 0 24px; }

/* Texte des articles du blog : même couleur que l'ancien site */
.com-content-category-blog .item-content,
.com-content-category-blog .item-content p,
.com-content-category-blog .item-content li,
.com-content-category-blog .item-content span,
.com-content-article__body,
.com-content-article__body p,
.com-content-article__body li,
.com-content-article__body span {
  color: #333;
}

/* Pop-up newsletter (page Contact) */
.red-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}
.red-popup[hidden] {
    display: none;
}
.red-popup-box {
    position: relative;
    background: #fff;
    color: #000;
    padding: 20px;
    width: 90%;
    max-width: 400px;
}
.red-popup-close {
    position: absolute;
    top: 4px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #000;
    cursor: pointer;
}

/* Pop-up newsletter : ajustements d'après l'ancien site */
.red-popup {
    background: rgba(200, 200, 200, 0.5);
}
.red-popup-box {
    width: 530px;
    max-width: 92%;
    box-sizing: border-box;
    padding: 54px 30px;
    text-align: center;
}
.red-popup-close {
    top: 14px;
    right: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}
.red-popup-box form {
    margin: 0;
}
.red-popup-box input[type="text"],
.red-popup-box input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    height: 41px;
    padding: 0 10px;
    margin: 0 0 24px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #000;
    font-size: 16px;
}
.red-popup-box button[type="submit"],
.red-popup-box input[type="submit"] {
    height: 57px;
    padding: 0 30px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    cursor: pointer;
}


/* Fond gris dégradé comme l'ancien site */
body.site { background-image: url(../images/fond-site.gif); }