/*
Theme Name: Twenty Twenty-Three Child
Template: twentytwentythree
*/

/* ===== GLOBAL ===== */
html, body {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Courier New', monospace;
  background:#151515;
}

a { text-decoration:none; }

/* ===== HEADER ===== */
.desktop-only { display:block; }
@media screen and (max-width:1024px) { .desktop-only { display:none !important; } }

/* Bandeau AQI */
.aqi-header-band {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color:#333300;
  border-bottom:1px solid #FFCC00;
  padding:2px 0;
  overflow:hidden;
  font-size:16px;
  width:100%;
  margin:0;
}

.aqi-scroll-container {
  display:flex;
  width:max-content;
  animation:scroll-left 40s linear infinite;
}
.aqi-item { color:white; white-space:nowrap; margin-right:40px; }
@keyframes scroll-left { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }

/* Header principal */
.custom-site-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 25px;
  margin:8px 50px 15px 50px;
  border:0.5px solid white;
  border-radius:10px;
  background:#151515;
  min-height:auto;
  z-index:999;
}
.header-left { display:flex; align-items:center; gap:20px; }
.site-title { font-family: Arial, sans-serif; font-size:45px; color:white; text-decoration:none; line-height:1; padding:0; display:flex; align-items:center; justify-content:center; }
.header-nav { display:flex; gap:10px; }
.header-nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 15px;
  font-size:28px;
  border-radius:10px;
  white-space:nowrap;
}
.blog-link { color:#3366FF; border:1px solid #3366FF; }
.blog-link:hover { background-color:rgba(51,102,255,0.1); }
.shop-link { color:#FF6600 border:1px solid #FF6600; }
.shop-link:hover { background-color:rgba(255,102,0,0.1); }

/* Search bar */
.header-search { display:flex; align-items:center; flex-grow:1; margin-left:30px; }
.header-search form { display:flex; width:100%; }
.custom-search-field {
  font-size:18px;
  color:#999;
  border:1px solid #999;
  border-radius:10px;
  padding:0 10px;
  background-color:rgba(153,153,153,0.2);
  height:50px;
  width:100%;
  box-sizing:border-box;
}

/* Séparateur caché par défaut (desktop) */
.mobile-separator { display:none; }

/* Responsive header */
@media screen and (max-width:1024px) {

  .aqi-header-band,
  .header-search {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .custom-site-header {
    display: block;
    border: none;
    margin: 0;
    padding: 4px 0;
    width: 100%;
  }

  .header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .site-title {
    width: min(84%, 420px);
    margin: 0 auto;
    padding: 10px 8px;
    font-size: clamp(22px, 5vw, 30px);
    text-align: center;
    border: 0.5px solid white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .header-nav {
    display: flex;
    justify-content: space-between;
    width: min(84%, 420px);
  }

  .header-nav a {
    width: 48%;
    font-size: 20px;
    padding: 6px 4px;
    text-align: center;
    box-sizing: border-box;
  }

  .mobile-separator {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: min(84%, 420px);
    margin: 16px auto 0;
  }

  .mobile-separator-line {
    height: 1px;
    background: #555;
    width: 100%;
  }
}

/* ===== FRONT PAGE ===== */
.home-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  padding: 15px 50px 0;
  box-sizing: border-box;
}

.home-blog, .home-shop {
  border-radius: 10px;
  padding: 15px 20px 20px;
  cursor: pointer;
  background: #151515;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  max-height: 70vh;
}

/* Blog takes 60% of width, Shop takes 40% */
.home-blog { 
  flex: 0 0 calc(60% - 12px);
  border: 1px solid #3366FF; 
}

.home-shop {
  flex: 0 0 calc(40% - 8px);
  border: 1px solid #FF6600;
}

.home-blog:hover { 
  background: rgba(51,102,255,0.05); 
}

.home-shop:hover { 
  background: rgba(255,102,0,0.05); 
}

/* Blog header with title and subtitle stacked */
.home-blog-header {
  margin-bottom: 15px;
}

.home-blog-title { 
  color: #3366FF; 
  font-size: 22px; 
  margin-bottom: 5px; 
}

.home-blog-subtitle { 
  color: #ffffff; 
  font-size: 13px; 
  margin-bottom: 0;
}

/* Article wrapper contains date outside + card inside */
.article-wrapper {
  margin-bottom: 12px;
  position: relative;
}

/* Date positioned OUTSIDE and ABOVE the article card */
.article-date { 
  color: #555; 
  font-size: 11px; 
  text-align: left;
  margin-bottom: 4px;
  transition: color 0.2s;
}

/* Article card with fixed background #232323 and fixed height */
body.home .article-card {
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  padding: 12px 15px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  background: #232323 !important;
  height: 112px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

body.home .article-card:hover { 
  background: #2a2a2a !important;
}

body.home .article-card:hover .article-title,
body.home .article-card:hover .article-excerpt { 
  color: #ffffff !important;
}

body.home .article-title { 
  color: #aaa !important; 
  font-size: 14px !important; 
  margin-bottom: 8px !important; 
  transition: color 0.2s !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #444 !important;
  flex-shrink: 0 !important;
  line-height: 1.3 !important;
}

body.home .article-excerpt { 
  color: #666 !important; 
  font-size: 12px !important; 
  line-height: 1.5 !important; 
  transition: color 0.2s !important;
  flex: 1 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  text-overflow: ellipsis !important;
}

/* Container for articles */
.articles-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Shop section */
.home-shop-title { 
  color: #FF6600; 
  font-size: 22px; 
  margin-bottom: 5px; 
}

.home-shop-subtitle { 
  color: #666; 
  font-size: 13px; 
  margin-bottom: 15px; 
}

.shop-category {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 10px;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  display: block;
}

.shop-category:hover { 
  color: #ffffff; 
  background: rgba(255,255,255,0.07); 
}

/* ===== FRONT PAGE MOBILE ===== */
@media (max-width: 768px) {

  body.home {
    overflow: hidden;
    height: 100%;
  }

  body.home .home-container {
    position: fixed;
    top: 130px;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 84%;

    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 8px 0;
    box-sizing: border-box;

    overflow: hidden;
    background: #151515;
  }

  /* Sections communes */
  .home-blog,
  .home-shop {
    flex: 1 !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;

    overflow: hidden !important;
    padding: 10px 12px !important;
    margin: 0 !important;

    border-radius: 6px !important;
  }

  /* Titres */
  .home-blog-title,
  .home-shop-title {
    font-size: 16px !important;
    margin: 0 !important;
  }

  .home-blog-subtitle,
  .home-shop-subtitle {
    font-size: 11px !important;
    margin: 0 !important;
  }

  /* Articles */
  .article-wrapper {
    margin: 0 !important;
  }

  body.home .article-card {
    padding: 8px 10px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .article-date {
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }

  body.home .article-title {
    font-size: 12px !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
  }

  body.home .article-excerpt {
    display: none !important;
  }

  /* Shop */
  .shop-category {
    padding: 9px 12px !important;
    margin: 0 !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }
}

/* ===== DISCLOSURE PAGE ===== */
.page-template-page-disclosure .wp-site-blocks,
.page-template-page-disclosure .is-layout-constrained,
.page-template-page-disclosure .entry-content,
.page-template-page-disclosure main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.disclosure-container {
  padding: 40px 50px 80px 50px;
  box-sizing: border-box;
}

.disclosure-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.disclosure-prompt {
  color: #ffffff;
  font-size: 28px;
  font-family: 'Courier New', monospace;
}

.disclosure-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}

.disclosure-divider {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 32px;
}

.disclosure-section {
  margin-bottom: 32px;
}

.disclosure-section-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

.disclosure-content p {
  color: #999999;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  margin: 0 0 12px 0;
}

.disclosure-content strong {
  color: #cccccc;
}

.disclosure-link {
  color: #3366FF;
  text-decoration: none;
  transition: color 0.2s;
}

.disclosure-link:hover {
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .disclosure-container {
    padding: 20px 20px 60px 20px;
  }
  .disclosure-title { font-size: 22px; }
  .disclosure-prompt { font-size: 22px; }
}

/* ===== ABOUT PAGE ===== */
.page-template-page-about .wp-site-blocks,
.page-template-page-about .is-layout-constrained,
.page-template-page-about .entry-content,
.page-template-page-about main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.about-container {
  padding: 40px 50px 80px 50px;
  box-sizing: border-box;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.about-prompt {
  color: #ffffff;
  font-size: 28px;
  font-family: 'Courier New', monospace;
}

.about-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}

.about-divider {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 32px;
}

.about-section {
  margin-bottom: 32px;
}

.about-section-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

.about-content p {
  color: #999999;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  margin: 0 0 12px 0;
}

.about-list {
  color: #999999;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  margin: 0 0 12px 0;
  padding-left: 20px;
  list-style: none;
}

.about-list li {
  margin-bottom: 8px;
  position: relative;
}

.about-list li::before {
  content: '*';
  position: absolute;
  left: -16px;
  color: #555;
}

.about-content strong {
  color: #cccccc;
}

.about-link {
  color: #3366FF;
  text-decoration: none;
  transition: color 0.2s;
}

.about-link:hover {
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .about-container {
    padding: 20px 20px 60px 20px;
  }
  .about-title { font-size: 22px; }
  .about-prompt { font-size: 22px; }
}

/* ===== SINGLE ARTICLE PAGE ===== */
.single .wp-site-blocks,
.single .is-layout-constrained,
.single .entry-content,
.single main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.single-container {
  padding: 40px 50px 80px 50px;
  box-sizing: border-box;
}
/* ── TOP ROW ── */
.single-top {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}
/* ── LEFT BLOCK ── */
.single-header-block {
  flex: 1 1 0;
  border: 0.5px solid #ffffff;
  border-radius: 10px;
  overflow: hidden;
  background: #232323;
  display: flex;
  flex-direction: column;
}
.single-title-area {
  padding: 8px 16px 6px 16px;
  display: flex;
  align-items: center;
  flex-grow: 1;
}
.single-title-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.single-prompt {
  color: #ffffff;
  font-size: 26px;
  font-family: 'Courier New', monospace;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 1px;
}
.single-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: none;
  margin: 0;
  line-height: 1;
}
.single-date {
  color: #999;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  text-align: right;
  margin: 0 0 8px 0;
}
/* Divider below title, flush to box edges */
.single-divider {
  border: none;
  border-top: 1px solid #ffffff;
  margin: 0;
}
/* Hero image flush to left, right, bottom */
.single-hero-wrap {
  width: 100%;
  height: 47vh;
  flex-shrink: 0;
  overflow: hidden;
  margin: 0;
  line-height: 0;
  display: block;
}
.single-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── AUTHOR IMAGE: squared, 20% shorter, 1px colored frame ── */
.single-author-img-wrap {
  width: calc(100% - 32px);
  margin: 0 16px 0 16px;
  flex: 0 0 auto;
  height: calc(80% - 32px);
  min-height: 0;
  overflow: hidden;
  border-radius: 0; /* squared corners */
  background: #444;
  border: 0.5px solid #ffffff; /* default frame, overridden per author */
}

.single-author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* author box: align to top so image stretches upward */
.single-author-box {
  width: 215px;
  flex-shrink: 0;
  align-self: stretch;
  border: 0.5px solid #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  background: #232323;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 16px 0 16px 0;
}

/* "WRITTEN BY" label removed from PHP — rule kept but unused */
.single-author-label {
  display: none;
}

/* ── AUTHOR NAME: colored, not bold, uppercase, 30% larger ── */
.single-author-name {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 8px 0 0 0;
  text-align: center;
  text-transform: uppercase;
}

/* ── ARTICLE BODY ── */
.single-body {
  border: 0.5px solid #ffffff;
  border-radius: 10px;
  padding: 14px 16px 32px 16px;
  box-sizing: border-box;
  background: #232323;
}

/* Content wrapper */
.single-body-content {
  padding: 0 30px;
}

/* Paragraphs = texte principal */
.single-body p {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* ── H2 TITLES ── */
.single-body-content h2 {
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 32px 0 24px 0;
  padding-bottom: 10px;
  border-bottom: 0.5px solid #ffffff;
}

/* ">" prefix — CSS only, invisible pour Google */
.single-body-content h2::before {
  content: '> ';
}

/* ── H3 TITLES ── */
.single-body-content h3 {
  color: #cccccc;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 24px 0 10px 0;
}

/* ── LINKS ── */
.single-body-content a {
  color: #3366FF;
  text-decoration: none;
  transition: color 0.2s;
}

.single-body-content a:hover {
  color: #ffffff;
}

/* ── STRONG TEXT ── */
.single-body-content strong {
  color: #cccccc;
}

/* ── IMAGES — WordPress Gutenberg overrides (CLEAN VERSION) ── */

/* Figures centrées */
.single-body-content figure,
.single-body-content .wp-block-image,
.single-body-content .img-center {
  display: block;
  margin: 40px auto;
  text-align: center;
}

/* Images dans le contenu */
.single-body-content img,
.single-body-content .wp-block-image img,
.single-body-content figure img,
.single-body-content .img-center img {
  border: 1px solid #ffffff;
  border-radius: 6px;
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Légendes */
.single-body-content figcaption,
.single-body-content .wp-block-image figcaption,
.single-body-content .img-center figcaption {
  color: #999999;
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-style: italic;
  text-align: center;
  margin-top: 6px;
}

/* ── BODY HEADER ROW: date top-left, byline top-right ── */
.single-body-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  border: none !important;
  gap: 12px !important;
}

.single-body-date {
  color: #555;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.single-body-byline {
  color: #555;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-body-date-divider {
  display: none;
}

@media screen and (max-width: 768px) {
  /* =========================
     MARGES ALIGNÉES HEADER
  ========================= */
  .single-container {
    padding: 8px 16px 40px 16px;
  }
  
  /* =========================
     AUTHOR BOX + WRITTEN BY (CACHÉS)
  ========================= */
  .single-author-box,
  .single-body-byline {
    display: none;
  }
  
  /* =========================
     HEADER BLOCK - GARDÉ AVEC FOND ET BORDURE
  ========================= */
  .single-header-block {
    background: #232323;
    border: 0.5px solid #ffffff;
    border-radius: 10px;
    padding: 0;
    margin: 0 0 16px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  
  /* =========================
     TITRE AREA - AVEC PADDING ET HAUTEUR AUTO
  ========================= */
  .single-title-area {
    padding: 12px 16px;
    margin: 0;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
  
  .single-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    min-height: auto;
  }
  
  .single-prompt {
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.2;
  }
  
  .single-title {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    flex: 1;
  }
  
  /* =========================
     DIVIDER
  ========================= */
  .single-divider {
    display: block;
    border-top: 1px solid #ffffff;
    margin: 0;
  }
  
  /* =========================
     HERO IMAGE (DANS LE BLOC)
  ========================= */
  .single-hero-wrap {
    width: 100%;
    height: 40vh;
    margin: 0;
  }
  
  .single-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* =========================
     BODY - DOIT VENIR APRÈS LE HEADER
  ========================= */
  .single-body {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 0;
  }
  
  /* =========================
     DATE (EN DESSOUS DU BLOC, À DROITE)
  ========================= */
  .single-body-footer {
    display: flex;
    justify-content: flex-end;
    margin: 16px 0 20px 0;
    padding: 0;
    position: relative;
    z-index: 0;
  }
  
  .single-body-date {
    font-size: 0.72rem;
    color: #777;
    font-family: 'Courier New', monospace;
    text-align: right;
  }
  
  /* =========================
     CONTENU
  ========================= */
  .single-body-content {
    margin: 0;
    padding: 0;
  }
  
  .single-body-content p,
  .single-body-content h2,
  .single-body-content h3,
  .single-body-content h4,
  .single-body-content ul,
  .single-body-content ol,
  .single-body-content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Couleur du texte sur fond du blog */
  .single-body p,
  .single-body-content p {
    color: #ffffff;
  }
  
  .single-body-content h2 {
    color: #ffffff;
    border-bottom-color: #ffffff;
  }
  
  .single-body-content h3 {
    color: #cccccc;
  }
  
  .single-body-content strong {
    color: #cccccc;
  }
  
  /* =========================
     IMAGES FULL BLEED (BORDURES TOP/BOTTOM)
  ========================= */
  .single-body-content figure,
  .single-body-content .wp-block-image,
  .single-body-content .img-center {
    margin: 14px -16px 8px -16px;
    padding: 0;
    width: calc(100% + 32px);
    text-align: center;
  }
  
  .single-body-content img,
  .single-body-content figure img,
  .single-body-content .wp-block-image img,
  .single-body-content .img-center img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }
  
  /* =========================
     CAPTIONS (PETITES + ALIGNÉES TEXTE)
  ========================= */
  .single-body-content figcaption,
  .single-body-content .wp-block-image figcaption,
  .single-body-content .img-center figcaption {
    font-size: 0.65em;
    color: #999999;
    line-height: 1.4;
    margin: 6px 16px 14px 16px;
    padding: 0;
    text-align: center;
    font-style: italic;
  }
  
  /* =========================
     STRUCTURE TOP
  ========================= */
  .single-top {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }
}

/* ===== FOOTER ===== */
.homepage-footer {
  text-align: center;
  color: #999999;
  font-family: 'Courier New', monospace;
  line-height: 1;
  pointer-events: auto;
  background-color: #151515;
  padding: 10px 0;
  font-size: 15px; /* Taille par défaut pour toutes les pages */
}

.homepage-footer a.footer-link {
  color: #999999;
  transition: color 0.2s ease;
  pointer-events: auto;
  text-decoration: none;
}

.homepage-footer a.footer-link:hover {
  color: #ffffff;
}

.homepage-footer .desktop-text { display: inline; }
.homepage-footer .mobile-text { display: none; }

/* Footer desktop — fixe uniquement sur home */
@media screen and (min-width: 769px) {
  body.home .homepage-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }
  
  /* Footer normal sur les autres pages */
  body:not(.home) .homepage-footer {
    position: relative;
    margin-top: 40px;
  }
}

/* Footer mobile */
@media screen and (max-width: 768px) {
  .homepage-footer {
    font-size: 8px;
    padding: 5px 0;
  }
  
  .homepage-footer .desktop-text { display: none; }
  .homepage-footer .mobile-text { display: inline; }
  
  /* Fixe uniquement sur home */
  body.home .homepage-footer {
    position: fixed;
    bottom: 4px;
    left: 0;
    width: 100%;
    z-index: 9999;
  }
  
  /* Normal sur les autres pages */
  body:not(.home) .homepage-footer {
    position: relative;
    font-size: 11px;
    padding: 20px 0;
    margin-top: 20px;
  }
}

/* ==========================================================
   BLOG ARCHIVE PAGE  —  REPLACE the previous blog archive
   block at the bottom of your style.css entirely with this
   ========================================================== */

/* ── Reset WordPress default wrappers ── */
.page-template-home-blog .wp-site-blocks,
.page-template-home-blog .is-layout-constrained,
.page-template-home-blog .entry-content,
.page-template-home-blog main,
.blog .wp-site-blocks,
.blog .is-layout-constrained,
.blog .entry-content,
.blog main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Outer container ── */
.blog-archive-container {
  padding: 20px 50px 80px 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Individual card — fixed height so max 3 lines excerpt fit ── */
.blog-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 0.5px solid #ffffff;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none;
  transition: background 0.2s;
  height: 160px; /* fixed height — controls everything inside */
}

.blog-card:hover {
  background: #202020;
}

/* ── Thumbnail ── */
.blog-card-thumb {
  flex-shrink: 0;
  width: 329px;
  height: 100%;
  overflow: hidden;
  background: #232323;
  position: relative;
  border-right: 0.5px solid #ffffff;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: filter 0.3s;
}

.blog-card-no-thumb {
  width: 100%;
  height: 100%;
  background: #232323;
}

/* ── Right content: natural column, no flex stretching ── */
.blog-card-content {
  flex: 1;
  padding: 10px 22px 10px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── Title ── */
.blog-card-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 4px 0; /* tight gap before meta */
  line-height: 1.3;
  flex-shrink: 0;
}

/* ── Meta: right below title, tight ── */
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 0; /* tight gap before divider */
  flex-shrink: 0;
}

.blog-card-published {
  color: #999999;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.blog-card-author {
  color: #999999;
  font-family: 'Courier New', monospace;
}

.blog-card-date {
  color: #999999;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── Divider: flush to left and right, no side padding ── */
.blog-card-divider {
  display: block;
  width: calc(100% + 44px); /* cancel out the 22px padding on each side */
  margin-left: -22px;
  height: 0.5px;
  background: #ffffff;
  flex-shrink: 0;
  border: none;
  margin-bottom: 8px;
}

/* ── Excerpt: +20% size, clamped to 3 lines ── */
.blog-card-excerpt {
  color: #666;
  font-family: 'Courier New', monospace;
  font-size: 0.985rem; /* 0.82rem × 1.2 */
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
  flex-shrink: 0;
}

.blog-card:hover .blog-card-excerpt {
  color: #888;
}

.blog-card-readmore {
  color: #3366FF;
}

/* ── Mobile title overlay (hidden on desktop) ── */
.blog-card-title-overlay {
  display: none;
}

/* ── Pagination ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  color: #666;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 14px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  color: #ffffff;
  border-color: #ffffff;
}

/* ── Empty state ── */
.blog-no-posts {
  color: #555;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  text-align: center;
  padding: 60px 0;
}

/* ── Tablet ── */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .blog-archive-container {
    padding: 15px 25px 60px 25px;
  }
  .blog-card-thumb {
    width: 200px;
  }
}

/* ══════════════════════════════
   MOBILE
══════════════════════════════ */
@media screen and (max-width: 768px) {

  .blog-archive-container {
    padding: 10px 0 60px 0;
    gap: 4px;
  }

  .blog-card {
    flex-direction: column;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    position: relative;
    width: 84%;
    margin: 0 auto;
  }

  .blog-card-content {
    display: none;
  }

  .blog-card-thumb {
    width: 100%;
    height: 20vh;
    border-radius: 0;
    border-right: none;
    position: relative;
    overflow: hidden;
  }

  .blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
  }

  .blog-card:active .blog-card-thumb img,
  .blog-card:hover .blog-card-thumb img {
    filter: brightness(1);
  }

  .blog-card-title-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
  }

  .blog-card-title {
    display: none;
  }

  .blog-card-divider {
    display: none;
  }
}

