/* Étiquette Artisan : l'atelier de quartier. Papier kraft, encre, tampon rouge. */
@font-face { font-family: 'Young Serif'; src: url('polices/young-serif-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('polices/karla-variable.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('polices/caveat-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --kraft: #E9DCC3; --kraft-fonce: #CDB089; --kraft-ombre: #B8976C;
  --papier: #FBF8F1; --encre: #26211B; --encre-2: #4A4238; --gris: #75695A;
  --rouge: #B43A23; --rouge-pale: rgba(180, 58, 35, .12);
  --ardoise: #2E3431; --craie: #F1EEE6;
  --titre: 'Young Serif', Georgia, 'Times New Roman', serif;
  --texte: 'Karla', 'Trebuchet MS', sans-serif;
  --main: 'Caveat', 'Comic Sans MS', cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--texte); font-size: 18px; line-height: 1.6; color: var(--encre);
  background: var(--kraft) var(--grain); }
a { color: var(--rouge); text-underline-offset: 3px; }
.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
.main { font-family: var(--main); font-weight: 600; }

/* ----- en-tête ----- */
.haut { border-bottom: 1.5px solid var(--encre); }
.haut .conteneur { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
.marque { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none; font-family: var(--titre); font-size: 24px; }
.marque svg { width: 34px; height: 34px; flex: none; }
.haut nav { display: flex; align-items: center; gap: 26px; }
.haut nav a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: 16px; }
.haut nav a:not(.btn):hover { text-decoration: underline; }
.haut nav a.btn { color: var(--papier); }

/* ----- boutons : comme un tampon encreur, pas une pilule ----- */
.btn { display: inline-block; font-family: var(--texte); font-weight: 700; font-size: 17px; text-decoration: none; padding: 14px 24px;
  background: var(--encre); color: var(--papier); border: 2px solid var(--encre); box-shadow: 4px 4px 0 var(--rouge); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rouge); }
.btn-petit { padding: 9px 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--rouge); }
.lien-fleche { font-weight: 700; color: var(--encre); text-decoration: underline; text-decoration-thickness: 1.5px; }

