/* Terres et Couleurs : compléments communs à toutes les pages (accessibilité, lot 2 du 2026-11-19).
   Rien ne change à la souris : seulement au clavier, au doigt et pour les lecteurs d'écran. */

/* Focus visible au clavier (Materialize le supprime partout : « :focus{outline:none} »). */
:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #222 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff;
}
main:focus-visible { outline: none !important; box-shadow: none; }

/* Lien « Aller au contenu » : invisible jusqu'au premier appui sur Tab. */
.tc-aller-contenu {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  padding: 8px 14px; background: #fff; color: #b04932; border: 2px solid #b04932; border-radius: 4px;
}
.tc-aller-contenu:focus { top: 8px; }

/* Texte lu par les lecteurs d'écran, jamais affiché. */
.tc-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Au doigt : zone de toucher agrandie autour des drapeaux et de l'icône Facebook (20 px affichés),
   sans rien déplacer : éléments en ligne (le rembourrage vertical ne change pas la hauteur de ligne), rembourrage
   horizontal compensé par une marge négative. */
@media (pointer: coarse) {
  .lien-flag, .tc-lien-icone { padding: 12px 3px; margin: 0 -3px; }
}

/* Lot 4 (retouches à peine visibles, mobile seulement). ----------------------------------------- */
@media only screen and (max-width: 600px) {
  /* Texte justifié (body, master.css) sur une colonne étroite : coupure des mots pour éviter les grands
     blancs entre les mots. Titres : justification désactivée (text-justify: none), sans effet sur un titre
     centré ou aligné à droite ; navigateurs qui l'ignorent (Safari) : rendu inchangé. */
  :where(main) :where(p, li, dd, td) { -webkit-hyphens: auto; hyphens: auto; }
  :where(main) :where(h1, h2, h3, h4) { text-justify: none; }

  /* Badge du panier : la légende passait à la ligne hors du fond vert (blanc sur blanc). */
  #compteur span.badge.new { height: auto; min-height: 22px; line-height: 16px; padding-top: 3px; padding-bottom: 3px; }
}

/* Fiche d'un cahier : bouton « acheter » en brique, comme le voulait sa feuille (.arrondis-btn, cahiers.css) et
   comme le bouton d'achat de la page des cahiers ; master.css imposait le vert sauge à tous les .btn. */
#ajouter-btn.btn.arrondis-btn { background-color: rgb(176, 73, 50) !important; color: #fff; }
#ajouter-btn.btn.arrondis-btn:hover, #ajouter-btn.btn.arrondis-btn:focus { background-color: rgb(150, 58, 38) !important; }

