/* Réinitialisation */
* {
  box-sizing: border-box;
}

body {
  margin: auto;
}

/** FOOTER COMMUN **/
footer {
  width: 100%;
  align-items: center;
  left: 0px;
  bottom: 0px;
  background-color: #2b0f0f;
  color: rgba(228, 224, 214, 1);
}

/***********************************************/
/*********   1/3  SECTION FOOTER TOP   ********* /
/************************************************/

.footerTop {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 2rem 0;
  justify-content: space-around;
  width: 100%;
}

/* titres */
footer h2 {
  font-size: 46px;
  font-weight: lighter;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  color: var(--marron-clair-titre);
  text-decoration: underline;
  text-align: center;
  font-family: "Italianno", cursive, "Segoe UI", sans-serif;
}

footer h3 {
  text-align: center;
  font-size: 30px;
  font-family: "Italianno", cursive;
  margin-bottom: auto;
}

/*Liens */

a {

  font-family: 'Kiwi Maru', serif;
}

footer a {
  text-decoration: none;
  color: var(--marron-clair-titre);
  font-family: 'Kiwi Maru', serif;

}

.planSite {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.planSite a:hover {
  text-decoration: underline;
  color: var(--marron-clair-titre);
}

.planSite li {
  list-style: none;
  font-family: "Kiwi Maru", serif, Georgia, "Times New Roman", Times;
  color: var(--marron-clair-titre);
  font-size: 16px;
  line-height: 1em;
  padding-bottom: 1.5rem;
}

.listplan {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 0 0 5px 0;
  margin-top: 0;
}

/* BOUTON DON */
.btn-don {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: 'Kiwi Maru', serif;
  font-size: 20px;
  width: 215px;
  height: 61px;
  margin: 0 0 1rem;
  background: #a79d84;
  border: 4px solid #635531;
  border-radius: 50px;
  cursor: pointer;
  color: #2b0f0f;
  text-decoration: none;
}

/* ATELIERS ET BOUTIQUES */
/* Style commun aux sections */

.ateliers-boutiques {
  display: flex;
  flex-wrap: wrap;
  gap: 6rem;
  /* gère l'espace entre le bloc ateliers et le bloc boutiques*/
  justify-content: center;
}

.ateliers {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

/* ---------------------------------------------------------------
   ACCORDÉON — motif <button aria-expanded> + panneau frère [hidden]
   C'est .accordion qui porte la pastille (fond, bordure, arrondi) :
   le bouton et le panneau s'affichent DANS cette pastille, ce qui
   reproduit le rendu d'origine tout en gardant le panneau hors du
   bouton (obligatoire : un bouton ne peut pas contenir de liens).
   --------------------------------------------------------------- */

.accordion {
  width: 230px;
  max-width: 230px;
  margin: 0 auto 3rem;
  align-self: center;
  justify-self: center;
  background-color: #a79d84;
  border: 4px solid #635531;
  border-radius: 40px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.accordion:hover {
  background-color: #d3c49a;
}

/* Le <h3> qui enveloppe le bouton ne doit pas hériter de footer h3 */
.accordion-heading {
  margin: 0;
}

/* Le bouton : plus d'habillage propre, il hérite de la pastille */
.accordion-label {
  display: block;
  width: 100%;
  padding: 0.5rem 0.5rem;
  text-align: center;
  background: none;
  border: 0;
  font-size: 32px;
  font-family: "Italianno", cursive, "Segoe UI", sans-serif;
  color: #2b0f0f;
  cursor: pointer;
}

.accordion-label:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -4px;
  border-radius: 40px;
}

/* Panneau dépliable — masqué via l'attribut [hidden].
   Ne PAS déclarer de `display` ici : il l'emporterait sur [hidden]
   et le panneau resterait ouvert en permanence. */
.accordion .content {
  padding: 0 0.75rem 0.75rem;
  text-align: center;
  color: #2b0f0f;
  font-family: "Kiwi Maru", serif, Georgia, "Times New Roman", Times;
  font-size: 1rem;
  line-height: 1.3;
}

.accordion .content p {
  margin: 0.5rem 0 0;
}

/* Liens dans le contenu */
.accordion .content a {
  display: block;
  color: #2b0f0f;
  margin: 0.5rem 0;
}

.accordion .content a:hover {
  text-decoration: underline;
}

/* Conteneur global pour le titre + la grille */
.boutiques-wrapper {
  max-width: 100%;
  justify-items: center;
}

/* Grille des boutiques */
.boutiques {
  display: grid;
  gap: 0 2rem;
  justify-items: center;
  align-items: start;
  justify-content: center;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

/**********************************************/
/*****   2/3  SECTION BARRE DE SÉPARATION  ****/
/**********************************************/

.bar {
  width: 90%;
  height: 5px;
  margin: 0 auto;
  background-color: #a79d84;
  flex-direction: row-reverse;
}

/******************************************/
/*****  3/3  SECTION FOOTER BOTTOM   *****/
/******************************************/

.footerBottom {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 30px 20px;
  font-family: "Kiwi Maru", serif, Georgia, "Times New Roman", Times;
  font-size: 18px;
}

.footerBottom article a {
  padding: 0.5rem 0 1rem;
}

.footerBottom .aggregotech {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.footerBottom .mentionsLegales {
  display: flex;
  flex-direction: row;
  align-items: center;
}

article.reseauxSociaux {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem;
  justify-items: center;
}

.reseauxSociaux a:hover {
  text-decoration: none;
}

.reseauxSociaux img {
  transition: filter 0.3s ease;
}

.reseauxSociaux img:hover {
  filter: brightness(1.2) saturate(1.4);
}

/******************************************************************************/
/*************************   MEDIAS QUERIES - RESPONSIVE   ********************/
/******************************************************************************/

@media (max-width: 1000px) {
  .boutiques {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    column-gap: 1rem;
    row-gap: 0;
  }

  .ateliers-boutiques {
    gap: 4rem;
  }

  .accordion {
    margin-bottom: 2rem;
  }

  .planSite {
    display: none;
  }
}

@media (max-width: 768px) {
  .boutiques {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0rem;
  }

  .ateliers {
    margin: 1rem;
  }

  .ateliers-boutiques {
    gap: 3rem;
  }

  .accordion {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
  }

  .footerTop {
    flex-direction: column;
    align-items: center;
  }

  .ateliers {
    order: 1;
  }

  .boutiques-wrapper {
    order: 2;
  }

  .planSite {
    display: none;
  }

  .footerBottom {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .aggregotech {
    order: 3;
  }

  .mentionsLegales {
    order: 2;

  }

  .reseauxSociaux {
    order: 1;
  }
}

/***************************************************/

@media (max-width: 425px) {
  .ateliers-boutiques {
    flex-direction: column;
    align-items: center;
  }

  .ateliers {
    margin-bottom: 0;
  }

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

  .footerBottom {
    flex-direction: column;
    align-items: center;
  }

  .aggregotech {
    order: 3;
  }

  .mentionsLegales {
    order: 2;

  }

  .reseauxSociaux {
    order: 1;
  }
}
