/* ════════════════════════════════════════════
   KALICIEL · main.css
   Arthur Rughoobur · 2025
   ════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #020e04;
  --bg1:   #061a0a;
  --bg2:   #0a2010;
  --g1:    #1D9E75;
  --g2:    #5DCAA5;
  --g3:    #3B6D11;
  --g4:    #27500A;
  --g5:    #1a4020;
  --red:   #E24B4A;
  --text:  #ffffff;
  --muted: #555555;
  --mono:  'JetBrains Mono', 'Courier New', Courier, monospace;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html  { scroll-behavior: smooth; }
body  { background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 13px; line-height: 1.6; }
a     { color: inherit; text-decoration: none; }
img   { max-width: 100%; height: auto; display: block; }

/* ── ANIMATIONS ── */
@keyframes k-appear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aliciel-appear {
  from { opacity: 0; letter-spacing: .4em; }
  to   { opacity: 1; letter-spacing: .01em; }
}
@keyframes cloud-appear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes cloud-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--bg2);
}

.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 0;
}
.k-letter {
  font-size: 18px;
  font-weight: 700;
  color: var(--g1);
  animation: k-appear .5s ease .1s both;
}
.aliciel-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--g2);
  animation: aliciel-appear .9s ease .5s both;
}
.cloud-icon {
  margin-left: 5px;
  margin-bottom: 2px;
  animation: cloud-appear .7s ease 1.6s both, cloud-float 4s ease-in-out 2.4s infinite;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  color: var(--g3);
  transition: color .2s;
}
.nav-links a:hover { color: var(--g1); }

.nav-cta {
  border: 0.5px solid var(--g1) !important;
  color: var(--g1) !important;
  padding: 6px 14px;
  border-radius: 3px;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover {
  background: var(--g1) !important;
  color: var(--bg) !important;
}

/* Menu burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--g1);
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  border-bottom: 0.5px solid var(--bg2);
  min-height: 420px;
}

.hero-main {
  padding: 56px 40px;
  border-right: 0.5px solid var(--bg2);
  display: flex;
  flex-direction: column;
}

.hero-tag  { font-size: 10px; color: var(--g1); letter-spacing: .14em; margin-bottom: 5px; animation: fade-up .5s ease .2s both; }
.hero-tag2 { font-size: 10px; color: var(--g4); margin-bottom: 24px; animation: fade-up .5s ease .3s both; }

.hero-h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  animation: fade-up .6s ease .4s both;
}
.accent1 { color: var(--g1); }
.accent2 { color: var(--g2); }

.hero-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 400px;
  margin-bottom: 28px;
  animation: fade-up .6s ease .5s both;
}

.hero-btns { display: flex; gap: 10px; margin-bottom: 48px; animation: fade-up .6s ease .6s both; }

.btn-primary {
  background: var(--g1);
  color: var(--bg);
  padding: 11px 24px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  transition: background .2s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--g2); }

.btn-ghost {
  border: 0.5px solid var(--bg2);
  color: var(--g3);
  padding: 11px 24px;
  border-radius: 3px;
  font-size: 12px;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--g1); color: var(--g1); }

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 32px;
  border-top: 0.5px solid var(--bg2);
  animation: fade-up .6s ease .7s both;
}
.stat-n       { font-size: 20px; font-weight: 500; color: var(--g1); }
.stat-n.red   { color: var(--red); }
.stat-n.green { color: var(--g2); }
.stat-l       { font-size: 10px; color: var(--g4); margin-top: 2px; letter-spacing: .06em; }

/* ── SIDEBAR ── */
.hero-sidebar {
  padding: 20px 18px;
  background: var(--bg1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-label { font-size: 10px; color: var(--g4); letter-spacing: .08em; margin-bottom: 4px; }

.proj-card {
  background: var(--bg);
  border: 0.5px solid var(--bg2);
  border-left: 2px solid var(--g1);
  padding: 11px 13px;
  transition: border-left-color .2s;
}
.proj-card:nth-child(even) { border-left-color: var(--g2); }
.proj-card:hover { border-left-color: var(--g2); }
.proj-card-cat   { font-size: 10px; color: var(--g1); margin-bottom: 4px; }
.proj-card:nth-child(even) .proj-card-cat { color: var(--g2); }
.proj-card-title { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--text); }
.proj-card-tech  { font-size: 10px; color: var(--g4); margin-top: 3px; }
.proj-card-link  { font-size: 10px; color: var(--g1); margin-top: 8px; display: block; }
.proj-card:nth-child(even) .proj-card-link { color: var(--g2); }
.sidebar-all {
  text-align: center;
  margin-top: 4px;
  font-size: 10px;
  color: var(--g4);
  border-bottom: 0.5px solid var(--g4);
  padding-bottom: 1px;
  display: inline-block;
  align-self: center;
}

/* ── SECTIONS ── */
.section { border-bottom: 0.5px solid var(--bg2); }
.sec-inner { padding: 44px 40px; }
.sec-comment { font-size: 10px; color: var(--g3); margin-bottom: 20px; letter-spacing: .06em; }
.sec-h2 { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.sec-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 32px;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg2);
}
.svc-item { background: var(--bg); padding: 22px 24px; transition: background .2s; }
.svc-item:hover { background: var(--bg1); }
.svc-num   { font-size: 28px; font-weight: 500; color: var(--bg2); margin-bottom: 8px; line-height: 1; }
.svc-title { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.svc-desc  { font-family: var(--sans); font-size: 11px; color: var(--muted); line-height: 1.7; }
.svc-price { font-size: 11px; color: var(--g1); font-weight: 500; margin-top: 12px; }

/* ── STACK ── */
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag      { background: var(--bg1); border: 0.5px solid var(--g1); color: var(--g1); padding: 3px 9px; border-radius: 3px; font-size: 10px; }
.tag.mid  { border-color: var(--g2); color: var(--g2); }
.tag.low  { border-color: var(--g3); color: var(--g3); }

.status-badge {
  background: var(--bg1);
  border: 0.5px solid var(--g1);
  padding: 10px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--g1); animation: dot-pulse 2.5s ease-in-out infinite; flex-shrink: 0; }
.status-text { font-size: 11px; color: var(--g1); }

.tarifs-list { display: flex; flex-direction: column; }
.tarif-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--bg2);
  font-size: 11px;
  color: var(--muted);
}
.tarif-row:last-child { border: none; }
.t-price     { color: var(--g1); font-weight: 500; }
.t-price.mid { color: var(--g2); }

