@font-face {
  font-family: 'Glacial Indifference';
  src: url('fonts/GlacialIndifference-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Glacial Indifference bold';
  src: url('fonts/GlacialIndifference-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.page-template-template-actus {font-family: 'Glacial Indifference', sans-serif;}




/* ===== Scope template Actus ===== */
.page-template-template-actus { --max:1200px; --pad:clamp(16px,3vw,32px); --ink:#0f1620; --muted:#64748b; --bg:#F6F8F9; }

.page-template-template-actus .site-content{ display:block; background:var(--bg); } /* pas de layout flex */
.page-template-template-actus .widget-area{ display:none; }

/* ===== HERO ===== */
.actus-index .micro-hero{
  margin-top:-150px;
  width:100%;
  min-height: clamp(220px, 30vh, 360px);
  padding-block: clamp(28px,6vw,120px);
  color:#fff;
  /* background: linear-gradient(#092132, #9198e5); */
  background: linear-gradient(#00264d, #1415);
  display:grid; place-items:end center;
}

@media (max-width: 1036px) {
  .actus-index .micro-hero{
    margin-top:-100px;
  }
}
.actus-index .micro-hero .hero-inner{
  /* plein écran visuel mais centrage du texte */
  width:100%; text-align:center; padding-inline: var(--pad);
}
.actus-index .micro-hero h1{
  margin:0; line-height:1.05; letter-spacing:.01em;
  font-size: clamp(42px, 6vw, 84px);
}
.actus-index .micro-hero .sub{ margin-top:.4rem; opacity:.9 }

/* ===== Conteneur centré pour le reste ===== */
.actus-index .wrap{ max-width: var(--max); margin-inline:auto; padding-inline: var(--pad); }

/* ===== Cartes placeholder ===== */
.actus-index .card{
  border-radius: 16px; background:#fff;
  box-shadow: 0 6px 18px rgba(15,22,32,.06);
}
.actus-index .placeholder{ padding: 16px; color:#4b5563; border:1px #cfd6de; }

/* Sections */
.actus-index .a-la-une{ margin-top: clamp(12px,2vw,24px); }
.actus-index .toolbarmargin{ margin-top: clamp(12px,2vw,16px); }
.actus-index .grid-cards{ margin-top: clamp(12px,2vw,24px); padding-bottom: clamp(20px,4vw,40px); }

/* Dev note */
.actus-index .dev-note{ color:var(--muted); }
.actus-index .dev-note code{ background:#eef2f7; padding:2px 6px; border-radius:6px; }


/* --------------------------------------------------------------------------------------------------------------------------------------------- */





/* ===== À la une (layout carte) =====

/* ===== Reset si un placeholder entoure encore la carte ===== */
.actus-index .a-la-une .placeholder{
  padding:0; border:0; background:transparent; box-shadow:none;
  border-radius:0;
  display:contents;
}

/* ===== À la une : compact & horizontal ===== */
.actus-index .feature-card{
  margin-top:0px;
  display:grid;
  grid-template-columns: 320px 1fr max-content;            /* visuel fixe → carte "longue" */
  grid-template-areas: "media content cta";
  align-items: center;
  gap: clamp(12px, 2.2vw, 18px);
  background:#fff;
  border-radius:16px;
  /*border:1px solid transparent;*/
  background-clip:padding-box;
  box-shadow: 0 8px 22px rgba(15,22,32,.08);
  min-height: 160px;                            /* plus bas que ta version actuelle */
  overflow: hidden;
}

/* Visuel plus plat */
.actus-index .feature-card .media{
  position:relative;
  overflow:hidden;
  height: clamp(160px, 22vw, 220px);
  border-radius:0;
  height: 180px;                                 /* << clé : faible hauteur */
  box-shadow: 0 6px 18px rgba(15,22,32,.12);
  grid-area: media;
}
.actus-index .feature-card .media img{
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .35s ease;
}
.actus-index .feature-card .media:hover img{ transform: scale(1.03); }

/* Badge */
.actus-index .feature-card .badge{
  position:absolute; left:10px; top:10px;
  background:#0f1b2a; color:#fff;
  font-size:.8rem; padding:6px 10px; border-radius:999px;
}

/* Contenu */
.actus-index .feature-card .content{
  position: relative;
    /*padding: 16px 18px;*/
    grid-area: content;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.actus-index .feature-card .content .crumbs{
  color:#6b7280; font-size:.9rem; margin:8px 0 4px;
}
.actus-index .feature-card .content .title{
  margin:0 0 6px; font-size: clamp(22px,2.2vw,25px); line-height:1.2;
}
.actus-index .feature-card .content .title a{
  color:#0f1620; text-decoration:none;
}

/* Titre limité à 2 lignes */
.actus-index .feature-card .content .title,
.actus-index .feature-card .content .title a{
  display: -webkit-box;          /* moteur de clamp multi-lignes */
  -webkit-line-clamp: 3;         /* <= 2 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;                 /* spec moderne (Firefox/Chromium récents) */
  line-height: 1.2;
}

/* (optionnel) meilleure casse des très longs mots */
.actus-index .feature-card .content .title a{
  display: -webkit-box;          /* re-déclare pour le lien */
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  font-weight: 600;
  padding: 0 10px;
}

.actus-index .feature-card .content .title a:hover{ text-decoration:underline; }

.actus-index .feature-card .content .byline {
  position: absolute;
  bottom: 2px;
  right: 5px;
  color: #000000;
  margin: 0;
  font-size: small;
}

@media (max-width: 1024px){
  .actus-index .feature-card .content .byline {
  bottom: 0px;
  left: 19px;
 }
}

@media (max-width: 500px){
  .actus-index .feature-card .content .byline {
  font-size: x-small;
 }
}
@media (max-width: 350px){
  .actus-index .feature-card .content .byline .author, .actus-index .feature-card .content .byline .sep {
  display: none;
 }
}
@media (max-width: 300px){
  .actus-index .feature-card .content .byline {
  left: 10px;
 }
}

.actus-index .feature-card .excerpt{
  color:#374151; margin:0 0 10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; /* 2 lignes max */
}

/* CTA */
.actus-index .feature-card .cta{
  justify-self:end;                 /* aligne dans la 3e colonne */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 100%;                      /* taille proche de la maquette */
  padding:0 24px;                   /* largeur visuelle */
  min-width:180px;                  /* évite un bouton trop court */
  border-radius:0 12px 12px 0;
  font-size:16px;
  font-weight:600;
  letter-spacing:.2px;
  background:#C8875A;
  color:#fff;
  text-decoration:none;
  box-shadow:0 6px 14px rgba(200,135,90,.25);
  grid-area: cta;
}

.actus-index .feature-card .cta:hover{ filter: brightness(1.05); }





/* ===== Layout "minimal" dès ≤1024px ===== */
@media (max-width: 1024px){
  .actus-index .feature-card{
    /*padding:12px 14px;*/
    gap:14px;
    grid-template-columns: minmax(150px,1fr) 40%;
    grid-template-areas:
      "content media"
      "cta     media";
    min-height:auto;
  }
  .actus-index .feature-card .media{
    grid-area: media;
    height: clamp(173px, 22vw, 220px);
    border-radius:0 12px 12px 0;           /* coins doux sur l'image */
  }
  .actus-index .feature-card .content{
    grid-area: content;
    padding:8px 4px;
    align-self:start;
  }
  .actus-index .feature-card .cta{
    grid-area: cta;
    justify-self:start;
    align-self: end;
    height:42px;
    min-width:160px;
    padding:0 18px;
    margin:0;
    border-radius: 0 12px 0 12px;
  }

  /* On n'affiche que le label, le titre et le CTA */
  .actus-index .feature-card .crumbs,
  .actus-index .feature-card .excerpt{ display:none; }

  /* Badge dans l'image masqué, on recrée un label à gauche */
  .actus-index .feature-card .badge{ display:none; }
  .actus-index .feature-card .content::before{
    content:"À LA UNE";
    display:inline-block;
    margin-bottom:8px;
    padding:6px 10px;
    font-size:.8rem; font-weight:600; letter-spacing:.04em;
    color:#0f1b2a; background:#eef2f7;
    border-radius:999px;
    margin: 5px;
  }

  /* Titre un peu plus compact */
  .actus-index .feature-card .content .title{
    margin:.2rem 5px .3rem;
    font-size: clamp(15px, 2.2vw, 26px);
    line-height:1.2;
  }
}

@media (max-width: 300px){
  .actus-index .feature-card{
    gap: 0;
    grid-template-columns: minmax(75px, 1fr) minmax(75px, 1fr);
  }
  .actus-index .feature-card .content::before{
    align-self: center;
    color:#fff;
    background: #c9875b;
  }
  .actus-index .feature-card .content .title{
    margin: 1.2rem 5px .3rem;
  }
  .actus-index .feature-card .content .title a{
  padding: 0;
  }
  .actus-index .feature-card .content .byline {
    font-size: xx-small;
  }
  .actus-index .feature-card .cta{
    display: none;
  }
  .actus-index .cards-grid .card {
    grid-template-columns: 50% 50%;
  }
  .actus-index .cards-grid .card .thumb {
    width: 100%;
  }
}













/* --------------------------------------------------------------------------------------------------------------------------------------------- */


/* SearchBar /*

/* 1) Neutraliser le “card” autour de la barre */
.actus-index .divsearchbar.card.placeholder{
  background:transparent; border:0; box-shadow:none; padding:0;
}

/* 2) Conteneur toolbar local à cette section */
.actus-index .divsearchbar .toolbar{
  display:block; padding:0;
}

/* 3) Barre de recherche : centrée, seule, style “pill” */
.actus-index .searchbar{
  position:relative;
  width:min(720px, 100%);
  margin:0 auto;                 /* centre */
  display:block;                  /* plus de layout flex ici */
}

.actus-index .searchbar input[type="search"]{
  width:100%;
  height:54px;
  padding:0 16px 0 44px;          /* place pour l’icône */
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,22,32,.06);
  font:inherit;
}

.actus-index .searchbar input::placeholder{ color:#6b7280; }

/* 4) Icône loupe (SVG inline) */
.actus-index .searchbar::before{
  content:"";
  position:absolute; left:16px; top:50%;
  width:20px; height:20px; transform:translateY(-50%);
  background:no-repeat center/20px 20px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
  opacity:.7;
}


/* (Optionnel) Focus plus visible */
.actus-index .searchbar input[type="search"]:focus{
  outline:0; box-shadow:0 0 0 3px rgba(99,102,241,.15), 0 6px 18px rgba(15,22,32,.08);
  border-color:#d1d5db;
}









/* --------------------------------------------------------------------------------------------------------------------------------------------- */




/* grille des résultats */
.cards-grid{
  display:grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
}
.card .thumb{ display:block; aspect-ratio:16/9; background:#f1f5f9; border-radius:12px 12px 0 0; overflow:hidden; }
.card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
#actus-grid .card .k{
    font-weight: 600;
    color: #C9875B;
    grid-area: cat;
    display: block;
    margin: 2px 8px 4px;
    font-size: .78rem;
  }
.card .t{ font-size:1.05rem; margin:.5rem 0 .25rem; padding: 8px; font-weight: 600;}
.card .t a{ text-decoration:none; color:#0f1620;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
.card .t a:hover{ text-decoration:underline }
.card .x{ color:#475569; margin:0 }

/* Date (1 ligne) */
  #actus-grid .card .m{
    grid-area: meta;
    font-size: .80rem;
    color: #94a3b8;
    margin: 2px 0 5px;
    line-height: 1.1;
    min-height: 1.1em;
  }

/* Loader overlay sur la section résultats */
#actus-grid{ position:relative; }
#actus-grid.is-loading{ pointer-events:none; }
#actus-grid.is-loading::before{
  content:none;
}
#actus-grid.is-loading::after{
  content:""; position:absolute; left:50%; top:50%;
  width:40px; height:40px; margin:-20px 0 0 -20px;
  border:3px solid #e5e7eb; border-top-color:#C8875A;
  border-radius:50%; animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

#actus-grid .card{
    display: flex;
    flex-direction: column;   /* empile: thumb, cat, titre, extrait, date */
    height: 100%;
  }

#actus-grid .card .m{
    margin-top: auto;         /* pousse la date en bas */
    padding: 0 8px 10px;     /* petit padding latéral + bas */
  }





/* ===== Mobile list view (≤ 680px) — vignette fixe 130x130 ===== */
@media (max-width: 680px){
  #actus-grid .cards-grid{
    grid-template-columns: 1fr;        /* une colonne, cartes empilées */
    gap: 12px;
  }

  #actus-grid .card{
    display: grid;
    grid-template-columns: 130px 1fr;  /* ⬅️ colonne image = 130px */
    grid-template-areas:
      "thumb  cat"
      "thumb  text"
      "thumb  meta";
    align-items: center;                /* centre le bloc texte vs image fixe */
    gap: 10px;
    /*padding: 10px;*/
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15,22,32,.06);
    background: #fff;
    min-height: 130px;                  /* garantit l’affichage complet de l’image */
  }

  /* Vignette STRICTEMENT 130x130 */
  #actus-grid .card .thumb{
    grid-area: thumb;
    width: 130px;
    height: 130px;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    /* sécurité si jamais un style externe shrink la vignette */
    flex: 0 0 130px;
  }
  #actus-grid .card .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Catégorie (au-dessus du titre) */
  #actus-grid .card .k{
    grid-area: cat;
    display: block;
    margin: 5px 0 0px;
    font-size: .78rem;
    line-height: 1.1;
    min-height: 1.1em;                  /* réserve 1 ligne */
  }

  /* Titre : 2 lignes max */
  #actus-grid .card .t{
    grid-area: text;
    margin: 0;
    padding: 0;
    font-size: clamp(15px, 2.2vw, 26px);
    font-weight: 600;
    line-height: 1.25;
    min-height: calc(2 * 1.25em);       /* réserve 2 lignes => hauteur stable */
  }
  #actus-grid .card .t a{
    color:#0f1620; text-decoration:none;
    padding-right: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
  }

  /* Date (1 ligne) */
  #actus-grid .card .m{
    display: grid;
    grid-area: meta;
    font-size: .80rem;
    color: #94a3b8;
    padding: 0;
    margin: 2px 0 5px;
    line-height: 1.1;
    min-height: 1.1em;
  }

  /* Pas d’extrait en mobile */
  #actus-grid .card .x{ display:none !important; }
}






