/* Les Chemins de l'Encre — identité "bureau d'épreuves" */

@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;
  src:url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;
  src:url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:500;font-display:swap;
  src:url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:600;font-display:swap;
  src:url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2")}

:root{
  --encre:#101828;
  --encre-40:rgba(16,24,40,.62);
  --indigo:#3B5BDB;
  --papier:#ECEBE8;
  --rose:#E7C6D0;
  --blanc:#FFFFFF;
  --line:rgba(16,24,40,.14);
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sans:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--papier);color:var(--encre);font:400 16px/1.6 var(--sans)}
::selection{background:var(--indigo);color:#fff}
a{color:inherit}
img{max-width:100%;display:block}

.page{max-width:1180px;margin:0 auto;padding:0 clamp(1.25rem,4vw,3rem)}

a:focus-visible,button:focus-visible{outline:2.5px solid var(--indigo);outline-offset:3px}

/* ---------- Hero ---------- */
.hero{position:relative;padding:clamp(3rem,8vw,5.5rem) 0 clamp(2.5rem,6vw,4rem)}
.hero-blot{position:absolute;left:clamp(-4rem,-6vw,-1rem);top:-3.5rem;width:min(42rem,72vw);height:auto;z-index:0;pointer-events:none}
.hero-blot .b1{fill:var(--indigo);opacity:.14}
.hero-blot .b2{fill:var(--rose);opacity:.55;mix-blend-mode:multiply}

.hero-inner{position:relative;z-index:1;max-width:46rem}
.legend{font:italic 500 1.05rem/1.3 var(--serif);color:var(--indigo);margin:0 0 .6rem}
.legend b{font-style:normal;font-weight:600;color:var(--encre)}

h1.title{font:500 clamp(2.6rem,5.4vw,4.6rem)/1.04 var(--serif);margin:0 0 1.1rem;letter-spacing:-.01em}

.intro{font:400 1.12rem/1.65 var(--sans);color:var(--encre-40);max-width:58ch;margin:0}

/* ---------- Feuillets ---------- */
.feuillets{list-style:none;margin:clamp(3rem,6vw,4.5rem) 0 0;padding:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.6rem,3vw,2.4rem) clamp(1.4rem,3vw,2rem)}

.feuillet{position:relative}
.feuillet:nth-child(1){transform:rotate(-1.6deg) translateY(0)}
.feuillet:nth-child(2){transform:rotate(1.1deg) translateY(1.6rem)}
.feuillet:nth-child(3){transform:rotate(-0.7deg) translateY(-.6rem)}

.feuillet-card{display:block;height:100%;background:var(--blanc);color:inherit;
  border:1px solid var(--line);
  box-shadow:.4rem .55rem 0 rgba(16,24,40,.07), 0 1px 0 rgba(16,24,40,.04);
  transition:transform .28s ease, box-shadow .28s ease;
}
.feuillet-card:hover,.feuillet-card:focus-within{transform:translateY(-.35rem);
  box-shadow:.55rem .75rem 0 rgba(16,24,40,.1), 0 1px 0 rgba(16,24,40,.04)}

.feuillet-shot{position:relative;aspect-ratio:1074/497;border-bottom:1px solid var(--line);background:var(--papier)}
.feuillet-shot img{width:100%;height:100%;object-fit:cover;object-position:left top}
.shot-link{position:absolute;inset:0}
.feuillet-folio{position:absolute;right:.6rem;bottom:-.35rem;font:italic 500 3.4rem/1 var(--serif);color:rgba(255,255,255,.85);
  text-shadow:0 1px 3px rgba(16,24,40,.45);pointer-events:none}

.feuillet-body{padding:1.25rem 1.3rem 1.5rem;display:flex;flex-direction:column;gap:.55rem}
.feuillet-head{position:relative;display:inline-block}
.feuillet-body h2{font:600 1.55rem/1.18 var(--serif);margin:0}
.feuillet-pen{display:block;width:100%;max-width:11rem;height:10px;margin-top:.15rem}
.feuillet-pen path{fill:none;stroke:var(--indigo);stroke-width:2;stroke-linecap:round;
  stroke-dasharray:1 1;stroke-dashoffset:1;transition:stroke-dashoffset .5s ease}
.feuillet-card:hover .feuillet-pen path,.feuillet-card:focus-within .feuillet-pen path{stroke-dashoffset:0}

.feuillet-desc{margin:0;font:400 .95rem/1.55 var(--sans);color:var(--encre-40)}

.feuillet-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.5rem}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:.6rem 1.05rem;background:var(--encre);color:#fff;
  text-decoration:none;font:600 .88rem/1.2 var(--sans);border:1px solid var(--encre);white-space:nowrap}
.btn:hover{background:var(--indigo);border-color:var(--indigo)}
.btn.ghost{background:transparent;color:var(--encre)}
.btn.ghost:hover{background:var(--encre);color:#fff}

/* ---------- Note ---------- */
.note{margin:clamp(3rem,6vw,4.5rem) 0 clamp(4rem,8vw,6rem);padding:1.5rem 0 0;border-top:1px solid var(--line);
  max-width:66ch;color:var(--encre-40);font-size:.98rem}
.note strong{color:var(--encre);font-weight:600}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion:no-preference){
  .hero-blot{animation:blot-in .8s cubic-bezier(.2,.7,.3,1) both}
  .feuillet{animation:feuillet-in .6s cubic-bezier(.2,.7,.3,1) both}
  .feuillet:nth-child(1){animation-delay:.08s}
  .feuillet:nth-child(2){animation-delay:.18s}
  .feuillet:nth-child(3){animation-delay:.28s}
  @keyframes blot-in{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
  @keyframes feuillet-in{from{opacity:0;transform:translateY(14px) rotate(0deg)}}
}
@media (prefers-reduced-motion:reduce){
  .feuillet-pen path{transition:none;stroke-dasharray:none;stroke-dashoffset:0}
}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .feuillets{grid-template-columns:1fr}
  .feuillet:nth-child(1),.feuillet:nth-child(2),.feuillet:nth-child(3){transform:rotate(-0.6deg)}
  .feuillet:nth-child(2){transform:rotate(0.6deg)}
}
@media (max-width:480px){
  .hero-blot{width:min(30rem,85vw);top:-2.2rem}
  .feuillet-folio{font-size:2.6rem}
}