/* ── PARCOURS ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 0.5px;
  background: var(--bg2);
}
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -28px; top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--g1);
  border: 1.5px solid var(--bg);
}
.tl-dot.dim { background: var(--g3); }
.tl-dot.old { background: var(--bg); border-color: var(--g3); }

.tl-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.tl-year   { font-size: 10px; color: var(--g1); }
.tl-year.dim  { color: var(--g3); }
.tl-year.old  { color: var(--g4); }
.tl-role   { font-size: 12px; font-weight: 500; color: var(--g2); }
.tl-role.dim  { color: var(--g3); }
.tl-role.old  { color: var(--g3); }
.tl-note   { font-size: 10px; color: var(--g4); font-style: italic; font-family: var(--sans); }

.tl-desc     { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.8; max-width: 560px; }
.tl-desc.old { color: var(--g5); }

.tl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tl-tag  { font-size: 10px; color: var(--g4); border: 0.5px solid var(--bg2); padding: 2px 7px; border-radius: 2px; }
.tl-tag.old { color: var(--g5); border-color: var(--bg1); }

/* ── À PROPOS ── */
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.avatar {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: var(--bg1);
  border: 0.5px solid var(--g1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--g1);
  flex-shrink: 0;
}
.about-name { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.about-role { font-size: 10px; color: var(--g1); margin-bottom: 14px; letter-spacing: .04em; }
.about-text { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.9; max-width: 560px; }
.about-text + .about-text { margin-top: 10px; }

/* ── AVIS ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.review-card {
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-top: 1.5px solid var(--g1);
  padding: 16px;
}
.review-card:nth-child(even) { border-top-color: var(--red); }
.review-stars { font-size: 11px; color: var(--g1); margin-bottom: 10px; }
.review-card:nth-child(even) .review-stars { color: var(--red); }
.review-q { font-family: var(--sans); font-size: 12px; color: var(--muted); font-style: italic; line-height: 1.7; }
.review-author { font-size: 11px; color: var(--g3); margin-top: 10px; }
.review-co { font-size: 10px; color: var(--g4); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-h    { font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.contact-desc { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 20px; }
.contact-row  { font-size: 11px; color: var(--g4); margin-bottom: 10px; }
.contact-row span { color: var(--g1); }

.contact-success {
  background: var(--bg1);
  border: 0.5px solid var(--g1);
  color: var(--g1);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 24px;
}
.contact-error {
  background: #1a0505;
  border: 0.5px solid var(--red);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 24px;
}

.form-field { margin-bottom: 12px; }
.form-label {
  display: block;
  font-size: 10px;
  color: var(--g4);
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.form-input {
  width: 100%;
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-radius: 3px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 11px;
  font-family: var(--mono);
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus { border-color: var(--g1); }
.form-input::placeholder { color: var(--g4); }
textarea.form-input { height: 80px; resize: none; }
select.form-input { cursor: pointer; }

.form-submit {
  width: 100%;
  background: var(--g1);
  color: var(--bg);
  border: none;
  padding: 11px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono);
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s;
}
.form-submit:hover { background: var(--g2); }

/* ── FOOTER ── */
.footer {
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-text { font-size: 10px; color: var(--g5); }
.foot-links { display: flex; gap: 16px; }
.foot-links a { font-size: 10px; color: var(--g5); transition: color .2s; }
.foot-links a:hover { color: var(--g1); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero             { grid-template-columns: 1fr; }
  .hero-sidebar     { display: none; }
  .hero-main        { border-right: none; }
  .services-grid    { grid-template-columns: 1fr 1fr; }
  .stack-grid       { grid-template-columns: 1fr; }
  .reviews-grid     { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .about-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav              { padding: 12px 20px; }
  .nav-links        { display: none; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--bg); border-bottom: 0.5px solid var(--bg2); padding: 16px 20px; gap: 14px; }
  .nav-links.open   { display: flex; }
  .nav-burger       { display: flex; }
  .hero-main        { padding: 32px 20px; }
  .hero-h1          { font-size: 26px; }
  .sec-inner        { padding: 32px 20px; }
  .services-grid    { grid-template-columns: 1fr; }
  .footer           { flex-direction: column; gap: 10px; padding: 16px 20px; }
  .hero-stats       { flex-wrap: wrap; gap: 16px; }
}


/* ════════════════════════════════════════════
   AJOUTS — APPROCHE, BLOG, JUNIOR
   ════════════════════════════════════════════ */

/* ── APPROCHE ── */
.approche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.approche-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-left: 2px solid var(--g1);
  padding: 18px 16px;
}
.approche-icon {
  font-size: 14px;
  color: var(--g1);
  flex-shrink: 0;
  margin-top: 1px;
}
.approche-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.approche-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── NOTE TARIF ── */
.tarif-note {
  margin-top: 20px;
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-left: 2px solid var(--g3);
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--g3);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tarif-note-icon {
  font-size: 14px;
  flex-shrink: 0;
  color: var(--g1);
}

/* ── STACK LEARNING ── */
.tag.learning {
  border-color: var(--g4);
  color: var(--g4);
  border-style: dashed;
}
.tag.learning::before { content: '⟳ '; font-size: 9px; }

/* ── BLOG HOMEPAGE ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.blog-grid-full {
  grid-template-columns: repeat(2, 1fr);
}
.blog-all {
  font-size: 11px;
  color: var(--g3);
  border-bottom: 0.5px solid var(--g3);
  padding-bottom: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.blog-all:hover { color: var(--g1); border-color: var(--g1); }

.blog-card {
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-top: 1.5px solid var(--g1);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-top-color .2s;
}
.blog-card:hover { border-top-color: var(--g2); }
.blog-card.blog-placeholder { opacity: .5; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-date {
  font-size: 10px;
  color: var(--g4);
  letter-spacing: .04em;
}
.blog-cat {
  font-size: 10px;
  color: var(--g1);
  background: var(--bg);
  border: 0.5px solid var(--bg2);
  padding: 1px 7px;
  border-radius: 2px;
}
.blog-card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.blog-card-title a {
  color: var(--text);
  transition: color .2s;
}
.blog-card-title a:hover { color: var(--g2); }
.blog-card-excerpt {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.blog-card-link {
  font-size: 11px;
  color: var(--g1);
  margin-top: 4px;
  transition: color .2s;
}
.blog-card-link:hover { color: var(--g2); }

/* ── BLOG PAGINATION ── */
.blog-pagination {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.blog-pagination .page-numbers {
  font-size: 12px;
  color: var(--g3);
  border: 0.5px solid var(--bg2);
  padding: 6px 12px;
  border-radius: 3px;
  transition: border-color .2s, color .2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  border-color: var(--g1);
  color: var(--g1);
}
.blog-empty { text-align: center; padding: 48px 0; }

/* ── ARTICLE SINGLE ── */
.blog-single { max-width: 100%; }

.article-header {
  border-bottom: 0.5px solid var(--bg2);
  background: var(--bg1);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-back {
  font-size: 11px;
  color: var(--g3);
  transition: color .2s;
}
.article-back:hover { color: var(--g1); }
.article-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 680px;
}
.article-lead {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 20px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contenu article */
.article-body {
  max-width: 720px;
  border-bottom: 0.5px solid var(--bg2);
}
.article-body h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin: 32px 0 12px;
}
.article-body h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--g2);
  margin: 24px 0 10px;
}
.article-body p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.article-body a {
  color: var(--g1);
  border-bottom: 0.5px solid var(--g1);
}
.article-body code {
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--g2);
}
.article-body pre {
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-left: 2px solid var(--g1);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--g2);
}
.article-body ul, .article-body ol {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  padding-left: 20px;
  margin-bottom: 16px;
}
.article-body li::marker { color: var(--g1); }
.article-body blockquote {
  border-left: 2px solid var(--g1);
  padding: 10px 16px;
  margin: 16px 0;
  background: var(--bg1);
}
.article-body blockquote p {
  font-style: italic;
  color: var(--g3);
  margin: 0;
}
.article-body img {
  border-radius: 4px;
  border: 0.5px solid var(--bg2);
  margin: 16px 0;
}

