/* =========================================================
   ÉRIC ANTONY & ASSOCIÉS — feuille de style
   Palette : noir des pins (film noir américain égaré
   dans la forêt landaise)
   ========================================================= */

:root {
  --encre:        #14110F;   /* noir presque total, fond des sections nuit */
  --pin:          #16321F;   /* vert pin profond */
  --pin-clair:    #234A2C;
  --kraft:        #D9C9A3;   /* papier kraft / manille vieilli */
  --kraft-clair:  #EDE3C6;
  --ambre:        #E8A33D;   /* néon ambre de l'enseigne */
  --ambre-vif:    #F4C165;
  --tampon:       #8C2F2F;   /* rouge tampon "CLASSÉ" */
  --blanc-casse:  #EFE8D8;
  --ombre:        rgba(0,0,0,.55);

  --font-affiche: 'Special Elite', 'Courier New', monospace;
  --font-texte:   'Vollkorn', Georgia, serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--encre);
  color: var(--blanc-casse);
  font-family: var(--font-texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Persiennes : ombre de signature, discrète, une seule fois ---------- */
.blind-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background: repeating-linear-gradient(
    100deg,
    #000 0px, #000 10px,
    transparent 10px, transparent 34px
  );
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: neon-flicker 6s infinite; }
}
@keyframes neon-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .55; }
  94% { opacity: 1; }
  95% { opacity: .7; }
  96% { opacity: 1; }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--encre), rgba(20,17,15,.96));
  border-bottom: 1px solid rgba(232,163,61,.25);
}
.site-header__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .9rem 1.5rem;
}
.shingle { text-decoration: none; line-height: 1.1; }
.shingle__name {
  display: block;
  font-family: var(--font-affiche);
  font-size: 1.15rem; letter-spacing: .04em;
  color: var(--ambre-vif);
  text-shadow: 0 0 10px rgba(232,163,61,.45);
}
.shingle__role {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--kraft);
  margin-top: .15rem;
}

.main-nav__toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: 1px solid var(--ambre); border-radius: 3px;
  padding: 8px 10px; cursor: pointer;
}
.main-nav__toggle span { width: 18px; height: 2px; background: var(--ambre); }

#main-nav-list {
  list-style: none; display: flex; gap: 1.6rem;
  margin: 0; padding: 0;
}
#main-nav-list a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--kraft-clair);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
#main-nav-list a:hover,
#main-nav-list a.is-active {
  color: var(--ambre-vif);
  border-color: var(--ambre-vif);
}

.lang-switch {
  font-family: var(--font-mono); font-size: .75rem;
  border: 1px solid var(--kraft); color: var(--kraft-clair);
  text-decoration: none; padding: .3rem .6rem; border-radius: 2px;
  letter-spacing: .08em;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.lang-switch:hover { background: var(--ambre); color: var(--encre); border-color: var(--ambre); }

@media (max-width: 720px) {
  .main-nav__toggle { display: inline-flex; }
  #main-nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--encre);
    padding: 1rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid rgba(232,163,61,.25);
    display: none;
  }
  #main-nav-list.is-open { display: flex; }
}

/* ---------- Zone principale ---------- */
.site-main { position: relative; z-index: 2; }

/* ---------- Hero (page d'accueil) ---------- */
.hero {
  position: relative;
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232,163,61,.10), transparent 55%),
    linear-gradient(var(--encre), var(--pin) 180%);
  overflow: hidden;
  border-bottom: 1px solid rgba(232,163,61,.2);
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--kraft); opacity: .85;
}
.hero__title {
  font-family: var(--font-affiche);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--ambre-vif);
  margin: .9rem 0 .2rem;
  text-shadow: 0 0 18px rgba(232,163,61,.35);
}
.hero__subtitle {
  font-family: var(--font-affiche);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--kraft-clair);
  margin-bottom: 1.6rem;
}
.hero__tagline {
  max-width: 46ch; margin: 0 auto 2.2rem;
  font-size: 1.05rem; color: var(--kraft-clair); opacity: .92;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 1.5rem; border-radius: 2px; border: 1px solid var(--ambre);
  transition: transform .15s, background .15s, color .15s;
}
.btn--primary { background: var(--ambre); color: var(--encre); }
.btn--primary:hover { background: var(--ambre-vif); transform: translateY(-1px); }
.btn--ghost { color: var(--ambre-vif); }
.btn--ghost:hover { background: rgba(232,163,61,.12); }

/* ---------- Sections générales ---------- */
.section {
  max-width: 1000px; margin: 0 auto; padding: 4rem 1.5rem;
}
.section--tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-title {
  font-family: var(--font-affiche);
  font-size: 1.7rem; color: var(--ambre-vif);
  margin-bottom: .3rem;
}
.section-kicker {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--kraft); opacity: .8;
  margin: 0 0 .6rem;
}
.section-lede { max-width: 62ch; opacity: .92; }

