/* ============================================================
   DARONNES — accueil.css
   ============================================================ */

@font-face {
  font-family: 'Robaga';
  src: url('Robaga_Rounded_Thin.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ---- Reset & base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --amber:      #c87820;
  --page-width: 850px;
  --header-h:   auto;
  --nav-h:      60px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Robaga', Georgia, serif;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============================================================
   STICKY BLOCK
   ============================================================ */

.sticky-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-width);
  z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(200, 120, 30, 0.2);
  box-shadow: 0 4px 40px rgba(0,0,0,0.85);
}

/* ---- Header ---- */
header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  padding: 0;
}

.header-logo {
  display: block;
  /* Image centrée, max 700px (sa taille native), jamais plus large que le body */
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ---- Nav ---- */
nav {
  width: 100%;
  /* padding au lieu de height fixe : compatible tous navigateurs */
  padding: 12px 8px;
  background: #000;
  border-top: 1px solid rgba(200, 120, 30, 0.12);
}

.nav-list {
  list-style: none;
  /* prefixes webkit pour Safari Mac */
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-list li {
  display: block;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  line-height: 0;
}

.nav-link {
  display: block;
  text-decoration: none;
  outline: none;
  position: relative;
  line-height: 0;
}

/* Nav images */
.nav-img {
  display: block;
  height: 36px;
  width: auto;
  filter:
    drop-shadow(0 0 6px rgba(200, 120, 30, 0.4))
    drop-shadow(0 0 16px rgba(180, 90, 10, 0.2));
  transition:
    filter 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: filter, transform;
  user-select: none;
  -webkit-user-drag: none;
}

.nav-link:hover .nav-img,
.nav-link:focus .nav-img {
  filter:
    drop-shadow(0 0 10px rgba(220, 140, 40, 0.95))
    drop-shadow(0 0 28px rgba(200, 100, 20, 0.6))
    drop-shadow(0 0 4px rgba(255, 200, 80, 0.5));
  transform: scale(1.12) translateY(-3px);
}

.nav-link::after {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  border: 1px solid rgba(210, 130, 30, 0);
  transform: scale(0.9);
  transition: border-color 0.2s, transform 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}

.nav-link:active::after {
  border-color: rgba(210, 130, 30, 0.6);
  transform: scale(1.15);
  opacity: 1;
  transition: none;
}

/* ============================================================
   MAIN — décalage sous le sticky
   ============================================================ */

main {
  max-width: var(--page-width);
  margin: 0 auto;
  /* La hauteur sticky est calculée en JS et injectée via --sticky-h */
  padding-top: calc(var(--sticky-h, 250px) + 60px);
  padding-bottom: 60px;
  width: 100%;
}

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

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 40px 48px;
  border-bottom: 1px solid rgba(200, 120, 30, 0.1);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.container 
{
display: flex;
justify-content: center;
 }

.section, h2 {
 color: var(--amber);
 }
 
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section:last-child {
  border-bottom: none;
}

.section::before {
  content: '';
  display: block;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  margin: 0 auto 48px;
  opacity: 0.5;
}

.section-title {
  font-family: 'Robaga', Georgia, serif;
  font-size: 2rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
  text-shadow:
    0 0 20px rgba(200, 120, 30, 0.4),
    0 0 60px rgba(180, 90, 10, 0.2);
}

.section-text {
  font-family: 'Robaga', Georgia, serif;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

/* ---- Extraits ---- */
.placeholder-media {
  margin-top: 40px;
  border: 1px solid rgba(200, 120, 30, 0.25);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  color: rgba(200, 120, 30, 0.6);
  font-family: 'Robaga', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* ---- Dates ---- */
.dates-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border: 1px solid rgba(200, 120, 30, 0.2);
  border-radius: 2px;
  background: rgba(200, 120, 30, 0.04);
  transition: background 0.3s, border-color 0.3s;
}

.date-item:hover {
  background: rgba(200, 120, 30, 0.1);
  border-color: rgba(200, 120, 30, 0.5);
}

.date-day {
  font-family: 'Robaga', Georgia, serif;
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: 0.05em;
}

.date-lieu {
  font-family: 'Robaga', Georgia, serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}

/* ---- Contact ---- */
.contact, a {
  color: var(--amber); text-decoration:none
	}
.contact-info {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.contact-line {
  font-family: 'Robaga', Georgia, serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.contact-line:hover { color: var(--amber); }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 32px 40px;
  text-align: center;
  border-top: 1px solid rgba(200, 120, 30, 0.12);
}

.footer-text {
  font-family: 'Robaga', Georgia, serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 850px) {
  .header-logo {
    max-width: 100%;
  }
}

/* Mobile moyen */
@media (max-width: 600px) {
  :root {
    --nav-h: 52px;
  }

  .nav-img {
    height: 28px;
  }

  .nav-list {
    gap: 8px;
  }

  .section {
    padding: 60px 20px;
  }

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

  .date-item {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 14px 16px;
  }
}

/* Petit mobile */
@media (max-width: 380px) {
  .nav-img {
    height: 22px;
  }

  .nav-list {
    gap: 6px;
  }

  .section-title {
    font-size: 1.2rem;
  }
}
