/* ============================================================
   Photo-Club Caladois — styles
   Thème clair, inspiration chambre noire / pellicule argentique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --papier: #faf9f6;
  --papier-fonce: #f0eee7;
  --encre: #2a2723;
  --encre-douce: #5c574e;
  --trait: #e2ded3;
  --rouge-labo: #b23a2e;
  --sauge: #5f7355;
  --bleu-ciel: #4a6f9c;
  --ombre: 0 1px 3px rgba(42, 39, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--encre);
  margin: 0 0 0.4em;
}

a {
  color: var(--rouge-labo);
  text-decoration: none;
}

a:hover, a:focus-visible {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rouge-labo);
  outline-offset: 2px;
}

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

/* ---------- En-tête / navigation ---------- */

header.site {
  border-bottom: 1px solid var(--trait);
  background: var(--papier);
  position: sticky;
  top: 0;
  z-index: 10;
}

.entete-contenu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-club {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--encre);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-club img {
  height: 42px;
  width: auto;
  border-radius: 4px;
}

.logo-club span {
  color: var(--rouge-labo);
}

nav.principale ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

nav.principale a {
  color: var(--encre-douce);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

nav.principale a:hover,
nav.principale a[aria-current="page"] {
  color: var(--encre);
  border-bottom-color: var(--rouge-labo);
  text-decoration: none;
}

/* ---------- Contenu général ---------- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.entete-page {
  margin-bottom: 2rem;
}

.entete-page .eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rouge-labo);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.entete-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.entete-page p {
  color: var(--encre-douce);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* ---------- Bloc texte accueil ---------- */

.intro {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.activites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.activite {
  background: var(--papier-fonce);
  border: 1px solid var(--trait);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--encre);
  font-weight: 500;
}

/* ---------- Bloc "Qui sommes-nous" ---------- */

.bloc-texte {
  margin-bottom: 1.6rem;
}

.bloc-texte p {
  color: var(--encre-douce);
  max-width: 68ch;
  font-size: 1.02rem;
}

.chapeau-activites {
  color: var(--encre-douce);
  max-width: 68ch;
  font-size: 1.02rem;
  margin: 0 0 1.2rem;
}

.bouton-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--rouge-labo);
  border-radius: 100px;
  color: var(--rouge-labo);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.bouton-cta:hover {
  background: var(--rouge-labo);
  color: white;
  text-decoration: none;
}

/* ---------- Encadré infos pratiques ---------- */

.infos-pratiques {
  background: var(--papier-fonce);
  border-left: 4px solid var(--rouge-labo);
  border-radius: 6px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 2.5rem;
}

.infos-pratiques h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.liste-infos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.liste-infos li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--encre);
}

.icone-info {
  font-size: 1.1rem;
}

/* ---------- Animations d'apparition ---------- */

@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.anim {
  opacity: 0;
  animation: apparition 0.7s ease forwards;
}

.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.18s; }
.anim-3 { animation-delay: 0.30s; }
.anim-4 { animation-delay: 0.42s; }

.activites .activite {
  opacity: 0;
  animation: apparition 0.6s ease forwards;
}
.activites .activite:nth-child(1) { animation-delay: 0.1s; }
.activites .activite:nth-child(2) { animation-delay: 0.18s; }
.activites .activite:nth-child(3) { animation-delay: 0.26s; }
.activites .activite:nth-child(4) { animation-delay: 0.34s; }
.activites .activite:nth-child(5) { animation-delay: 0.42s; }
.activites .activite:nth-child(6) { animation-delay: 0.50s; }

.activite {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.activite:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre);
}

@media (prefers-reduced-motion: reduce) {
  .anim, .activites .activite {
    opacity: 1;
    animation: none;
  }
  .activite:hover {
    transform: none;
  }
}

/* ---------- Bandes / pellicule photo ---------- */

.section-bande {
  margin-bottom: 3rem;
}

.section-bande .titre-bande {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.section-bande .titre-bande h2 {
  font-size: 1.3rem;
}

.tag-categorie {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  color: white;
}

.tag-categorie.animaux { background: var(--sauge); }
.tag-categorie.paysages { background: var(--bleu-ciel); }
.tag-categorie.autre { background: var(--rouge-labo); }

.pellicule {
  position: relative;
  background: var(--encre);
  border-radius: 8px;
  padding: 0.6rem 0.4rem;
}

.pellicule::before,
.pellicule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.6rem;
  background-image: radial-gradient(circle, var(--papier) 2.5px, transparent 2.6px);
  background-size: 22px 100%;
  background-position: 10px center;
  opacity: 0.55;
}

.pellicule::before { top: 0; }
.pellicule::after { bottom: 0; }

.bande-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  scroll-snap-type: x proximity;
}

.bande-scroll .vignette {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 3 / 2;
  margin: 0;
  scroll-snap-align: start;
  border: 3px solid var(--papier);
  border-radius: 3px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bande-scroll .vignette:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(42, 39, 35, 0.25);
}

.bande-scroll .vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bande-scroll .vignette:hover img {
  transform: scale(1.05);
}

.bande-vide {
  color: var(--papier);
  opacity: 0.6;
  font-size: 0.9rem;
  font-style: italic;
  padding: 1.5rem 1rem;
  margin: 0;
}

/* Barre de défilement discrète */
.bande-scroll::-webkit-scrollbar {
  height: 8px;
}
.bande-scroll::-webkit-scrollbar-thumb {
  background: rgba(250, 249, 246, 0.35);
  border-radius: 10px;
}

/* ---------- Agenda ---------- */

.cadre-agenda {
  border: 1px solid var(--trait);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ombre);
}

.cadre-agenda iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

/* ---------- Formulaire de contact ---------- */

form.contact {
  max-width: 560px;
  display: grid;
  gap: 1.1rem;
}

form.contact label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--encre);
  display: block;
  margin-bottom: 0.35rem;
}

form.contact input,
form.contact textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--trait);
  border-radius: 6px;
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--encre);
}

form.contact textarea {
  resize: vertical;
  min-height: 140px;
}

form.contact button {
  justify-self: start;
  background: var(--rouge-labo);
  color: white;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

form.contact button:hover {
  background: #9a3025;
}

.note-discrete {
  font-size: 0.85rem;
  color: var(--encre-douce);
  margin-top: -0.4rem;
}

/* ---------- Pied de page ---------- */

footer.site {
  border-top: 1px solid var(--trait);
  padding: 1.5rem;
  text-align: center;
  color: var(--encre-douce);
  font-size: 0.85rem;
}

/* ---------- Lightbox simple ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}

.lightbox.ouvert {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
}

.lightbox-fermer {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .entete-contenu {
    flex-direction: column;
    align-items: flex-start;
  }
  nav.principale ul {
    gap: 1.1rem;
    flex-wrap: wrap;
  }
  .cadre-agenda iframe {
    height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bande-scroll .vignette:hover img { transform: none; }
}
