/* ============================================================
   Le temps d'une bouchée — style.css
   Dérivé de la charte graphique (juillet 2026)
   Contrastes conformes WCAG AA
   ============================================================ */

:root {
  color-scheme: light only;
  --tb-rouge: #B92025;
  --tb-rouge-profond: #8E1A1F;
  --tb-or: #E4A93C;
  --tb-or-pale: #F3D9A4;
  --tb-caramel: #C97B2D;
  --tb-brun: #5C3A21;
  --tb-brun-profond: #3A2514;
  --tb-creme: #FBF5EA;
  --tb-taupe: #7A5E3C;
  --tb-blanc: #FFFFFF;
  --tb-titre: 'Yeseva One', Georgia, serif;
  --tb-texte: 'Nunito Sans', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: #FFFFFF; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--tb-texte);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tb-brun-profond);
  background: var(--tb-blanc);
}

img { max-width: 100%; display: block; }

a { color: var(--tb-rouge); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--tb-caramel);
  outline-offset: 3px;
  border-radius: 4px;
}

.tb-conteneur { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête ---------- */
.tb-entete {
  background: var(--tb-creme);
  border-bottom: 1px solid #EADDC4;
  position: sticky;
  top: 0;
  z-index: 50;
}
.tb-entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  padding: 14px 24px; max-width: 1240px; margin: 0 auto;
}
.tb-logo {
  font-family: var(--tb-titre);
  font-size: 1.3rem;
  white-space: nowrap;
  color: var(--tb-rouge);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  line-height: 1.1;
}
.tb-logo img { width: 30px; height: auto; flex-shrink: 0; }
.tb-nav { display: flex; gap: 20px; align-items: center; }
.tb-nav a {
  color: var(--tb-brun);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.tb-nav a:hover { color: var(--tb-rouge); }
.tb-nav a.tb-actif { color: var(--tb-rouge); border-bottom: 2px solid var(--tb-or); padding-bottom: 2px; }
.tb-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.7rem; color: var(--tb-brun); line-height: 1;
}

/* ---------- Héros ---------- */
.tb-heros {
  background: linear-gradient(165deg, var(--tb-creme) 55%, var(--tb-or-pale) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 84px 24px 110px;
}
.tb-heros .tb-feuille-fond {
  position: absolute; right: -60px; top: -30px;
  width: 300px; opacity: .16; pointer-events: none;
  transform: rotate(12deg);
}
.tb-heros .tb-feuille-fond2 {
  position: absolute; left: -80px; bottom: -60px;
  width: 270px; opacity: .13; pointer-events: none; transform: rotate(-18deg);
}
.tb-surtitre {
  display: inline-block;
  background: var(--tb-or);
  color: var(--tb-brun);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 3px;
  margin-bottom: 26px;
}
.tb-heros h1 {
  font-family: var(--tb-titre);
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  color: var(--tb-brun);
  line-height: 1.18;
  max-width: 760px;
  margin: 0 auto 10px;
}
.tb-heros h1 .tb-trempe { position: relative; color: var(--tb-rouge); white-space: nowrap; }
.tb-heros h1 .tb-trempe svg {
  position: absolute; left: 0; right: 0; bottom: -18px;
  width: 100%; height: 20px;
}
.tb-heros p.tb-sous {
  font-size: 1.15rem;
  color: var(--tb-brun);
  max-width: 620px;
  margin: 26px auto 36px;
}
.tb-boutons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.tb-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--tb-texte);
}
.tb-btn-primaire { background: var(--tb-rouge); color: var(--tb-blanc); }
.tb-btn-primaire:hover { background: var(--tb-rouge-profond); }
.tb-btn-secondaire { background: var(--tb-or); color: var(--tb-brun); }
.tb-btn-secondaire:hover { background: var(--tb-caramel); color: var(--tb-blanc); }
.tb-btn-contour { border: 2.5px solid var(--tb-brun); color: var(--tb-brun); background: transparent; }
.tb-btn-contour:hover { background: var(--tb-brun); color: var(--tb-blanc); }

/* ---------- Séparateur coulée de sirop ---------- */
.tb-coulee { display: block; width: 100%; height: 64px; margin-top: -1px; }

