/* Les Cents Moins N'un du Gros Caillou — carnet patrimonial de la Croix-Rousse */

:root{
  --ocre:#c2863f;
  --terre-cuite:#a84f2e;
  --terre-cuite-dark:#7c3a21;
  --pierre:#ded3bd;
  --pierre-dark:#a79777;
  --soie:#e9d9ad;
  --chene:#4a3728;
  --chene-dark:#2f2318;
  --bleu-lyonnais:#2f4b63;
  --paper:#f4ecda;
  --paper-deep:#ece0c6;
  --ink:#352618;
  --cream:#fbf6ea;
  --shadow: 0 18px 40px -20px rgba(47,35,24,.45);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Lora', Georgia, serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:var(--terre-cuite-dark);text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3,h4{
  font-family:'Fraunces', Georgia, serif;
  color:var(--chene-dark);
  margin:0 0 .5em;
  line-height:1.15;
  font-weight:600;
}
h1{font-size:clamp(2.2rem, 5vw, 3.6rem); font-weight:700;}
h2{font-size:clamp(1.5rem, 3vw, 2.1rem); font-style:italic; font-weight:500;}
h3{font-size:1.2rem;}
p{margin:0 0 1.1em;}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px;}
.wrap-narrow{max-width:760px;}
.muted{color:#6b5c48;}
.small{font-size:.85rem;}
.center-cta{text-align:center;margin-top:36px;}

/* texture de fond "papier" */
body::before{
  content:"";
  position:fixed;inset:0;
  pointer-events:none;
  z-index:0;
  background-image:
    radial-gradient(ellipse at top left, rgba(194,134,63,.06), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(47,75,99,.05), transparent 55%);
}
header,main,footer,section{position:relative;z-index:1;}

/* --- header / nav --- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(244,236,218,.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--pierre-dark);
}
.nav{
  max-width:1180px;margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.brand{display:flex;align-items:center;gap:12px;color:var(--chene-dark);}
.brand:hover{text-decoration:none;}
.mark{width:40px;height:40px;flex:none;}
.mark .caillou{fill:var(--terre-cuite);}
.mark .caillou-shade{fill:var(--terre-cuite-dark);opacity:.55;}
.mark .cross{stroke:var(--bleu-lyonnais);stroke-width:2;}
.brand-text{display:flex;flex-direction:column;line-height:1.2;}
.brand-text strong{font-family:'Fraunces',serif;font-size:1.05rem;}
.brand-text span{font-size:.72rem;letter-spacing:.04em;color:var(--terre-cuite-dark);text-transform:uppercase;}
.nav-links{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center;}
.nav-links a{
  font-family:'Lora',serif;font-size:.9rem;color:var(--chene);
  padding:6px 2px;border-bottom:2px solid transparent;white-space:nowrap;
}
.nav-links a:hover{text-decoration:none;border-color:var(--ocre);}
.nav-links a.active{color:var(--terre-cuite-dark);border-color:var(--terre-cuite);font-weight:600;}
.nav-toggle{display:none;background:none;border:none;font-size:1.6rem;color:var(--chene-dark);cursor:pointer;}

@media (max-width: 880px){
  .nav-toggle{display:block;}
  .nav-links{
    display:none;flex-direction:column;align-items:flex-start;
    position:absolute;top:100%;left:0;right:0;
    background:var(--paper);border-bottom:1px solid var(--pierre-dark);
    padding:12px 24px 18px;gap:10px;
  }
  .nav-links.open{display:flex;}
}

/* --- hero / page hero --- */
.hero{
  min-height:88vh;display:flex;align-items:center;
  background-size:cover;background-position:center;
  position:relative;
}
.hero-inner{max-width:760px;margin:0 auto;padding:60px 24px;text-align:center;color:var(--cream);}
.kicker{
  display:inline-block;font-family:'Caveat',cursive;font-size:1.3rem;color:var(--soie);
  margin-bottom:8px;
}
.hero h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35);}
.hero-lead{font-size:1.1rem;color:var(--pierre);max-width:52ch;margin:18px auto 30px;}
.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

