/*
Theme Name: Archibo
Theme URI: https://www.agence-archibo.com
Author: Archibo + Claude
Description: Thème WordPress custom (Full Site Editing) pour Archibo — Conseil & Operating Partners. Design system propre, performance Core Web Vitals, Schema JSON-LD intégré pour SEO et GEO/AEO. Aucun page builder requis.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.2
License: Propriétaire — Tous droits réservés Archibo
License URI: https://www.agence-archibo.com
Text Domain: archibo
Tags: full-site-editing, block-theme, custom-blocks, editorial, accessibility-ready
*/

/*
 * Toute la grammaire visuelle est définie dans theme.json.
 * Ce fichier ne contient que les surcharges marginales que theme.json
 * ne peut pas exprimer (animations subtiles, focus states, print styles).
 */

/* ── FOCUS STATES — accessibilité */
*:focus-visible {
  outline: 2px solid var(--wp--preset--color--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── SELECTION */
::selection {
  background: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--ivory);
}

/* ── SMOOTH SCROLL */
html { scroll-behavior: smooth; }

/* ── REDUCED MOTION (respect des préférences utilisateur) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ──────────────────────────────────────────────────────────
 * FILTRES — page Réalisations
 * ────────────────────────────────────────────────────────── */
.archibo-filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.archibo-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.archibo-filter-label {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ash);
  flex-shrink: 0;
  min-width: 88px;
}

.archibo-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archibo-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wp--preset--color--rule);
  border-radius: 999px;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.archibo-filter-pill:hover {
  background: var(--wp--preset--color--sand);
  border-color: var(--wp--preset--color--stone);
  color: var(--wp--preset--color--ink);
}

.archibo-filter-pill.is-active {
  background: var(--wp--preset--color--forest);
  border-color: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--ivory);
  font-weight: 500;
}

.archibo-filter-pill.is-active::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wp--preset--color--terracotta);
  margin-left: 0.5rem;
}

.archibo-filter-clear {
  margin-top: 0.5rem;
}

.archibo-filter-clear-link {
  display: inline-block;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--terracotta);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.archibo-filter-clear-link:hover {
  color: var(--wp--preset--color--ink);
}

/* Compteur de résultats */
.archibo-count {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--ash);
  margin: 0;
}

.archibo-no-results {
  font-family: var(--wp--preset--font-family--fraunces);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--wp--preset--color--ash);
}

/* ──────────────────────────────────────────────────────────
 * CARTE RÉALISATION — grille archive-portfolio
 * ────────────────────────────────────────────────────────── */
.archibo-portfolio-card {
  display: flex;
  flex-direction: column;
}

.archibo-portfolio-card .wp-block-post-featured-image {
  overflow: hidden;
  margin-bottom: 0;
  transition: transform 0.35s ease;
}
.archibo-portfolio-card .wp-block-post-featured-image img {
  transition: transform 0.5s ease;
}
.archibo-portfolio-card:hover .wp-block-post-featured-image img {
  transform: scale(1.03);
}

.archibo-portfolio-card .wp-block-post-title {
  margin-top: 0.5rem;
}

.archibo-portfolio-card .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.archibo-portfolio-card:hover .wp-block-post-title a {
  color: var(--wp--preset--color--forest);
}

/* Responsive : mobile */
@media (max-width: 768px) {
  .archibo-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .archibo-filter-label {
    min-width: 0;
  }
}


/* ──────────────────────────────────────────────────────────
 * EXPERTISE — méta-bandeau forest
 * ────────────────────────────────────────────────────────── */
.archibo-expertise-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.archibo-expertise-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.archibo-expertise-meta-label {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--sand);
}