/* ---------- Sections ---------- */
.tb-section { padding: 74px 0; }
.tb-section-creme { background: var(--tb-creme); }
.tb-etiquette-section {
  display: inline-block;
  background: var(--tb-or);
  color: var(--tb-brun);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.tb-section h2 {
  font-family: var(--tb-titre);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  color: var(--tb-brun);
  margin-bottom: 14px;
  line-height: 1.25;
}
.tb-section h3 {
  font-family: var(--tb-titre);
  font-size: 1.25rem;
  color: var(--tb-rouge);
  margin-bottom: 10px;
}
.tb-intro { max-width: 680px; font-size: 1.08rem; color: var(--tb-brun-profond); }

/* ---------- Piliers ---------- */
.tb-piliers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
}
.tb-pilier {
  background: var(--tb-blanc);
  border-top: 6px solid var(--tb-or);
  padding: 30px 26px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 14px rgba(92, 58, 33, .07);
}
.tb-pilier .tb-ico { width: 42px; height: 42px; margin-bottom: 16px; }
.tb-pilier p { font-size: .98rem; }

/* ---------- Vitrine produit ---------- */
.tb-vitrine {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 20px;
}
.tb-vitrine img { border-radius: 12px; box-shadow: 0 10px 30px rgba(92, 58, 33, .18); }
.tb-encart {
  background: var(--tb-creme);
  border-left: 6px solid var(--tb-or);
  padding: 18px 22px;
  margin-top: 22px;
  border-radius: 0 8px 8px 0;
  font-size: .98rem;
}
.tb-encart b { color: var(--tb-brun); }

/* ---------- Bande point de vente ---------- */
.tb-bande-cta {
  background: linear-gradient(150deg, var(--tb-rouge) 0%, var(--tb-rouge-profond) 100%);
  color: var(--tb-blanc);
  text-align: center;
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}
.tb-bande-cta .tb-feuille-fond {
  position: absolute; right: -40px; bottom: -60px;
  width: 240px; opacity: .16; pointer-events: none; transform: rotate(-15deg);
}
.tb-bande-cta h2 {
  font-family: var(--tb-titre);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  margin-bottom: 14px;
  color: var(--tb-blanc);
}
.tb-bande-cta p { max-width: 640px; margin: 0 auto 32px; font-size: 1.08rem; color: var(--tb-or-pale); }
.tb-bande-cta .tb-btn-secondaire:hover { background: var(--tb-or-pale); color: var(--tb-brun); }

/* ---------- Blogue ---------- */
.tb-cartes-blogue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
}
.tb-carte-blogue {
  background: var(--tb-blanc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(92, 58, 33, .08);
  display: flex;
  flex-direction: column;
}
.tb-carte-blogue .tb-carte-haut {
  background: linear-gradient(150deg, var(--tb-or-pale), var(--tb-or));
  height: 10px;
}
.tb-carte-blogue .tb-carte-corps { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.tb-carte-blogue .tb-carte-date {
  font-size: .8rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--tb-taupe); margin-bottom: 10px;
}
.tb-carte-blogue h3 { font-size: 1.12rem; color: var(--tb-brun); }
.tb-carte-blogue p { font-size: .95rem; flex: 1; }
.tb-carte-blogue a {
  font-weight: 800; text-decoration: none; margin-top: 16px; font-size: .95rem;
}
.tb-carte-blogue a:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.tb-pied {
  background: var(--tb-brun-profond);
  color: var(--tb-or-pale);
  padding: 56px 0 30px;
  font-size: .95rem;
}
.tb-pied-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.tb-pied .tb-logo { color: var(--tb-or); font-size: 1.3rem; margin-bottom: 14px; }
.tb-pied h4 {
  font-family: var(--tb-texte); font-weight: 800; color: var(--tb-blanc);
  font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.tb-pied ul { list-style: none; }
.tb-pied li { margin-bottom: 9px; }
.tb-pied a { color: var(--tb-or-pale); text-decoration: none; }
.tb-pied a:hover { color: var(--tb-blanc); text-decoration: underline; }
.tb-pied-bas {
  border-top: 1px solid rgba(243, 217, 164, .25);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem;
}

/* ---------- Mobile ---------- */
.tb-piliers-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 840px) {
  .tb-piliers, .tb-piliers-2, .tb-cartes-blogue { grid-template-columns: 1fr; }
  .tb-vitrine { grid-template-columns: 1fr; gap: 32px; }
  .tb-pied-grille { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 1020px) {
  body { font-size: 16px; }
  .tb-burger { display: block; }
  .tb-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--tb-creme);
    flex-direction: column;
    padding: 18px 24px 24px;
    gap: 18px;
    border-bottom: 1px solid #EADDC4;
    box-shadow: 0 10px 20px rgba(92, 58, 33, .12);
  }
  .tb-nav.tb-ouvert { display: flex; }
  .tb-heros { padding: 60px 24px 90px; }
}

