/* ========================================================================
   LE SOMMET DU PATRIMOINE VIVANT
   Direction : sobre, prestigieux, classique. Sections clairement délimitées.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:ital,wght@0,500;0,600;1,400&display=swap');

/* ------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------ */
:root {
 /* Palette — crème / bordeaux (sobre, classique) */
  --c-creme:        #FAF6EC;   /* fond principal */
  --c-creme-soft:   #F2EBDA;   /* fond nuancé pour alternance */
  --c-white:        #FFFFFF;
  --c-encre:        #1A1411;   /* texte principal */
  --c-encre-soft:   #3D2D26;   /* texte secondaire */
  --c-cendre:       #8B7A6B;   /* texte tertiaire */
  --c-pourpre:      #7A1F2C;   /* accent (titres section, badges) */
  --c-pourpre-deep: #5A1620;
  --c-or:           #A88845;   /* filets décoratifs */
  --c-border:       #E8DFCB;   /* bordures, séparateurs */

  /* Texte sur fond sombre (hero, footer, CTA final) */
  --c-text-on-dark:      #FAF6EC;
  --c-text-on-dark-soft: #D8CDB6;
  --c-encre-deep:        #1A1411;  /* fond sombre footer/cta */

  /* RGB utilisables dans rgba() */
  --rgb-encre:   26, 20, 17;
  --rgb-creme:   250, 246, 236;
  --rgb-pourpre: 122, 31, 44;
  /* Typographie — institutionnelle, lisible */
  --f-display: 'Lora', 'Georgia', serif;
  --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Échelle typo restreinte */
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1rem;
  --t-md:   1.1875rem;
  --t-lg:   1.5rem;
  --t-xl:   2rem;
  --t-2xl:  2.75rem;
  --t-3xl:  3.75rem;

  /* Espacements */
  --s-xs: 0.5rem;
  --s-sm: 1rem;
  --s-md: 1.75rem;
  --s-lg: 3rem;
  --s-xl: 5rem;
  --s-2xl: 7rem;

  /* Layout */
  --container:       1200px;
  --container-tight: 800px;

  /* Animation */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast: 200ms;
  --d-med:  400ms;
}
@media (min-width: 768px) {
  :root {
    --t-xl:  2.5rem;
    --t-2xl: 3.5rem;
    --t-3xl: 5rem;
  }
}

/* ------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--c-encre);
  background: var(--c-creme);
  overflow-x: hidden;
}

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

a { color: var(--c-pourpre); text-decoration: none; transition: color var(--d-fast); }
a:hover { color: var(--c-pourpre-deep); }

button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--c-encre);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--c-pourpre); color: var(--c-text-on-dark); }

/* ------------------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-md);
}
.container--tight { max-width: var(--container-tight); }

.section {
  padding: var(--s-2xl) 0;
}
.section--soft {
  background: var(--c-creme-soft);
}

.section__header {
  max-width: 720px;
  margin: 0 auto var(--s-lg);
  text-align: center;
}
.section__title {
  font-size: var(--t-2xl);
  font-weight: 500;
  color: var(--c-pourpre);
  margin-bottom: var(--s-sm);
}
.section__lede {
  font-size: var(--t-md);
  color: var(--c-encre-soft);
  font-style: italic;
}

/* Filet décoratif sous le titre de section */
.section__header::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--c-or);
  margin: var(--s-sm) auto 0;
}

.grid {
  display: grid;
  gap: var(--s-md);
}
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------------
   4. PROSE (texte courant des sections éditoriales)
   ------------------------------------------------------------------------ */
.prose {
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--c-encre-soft);
}
.prose p { margin-bottom: 1.2em; }
.prose__highlight {
  font-family: var(--f-display);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--c-pourpre);
  border-left: 2px solid var(--c-pourpre);
  padding-left: var(--s-md);
  margin-top: var(--s-md);
  line-height: 1.45;
}
.prose__sep {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--s-md) 0;
  width: 60px;
}

