/* ─────────────────────────────────────────────
   style.css — salonphotonimes.fr · demo one-page
   Palette + typo heritees de spn.css v2
   Spectral 800 + Outfit · responsive mobile-first
   Nanodot × Claude Opus 4.6 — 2026-04-17 v2
───────────────────────────────────────────── */

/* === VARIABLES === */
:root {
  --black: #111110;
  --ink: #3a3a37;
  --white: #fdfcf9;
  --bg: #f5f3ee;
  --bg-alt: #f0ede6;
  --border: #d4d0c8;
  --red: #E30613;
  --font-serif: 'Spectral', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --fs-base: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.2rem);
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --lh-tight: 1.2;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;
  --max-width: 1100px;
  --section-py: clamp(3rem, 8vw, 6rem);
  --section-px: clamp(1.5rem, 5vw, 2.5rem);
}

/* === RESET + BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-sans);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--red);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--black);
  cursor: pointer;
  padding: 0.25rem;
}

/* === HERO — salon NB background === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 2rem var(--section-px);
  background:
    linear-gradient(rgba(253, 252, 249, 0.82), rgba(253, 252, 249, 0.75)),
    url('../img/1989-Club_Niepce_Daguerre_Arenes_de_Nimes.jpg') center/cover no-repeat;
  overflow: hidden;
}

/* XL accent typographique */
.hero-xl {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: var(--red);
  opacity: 0.12;
  position: absolute;
  top: 10%;
  right: 5%;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  color: var(--black);
  margin: 0.8rem 0 1rem;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: var(--fw-extrabold);
  color: var(--black);
  margin: 1rem 0 0.3rem 0;
  line-height: var(--lh-tight);
}

.hero-lieu {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: var(--fw-light);
  color: var(--ink);
  margin: 0 0 1.5rem 0;
}

.hero-accroche {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  color: var(--ink);
  max-width: 600px;
  margin: 1.5rem auto;
  line-height: var(--lh-relaxed);
}

/* Accroche responsive */
.accroche-desktop {
  display: none;
}

.accroche-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .accroche-desktop {
    display: block;
  }
  .accroche-mobile {
    display: none;
  }
}

.hero-credit {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-light);
  color: var(--ink);
  opacity: 0.6;
  margin-top: 2rem;
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  border-left: 3px solid var(--red);
  padding-left: 1.2rem;
  text-align: left;
  max-width: 500px;
  margin: 2rem auto;
  color: var(--ink);
}

.hero-quote p {
  margin-bottom: 0.4rem;
}

.hero-quote-source {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: block;
}

/* === SUP ÈME === */
sup.eme {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: var(--fw-normal);
  letter-spacing: 0.02em;
}