/* ---------- Page article / Notre histoire ---------- */
.tb-page-entete {
  background: linear-gradient(165deg, var(--tb-creme) 55%, var(--tb-or-pale) 100%);
  text-align: center;
  padding: 64px 24px 78px;
  position: relative;
  overflow: hidden;
}
.tb-page-entete h1 {
  font-family: var(--tb-titre);
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  color: var(--tb-brun);
  line-height: 1.2;
}
.tb-page-entete p { max-width: 620px; margin: 16px auto 0; font-size: 1.12rem; color: var(--tb-brun); }
.tb-article { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
.tb-article p { margin-bottom: 22px; font-size: 1.06rem; }
.tb-article .tb-lettrine::first-letter {
  font-family: var(--tb-titre);
  font-size: 3.4em;
  color: var(--tb-rouge);
  float: left;
  line-height: .82;
  padding-right: 10px;
  padding-top: 4px;
}
.tb-citation-forte {
  font-family: var(--tb-titre);
  font-size: 1.45rem;
  color: var(--tb-rouge);
  text-align: center;
  margin: 38px auto;
  max-width: 540px;
  line-height: 1.4;
}
.tb-article img { border-radius: 12px; box-shadow: 0 10px 30px rgba(92,58,33,.18); margin: 36px 0; }
.tb-finale {
  background: var(--tb-creme);
  border-left: 6px solid var(--tb-or);
  border-radius: 0 10px 10px 0;
  padding: 26px 30px;
  margin-top: 38px;
}
.tb-finale p { margin-bottom: 12px; }
.tb-finale p:last-child { margin-bottom: 0; font-family: var(--tb-titre); color: var(--tb-brun); font-size: 1.15rem; }

.tb-logo-heros {
  display: block;
  width: min(290px, 62vw);
  margin: 0 auto 30px;
  filter: drop-shadow(0 6px 18px rgba(92, 58, 33, .22));
}

/* ---------- Blogue ---------- */
.tb-blogue-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
}
@media (max-width: 840px) { .tb-blogue-grille { grid-template-columns: 1fr; } }
.tb-chip {
  display: inline-block;
  background: var(--tb-or-pale);
  color: var(--tb-brun);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.tb-article h2 {
  font-family: var(--tb-titre);
  font-size: 1.5rem;
  color: var(--tb-rouge);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.tb-article ul { margin: 0 0 22px 26px; }
.tb-article li { margin-bottom: 8px; font-size: 1.03rem; }
.tb-article-meta {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--tb-taupe); margin-top: 14px;
}
.tb-faq { margin-top: 44px; }
.tb-faq h2 { margin-bottom: 20px; }
.tb-faq details {
  background: var(--tb-creme);
  border-left: 5px solid var(--tb-or);
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
  padding: 0;
}
.tb-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--tb-brun);
  padding: 16px 20px;
  list-style-position: inside;
}
.tb-faq summary:hover { color: var(--tb-rouge); }
.tb-faq details p { padding: 0 20px 16px 20px; margin: 0; }
.tb-retour-blogue {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 8px;
}
.tb-retour-blogue:hover { text-decoration: underline; }

/* ---------- Formulaire ---------- */
.tb-form-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin-top: 34px;
}
@media (max-width: 700px) { .tb-form-grille { grid-template-columns: 1fr; } }
.tb-champ { display: flex; flex-direction: column; }
.tb-champ-large { grid-column: 1 / -1; }
.tb-champ label { font-weight: 800; color: var(--tb-brun); margin-bottom: 7px; font-size: .98rem; }
.tb-champ label .tb-facultatif { font-weight: 400; color: var(--tb-taupe); font-size: .85rem; }
.tb-champ input, .tb-champ select, .tb-champ textarea {
  font-family: var(--tb-texte);
  font-size: 1rem;
  color: var(--tb-brun-profond);
  background: #fff;
  border: 2px solid #E0D0B4;
  border-radius: 8px;
  padding: 12px 14px;
}
.tb-champ input:focus, .tb-champ select:focus, .tb-champ textarea:focus {
  outline: 3px solid var(--tb-or);
  outline-offset: 1px;
  border-color: var(--tb-caramel);
}
.tb-champ textarea { min-height: 130px; resize: vertical; }
.tb-form-note { grid-column: 1 / -1; font-size: .9rem; color: var(--tb-taupe); }
.tb-form-envoi { grid-column: 1 / -1; }
.tb-etapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 840px) { .tb-etapes { grid-template-columns: 1fr; } }
.tb-etape { text-align: center; padding: 0 10px; }
.tb-etape .tb-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tb-rouge); color: #fff;
  font-family: var(--tb-titre); font-size: 1.4rem;
  margin-bottom: 14px;
}
.tb-etape h3 { font-family: var(--tb-titre); color: var(--tb-brun); font-size: 1.15rem; margin-bottom: 8px; }
.tb-etape p { font-size: .97rem; }
.tb-merci-bloc { text-align: center; padding: 90px 24px 100px; max-width: 640px; margin: 0 auto; }
.tb-merci-bloc h1 { font-family: var(--tb-titre); font-size: 2.2rem; color: var(--tb-brun); margin-bottom: 18px; }
.tb-merci-bloc p { font-size: 1.1rem; margin-bottom: 30px; }

