:root {
  --creme: #FBF5EC;
  --papier: #FFFDF9;
  --encre: #2F2925;
  --doux: #6E625A;
  --terre: #B8573D;
  --terre-fonce: #93412C;
  --sauge: #5F7F63;
  --rose: #F3DCD2;
  --teinte: #F4EADC;
  --ligne: #E6D9C8;
  --rayon: 18px;
  --ombre: 0 1px 2px rgba(47, 41, 37, .06), 0 8px 24px rgba(47, 41, 37, .07);
  --titre: "Fraunces", Georgia, serif;
  --texte: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 17px/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--terre-fonce); }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 3px; border-radius: 6px; }

.bandeau { margin: 0; padding: 8px 16px; background: var(--encre); color: var(--creme); font-size: .85rem; text-align: center; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(251, 245, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-family: var(--titre); font-weight: 700; line-height: 1.05; font-size: 1.05rem; }
.marque em { font-style: italic; font-weight: 500; color: var(--terre); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--terre); }
.bouton-panier { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--papier); cursor: pointer; }
.bouton-panier svg { width: 22px; height: 22px; fill: none; stroke: var(--encre); stroke-width: 1.8; }
.pastille { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--terre); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.pastille[data-vide] { display: none; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--terre); color: #fff; font: 700 1rem var(--texte); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.bouton:hover { background: var(--terre-fonce); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { background: #c9bcae; cursor: not-allowed; }
.bouton-clair { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton-clair:hover { background: var(--encre); color: var(--creme); }
.bouton-large { width: 100%; }
.bouton-petit { padding: 9px 16px; font-size: .92rem; }

/* Accroche */
.accroche { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 48px) clamp(32px, 6vw, 72px); max-width: 1200px; margin: 0 auto; }
.surtitre { margin: 0 0 14px; color: var(--sauge); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.chapo { font-size: 1.15rem; color: var(--doux); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.accroche-motif svg { width: 100%; max-width: 320px; margin-left: auto; fill: var(--rose); stroke: var(--terre); stroke-width: 3; stroke-linecap: round; }
.accroche-motif .fil { fill: none; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); }
.section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-teinte { background: var(--teinte); }
.section-tete { margin-bottom: 28px; }
.section-tete p { color: var(--doux); max-width: 46em; margin: 0; }
.section-tete .note { margin-top: 8px; color: var(--sauge); font-weight: 600; }
.chargement { color: var(--doux); }

/* Créations */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filtre { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--papier); font: 600 .9rem var(--texte); color: var(--encre); cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--creme); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.carte { display: flex; flex-direction: column; background: var(--papier); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.visuel { aspect-ratio: 4 / 3; background: var(--rose); display: grid; place-items: center; }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel svg { width: 38%; fill: none; stroke: var(--terre); stroke-width: 2.2; stroke-linecap: round; opacity: .7; }
.visuel[data-teinte="1"] { background: #E3EADF; } .visuel[data-teinte="1"] svg { stroke: var(--sauge); }
.visuel[data-teinte="2"] { background: #F1E4CF; } .visuel[data-teinte="2"] svg { stroke: #A0782F; }
.visuel[data-teinte="3"] { background: #E6E1EE; } .visuel[data-teinte="3"] svg { stroke: #6F6290; }
.carte-corps { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.carte-corps h3 { margin: 0; }
.carte-corps p { margin: 0; color: var(--doux); font-size: .95rem; }
.dispo { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #E1ECE2; color: #3F6145; }
.dispo.commande { background: #F6E6D3; color: #8A5A1F; }
.carte-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.prix { font-family: var(--titre); font-size: 1.35rem; font-weight: 700; }

/* Ateliers */
.liste-ateliers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.atelier { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px; background: var(--papier); border-radius: var(--rayon); box-shadow: var(--ombre); }
.calendrier { width: 64px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--ligne); align-self: start; }
.calendrier span { display: block; background: var(--terre); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 3px 0; }
.calendrier b { display: block; font-family: var(--titre); font-size: 1.7rem; line-height: 1.3; }
.calendrier small { display: block; font-size: .7rem; color: var(--doux); padding-bottom: 4px; text-transform: capitalize; }
.atelier h3 { margin: 0 0 2px; }
.atelier .infos { margin: 0 0 10px; color: var(--doux); font-size: .93rem; }
.places { display: flex; gap: 4px; align-items: center; font-size: .85rem; color: var(--doux); margin-bottom: 12px; }
.places i { width: 11px; height: 11px; border-radius: 50%; background: var(--sauge); }
.places i.prise { background: var(--ligne); }
.reserver { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reserver select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--ligne); font: 600 .92rem var(--texte); background: var(--papier); color: var(--encre); }
.complet { color: var(--terre-fonce); font-weight: 700; }
.vide { padding: 22px; border: 1.5px dashed var(--ligne); border-radius: var(--rayon); color: var(--doux); background: var(--papier); }

/* Sur mesure */
.sur-mesure { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; display: grid; gap: 18px; }
.etapes li { counter-increment: e; position: relative; padding-left: 52px; color: var(--doux); }
.etapes li b { display: block; color: var(--encre); }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--rose); color: var(--terre-fonce); font: 700 1.05rem var(--titre); display: grid; place-items: center; }
.formulaire { display: grid; gap: 14px; background: var(--papier); padding: clamp(18px, 3vw, 30px); border-radius: var(--rayon); box-shadow: var(--ombre); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 700; font-size: .9rem; }
.champ input, .champ textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--creme); font: 1rem var(--texte); color: var(--encre); }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--terre); border-color: transparent; }
.champ [aria-invalid="true"] { border-color: var(--terre); background: #FBEDE7; }
.piege { position: absolute; left: -9999px; }
.message { margin: 0; font-weight: 600; min-height: 1.2em; }
.message.ok { color: var(--sauge); }
.message.erreur { color: var(--terre-fonce); }

.apropos { text-align: center; }
.apropos p { color: var(--doux); max-width: 36em; }

/* Pied de page */
.pied { padding: 32px clamp(16px, 4vw, 48px); border-top: 1px solid var(--ligne); text-align: center; color: var(--doux); font-size: .92rem; }
.pied p { margin: 4px 0; }
.liens-pied { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* Panier */
.panier { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--papier); color: var(--encre); display: none; flex-direction: column; }
.panier[open] { display: flex; animation: glisse .22s ease-out; }
.panier::backdrop { background: rgba(47, 41, 37, .45); }
@keyframes glisse { from { transform: translateX(30px); opacity: 0; } }
.panier-tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--ligne); }
.panier-tete h2 { font-size: 1.5rem; margin: 0; }
.fermer { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ligne); background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--encre); }
.panier-lignes { flex: 1; overflow-y: auto; padding: 8px 20px; }
.ligne { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.ligne b { font-weight: 700; }
.ligne small { color: var(--doux); grid-column: 1; }
.ligne .montant { font-weight: 700; text-align: right; }
.quantite { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
.quantite button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--creme); cursor: pointer; font-size: 1rem; color: var(--encre); }
.quantite .retirer { width: auto; border: 0; background: none; color: var(--doux); text-decoration: underline; font-size: .85rem; margin-left: auto; }
.panier-pied { padding: 16px 20px 20px; border-top: 1px solid var(--ligne); display: grid; gap: 14px; background: var(--creme); }
.panier-pied[hidden] { display: none; }
.livraison { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.livraison legend { font-weight: 700; margin-bottom: 6px; }
.livraison label { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--papier); cursor: pointer; }
.livraison label:has(input:checked) { border-color: var(--terre); box-shadow: inset 0 0 0 1px var(--terre); }
.livraison input { accent-color: var(--terre); margin-top: 5px; }
.livraison small { grid-column: 2; color: var(--doux); font-size: .84rem; }
.totaux { margin: 0; display: grid; gap: 4px; }
.totaux div { display: flex; justify-content: space-between; }
.totaux dd { margin: 0; font-weight: 600; }
.totaux .total { font-size: 1.15rem; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--ligne); }
.rassurance { margin: 0; font-size: .8rem; color: var(--doux); text-align: center; }
.panier-vide { padding: 40px 0; text-align: center; color: var(--doux); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--encre); color: var(--creme); padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Pages de texte (CGV, mentions, merci) */
.page-texte { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) 16px; }
.page-texte h2 { font-size: 1.4rem; margin-top: 1.6em; }
.page-texte p, .page-texte li { color: #463d37; }
.a-completer { background: #FFF1C9; padding: 0 4px; border-radius: 4px; }
.merci { text-align: center; }
.merci svg { width: 84px; margin: 0 auto 18px; }

@media (max-width: 860px) {
  .accroche { grid-template-columns: 1fr; }
  .accroche-motif { display: none; }
  .sur-mesure { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .menu { display: none; }
  .bouton-panier { margin-left: auto; }
  .deux { grid-template-columns: 1fr; }
  .grille { grid-template-columns: 1fr 1fr; gap: 12px; }
  .carte-corps { padding: 12px; }
  .carte-corps p { display: none; }
  .carte-bas { flex-direction: column; align-items: stretch; }
  .prix { font-size: 1.15rem; }
}
@media (max-width: 360px) { .grille { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