/* === LABEL ROUGE === */
.label-red {
  font-family: var(--font-sans);
  font-weight: var(--fw-extrabold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  display: inline-block;
}

/* === SECTIONS === */
.section-full {
  width: 100%;
}

.section-alt {
  background: var(--bg-alt);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
  /* fade-in animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-h2);
  color: var(--black);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: var(--lh-tight);
}

.section p {
  margin-bottom: 1rem;
  line-height: var(--lh-relaxed);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-weight: var(--fw-normal);
  font-size: var(--fs-base);
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* === TWO COLUMNS === */
.two-col {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.two-col-reverse {
  flex-direction: row-reverse;
}

.col-text {
  flex: 1;
}

.col-image {
  flex: 1;
}

/* === IMAGES === */
.section-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

figure {
  margin: 0;
}

figcaption {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--ink);
  margin-top: 0.5rem;
  font-style: italic;
}

/* === MODAL FIGURES === */
.modal-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.modal-img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 2px;
  display: inline-block;
}

.modal-figure figcaption {
  text-align: center;
}

/* === HISTOIRE === */
.histoire-text p {
  margin-bottom: 1rem;
}

.histoire-highlight {
  font-size: 1.1rem;
  color: var(--black);
  margin: 1.5rem 0;
}

.histoire-photo {
  margin: 0 0 2rem 0;
}

.histoire-photo .section-img {
  width: 100%;
  height: auto;
}

/* === QUINCONCE LAYOUT === */
.quinconce-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.quinconce-reverse {
  direction: rtl;
}

.quinconce-reverse > * {
  direction: ltr;
}

.quinconce-text p {
  margin-bottom: 1rem;
}

.quinconce-img .section-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* === PHOTO CREDIT === */
.photo-credit {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  display: block;
  margin-top: 0.3rem;
}

/* === CYCLOPE === */
.cyclope-logo-section {
  max-width: 200px;
  margin: 0 auto;
  display: block;
  box-shadow: none;
}

/* === BICENTENAIRE === */
.figure-stacked {
  margin-top: 1.5rem;
}

/* === ANIMATION MORE === */
.animation-more {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* === IMAGE PLACEHOLDERS === */
.image-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--border);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.image-placeholder-large {
  min-height: 340px;
}

/* === CITATIONS === */
.quote-block {
  border-left: 3px solid var(--red);
  padding: 1rem 1.2rem;
  background: var(--white);
  margin: 1.5rem 0;
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.quote-source {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
}

/* === BOUTONS === */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #c4050f;
  text-decoration: none;
}

.btn-primary-sm {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 0.8rem 1.6rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* === DATA TAGS === */
.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.data-tag {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  padding: 0.25rem 0.65rem;
  border-radius: 1px;
}

/* === LINKS ARTIST === */
.links-artist {
  font-size: var(--fs-sm);
  margin-top: 0.5rem;
}

/* === EXPOSANTS INFO === */
.exposants-info {
  margin-bottom: 1.5rem;
}

.exposants-info p {
  margin-bottom: 0.4rem;
}

/* === MODALS (dialog natif) === */
dialog {
  border: none;
  border-radius: 4px;
  padding: 0;
  max-width: 700px;
  width: 90vw;
  max-height: 85vh;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

dialog::backdrop {
  background: rgba(17, 17, 16, 0.8);
}

dialog[open] {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-weight: var(--fw-extrabold);
  font-size: 1.2rem;
  color: var(--black);
  text-transform: none;
  letter-spacing: 0;
}

.modal-close {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.15s;
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--red);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

.modal-body h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 1.8rem 0 0.8rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body ul {
  list-style: none;
  padding: 0;
}

.modal-body ul li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  line-height: var(--lh-normal);
}

.modal-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 600;
}

.modal-body p {
  margin-bottom: 0.8rem;
  line-height: var(--lh-relaxed);
}

.modal-body .quote-block {
  margin: 1.2rem 0;
}

/* === FOOTER === */
footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem var(--section-px);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-label {
  font-family: var(--font-sans);
  font-weight: var(--fw-extrabold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: #b8b7ae;
}

.footer-links li strong {
  color: var(--white);
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--red);
  text-decoration: none;
}

.footer-spacer {
  height: 0.5rem;
}

/* === FOOTER PARTNER LOGO === */
.footer-partner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.partner-logo {
  height: 30px;
  width: auto;
  filter: invert(1);
}

/* === FOOTER FORM === */
.form-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-contact input,
.form-contact textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #444;
  background: #1a1a19;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  border-radius: 2px;
}

.form-contact input::placeholder,
.form-contact textarea::placeholder {
  color: #777;
}

.form-contact input:focus,
.form-contact textarea:focus {
  border-color: var(--red);
  outline: none;
}

/* === MODAL FORMS === */
.form-exposant {
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  border-radius: 2px;
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  outline: none;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--ink);
  margin-top: 0.8rem;
  line-height: var(--lh-normal);
}

/* === FOOTER BOTTOM === */
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: var(--fs-xs);
  color: #888;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* Header mobile */
  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem var(--section-px);
    border-bottom: 1px solid var(--border);
    gap: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle {
    display: block;
  }

  /* Hero mobile */
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-xl {
    font-size: 5rem;
    top: 5%;
    right: 3%;
  }

  /* Two columns → stack */
  .two-col,
  .two-col-reverse {
    flex-direction: column;
  }

  .quinconce-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .quinconce-reverse {
    direction: ltr;
  }

  /* Footer → stack */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Modal */
  dialog {
    width: 95vw;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1rem 1.2rem;
  }

  .modal-body {
    padding: 1.2rem;
    max-height: calc(90vh - 60px);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }
}
