:root {
  /* Couleurs de la charte */
  --fx-color-fond: #f9f5f0;
  --fx-color-surface: #e8dcc6;
  --fx-color-texte: #3a2e22;
  --fx-color-texte-secondaire: #6b5b47;
  --fx-color-accent: #8b6f47;
  --fx-color-accent-2: #5a7d3e;
  --fx-color-contraste: #d4754a;
  --fx-color-bordure: #a6937a;

  /* Polices */
  --fx-font-display: "Playfair Display", serif;
  --fx-font-body: "Source Serif 4", serif;
  --fx-font-accent: "Dancing Script", cursive;

  /* Espacements */
  --fx-spacing-s: 0.5rem;
  --fx-spacing-m: 1rem;
  --fx-spacing-l: 2rem;
  --fx-spacing-xl: 4rem;

  /* Ombres et effets */
  --fx-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --fx-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* Bordures */
  --fx-border-radius: 4px;
  --fx-border: 1px solid var(--fx-color-bordure);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--fx-font-body);
  font-size: 18px;
  line-height: 1.6;
  color: #332a20; /* Couleur plus foncée pour améliorer le contraste */
  background-color: var(--fx-color-fond);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23e8dcc6' fill-opacity='0.1'%3E%3Cpath d='M0 0h100v20H0zM0 40h100v20H0zM0 80h100v20H0z'/%3E%3C/g%3E%3C/svg%3E");
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Typographie */
h1, h2, h3, h4 {
  font-family: var(--fx-font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--fx-spacing-m) 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--fx-color-texte);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--fx-color-texte);
}

.card-title {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: var(--fx-color-texte);
  margin-top: 0;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--fx-color-accent);
}

/* Contraste des textes */
body {
  color: #332a20; /* Assombri pour améliorer le contraste */
}

.footer a {
  color: var(--fx-color-contraste);
}

p {
  margin: 0 0 var(--fx-spacing-m) 0;
}

em {
  font-family: var(--fx-font-accent);
  font-style: normal;
  color: var(--fx-color-accent-2);
  font-size: 1.2em;
}

/* Liens */
a {
  color: var(--fx-color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--fx-color-contraste);
}

/* Boutons et étiquettes */
.button {
  display: inline-block;
  padding: var(--fx-spacing-s) var(--fx-spacing-l);
  background-color: #332a20; /* Fond plus foncé pour améliorer le contraste */
  color: var(--fx-color-fond); /* Texte clair */
  border: none;
  border-radius: var(--fx-border-radius);
  font-family: var(--fx-font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: var(--fx-shadow);
}

.button:hover, .button:focus {
  background-color: var(--fx-color-accent); /* Fond clair au survol */
  color: var(--fx-color-texte); /* Texte foncé au survol */
}

.button-secondary {
  background-color: var(--fx-color-texte); /* Fond brun foncé */
  color: var(--fx-color-fond); /* Texte blanc cassé */
}

.button-secondary:hover, .button-secondary:focus {
  background-color: var(--fx-color-accent-2); /* Fond vert au survol */
  color: var(--fx-color-fond);
}

.button:hover, .button:focus {
  transform: translateY(-2px);
  box-shadow: var(--fx-shadow-hover);
}

.button:active {
  transform: translateY(0);
}

.button-secondary {
  background-color: var(--fx-color-accent-2);
}

.button-contrast {
  background-color: var(--fx-color-contraste);
}

@media (hover: none) {
  .button {
    box-shadow: var(--fx-shadow-hover);
  }
}

.tag {
  display: inline-block;
  padding: var(--fx-spacing-s) var(--fx-spacing-m);
  background-color: var(--fx-color-surface);
  border: var(--fx-border);
  border-radius: var(--fx-border-radius);
  font-size: 0.9rem;
  color: var(--fx-color-texte-secondaire);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
.section {
  padding: var(--fx-spacing-xl) var(--fx-spacing-l);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--fx-spacing-xl);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--fx-color-bordure);
  margin: var(--fx-spacing-m) auto;
}

/* Grille éditoriale */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--fx-spacing-xl);
  margin: var(--fx-spacing-xl) 0;
}

@media (max-width: 768px) {
  .hero-text, .place-text, .cta-content {
    max-width: 90%;
    margin: 0 auto;
  }
}

.card {
  background-color: var(--fx-color-surface);
  border: var(--fx-border);
  border-radius: var(--fx-border-radius);
  padding: var(--fx-spacing-l);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.card-title {
  font-family: var(--fx-font-display);
  font-size: 1.5rem;
  margin-top: 0;
}

/* Agenda */
.agenda {
  display: flex;
  gap: var(--fx-spacing-m);
  overflow-x: auto;
  padding: var(--fx-spacing-m) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--fx-color-accent) var(--fx-color-surface);
}

.agenda::-webkit-scrollbar {
  height: 8px;
}