.grid-3 {
  display: grid; gap: 1.5rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.service-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(232,163,61,.18);
  border-radius: 4px; padding: 1.6rem;
}
.service-card__icon {
  font-family: var(--font-mono); color: var(--ambre);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
.service-card h3 {
  font-family: var(--font-affiche); font-size: 1.15rem;
  color: var(--kraft-clair); margin: .5rem 0;
}
.service-card p { font-size: .95rem; opacity: .85; margin: 0; }

/* ---------- Extrait / teaser du récit ---------- */
.excerpt {
  background: var(--kraft);
  color: var(--encre);
  border-radius: 3px;
  padding: 2.4rem 2.2rem;
  position: relative;
  box-shadow: 0 20px 45px var(--ombre);
}
.excerpt::before {
  content: "DOSSIER EN COURS";
  position: absolute; top: -.8rem; left: 1.6rem;
  background: var(--tampon); color: var(--kraft-clair);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  padding: .3rem .7rem; border-radius: 2px;
  transform: rotate(-3deg);
}
.excerpt__title {
  font-family: var(--font-affiche); font-size: 1.2rem; margin-top: .5rem;
}
.excerpt__body {
  font-size: 1.02rem;
  column-gap: 2.2rem;
}
.excerpt__body p { margin: 0 0 1rem; }
.excerpt__more { margin-top: 1.2rem; }
.excerpt__more a {
  font-family: var(--font-mono); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; text-decoration: underline;
}

/* ---------- Équipe ---------- */
.team {
  display: grid; gap: 1.4rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.team-member {
  border-left: 2px solid var(--ambre); padding-left: 1rem;
}
.team-member__role {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ambre);
}
.team-member__name { font-family: var(--font-affiche); font-size: 1.05rem; margin: .3rem 0; }
.team-member p:last-child { font-size: .92rem; opacity: .85; }

/* ---------- Dossiers (liste des œuvres) ---------- */
.dossier-grid {
  display: grid; gap: 1.8rem; margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.dossier-card {
  background: var(--kraft);
  color: var(--encre);
  border-radius: 2px 2px 8px 8px;
  position: relative;
  padding: 1.8rem 1.5rem 1.5rem;
  text-decoration: none;
  display: block;
  transform: rotate(-.4deg);
  box-shadow: 0 12px 28px var(--ombre);
  transition: transform .18s;
}
.dossier-card:nth-child(even) { transform: rotate(.5deg); }
.dossier-card:hover { transform: rotate(0deg) translateY(-3px); }
.dossier-card__tab {
  position: absolute; top: -.7rem; left: 1.4rem;
  background: var(--tampon); color: var(--kraft-clair);
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em;
  padding: .25rem .6rem; border-radius: 2px;
}
.dossier-card__num {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  opacity: .65; display: block; margin-bottom: .4rem;
}
.dossier-card__title {
  font-family: var(--font-affiche); font-size: 1.15rem;
  margin: 0 0 .5rem;
}
.dossier-card__excerpt { font-size: .92rem; opacity: .85; margin: 0 0 .8rem; }
.dossier-card__read {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: underline;
}

/* ---------- Page de lecture ---------- */
.reader {
  max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 5rem;
}
.reader__breadcrumb {
  font-family: var(--font-mono); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ambre); text-decoration: none; opacity: .85;
}
.reader__title {
  font-family: var(--font-affiche); font-size: 2rem;
  color: var(--ambre-vif); margin: 1rem 0 .3rem;
}
.reader__meta {
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--kraft); opacity: .8; margin-bottom: 2rem;
}
.reader__text {
  background: var(--kraft-clair); color: var(--encre);
  padding: 2.4rem 2.2rem; border-radius: 3px;
  box-shadow: 0 20px 45px var(--ombre);
  font-size: 1.08rem;
}
.reader__text p { margin: 0 0 1.1rem; }
/*.reader__text p:first-of-type::first-letter {
  font-family: var(--font-affiche);
  font-size: 2.6rem; float: left; line-height: .8;
  padding: .1rem .4rem 0 0; color: var(--tampon);
}*/
.reader__tbc {
  font-style: italic; text-align: center; opacity: .65;
  font-size: .95rem !important;
}
.reader__missing {
  background: var(--kraft-clair); color: var(--encre);
  padding: 2rem; border-radius: 3px; text-align: center;
}

/* ---------- Formulaire de contact ---------- */
.contact-grid {
  display: grid; gap: 2.5rem; margin-top: 2rem;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem;
  color: var(--kraft);
}
.form-field input, .form-field textarea {
  width: 100%; padding: .7rem .8rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(232,163,61,.35);
  border-radius: 2px; color: var(--blanc-casse);
  font-family: var(--font-texte); font-size: 1rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; opacity: .7; margin-top: 1rem; }

.info-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(232,163,61,.18);
  border-radius: 4px; padding: 1.8rem;
}
.info-card dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ambre); margin-top: 1rem;
}
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: .2rem 0 0; }

