/* ============================================
   TOJO CONSULTING — Styles unifiés
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --bg: #000000;
  --bg-2: #050505;
  --card-bg: #0a0a0a;
  --gold: #f5a623;
  --gold-2: #f7b84e;
  --text-muted: #9aa0ab;
  --white: #ffffff;
  --border: #1a1a1a;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Utilitaires ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-14 {
  margin-top: 14px;
}
.mt-20 {
  margin-top: 20px;
}
.gold {
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}
.site-header.scrolled {
  position: sticky;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}
.header-left {
  flex-shrink: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 15px;
}
.logo-img {
  height: 50px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0c0f;
  font-weight: 800;
  font-size: 17px;
}
.logo-text .top {
  display: block;
  font-size: 15px;
  letter-spacing: 1px;
}
.logo-text .bottom {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.nav-desktop > a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-desktop > a:hover,
.nav-desktop > a.active {
  color: var(--gold);
}
.nav-desktop > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

/* Dropdown */
.has-sub {
  position: relative;
}
.has-sub > a {
  cursor: pointer;
  padding-bottom: 4px;
}
.has-sub:hover > a {
  color: var(--gold);
}
.has-sub > a::after {
  content: none;
}
.sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.has-sub:hover .sub-menu,
.has-sub.open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.sub-menu a:hover {
  background: rgba(233, 168, 57, 0.08);
  color: var(--gold);
}

/* CTA button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #000000 !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--gold-2);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 40px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #141414;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--gold-2);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background: var(--gold);
  color: #141414;
}
.btn-primary {
  background: var(--gold);
  color: #141414;
}
.btn-primary:hover {
  background: var(--gold-2);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--gold);

  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow.center {
  justify-content: center;
  align-items: center;
}
.eyebrow .dash {
  width: 30px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Hero (générique) ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/homme.jpeg") right center / 75% 100% no-repeat;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0.95) 45%,
    rgba(0, 0, 0, 0.8) 65%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.3) 95%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 50px 60px 90px;
}
.hero-content.centered {
  margin: 0 auto;
  text-align: center;
  max-width: 700px;
  padding: 60px 40px;
}
.hero-content.centered .eyebrow {
  justify-content: center;
  align-items: center;
}
.hero-content.centered p {
  margin-left: auto;
  margin-right: auto;
}
.hero-content.centered .btn {
  margin: 0 auto;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .gold {
  display: block;
}
.hero p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 30px;
}

/* ---------- Cat hero (pages catégorie) ---------- */
.cat-hero {
  position: relative;
  padding: 110px 40px 40px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/pc.png") right center / 75% 100% no-repeat;
  z-index: 0;
}
.cat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0.95) 45%,
    rgba(0, 0, 0, 0.8) 65%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.3) 95%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}
.cat-hero .container {
  position: relative;
  z-index: 2;
}
.cat-hero .lede {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 600px;
}
.cat-hero h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--gold);
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Cat hero grid (catégorie) */
.cat-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
  padding-top: 0;
}
.cat-hero-grid.centered-text {
  grid-template-columns: 1fr;
  text-align: center;
}
.cat-hero-grid.centered-text .eyebrow {
  justify-content: center;
  align-items: center;
}
.cat-hero-grid.centered-text .lede {
  margin-left: auto;
  margin-right: auto;
}
.cat-hero-label {
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.9;
  line-height: 1.15;
}
.gold-lines {
  display: block;
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}