/* ---------- Page Nos beignets ---------- */
.tb-degust-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 840px) { .tb-degust-grille { grid-template-columns: 1fr; } }
.tb-degust {
  background: var(--tb-blanc);
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: 0 3px 14px rgba(92, 58, 33, .08);
}
.tb-degust h3 { font-family: var(--tb-titre); color: var(--tb-rouge); font-size: 1.15rem; margin-bottom: 10px; }
.tb-degust p { font-size: .97rem; }
.tb-saisons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tb-saison {
  background: var(--tb-creme);
  border: 2px solid var(--tb-or);
  color: var(--tb-brun);
  font-weight: 700;
  font-size: .95rem;
  padding: 9px 18px;
  border-radius: 100px;
}
.tb-centre { text-align: center; }
.tb-centre .tb-intro { margin-left: auto; margin-right: auto; }

/* ---------- Page Nous joindre ---------- */
.tb-coordonnees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 840px) { .tb-coordonnees { grid-template-columns: 1fr; } }
.tb-coord {
  background: var(--tb-blanc);
  border-top: 6px solid var(--tb-or);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 14px rgba(92, 58, 33, .07);
  padding: 28px 24px;
  text-align: center;
}
.tb-coord svg { width: 40px; height: 40px; margin-bottom: 12px; }
.tb-coord h3 { font-family: var(--tb-titre); color: var(--tb-brun); font-size: 1.1rem; margin-bottom: 8px; }
.tb-coord a { font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.tb-coord a:hover { text-decoration: underline; }
.tb-coord p { font-size: .92rem; color: var(--tb-taupe); margin-top: 6px; }

/* ---------- Bandes photos ---------- */
.tb-photo-duo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin: 38px 0 10px;
}
.tb-photo-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 36px 0 6px;
}
@media (max-width: 840px) {
  .tb-photo-duo, .tb-photo-trio { grid-template-columns: 1fr; }
}
.tb-photo-duo img, .tb-photo-trio img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(92, 58, 33, .16);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-article h3 {
  font-family: var(--tb-texte);
  font-weight: 800;
  color: var(--tb-brun);
  font-size: 1.15rem;
  margin: 26px 0 10px;
}

/* ---------- Sous-menu de navigation ---------- */
.tb-nav-groupe { position: relative; }
.tb-nav-groupe > a .tb-chevron { font-size: .7em; margin-left: 3px; }
.tb-sousmenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  background: var(--tb-creme);
  border: 1px solid #EADDC4;
  border-top: 3px solid var(--tb-or);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 24px rgba(92, 58, 33, .16);
  min-width: 200px;
  padding: 8px 0;
  z-index: 60;
}
.tb-nav-groupe:hover .tb-sousmenu,
.tb-nav-groupe:focus-within .tb-sousmenu { display: block; }
.tb-sousmenu a { display: block; padding: 10px 18px; border-bottom: none !important; }
.tb-sousmenu a:hover { background: var(--tb-or-pale); }
@media (max-width: 1020px) {
  .tb-nav-groupe { position: static; }
  .tb-sousmenu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 6px 0 0 18px;
    min-width: 0;
  }
  .tb-sousmenu a { padding: 8px 0; font-weight: 700; }
  .tb-sousmenu .tb-sousmenu-dup { display: none; }
  .tb-nav-groupe > a .tb-chevron { display: none; }
}

/* ---------- Page Offrir : cartes d'occasions ---------- */
.tb-occasions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
@media (max-width: 840px) { .tb-occasions { grid-template-columns: 1fr; } }
.tb-occasion {
  background: var(--tb-blanc);
  border-radius: 10px;
  padding: 28px 26px;
  box-shadow: 0 3px 14px rgba(92, 58, 33, .08);
  display: flex;
  flex-direction: column;
}
.tb-occasion h3 { font-family: var(--tb-titre); color: var(--tb-rouge); font-size: 1.2rem; margin-bottom: 10px; }
.tb-occasion p { font-size: .97rem; flex: 1; }
.tb-occasion a.tb-lien-occasion { font-weight: 800; text-decoration: none; margin-top: 16px; }
.tb-occasion a.tb-lien-occasion:hover { text-decoration: underline; }
.tb-occasion-vedette { border-top: 6px solid var(--tb-or); background: var(--tb-creme); }