/* ------------------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-sm) 0;
  transition: background var(--d-med) var(--ease), border-color var(--d-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(var(--rgb-creme), 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  color: var(--c-text-on-dark);
  transition: color var(--d-med);
}
.site-header.is-scrolled .site-logo { color: var(--c-encre); }

.site-logo__wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--f-display);
  letter-spacing: 0.06em;
}
.site-logo__line1 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}
.site-logo__line2 {
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}
.site-logo--footer .site-logo__line1 { font-size: 1.15rem; }
.site-logo--footer .site-logo__line2 { font-size: 1rem; }

.site-nav {
  display: none;
  align-items: center;
  gap: var(--s-md);
}
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--c-text-on-dark);
  position: relative;
  padding: 0.5em 0;
  transition: color var(--d-fast);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--d-fast) var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.site-header.is-scrolled .site-nav a { color: var(--c-encre); }
.site-header.is-scrolled .site-nav a:hover { color: var(--c-pourpre); }

/* Menu mobile */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 110;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--c-text-on-dark);
  transition: transform var(--d-med) var(--ease), opacity var(--d-fast), background var(--d-med);
}
.site-header.is-scrolled .menu-toggle span { background: var(--c-encre); }
.menu-toggle[aria-expanded="true"] span { background: var(--c-encre); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--c-creme);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-md);
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-med) var(--ease), visibility var(--d-med);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--c-encre);
}
.mobile-nav a:hover { color: var(--c-pourpre); }

/* ------------------------------------------------------------------------
   6. HERO — image unique
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--s-xl);
  overflow: hidden;
  background: var(--c-encre-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(var(--rgb-encre), 0.55) 0%,
    rgba(var(--rgb-encre), 0.65) 50%,
    rgba(var(--rgb-encre), 0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero__kicker {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-on-dark);
  opacity: 0.85;
  margin-bottom: var(--s-md);
}
.hero__kicker sup { letter-spacing: 0; text-transform: none; }

.hero__title {
  font-size: var(--t-3xl);
  font-weight: 500;
  line-height: 1.05;
  color: var(--c-text-on-dark);
  margin-bottom: var(--s-md);
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.hero__tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--c-text-on-dark);
  margin-bottom: var(--s-md);
  max-width: 36ch;
  line-height: 1.3;
}

.hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  padding: var(--s-sm) 0;
  margin-bottom: var(--s-md);
  font-size: var(--t-md);
  color: var(--c-text-on-dark);
  border-top: 1px solid rgba(var(--rgb-creme), 0.25);
  border-bottom: 1px solid rgba(var(--rgb-creme), 0.25);
}
.hero__meta strong { font-weight: 600; }
.hero__meta-sep { opacity: 0.5; }

.hero__note {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-text-on-dark);
  opacity: 0.75;
  margin: 0;
}

/* ------------------------------------------------------------------------
   7. PHOTO BAND — mosaïque limitée à la largeur du contenu
   ------------------------------------------------------------------------ */
.photo-band {
  background: var(--c-creme);
  padding: 0 0 var(--s-2xl);  /* respire en bas, pas de fond pleine largeur */
}
.photo-band__grid {
  max-width: var(--container);  /* alignement avec le contenu */
  margin: 0 auto;
  padding: 0 var(--s-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.photo-band__item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.photo-band__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.photo-band__item:hover img { transform: scale(1.04); }

@media (min-width: 700px) {
  .photo-band__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }
  /* 1re photo vedette : 2 colonnes × 2 rangées */
  .photo-band__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  /* 4e photo : paysage (2 colonnes) */
  .photo-band__item:nth-child(6) {
    grid-column: span 2;
  }
  /* 5e photo : portrait vertical (2 rangées) */
  .photo-band__item:nth-child(5) {
    grid-row: span 2;
  }
  /* 8e photo : portrait vertical */
  .photo-band__item:nth-child(8) {
    grid-row: span 2;
  }
  .photo-band__item { aspect-ratio: auto; }
}

@media (min-width: 1024px) {
  .photo-band__grid { grid-auto-rows: 220px; }
}

/* ------------------------------------------------------------------------
   8. CARDS — Les ingrédients
   ------------------------------------------------------------------------ */
.card {
  padding: var(--s-md);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.card:hover {
  border-color: var(--c-pourpre);
  box-shadow: 0 8px 24px -16px rgba(var(--rgb-pourpre), 0.25);
}
.card__title {
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--c-pourpre);
  margin-bottom: var(--s-sm);
  line-height: 1.25;
}
.card__body {
  font-size: var(--t-base);
  color: var(--c-encre-soft);
  line-height: 1.6;
}

/* ------------------------------------------------------------------------
   9. PROGRAMME — liste sobre
   ------------------------------------------------------------------------ */
.programme-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
}
.programme-list li {
  padding: var(--s-md) 0;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--c-encre);
  position: relative;
  padding-left: var(--s-lg);
}
.programme-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 1px;
  background: var(--c-or);
}

