/* ========== PAGE CONTACT GLOBALE ========== */
.contact-page {
  padding: 20px 340px;
  background-color: var(--couleur-noir);
  color: white;
}

/* ========== HEADER ========== */


.contact_titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 250px;
  width: 100%;
}

.contact_titles h1 {
  margin: 0;
}

.contact_titles h2 {
  font-size: 64px;
  margin: 0;}

/* ========== GRILLE DES BLOCS ========== */

.contact-box {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-areas:
        "local aggre aggre aggre mascotte"
        "play coordonnees coordonnees coordonnees stop"
        "motif-left reseaux reseaux reseaux motif-right";
  column-gap: 40px;
  row-gap: 40px;
  justify-items: center;
  padding: 40px;
  border: 4px solid white;
  border-radius: 20px;
}

/* AFFECTATION DES BLOCS À LA GRILLE */
.item-local    { grid-area: local; }
.item-aggre    { grid-area: aggre; }
.item-mascotte { grid-area: mascotte; }
.item-play     { grid-area: play; }
.item-adresse  { grid-area: adresse; }
.item-contact  { grid-area: contact; }
.item-stop     { grid-area: stop; }
.item-motif-left  { grid-area: motif-left; }
.item-insta    { grid-area: insta; }
.item-facebook { grid-area: facebook; }
.item-twitter  { grid-area: twitter; }
.item-motif-right  { grid-area: motif-right; }

/* ========== STYLE DES BLOCS ========== */
.bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13px;
  border: 2px solid white;
  border-radius: 24px;
  border-bottom: 10px solid white;
  border-right: 10px solid white;
  width: 100%;
  max-width: 170px;
  transition: transform 0.3s ease;
}

.item-play,
.item-stop,
.item-motif-left,
.item-motif-right {
  border: none;
  border-radius: 0;
  background-color: transparent;
}

.item-reseaux {
  grid-area: reseaux;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 50px;
}

.item-coordonnees {
  grid-area: coordonnees;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 25px;
}

.item-reseaux .item-coordonnees .bloc {
  height: auto;
  width: 100%;}

.bloc:hover {
  transform: scale(1.05);
}


.item-local,
.item-mascotte {
  height: 40%;
  width: auto;
}

.item-contact img {
  width: 27%;
  height: auto;
  object-fit: contain;
}

.item-aggre {
  grid-area: aggre;
  background-color: #fff;
  width: 100%;
  height: 225px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.item-aggre img {
  width: 75%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


.item-adresse,
.item-contact {
  background-color: #fff;
  color: black;
  max-width: none;
  height: 190px;
  margin: 0;
}

.contact-box .item-adresse p,
.contact-box .item-contact p {
 width: 100%;
}

.item-mascotte img,
.item-local img{
  height: auto;
  width: 70%;
  object-fit: contain;
}

.item-insta img,
.item-facebook img,
.item-twitter img,
.item-motif img {
  height: auto;
  object-fit: contain;
}

/* ========== FORMULAIRE DE CONTACT ========== */
.formulaire-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  margin: 50px auto 0;
  border-radius: 20px;
}



.formulaire-contact input,
.formulaire-contact textarea {
  padding: 15px;
  border-radius: 15px;
  border: 1px solid white;
  background-color: transparent;
  color: white;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--couleur-noir);

  &.is-valid {
    border: 2px solid var(--couleur-blanc);
    background-color: var(--couleur-noir);
  }

  &.is-invalid {
    border: 2px solid var(--couleur-rose);
    background-color: var(--couleur-noir);
  }
}

.formulaire-contact textarea {
  resize: vertical;
  min-height: 250px;
}

.button-main {
  display: block;             
  margin: 30px auto 0 auto;    
  padding: 15px 30px;
  cursor: pointer;
  text-align: center;
  width: fit-content;          
}

/* Checkbox du formulaire de contact */

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  margin: 10px 0;
  font-size: 16px;
  color: white;
}

