@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primaire:  #2d5a27;
  --primaire2: #4a8c40;
  --primaire3: #1e3d1a;
  --accent:    #e8f5e0;
  --accent2:   #c5e8b0;
  --blanc:     #ffffff;
  --creme:     #f8fdf6;
  --texte:     #1a1a18;
  --gris:      #5a6655;
  --bordure:   #d4e8cc;
  --or:        #c9a84c;
  --bleu:      #2980b9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--creme); color: var(--texte); line-height: 1.65; font-size: 16px; }

.topbar { background: var(--primaire); color: #fff; font-size: 12.5px; padding: 7px 16px; text-align: center; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar strong { color: var(--accent2); }
.topbar a { color: var(--accent2); text-decoration: none; }

header { background: var(--blanc); border-bottom: 3px solid var(--primaire); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; background: var(--primaire); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text span:first-child { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 800; color: var(--primaire); }
.logo-text span:last-child { font-size: 11px; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a { font-size: 13px; font-weight: 500; color: var(--texte); text-decoration: none; padding: 7px 11px; border-radius: 7px; transition: background .15s, color .15s; }
nav a:hover, nav a.active { background: var(--primaire); color: #fff; }
.header-badge { background: var(--accent); color: var(--primaire); border: 1px solid var(--accent2); font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }

.hero { background: var(--primaire); color: #fff; padding: 72px 24px 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='22'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent2), var(--or), var(--accent2)); }
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(30px, 5vw, 54px); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { color: var(--accent2); font-style: normal; }
.hero p { font-size: 17px; opacity: .9; max-width: 540px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--blanc); color: var(--primaire); font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 9px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-outline { border: 2px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 24px; border-radius: 9px; text-decoration: none; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.info-strip { background: var(--primaire2); display: flex; justify-content: center; flex-wrap: wrap; }
.info-strip .item { padding: 11px 20px; font-size: 13px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 7px; border-right: 1px solid rgba(255,255,255,.15); }
.info-strip .item:last-child { border-right: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
section.alt { background: var(--blanc); }
.section-title { font-family: 'Oswald', sans-serif; letter-spacing: .01em; font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin-bottom: 8px; color: var(--texte); }
.section-sub { font-size: 16px; color: var(--gris); margin-bottom: 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }

.card { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 14px; padding: 24px; transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(45,90,39,.1); border-color: var(--accent2); }
.card-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.card h3 { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 7px; color: var(--texte); }
.card p { font-size: 13.5px; color: var(--gris); }
.tag { display: inline-block; margin-top: 10px; background: var(--accent); border: 1px solid var(--bordure); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; color: var(--primaire); }

.rayon-card { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 13px; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.rayon-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(45,90,39,.12); }
.rayon-header { padding: 22px; text-align: center; font-size: 38px; }
.rayon-header.rouge { background: linear-gradient(135deg, #b03a2e, #e74c3c); }
.rayon-header.jaune { background: linear-gradient(135deg, #d35400, #e67e22); }
.rayon-header.vert { background: linear-gradient(135deg, var(--primaire3), var(--primaire)); }
.rayon-header.bleu { background: linear-gradient(135deg, #1a5276, var(--bleu)); }
.rayon-header.violet { background: linear-gradient(135deg, #6c3483, #9b59b6); }
.rayon-header.gris { background: linear-gradient(135deg, #2c3e50, #546e7a); }
.rayon-body { padding: 14px 16px; }
.rayon-body h3 { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--texte); }
.rayon-body p { font-size: 12px; color: var(--gris); }

.page-header { background: var(--primaire); color: #fff; padding: 48px 24px 40px; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent2), transparent); }
.page-header .container { display: flex; flex-direction: column; gap: 10px; }
.breadcrumb { font-size: 12.5px; opacity: .65; }
.breadcrumb a { color: #fff; text-decoration: none; }
.page-header h1 { font-family: 'Oswald', sans-serif; font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.1; color: #fff; }
.page-header h1 em { color: var(--accent2); font-style: normal; }
.page-header p { font-size: 16px; opacity: .88; max-width: 600px; }

.article-body { max-width: 820px; }
.article-body h2 { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; margin: 32px 0 12px; color: var(--texte); }
.article-body h3 { font-size: 19px; font-weight: 600; margin: 24px 0 9px; }
.article-body p { margin-bottom: 16px; font-size: 15.5px; }
.article-body ul { margin: 0 0 18px 20px; }
.article-body ul li { margin-bottom: 7px; font-size: 15px; }

.highlight { background: var(--primaire); color: #fff; border-radius: 14px; padding: 32px 36px; margin: 40px 0; }
.highlight h3 { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 9px; }
.highlight p { opacity: .9; font-size: 15px; }
.cta-box { background: var(--accent); border: 1px solid var(--accent2); border-radius: 14px; padding: 36px; text-align: center; margin: 40px 0; }
.cta-box h3 { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 9px; color: var(--texte); }
.cta-box p { font-size: 15px; margin-bottom: 18px; color: var(--gris); }
.cta-box a { display: inline-block; background: var(--primaire); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 28px; border-radius: 9px; text-decoration: none; }
.cta-box a:hover { background: var(--primaire3); }

.horaires-table { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 14px; overflow: hidden; width: 100%; }
.horaires-table tr td { padding: 11px 18px; border-bottom: 1px solid var(--bordure); font-size: 14px; }
.horaires-table tr:last-child td { border-bottom: none; }
.horaires-table .jour { font-weight: 600; }
.horaires-table .heure { color: var(--primaire); font-weight: 700; text-align: right; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.badge-rouge { background: #fdecea; color: #a93226; }
.badge-vert { background: var(--accent); color: var(--primaire); }
.badge-jaune { background: #fef9e7; color: #9a6f00; }
.badge-bleu { background: #eaf4fb; color: #1a5276; }

.faq-item { border: 1px solid var(--bordure); border-radius: 11px; padding: 16px 18px; margin-bottom: 10px; background: var(--blanc); transition: border-color .15s; }
.faq-item:hover { border-color: var(--accent2); }
.faq-item strong { color: var(--primaire); font-size: 14.5px; display: block; margin-bottom: 7px; }
.faq-item p { font-size: 13.5px; color: var(--gris); margin: 0; }

footer { background: var(--primaire3); color: rgba(255,255,255,.8); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer h4 { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 7px; }
footer ul li a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; transition: color .15s; }
footer ul li a:hover { color: var(--accent2); }
footer p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-logo { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.footer-pill { background: rgba(255,255,255,.1); border-radius: 20px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; color: rgba(255,255,255,.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,.35); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { font-size: 26px; }
.contact-item h4 { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.contact-item p { font-size: 13.5px; color: var(--gris); }

.biere-card { background: linear-gradient(135deg, #1c2e1a, #2d4a28); color: #fff; border-radius: 14px; padding: 24px; text-decoration: none; display: block; transition: transform .15s; border: 1px solid rgba(255,255,255,.08); }
.biere-card:hover { transform: translateY(-3px); }
.biere-card h3 { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--accent2); }
.biere-card p { font-size: 13px; opacity: .85; }
.biere-card .icon { font-size: 32px; margin-bottom: 12px; display: block; }


/* Pain buttons */
.pain-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 4px; }
.pain-btns a { white-space: normal; }
/* ancien @media 768px dupliqué supprimé */

/* ── MOBILE OPTIMIZATION ─────────────────────────────────── */

/* CTA COMMANDEZ flottant mobile */
.cta-commande-float {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--primaire); color: #fff;
  padding: 12px 16px;
  flex-direction: column; gap: 4px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.cta-commande-float a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blanc); color: var(--primaire);
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 17px;
  text-align: center; padding: 11px 16px; border-radius: 10px;
  text-decoration: none; letter-spacing: .03em;
  width: 100%; box-sizing: border-box;
  white-space: nowrap; overflow: hidden;
}
.cta-commande-float a strong {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: .03em;
}
.cta-commande-float .tel-mini {
  text-align: center; font-size: 11px; opacity: .8;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cta-commande-float .tel-mini a { color: var(--accent2); font-weight: 600; text-decoration: none; }

/* Bouton commande desktop dans header */
.btn-commande {
  background: var(--primaire); color: #fff;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 8px; text-decoration: none;
  white-space: nowrap; transition: background .15s, transform .15s;
  border: none; cursor: pointer; letter-spacing: .02em;
  box-shadow: 0 3px 12px rgba(45,90,39,.35);
}
.btn-commande:hover { background: var(--primaire3); transform: translateY(-1px); }

/* MAP */
.map-embed { border-radius: 16px; overflow: hidden; border: 1px solid var(--bordure); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* TEL CTA */
.tel-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--primaire);
  border: 1px solid var(--accent2); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 9px; text-decoration: none;
  transition: background .15s;
}
.tel-cta:hover { background: var(--accent2); }

/* Section commande hero */
.commande-strip {
  background: var(--primaire3); color: #fff;
  padding: 18px 24px; text-align: center;
}
.commande-strip p { font-size: 14px; opacity: .8; margin-bottom: 10px; }
.commande-strip .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.commande-strip .btn-cmd {
  background: var(--blanc); color: var(--primaire);
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 14px;
  padding: 11px 24px; border-radius: 9px; text-decoration: none;
}
.commande-strip .btn-tel {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.4); font-weight: 600; font-size: 14px;
  padding: 9px 24px; border-radius: 9px; text-decoration: none;
}
.commande-strip .btn-tel:hover { border-color: #fff; }

/* ── RESPONSIVE AMÉLIORÉ ─────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .header-inner { padding: 10px 16px; }
  .logo-text span:first-child { font-size: 17px; }
  .header-badge { display: none; }
  
  /* Hero mobile */
  .hero { padding: 48px 20px 52px; }
  .hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero p { font-size: 15px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; max-width: 320px; text-align: center; }
  
  /* Strip mobile */
  .info-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .info-strip .item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); justify-content: center; padding: 9px 12px; font-size: 11.5px; }
  
  /* Grilles mobile */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  
  /* Cards */
  .card { padding: 18px; }
  .card h3 { font-size: 16px; }
  
  /* Map mobile */
  .map-embed iframe { height: 260px; }
  
  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  
  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  
  /* CTA flottant visible sur mobile */
  .cta-commande-float { display: flex; }
  
  /* Espace pour le CTA flottant */
  body { padding-bottom: 80px; }

  /* Overflow global — empêche tout débordement horizontal */
  html, body { overflow-x: hidden; max-width: 100%; }
  .topbar { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 12px; }
  .header-inner { padding: 8px 12px; gap: 10px; }
  .commande-strip { padding: 14px 16px; }
  .commande-strip p { font-size: 13px; }
  /* Sections inline styles protection */
  section > div, .container > div { max-width: 100%; }
  
  /* Sections padding réduit */
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  
  /* Article */
  .article-body h2 { font-size: 20px; }
  .page-header { padding: 36px 16px 28px; }
  .page-header h1 { font-size: clamp(22px, 6vw, 32px); }
  
  /* Commande strip */
  .commande-strip .btns { flex-direction: column; align-items: center; }
  .commande-strip .btn-cmd, .commande-strip .btn-tel { width: 100%; max-width: 300px; text-align: center; }

  /* Pain & Viennoiseries — boutons en colonne sur mobile */
  .pain-btns { flex-direction: column !important; align-items: stretch; width: 100%; gap: 8px; }
  .pain-btns a { width: 100% !important; text-align: center; box-sizing: border-box; white-space: normal; margin-right: 0 !important; }

  /* Grille pain mobile : empiler les cards */
  .pain-grid { grid-template-columns: 1fr !important; }

  /* Livraison destinations : 2 col sur mobile */
  .livr-dest { grid-template-columns: 1fr 1fr !important; }

  /* Section livraison grid */
  .livr-g { grid-template-columns: 1fr !important; }

  /* Cross-sell links wrap */
  .cross-links { flex-direction: column; }
  .cross-link { width: 100%; }

  /* Ticker — taille réduite */
  .ticker-inner span { font-size: 11px; padding: 7px 20px; }

  /* Services grille 4 → 2 col */
  .svc-g { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-text span:first-child { font-size: 15px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .hero { padding: 36px 16px 48px; }
  .section-title { font-size: 22px; }
  .cta-box { padding: 24px 18px; }
  .cta-box h3 { font-size: 20px; }

  /* Pain section : une colonne, boutons pleins */
  .pain-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .pain-cards { grid-template-columns: repeat(3,1fr); }
  .pain-btns { flex-direction: column; width: 100%; }
  .pain-btns a { width: 100%; text-align: center; box-sizing: border-box; }

  /* Avis 1 colonne */
  .avis-grid { grid-template-columns: 1fr !important; }

  /* Services 1 colonne */
  .svc-g { grid-template-columns: 1fr !important; }

  /* CTA flottant — numéro lisible */
  .cta-commande-float a { font-size: 16px; padding: 10px 12px; }

  /* Ticker compact */
  .ticker-inner span { font-size: 10px; padding: 6px 16px; }
}

/* ── DESKTOP OPTIMISATIONS ───────────────────────────────── */
@media (min-width: 1024px) {
  .hero { padding: 88px 24px 72px; }
  .section-title { font-size: 36px; }
  nav a { font-size: 13.5px; padding: 8px 13px; }
}

.cta-commande-float .tel-mini a {
  display: inline !important;
  background: transparent !important;
  color: var(--accent2) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: inherit;
  font-weight: 600;
}
.cta-commande-float .tel-mini {
  color: rgba(255,255,255,.8);
  font-size: 11.5px;
  text-align: center;
}