/* ------------------------------------------------------------------------
   10. LIEU
   ------------------------------------------------------------------------ */
.lieu {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-md);
  align-items: stretch;
  margin-bottom: var(--s-md);
}
@media (min-width: 900px) {
  .lieu { grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
}

.lieu__visual {
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--c-border);
}
@media (min-width: 900px) {
  .lieu__visual { aspect-ratio: auto; }
}
.lieu__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lieu__text {
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--c-encre-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lieu__text p { margin-bottom: 1.1em; }
.lieu__text p:first-child {
  font-family: var(--f-display);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--c-pourpre);
  line-height: 1.4;
}

.lieu__wide {
  margin: var(--s-md) 0 0;
  aspect-ratio: 21/9;
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.lieu__wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------------------
   11. PARTENAIRES
   ------------------------------------------------------------------------ */
.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .partners { grid-template-columns: repeat(4, 1fr); }
}

.partner {
  background: var(--c-white);
  padding: var(--s-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  transition: background var(--d-fast);
}
.partner img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.4);
  opacity: 0.85;
  transition: filter var(--d-fast), opacity var(--d-fast), transform var(--d-fast);
}
.partner:hover { background: var(--c-creme-soft); }
.partner:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
}

/* ------------------------------------------------------------------------
   12. CTA FINAL — bloc contact
   ------------------------------------------------------------------------ */
.cta-final {
  background: var(--c-encre-deep);
  padding: var(--s-2xl) 0;
  text-align: center;
  color: var(--c-text-on-dark);
}
.cta-final__title {
  font-size: var(--t-2xl);
  font-weight: 500;
  color: var(--c-text-on-dark);
  margin-bottom: var(--s-sm);
}
.cta-final__sub {
  font-size: var(--t-md);
  color: var(--c-text-on-dark-soft);
  margin-bottom: var(--s-md);
}
.cta-final__mail {
  display: inline-block;
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--c-text-on-dark);
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(var(--rgb-creme), 0.4);
  transition: border-color var(--d-fast), color var(--d-fast);
  word-break: break-word;
}
.cta-final__mail:hover {
  color: var(--c-text-on-dark);
  border-bottom-color: var(--c-text-on-dark);
}
.cta-final__note {
  margin-top: var(--s-md);
  font-family: var(--f-body);
  font-size: var(--t-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-text-on-dark-soft);
  opacity: 0.6;
}

/* ------------------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------------------ */
.site-footer {
  background: var(--c-encre-deep);
  color: var(--c-text-on-dark-soft);
  padding: var(--s-xl) 0 var(--s-md);
  border-top: 1px solid rgba(var(--rgb-creme), 0.1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-md);
  margin-bottom: var(--s-md);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr; gap: var(--s-lg); }
}

.footer__col .site-logo {
  margin-bottom: var(--s-sm);
  display: inline-flex;
  color: var(--c-text-on-dark);
}
.footer__brand {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--c-text-on-dark-soft);
  max-width: 38ch;
}

.footer__title {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-on-dark);
  margin-bottom: var(--s-sm);
}

.footer__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.footer__list a {
  font-size: var(--t-sm);
  color: var(--c-text-on-dark-soft);
  transition: color var(--d-fast);
  line-height: 1.4;
}
.footer__list a:hover { color: var(--c-text-on-dark); }

.footer__bottom {
  padding-top: var(--s-md);
  border-top: 1px solid rgba(var(--rgb-creme), 0.1);
  font-size: var(--t-xs);
  color: var(--c-text-on-dark-soft);
  opacity: 0.6;
}

/* ------------------------------------------------------------------------
   14. ACCESSIBILITÉ
   ------------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--c-pourpre);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
