/* Bad Mood — site public, version « album » */
:root{
  --paper:#EFE9DC;
  --ink:#1a1714;
  --strip:#F0C6C0;
  --sheet:#fbf8f2;
  --cream:#F6F1E6;
  --red:#C8352B;
  --teal:#17788C;
  --blue:#2E5AA8;
  --olive:#B7AA4C;
  --grey:#5d574f;
  --shadow:0 1px 2px rgba(0,0,0,.10),0 3px 8px rgba(0,0,0,.06);
  --drop:drop-shadow(0 1px 1px rgba(0,0,0,.13)) drop-shadow(0 3px 6px rgba(0,0,0,.05));
  --left:128px;
  --right:64px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;position:relative;min-height:100vh;background:var(--paper);color:var(--ink);font-family:'Special Elite',ui-monospace,monospace;font-size:16px;line-height:1.6;overflow-x:hidden}
a{color:inherit}
img{max-width:100%}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
a:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ---------- les deux traits du bord gauche ---------- */
.rail{position:absolute;left:40px;top:0;bottom:0;width:12px;background:var(--ink);pointer-events:none}
.redrail{position:absolute;left:64px;top:0;bottom:0;width:3px;background:var(--red);pointer-events:none}

.wrap{max-width:1280px;margin:0 auto;padding:36px var(--right) 0 var(--left);position:relative}

/* ---------- lettres découpées ---------- */
.word{display:inline-flex;align-items:flex-end;gap:.04em;filter:var(--drop);white-space:nowrap}
.word .l{display:inline-block;line-height:.86;padding:.06em .07em 0}
.f-anton{font-family:'Anton',sans-serif;font-weight:400}
.f-archivo{font-family:'Archivo Black',sans-serif;font-weight:400}
.f-bebas{font-family:'Bebas Neue',sans-serif;font-weight:400}
.i-red{color:var(--red)}
.i-ink{color:var(--ink)}
.p-cream{background:var(--cream)}
.p-strip{background:var(--strip)}
.p-white{background:var(--sheet)}

/* ---------- en-tête ---------- */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:5}
.logo{text-decoration:none;font-size:34px;display:inline-block}
.menu{display:flex;flex-wrap:wrap;gap:12px}
.navlink{text-decoration:none;font-size:17px;letter-spacing:.08em;padding:9px 12px 7px;background:var(--strip);color:var(--ink);display:inline-block;box-shadow:0 1px 2px rgba(0,0,0,.10);transform:rotate(var(--r,0deg))}
.navlink:hover,.navlink.on{background:var(--ink);color:var(--strip)}