.archibo-expertise-meta-value {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

@media (max-width: 768px) {
  .archibo-expertise-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}


/* ──────────────────────────────────────────────────────────
 * EXPERTISE — FAQ accordéons
 * ────────────────────────────────────────────────────────── */
.archibo-faq {
  border-bottom: 1px solid var(--wp--preset--color--rule);
  padding: 1.5rem 0;
  margin: 0;
}

.archibo-faq:first-of-type {
  border-top: 1px solid var(--wp--preset--color--ink);
  padding-top: 1.75rem;
}

.archibo-faq summary {
  cursor: pointer;
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
  transition: color 0.2s ease;
}

.archibo-faq summary::-webkit-details-marker {
  display: none;
}

.archibo-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--wp--preset--color--terracotta);
  transition: transform 0.25s ease;
}

.archibo-faq[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.archibo-faq[open] summary {
  color: var(--wp--preset--color--forest);
}

.archibo-faq p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wp--preset--color--ash);
  max-width: 64ch;
}


/* ──────────────────────────────────────────────────────────
 * RÉALISATIONS LIÉES — grille croisée sur page Expertise
 * ────────────────────────────────────────────────────────── */
.archibo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.archibo-related-card {
  display: flex;
  flex-direction: column;
}

.archibo-related-link {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
}

.archibo-related-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 0.25rem;
}

.archibo-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archibo-related-card:hover .archibo-related-image img {
  transform: scale(1.03);
}

.archibo-related-secteur {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--terracotta);
}

.archibo-related-title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
  margin: 0;
  transition: color 0.2s ease;
}

.archibo-related-card:hover .archibo-related-title {
  color: var(--wp--preset--color--forest);
}

.archibo-related-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--wp--preset--color--ash);
  margin: 0;
}

.archibo-related-arrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--forest);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wp--preset--color--rule);
}

.archibo-related-all {
  margin-top: 3rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.archibo-related-all a {
  color: var(--wp--preset--color--forest);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.archibo-related-all a:hover {
  color: var(--wp--preset--color--terracotta);
}

.archibo-no-related {
  font-family: var(--wp--preset--font-family--fraunces);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--wp--preset--color--ash);
  max-width: 56ch;
}

@media (max-width: 900px) {
  .archibo-related-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}


/* ──────────────────────────────────────────────────────────
 * LISTE DES AUTRES EXPERTISES — footer page Expertise
 * ────────────────────────────────────────────────────────── */
.archibo-other-expertises {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archibo-other-expertises li {
  border-top: 1px solid rgba(245, 241, 234, 0.18);
  padding: 0;
}

.archibo-other-expertises li:last-child {
  border-bottom: 1px solid rgba(245, 241, 234, 0.18);
}

.archibo-other-expertises a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--wp--preset--color--ivory);
  text-decoration: none;
  transition: padding 0.2s ease, color 0.2s ease;
}

.archibo-other-expertises a:hover {
  color: var(--wp--preset--color--sand);
  padding-left: 0.5rem;
}

.archibo-other-expertises a span {
  color: var(--wp--preset--color--terracotta);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.archibo-other-expertises a:hover span {
  transform: translateX(4px);
}


/* ──────────────────────────────────────────────────────────
 * CARTE EXPERTISE — grille archive-expertise
 * ────────────────────────────────────────────────────────── */
.archibo-expertise-card {
  transition: background-color 0.25s ease;
}

.archibo-expertise-card:hover {
  background: var(--wp--preset--color--ivory);
}

.archibo-expertise-card .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.archibo-expertise-card:hover .wp-block-post-title a {
  color: var(--wp--preset--color--forest);
}


/* ──────────────────────────────────────────────────────────
 * BLOCS CUSTOM — archibo/expertise-card
 * ────────────────────────────────────────────────────────── */
.archibo-block-expertise-card {
  height: 100%;
  min-height: 240px;
  padding: 2.5rem 2rem;
  background: var(--wp--preset--color--paper);
  transition: background-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.archibo-block-expertise-card:hover {
  background: var(--wp--preset--color--ivory);
}
.archibo-block-expertise-link,
.archibo-block-expertise-static {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.archibo-block-expertise-number {
  font-family: var(--wp--preset--font-family--fraunces);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--terracotta);
  margin-bottom: 1rem;
}
.archibo-block-expertise-title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--ink);
  margin: 0 0 0.5rem 0;
}
.archibo-block-expertise-card:hover .archibo-block-expertise-title {
  color: var(--wp--preset--color--forest);
}
.archibo-block-expertise-tagline {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--wp--preset--color--ash);
  margin: 0;
  flex-grow: 1;
}
.archibo-block-expertise-arrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.8125rem;
  color: var(--wp--preset--color--forest);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}
