/* ============================================================
   FDHM — Feuille de style commune à toutes les pages
   style.css
   ============================================================ */

/* ── Variables ── */
:root {
  --stone  : #e8dfd0;
  --cream  : #faf6ef;
  --warm   : #f2ebe0;
  --dark   : #1c1208;
  --brown  : #7a5c3e;
  --gold   : #c9963a;
  --green  : #3d5c35;
  --text   : #2e1f10;
  --muted  : #8c7a68;
  --r      : 3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: 'Jost', sans-serif; font-weight: 300; overflow-x: hidden; }

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .4s, padding .4s, box-shadow .4s;
}
nav.scrolled {
  background: rgba(28,18,8,.97);
  padding: .65rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
}
nav.solid { background: rgba(28,18,8,.97); }
.nav-logo { height: 34px; width: auto; filter: invert(1) brightness(2); opacity: .88; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border: 1px solid var(--gold);
  padding: .4rem 1rem; border-radius: var(--r); white-space: nowrap;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-mobile { display: none; position: fixed; inset: 0; background: var(--dark); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ── Page hero (non-homepage) ── */
.page-hero {
  height: 38vh; min-height: 280px;
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end; justify-content: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,18,8,.3) 0%, rgba(28,18,8,.75) 100%); }
.page-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem 2.5rem; color: #fff; }
.page-hero-eyebrow { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; display: block; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; line-height: 1.1; }
.page-hero h1 em { font-style: italic; color: #e8d5b8; }

/* ── Sections ── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--warm); }
.section-dark { background: var(--dark); }

.eyebrow { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 300; line-height: 1.15; color: var(--dark); margin-bottom: 1.2rem; }
.section-title em { font-style: italic; color: var(--brown); }
.section-title.light { color: #e8d5b8; }
.section-title.light em { color: var(--gold); }
.section-body { font-size: .95rem; line-height: 1.85; color: var(--muted); max-width: 600px; }
.section-body + .section-body { margin-top: .9rem; }

/* ── Boutons ── */
.btn-primary {
  background: var(--gold); color: var(--dark); font-family: 'Jost', sans-serif;
  font-size: .78rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; padding: .8rem 2rem; border-radius: var(--r);
  display: inline-block; transition: background .25s, transform .2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #daa844; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--brown); font-family: 'Jost', sans-serif;
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
  padding: .8rem 2rem; border: 1px solid var(--brown); border-radius: var(--r);
  display: inline-block; transition: background .2s, color .2s; cursor: pointer;
}
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-white {
  background: #fff; color: var(--green); font-family: 'Jost', sans-serif;
  font-size: .78rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; padding: .8rem 2rem; border-radius: var(--r);
  display: inline-block; transition: background .2s;
}
.btn-white:hover { background: #f0ebe0; }

/* ── Divider citation ── */
.divider { background: var(--dark); padding: 3rem 2rem; text-align: center; }
.divider-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem, 2.5vw, 1.9rem); font-style: italic; font-weight: 300; color: #e8d5b8; max-width: 720px; margin: 0 auto; line-height: 1.55; }
.divider-text::before, .divider-text::after { content: '—'; color: var(--gold); margin: 0 .7rem; font-style: normal; }

/* ── Cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 12px rgba(28,18,8,.08); transition: transform .3s, box-shadow .3s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(28,18,8,.14); }
.card-img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .6s; }
.card:hover .card-img { transform: scale(1.04); }
.card-overflow { overflow: hidden; }
.card-body { padding: 1.4rem; }
.card-tag { font-size: .63rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; display: block; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--dark); margin-bottom: .6rem; }
.card-desc { font-size: .84rem; line-height: 1.7; color: var(--muted); }
.card-link { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brown); display: inline-flex; align-items: center; gap: .3rem; margin-top: .9rem; transition: gap .2s, color .2s; }
.card:hover .card-link { gap: .6rem; color: var(--gold); }

/* ── Partenaires ── */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.partner-card { background: #fff; border-radius: var(--r); padding: 1.4rem 1.6rem; border-left: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(28,18,8,.06); }
.partner-cat { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.partner-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--dark); margin-bottom: .4rem; }
.partner-contact { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.partner-contact a { color: var(--brown); text-decoration: none; }
.partner-contact a:hover { color: var(--gold); }

/* ── RSE ── */
.rse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.rse-card { background: var(--cream); border-radius: var(--r); padding: 1.8rem 1.6rem; border-top: 3px solid var(--green); }
.rse-icon { font-size: 2rem; margin-bottom: .8rem; display: block; }
.rse-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--dark); margin-bottom: .6rem; }
.rse-body { font-size: .84rem; line-height: 1.75; color: var(--muted); }

/* ── Infos pratiques ── */
.infos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.info-card { text-align: center; padding: 1.5rem 1rem; background: rgba(255,255,255,.05); border-radius: var(--r); }
.info-icon { font-size: 2rem; margin-bottom: .7rem; display: block; }
.info-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: #e8d5b8; margin-bottom: .5rem; }
.info-desc { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.5); }
.info-desc a { color: var(--gold); text-decoration: none; }

/* ── Timeline histoire ── */
.timeline { position: relative; max-width: 680px; margin: 2.5rem auto 0; }
.timeline::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--stone); }
.tl-item { display: flex; gap: 1.4rem; margin-bottom: 2rem; position: relative; }
.tl-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Cormorant Garamond', serif; font-size: .78rem; color: var(--gold); font-weight: 500; z-index: 1; line-height: 1.1; text-align: center; }
.tl-content { padding-top: .6rem; }
.tl-date { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.tl-text { font-size: .88rem; line-height: 1.75; color: var(--muted); }

/* ── Footer ── */
footer { background: #110c04; color: rgba(255,255,255,.45); padding: 3rem 2rem 2rem; text-align: center; }
.footer-logo { height: 44px; width: auto; filter: invert(1) brightness(1.8); opacity: .5; margin-bottom: 1rem; }
.footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: rgba(255,255,255,.55); margin-bottom: .3rem; font-style: italic; }
.footer-sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(201,150,58,.55); margin-bottom: 1.8rem; }
.footer-links { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.footer-social a { color: rgba(255,255,255,.35); text-decoration: none; font-size: .78rem; letter-spacing: .1em; border: 1px solid rgba(255,255,255,.12); padding: .3rem .7rem; border-radius: var(--r); transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-copy { font-size: .68rem; color: rgba(255,255,255,.18); border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.3rem; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 860px) { .nav-links { display: none; } .nav-burger { display: flex; } }
@media (max-width: 600px) { .section { padding: 3.5rem 1.2rem; } nav { padding: .9rem 1.2rem; } nav.scrolled { padding: .5rem 1.2rem; } }
