/* ==========================================================
   Les Corsaires de la BD – feuille de style du site principal
   Même charte que la boutique « Le Coffre des Corsaires »
   ========================================================== */

/* Police des titres : Delaby Bold (à déposer dans /fonts/ si votre licence
   autorise son usage sur le web ; sinon, la police de secours s'affiche) */
@font-face {
  font-family: "Delaby";
  src: url("../fonts/delaby-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --brun: #664500;
  --brun-fonce: #4A3200;
  --ambre: #D28E00;
  --anthracite: #2F2F2F;
  --creme: #FBF6EC;
  --creme-clair: #F5E6C8;
  --texte: #2F2F2F;
  --bord: #EADFC8;
  --titre: "Delaby", "Trebuchet MS", Arial, sans-serif;
  --auteurs: "Delaby", "Trebuchet MS", Arial, sans-serif;
  --corps: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brun); }
a:hover, a:focus { color: var(--brun-fonce); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; }

.conteneur { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  background: var(--anthracite);
  border-bottom: 4px solid var(--ambre);
  color: var(--creme-clair);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: .75rem;
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--creme-clair); }
.logo img { width: auto; height: 84px; }
.logo span { font-family: var(--titre); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.logo:hover { color: #fff; }

.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; }
.menu a {
  display: inline-block;
  padding: .45rem .75rem;
  color: var(--creme-clair);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}
.menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu a[aria-current="page"] { color: var(--ambre); }
.menu a.bouton-boutique { background: var(--ambre); color: var(--anthracite); }
.menu a.bouton-boutique:hover { background: #E9A51A; color: var(--anthracite); }

/* ---------- Bandeau ---------- */
.bandeau {
  background: var(--anthracite) radial-gradient(ellipse at 50% 120%, #5a4116 0%, #2F2F2F 70%);
  color: var(--creme-clair);
  text-align: center;
  padding: 3.5rem 0 3rem;
}
.logo-bandeau { width: 200px; height: auto; margin: 0 auto 1rem; }
.bandeau h1 { font-family: var(--titre); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 .5rem; color: var(--creme-clair); line-height: 1.1; }
.bandeau p { font-size: 1.2rem; margin: 0 auto; max-width: 40rem; }
.bandeau .sur-titre { font-family: var(--auteurs); letter-spacing: .15em; text-transform: uppercase; color: var(--ambre); font-size: .95rem; margin-bottom: .75rem; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section + .section { padding-top: 0; }
h2 {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  color: var(--anthracite);
  text-align: center;
  margin: 0 0 1.75rem;
  line-height: 1.15;
}
h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--ambre); margin: .6rem auto 0; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; color: var(--anthracite); line-height: 1.3; }
.intro { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }

/* ---------- Cartes d'aiguillage ---------- */
.grille { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.carte {
  background: #fff;
  border: 1px solid var(--bord);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--texte);
  transition: transform .15s ease, box-shadow .15s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 40, 10, .15); color: var(--texte); }
.carte .visuel { background: var(--creme); height: 230px; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.carte .visuel img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.carte .contenu { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.carte .contenu p { margin: 0; flex: 1; }

.bouton {
  display: inline-block;
  align-self: flex-start;
  background: var(--brun);
  color: #fff;
  text-decoration: none;
  padding: .6rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
}
.bouton:hover, .carte:hover .bouton { background: var(--brun-fonce); color: #fff; }
.bouton.secondaire { background: transparent; color: var(--brun); border: 2px solid var(--ambre); }
.bouton.secondaire:hover { background: var(--ambre); color: var(--anthracite); }

.carte.a-venir .visuel img { filter: grayscale(.6); opacity: .8; }
.badge-bientot { align-self: flex-start; background: var(--creme-clair); color: var(--brun); border: 1px dashed var(--ambre); padding: .55rem 1rem; border-radius: 6px; font-weight: 600; }

/* ---------- Bloc « À la une » ---------- */
.une {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--bord);
  border-left: 5px solid var(--ambre);
  border-radius: 0 10px 10px 0;
  padding: 1.75rem;
}
.une img { border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.18); max-height: 440px; width: auto; margin-inline: auto; }
.une .etiquette { display: inline-block; background: var(--ambre); color: var(--anthracite); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .75rem; }
.une h3 { font-size: 1.5rem; }
.une .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
@media (max-width: 720px) { .une { grid-template-columns: 1fr; } .une img { max-width: 280px; margin-inline: auto; } }

/* ---------- Présentation ---------- */
.presentation { max-width: 46rem; margin: 0 auto; }
.presentation p { margin: 0 0 1rem; }

/* ---------- Publications ---------- */
.publication {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.75rem;
  background: #fff;
  border: 1px solid var(--bord);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.publication img { width: 100%; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.publication .date { font-family: var(--auteurs); color: var(--brun); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin: 0 0 .25rem; }
.publication .auteurs { font-weight: 600; margin: 0 0 .5rem; }
.publication p { margin: 0 0 .75rem; }
.publication .details { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .95rem; color: #4a4a4a; }
.publication .details li::before { content: "— "; color: var(--ambre); }
@media (max-width: 640px) { .publication { grid-template-columns: 1fr; } .publication img { max-width: 220px; } }

/* ---------- Événements ---------- */
.evenement img { max-height: 340px; width: auto; }
.evenement { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.evenement .date { font-family: var(--auteurs); color: var(--brun); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin: 0 0 .25rem; }
.evenement p { margin: 0 0 .75rem; }
.evenement.archive { opacity: .92; }
.infos-pratiques { list-style: none; padding: 0; margin: 0 0 1rem; }
.infos-pratiques li { padding-left: 1.6rem; position: relative; margin-bottom: .25rem; }
.infos-pratiques li::before { position: absolute; left: 0; color: var(--ambre); font-weight: 700; content: "›"; }
@media (max-width: 640px) { .evenement { grid-template-columns: 1fr; } .evenement img { max-width: 260px; } }

/* ---------- Contact ---------- */
.coordonnees { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 2rem; }
.coordonnees .carte { padding: 1.25rem 1.5rem; }
.coordonnees .carte:hover { transform: none; box-shadow: none; }
.coordonnees h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brun); }
.coordonnees p { margin: 0; }

/* ---------- Appel à l'abonnement ---------- */
.abonnement { background: var(--brun); color: #fff; text-align: center; padding: 2.5rem 0; }
.abonnement h2 { color: #fff; }
.abonnement h2::after { background: var(--ambre); }
.abonnement p { max-width: 38rem; margin: 0 auto 1.25rem; }
.abonnement .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.abonnement .bouton { background: var(--ambre); color: var(--anthracite); }
.abonnement .bouton:hover { background: #E9A51A; color: var(--anthracite); }
.abonnement .bouton.secondaire { background: transparent; color: #fff; border-color: var(--creme-clair); }
.abonnement .bouton.secondaire:hover { background: var(--creme-clair); color: var(--anthracite); }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--anthracite);
  border-top: 4px solid var(--ambre);
  color: var(--creme-clair);
  padding: 2.5rem 0 1.5rem;
  font-size: .95rem;
}
.pied .colonnes { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pied h2 { font-family: var(--corps); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--creme-clair); text-align: left; margin: 0 0 .75rem; }
.pied h2::after { display: none; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .35rem; }
.pied a { color: #E8C77A; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied p { margin: 0 0 .35rem; }
.reseaux a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--brun); border-radius: 6px; color: #fff;
}
.reseaux a:hover { background: var(--ambre); color: var(--anthracite); text-decoration: none; }
.reseaux svg { width: 22px; height: 22px; fill: currentColor; }
.pied .copyright { border-top: 1px solid rgba(245,230,200,.2); margin-top: 2rem; padding-top: 1rem; text-align: center; font-size: .85rem; color: #cbbd9d; }

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