.archibo-block-expertise-card:hover .archibo-block-expertise-arrow {
  transform: translateX(4px);
}


/* ──────────────────────────────────────────────────────────
 * BLOC archibo/insight-card
 * ────────────────────────────────────────────────────────── */
.archibo-block-insight-card {
  padding: 1.5rem 0;
  border-top: 1px solid var(--wp--preset--color--rule);
}
.archibo-block-insight-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.archibo-block-insight-tag {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--terracotta);
}
.archibo-block-insight-title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
  margin: 0;
  transition: color 0.2s ease;
}
.archibo-block-insight-card:hover .archibo-block-insight-title {
  color: var(--wp--preset--color--forest);
}
.archibo-block-insight-meta {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--ash);
  text-transform: uppercase;
  margin: 0;
}


/* ──────────────────────────────────────────────────────────
 * BLOC archibo/chiffre-cle
 * ────────────────────────────────────────────────────────── */
.archibo-block-chiffre-cle {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.archibo-block-chiffre-value {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 300;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: inherit;
}
.archibo-block-chiffre-prefix {
  font-style: italic;
  color: var(--wp--preset--color--sand);
  font-weight: 300;
}
.archibo-block-chiffre-light .archibo-block-chiffre-prefix {
  color: var(--wp--preset--color--terracotta);
}
.archibo-block-chiffre-suffix {
  font-size: 0.5em;
  vertical-align: top;
  margin-left: 0.1em;
}
.archibo-block-chiffre-label {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0;
}


/* ──────────────────────────────────────────────────────────
 * BLOC archibo/citation-editoriale
 * ────────────────────────────────────────────────────────── */
.archibo-block-citation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.archibo-block-citation.has-image {
  grid-template-columns: 5fr 7fr;
}
.archibo-block-citation-image {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.archibo-block-citation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archibo-block-citation-mark {
  display: block;
  font-family: var(--wp--preset--font-family--fraunces);
  font-style: italic;
  font-weight: 300;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--wp--preset--color--terracotta);
  margin-bottom: 1.5rem;
}
.archibo-block-citation-text {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--ink);
  margin: 0;
  padding: 0;
  border: none;
  font-style: normal;
}
.archibo-block-citation-text em {
  font-style: italic;
  color: var(--wp--preset--color--forest);
}
.archibo-block-citation-attribution {
  margin-top: 1.5rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ash);
}

@media (max-width: 900px) {
  .archibo-block-citation.has-image {
    grid-template-columns: 1fr;
  }
  .archibo-block-citation-text {
    font-size: 1.5rem;
  }
}


/* ──────────────────────────────────────────────────────────
 * BLOC archibo/constellation-logo
 * ────────────────────────────────────────────────────────── */
.archibo-constellation-logo {
  display: inline-block;
  line-height: 0;
}
.archibo-constellation-logo svg {
  display: block;
}


/* ──────────────────────────────────────────────────────────
 * Liste implantations (pattern carte-implantations)
 * ────────────────────────────────────────────────────────── */
.archibo-implantations-list a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.archibo-implantations-list a:hover {
  color: var(--wp--preset--color--forest);
  padding-left: 0.5rem;
}


/* ──────────────────────────────────────────────────────────
 * Lignes implantation (archive-implantation.html)
 * ────────────────────────────────────────────────────────── */
.archibo-implantation-row {
  transition: padding-left 0.2s ease;
}
.archibo-implantation-row:hover {
  padding-left: 0.5rem;
}


/* ──────────────────────────────────────────────────────────
 * Résultats de recherche (search.html)
 * ────────────────────────────────────────────────────────── */
