/* Styles partagés par toutes les pages — Ferme Nordik Mirabel.
   Visuel : référence du propriétaire + images et polices de ChatGPT. Code : Claude. */
:root{
  --cream:#F5EFE3; --cream-light:#FFF9F0; --kraft:#EFE5D7; --brown:#7A5A43; --brown-dark:#43291D;
  --forest:#314235; --forest-dark:#1F3B2C; --green:#164B32; --turq:#5DA7A2; --red:#A83232;
  --gold:#C5A477; --sand:#D8C4A8;
  --script:"Caveat", cursive; --title:"DM Serif Display", Georgia, serif; --body:"Source Sans 3", Arial, sans-serif;
  --max:1280px; --gut:28px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--cream);color:var(--brown-dark);font-family:var(--body);font-size:16px;line-height:1.5}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
h1,h2,h3{font-family:var(--title);font-weight:400;line-height:1.1;color:var(--brown-dark)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
.script{font-family:var(--script);font-weight:700;line-height:1}
.fl{display:inline-block;margin-left:6px}
[id]{scroll-margin-top:90px}

/* Boutons */
.btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;font-family:var(--body);font-weight:700;font-size:15px;
  border-radius:999px;padding:11px 24px;border:none;cursor:pointer;transition:transform .18s ease,background .18s ease,box-shadow .18s ease;white-space:nowrap}
.btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(22,75,50,.25)}
.btn:focus-visible{outline:3px solid var(--turq);outline-offset:3px}
.btn-vert{background:var(--green);color:#fff}
.btn-vert:hover{background:#0f3a26}
.btn-rouge{background:var(--red);color:#fff}
.btn-rouge:hover{background:#8b2828}
.btn-turq{background:var(--turq);color:#fff}
.btn-turq:hover{background:#4a8f8a}
.btn-contour{background:transparent;color:var(--green);box-shadow:inset 0 0 0 2px var(--green)}
.btn-petit{font-size:12.5px;padding:7px 16px}

/* Titres de section avec ornements */
.titre-sec{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:22px;text-align:center}
.titre-sec h2{font-size:clamp(26px,3vw,34px)}
.titre-sec::before,.titre-sec::after{content:"";height:1px;width:90px;background:var(--brown);opacity:.45}
.sapins-mini{display:block;margin:0 auto 4px;width:44px;color:var(--forest)}

/* En-tête */
header{position:sticky;top:0;z-index:60;background:rgba(255,249,240,.97);box-shadow:0 2px 14px rgba(67,41,29,.08)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:20px}
.logo{position:relative;width:210px;height:64px;flex-shrink:0}
.logo img{position:absolute;top:4px;left:0;width:170px;height:auto;filter:drop-shadow(0 4px 8px rgba(67,41,29,.25));transition:width .25s ease,top .25s ease}
header.reduit .logo img{width:62px;top:1px}
.menu{display:flex;gap:30px;list-style:none;font-weight:600;font-size:15px;align-items:center}
.menu > li{position:relative}
.menu > li > a{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:2px solid transparent}
.menu > li > a:hover,.menu > li > a.actif{color:var(--green);border-bottom-color:var(--turq)}
.pastille{background:var(--turq);color:#fff;font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px}
.chev{width:10px;height:10px}
.sous{position:absolute;top:calc(100% + 8px);left:-16px;background:var(--cream-light);border:1px solid var(--sand);border-radius:10px;box-shadow:0 12px 28px rgba(67,41,29,.14);list-style:none;padding:8px 0;min-width:250px;display:none}
.sous::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px}
.sous a{display:block;padding:8px 18px;font-weight:400}
.sous a:hover{background:var(--cream);color:var(--green)}
.menu > li:hover .sous,.menu > li:focus-within .sous{display:block}
.icones{display:flex;gap:6px;align-items:center}
.ico{background:none;border:none;cursor:pointer;color:var(--brown-dark);padding:8px;position:relative;display:flex}
.ico svg{width:24px;height:24px}
.compte{position:absolute;top:2px;right:0;background:var(--brown-dark);color:#fff;font-size:10px;font-weight:700;border-radius:999px;min-width:17px;height:17px;display:flex;align-items:center;justify-content:center}
.burger{display:none}

/* Cartes produits */
.grille-prod{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.grille-prod.g4{grid-template-columns:repeat(4,1fr);gap:22px}
.grille-prod.g3{grid-template-columns:repeat(3,1fr);gap:24px}
.carte-prod{background:var(--cream-light);border-radius:12px;overflow:hidden;box-shadow:0 4px 16px rgba(67,41,29,.10);display:flex;flex-direction:column;text-align:center;position:relative;transition:transform .2s ease,box-shadow .2s ease}
.carte-prod:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(67,41,29,.18)}
.carte-prod .img{aspect-ratio:1/1;overflow:hidden;background:var(--kraft)}
.carte-prod .img img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.carte-prod:hover .img img{transform:scale(1.05)}
.badge{position:absolute;top:10px;left:10px;background:var(--green);color:#fff;font-size:11px;font-weight:700;padding:3px 9px;border-radius:6px;z-index:1}
.badge.rouge{background:var(--red)}
.badge.turq{background:var(--turq)}
.carte-prod .corps{padding:10px 10px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.carte-prod h3{font-family:var(--body);font-size:14.5px;font-weight:700;line-height:1.25}
.carte-prod .desc{font-size:13.5px;line-height:1.4;color:var(--brown);flex:1}
.carte-prod .contenu-coffret{font-size:13.5px;text-align:left;list-style:none;margin:4px 0;flex:1}
.carte-prod .contenu-coffret li{padding:3px 0 3px 20px;position:relative}
.carte-prod .contenu-coffret li::before{content:"✦";position:absolute;left:2px;color:var(--red);font-size:11px;top:5px}
.prix{font-weight:700;font-size:15px}
.prix s{font-weight:400;color:var(--brown);margin-right:6px;font-size:13px}
.ajout{margin-top:6px;align-self:center}
.g4 .carte-prod .corps,.g3 .carte-prod .corps{padding:14px 16px 18px;gap:6px}
.g4 .carte-prod h3,.g3 .carte-prod h3{font-size:16px}
.g3 .carte-prod h3{font-family:var(--title);font-weight:400;font-size:24px}

/* Bandeau de page (pages intérieures) */
.bandeau{position:relative;min-height:340px;display:flex;align-items:flex-end;background:var(--kraft) center/cover no-repeat;overflow:hidden}
.bandeau::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(245,239,227,.96) 0%,rgba(245,239,227,.85) 34%,rgba(245,239,227,.2) 62%,rgba(245,239,227,0) 80%)}
.bandeau .wrap{position:relative;z-index:2;width:100%;padding-top:110px;padding-bottom:44px}
.bandeau .txt{max-width:520px}
.bandeau h1{font-size:clamp(36px,4.4vw,54px);color:#5A2E1A}
.bandeau .accroche{font-size:clamp(30px,3.4vw,42px);color:var(--green);margin:6px 0 12px;transform:rotate(-1.5deg);transform-origin:left}
.bandeau p{font-size:17px}
.fil{font-size:13px;color:var(--brown);margin-bottom:10px}
.fil a{text-decoration:underline}
.section{padding:44px 0}
.intro{max-width:760px;margin:0 auto 28px;text-align:center;font-size:17px}
.note-prix{max-width:760px;margin:22px auto 0;text-align:center;font-size:13.5px;color:var(--brown)}

/* Pied de page */
footer{background:#18301F;color:var(--sand);font-size:13.5px;padding:26px 0 18px}
.pied{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px}
footer h4{font-family:var(--title);font-weight:400;color:var(--cream);font-size:17px;margin-bottom:8px}
footer ul{list-style:none;display:flex;flex-direction:column;gap:6px}
footer a:hover{color:var(--cream-light)}
.copy{border-top:1px solid rgba(255,255,255,.12);margin-top:18px;padding-top:12px;font-size:12.5px;text-align:center}

/* Panier */
.voile{position:fixed;inset:0;background:rgba(43,38,34,.45);opacity:0;pointer-events:none;transition:.25s;z-index:90}
.tiroir{position:fixed;top:0;right:0;height:100%;width:min(400px,100%);background:var(--cream-light);z-index:100;transform:translateX(100%);transition:.3s;display:flex;flex-direction:column;box-shadow:-8px 0 30px rgba(67,41,29,.15)}
.panier-ouvert .voile{opacity:1;pointer-events:auto}
.panier-ouvert .tiroir{transform:none}
.t-tete{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--sand)}
.t-tete h3{font-size:24px}
.fermer{background:none;border:none;font-size:28px;cursor:pointer;color:var(--brown-dark)}
.lignes{flex:1;overflow:auto;padding:6px 20px}
.ligne{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--sand);font-size:14px}
.ligne img{width:56px;height:56px;border-radius:8px;object-fit:cover}
.ligne .info{flex:1}
.qte{display:flex;align-items:center;gap:8px}
.qte button{width:26px;height:26px;border-radius:6px;border:1px solid var(--brown);background:none;cursor:pointer}
.vide{text-align:center;margin-top:40px;color:var(--brown)}
.t-pied{padding:16px 20px;border-top:1px solid var(--sand)}
.total{display:flex;justify-content:space-between;font-weight:700;font-size:18px}
.taxes{font-size:12.5px;color:var(--brown);margin:4px 0 12px}
.taxes a{text-decoration:underline}
.t-pied .btn{width:100%}
.note{font-size:12.5px;color:var(--brown);text-align:center;margin-top:8px}

/* Tablette */
@media (max-width:1150px){
  .grille-prod{grid-template-columns:repeat(3,1fr)}
  .grille-prod.g4{grid-template-columns:repeat(2,1fr)}
}
/* Cellulaire */
@media (max-width:860px){
  :root{--gut:16px}
  .nav{height:60px}
  .logo{width:120px;height:60px}
  .logo img{width:118px;top:4px}
  .menu{display:none;position:absolute;top:60px;left:0;right:0;background:var(--cream-light);flex-direction:column;align-items:stretch;gap:0;padding:6px 16px 16px;box-shadow:0 10px 20px rgba(67,41,29,.1);max-height:calc(100vh - 60px);overflow:auto}
  .menu.ouvert{display:flex}
  .menu > li{padding:10px 0;border-bottom:1px solid var(--sand)}
  .sous{position:static;display:block;border:none;box-shadow:none;background:none;padding:4px 0 0 12px;min-width:0}
  .sous a{padding:4px 0}
  .burger{display:flex}
  .compte-ico{display:none}
  .grille-prod,.grille-prod.g4{grid-template-columns:1fr 1fr;gap:12px}
  .grille-prod.g3{grid-template-columns:1fr;gap:18px}
  .g4 .carte-prod .corps{padding:10px 10px 12px}
  .titre-sec::before,.titre-sec::after{width:30px}
  .bandeau{min-height:0;background-position:70% center}
  .bandeau::before{background:linear-gradient(180deg,rgba(245,239,227,.25) 0%,rgba(245,239,227,.9) 55%,var(--cream) 100%)}
  .bandeau .wrap{padding-top:170px;padding-bottom:26px}
  .section{padding:30px 0}
  .pied{grid-template-columns:1fr 1fr}
}
@media (max-width:480px){ .pied{grid-template-columns:1fr} }
@media (prefers-reduced-motion:reduce){ .btn,.carte-prod,.carte-prod .img img{transition:none} html{scroll-behavior:auto} }
