:root {
  --max-width: 1140px;
  --gap: 1.5rem;
  --gap-sm: 1rem;
  --gap-lg: 2rem;
  --gap-xl: 3rem;
}

body {
  margin: 0;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-container {
  width: min(1280px, 100% - 2rem);
  margin-inline: auto;
  padding: 0 1rem;
}

@media (max-width: 640px) {
  .site-container {
    width: min(100%, 100% - 1rem);
    padding: 0 0.5rem;
  }
}

.site-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
  flex: 1;
}

@media (min-width: 768px) {
  .site-main {
    gap: 2.5rem;
    padding: 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  .site-main {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1280px) {
  .site-main {
    gap: 3.5rem;
  }
}

@media (min-width: 1024px){
  .single .site-main{
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }
}

.sidebar{
  position: sticky;
  top: 6rem;
  align-self: start;
}

.content-area{ min-width: 0; } /* important pour overflow */

.single-content{
  max-width: var(--reading-measure, 70ch);
}

/* Article body grid (split mode only on desktop) */
.article-body{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
}

@media (min-width: 1024px){
  .article-body{
    grid-template-columns: minmax(0, 860px) 320px;
    justify-content: center;
    gap: 3.25rem;
  }
}

@media (min-width: 1280px){
  .article-body{
    grid-template-columns: minmax(0, 900px) 336px;
  }
}

/* ===== Reading Canvas (single) ===== */
.et-single .et-single__grid{
  max-width: none;
  margin: 0;
  gap: 2.25rem;
  padding: 2.25rem 0;
  grid-template-columns: 1fr;
}

/* Reduce excessive vertical whitespace */
.home-hero{
  margin-bottom: 2.5rem;
}

.section-head{
  margin: 2rem 0 1.2rem;
}

/* ========== header ========== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #f7f7f8;
  border-bottom: 1px solid #e8e8ee;
}

.header-inner{
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  align-items: center;
  height: 64px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
  color: #0b1220;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-dot{ color: #ff5a1f; }

.main-nav{
  display: flex;
  justify-content: center;
}

.nav-menu{
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-menu a{
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 2px;
  position: relative;
}
.nav-menu .current-menu-item > a,
.nav-menu a:hover{
  color: #ff5a1f;
}
.nav-menu .current-menu-item > a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: #ff5a1f;
  border-radius: 2px;
}

.header-actions{
  display: flex;
  justify-content: flex-end;
}


.search-toggle{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e8e8ee;
  background: #fff;
  cursor: pointer;
}

.search-panel{
  background: #f7f7f8;
  border-bottom: 1px solid #e8e8ee;
}
.search-panel-inner{
  padding: 12px 1rem 16px;
}

.search-form{
  display:flex;
  gap:10px;
  max-width: 520px;
  margin-left: auto;
}
.search-field{
  flex:1;
  border-radius: 10px;
  border: 1px solid #e8e8ee;
  padding: 12px 14px;
  outline: none;
}
.search-submit{
  border: none;
  border-radius: 10px;
  background: #ff5a1f;
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  cursor:pointer;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}



/* ========== FOOTER ========== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #eef0f3;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2rem;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-brand h3 span {
  color: #ff5a1f;
}

.footer-brand p {
  max-width: 300px;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  text-decoration: none;
  color: #374151;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ff5a1f;
}

.footer-socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, 36px);
  align-items: center;
  gap: 0.75rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #374151;
  background: #fff;
  line-height: 0;
  transition: transform .16s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.footer-socials a:hover {
  background: #ff5a1f;
  color: white;
  border-color: #ff5a1f;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
}
.footer-socials .et-icon--social{
  width: 18px;
  height: 18px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #eef0f3;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ========== More Articles (Last Section) ========== */

.more-articles{
  padding: 2.2rem 0 3.5rem;
  background: #f6f7f9; /* comme ton screenshot */
}

.section-head{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.section-title{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.section-line{
  height: 1px;
  flex: 1;
  background: rgba(0,0,0,0.08);
}

.cards-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 820px){
  .cards-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.card{
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(16,24,40,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(16,24,40,0.10);
}

.card-media{
  position: relative;
  display: block;
  background: #eaecef;
}

.card-img{
  width: 100%;
  height: 180px; /* important pour l’alignement */
  object-fit: cover;
  display: block;
}

.card-img--fallback{
  height: 180px;
  background: linear-gradient(135deg, #e7eaef, #f4f6f9);
}

/* badge catégorie */
.card-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,90,31,0.95);
  background: rgba(255,90,31,0.12);
  border: 1px solid rgba(255,90,31,0.18);
}

.card-body{
  padding: 1.05rem 1.05rem 0.8rem;
}

.card-title{
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 800;
}

.card-title a{
  color: #0b1220;
  text-decoration: none;
}

.card-title a:hover{
  text-decoration: underline;
}

.card-excerpt{
  margin: 0;
  color: rgba(11,18,32,0.70);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* footer meta */
.card-meta{
  margin-top: auto;
  padding: 0.75rem 1.05rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(11,18,32,0.65);
}

.meta-left{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}


.all-articles { padding: 2rem 0 3rem; }

.cards-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px){
  .cards-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.card-media{ display:block; position:relative; }
.card-img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

.card-img--fallback{ height:220px; background:#eef2f7; }

.card-badge{
  position:absolute;
  top:12px; left:12px;
  background:#f36b2b;
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.card-body{ padding: 14px 16px 16px; }

.card-title{
  font-size:18px;
  line-height:1.25;
  margin: 4px 0 10px;
  font-weight:800;
}
.card-title a{ color:#0f172a; text-decoration:none; }
.card-title a:hover{ text-decoration:underline; }

.card-excerpt{
  margin:0 0 14px;
  color:#475569;
  font-size:14px;
  line-height:1.6;
}

.card-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#64748b;
  font-size:12px;
  border-top:1px solid rgba(15,23,42,.06);
  padding-top:12px;
}

/* ===== Archive discovery ===== */
.topic-hubs{
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

.topic-hubs__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.topic-hubs__title{
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.topic-hubs__subtitle{
  margin: 0;
  color: rgba(11,18,32,.6);
  font-size: .9rem;
}

.topic-hubs__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.topic-hub{
  display:flex;
  flex-direction: column;
  gap: .35rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.08);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.9);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.topic-hub:hover{
  transform: translateY(-2px);
  border-color: rgba(255,90,31,.25);
  box-shadow: 0 12px 26px rgba(15,23,42,.08);
}

.topic-hub__name{
  font-weight: 800;
  color: #0b1220;
}

.topic-hub__meta{
  color: rgba(11,18,32,.55);
  font-size: .82rem;
}

.archive-controls{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(240px, .8fr);
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.control-group{
  display: grid;
  gap: .6rem;
}

.control-label{
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(11,18,32,.55);
}

.control-pills{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.control-pills--scroll{
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: .2rem;
  scrollbar-width: none;
}

.control-pills--scroll::-webkit-scrollbar{
  display: none;
}

.control-pill{
  display:inline-flex;
  align-items:center;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: #0b1220;
  text-decoration:none;
  font-weight: 700;
  font-size: .8rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
  white-space: nowrap;
}

.control-pill:hover{
  border-color: rgba(255,90,31,.35);
  background: rgba(255,90,31,.06);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transform: translateY(-1px);
}

.control-pill.is-active{
  background: rgba(255,90,31,.12);
  border-color: rgba(255,90,31,.4);
  color: #ff5a1f;
}

.control-pill--all{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.14);
}

.control-search .search-form{
  display:flex;
  gap: .5rem;
}

.control-search .search-field{
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  padding: .6rem .85rem;
  font-size: .85rem;
}

.control-search .search-submit{
  border: 1px solid rgba(255,90,31,.3);
  background: #ff5a1f;
  color: #fff;
  padding: .6rem .9rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.card-flag{
  display:inline-flex;
  align-items:center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: #0b1220;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.card-meta{
  align-items: center;
  flex-wrap: wrap;
}

.meta-left,
.meta-right{
  display:flex;
  align-items:center;
  gap: .55rem;
  flex-wrap: wrap;
}

.meta-updated{
  display:inline-flex;
  align-items:center;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(34,116,165,.12);
  color: #2274A5;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .02em;
}

@media (max-width: 980px){
  .topic-hubs__grid{
    grid-template-columns: 1fr;
  }

  .archive-controls{
    grid-template-columns: 1fr;
  }
}


/* ===== Header Search: hidden by default (removes white pill) ===== */
#header-search.header-search{
  display: none;              /* <-- important */
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 9999;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  padding: 10px;
  width: min(360px, 92vw);
}

/* when open */
#header-search.header-search.is-open{
  display: block;
}

/* input style */
#header-search.header-search input[type="search"]{
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

/* ===== Header layout alignment ===== */
.et-header .et-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

/* actions area */
.et-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative; /* needed so the absolute search dropdown anchors correctly */
}

/* nav links slightly bolder */
.et-nav a{
  font-weight: 600;
}

/* ===== Sticky header stable ===== */
.et-header{
  position: sticky;
  top: 0;
  z-index: 99999;
  background: #f7f8fa; /* mets #fff si tu veux blanc */
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ===== Fix sticky header "stucks" issues ===== */
html, body { overflow-x: hidden; } /* ok */

.et-header{
  position: sticky;
  top: 0;
  z-index: 99999;
  background: #f7f8fa; /* garde ton style */
  will-change: transform;
}

/* IMPORTANT: sticky breaks if ancestors have overflow/transform */
body, .site, .site-container, .page, .wrap, .wrapper{
  overflow: visible !important;
  transform: none !important;
}


/* WordPress admin bar offset */
body.admin-bar .et-header{
  top: 32px;
}
@media (max-width: 782px){
  body.admin-bar .et-header{
    top: 46px;
  }
}


.et-header .et-header__inner{
  min-height: 72px; /* fixe */
  align-items: center;
}

/* ===== Header blur on scroll (glass effect) ===== */
.et-header{
  transition: 
    backdrop-filter 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Active state when scrolling */
.et-header.is-scrolled{
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(247, 248, 250, 0.85); /* same color, just transparent */
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.et-header.is-scrolled nav a{
  color: #0f172a; /* same color, just explicit */
  font-weight: 500;
}


.et-header{
  position: sticky;
  top: 0;
  z-index: 9999;

  /* important pour que le blur soit visible */
   background: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);

  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.et-search{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #111;
}

.et-search-icon{
  width: 18px;
  height: 18px;
  display: block;
}

/* Container */
.et-actions{
  position: relative;
  display: flex;
  align-items: center;
}

/* Search form hidden by default */
.header-search{
  position: absolute;
  top: 50%;
  right: 44px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* Input style */
.header-search input{
  width: 220px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #fff;
}

/* OPEN STATE */
.et-header.is-search-open .header-search{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}


/* état fermé */
#header-search {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(420px, 90vw);
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 10000;
}

/* état ouvert */
.et-header.is-search-open #header-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* important : le parent doit permettre l’absolute */
.et-actions { position: relative; }


/* --- Header search UI --- */
.et-actions{
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.et-search{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.et-search-icon{
  width: 18px;
  height: 18px;
}

/* hidden by default */
.header-search{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 75vw);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  pointer-events: none;
}

/* show when header open */
.et-header.is-search-open .header-search{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* input style */
.header-search .search-field{
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e6e9ef;
  background: #fff;
  outline: none;
}