.archibo-search-result {
  transition: padding-left 0.2s ease;
}
.archibo-search-result:hover {
  padding-left: 0.5rem;
}
.archibo-search-result .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}
.archibo-search-result:hover .wp-block-post-title a {
  color: var(--wp--preset--color--forest);
}


/* ──────────────────────────────────────────────────────────
 * Carte France SVG (archive-implantation)
 * ────────────────────────────────────────────────────────── */
.archibo-france-map {
  max-width: 100%;
  display: block;
}


/* ──────────────────────────────────────────────────────────
 * CITRON — accent fluo (étincelle de marque)
 *
 * Règles d'usage :
 *   - JAMAIS en remplacement de terracotta (qui reste la signature)
 *   - Vocabulaire d'environnement : badges, signaux, hover, pulse
 *   - Texte citron : uniquement sur fond Forest ou Ink
 *   - Aplat solide : badge / pastille, n'importe quel fond
 *   - Citron + Terracotta jamais en aplat côte à côte
 * ────────────────────────────────────────────────────────── */

/* — Badge "Nouveau" / signalement */
.archibo-badge-citron {
  display: inline-block;
  background: var(--wp--preset--color--citron);
  color: var(--wp--preset--color--ink);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
}

/* — Pastille "Disponible" / statut actif */
.archibo-status-citron {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--wp--preset--font-family--fraunces);
  font-style: italic;
  font-weight: 300;
}
.archibo-status-citron::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wp--preset--color--citron);
  box-shadow: 0 0 0 4px rgba(232, 255, 20, 0.25);
  animation: archibo-pulse 2.4s ease-in-out infinite;
}
@keyframes archibo-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232, 255, 20, 0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(232, 255, 20, 0.05); }
}

/* — Surlignage type "feutre" éditorial */
.archibo-highlight-citron {
  background: linear-gradient(transparent 60%, var(--wp--preset--color--citron) 60%);
  padding: 0 2px;
}

/* — Hover-state citron (boutons d'attention secondaire) */
.archibo-hover-citron {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.archibo-hover-citron:hover {
  background: var(--wp--preset--color--citron) !important;
  color: var(--wp--preset--color--ink) !important;
}

/* — Soulignement de lien "vif" (pour titres clés sur fond sombre) */
.archibo-link-citron {
  color: var(--wp--preset--color--citron);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 0.2s ease;
}
.archibo-link-citron:hover {
  text-decoration-thickness: 2px;
}


/* ══════════════════════════════════════════════════════════════════
 * HEADER — version custom (remplace wp:navigation par du HTML stable)
 * ══════════════════════════════════════════════════════════════════ */
.archibo-site-header {
  background: var(--wp--preset--color--paper);
  border-bottom: 1px solid var(--wp--preset--color--rule);
}
.archibo-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.archibo-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  color: var(--wp--preset--color--ink);
  transition: opacity 0.2s ease;
}
.archibo-logo:hover { opacity: 0.85; }
.archibo-logo svg {
  display: block;
  width: 180px;
  height: auto;
}
.archibo-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  font-weight: 400;
}
.archibo-nav a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.archibo-nav a:hover {
  color: var(--wp--preset--color--forest);
  border-bottom-color: var(--wp--preset--color--terracotta);
}
.archibo-cta-btn {
  display: inline-block;
  background: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--ivory);
  padding: 0.6875rem 1.375rem;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.archibo-cta-btn:hover {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--ivory);
}
@media (max-width: 900px) {
  .archibo-header-inner { padding: 1rem 1.25rem; gap: 1.25rem; flex-wrap: wrap; }
  .archibo-logo svg { width: 140px; }
  .archibo-nav { order: 3; flex-basis: 100%; gap: 1.25rem; justify-content: flex-start; font-size: 0.8125rem; }
  .archibo-cta-btn { font-size: 0.8125rem; padding: 0.5rem 1rem; }
}


/* ══════════════════════════════════════════════════════════════════
 * FOOTER — version custom (HTML stable, plus de listes WP cassées)
 * ══════════════════════════════════════════════════════════════════ */