/* ----- ouverture ----- */
.ouverture { padding: 64px 0 40px; }
.ouverture .conteneur { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.pour-qui { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.pour-qui::before { content: ''; width: 34px; height: 2px; background: var(--rouge); }
h1 { font-size: clamp(40px, 5.6vw, 66px); margin-bottom: 24px; }
h1 .souligne { background: linear-gradient(transparent 68%, rgba(180, 58, 35, .28) 68% 92%, transparent 92%); }
.chapo { font-size: 20px; color: var(--encre-2); max-width: 540px; margin: 0 0 30px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.note-main { font-family: var(--main); font-size: 26px; color: var(--rouge); margin: 22px 0 0 6px; display: flex; align-items: flex-start; gap: 8px; transform: rotate(-2deg); }
.note-main svg { width: 46px; height: 34px; flex: none; margin-top: -10px; }

/* l'étiquette à ficelle */
.suspension { position: relative; padding-top: 0; display: flex; justify-content: center; }
.ficelle { position: absolute; top: -64px; left: 50%; width: 120px; height: 120px; transform: translateX(-50%); pointer-events: none; }
.tag { position: relative; width: min(390px, 100%); margin-top: 40px; padding: 46px 18px 22px; background: var(--kraft-fonce) var(--grain);
  clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); filter: drop-shadow(0 14px 18px rgba(60, 40, 20, .28));
  transform-origin: 50% -40px; animation: balance 1.6s cubic-bezier(.3, 1.6, .5, 1) both; }
.tag::before { content: ''; position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--kraft); box-shadow: 0 0 0 4px #F3E9D6, inset 0 2px 3px rgba(0, 0, 0, .3); }
@keyframes balance { 0% { transform: rotate(-9deg); } 100% { transform: rotate(-2deg); } }
.etiquette { font-family: Arial, Helvetica, sans-serif; color: #000; background: #fff; padding: 14px 15px 12px; font-size: 11.6px; line-height: 1.3; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.etiquette .e-nom { font-weight: 700; font-size: 17px; margin-bottom: 5px; }
.etiquette p { margin: 0 0 5px; }
.etiquette table { width: 100%; border-collapse: collapse; margin: 3px 0 6px; }
.etiquette th, .etiquette td { border-bottom: 1px solid #000; padding: 1.5px 0; text-align: left; font-weight: 400; }
.etiquette th { font-weight: 700; }
.etiquette td:last-child, .etiquette th:last-child { text-align: right; }
.etiquette .sous { padding-left: 10px; }
.etiquette .e-bas { display: flex; justify-content: space-between; font-weight: 700; }
.etiquette .e-ent { font-size: 10px; margin-top: 3px; }
.tampon { position: absolute; right: -6px; bottom: -58px; width: 132px; height: 132px; color: var(--rouge); opacity: .86; mix-blend-mode: multiply;
  transform: rotate(-14deg); animation: tampon .5s .9s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes tampon { 0% { opacity: 0; transform: rotate(-14deg) scale(1.6); } 100% { opacity: .86; transform: rotate(-14deg) scale(1); } }

/* ----- sections ----- */
section { padding: 72px 0; }
.titre-section { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.intro { font-size: 19px; color: var(--encre-2); max-width: 640px; margin: 0 0 36px; }

/* fiche recette */
.fiche { position: relative; background: var(--papier) var(--grain); padding: 44px 48px 38px 92px; box-shadow: 0 2px 0 var(--kraft-ombre), 0 18px 30px -18px rgba(60, 40, 20, .45);
  background-image: var(--grain), repeating-linear-gradient(transparent 0 35px, rgba(70, 110, 160, .22) 35px 36px); transform: rotate(-.4deg); }
.fiche::before { content: ''; position: absolute; top: 0; bottom: 0; left: 64px; width: 2px; background: rgba(180, 58, 35, .45); }
.fiche::after { content: ''; position: absolute; top: -14px; left: 46%; width: 120px; height: 30px; background: rgba(240, 228, 196, .75); transform: rotate(3deg); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.fiche h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 6px; }
.fiche .temps { font-family: var(--main); font-size: 25px; color: var(--rouge); margin: 0 0 26px; }
.fiche-cols { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; }
.fiche h3 { font-family: var(--texte); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); margin-bottom: 10px; }
.fiche ul { margin: 0; padding: 0; list-style: none; }
.fiche ul li { padding: 0 0 0 22px; position: relative; line-height: 36px; }
.fiche ul li::before { content: '–'; position: absolute; left: 0; color: var(--rouge); font-weight: 700; }
.fiche ol { margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.fiche ol li { counter-increment: etape; position: relative; padding-left: 50px; margin-bottom: 18px; line-height: 1.55; }
.fiche ol li::before { content: counter(etape); position: absolute; left: 0; top: -6px; font-family: var(--titre); font-size: 34px; color: var(--rouge); }
.fiche ol strong { display: block; }

/* anatomie de l'étiquette */
.anatomie { display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: start; }
.anatomie .etiquette { font-size: 13px; padding: 20px 22px 16px; position: relative; transform: rotate(1deg); box-shadow: 0 16px 30px -14px rgba(60, 40, 20, .5); }
.anatomie .etiquette .e-nom { font-size: 20px; }
.repere { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rouge); color: #fff;
  font: 700 12px/1 var(--texte); vertical-align: 2px; margin-right: 4px; }
.etiquette .repere { position: absolute; left: -11px; margin: 0; }
.legende { list-style: none; margin: 0; padding: 0; }
.legende li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1.5px dotted var(--kraft-ombre); }
.legende li:last-child { border-bottom: none; }
.legende .repere { margin-top: 3px; }
.legende b { font-weight: 700; }
.legende span.txt { color: var(--encre-2); }

/* ardoise */
.ardoise { background: var(--ardoise); color: var(--craie); padding: 46px 48px; position: relative;
  border: 14px solid #8A6A45; box-shadow: inset 0 0 60px rgba(0,0,0,.45), 0 20px 30px -16px rgba(40, 25, 10, .6);
  background-image: var(--grain); display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.ardoise h2 { font-family: var(--main); font-size: clamp(40px, 4.6vw, 54px); line-height: 1; margin-bottom: 14px; color: #fff; }
.ardoise p { color: #D9D6CC; margin: 0 0 14px; }
.ardoise .btn { background: var(--craie); color: var(--ardoise); border-color: var(--craie); }
.craie-table { width: 100%; border-collapse: collapse; font-family: var(--main); font-size: 23px; color: #fff; }
.craie-table th { font-weight: 600; font-size: 18px; padding: 4px 6px; border-bottom: 2px solid rgba(255,255,255,.55); text-align: center; color: #E8E3D6; }
.craie-table th:first-child { text-align: left; }
.craie-table td { padding: 6px; border-bottom: 1px dashed rgba(255,255,255,.25); text-align: center; }
.craie-table td:first-child { text-align: left; }
.rond { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #F2B8A8; }
.rond.trace { background: transparent; border: 2.5px solid #F2D27A; }

/* d'où viennent les chiffres + mot */
.deux-cols { display: grid; grid-template-columns: 1.2fr .8fr; gap: 54px; align-items: start; }
.deux-cols p { margin: 0 0 16px; color: var(--encre-2); }
.lettrine::first-letter { font-family: var(--titre); float: left; font-size: 66px; line-height: .9; padding: 6px 10px 0 0; color: var(--rouge); }
.mot { background: var(--papier) var(--grain); padding: 30px 30px 24px; transform: rotate(1.4deg); box-shadow: 0 16px 26px -16px rgba(60, 40, 20, .55); position: relative; }
.mot::before { content: ''; position: absolute; top: -12px; right: 30px; width: 90px; height: 26px; background: rgba(240, 228, 196, .8); transform: rotate(-4deg); }
.mot h3 { font-family: var(--texte); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); margin-bottom: 12px; }
.mot p { font-size: 17px; }
.mot .signature { font-family: var(--main); font-size: 40px; color: var(--encre); margin: 6px 0 0; line-height: 1; }
.mot .signature small { display: block; font-family: var(--texte); font-size: 14px; color: var(--gris); margin-top: 6px; }

/* bon à savoir */
.faq { max-width: 820px; }
.faq details { border-bottom: 1.5px dotted var(--kraft-ombre); }
.faq details:first-of-type { border-top: 1.5px solid var(--encre); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--titre); font-size: 21px; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-family: var(--texte); font-size: 30px; color: var(--rouge); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--encre-2); max-width: 700px; }

/* bon d'essai */
.bon { position: relative; background: var(--papier) var(--grain); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 40px 48px; border: 2px dashed var(--encre); outline: 10px solid var(--papier); margin: 10px; }
.bon h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 8px; }
.bon p { margin: 0; color: var(--encre-2); }
.ciseaux { position: absolute; top: -17px; left: 40px; background: var(--kraft); padding: 0 6px; font-size: 20px; color: var(--encre); }

/* pied */
.pied { border-top: 1.5px solid var(--encre); padding: 28px 0 40px; font-size: 15px; color: var(--encre-2); }
.pied .conteneur { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pied a { color: var(--encre-2); margin-right: 18px; }
.pied .marque { font-size: 18px; }

/* pages de texte (légal) */
.texte { max-width: 760px; padding: 52px 28px 80px; margin: 0 auto; }
.texte h1 { font-size: 40px; margin-bottom: 8px; }
.texte h2 { font-size: 24px; margin: 34px 0 10px; }
.texte p, .texte li { color: var(--encre-2); }
.texte .maj { color: var(--gris); font-size: 15px; }
/* guides */
.guide .fil { font-size: 14px; color: var(--gris); margin-bottom: 18px; }
.guide .fil a { color: var(--gris); }
.guide h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.guide .chapo { max-width: none; margin: 26px 0 8px; }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin-bottom: 8px; }
.guide .colonnes { columns: 2 260px; column-gap: 34px; }
.guide .colonnes li { break-inside: avoid; }
.guide .encart { margin: 44px 0 10px; padding: 28px 30px 30px; background: var(--papier) var(--grain); border-left: 4px solid var(--rouge); box-shadow: 0 16px 26px -18px rgba(60, 40, 20, .5); }
.guide .encart h2 { margin-top: 0; }
.guide .encart p { margin-bottom: 18px; }
.guide .sources li { font-size: 15px; }
.guide .avertissement { font-size: 15px; color: var(--gris); border-top: 1px solid var(--trait, #DDCDB2); padding-top: 16px; margin-top: 24px; }

/* apparition au défilement */
.revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tag, .tampon { animation: none; }
  .revele { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .ouverture .conteneur, .fiche-cols, .anatomie, .ardoise, .deux-cols { grid-template-columns: 1fr; gap: 34px; }
  .haut nav a:not(.btn) { display: none; }
  .suspension { margin-top: 30px; }
  .fiche { padding: 40px 26px 30px 54px; }
  .fiche::before { left: 34px; }
  .bon { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .conteneur { padding: 0 18px; }
  .ouverture { padding: 40px 0 24px; }
  .haut .conteneur { height: 64px; }
  .marque { font-size: 19px; white-space: nowrap; gap: 8px; }
  .marque svg { width: 28px; height: 28px; }
  .haut nav a.btn { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .note-main { font-size: 22px; }
  section { padding: 52px 0; }
  .ardoise { padding: 30px 22px; border-width: 10px; }
  .tampon { width: 104px; height: 104px; right: -4px; bottom: -48px; }
  .bon { padding: 32px 22px; }
}
.guides-liens { color: var(--encre-2); margin: -8px 0 26px; }
