/**
 * Charte du client pour attps-builder.
 * Le builder dessine avec les variables --atb-* ; on les branche sur les tokens du projet (theme.json).
 * C'est le SEUL fichier à adapter par client pour que tous les blocs du builder prennent la charte.
 * Client : Narbonne Matériaux.
 *
 * La page d'accueil n'utilise plus le builder (groupes de champs ACF + front-page.php) : les règles
 * propres à ses sections vivent dans home.css, pas ici.
 */
:root {
  --atb-primary: var(--wp--preset--color--orange);
  --atb-secondary: var(--wp--preset--color--ink);
  --atb-accent: var(--wp--preset--color--orange);
  --atb-neutral: var(--wp--preset--color--ink);
  --atb-grey: var(--wp--preset--color--greytext);
  --atb-light: var(--wp--preset--color--white);
  --atb-font-heading: var(--wp--preset--font-family--sans);
  --atb-font-body: var(--wp--preset--font-family--body);
  --atb-font-condensed: var(--wp--preset--font-family--body);
  --atb-radius-sm: .5rem;
  --atb-radius: 1rem;
  --atb-radius-lg: 1rem;
  --atb-radius-xl: 1rem;
}

/* Duo de boutons : la liste du builder est un <ul> vertical par défaut. */
.atb-buttons-list { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }

/* Boutons du builder : la peau du plugin pilote fond/texte/survol par --at-btn-current.
   La charte ajoute une pastille ronde à droite, flèche diagonale. */
.at-btn .at-btn__icon { display: grid; place-items: center; width: 2rem; height: 2rem; margin: -.25rem -.25rem -.25rem .25rem; border-radius: 50%; font-size: .875rem; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.at-btn .at-btn__icon i { background: none; width: auto; height: auto; border-radius: 0; }
.at-btn:hover .at-btn__icon { transform: rotate(45deg) scale(1.08); }
.at-btn.atn-btn--orange .at-btn__icon { background: var(--wp--preset--color--ink); color: #fff; }
.at-btn.atn-btn--dark .at-btn__icon { background: var(--atb-primary); color: #fff; }

/* Mobile : tout est centré (titres, textes, boutons). */
@media (max-width: 767px) {
  .atb-column, .atb-element { text-align: center; }
  .atb-buttons-list { justify-content: center; }
  .atb-column > .at-btn { margin-inline: auto; }
}
