@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

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

:root {
  --color-primary: #F44336;
  --color-primary-light: #E57373;
  --color-primary-dark: #C62828;
  --color-accent: #d4a843;
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.14);
  --transition: .2s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

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

/* Décalage ancres pour nav fixe */
[id] { scroll-margin-top: 96px; }

/* ===== Layout ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-text);
}

/* ===== Dropdown ===== */
.has-dropdown { position: relative; }

.nav-chevron {
  font-size: .75rem;
  margin-left: .4rem;
  color: var(--color-text-muted);
  transition: transform .25s ease, color .2s ease;
  transform-origin: center center;
  display: inline-block;
  line-height: 1;
}

.has-dropdown:hover .nav-chevron,
.has-dropdown > a.active .nav-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 190px;
  padding: .75rem 0 .4rem;
  list-style: none;
  z-index: 200;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-border);
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .9rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.dropdown li a::after { display: none; }

.dropdown li a:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,110,73,.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; border-radius: var(--radius); }

/* ===== Carousel ===== */
.carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 420px;
  overflow: hidden;
  background: #1a1a1a;
  padding: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-caption {
  text-align: center;
  color: #fff;
  padding: 2.5rem 3rem;
  max-width: 700px;
  background: rgba(0, 0, 0, .35);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.carousel-caption h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}

.carousel-caption p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.75rem;
}

/* Boutons flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, .35);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, .3);
  border-color: rgba(255, 255, 255, .7);
}

.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.carousel-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

/* ===== Sections ===== */
section { padding: 5rem 0; }

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== Présentation 3 colonnes ===== */
.presentation { background: var(--color-surface); }

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
}

.presentation-col p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.presentation-col p:last-child { margin-bottom: 0; }

.presentation-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.presentation-center img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.presentation-patois p {
  font-style: italic;
  color: var(--color-text-muted);
}

.patois-audio {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  height: 36px;
  accent-color: var(--color-primary);
}

/* ===== Section Chants ===== */
.chants { background: var(--color-bg); }

.chants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.chants-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.chants-text p:last-of-type { margin-bottom: 0; }

.chants-patois {
  font-style: italic;
}

.chants-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* ===== Section Théâtre ===== */
.theatre { background: var(--color-surface); }

.theatre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.theatre-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.theatre-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.theatre-text p:last-of-type { margin-bottom: 0; }

.theatre-patois {
  font-style: italic;
}

@media (max-width: 768px) {
  .theatre-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .theatre-image { order: -1; }
}

@media (max-width: 768px) {
  .chants-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .presentation-center img { max-height: 200px; }
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--color-text);
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--color-primary-dark);
}

.card p { color: var(--color-text-muted); font-size: .95rem; }

/* ===== Services ===== */
.services { background: var(--color-surface); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta h2 { color: #fff; margin-bottom: .75rem; }
.cta p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.cta .btn-primary:hover {
  background: #b8912d;
  border-color: #b8912d;
  color: #fff;
}

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-text h2 { margin-bottom: 1.25rem; }

.visual-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.stat {
  font-size: 1rem;
  color: var(--color-text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.stat:last-child { border-bottom: none; padding-bottom: 0; }

.stat span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

/* ===== Values ===== */
.values { background: var(--color-surface); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--color-text-muted); margin-bottom: 2rem; }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--color-text-muted);
  font-size: .95rem;
}

.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }

/* ===== Form ===== */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text);
}

label span { color: #e53e3e; margin-left: .15rem; }

input, textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44,110,73,.15);
}

input.invalid, textarea.invalid {
  border-color: #e53e3e;
}

textarea { resize: vertical; }

.field-error {
  font-size: .82rem;
  color: #e53e3e;
  min-height: 1em;
}

.form-notice {
  text-align: center;
  margin-top: 1rem;
  font-size: .9rem;
  min-height: 1.4em;
}

.form-notice.success { color: var(--color-primary); font-weight: 600; }
.form-notice.error { color: #e53e3e; }

/* ===== Footer ===== */
footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.6);
  padding: 2rem 0;
  text-align: center;
  font-size: .875rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: .5rem;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  nav { position: relative; }

  /* Dropdowns toujours visibles sur mobile */
  .dropdown {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    padding: .25rem 0 .25rem .75rem;
    margin-top: .25rem;
  }

  .dropdown::before { display: none; }
  .nav-chevron { display: none; }

  .carousel { height: calc(100vh - 80px); min-height: 320px; }
  .carousel-btn { width: 38px; height: 38px; font-size: .9rem; }
  .carousel-prev { left: .75rem; }
  .carousel-next { right: .75rem; }
  .carousel-caption { padding: 1.5rem; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