/* ---------- Carnet de l'indic (FR uniquement) ---------- */
.carnet-entry {
  border-bottom: 1px dashed rgba(232,163,61,.25);
  padding: 1.6rem 0;
}
.carnet-entry:first-of-type { padding-top: 0; }
.carnet-entry__date {
  font-family: var(--font-mono); font-size: .74rem;
  color: var(--ambre); letter-spacing: .1em;
}
.carnet-entry h3 { font-family: var(--font-affiche); margin: .4rem 0; }

/* ---------- Enseigne citée dans un récit ---------- */
.story-signage {
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: .08em;
  border-top: 1px solid rgba(140,47,47,.4);
  border-bottom: 1px solid rgba(140,47,47,.4);
  padding: 1rem 0;
  margin: 1.6rem 0 !important;
  font-weight: 700;
}
.story-signage span { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(232,163,61,.2);
  background: var(--encre);
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative; z-index: 2;
}
.site-footer__stamp {
  font-family: var(--font-affiche); color: var(--kraft-clair);
  margin: 0 0 .4rem;
}
.site-footer__addr, .site-footer__legal {
  font-family: var(--font-mono); font-size: .78rem; opacity: .7; margin: .2rem 0;
}
.site-footer__motto {
  font-style: italic; color: var(--ambre); margin: .8rem 0;
}

/* ---------- Chapitres (details / summary) ---------- */
.roman-chapitres {
  max-width: 800px;
  margin: 1rem auto;
  font-size: 85%;
}

.chapitre {
  background: var(--kraft-clair);
  color: var(--encre);
  border-radius: 3px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px var(--ombre);
  overflow: hidden;
}

.chapitre summary {
  list-style: none;
  cursor: pointer;
  padding: .6rem 1.1rem;
  display: flex;
  align-items: baseline;
  gap: .9rem;
  font-family: var(--font-affiche);
  font-size: .88rem;
  background: var(--kraft);
  transition: background .15s;
}

.chapitre summary::-webkit-details-marker { display: none; }

.chapitre summary:hover { background: var(--ambre-vif); }

.chapitre summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  transition: transform .2s;
}
.chapitre[open] summary::after { transform: rotate(45deg); }

.chapitre summary .chapitre__num {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--tampon);
  flex-shrink: 0;
}

.chapitre__corps {
  padding: 1.6rem 1.8rem 2rem;
  font-size: 1.05rem;
}
.chapitre__corps p { margin: 0 0 1.1rem; }
/*.chapitre__corps p:first-of-type::first-letter {
  font-family: var(--font-affiche);
  font-size: 2.2rem;
  float: left;
  line-height: .8;
  padding: .1rem .35rem 0 0;
  color: var(--tampon);
}
*/
.chapitre__corps img,
.reader__text img {
  margin-bottom: 1.5rem;
}

/* ---------- Texte justifié + césure dans les zones d'histoire ---------- */
.reader__text,
.chapitre__corps,
.excerpt__body {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

/* ---------- Images centrées dans les zones d'histoire ---------- */
.reader__text img,
.chapitre__corps img,
.excerpt__body img {
  display: block;
  margin: 0 auto 1.5rem;
}


#espace {
  margin: 8px auto 20px;
  width: 80%;
  padding: 8px 0 10px;
  box-sizing: border-box;
  background: repeating-linear-gradient(
    180deg,
    rgba(152,136,88,0.9),
    rgba(152,136,88,0.9) 1px,
    rgba(128,112,64,0.9) 1px,
    rgba(128,112,64,0.9) 8px
  );
  border: 1px solid rgb(112,88,64);
}

#social {
  display: flex;
  justify-content: space-around;
}

.preuve a {
  width: 52px;
  height: 52px;
  display: inline-block;
  color: white;
  background: repeating-linear-gradient(
    180deg,
    rgba(144,144,144,0.9),
    rgba(144,144,140,0.9) 1px,
    rgba(120,120,120,0.9) 1px,
    rgba(120,120,120,0.9) 8px
  );
}

.preuve img {
  width: 46px;
  height: 46px;
  padding-top: 2px;
}

.preuve a:hover {
  box-shadow: white 1px 1px, white -1px 1px, white -1px -1px, white 1px -1px;
}

/* ---------- Bandeau-titre collé à #espace ---------- */
.espace-titre {
  width: 80%;
  margin: 8px auto 0;      /* même marge haute que #espace, 0 en bas pour coller */
  background: var(--encre);
  border: 1px solid rgb(112,88,64);
  border-bottom: none;      /* jonction franche avec #espace, pas de double trait */
  border-radius: 3px 3px 0 0;
  padding: 6px 10px;
  box-sizing: border-box;
  text-align: center;
}

.espace-titre span {
  font-family: var(--font-affiche);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ambre-vif);
  text-shadow: 0 0 8px rgba(232,163,61,.35);
}

/* #espace reprend le relais juste en dessous, sans marge haute
   et avec des coins arrondis seulement en bas pour former un seul bloc visuel */
#espace {
  margin: 0 auto 20px;
  border-radius: 0 0 3px 3px;
}