@media (max-width: 300px){
  .actus-index .feature-card{
    gap: 0;
    grid-template-columns: minmax(75px, 1fr) minmax(75px, 1fr);
  }
  .actus-index .feature-card .content::before{
    align-self: center;
    color:#fff;
    background: #c9875b;
  }
  .actus-index .feature-card .content .title{
    margin: 1.2rem 5px .3rem;
  }
  .actus-index .feature-card .content .title a{
  padding: 0;
}
  .actus-index .feature-card .cta{
    display: none;
  }
  #actus-grid .card {
    grid-template-columns: 50% 50%;
  }
  #actus-grid .card .thumb {
    width: 100%;
  }
}



/* --------------------------------------------------------------------------------------------------------------------------------------------- */




/* chips catégories */
.actus-index .chips{ display:flex; gap:8px; flex-wrap:wrap; }
.actus-index .chip{
  padding:2px 10px; color:#141414; border:1px solid #e5e7eb; border-radius:999px;
  background:#fff; cursor:pointer; font:inherit; font-size:13px;
}
.actus-index .chip.is-active{
  background:#0f1b2a; color:#fff; border-color:#0f1b2a;
}
.actus-index .chip.is-active:hover{
  background:#0f1b2a!important; color:#fff!important; border-color:#0f1b2a;
}

/* Load more section */

.actus-index .load-more-wrap {
  display:flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

#loadMoreBtn {
  border-radius: 50px;
}

#loadMoreBtn:hover {
  background-color: #3d3d43!important;
}