/* =====================================================================
   LE PETIT CARNIVORE PRO — contenus des pages (accueil, catalogue, services, livraison…)
   Complète css/lpc.css (gabarit commun). Mobile d'abord, puis grands écrans.
   ===================================================================== */

.cadre { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.cadre-etroit { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-serree { padding: clamp(44px, 5vw, 72px) 0; }
.section-creme { background: var(--creme); }
.section-gris { background: var(--gris-50); }
.section-sombre { background: var(--noir); color: rgba(255, 255, 255, .82); }
.section-sombre h2, .section-sombre h3 { color: var(--blanc); }
.section-sombre .sur-titre { color: #E8A1A8; }

.titre-section { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.titre-section.centre { margin-left: auto; margin-right: auto; text-align: center; }
.titre-section.centre .sur-titre { justify-content: center; }
.titre-section h2, .h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); font-weight: 700; }
.chapo { font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); line-height: 1.7; color: #4A4644; }
.section-sombre .chapo { color: rgba(255, 255, 255, .78); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--rouge); }
.lien-fleche .ico { transition: transform 300ms var(--ease-out); }
.lien-fleche:hover .ico { transform: translateX(4px); }
.note { font-size: .86rem; color: #6B6560; }

/* ---------------------------------------------------------- Accueil : hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: clamp(10px, 1.4vw, 20px) var(--gutter) 0; border-radius: var(--radius);
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(155, 17, 30, .45), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(109, 12, 21, .55), transparent 65%),
    var(--noir);
  color: rgba(255, 255, 255, .86);
}
.hero::after { /* grain discret, façon papier boucher */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grille {
  display: grid; gap: clamp(36px, 5vw, 70px); align-items: center;
  padding: clamp(46px, 7vw, 110px) clamp(22px, 5vw, 80px) clamp(54px, 7vw, 110px);
}
.hero .sur-titre { color: #E8A1A8; }
.hero h1 { color: var(--blanc); font-size: clamp(2.35rem, 1.3rem + 4.2vw, 5.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #F2B8BE; }
.hero-texte { font-size: clamp(1.04rem, .98rem + .35vw, 1.25rem); line-height: 1.7; max-width: 36em; margin-bottom: 30px; }
.hero .btn-pill { height: 56px; padding-left: 26px; font-size: .8rem; }
.hero-atouts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.hero-atouts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-atouts .ico { color: #E8A1A8; }

.hero-visuel { position: relative; max-width: 620px; justify-self: center; width: 100%; }
.hero-photo { position: relative; border-radius: calc(var(--radius) * 1.3); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: rotate(1.5deg); }
.hero-photo img { display: block; width: 100%; aspect-ratio: 570 / 350; object-fit: cover; }
.hero-vignette {
  position: absolute; width: 36%; border-radius: 50%; overflow: hidden; border: 6px solid var(--noir);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
}
.hero-vignette img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-vignette.v1 { left: -6%; bottom: -16%; }
.hero-vignette.v2 { right: -4%; top: -14%; width: 27%; }
.hero-badge {
  position: absolute; right: 4%; bottom: -9%;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  border-radius: 99px; background: var(--blanc); color: var(--noir); font-weight: 700; font-size: .9rem; line-height: 1.25;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
}
.hero-badge img { width: 40px; height: auto; }
.hero-badge small { display: block; font-weight: 500; color: #6B6560; font-size: .78rem; }
@media (min-width: 992px) {
  .hero-grille { grid-template-columns: 1.08fr .92fr; min-height: min(80vh, 780px); }
}
@media (max-width: 991px) {
  .hero-visuel { max-width: 520px; margin: 10px auto 40px; }
}
@media (max-width: 575px) {
  .hero .boutons .btn-pill { width: 100%; justify-content: space-between; }
  .hero-badge { left: 6%; right: 6%; bottom: -16%; font-size: .82rem; }
  .hero-badge small { white-space: normal; }
}

/* Arrivée du hero après le loader */
html.js .hero-anim { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s var(--ease-out); }
html.js.is-ready .hero-anim { opacity: 1; transform: none; }
html.js.is-ready .hero-anim:nth-child(2) { transition-delay: .08s; }
html.js.is-ready .hero-anim:nth-child(3) { transition-delay: .16s; }
html.js.is-ready .hero-anim:nth-child(4) { transition-delay: .24s; }
html.js.is-ready .hero-anim:nth-child(5) { transition-delay: .32s; }
html.js .hero-visuel { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity 1s ease .2s, transform 1.2s var(--ease-out) .2s; }
html.js.is-ready .hero-visuel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .hero-anim, html.js .hero-visuel { transition: none; transform: none; opacity: 1; } }

/* ---------------------------------------------------------- Présentation */
.presentation { display: grid; gap: clamp(30px, 5vw, 80px); align-items: start; }
.presentation-citation {
  font-family: var(--police-machine); font-weight: 700; color: var(--noir);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; margin: 0;
}
.presentation-citation span { color: var(--rouge); }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; }
.fait { padding: 20px; border-radius: 18px; background: var(--blanc); border: 1px solid var(--ligne); }
.fait dt { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--noir); margin-bottom: 6px; font-size: .95rem; }
.fait dt .ico { color: var(--rouge); }
.fait dd { margin: 0; font-size: .92rem; line-height: 1.55; color: #4A4644; }
@media (min-width: 992px) { .presentation { grid-template-columns: .9fr 1.1fr; } }
@media (max-width: 480px) { .faits { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Cartes des gammes */
.gammes { display: grid; gap: clamp(14px, 1.6vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gamme {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: calc(var(--radius) * 1.1); background: var(--blanc); text-decoration: none; color: var(--anthracite);
  border: 1px solid var(--ligne); transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.gamme-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--gris-100); }
.gamme-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.gamme-corps { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gamme h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.gamme p { margin: 0; font-size: .93rem; line-height: 1.55; color: #5A5450; flex: 1; }
.gamme .lien-fleche { margin-top: 8px; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  .gamme:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(26, 24, 23, .45); color: var(--anthracite); }
  .gamme:hover .gamme-photo img { transform: scale(1.06); }
  .gamme:hover .lien-fleche .ico { transform: translateX(4px); }
}

/* ---------------------------------------------------------- Atouts (pourquoi nous choisir) */
.atouts { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.atout { padding: clamp(22px, 2.4vw, 32px); border-radius: calc(var(--radius) * 1.1); background: var(--blanc); border: 1px solid var(--ligne); }
.section-sombre .atout { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.atout-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--rouge); color: var(--blanc); margin-bottom: 18px; }
.atout h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.atout p { margin: 0; font-size: .95rem; line-height: 1.6; }

/* ---------------------------------------------------------- Bande livraison */
.bande { display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; }
.chiffre-cle {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: clamp(26px, 3vw, 40px); border-radius: calc(var(--radius) * 1.2);
  background: linear-gradient(140deg, var(--rouge) 0%, var(--rouge-fonce) 100%); color: var(--blanc);
}
.chiffre-cle .valeur { font-family: var(--police-machine); font-weight: 700; font-size: clamp(2.6rem, 1.8rem + 3.2vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.chiffre-cle .libelle { font-weight: 700; font-size: 1.05rem; }
.chiffre-cle .precision { font-size: .84rem; opacity: .8; }
@media (min-width: 992px) { .bande { grid-template-columns: 1.2fr .8fr; } }

/* ---------------------------------------------------------- Bloc d'appel à l'action rouge */
.cta-bloc {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 90px) clamp(24px, 6vw, 90px); border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%); color: rgba(255, 255, 255, .88);
}
.cta-bloc h2 { color: var(--blanc); font-size: clamp(1.8rem, 1.2rem + 2.3vw, 3.2rem); font-weight: 700; max-width: 18em; }
.cta-bloc p { max-width: 40em; font-size: clamp(1rem, .96rem + .3vw, 1.18rem); margin-bottom: 28px; }
.cta-bloc .sur-titre { color: #F6C9CE; }
.cta-coeur { position: absolute; right: -40px; bottom: -60px; width: clamp(200px, 26vw, 380px); opacity: .14; z-index: -1; filter: brightness(10); transform: rotate(-12deg); }

/* ---------------------------------------------------------- Rendez-vous / étapes */
.rdv { display: grid; gap: clamp(30px, 5vw, 80px); align-items: center; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 22px; border-radius: 18px; background: var(--blanc); border: 1px solid var(--ligne); }
.etapes li::before {
  content: counter(etape, decimal-leading-zero); grid-row: span 2;
  font-family: var(--police-machine); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--rouge);
}
.etapes strong { font-size: 1.05rem; color: var(--noir); }
.etapes span { font-size: .93rem; color: #5A5450; }
@media (min-width: 992px) { .rdv { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------- Mise en page à deux colonnes (texte + visuel) */
.duo { display: grid; gap: clamp(30px, 5vw, 80px); align-items: center; }
.duo + .duo { margin-top: clamp(56px, 7vw, 110px); }
.duo-photo { border-radius: calc(var(--radius) * 1.3); overflow: hidden; }
.duo-photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.duo h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); font-weight: 700; }
.duo h3 { font-size: 1.15rem; margin-top: 1.4em; }
@media (min-width: 992px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo.inverse .duo-photo { order: 2; }
}
.liste-coches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; }
.liste-coches li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------------------------------------------------------- Page catégorie */
.cat-intro { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.cat-intro-photo { border-radius: calc(var(--radius) * 1.3); overflow: hidden; }
.cat-intro-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 992px) { .cat-intro { grid-template-columns: 1.1fr .9fr; } }
.refs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ref { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px; background: var(--blanc); border: 1px solid var(--ligne); }
.ref h3 { font-size: 1.08rem; font-weight: 700; margin: 0; }
.ref p { margin: 0; font-size: .92rem; color: #5A5450; flex: 1; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .86rem; }
.ref-actions a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.etiquettes li { padding: 8px 16px; border-radius: 99px; background: var(--creme); color: var(--noir); font-weight: 600; font-size: .9rem; }
.galerie { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: clamp(30px, 4vw, 50px); }
.galerie img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.encadre { padding: clamp(22px, 3vw, 34px); border-radius: calc(var(--radius) * 1.1); background: var(--creme); border-left: 4px solid var(--rouge); }
.encadre h2, .encadre h3 { font-size: 1.2rem; margin-bottom: 8px; }
.encadre p:last-child { margin-bottom: 0; }
.autres-gammes { display: flex; flex-wrap: wrap; gap: 10px; }
.autres-gammes a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 99px; background: var(--blanc); border: 1px solid var(--ligne); color: var(--noir); font-weight: 700; text-decoration: none; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.autres-gammes a:hover { border-color: var(--rouge); color: var(--rouge); }
.autres-gammes a:active { transform: scale(.97); }
.autres-gammes img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------- Catalogue (nos-viandes.php) */
.famille { display: grid; gap: clamp(22px, 3vw, 48px); align-items: start; padding: clamp(26px, 3vw, 40px); border-radius: calc(var(--radius) * 1.2); background: var(--blanc); border: 1px solid var(--ligne); }
.famille + .famille { margin-top: 18px; }
.famille-photo { border-radius: 18px; overflow: hidden; }
.famille-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.famille h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 700; margin-bottom: 8px; }
.famille ul.refs-liste { columns: 2 220px; column-gap: 28px; margin: 14px 0 22px; padding-left: 1.1em; }
.famille ul.refs-liste li { margin-bottom: 6px; break-inside: avoid; }
.famille ul.refs-liste li::marker { color: var(--rouge); }
@media (min-width: 860px) { .famille { grid-template-columns: 340px 1fr; } }

/* ---------------------------------------------------------- Pages formulaire (tarification, contact) */
.page-form { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1100px) { .page-form { grid-template-columns: minmax(0, 1fr) 380px; } .page-form aside { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.aside-carte { padding: clamp(22px, 2.6vw, 32px); border-radius: calc(var(--radius) * 1.1); background: var(--creme); }
.aside-carte + .aside-carte { margin-top: 16px; }
.aside-carte h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; }
.aside-carte.sombre { background: var(--noir); color: rgba(255, 255, 255, .82); }
.aside-carte.sombre h2 { color: var(--blanc); }
.aside-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--blanc); font-weight: 700; text-decoration: none; }
.aside-contact .ico { color: #E8A1A8; }
.aside-carte .etapes li { padding: 14px 16px; background: var(--blanc); }
.aside-carte .etapes li::before { font-size: 1.2rem; }
.intro-form { margin-bottom: clamp(26px, 3vw, 40px); }
.intro-form h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 700; }

/* ---------------------------------------------------------- Valeurs (qui sommes-nous) */
.valeurs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); list-style: none; margin: 0; padding: 0; }
.valeurs li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--blanc); border: 1px solid var(--ligne); font-weight: 700; color: var(--noir); }
.valeurs .ico { color: var(--rouge); }

/* ---------------------------------------------------------- Textes légaux / plan du site */
.texte-legal h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 2.2em; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.texte-legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.texte-legal ul { padding-left: 1.2em; }
.texte-legal li { margin-bottom: .4em; }
.texte-legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .92rem; }
.texte-legal th, .texte-legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.texte-legal th { background: var(--gris-50); }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.plan ul ul { margin: 8px 0 0 18px; }

/* ---------------------------------------------------------- 404 */
.page-404 { text-align: center; padding: clamp(60px, 10vw, 140px) 0; }
.page-404 img { width: 110px; margin-bottom: 20px; }
.page-404 .boutons { justify-content: center; }

/* ---------------------------------------------------------- Mobile : jamais de débordement horizontal */
.hero-grille > *, .presentation > *, .bande > *, .rdv > *, .duo > *, .cat-intro > *, .famille > *, .page-form > * { min-width: 0; }
@media (max-width: 575px) {
  main .btn-pill { max-width: 100%; white-space: normal; height: auto; min-height: 52px; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; text-align: left; }
  main .btn-marquee-txt { white-space: normal; }
}
.texte-legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