.archibo-site-footer {
  background: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--ivory);
}
.archibo-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2.5rem 2.5rem;
}
.archibo-footer-cta {
  margin-bottom: 4rem;
}
.archibo-footer-cta-text {
  max-width: 720px;
}
.archibo-footer-cta-title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem 0;
  color: var(--wp--preset--color--ivory);
}
.archibo-footer-cta-title em {
  font-style: italic;
  color: var(--wp--preset--color--sand);
}
.archibo-footer-cta-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  opacity: 0.9;
  color: var(--wp--preset--color--ivory);
}
.archibo-footer-cta-btn {
  display: inline-block;
  background: var(--wp--preset--color--terracotta);
  color: var(--wp--preset--color--ivory);
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.archibo-footer-cta-btn:hover {
  background: var(--wp--preset--color--ivory);
  color: var(--wp--preset--color--forest);
}
.archibo-footer-rule {
  border: 0;
  height: 1px;
  background: rgba(245, 241, 234, 0.18);
  margin: 3rem 0;
}
.archibo-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}
.archibo-footer-col h6 {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--sand);
  margin: 0 0 1.25rem 0;
}
.archibo-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archibo-footer-col li {
  margin-bottom: 0.5rem;
}
.archibo-footer-col a {
  color: var(--wp--preset--color--ivory);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.archibo-footer-col a:hover {
  opacity: 1;
  color: var(--wp--preset--color--sand);
}
.archibo-footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 0.75rem 0;
  color: var(--wp--preset--color--ivory);
}
.archibo-footer-newsletter-link {
  display: inline-block;
  color: var(--wp--preset--color--sand);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.archibo-footer-newsletter-link:hover {
  color: var(--wp--preset--color--ivory);
}
.archibo-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  opacity: 0.7;
}
.archibo-footer-legal a {
  color: var(--wp--preset--color--ivory);
  text-decoration: none;
  margin: 0 0.25rem;
}
.archibo-footer-legal a:hover { color: var(--wp--preset--color--sand); }
@media (max-width: 900px) {
  .archibo-footer-inner { padding: 3rem 1.25rem 1.5rem; }
  .archibo-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .archibo-footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}


/* ══════════════════════════════════════════════════════════════════
 * CORRECTIFS DE RENDU — overrides ciblés
 * ══════════════════════════════════════════════════════════════════ */

/* ── Pas de soulignement sur les titres de cartes (Expertise, Insight, Portfolio) */
.wp-block-post-title a,
.archibo-block-expertise-card a,
.archibo-portfolio-card a,
.archibo-expertise-card a,
.wp-block-group h2 a,
.wp-block-group h3 a,
.wp-block-group h4 a,
.wp-block-group h5 a {
  text-decoration: none !important;
}
.wp-block-post-title a:hover,
.archibo-block-expertise-card a:hover {
  color: var(--wp--preset--color--forest);
}

/* ── Contraste sur fond Forest : h2, h3 doivent être en ivoire (pas ink) */
.has-forest-background-color h1,
.has-forest-background-color h2,
.has-forest-background-color h3,
.has-forest-background-color h4 {
  color: var(--wp--preset--color--ivory);
}
.has-forest-background-color p {
  color: var(--wp--preset--color--ivory);
}
.has-forest-background-color h2 em,
.has-forest-background-color h3 em,
.has-forest-background-color h1 em {
  color: var(--wp--preset--color--sand);
}

/* ── Liens sur fond Forest : sand, soulignés discrets */
.has-forest-background-color a {
  color: var(--wp--preset--color--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 234, 0.4);
}
.has-forest-background-color a:hover {
  color: var(--wp--preset--color--sand);
  border-bottom-color: var(--wp--preset--color--sand);
}

/* ──────────────────────────────────────────────────────────
 * GRILLE EXPERTISES — principe DA "filets, pas blocs"
 * Pas de cadre Sand englobant — uniquement des filets 1px
 * entre les cartes (verticaux + horizontaux entre rangées)
 * ────────────────────────────────────────────────────────── */

