/* ===================== */
/*     PAGE ACCUEIL      */
/* ===================== */

/* Texte accessible aux lecteurs d'écran uniquement */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ===================== */
/*  SECTION PRESENTATION */
/* ===================== */

.accueil-presentation {
  background: #f5f0eb;
  padding: 7rem 2rem;
}

.accueil-presentation__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.accueil-presentation__texte {
  max-width: 760px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.accueil-label {
  font-size: clamp(14px, 2vw, 25px);      /* 25px desktop → réduit en mobile */
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #734A26;
  margin-bottom: 1.5rem;
}

.accueil-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 60px);      /* 60px desktop → 32px mini en mobile */
  font-weight: 400;
  color: #1e3d26;
  line-height: 1.15;
  margin: 0 0 1.6rem;
}

.accueil-intro {
  color: #5a6e5d;
  font-size: clamp(16px, 1.6vw, 20px);    /* 20px desktop → 16px en mobile */
  line-height: 1.9;
  margin: 0;
}

.accueil-intro strong {
  color: #1e3d26;
}

/* Ornement trait - feuille - trait */
.accueil-ornement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.accueil-ornement span {
  width: 60px;
  height: 1px;
  background: rgba(30, 61, 38, 0.25);
}


/* Cartes vers les pages */
.accueil-cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.accueil-carte {
  display: block;
  padding: 2.8rem 2.2rem;
  background: #ffffff;
  border: 1px solid rgba(30, 61, 38, 0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.accueil-carte:hover {
  border-color: rgba(141, 198, 63, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 61, 38, 0.1);
}

.accueil-carte h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #1e3d26;
  margin: 0 0 0.7rem;
}

.accueil-carte p {
  font-size: 1rem;
  color: #5a6e5d;
  line-height: 1.7;
  margin: 0 0 1.6rem;
}

.accueil-carte__lien {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #734A26;
  border-bottom: 1px solid rgba(115, 74, 38, 0.4);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.accueil-carte:hover .accueil-carte__lien {
  color: #1e3d26;
  border-color: #1e3d26;
}


/* ===================== */
/*      RESPONSIVE       */
/* ===================== */

/* Tablette : cartes sur 2 colonnes puis 1 */
@media (max-width: 900px) {
  .accueil-cartes {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  .accueil-presentation {
    padding: 3.5rem 1.5rem;
  }

  .accueil-presentation__texte {
    margin-bottom: 2.5rem;
  }

  .accueil-label {
    letter-spacing: 0.2em;      /* moins d'espacement, sinon ça déborde */
  }

  .accueil-cartes {
    gap: 1.2rem;
  }

  .accueil-carte {
    padding: 1.8rem 1.5rem;
  }

  .accueil-carte h3 {
    font-size: 1.3rem;
  }
}