/* Visual panel (animation mock) */
.visual-panel {
  position: relative;
}
.visual-panel .glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(233, 168, 57, 0.15),
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.mock-window {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.mock-window .bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.mock-window .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mock-body {
  padding: 24px;
}
.mock-chip {
  display: inline-block;
  background: rgba(233, 168, 57, 0.1);
  color: var(--gold);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.mock-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 80px;
}
.mock-bars i {
  flex: 1;
  background: var(--gold);
  border-radius: 4px 4px 0 0;
  opacity: 0.6;
}

/* ---------- Cards wrap (home) ---------- */
.cards-wrap {
  position: relative;
  padding-bottom: 100px;
}

/* ---------- Cards (services / valeurs) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  position: relative;
  z-index: 3;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.card {
  background: var(--card-bg);
  padding: 30px 24px 28px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.2s;
}
.card:hover {
  background: #1c1e24;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 12px 12px 0 0;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.card-arrow {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  margin-top: 12px;
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(233, 168, 57, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.card h3 {
  font-size: 15px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--white);
}
.card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.num {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  margin-left: auto;
}

/* ---------- Section objectif ---------- */
.objectif {
  text-align: center;
  padding: 70px 40px 50px;
}
.objectif h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
}
.objectif p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Valeurs ---------- */
.valeurs-title {
  text-align: center;
  padding: 20px 40px 50px;
}
.center-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
}
.valeurs-row {
  max-width: 900px;
  margin: 0 auto 90px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.valeur-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1f2229;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 16px;
}
.valeurs-row h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.valeurs-row p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Pour qui ---------- */
.pourqui {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 110px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.pourqui-left h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}
.pourqui-left p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 440px;
}
.pourqui-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.pourqui-card .icon-box {
  margin-bottom: 0;
  flex-shrink: 0;
}
.pourqui-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Decorative triangles ---------- */
.decor-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}
.decor-bottom::before,
.decor-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
}
.decor-bottom::before {
  left: 0;
  border-width: 0 0 100px 100px;
  border-color: transparent transparent var(--gold) transparent;
}
.decor-bottom::after {
  right: 0;
  border-width: 0 100px 100px 0;
  border-color: transparent var(--gold) transparent transparent;
}

/* ---------- Articles bar ---------- */
.articles-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.articles-bar h2 {
  font-size: 22px;
  font-weight: 700;
}
.sort {
  font-size: 13px;
  color: var(--text-muted);
}
.sort select {
  background: var(--card-bg);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  margin-left: 8px;
}

/* ---------- Article cards ---------- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition:
    border-color 0.2s,
    transform 0.15s;
  cursor: pointer;
}
.article-card:hover {
  border-color: rgba(233, 168, 57, 0.3);
  transform: translateY(-2px);
}
.article-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #1a1a2e;
}
.article-thumb svg {
  width: 100%;
  height: 100%;
}
.article-thumb .tag {
  display: none;
}
.article-body {
  flex: 1;
}
.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.article-body p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.article-date {
  font-size: 12px;
  color: var(--text-muted);
}
.article-arrow {
  color: var(--gold);
  font-size: 22px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.article-card:hover .article-arrow {
  opacity: 1;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.pagination a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pagination a.active {
  background: var(--gold);
  color: #141414;
  border-color: var(--gold);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
}
.contact-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-card-head h3 {
  font-size: 18px;
  font-weight: 700;
}
.contact-card-head p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--white);
}
.req {
  color: var(--gold);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field select {
  cursor: pointer;
}
.form-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.form-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  display: none;
}
.form-msg.success {
  display: block;
  background: rgba(52, 168, 83, 0.15);
  color: #34a853;
  border: 1px solid rgba(52, 168, 83, 0.3);
}
.form-msg.error {
  display: block;
  background: rgba(234, 67, 53, 0.15);
  color: #ea4335;
  border: 1px solid rgba(234, 67, 53, 0.3);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Info list */
.info-list {
  margin-top: 20px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.info-row span:first-child {
  color: var(--text-muted);
}
.info-row span:last-child {
  font-weight: 600;
}

/* CTA bar */
.contact-cta-bar {
  margin-top: 50px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.contact-cta-bar h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.contact-cta-bar p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}
.gold-word {
  color: var(--gold);
}

/* ---------- Section ---------- */
.section {
  padding: 40px;
}
.section-tight {
  padding: 0 40px 60px;
}
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 280px;
}
.footer-grid h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-grid ul li {
  margin-bottom: 10px;
}
.footer-grid ul li a,
.footer-grid ul li {
  color: var(--text-muted);
  font-size: 13.5px;
  transition: color 0.2s;
}
.footer-grid ul li a:hover {
  color: var(--gold);
}