/* Wrapper : on retire le background Sand et tout padding par défaut */
/* IMPORTANT : NE PAS forcer margin: 0 — WordPress utilise margin: 0 auto
   pour centrer le contenu dans le container constrained 1280px. */
.wp-block-columns.has-rule-background-color {
  background: transparent !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--wp--preset--color--rule) !important;
}

/* Filet horizontal entre rangée 1 et rangée 2 — pas de double ligne */
.wp-block-columns.has-rule-background-color + .wp-block-columns.has-rule-background-color {
  border-top: 1px solid var(--wp--preset--color--rule) !important;
}

/* Dernière rangée : filet en bas pour fermer la grille */
.wp-block-columns.has-rule-background-color:last-of-type {
  border-bottom: 1px solid var(--wp--preset--color--rule) !important;
}

/* Cartes : fond transparent (héritage paper de la section), filet vertical à droite */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color {
  background: transparent !important;
  margin: 0 !important;
  border-right: 1px solid var(--wp--preset--color--rule) !important;
  min-height: 300px;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.125rem;
  padding: 3rem 2.25rem !important;
  transition: background-color 0.25s ease;
  position: relative;
}

/* Dernière carte de chaque rangée : pas de filet vertical à droite */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color:last-child {
  border-right: 0 !important;
}

/* Hover : fond ivoire discret (le seul moment où on voit un "cadre") */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color:hover {
  background: var(--wp--preset--color--ivory) !important;
}

/* Numéro 01, 02, 03... en haut */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color > p:first-child {
  margin: 0;
  margin-bottom: 0.5rem;
}