/* ===== SHOP ===== */
.shop-wrapper {
  margin: 0 50px 60px 50px;
}

/* ===== DISCLAIMER (bas de page) ===== */
.shop-disclaimer {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #555;
  margin-top: 40px;
  text-align: left;
}

/* ===== FILTRES ===== */
.shop-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: space-between;
}

.shop-filter-btn {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 0;
  text-decoration: none;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.shop-filter-btn::before {
  content: "> ";
}

.shop-filter-btn:hover {
  color: #aaa;
  border-color: #666;
  background: #1a1a1a;
}

.shop-filter-btn.active {
  color: #fff;
  border-color: #fff;
  background: #1e1e1e;
}

/* ===== GRILLE ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== CARTE ===== */
.shop-card {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #2a2a2a;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  border-color: #FF6600;
  animation: neonFlicker 1.5s infinite alternate;
}

/* ===== TITRE ===== */
.shop-card-title {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  border-bottom: 1px solid #2a2a2a;
  line-height: 1.4;
}

/* ===== IMAGE ===== */
.shop-card-img {
  position: relative;
  width: 100%;
  padding-top: 110%;
  background: #000;
  overflow: hidden;
}

/* 🔥 OVERLAY GRADIENT */
.shop-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.30)
  );
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* IMAGE */
.shop-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease;
  filter: brightness(0.95);
}