.page-hero{
  min-height:38vh;display:flex;align-items:flex-end;
  background-size:cover;background-position:center;
  padding:60px 0 36px;
}
.page-hero.small{min-height:28vh;}
.page-hero h1{color:#fff;margin:0;text-shadow:0 2px 18px rgba(0,0,0,.4);}
.page-hero .kicker{color:var(--soie);}

/* --- buttons --- */
.btn{
  display:inline-block;padding:13px 26px;border-radius:2px;
  font-family:'Lora',serif;font-size:.95rem;letter-spacing:.02em;
  border:1.5px solid transparent;transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{text-decoration:none;transform:translateY(-1px);}
.btn-primary{background:var(--terre-cuite);color:#fff;box-shadow:var(--shadow);}
.btn-primary:hover{background:var(--terre-cuite-dark);}
.btn-ghost{border-color:rgba(255,255,255,.65);color:#fff;}
.btn-ghost:hover{background:rgba(255,255,255,.12);}
.btn-outline{border-color:var(--terre-cuite);color:var(--terre-cuite-dark);}
.btn-outline:hover{background:var(--terre-cuite);color:#fff;}

/* --- sections --- */
.section{padding:72px 0;}
.section.alt{background:var(--paper-deep);}
.section-head{max-width:620px;margin:0 auto 40px;text-align:center;}
.eyebrow{
  display:inline-block;font-family:'Caveat',cursive;font-size:1.25rem;
  color:var(--terre-cuite-dark);margin-bottom:2px;
}

.theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
@media (max-width:980px){.theme-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.theme-grid{grid-template-columns:1fr;}}
.theme-card{
  display:block;background:var(--cream);border:1px solid var(--pierre-dark);
  border-radius:3px;overflow:hidden;box-shadow:var(--shadow);color:var(--ink);
}
.theme-card:hover{text-decoration:none;}
.theme-card img{height:150px;width:100%;object-fit:cover;filter:sepia(.35) saturate(.85) contrast(1.05);}
.theme-card-body{padding:16px 18px 20px;}
.theme-num{font-family:'Caveat',cursive;font-size:1.3rem;color:var(--ocre);}
.theme-card h3{margin:2px 0 6px;font-size:1.08rem;}
.theme-card p{margin:0;font-size:.88rem;color:#6b5c48;}

.article-list{display:flex;flex-direction:column;gap:14px;}
.article-row{
  display:flex;gap:18px;align-items:flex-start;padding:18px 20px;
  background:var(--cream);border:1px solid var(--pierre-dark);border-radius:3px;color:var(--ink);
}
.article-row:hover{text-decoration:none;border-color:var(--ocre);}
.article-number{
  font-family:'Caveat',cursive;font-size:1.6rem;color:var(--terre-cuite);flex:none;min-width:52px;
}
.article-info{display:flex;flex-direction:column;gap:4px;}
.article-info strong{font-family:'Fraunces',serif;font-size:1.05rem;color:var(--chene-dark);}
.article-info span{font-size:.9rem;color:#6b5c48;}

.quote-section{background-size:cover;background-position:center;padding:100px 0;text-align:center;}
.pull-quote{
  font-family:'Fraunces',serif;font-style:italic;font-size:clamp(1.3rem,2.6vw,1.9rem);
  color:#fff;line-height:1.4;margin:0;text-shadow:0 2px 16px rgba(0,0,0,.35);
}
.quote-signature{font-family:'Caveat',cursive;font-size:1.4rem;color:var(--soie);margin-top:18px;}
.pull-quote.inline{color:var(--terre-cuite-dark);text-shadow:none;border-left:3px solid var(--ocre);padding-left:20px;margin:28px 0;}

/* --- prose / typography --- */
.prose .lead{font-size:1.15rem;color:var(--chene);}
.prose h2{margin-top:1.6em;}
.prose figure{margin:28px 0;}
.prose a{border-bottom:1px solid var(--ocre);}

.figure-wide{margin:32px 0;}
.figure-wide img{width:100%;border-radius:2px;filter:sepia(.25) saturate(.9) contrast(1.03);box-shadow:var(--shadow);}
.figure-wide figcaption{margin-top:10px;font-family:'Caveat',cursive;font-size:1.15rem;color:var(--terre-cuite-dark);text-align:center;}

.handwritten-note{
  background:var(--paper-deep);border-left:4px solid var(--ocre);
  padding:24px 28px;margin:24px 0;border-radius:2px;
}
.handwritten-note p{font-family:'Fraunces',serif;font-style:italic;font-size:1.15rem;color:var(--chene-dark);margin-bottom:10px;}
.signature{font-family:'Caveat',cursive;font-size:1.5rem;color:var(--terre-cuite);}

.bureau-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.bureau-list li{padding:12px 16px;background:var(--cream);border:1px solid var(--pierre-dark);border-radius:2px;}

.two-col{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center;}
@media (max-width:760px){.two-col{grid-template-columns:1fr;}}
.two-col img{border-radius:2px;filter:sepia(.3) saturate(.85) contrast(1.05);box-shadow:var(--shadow);}

/* --- lieux grid --- */
.lieu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:10px;}
@media (max-width:900px){.lieu-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.lieu-grid{grid-template-columns:1fr;}}
.lieu-card{background:var(--cream);border:1px solid var(--pierre-dark);border-radius:3px;overflow:hidden;box-shadow:var(--shadow);}
.lieu-card img{height:180px;width:100%;object-fit:cover;filter:sepia(.3) saturate(.85) contrast(1.05);}
.lieu-card h3{padding:16px 18px 0;margin-bottom:6px;}
.lieu-card p{padding:0 18px 18px;font-size:.9rem;color:#6b5c48;margin:0;}

/* --- publications list --- */
.pub-list{display:flex;flex-direction:column;gap:18px;margin-top:10px;}
.pub-row{display:flex;gap:20px;padding:22px 0;border-bottom:1px solid var(--pierre-dark);}
.pub-row:last-child{border-bottom:none;}
.pub-theme{font-family:'Caveat',cursive;color:var(--bleu-lyonnais);font-size:1.05rem;}
.pub-row-body h3{margin:4px 0 8px;}
.pub-row-body p{margin:0;color:#6b5c48;font-size:.95rem;}

/* --- gallery --- */
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:10px;}
@media (max-width:900px){.gallery-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:620px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}
.gallery-item{margin:0;background:var(--cream);border:1px solid var(--pierre-dark);border-radius:2px;overflow:hidden;}
.gallery-item img{height:160px;width:100%;object-fit:cover;filter:sepia(.35) saturate(.85) contrast(1.05);transition:transform .3s ease;}
.gallery-item:hover img{transform:scale(1.05);}
.gallery-item figcaption{padding:8px 10px;font-size:.78rem;color:#6b5c48;}

/* --- contact --- */
.contact-list{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-direction:column;gap:8px;}
.contact-form{display:flex;flex-direction:column;gap:16px;background:var(--cream);padding:28px;border:1px solid var(--pierre-dark);border-radius:3px;box-shadow:var(--shadow);}
.contact-form label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;color:var(--chene);font-family:'Lora',serif;}
.contact-form input,.contact-form textarea{
  font-family:'Lora',serif;font-size:1rem;padding:10px 12px;
  border:1px solid var(--pierre-dark);border-radius:2px;background:var(--paper);color:var(--ink);
}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--ocre);}
.form-success{color:var(--bleu-lyonnais);font-size:.9rem;}

/* --- footer --- */
.site-footer{background:var(--chene-dark);color:var(--pierre);padding:56px 0 24px;margin-top:40px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;}
@media (max-width:820px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr;}}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:10px;color:#fff;}
.footer-brand .mark .caillou{fill:var(--ocre);}
.footer-brand .mark .cross{stroke:var(--soie);}
.footer-brand strong{font-family:'Fraunces',serif;font-size:1.05rem;}
.footer-note{font-size:.85rem;color:var(--pierre-dark);max-width:30ch;}
.site-footer h4{color:var(--soie);font-family:'Fraunces',serif;font-size:.95rem;margin-bottom:12px;}
.site-footer a{display:block;color:var(--pierre);font-size:.88rem;margin-bottom:8px;}
.site-footer a:hover{color:var(--ocre);text-decoration:none;}
.footer-bottom{
  max-width:1180px;margin:40px auto 0;padding:18px 24px 0;border-top:1px solid rgba(255,255,255,.1);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.78rem;color:var(--pierre-dark);
}