/* Footer social icons */
.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social-icons .social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.footer-social-icons .social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.footer-social-icons .social-btn.facebook {
  background-color: #3b5998;
}
.footer-social-icons .social-btn.linkedin {
  background-color: #0077b5;
}
.footer-social-icons .social-btn.youtube {
  background-color: #ff0000;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .nav-desktop.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 40px;
    gap: 4px;
    z-index: 99;
  }
  .nav-desktop.open .has-sub .sub-menu {
    position: static;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(233, 168, 57, 0.05);
    border: 1px solid rgba(233, 168, 57, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: auto;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      opacity 0.2s,
      padding 0.3s;
  }
  .nav-desktop.open .has-sub.open .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 300px;
    padding: 8px 0;
  }
  .nav-desktop.open .has-sub > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(233, 168, 57, 0.1);
    border-radius: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
  }
  .nav-desktop.open .has-sub > a:active {
    background: rgba(233, 168, 57, 0.2);
  }
  .nav-desktop.open .sub-menu a {
    display: flex;
    align-items: center;
    padding: 10px 14px 10px 24px;
    font-size: 13.5px;
    color: var(--text-muted);
    transition:
      background 0.15s,
      color 0.15s;
    border-left: 2px solid transparent;
  }
  .nav-desktop.open .sub-menu a:active {
    background: rgba(233, 168, 57, 0.1);
    color: var(--gold);
    border-left-color: var(--gold);
  }
  .nav-desktop.open > a {
    padding: 10px 0;
    font-size: 14px;
  }
  .nav-desktop.open .has-sub > a::after {
    content: "▾";
    margin-left: 8px;
    font-size: 11px;
    transition: transform 0.3s ease;
    color: var(--gold);
  }
  .nav-desktop.open .has-sub.open > a::after {
    transform: rotate(180deg);
  }
  .header-right .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 34px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -40px;
  }
  .cat-hero h1 {
    font-size: 32px;
  }
  .gold-lines {
    font-size: 22px;
  }
  .cat-hero-grid {
    grid-template-columns: 1fr;
  }
  .cat-hero-label {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .valeurs-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pourqui {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-cta-bar {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .articles-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cat-hero {
    padding: 40px 20px 20px;
  }
  .hero-content {
    padding: 40px 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
  .cards {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }
  .gold-lines {
    font-size: 18px;
  }
  .article-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-thumb {
    width: 100%;
    height: 160px;
  }
  .article-arrow {
    display: none;
  }
}

/* --- BARRE DE RECHERCHE HERO --- */
.search-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 650px;
  margin: 30px auto 0 auto;
  gap: 10px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 15px;
  color: #888;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background-color: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input-wrapper input:focus {
  border-color: #e39a2b;
}

.btn-search {
  padding: 12px 24px;
  background-color: #e39a2b;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-search:hover {
  background-color: #f1aa3d;
}

/* --- BLOCS DU BAS (COMMUNAUTÉ, NEWSLETTER, RÉSEAUX) --- */
.bottom-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
  position: relative;
  overflow: visible;
}

.bottom-card {
  background-color: #0d0d0d;
  border: 1px solid #e39a2b;
  border-radius: 12px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Bloc 1 : Communauté */
.community-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  transition:
    background 0.2s,
    transform 0.2s;
  cursor: pointer;
}
.community-card:hover {
  background: #1c1e24;
  transform: translateY(-2px);
}

.community-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.community-card p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Bloc 2 : Newsletter */
.card-header-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.card-header-inline h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sub-text {
  color: #888;
  font-size: 0.85rem;
  margin: 0 0 20px 0;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: #e39a2b;
}

.btn-primary {
  padding: 10px 20px;
  background-color: #e39a2b;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

/* Bloc 3 : Réseaux sociaux */
.social-card {
  text-align: center;
  align-items: center;
}

.social-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 5px 0;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-btn.facebook {
  background-color: #3b5998;
}

.social-btn.linkedin {
  background-color: #0077b5;
}

.social-btn.youtube {
  background-color: #ff0000;
}

/* --- Toast notification --- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  pointer-events: none;
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.toast-success {
  background: rgba(52, 168, 83, 0.95);
  color: #fff;
  border: 1px solid #34a853;
}
.toast-warning {
  background: rgba(255, 187, 0, 0.95);
  color: #000;
  border: 1px solid #ffbb00;
}
.toast-error {
  background: rgba(234, 67, 53, 0.95);
  color: #fff;
  border: 1px solid #ea4335;
}
.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-content span:first-child {
  font-size: 18px;
}
.social-btn.whatsapp {
  color: #ffffff;
  background-color: #25d366;
}

.social-btn.whatsapp:hover {
  color: #fff;
}