/* Tags et nav article */
.article-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--bg2);
}
.article-nav { padding-top: 24px; }
.article-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  transition: border-color .2s;
}
.article-nav-item:hover { border-color: var(--g1); }
.article-nav-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* ── RESPONSIVE AJOUTS ── */
@media (max-width: 900px) {
  .approche-grid { grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: 1fr 1fr; }
  .blog-grid-full { grid-template-columns: 1fr; }
  .article-title { font-size: 22px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-nav-grid { grid-template-columns: 1fr; }
}

/* ── ABOUT BLOCS DYNAMIQUES ── */
.about-block { margin-bottom: 16px; }
.about-block:last-child { margin-bottom: 0; }
.about-block-title {
  font-size: 11px;
  color: var(--g1);
  letter-spacing: .08em;
  margin-bottom: 6px;
}


/* ════════════════════════════════════════════
   BIO + APPROCHE FUSIONNÉS
   ════════════════════════════════════════════ */

.bio-approche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.bio-col { display: flex; flex-direction: column; }

.approche-col { display: flex; flex-direction: column; }

.approche-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* override approche-grid pour la version fusionnée */
.approche-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-left: 2px solid var(--g1);
  padding: 14px;
}

@media (max-width: 900px) {
  .bio-approche-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* ════════════════════════════════════════════
   PROJETS — VIGNETTES & DÉTAIL
   ════════════════════════════════════════════ */

/* Vignette sidebar — image 3/4 largeur en haut, infos en dessous */
.proj-card {
  background: var(--bg);
  border: 0.5px solid var(--bg2);
  border-left: 2px solid var(--g1);
  overflow: hidden;
  transition: border-left-color .2s;
  display: flex;
  flex-direction: column;
}
.proj-card:nth-child(even) { border-left-color: var(--g2); }
.proj-card:hover { border-left-color: var(--g2); }

.proj-card-thumb { width: 60%; height: 56px; overflow: hidden; margin: 0 auto; }
.proj-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.proj-card:hover .proj-card-thumb img { transform: scale(1.04); }

.proj-card-body { padding: 8px 10px; }
.proj-card-cat     { font-size: 10px; color: var(--g1); margin-bottom: 4px; }
.proj-card:nth-child(even) .proj-card-cat { color: var(--g2); }
.proj-card-title   { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.proj-card-excerpt { font-family: var(--sans); font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.proj-card-tags    { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.proj-tag          { font-size: 9px; background: var(--bg1); border: 0.5px solid var(--bg2); color: var(--g3); padding: 2px 6px; border-radius: 2px; }
.proj-card-link    { font-size: 10px; color: var(--g1); display: block; }
.proj-card:nth-child(even) .proj-card-link { color: var(--g2); }

/* Page détail projet */
.projet-header { background: var(--bg1); }
.projet-back-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.projet-back { font-size: 11px; color: var(--g3); transition: color .2s; }
.projet-back:hover { color: var(--g1); }
.projet-meta-row { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.projet-resultat { font-size: 12px; color: var(--g1); background: var(--bg); border: 0.5px solid var(--g1); padding: 6px 12px; border-radius: 3px; }

/* Galerie projet */
.projet-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.projet-galerie-item { display: block; overflow: hidden; border-radius: 4px; border: 0.5px solid var(--bg2); aspect-ratio: 16/9; }
.projet-galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.projet-galerie-item:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .projet-galerie { grid-template-columns: 1fr 1fr; }
}


/* ── AVATAR PHOTO ── */
.avatar-photo {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--g1);
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ══════════════════════════════════════
   CARROUSEL PROJET
   ══════════════════════════════════════ */
.projet-carrousel-section { background: var(--bg); }

.kcarrousel {
  position: relative;
  width: 60%;
  margin: 0 auto;
}

/* Viewport : taille fixe, TOUT ce qui dépasse est caché */
.kcarrousel-viewport {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 6px;
  border: 0.5px solid var(--bg2);
  background: var(--bg1);
}

/* Track : positionné en absolu dans le viewport, largeur = N slides */
.kcarrousel-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  transition: transform .4s ease;
  /* largeur calculée en inline style par PHP : N * 100vw équivalent */
}

/* Slide : largeur inline calculée par PHP = 100% du viewport */
.kcarrousel-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.kcarrousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.kcarrousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Flèches */
.kcarrousel-prev,
.kcarrousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(2,14,4,.85);
  border: 0.5px solid var(--g1);
  color: var(--g1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.kcarrousel-prev:hover,
.kcarrousel-next:hover { background: var(--g1); color: var(--bg); }
.kcarrousel-prev { left: -18px; }
.kcarrousel-next { right: -18px; }

/* Footer dots + compteur */
.kcarrousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.kcarrousel-dots { display: flex; gap: 6px; align-items: center; }
.kcarrousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg2);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.kcarrousel-dot.active { background: var(--g1); transform: scale(1.35); }
.kcarrousel-counter { font-size: 10px; color: var(--g4); letter-spacing: .06em; }

@media (max-width: 900px) {
  .kcarrousel { width: 92%; }
  .kcarrousel-viewport { height: 240px; }
  .kcarrousel-prev { left: 4px; }
  .kcarrousel-next { right: 4px; }
}
@media (max-width: 600px) {
  .kcarrousel { width: 100%; }
  .kcarrousel-viewport { height: 200px; }
}

/* ══ PORTFOLIO PAGE — GRILLE CARDS ══ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-card {
  background: var(--bg1);
  border: 0.5px solid var(--bg2);
  border-top: 2px solid var(--g1);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  transition: border-top-color .2s;
  display: flex;
  flex-direction: column;
}
.portfolio-card:nth-child(even) { border-top-color: var(--red); }
.portfolio-card:hover { border-top-color: var(--g2); }
.portfolio-card-thumb {
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: var(--bg);
}
.portfolio-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.portfolio-card:hover .portfolio-card-thumb img { transform: scale(1.04); }
.portfolio-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.portfolio-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.portfolio-card-year { font-size: 10px; color: var(--g4); }
.portfolio-card-title { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4; }
.portfolio-card-excerpt { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.7; flex: 1; }
.portfolio-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.portfolio-card-link { font-size: 11px; color: var(--g1); margin-top: 4px; display: block; }
.portfolio-card:nth-child(even) .portfolio-card-link { color: var(--red); }
.portfolio-empty { text-align: center; padding: 48px 0; }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* Avatar photo */
.avatar-photo { padding: 0; overflow: hidden; border: 2px solid var(--g1); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Gutenberg reset — empêche les blocs de limiter leur largeur */
.projet-single .wp-block-paragraph,
.projet-single .wp-block-group,
.projet-single .wp-block-heading,
.projet-single .wp-block-list,
.projet-single p,
.projet-single h2,
.projet-single h3,
.projet-single ul,
.projet-single ol {
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Stats bar pleine largeur (indépendante de la sidebar) ── */
.hero-stats-bar {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--bg2);
  background: var(--bg);
}
.hero-stats-bar > div {
  flex: 1;
  padding: 18px 28px;
  border-right: 0.5px solid var(--bg2);
}
.hero-stats-bar > div:last-child { border-right: none; }