/* ===== PRIX ===== */
.shop-card-price {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FF6600;
  border: 1px solid #FF6600;
  background: rgba(0, 0, 0, 0.85);
  padding: 5px 10px;
  letter-spacing: 0.05em;

  opacity: 0.85;
  transition: opacity 0.25s ease;
}

/* ===== HOVER EFFECT ===== */
.shop-card:hover .shop-card-img::after {
  opacity: 0;
}

.shop-card:hover .shop-card-img img {
  filter: brightness(1);
}

.shop-card:hover .shop-card-price {
  opacity: 1;
}

@keyframes neonFlicker {
  0% {
    box-shadow: inset 0 0 0 0.5px #FF6600, 0 0 0 rgba(255,102,0,0);
  }
  20% {
    box-shadow: inset 0 0 0 0.5px #FF6600, 0 0 6px rgba(255,102,0,0.4);
  }
  40% {
    box-shadow: inset 0 0 0 0.5px #FF6600, 0 0 2px rgba(255,102,0,0.2);
  }
  60% {
    box-shadow: inset 0 0 0 0.5px #FF6600, 0 0 10px rgba(255,102,0,0.5);
  }
  80% {
    box-shadow: inset 0 0 0 0.5px #FF6600, 0 0 3px rgba(255,102,0,0.25);
  }
  100% {
    box-shadow: inset 0 0 0 0.5px #FF6600, 0 0 8px rgba(255,102,0,0.45);
  }
}