/* Panier de l'en-tête (validé le 2026-11-19) : contour brique, icône, pastille du nombre, « Mon panier · total ». */
#compteur { display: inline-block; margin: 2px 0 6px; }
.tc-panier-entete {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 11px 2px 8px;
  border: 1.5px solid rgb(176, 73, 50); border-radius: 90px; color: rgb(176, 73, 50);
  font-size: .9rem; font-weight: 500; line-height: 1.2; white-space: nowrap; background: #fff;
  transition: background-color .2s, color .2s;
}
#compteur:hover .tc-panier-entete, #compteur:focus-visible .tc-panier-entete { background: rgb(176, 73, 50); color: #fff; }
.tc-panier-icone { position: relative; display: inline-flex; }
.tc-pastille {
  position: absolute; top: -9px; right: -10px; min-width: 19px; height: 19px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: rgb(176, 73, 50); color: #fff; border: 2px solid #fff; font-size: .68rem; font-weight: 500;
}
#compteur:hover .tc-pastille, #compteur:focus-visible .tc-pastille { background: #fff; color: rgb(176, 73, 50); border-color: rgb(176, 73, 50); }
.tc-pastille.tc-rebond { animation: tc-rebond .5s ease-out; }
@keyframes tc-rebond { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
@media only screen and (max-width: 600px) {
  .tc-panier-libelle { display: none; }
  .tc-panier-entete { padding: 6px 9px; }
}

/* Panneau de confirmation après un ajout : sous le panier de l'en-tête (ordinateur), en bas de l'écran (mobile). */
.tc-confirmation { position: fixed; top: 14px; right: 14px; z-index: 1005; width: 330px; max-width: calc(100vw - 24px); }
.tc-confirmation-carte {
  position: relative; background: #fff; color: #000; border: 1px solid #eadfd4; border-radius: 10px;
  padding: 14px 14px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); text-align: left;
  animation: tc-apparait .22s ease-out;
}
.tc-confirmation-carte.tc-sortie { animation: tc-disparait .18s ease-in forwards; }
@keyframes tc-apparait { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes tc-disparait { to { opacity: 0; transform: translateY(-8px); } }
.tc-confirmation-titre { display: flex; align-items: center; gap: 7px; margin: 0 26px 10px 0; font-weight: 500; font-size: .95rem; color: #3b6d11; }
.tc-etat-deja .tc-confirmation-titre, .tc-etat-maj .tc-confirmation-titre { color: #4e342e; }
.tc-confirmation-fermer {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: #757575; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tc-confirmation-fermer:hover { background: #f3ede7; color: #000; }
.tc-confirmation-ligne { display: flex; align-items: center; gap: 11px; }
.tc-confirmation-ligne img { width: 44px; height: auto; flex: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.tc-confirmation-livre { margin: 0; font-size: .9rem; line-height: 1.3; }
.tc-confirmation-detail { margin: 3px 0 0; font-size: .8rem; color: #5f5f5f; }
.tc-confirmation-actions { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.tc-confirmation-voir {
  flex: 1; text-align: center; padding: 8px 12px; border-radius: 90px; font-size: .9rem; font-weight: 500;
  background: rgb(176, 73, 50); color: #fff !important;
}
.tc-confirmation-voir:hover, .tc-confirmation-voir:focus-visible { background: rgb(150, 58, 38); }
.tc-confirmation-continuer {
  border: 0; background: none; padding: 8px 6px; font-size: .9rem; color: #000; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
@media only screen and (max-width: 600px) {
  .tc-confirmation { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-width: none; }
  .tc-confirmation-carte { animation-name: tc-monte; }
  .tc-confirmation-carte.tc-sortie { animation-name: tc-descend; }
  @keyframes tc-monte { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes tc-descend { to { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  .tc-confirmation-carte, .tc-confirmation-carte.tc-sortie, .tc-pastille.tc-rebond { animation: none; }
}

/* Accueil (2026-11-19) : sur mobile et tablette, photo de l'équipe et échantillons côte à côte sous le texte
   (au lieu de l'une sous l'autre) ; ordinateur inchangé. Les colonnes s'effacent (display: contents). */
@media only screen and (max-width: 992px) {
  .tc-accueil-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-items: center; }
  .tc-accueil-intro > .col { display: contents; }
  .tc-accueil-intro > .col > :not(figure) { grid-column: 1 / -1; }
  .tc-accueil-intro figure { margin: 6px 0 0; }
  .tc-accueil-intro figure img { width: 100%; height: auto; }
}

/* Fil d'Ariane (2026-11-19), toutes les pages : page en cours plus foncée, liens brique au survol, séparateur
   plus discret ; sur mobile, une seule ligne, le titre trop long coupé (…). */
.breadcrumb { font-size: 13.5px; }
.breadcrumb::before { content: "\203A" !important;  /* › (échappé : CSS servi sans charset) */ font-size: 1.15em !important; color: #b8b0a8 !important; margin: 0 6px 0 2px !important; }
.breadcrumb.grey-text:hover { color: rgb(176, 73, 50) !important; }
.breadcrumb.grey-text:last-child { color: #555 !important; }
.breadcrumb.grey-text:last-child:not(:first-child) { pointer-events: none; }
:has(> .breadcrumb) { display: flex; justify-content: flex-end; align-items: center; min-width: 0; white-space: nowrap; }
:has(> .breadcrumb) > .breadcrumb { flex: none; }
:has(> .breadcrumb) > .breadcrumb:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Materialize colore en vert tout bouton qui a le focus (« button:focus { background-color: #2ab7a9 } »), par exemple
   juste après un clic. Couleurs des boutons du site rétablies au focus (survol compris). */
button.tc-faq-tout:focus, button.tc-copier:focus, button.tc-suggestion-ajouter:focus { background-color: #fff; }
button.tc-faq-tout:focus:hover { background-color: #fbf3ef; }
button.tc-suggestion-ajouter:focus:hover, button.tc-suggestion-ajouter:focus-visible { background-color: rgb(176, 73, 50); color: #fff; }
button.tc-confirmation-fermer:focus, button.tc-confirmation-continuer:focus, button.tc-suggestion-email-bouton:focus,
button.tc-lien:focus, button.tc-retirer:focus, button.tc-pas:focus { background-color: transparent; }
button.tc-pas:focus { background-color: #fff; }
button.tc-confirmation-fermer:focus:hover { background-color: #f3ede7; }
button.tc-bouton-principal:focus { background-color: rgb(176, 73, 50); }
button.tc-bouton-principal:focus:hover { background-color: rgb(150, 58, 38); }

/* Menu (2026-11-19). Ordinateur : survol, texte un peu plus grand, rubrique en cours soulignée d'un filet clair
   (au lieu du petit triangle sombre des feuilles de chaque page). Couleurs et ordre inchangés. */
#nav-mobile > li { transition: filter .15s; }
.tc-menu-pret #nav-mobile > li { background-image: none !important; }  /* triangle retiré une fois la rubrique repérée (site.js) */
#nav-mobile > li:hover { filter: brightness(.9); }
#nav-mobile > li > a:hover .tmenu, #nav-mobile > li > a:focus-visible .tmenu { text-decoration: underline; text-underline-offset: 3px; }
#nav-mobile .tmenu { font-size: 12px; }
@media only screen and (min-width: 1200px) { #nav-mobile .tmenu { font-size: 13px; } }
#nav-mobile > li.tc-rubrique-active { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .9); }

/* Mobile et tablette : bouton ☰ sur la ligne du panier, plus de bandeau vide pour lui seul. */
.tc-menu-entete { display: none; }
@media only screen and (max-width: 992px) {
  nav.nav-extended { display: none; }
  /* ☰ à gauche du logo, panier seul à droite : loin l'un de l'autre (plus de toucher le mauvais). */
  .tc-logo-ligne { display: flex; align-items: center; gap: 6px; }
  .tc-logo-ligne > a:last-child { flex: 1; min-width: 0; }
  .tc-menu-entete, .tc-menu-entete.sidenav-trigger { display: inline-flex; flex: none; width: 44px; height: 44px !important; line-height: normal !important; background: none; padding: 7px; margin: -7px 0 -7px -7px; }  /* zone de 44 px (master.css : 40 × 32 !important, fond brique) */
  .tc-menu-entete img { width: 30px; height: 30px; display: block; background: #b04932; border-radius: 2px; }  /* traits blancs : fond brique sur l image */
  #compteur { padding: 5px 0; }
}

/* Menu mobile ouvert : fermeture, libellés à côté des icônes, rubrique en cours, nombre de cahiers. */
#mobile-menu .tc-menu-fermer-ligne { display: flex; justify-content: flex-end; }
#mobile-menu .tc-menu-fermer {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 6px 0 0; padding: 8px 12px; border: 0; border-radius: 90px;
  background: transparent; color: #555; font-size: 14px; cursor: pointer;
}
#mobile-menu .tc-menu-fermer:hover, #mobile-menu button.tc-menu-fermer:focus { background: #f3ede7; color: #000; }
#mobile-menu li.accueil > a, #mobile-menu li.contacts > a { display: flex; align-items: center; gap: 12px; }
#mobile-menu .tc-menu-libelle { color: #fff; }
#mobile-menu li.tc-rubrique-active > a, #mobile-menu li > a[aria-current="page"] { box-shadow: inset 5px 0 0 rgba(255, 255, 255, .9); font-weight: 500; }
/* Panier en tête du menu mobile : nombre de cahiers et total (repris du compteur de l'en-tête). */
#mobile-menu .tc-menu-panier-ligne { padding: 4px 14px 10px; }
#mobile-menu a.tc-menu-panier {
  display: flex; align-items: center; gap: 10px; height: auto; line-height: 1.3; padding: 10px 14px;
  border: 1.5px solid rgb(176, 73, 50); border-radius: 90px; color: rgb(176, 73, 50); font-weight: 500;
}
#mobile-menu a.tc-menu-panier:hover { background: #fbf3ef; }
#mobile-menu a.tc-menu-panier svg { flex: none; }
.tc-menu-panier-detail { margin-left: auto; font-size: 13px; font-weight: 400; color: #6d4c41; white-space: nowrap; }
#mobile-menu a.tc-menu-panier.tc-vide { border-color: #d8c9bd; color: #555; font-weight: 400; }
#mobile-menu .tc-menu-filet { height: 1px; margin: 8px 16px; background: #eadfd4; }

/* Logo et frise de points en vectoriel (2026-11-19 ; tracés sur les images d'origine) : nets sur tous les écrans,
   fond transparent. Même taille et même place que les images GIF et PNG remplacées. */
img.tc-logo, img.tc-frise { height: auto; }

/* Pied de page (2026-11-19) : frise de points en séparation, liens sur une ligne au séparateur unique « · » (passage à
   la ligne sans séparateur orphelin), ligne légale en petit. Mêmes liens et mêmes libellés qu'avant. */
.tc-pied { margin-top: 26px; }
.tc-pied-frise { display: block; width: 230px; max-width: 60%; height: auto; margin: 0 auto 10px; opacity: .9; }
.tc-pied .container { padding: 12px 0 10px; }
.tc-pied-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; margin: 0 0 6px; padding: 0; list-style: none; }
.tc-pied-nav li { display: flex; align-items: center; }
.tc-pied-nav li + li::before { content: "\00B7"; margin: 0 10px; color: #b8b0a8; }
.tc-pied-nav a { padding: 4px 0; font-size: 14.5px; }
.tc-pied-nav a:hover, .tc-pied-legal a:hover { color: rgb(176, 73, 50) !important; text-decoration: underline; text-underline-offset: 3px; }
.tc-pied-legal { margin: 0; font-size: 12.5px; color: #757575; }
.tc-pied-legal a { color: #757575; }
@media only screen and (max-width: 600px) {
  /* Mobile : liens en grille de deux colonnes, sans séparateurs (rien d'orphelin), zones de toucher plus grandes. */
  .tc-pied-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .tc-pied-nav li { justify-content: center; }
  .tc-pied-nav li + li::before { content: none; }
  .tc-pied-nav a { display: block; padding: 9px 4px; }
  .tc-pied-legal { line-height: 1.8; }
  .tc-pied-legal .tc-pied-coupure { display: block; height: 0; overflow: hidden; }  /* mentions et CGV sur leur ligne */
}
