/* ===========================================================
   Twenty One Jobs — habillage du blog
   Version 1.4
   Marine #1B1464, vert #0EA97D, Inter.
   =========================================================== */

:root{
  --j-marine:#1B1464;
  --j-marine-fonce:#10123B;
  --j-vert:#0EA97D;
  --j-vert-fonce:#0B8A66;
  --j-encre:#0F172A;
  --j-gris:#64748B;
  --j-ligne:#E4E7F2;
  --j-fond:#F7F8FC;
  --j-ombre:0 1px 2px rgba(16,18,59,.04), 0 8px 24px rgba(16,18,59,.06);
}

body,
.ast-container,
.entry-content,
.site-title,
.entry-title{
  font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;
}
body{background:var(--j-fond);color:var(--j-encre);overflow-x:clip;}

/* ---------- En-tete ---------- */
.ast-primary-header-bar,
body .ast-primary-header-bar.ast-primary-header,
body.ast-header-break-point .ast-primary-header-bar{
  background:var(--j-marine) !important;
  background-image:none !important;
  border-bottom:0 !important;
  min-height:72px !important;
}
body .ast-primary-header-bar .site-primary-header-wrap{min-height:72px !important;}
body .ast-primary-header-bar .ast-builder-grid-row{align-items:center;min-height:72px !important;}

.site-branding,.ast-site-identity{padding:0 !important;}
.ast-site-identity{display:flex;align-items:center;gap:10px;}
.custom-logo-link{display:inline-flex;align-items:center;}
body .site-header .custom-logo,
body .ast-site-identity .custom-logo,
body.ast-header-break-point .site-header .custom-logo{
  height:26px !important;width:auto !important;
  max-height:none !important;max-width:none !important;
}

/* Pastille : le visiteur sait ou il est, et que le logo ramene au site. */
.ast-site-identity::after{
  content:"Blog";
  display:inline-flex;align-items:center;
  height:24px;padding:0 10px;border-radius:999px;
  background:rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.26);
  color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em;
  line-height:1;white-space:nowrap;
}

