/* Style élégant : papier ivoire, typographie classique, illustrations en fond. */

:root {
  --encre: #2b2620;
  --papier: #fdfbf6;
  --fond: #efe9dd;
  --bordure: #d8cfbd;
  --accent: #4a6350;        /* vert forêt */
  --accent-fonce: #374b3c;
  --or: #a5814a;
  --gris: #7a7266;
  --ombre: 0 10px 30px rgba(43, 38, 32, .12);
  --rayon: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--encre);
  background-color: var(--fond);
}

/* --- Illustrations : bandeau encadré en haut de chaque page --- */
.illustration {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;          /* recadre l'image sans la déformer */
  border-radius: var(--rayon);
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
  margin-bottom: 2rem;
}

/* Version plus petite, à l'intérieur d'une carte de formulaire */
.illustration.carte {
  height: 180px;
  box-shadow: none;
  margin-bottom: .5rem;
}

/* --- En-tête --- */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 2rem;
  background: rgba(253, 251, 246, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--encre);
  text-decoration: none;
}

.portrait {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--or);
}

.entete nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.entete nav a:not(.bouton) {
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.entete nav a:not(.bouton):hover { border-bottom-color: var(--or); }

main { max-width: 960px; margin: 0 auto; padding: 2.5rem 1rem; }

h1, .titre-page {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  letter-spacing: .5px;
  margin: 0 0 .25rem;
}
.titre-page {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* --- Cartes --- */
.case {
  background: var(--papier);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 2rem;
  margin-bottom: 2rem;
}

.case.vide { text-align: center; }

.planche {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(43, 38, 32, .15);
  background: #fff;
}

.date { color: var(--gris); font-style: italic; font-size: 1rem; }
.description { font-size: 1.15rem; }

/* --- Messages --- */
.bulle {
  background: var(--papier);
  border-left: 4px solid var(--or);
  border-radius: 6px;
  box-shadow: var(--ombre);
  padding: .75rem 1.25rem;
  margin: 0 0 1.5rem;
}

/* --- Boutons --- */
.bouton {
  display: inline-block;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.05rem;
  padding: .45rem 1.1rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.bouton:hover { background: var(--accent-fonce); }
.bouton.inactif { background: transparent; color: var(--bordure); border: 1px solid var(--bordure); cursor: default; }
.bouton.danger { background: transparent; color: #9b3b2e; border: 1px solid #9b3b2e; margin-top: 1rem; }
.bouton.danger:hover { background: #9b3b2e; color: #fff; }

.navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}

/* --- Archives --- */
.grille {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.miniature { padding: .75rem; margin: 0; transition: transform .2s, box-shadow .2s; }
.miniature a { color: var(--encre); text-decoration: none; display: flex; flex-direction: column; gap: .3rem; }
.miniature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.miniature:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(43, 38, 32, .18); }

/* --- Formulaires --- */
.formulaire { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: .4rem; }
.formulaire label { font-weight: 600; margin-top: .75rem; }
.formulaire input, .formulaire textarea {
  font: inherit;
  padding: .55rem .75rem;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  background: #fff;
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--or); outline-offset: 1px; }
.formulaire .bouton { margin-top: 1.25rem; align-self: flex-start; }

/* --- Téléphone --- */
@media (max-width: 600px) {
  .entete { padding: .75rem 1rem; }
  .logo { font-size: 1.2rem; }
  .case { padding: 1.25rem; }
}