.checkbox-wrapper input[type="checkbox"] {
  min-width: 18px;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: white;
}

.checkbox-wrapper label {
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-wrapper label a {
  color: white;
  text-decoration: underline;
}

/* ========== CARTE ========== */
.carte iframe {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  margin-top: 40px;
}

.carte {
  display: none;
}

.text_contact,
.text_local, 
.media-item, 
.local-item {
  display: none;
}

.alert {
  --color: #ffffff;
  font-family: var(--font-bold);
  border: solid var(--color) 3px;
  color: var(--couleur-blanc);
  margin-bottom: 1rem;
  border-radius: .5em;
  padding: 1em 2em;
  font-size: 18px;
  background-color: color-mix(in srgb, var(--color) 30%, transparent);

  &:has(ul), &.alert-error {
    --color: var(--couleur-rose);
  }

  &.alert-success {
    --color: var(--couleur-vert);
  }
}

.info:has(ul){
  --color: var(--couleur-rose);
  font-family: var(--font-bold);
  border: solid var(--color) 1px;
  background-color: color-mix(in srgb, var(--color) 30%, transparent);
  padding: 8px;
  border-radius: .5em;
  
  ul {
    list-style-type: none;
    margin: 0;
    li {
      padding-bottom: .5em;
    }
  }
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1350px) {
  .item-aggre,
  .item-mascotte,
  .item-play,
  .item-stop,
  .item-local,
  .item-motif-right,
  .item-motif-left,
  .item-insta,
  .item-facebook,
  .item-twitter,
  .item-reseaux,
  .item-coordonnees {
      width: 100%;
      max-width: 100%;
      height: auto;
      overflow-wrap: break-word;
      word-break: break-word;
      box-sizing: border-box;
  }
    .contact-page {
    padding: 150px;
  }
}

@media screen and (max-width: 1050px) {
  .contact-page {
    padding: 100px;
  }
}

@media screen and (max-width: 768px) {
  .contact-page {
    padding: 20px;
  }

  .contact-box {
    grid-template-columns: 1fr;
    grid-template-areas:
      "local"
      "adresse"
      "contact";
  }

  .item-aggre,
  .item-mascotte,
  .item-play,
  .item-stop,
  .item-local,
  .item-motif-right,
  .item-motif-left,
  .item-insta,
  .item-facebook,
  .item-twitter,
  .item-reseaux,
  .item-coordonnees {
    display: none;
  }

  .bloc img {
    width: 100%;
    height: auto;
  }

  .contact_titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
    width: 100%;
    margin-bottom: 2em;
    margin-top: 8em;
  }

  .contact_titles h1 {
    font-size: 40px;
  }
  .contact_titles h2 {
    font-size: 32px;
  }
  .notphone {
    display: none;
  }

  .text_contact,
  .text_local {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
  }

  .media-item, 
  .local-item{
    display: grid;
    grid-template-columns: auto 1fr 1fr; 
    gap: 1rem;
    align-items: center; 
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  
  .bloc.local,
  .bloc.phone {
    grid-column: span 1;
  }
  
  .bloc.text_local,
  .bloc.text_contact {
    grid-column: span 2; 
  }
  
  .bloc.mobile {
    max-width: 40px;
    height: auto;
}

  .formulaire-contact {
    padding: 20px;
  }

  .formulaire-contact p {
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {
  .contact-page {
    padding: 10px;
  }
  .contact_titles h1 {
    font-size: 30px;
  }
  .contact_titles h2 {
    font-size: 24px;
  }
  
  .bloc {
    width: 100%;
    max-width: none;
    padding: 10px;
    font-size: 14px;
  }

  .formulaire-contact input,
  .formulaire-contact textarea {
    font-size: 14px;
    padding: 10px;
  }

  .button-main {
    padding: 10px 20px;
    font-size: 14px;
  }
  
}