/* Titre Fraunces plus marqué */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color h4 {
  margin: 0;
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Tagline Ash, espacement plus aéré */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color > p:last-child {
  margin: 0;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Petite flèche subtile au hover en bas à droite */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color::after {
  content: "→";
  position: absolute;
  bottom: 2rem;
  right: 2.25rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 1.125rem;
  color: var(--wp--preset--color--forest);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Le titre devient cliquable visuellement */
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color h4 a {
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  display: block;
  position: relative;
  z-index: 2;
}
.wp-block-columns.has-rule-background-color > .wp-block-column.has-paper-background-color:hover h4 a {
  color: var(--wp--preset--color--forest);
}

/* ──────────────────────────────────────────────────────────
 * INSIGHTS / LECTURES — alignement bas des filets+dates
 * Les titres ont des longueurs différentes (1 à 3 lignes) ;
 * on pousse le filet+date en bas de chaque carte pour que
 * toutes les cartes aient leur méta alignée au même endroit.
 * ────────────────────────────────────────────────────────── */

/* La grille de posts (query block) — chaque article devient flex column */
.wp-block-query .wp-block-post-template .wp-block-post {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

/* Le groupe-conteneur de chaque carte prend toute la hauteur */
.wp-block-query .wp-block-post-template .wp-block-post > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

/* Le dernier sous-groupe (celui qui contient le filet + la date)
   est poussé tout en bas → toutes les méta s'alignent */
.wp-block-query .wp-block-post-template .wp-block-post > .wp-block-group > .wp-block-group:last-child {
  margin-top: auto !important;
}

/* La grille elle-même : équi-hauteur des cartes (stretch par défaut sur grid) */
.wp-block-query .wp-block-post-template.is-layout-grid {
  align-items: stretch;
}


/* ── Titres de cards (h4) plus serrés */
.wp-block-column h4 {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ── Chiffres clés (bandeau forest) : plus gros, plus marquants */
.has-forest-background-color h3,
.wp-block-columns.has-forest-background-color h3 {
  font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
  line-height: 1 !important;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.has-forest-background-color h3 em {
  font-style: italic;
  color: var(--wp--preset--color--sand);
}

/* ── Filet terracotta dans les hero — épaisseur 2px constante */
.wp-block-separator[style*="B85C3C"] {
  height: 2px !important;
  border: 0 !important;
  background-color: #B85C3C !important;
}

/* ── Bouton WordPress core : padding plus généreux + transition propre */
.wp-block-button__link {
  padding: 0.875rem 1.625rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.wp-block-button__link:hover {
  filter: brightness(0.92);
}

/* ── Hero typo : meilleur tracking */
h1, h2 {
  letter-spacing: -0.025em;
}

/* ── Anciens shortcodes Mailchimp visibles : on les masque temporairement */
.wp-block-shortcode {
  font-size: 0.875rem;
}

/* ── Le widget Calendly inline n'est pas centré par défaut */
.calendly-inline-widget {
  margin: 0 auto;
  max-width: 100%;
}


/* ══════════════════════════════════════════════════════════════════
 * BASE TYPOGRAPHIE — appliquée AU NIVEAU DES ÉLÉMENTS
 * Ces règles s'appliquent partout, indépendamment du wrapper parent.
 * C'est ce qui garantit que les pages custom (où l'utilisateur ajoute
 * du contenu hors patterns) restent cohérentes avec la DA.
 * ══════════════════════════════════════════════════════════════════ */

/* H1 — gros titres de page (toujours Fraunces 300, italic forest sur em) */
h1, .wp-block-post-title {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--wp--preset--color--ink);
}
h1 em, .wp-block-post-title em {
  font-style: italic;
  color: var(--wp--preset--color--forest);
}

/* H2 — titres de section */
h2 {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 300;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--wp--preset--color--ink);
}
h2 em {
  font-style: italic;
  color: var(--wp--preset--color--forest);
}

/* H3 — sous-titres / titres de carte */
h3 {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--ink);
}
h3 em {
  font-style: italic;
  color: var(--wp--preset--color--forest);
}

/* H4 — labels de valeurs/principes */
h4 {
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
}
h4 em {
  font-style: italic;
  color: var(--wp--preset--color--forest);
  font-weight: 300;
}

/* H6 — eyebrows / labels small caps
   IMPORTANT : un h6 EST sémantiquement un titre de niveau 6, utilisé
   typiquement comme eyebrow. Pour du texte de support normal, utilisez
   un bloc Paragraphe (<p>), pas un titre h6. */
h6 {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ash);
  line-height: 1.4;
}

/* OVERRIDES — sections sur fond Forest */
.has-forest-background-color h1,
.has-forest-background-color h2,
.has-forest-background-color h3,
.has-forest-background-color h4 {
  color: var(--wp--preset--color--ivory);
}
.has-forest-background-color h1 em,
.has-forest-background-color h2 em,
.has-forest-background-color h3 em,
.has-forest-background-color h4 em {
  color: var(--wp--preset--color--sand);
}
.has-forest-background-color h6 {
  color: var(--wp--preset--color--sand);
}
.has-forest-background-color p {
  color: var(--wp--preset--color--ivory);
}
.has-forest-background-color a {
  color: var(--wp--preset--color--sand);
}
.has-forest-background-color a:hover {
  color: var(--wp--preset--color--ivory);
}


/* ══════════════════════════════════════════════════════════════════
 * COMPOSANTS SPÉCIFIQUES (ne s'appliquent QUE quand la classe est présente)
 * ══════════════════════════════════════════════════════════════════ */

/* ── 2. HERO — séparateur terracotta court, lede compact */
.wp-block-group.alignfull.has-paper-background-color > .wp-block-columns:first-of-type .wp-block-separator {
  height: 2px !important;
  width: 40px !important;
  background-color: var(--wp--preset--color--terracotta) !important;
  margin: 0 0 1.5rem 0 !important;
  border: 0 !important;
}

/* Hero h1 : tracking précis, line-height tight */
.wp-block-group.alignfull.has-paper-background-color h1 {
  font-family: var(--wp--preset--font-family--fraunces) !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
  color: var(--wp--preset--color--ink) !important;
  margin: 0 !important;
}
.wp-block-group.alignfull.has-paper-background-color h1 em {
  font-style: italic;
  color: var(--wp--preset--color--forest);
}

/* Hero lede — taille et line-height calibrés */
.wp-block-group.alignfull.has-paper-background-color > .wp-block-columns:first-of-type p {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
}

/* Hero buttons — ligne flex bien serrée */
.wp-block-group.alignfull.has-paper-background-color .wp-block-buttons {
  gap: 0.75rem;
  flex-wrap: wrap;
}
.wp-block-group.alignfull.has-paper-background-color .wp-block-button__link {
  padding: 0.875rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  border-radius: 999px !important;
}
/* Bouton secondaire (ghost) : bordure ink */
.wp-block-group.alignfull.has-paper-background-color .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid var(--wp--preset--color--ink) !important;
  color: var(--wp--preset--color--ink) !important;
}
.wp-block-group.alignfull.has-paper-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--ink) !important;
  color: var(--wp--preset--color--ivory) !important;
}