/* ===== VIDE ===== */
.shop-empty {
  font-family: 'Courier New', monospace;
  color: #555;
  grid-column: 1 / -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .shop-wrapper { margin: 0 25px 40px 25px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-filters { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .shop-wrapper { margin: 0 15px 30px 15px; }
  .shop-grid { grid-template-columns: 1fr; }
}

/* Plus d'espace sous le header */
.shop-wrapper {
  margin: 30px 50px 60px 50px; /* était 0 50px */
}

/* Boutons catégories : texte aligné gauche, plus gros, padding réduit */
.shop-filter-btn {
  font-size: 0.88rem;
  padding: 6px 12px;
  text-align: left;
  flex: 0 1 auto; /* retire le flex:1 qui les étirait */
}

/* Filtres : plus espacés mais alignés avec le wrapper */
.shop-filters {
  gap: 14px;
  justify-content: flex-start;
}

/* Séparateur avant disclaimer */
.shop-disclaimer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.15);
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================
   CYBERPUNK SEARCH PAGE
   ================================================ */

.cyberpunk-search-container {
    padding: 15px 50px 0;
    font-family: 'Courier New', Courier, monospace;
    color: #808080;
    box-sizing: border-box;
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* GRID — prend tout l'espace, pas de titre au-dessus */
.search-results-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

/* COLONNE GAUCHE : titre empilé au-dessus de la box blog */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

/* TITRE dans left-col */
.search-title {
    font-size: 20px;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
    white-space: normal;
    word-break: break-word;
    flex-shrink: 0;
    margin: 0;
    line-height: 1.4;
}
.search-title .bracket { color: #FFFFFF; }

/* BLOG — hauteur réduite de 20% */
.blog-results-section {
    border: 1px solid #3366FF;
    padding: 15px 20px 20px;
    border-radius: 16px;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-shrink: 0;
    gap: 10px;
}
.section-title {
    font-size: 20px;
    letter-spacing: 2px;
    color: #3366FF;
    flex-shrink: 0;
}
.section-title.active { color: #3366FF; }
.shop-results-section .section-title.active { color: #FF6600; }

.more-results {
    color: #3366FF;
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
}

.blog-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.blog-result-item {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.15);
    padding: 20px 22px;
    border-radius: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 120px;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}
.blog-result-item:hover {
    border-color: #3366FF;
    box-shadow: 0 0 15px rgba(59,157,216,0.2);
}
.article-title { font-size: 15px; margin-bottom: 10px; }
.article-title a { color: #cfcfcf; text-decoration: none; }
.article-title a:hover { color: #fff; }
.article-excerpt {
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.no-results-text { font-size: 13px; color: #555; }
.cta-link {
    font-weight: 700;
    color: #3366FF;
    text-decoration: none;
}

.cta-link:hover {
    color: #577EFF;
}

/* SHOP — même hauteur que left-col (titre + blog) */
.shop-results-section {
    border: 1px solid #ff6b35;
    padding: 15px 20px 10px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.shop-item-name {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    text-align: left;
    margin-left: calc(42% + 15px); /* aligne sur le bord gauche de l'image = meta width + gap */
    word-break: break-word;
    line-height: 1.4;
    flex: 1;
}

/* SHOP FOUND : meta gauche + image droite */
.shop-found {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
    align-items: flex-start;
}

.shop-found-meta {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    align-self: strech;
}

.shop-found-match {
    color: #808080;
    font-size: 14px;
    line-height: 1.8;
}
.shop-found-term {
    color: #FFFFFF;
    text-decoration: underline;
}
.shop-found-score { color: #808080; font-size: 14px; }

.shop-found-btn {
    display: block;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 26px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
    transition: border-color 0.3s, background 0.3s;
    margin-top: 88px;
}
.shop-found-btn:hover {
    border-color: #ff6b35;
    background: rgba(255,107,53,0.1);
}

/* Image : prend toute la hauteur du shop-found */
.shop-found-image {
    flex: 0 0 auto;
    width: 55%;
    height: 400px;
    background: #000;
    border: 1px solid #555;
    overflow: hidden;
    align-self: flex-start
}
.shop-found-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.shop-found-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-found-image:hover {
    border-color: #FF6600;
}

.shop-amazon-disclaimer {
    text-align: center;
    font-size: 10px;
    color: #333;
    margin: 20px 0 0;
    flex-shrink: 0;
}

/* SHOP NOT FOUND */
.shop-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}
.error-title { font-size: 18px; letter-spacing: 2px; color: #fff; margin: 0; }
.shop-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 20px;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}
.shop-link:hover {
    border-color: #ff6b35;
    background: rgba(255,107,53,0.1);
}

/* ===== ASCII ART (remplacement SVG) ===== */

.shop-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ascii-art {
    transform: translateY(-40px);
    width: auto;
    max-width: 100%;
    max-height: 55%;
    flex-shrink: 1;

    font-family: monospace;
    font-size: 10px;
    line-height: 1.2;
    white-space: pre;

    color: #3b9dd8;

    animation: asciiBlink 2.5s infinite;
}

/* Blink subtil toutes les 3s */
@keyframes asciiBlink {
    0% {
        color: #3b9dd8;
        opacity: 1;
        text-shadow: 0 0 2px #3b9dd8;
    }

    5% {
        opacity: 0.6;
    }

    8% {
        opacity: 1;
        text-shadow: 0 0 6px #8fd3ff;
    }

    12% {
        opacity: 0.3;
    }

    15% {
        opacity: 1;
        text-shadow: 0 0 3px #3b9dd8;
    }

    50% {
        color: #3b9dd8;
        text-shadow: 0 0 4px #3b9dd8;
    }

    100% {
        color: #3b9dd8;
        text-shadow: 0 0 2px #3b9dd8;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cyberpunk-search-container { height: auto; overflow: visible; padding: 15px 20px 20px; }
    .search-results-grid { grid-template-columns: 1fr; }
    .blog-result-item { height: auto; flex-shrink: 1; }
    .shop-found { flex-direction: column; }
    .shop-found-image { min-height: 200px; }
}