.agenda::-webkit-scrollbar-thumb {
  background-color: var(--fx-color-accent);
  border-radius: 4px;
}

.agenda-item {
  flex: 0 0 200px;
  background-color: var(--fx-color-surface);
  border: var(--fx-border);
  border-radius: var(--fx-border-radius);
  padding: var(--fx-spacing-m);
  text-align: center;
}

/* Témoignages */
.testimonial {
  background-color: var(--fx-color-surface);
  border-left: 4px solid var(--fx-color-accent-2);
  padding: var(--fx-spacing-l);
  margin: var(--fx-spacing-l) 0;
  font-style: italic;
}

/* Pied de page */
.footer {
  background-color: var(--fx-color-texte);
  color: var(--fx-color-fond);
  padding: var(--fx-spacing-xl) var(--fx-spacing-l);
  text-align: center;
}

.footer a {
  color: #ff7a45; /* Couleur encore plus claire pour garantir un contraste suffisant */
  text-decoration: underline;
  font-weight: 700; /* Renforce la lisibilité */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3); /* Améliore la lisibilité sur fond foncé */
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: var(--fx-spacing-l) var(--fx-spacing-m);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Focus visible */
:focus {
  outline: 2px solid var(--fx-color-contraste);
  outline-offset: 2px;
}

/* En-tête */
.header {
  background-color: var(--fx-color-fond);
  padding: var(--fx-spacing-m) var(--fx-spacing-l);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--fx-border);
}

.logo {
  text-decoration: none;
}

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

.featured {
  background-color: var(--fx-color-fond);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--fx-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--fx-color-texte);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--fx-spacing-s);
}

.menu-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.menu-list {
  display: flex;
  gap: var(--fx-spacing-m);
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-link {
  font-family: var(--fx-font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--fx-spacing-s) var(--fx-spacing-m);
  border: var(--fx-border);
  border-radius: var(--fx-border-radius);
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #332a20; /* Couleur plus foncée pour améliorer le contraste */
}

.menu-link:hover {
  background-color: var(--fx-color-accent);
  color: var(--fx-color-fond);
}

/* Héros */
.hero {
  padding: var(--fx-spacing-xl) var(--fx-spacing-l);
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fx-spacing-xl);
}

.hero-text {
  max-width: 600px;
}

.hero-illustration {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.hero-illustration em {
  display: block;
  text-align: center;
  margin-top: var(--fx-spacing-m);
  font-size: 1.5rem;
}

/* Cartes éditoriales */
.card {
  position: relative;
  padding-bottom: var(--fx-spacing-xl);
}

.card-illustration {
  position: absolute;
  bottom: var(--fx-spacing-l);
  right: var(--fx-spacing-l);
  width: 100px;
  height: 80px;
}

.card-illustration svg {
  width: 100%;
  height: 100%;
}

/* Lieu */
.place {
  background-color: var(--fx-color-surface);
  padding: var(--fx-spacing-xl) 0;
}

.place-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fx-spacing-xl);
  padding: 0 var(--fx-spacing-l);
}

.place-text {
  max-width: 600px;
}

.place-illustration {
  max-width: 400px;
}

/* Agenda */
.agenda-section {
  text-align: center;
}

.agenda-item h3 {
  font-family: var(--fx-font-display);
  font-size: 1.2rem;
  margin: 0 0 var(--fx-spacing-s) 0;
  color: var(--fx-color-texte);
}

/* Témoignages */
.testimonials {
  text-align: center;
}

.testimonial {
  text-align: left;
}

.testimonial cite {
  font-family: var(--fx-font-accent);
  font-size: 1.1rem;
  color: var(--fx-color-accent-2);
}

/* Appel à l'action final */
.cta {
  background-color: var(--fx-color-surface);
  padding: var(--fx-spacing-xl) 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--fx-spacing-l);
}

/* Pied de page */
.footer {
  position: relative;
  background-color: var(--fx-color-texte);
  color: var(--fx-color-fond);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--fx-spacing-xl) var(--fx-spacing-l);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--fx-spacing-l);
  text-align: center;
}

.footer-illustration {
  margin-bottom: var(--fx-spacing-m);
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.footer-illustration svg {
  width: 100%;
  height: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--fx-spacing-l);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--fx-spacing-m);
  }

  .menu-toggle {
    display: block;
  }

  .menu-list {
    display: none;
    flex-direction: column;
    gap: var(--fx-spacing-s);
    width: 100%;
  }

  .menu-list.active {
    display: flex;
  }

  .menu-link {
    display: block;
    text-align: center;
  }

  .hero-content {
    flex-direction: column;
  }

  .place-content {
    flex-direction: column;
  }

  .card-illustration {
    position: static;
    margin: var(--fx-spacing-l) auto 0;
    width: 80px;
    height: 60px;
  }
}