/* ---------- textes communs ---------- */
.pen{font-family:'Caveat',cursive;font-weight:700;font-size:30px;line-height:1;color:var(--blue);text-decoration:none;border-bottom:2px solid currentColor;display:inline-block}
.pen.big{font-size:44px;border-bottom-width:3px;transform:rotate(-3deg)}
a.pen:hover{color:var(--ink)}
.pen-note{font-family:'Caveat',cursive;font-weight:700;font-size:34px;color:var(--blue);margin:10px 0 0 60px;transform:rotate(-2deg)}
.slip{background:var(--sheet);box-shadow:var(--shadow);padding:30px 32px;font-size:17px;line-height:1.75;color:#2a2622}
.slip p{margin:0}
.slip p + p{margin-top:14px}
.intro{margin:18px 0 0 60px;font-size:17px;line-height:1.7;max-width:560px;color:#2a2622}

/* ---------- photos ---------- */
.photo{margin:0;position:relative}
.photo img{display:block;width:100%;height:auto}
.photo figcaption{font-family:'Caveat',cursive;font-size:26px;line-height:1.15;padding-top:8px;color:var(--cap,var(--ink))}
.photo.bare img{filter:var(--drop)}
.photo.framed{background:var(--bg);padding:10px 10px 8px;box-shadow:var(--shadow);isolation:isolate}
.photo.framed.multiply img{mix-blend-mode:multiply}
.photo.tilt{transform:rotate(-1.2deg)}
.photo.tilt-l{transform:rotate(-.8deg)}
.photo.tilt-r{transform:rotate(.9deg)}

/* ---------- home ---------- */
.home .hero{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px;margin-top:72px;align-items:start}
.hero-text{position:relative;z-index:2;padding-top:30px}
.tagline{margin:0 0 26px;font-size:15px;letter-spacing:.18em;color:var(--grey)}
.giant{margin:0;display:flex;flex-direction:column;gap:22px;font-weight:400}
.giant .bad{font-size:clamp(88px,14vw,190px);line-height:1}
.giant .mood{font-size:clamp(70px,11vw,150px);line-height:1;margin-left:clamp(20px,5vw,70px)}
.place{display:flex;align-items:stretch;gap:22px;margin:40px 0 0 clamp(40px,12vw,170px)}
.place span{box-shadow:0 1px 2px rgba(0,0,0,.10);line-height:1}
.place .pl{background:var(--cream);padding:4px 16px 0;font-family:'Anton',sans-serif;font-size:clamp(40px,5vw,64px);color:var(--red)}
.place .city{background:var(--sheet);padding:6px 18px 0;font-family:'Archivo',sans-serif;font-stretch:125%;font-weight:300;font-size:clamp(36px,4.6vw,60px);color:var(--grey)}
.hero-photo{position:relative;min-height:520px}
.bigM{position:absolute;right:-40px;top:-60px;font-family:'Bebas Neue',sans-serif;font-size:560px;line-height:.8;color:var(--teal);z-index:0;pointer-events:none;user-select:none}
.hero-photo .photo{z-index:1;width:82%;margin:70px 0 0 4%}

.row2{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;margin-top:120px;align-items:start}
.row2-text{display:flex;flex-direction:column;gap:40px}
.row2-text .slip{transform:rotate(-.8deg)}
.tulip-row{display:flex;align-items:flex-end;gap:28px}
.tulip-row .pen{font-size:44px;border-bottom-width:3px;transform:rotate(-4deg)}
.album{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.album .photo.wide{grid-column:1 / 3}
.album .photo{box-shadow:var(--shadow)}
.album .photo.bare{box-shadow:none}
.album-note{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:22px 26px}
.album-note .label{font-size:14px;letter-spacing:.12em;color:var(--grey)}
.album-note .hand{font-family:'Caveat',cursive;font-size:30px;line-height:1.15;color:var(--red)}

.more{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;margin:110px 0 0;align-items:start}
.more .photo{width:82%}
.more .photo:last-child{margin-top:60px;justify-self:end}

.entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:72px;margin-top:120px}
.entry{text-decoration:none;display:flex;flex-direction:column;gap:6px;padding:18px 0 20px;border-bottom:2px solid var(--blue)}
.entry .eh{font-family:'Caveat',cursive;font-weight:700;font-size:48px;line-height:1}
.entry .ed{font-size:16px;color:#2a2622}
.e1 .eh{color:var(--blue)}
.e2 .eh{color:var(--red)}
.e3 .eh{color:#2E7D4F}
.e4 .eh{color:#7A3E2B}
.entry:hover .eh{color:var(--ink)}

/* ---------- pages intérieures ---------- */
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:32px;margin-top:80px}
.page-head .clover{transform:rotate(-10deg)}
.page-head .tulip{transform:rotate(6deg)}
.ttl{margin:0;font-weight:400;font-size:clamp(76px,12vw,170px);line-height:1;display:flex;flex-wrap:wrap;align-items:flex-start;gap:0 .25em}
.ttl .quote{font-family:'Archivo Black',sans-serif;color:var(--red);font-size:.45em;line-height:1;margin:.9em -.2em 0 0}
.title-words{font-size:clamp(60px,9vw,130px);gap:.1em .3em}

.filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:56px;padding-bottom:28px;border-bottom:3px solid var(--red)}
.filter{font-family:'Special Elite',monospace;font-size:16px;letter-spacing:.1em;padding:12px 16px 10px;min-height:44px;border:2px solid var(--ink);background:transparent;color:var(--ink);cursor:pointer}
.filter:hover{background:var(--sheet)}
.filter.on{background:var(--olive);border-color:var(--olive)}
.count{margin-left:auto;font-size:15px;color:var(--grey)}

.flash-grid,.project-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 40px;margin-top:48px}
.sheet{position:relative;display:flex;flex-direction:column;background:var(--sheet);box-shadow:var(--shadow);text-decoration:none;color:inherit;transform:rotate(var(--r,0deg))}
.sheet[hidden]{display:none}
.label-strip{background:var(--olive);padding:10px 16px 8px;display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:15px;letter-spacing:.08em}
.sheet-img{position:relative;margin:16px;aspect-ratio:3/4;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}
.sheet-img img{width:100%;height:100%;object-fit:contain;display:block}
.sheet-img.cover{aspect-ratio:4/3}
.sheet-img.cover img{object-fit:cover}
.sheet.taken .sheet-img img{opacity:.5}
.stamp{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%) rotate(-14deg);border:4px solid var(--red);color:var(--red);padding:6px 18px 2px;font-family:'Anton',sans-serif;font-size:46px;letter-spacing:.08em;background:rgba(251,248,242,.6);line-height:1.1}
.sheet-foot{padding:0 16px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px}
.sheet-foot .pen{margin-left:auto}
.sheet-foot .done{font-family:'Caveat',cursive;font-size:26px;color:#8a847b;margin-left:auto}
.sheet-foot .sub{font-size:14px;color:var(--grey)}
a.sheet:hover .label-strip{background:var(--ink);color:var(--olive)}
.bottom-cta{margin-top:64px}

.form-paper{background:#fff;padding:12px;box-shadow:var(--shadow);max-width:900px;margin-top:48px}
.shop-embed{max-width:1100px;margin-top:48px}
.main > p{margin-top:40px}

.prose{max-width:720px;margin:48px 0;transform:rotate(-.4deg)}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:44px 36px;margin-bottom:48px;align-items:start}
.g-item{margin:0;background:var(--sheet);padding:10px 10px 8px;box-shadow:var(--shadow);transform:rotate(var(--r,0deg))}
.g-item img{display:block;width:100%;height:auto}
.g-item figcaption{font-family:'Caveat',cursive;font-size:24px;line-height:1.15;padding-top:6px}
.draft{background:var(--ink);color:var(--paper);display:inline-block;padding:4px 10px;font-size:12px;margin-top:40px}

/* ---------- pied de page ---------- */
.foot{position:relative;max-width:1280px;margin:140px auto 0;padding:0 var(--right) 56px var(--left)}
.bars{display:flex;gap:10px;align-items:center}
.bars span{height:34px;background:var(--ink)}
.bars span:first-child{width:18px}
.bars span:last-child{flex:0 1 520px}
.foot-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:22px;font-size:14px;letter-spacing:.06em;color:var(--grey)}
.foot-row a{color:var(--ink)}

/* ---------- tablette ---------- */
@media (max-width:1050px){
  .flash-grid,.project-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bigM{font-size:440px}
}
/* ---------- téléphone ---------- */
@media (max-width:760px){
  :root{--left:44px;--right:16px}
  .rail{left:10px;width:9px}
  .redrail{left:26px}
  .wrap{padding-top:20px}
  .menu{gap:8px}
  .navlink{font-size:14px;padding:8px 10px 6px}
  .logo{font-size:28px}
  .home .hero,.row2,.entries,.more{grid-template-columns:1fr}
  .home .hero{margin-top:40px;gap:10px}
  .hero-text{padding-top:0}
  .hero-photo{min-height:0}
  .hero-photo .photo{width:88%;margin:40px 0 0 6%}
  .bigM{font-size:340px;right:0;top:-20px}
  .row2{margin-top:80px;gap:44px}
  .more{gap:40px;margin-top:70px}
  .more .photo,.more .photo:last-child{width:88%;margin-top:0}
  .more .photo:last-child{justify-self:end}
  .place{margin-left:24px;gap:12px}
  .place .city{font-size:30px}
  .place .pl{font-size:34px}
  .entries{margin-top:80px}
  .entry .eh{font-size:40px}
  .tulip-row{gap:18px}
  .tulip-row .pen{font-size:32px;white-space:nowrap}
  .page-head{margin-top:50px}
  .page-head svg{display:none}
  .intro,.pen-note{margin-left:0}
  .flash-grid,.project-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
  .sheet-img{margin:10px}
  .label-strip{padding:8px 10px 6px;font-size:13px;flex-wrap:wrap}
  .sheet-foot{padding:0 10px 12px}
  .sheet-foot .pen{font-size:24px}
  .stamp{font-size:26px;border-width:3px}
  .slip{padding:22px 20px;font-size:16px}
  .foot{margin-top:100px}
}
@media (max-width:420px){
  .flash-grid,.project-list{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
