/* ==========================================================================
   Au cœur des bulles – compléments à la charte Bricks (style de thème « Au cœur des bulles »)
   0. Polices hébergées sur le site
   1. Titres : accent <strong>, ligne secondaire <small>
   2. Petits textes et textes « BD » (pastilles, stickers)
   3. Boutons : rendu BD (contour noir + ombre pleine)
   Le reste (tailles h1-h6, couleurs, boutons) se règle dans Bricks → Styles de thème.
   ========================================================================== */

/* 0. Polices hébergées sur le site (RGPD : aucun appel à Google Fonts).
      Sous-ensemble latin (accents français, œ, guillemets compris). */
@font-face { font-family: 'Bangers'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/2026/12/acdb-bangers.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/wp-content/uploads/2026/12/acdb-fredoka-variable.woff2') format('woff2'); }

html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* --------------------------------------------------------------------------
   1. Titres
   -------------------------------------------------------------------------- */
h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong {
	font-weight: inherit;
	color: #e54530;
}
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}
.brxe-text p {
	text-wrap: pretty;
}
.brxe-text > * + * {
	margin-top: 1em;
}
/* Ligne secondaire d'un titre (ex. le lieu sous le h1) */
h1 small, h2 small {
	display: block;
	font-size: .625em;
	line-height: 1.15;
}

/* --------------------------------------------------------------------------
   2. Petits textes et textes « BD »
   -------------------------------------------------------------------------- */
.texte-petit {
	font-size: .8125rem;
	line-height: 1.4;
}
/* Pastilles, stickers, badges : police des titres sans balise de titre */
.texte-bd {
	font-family: 'Bangers', system-ui, sans-serif;
	font-weight: 400;
	line-height: .95;
	letter-spacing: .01em;
}
.texte-bd-s { font-size: 1.25rem; }
.texte-bd-m { font-size: 1.875rem; }
.texte-bd-l { font-size: 2.5rem; }

/* --------------------------------------------------------------------------
   3. Boutons et liens : rendu BD
   -------------------------------------------------------------------------- */
.bricks-button {
	box-shadow: 0 4px 0 #1b1b1b;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}
.bricks-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 0 #1b1b1b;
}
.bricks-button:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #1b1b1b;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid #2ba84a;
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Mouvements des illustrations (façon Vieilles Charrues)
      Bibliothèque d'animations : chaque élément les appelle dans son CSS
      personnalisé (Style › CSS), où l'on règle durée et décalage.
      Propriétés translate / rotate / scale séparées : elles s'ajoutent au
      « transform » posé dans Bricks (miroir, rotation, réduction mobile)
      sans l'écraser.
   -------------------------------------------------------------------------- */
/* Flottement irrégulier (nuages) : trajet sur plusieurs points, pas un simple aller-retour */
/* Dérive surtout horizontale (un nuage glisse de gauche à droite), petit flottement vertical */
@keyframes acdb-flotte {
	0%, 100% { translate: 0 0; rotate: 0deg; }
	26% { translate: 45px -12px; rotate: -1deg; }
	52% { translate: 80px 4px; rotate: .5deg; }
	77% { translate: 35px 10px; rotate: 1deg; }
}
@keyframes acdb-flotte-b {
	0%, 100% { translate: 0 0; rotate: 0deg; }
	30% { translate: -50px 8px; rotate: 1deg; }
	60% { translate: -85px -10px; rotate: -.5deg; }
	84% { translate: -30px -4px; rotate: .5deg; }
}
/* Balancement lent (affiche, pastilles) */
@keyframes acdb-balance {
	0%, 100% { translate: 0 0; rotate: 0deg; }
	34% { translate: 0 -8px; rotate: 1.5deg; }
	68% { translate: -3px -2px; rotate: -1.5deg; }
}
/* Gigotement : petite rotation + rebond (pastille édition) */
@keyframes acdb-gigote {
	0%, 100% { rotate: 0deg; scale: 1; }
	20% { rotate: 6deg; scale: 1.06; }
	40% { rotate: -4deg; scale: .97; }
	60% { rotate: 3deg; scale: 1.03; }
	80% { rotate: -2deg; scale: 1; }
}
/* Apparition « pop » : 0 → un peu trop grand → taille normale */
@keyframes acdb-pop {
	0% { scale: 0; opacity: 0; }
	60% { scale: 1.15; opacity: 1; }
	80% { scale: .95; }
	100% { scale: 1; opacity: 1; }
}
/* Visiteurs ayant demandé moins d'animations dans leur système :
   les éléments animés portent la classe marqueur « anim-bd » (Style › CSS › Classes). */
@media (prefers-reduced-motion: reduce) {
	.anim-bd {
		animation: none !important;
	}
}
