/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --background: #f7f4f0;
  --foreground: #2d2520;
  --primary: #4a7a5a;
  --primary-foreground: #f9f7f4;
  --muted-foreground: #7a7068;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   Typography
   ============================================================ */
.font-serif {
  font-family: var(--font-serif);
}

.eyebrow {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 247, 244, 0.75);
  margin-bottom: 1rem;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: #f5efe6;
  padding: 0 2rem;
  height: 72px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: 72px;
}

.navbar-logo img {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.navbar-links a {
  text-decoration: none;
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-links a:hover {
  color: var(--primary);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 37, 32, 0.48);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: #f9f7f4;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.hero-address {
  color: rgba(249, 247, 244, 0.9);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 1rem;
}

.hero-sub {
  color: rgba(249, 247, 244, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ============================================================
   Présentation / Grille photos
   ============================================================ */
.section-presentation {
  background: var(--background);
  padding: 5rem 2rem;
}

.presentation-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.presentation-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--foreground);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.presentation-address {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.05em;
}

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

.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ============================================================
   Planning
   ============================================================ */
.planning-inner {
  max-width: 100%;
  width: 100%;
  padding: 0 1.5rem;
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.planning-carousel {
  display: none;
}

.day-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.day-header {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.slot {
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  min-height: 90px;
  justify-content: center;
  min-width: 0;
}

.slot.empty {
  background: transparent;
  min-height: 90px;
}

.slot.orange {
  background: #e8a020;
  color: #fff;
}

.slot.yellow {
  background: #9b59b6;
  color: #fff;
}

.slot.pink {
  background: #a0325a;
  color: #fff;
}

.slot.orange-light {
  background: #e8a020;
  color: #fff;
}

.slot.blue {
  background: #2e6da4;
  color: #fff;
}

.slot.green {
  background: #3a6a35;
  color: #fff;
}

.slot.purple {
  background: #5cb85c;
  color: #fff;
}

.slot-name {
  font-weight: 600;
  font-size: 0.68rem;
  line-height: 1.2;
}

.slot-teacher {
  font-size: 0.65rem;
  opacity: 0.9;
}

.slot-time {
  font-weight: 700;
  font-size: 0.78rem;
}

.slot-link {
  font-size: 0.63rem;
  color: #fff;
  opacity: 0.85;
  text-decoration: underline;
  margin-top: 0.2rem;
}

.planning-year {
  font-size: 1.4rem;
  font-weight: 400;
  color: #000;
}

#location .section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

#planning .section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* ============================================================
   Smooth scroll
   ============================================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem;
  scroll-margin-top: 72px;
}

.section-alt {
  background: #eee9e3;
}

.section-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
  padding: 0 1rem;
}

/* Override pour la section location : titre plus petit */
#location .section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

#location {
  padding: 2rem 1rem;
}
#planning {
  padding: 2rem 0;
}

#planning .section-inner {
  max-width: 100%;
  padding: 0;
}

#planning .planning-inner {
  padding: 0 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-call {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-call:hover {
  background: #3a6a4a;
}

.location-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.location-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1a3a5c;
}

.location-inline {
  font-size: 1.05rem;
  color: #1a3a5c;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.location-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 1rem;
  text-align: left;
  display: inline-block;
}

.location-list li {
  font-size: 1.05rem;
  color: #1a3a5c;
  line-height: 1.8;
}

.location-list li::before {
  content: "— ";
  color: var(--primary);
}

.contact-info {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--foreground);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ============================================================
   Logo
   ============================================================ */
.site-logo {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  width: 160px;
  z-index: 100;
}

/* ============================================================
   Responsive — Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    grid-template-columns: 1fr;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .navbar-logo {
    height: auto;
    justify-content: center;
  }

  .navbar-logo img {
    height: 40px !important;
  }

  .navbar-links {
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-left: 0;
  }

  .navbar-links a {
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
  }

  .hero-content {
    padding: 1rem;
    max-width: 100%;
  }

  /* Grille photos */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid img {
    height: 180px;
  }

  /* Planning */
  #planning {
    padding: 4rem 0.5rem;
  }

  .planning-grid {
    display: none;
  }

  .planning-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 1rem;
    padding-right: 15%;
  }

  .day-column {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: 0 0.75rem;
    overflow: visible;
  }

  .day-column:last-child {
    margin-right: 0;
  }

  .day-header {
    font-size: 1rem;
  }

  .slot {
    min-height: auto;
    padding: 0.8rem 0.5rem;
  }

  .slot-time {
    font-size: 0.8rem;
  }

  .slot-name {
    font-size: 0.7rem;
  }

  .slot-teacher {
    font-size: 0.65rem;
  }

  .slot-link {
    font-size: 0.6rem;
  }

  /* Sections */
  .section {
    padding: 4rem 1.2rem;
  }

  .section-inner {
    padding: 0;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  /* Location texte inline */
  .location-inline {
    font-size: 0.95rem;
    white-space: normal;
  }

  /* Contact */
  .contact-info {
    font-size: 0.95rem;
  }

  /* Bouton */
  .btn-call {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}
