/* BRICO NOUNOURS - style commun aux six pages FR / EN / ES
   Validation graphique reprise : bois rectangulaire, sélection bleue.
   Aucun changement des contenus, images, documents ni fonctionnalités.
*/
:root {
  --bn-font: Arial, Helvetica, sans-serif;
  --bn-radius: 10px;
  --bn-wood-border: #8a5526;
  --bn-wood-text: #38220d;
  --bn-wood-background: repeating-linear-gradient(180deg,rgba(168,108,48,.10) 0 3px,rgba(246,214,159,.05) 3px 6px),
      linear-gradient(180deg,#f7ddb1 0%,#efc98a 52%,#e2ac62 100%);
  --bn-wood-shadow: 0 2px 0 #9e5f28,0 4px 10px rgba(61,29,9,.18),inset 0 1px 0 rgba(255,247,220,.7);
  --bn-blue-background: linear-gradient(180deg,#65c5ff 0%,#198be5 54%,#0c63b8 100%);
}
/* Une seule police sur tout le site, y compris boutons, menus, formulaires. */
html,body,body :is(h1,h2,h3,h4,p,a,span,small,label,button,input,select,textarea),
body .coloring-preview :is(button,a),body .language-switch a {
  font-family:var(--bn-font) !important;
}
/* La même finition bois rectangulaire sur tous les boutons d'action. */
body :is(.btn,.download-label,.yt-replay,.contact-trigger),
body .contact-actions :is(button,a),
body .coloring-preview .preview-actions :is(button,a),
body .coloring-preview .paint-tools button:not(.color-swatch),
body .coloring-preview .paint-finish button {
  box-sizing:border-box;
  border:2px solid var(--bn-wood-border);
  border-radius:var(--bn-radius) !important;
  color:var(--bn-wood-text);
  background:var(--bn-wood-background);
  box-shadow:var(--bn-wood-shadow);
  font-family:var(--bn-font) !important;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  text-shadow:none;
  cursor:pointer;
}
body :is(.btn,.download-label,.yt-replay,.contact-trigger):hover,
body .contact-actions :is(button,a):hover,
body .coloring-preview .preview-actions :is(button,a):hover,
body .coloring-preview .paint-tools button:not(.color-swatch):hover,
body .coloring-preview .paint-finish button:hover {
  filter:brightness(1.045);
}
/* Les boutons de langue restent de la même famille, mais avec les dimensions déjà validées. */
body :is(.hero-toolbar,.gallery-header) .language-switch a {
  border-radius:var(--bn-radius) !important;
  font-family:var(--bn-font) !important;
  font-weight:800;
}
/* Bleu validé pour la langue sélectionnée. */
body :is(.hero-toolbar,.gallery-header) .language-switch a[aria-current="page"] {
  background:var(--bn-blue-background) !important;
  color:white !important;
  border-color:#174b78 !important;
  box-shadow:0 2px 0 #073e78,0 4px 7px rgba(18,54,91,.25),inset 0 1px 0 rgba(255,255,255,.45) !important;
}
/* Les liens de retour et vers Coloriages conservent leur bleu distinctif. */
body :is(.hero-toolbar .coloring-link,.gallery-header .home-link) {
  border-radius:var(--bn-radius) !important;
  font-family:var(--bn-font) !important;
  font-weight:800;
  background:#1769c2;
  border:2px solid #1256a0;
  color:white;
  box-shadow:0 2px 0 #0a3d79,0 3px 9px rgba(7,50,106,.18);
}
body :is(.hero-toolbar .coloring-link,.gallery-header .home-link):hover {background:#1256a0;color:white;}
/* Sur la fenêtre bois, Colorier en ligne est l'action principale bleue. */
body .coloring-preview .preview-actions #coloring-preview-online {
  background:var(--bn-blue-background);
  color:white;
  border-color:#174b78;
  box-shadow:0 2px 0 #073e78,0 4px 7px rgba(18,54,91,.22);
}
body .coloring-preview .paint-tools button[aria-pressed="true"]:not(.color-swatch) {
  background:#ffd85b;
  border-color:#896019;
  box-shadow:inset 0 2px 5px #b78727;
}
/* Les couleurs du dessin sont des pastilles, non des boutons de navigation. */
body .coloring-preview .paint-tools .color-swatch {border-radius:50% !important;}
/* Les croix de fermeture restent rondes pour être immédiatement reconnaissables. */
body :is(.contact-close,.coloring-preview .preview-close) {border-radius:50% !important;}
/* Uniformité du bouton de téléchargement de chaque vignette. */
body .coloring-card .download-label {width:100%;min-height:44px;}
/* Bouton contact lisible sur le footer sombre. */
body footer .contact-trigger {margin-top:12px;color:#38220d;}
/* Ne jamais masquer la sélection clavier. */
body :is(a,button):focus-visible {outline:3px solid #116bc8;outline-offset:3px;}
/* La fenêtre de coloriage conserve ses dimensions sans défilement. */
@media(max-width:600px) {
  body .coloring-preview .preview-actions :is(button,a) {padding:5px 4px;}
  body .coloring-preview .paint-finish button {font-size:11px;}
}
@media print {
  /* Pas de texture bois imprimée lorsque l'enfant imprime son coloriage. */
  body #coloring-preview .preview-actions,body #coloring-preview .paint-tools,
  body #coloring-preview .paint-finish {display:none !important;}
}