.main-header-menu > .menu-item > a{
  color:rgba(255,255,255,.88) !important;
  font-size:15px !important;font-weight:500;
  padding:0 18px !important;border-radius:999px;margin:0 2px;
  transition:color .18s ease,background .18s ease;
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .current-menu-item > a{
  color:#fff !important;background:rgba(255,255,255,.14);
}
.main-header-menu .sub-menu{
  background:#fff;border:1px solid var(--j-ligne);border-radius:12px;
  box-shadow:0 18px 44px rgba(16,18,59,.16);padding:6px;overflow:hidden;
}
.main-header-menu .sub-menu a{
  color:var(--j-encre) !important;border-radius:8px;font-size:14.5px;
}
.main-header-menu .sub-menu a:hover{background:#F1F3FF;}

/* Bouton d'action : le vert de la marque */
.main-header-menu > .menu-item.j-cta > a,
.ast-mobile-header-content .menu-item.j-cta > a{
  background:var(--j-vert);color:#fff !important;
  font-weight:600;padding:.56em 1.3em !important;border-radius:999px;
}
.main-header-menu > .menu-item.j-cta > a:hover{background:var(--j-vert-fonce);color:#fff !important;}

.ast-mobile-menu-trigger-fill,
.ast-button-wrap .ast-mobile-menu-trigger-minimal{
  background:rgba(255,255,255,.16) !important;color:#fff !important;
  border-radius:10px !important;border:0 !important;
}

/* ---------- Bandeau de titre ---------- */
.j-hero{max-width:1200px;margin:0 auto;padding:54px 20px 10px;}
.j-hero h1{font-size:clamp(30px,4vw,46px);font-weight:800;letter-spacing:-.02em;line-height:1.1;margin:0 0 10px;color:var(--j-marine);}
.j-hero p{color:var(--j-gris);font-size:17px;margin:0;max-width:60ch;}

/* Filtres par rubrique */
.j-filtres{display:flex;flex-wrap:wrap;gap:10px;max-width:1200px;margin:26px auto 0;padding:0 20px;}
.j-filtre{
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 16px;border-radius:999px;background:#fff;
  border:1px solid var(--j-ligne);color:var(--j-encre) !important;
  font-size:14px;font-weight:600;text-decoration:none !important;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.j-filtre:hover{border-color:#C8CEEA;box-shadow:var(--j-ombre);}
.j-filtre.est-actif{background:var(--j-marine);border-color:var(--j-marine);color:#fff !important;}
.j-filtre .j-nb{opacity:.55;font-weight:500;}

/* ---------- Grille de cartes ---------- */
.ast-separate-container .site-content > .ast-container{padding-top:26px;}
#primary .site-main > .ast-row{
  display:grid !important;
  grid-template-columns:repeat(3,1fr);
  gap:26px;margin:0 !important;
}
.ast-separate-container .ast-article-post{
  width:auto !important;max-width:none !important;align-self:stretch;
  background:#fff;border:1px solid var(--j-ligne);border-radius:16px;
  box-shadow:var(--j-ombre);overflow:hidden;padding:0 !important;margin:0 !important;
  display:flex;flex-direction:column;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.ast-separate-container .ast-article-post:hover{
  transform:translateY(-2px);
  box-shadow:0 2px 4px rgba(16,18,59,.05),0 16px 36px rgba(16,18,59,.10);
  border-color:#D5DAF0;
}
.ast-article-post .post-thumb{margin:0;}
.ast-article-post .post-thumb img{
  width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block;border-radius:0;
}
.ast-article-post .ast-article-inner,
.ast-article-post .post-content{padding:0 !important;margin:0 !important;border:0 !important;}
.ast-article-post .post-content > *{padding-left:22px;padding-right:22px;}
.ast-article-post .entry-title{margin:4px 0 6px;font-size:19px;line-height:1.3;letter-spacing:-.01em;}
.ast-article-post .entry-title a{color:var(--j-marine) !important;text-decoration:none !important;}
.ast-article-post .entry-title a:hover{color:var(--j-vert) !important;}
.ast-article-post .ast-blog-meta-container,
.ast-article-post .entry-meta{
  font-size:13px;color:var(--j-gris);text-transform:none;letter-spacing:0;margin:0 0 8px;
}
.ast-article-post .ast-excerpt-container{color:#475569;font-size:14.5px;line-height:1.6;padding-bottom:22px;}
.ast-article-post .j-rubrique{
  display:block;font-size:11.5px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--j-vert);margin:18px 0 0;
}
.ast-article-post .read-more,.ast-article-post .ast-readmore-wrapper{display:none;}

/* ---------- Pagination ---------- */
.ast-pagination{margin:40px 0 10px;}
.ast-pagination .nav-links{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;}
.ast-pagination .page-numbers{
  min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:10px;background:#fff;border:1px solid var(--j-ligne);
  color:var(--j-marine) !important;font-weight:600;text-decoration:none !important;
}
.ast-pagination .page-numbers:hover{border-color:#C8CEEA;}
.ast-pagination .page-numbers.current{background:var(--j-marine);border-color:var(--j-marine);color:#fff !important;}
.ast-pagination .page-numbers.dots{background:transparent;border:0;}
.ast-pagination .prev.page-numbers,
.ast-pagination .next.page-numbers{padding:0 18px;font-weight:700;gap:8px;margin:0 !important;}
.ast-pagination .prev.page-numbers{margin-right:6px !important;}
.ast-pagination .next.page-numbers{margin-left:6px !important;}

/* ---------- Fiche article ---------- */
.single .ast-separate-container .site-content .ast-single-post-featured-section,
.single .ast-single-post-featured-section{
  max-width:880px;margin:0 auto !important;overflow:hidden;
  border:1px solid var(--j-ligne) !important;border-bottom:0 !important;
  border-radius:20px 20px 0 0 !important;background:#fff;
}
.single .ast-single-post-featured-section img{width:100%;height:auto;display:block;border-radius:0 !important;}

body.single .ast-separate-container .site-content .ast-article-single,
.single .ast-article-single{
  width:100% !important;max-width:100% !important;margin:0 !important;
  background:#fff !important;
  border:1px solid var(--j-ligne) !important;border-radius:0 0 20px 20px !important;
  box-shadow:var(--j-ombre);
  padding:34px 52px 46px !important;
}
.single .site-main{max-width:880px;margin:0 auto;}
.single .site-main > .ast-article-single:first-child{border-radius:20px !important;padding-top:44px !important;}

.single .entry-title{font-size:clamp(28px,3.4vw,40px);line-height:1.15;letter-spacing:-.02em;color:var(--j-marine);margin:0 0 12px;}
.single .entry-meta{font-size:14px;color:var(--j-gris);text-transform:none !important;letter-spacing:0 !important;margin-bottom:28px;}
.single .entry-meta a{color:var(--j-gris) !important;text-decoration:none !important;}

.single .entry-content{font-size:17px;line-height:1.75;color:#1E293B;}
.single .entry-content p{margin-bottom:1.35em;}
.single .entry-content h2{font-size:26px;margin:2.2em 0 .6em;line-height:1.25;letter-spacing:-.01em;color:var(--j-marine);}
.single .entry-content h3{font-size:20px;margin:1.8em 0 .5em;line-height:1.3;color:var(--j-marine);}
.single .entry-content a{color:var(--j-marine);text-decoration:none;border-bottom:1.5px solid rgba(14,169,125,.45);}
.single .entry-content a:hover{color:var(--j-vert-fonce);border-bottom-color:var(--j-vert);}
.single .entry-content ul,.single .entry-content ol{margin:0 0 1.4em 1.2em;}
.single .entry-content li{margin-bottom:.5em;}
.single .entry-content blockquote{
  border-left:4px solid var(--j-vert);background:#F3FBF8;
  padding:1.1em 1.5em;border-radius:0 12px 12px 0;margin:2em 0;color:var(--j-encre);
}
.single .entry-content blockquote p{margin-bottom:0;}
.single .entry-content figure{margin:2.2em 0;}
.single .entry-content img{border-radius:12px;border:1px solid var(--j-ligne);display:block;}
.single .entry-content figcaption{font-size:13.5px;color:var(--j-gris);text-align:center;margin-top:.7em;}

/* Encart d'appel a l'action en fin d'article */
.j-endcta{
  background:var(--j-marine);border-radius:16px;padding:30px 34px;margin:40px 0 4px;color:#fff;
}
.j-endcta h3{color:#fff !important;margin:0 0 .4em !important;font-size:21px;line-height:1.3;}
.j-endcta p{color:#C3C7E8 !important;margin:0 0 18px;font-size:15.5px;line-height:1.6;}
.j-endcta a{
  display:inline-block;background:var(--j-vert);color:#fff !important;
  font-weight:600;padding:.72em 1.5em;border-radius:999px;
  text-decoration:none !important;border:0 !important;transition:background .18s ease;
}
.j-endcta a:hover{background:#0C9770;color:#fff !important;}

/* ---------- Pied de page ---------- */
.site-footer,#colophon.site-footer,.ast-small-footer{background:var(--j-marine-fonce) !important;border-top:0 !important;}
.site-below-footer-wrap{background:transparent !important;border:0 !important;padding:0 !important;}
.j-footer{color:#B7BEE0;font-size:14.5px;line-height:1.65;padding:52px 20px 26px;max-width:1140px;margin:0 auto;}
.j-foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;align-items:start;}
.j-foot-nom{color:#fff;font-weight:700;font-size:17px;margin:0 0 10px;letter-spacing:-.01em;}
.j-foot-tag{color:#98A0C8;margin:0 0 20px;max-width:34ch;font-size:14px;}
.j-foot-cta{
  display:inline-block;background:var(--j-vert);color:#fff !important;font-weight:600;font-size:14px;
  padding:.68em 1.3em;border-radius:999px;text-decoration:none !important;transition:background .18s ease;
}
.j-foot-cta:hover{background:#0C9770;}
.j-foot-h{color:#fff;font-size:11.5px;font-weight:700;letter-spacing:.10em;text-transform:uppercase;margin:0 0 14px;}
.j-foot-col ul{list-style:none;margin:0;padding:0;}
.j-foot-col li{margin:0 0 9px;}
.j-foot-col a{color:#B7BEE0 !important;text-decoration:none !important;font-size:14px;transition:color .16s ease;}
.j-foot-col a:hover{color:#fff !important;}
.j-foot-bas{
  margin-top:42px;padding-top:22px;border-top:1px solid rgba(255,255,255,.10);
  display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;font-size:13px;color:#7E86B2;
}

/* ---------- Adaptations ---------- */
@media (max-width:1100px){
  #primary .site-main > .ast-row{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:920px){
  .j-foot-grid{grid-template-columns:1fr 1fr;gap:32px;}
  .j-foot-marque{grid-column:1 / -1;}
}
@media (max-width:760px){
  #primary .site-main > .ast-row{grid-template-columns:1fr;gap:20px;}
  .j-hero{padding:34px 20px 6px;}
  body .site-header .custom-logo,body .ast-site-identity .custom-logo{height:22px !important;}
  .ast-site-identity::after{height:21px;padding:0 8px;font-size:11px;}
  .single .ast-single-post-featured-section{border-radius:14px 14px 0 0 !important;}
  .single .ast-article-single{border-radius:0 0 14px 14px !important;padding:24px 20px 34px !important;}
  .single .site-main > .ast-article-single:first-child{border-radius:14px !important;}
  .j-endcta{padding:24px 22px;}
}
@media (max-width:560px){
  .j-foot-grid{grid-template-columns:1fr;}
  .j-foot-bas{flex-direction:column;gap:8px;}
}


/* ---------- Correctifs 1.1 ---------- */

/* Titre de site : lisible par defaut, masque seulement si le logo est la.
   Hier je le masquais toujours — resultat, en-tete vide quand le logo manquait. */
.site-header .site-title a,
.site-header .site-title{color:#fff !important;font-size:20px;font-weight:700;letter-spacing:-.01em;}
.site-header .site-description{color:rgba(255,255,255,.7) !important;font-size:12px;}
body.j-logo .site-header .site-title,
body.j-logo .site-header .site-description{
  position:absolute !important;width:1px;height:1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}

/* Astra imprime deja la rubrique au-dessus du titre : on garde la notre. */
.ast-article-post .ast-taxonomy-container,
.ast-article-post .cat-links,
.ast-article-post .entry-meta .cat-links{display:none !important;}

/* Alignement a gauche du bandeau et des filtres. */
.j-hero,.j-hero h1,.j-hero p,.j-filtres{text-align:left;}

/* Pied de page : le notre remplace celui du theme. */
.ast-small-footer.ast-below-footer-wrap,
.site-below-footer-wrap[data-section="section-below-footer-builder"],
.site-primary-footer-wrap{display:none !important;}
#colophon .j-footer{display:block;}


/* ---------- Correctifs 1.3 (valeurs mesurees sur la page reelle) ---------- */

/* Le bandeau et les filtres se calaient au centre : le bloc se reduisait
   a la largeur du texte. On impose la boite, alignee sur la grille a 120 px. */
.j-hero{
  display:block !important;width:100% !important;
  max-width:1240px !important;margin:0 auto !important;
  padding:54px 20px 10px !important;box-sizing:border-box;
}
.j-hero h1,.j-hero p{display:block !important;width:100% !important;text-align:left !important;}
.j-filtres{
  display:flex !important;width:100% !important;
  max-width:1240px !important;margin:26px auto 0 !important;
  padding:0 20px !important;box-sizing:border-box;justify-content:flex-start;
}

/* Le pied de page se construit hors de #colophon : il porte son fond lui-meme. */
.j-footer{
  background:var(--j-marine-fonce) !important;
  width:100% !important;max-width:none !important;
  margin:40px 0 0 !important;padding:0 !important;
}
.j-footer-inner{max-width:1140px;margin:0 auto;padding:52px 20px 26px;}

@media (max-width:760px){
  .j-hero{padding:34px 20px 6px !important;}
}


/* ---------- Correctifs 1.4 (mesures sur la page reelle, 320 a 760 px) ---------- */

/* Le mot-symbole fait onze fois sa hauteur : une hauteur fixe le fait deborder
   sur petit ecran. On le contraint en largeur, relativement a l'ecran.
   Selecteur volontairement precis : les regles de base le battaient. */
@media (max-width:760px){
  html body .ast-site-identity a.custom-logo-link img.custom-logo{
    height:auto !important;width:auto !important;max-width:36vw !important;
  }
}
@media (max-width:560px){
  html body .ast-site-identity a.custom-logo-link img.custom-logo{max-width:44vw !important;}
  /* La pastille prend la place du logo sur un telephone : on la retire. */
  html body .ast-site-identity::after{display:none !important;}
}

/* ---------- 1.5 : bascule de langue (FR / EN) dans l'entete ---------- */

.j-langues{display:inline-flex;align-items:center;gap:2px;margin-left:10px;}
.j-langues .j-langue{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;height:24px;padding:0 7px;border-radius:999px;
  color:rgba(255,255,255,.72);font-size:11px;font-weight:700;
  letter-spacing:.06em;line-height:1;text-decoration:none;
  transition:color .15s ease,background-color .15s ease;
}
.j-langues .j-langue:hover{color:#fff;background:rgba(255,255,255,.12);}
.j-langues .j-langue.est-actif{
  color:var(--j-marine);background:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.9);
}

/* Sur telephone la pastille "Blog" disparait deja : la bascule reste,
   c'est elle qui porte une fonction. On la resserre. */
@media (max-width:560px){
  .j-langues{margin-left:6px;gap:0;}
  .j-langues .j-langue{min-width:26px;height:21px;padding:0 5px;font-size:10px;}
}