/* ── 3. BANDEAU RÉASSURANCE FOREST — chiffres bien calibrés */
.wp-block-group.alignfull.has-forest-background-color {
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
}
.wp-block-group.alignfull.has-forest-background-color .wp-block-columns {
  gap: 2.5rem !important;
}
.wp-block-group.alignfull.has-forest-background-color h3 {
  font-family: var(--wp--preset--font-family--fraunces) !important;
  font-weight: 300 !important;
  font-size: clamp(2rem, 3.5vw, 2.625rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: var(--wp--preset--color--ivory) !important;
  margin: 0 !important;
}
.wp-block-group.alignfull.has-forest-background-color h3 em {
  font-style: italic;
  color: var(--wp--preset--color--sand);
  font-weight: 300;
}
/* ──────────────────────────────────────────────────────────
 * BANDEAU RÉASSURANCE FOREST — chiffres clés
 * Les chiffres sont rendus via le bloc archibo/chiffre-cle.
 * Mais si Boris insère des chiffres directement (h3 + p), ce
 * style propre s'applique grâce aux règles d'éléments ci-dessus.
 * ────────────────────────────────────────────────────────── */
.wp-block-group.alignfull.has-forest-background-color .wp-block-columns {
  gap: 2.5rem;
}

/* ──────────────────────────────────────────────────────────
 * CITATION ÉDITORIALE — image placeholder ratio 4:5
 * (Évite que le cover s'écrase quand utilisé hors home)
 * ────────────────────────────────────────────────────────── */
.wp-block-group.alignfull.has-ivory-background-color .wp-block-cover {
  aspect-ratio: 4 / 5;
  min-height: 360px;
  border-radius: 2px;
  overflow: hidden;
}

/* ──────────────────────────────────────────────────────────
 * SÉPARATEURS terracotta — épaisseur 2px, courts 40px
 * ────────────────────────────────────────────────────────── */
.wp-block-separator[style*="B85C3C"],
hr[style*="B85C3C"] {
  height: 2px;
  background: var(--wp--preset--color--terracotta);
  border: 0;
  width: 40px;
  margin-left: 0;
  margin-right: auto;
  opacity: 1;
}

/* ──────────────────────────────────────────────────────────
 * PADDING entre sections alignfull — vertical aéré
 * (S'applique seulement aux sections du thème, pas au contenu user)
 * ────────────────────────────────────────────────────────── */
.wp-block-group.alignfull.has-paper-background-color,
.wp-block-group.alignfull.has-ivory-background-color {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
/* Bandeau forest reste compact */
.wp-block-group.alignfull.has-forest-background-color {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
/* Sauf le CTA bas de page (qui reste généreux) */
.wp-block-group.alignfull.has-forest-background-color:has(.wp-block-buttons),
.wp-block-group.alignfull.has-forest-background-color.archibo-cta {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

/* ──────────────────────────────────────────────────────────
 * SCROLL : pas de scrollbar horizontale parasite
 * ────────────────────────────────────────────────────────── */
body {
  overflow-x: hidden;
}


/* ── PRINT STYLES — pour les insights imprimés en PDF par les dirigeants */
@media print {
  body { background: white; color: black; font-size: 11pt; }
  header, footer, .wp-block-button, .wp-block-navigation { display: none; }
  a { color: black; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
