@charset "UTF-8";
/* titre h1 et h2 */
.cms-custom {
  padding-left: 13rem; /* version bureau aligné sur le logo */
  padding-right: 13rem; /* padding équilibré */
  margin-top: 80px;
  margin-bottom: 2rem;
  box-sizing: border-box;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.cms-custom h1,
.cms-custom h2 {
  font-family: 'Domaine', Arial, sans-serif;
  font-weight: 300;
  margin: 0;
  max-width: calc(100% - 26rem); /* largeur = 100% - padding total */
  box-sizing: border-box;
}
/* style header interne page cms */

.headerinterne {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px; /* ajustez en fonction de la hauteur du header */
}

.headerinterne a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  text-decoration: none;
}

/* image alignée et même largeur que la section titre */
.cms-image-wrapper {
  max-width: 100%;
  margin: 0 auto 2rem auto; /* centrée avec marge basse */
  box-sizing: border-box;
  width: 100%;
  max-width: calc(100% - 26rem); /* même largeur que section titre */
}

.cms-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* paragraphe plus petit et courant sous l'image */
.cms-paragraph {
  font-family: 'Montserrat', Arial, sans-serif;
  width: 100%;
  max-width: 1000px; /* largeur maximale fixe */
  margin-left: auto;
  margin-right: auto; /* centre horizontalement */
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 1rem;
  color: #5E5A54;
  line-height: 2;
  box-sizing: border-box;
  text-align: left;
}
/* style paragraphe  */

.cms-paragraph b {
  color: #5E5A54;
}

.cms-paragraph a{
  color: #cbb990;
  font-weight:500;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.cms-paragraph a:hover {
  color: #b59c45;
}

.cms-paragraph h2{
  font-family: 'Domaine', Arial, sans-serif;
  font-weight: 300;
  margin: 0;
  color: #403d39;
}
.cms-paragraph h3{
  font-family: 'Domaine', Arial, sans-serif;
  font-weight: 300;
  margin: 0;
  font-size:1.2rem;
  color: #403d39;
}
.cms-paragraph u {
  text-decoration-color: #cbb990;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}


/* fin style paragraphe  */
.info-content p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #5E5A54;
  margin: 0 0 2rem 0;
  line-height: 1.7;
}

/* Conteneur pour les deux images sous les listes */
.cms-double-image-wrapper {
  display: flex;
  justify-content: space-between;
  max-width: calc(100% - 26rem); /* même largeur que .cms-image-wrapper */
  margin: 0 auto 2rem auto; /* centrer horizontalement avec marge basse */
  box-sizing: border-box;
  gap: 1rem; /* espace entre images */
}

/* Images dans ce conteneur */
.cms-double-image-wrapper img {
  width: calc((100% - 1rem) / 2); /* chacune prend moitié largeur moins gap */
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* formulaire */
form {
  font-family: 'Montserrat', Arial, sans-serif;
  max-width: 968px;
  margin: 1rem auto;
  border-radius: 8px;
  box-sizing: border-box;
  /*box-shadow: 0 2px 5px rgba(64, 61, 57, 0.1);*/
  color: #403d39;
  width: 90%;
  min-width: 280px;
}

form label {
  display: block;
  font-weight: 300;
  font-size: 1rem;
  color: #5E5A54;
  margin-bottom: 0.5rem;
}

/* Conteneur champ nom/email sur une ligne */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row label {
  flex: 1;
}

/* Style des inputs et textarea */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #403d39;
  background-color: #fff;
  border: 1px solid #cbb990;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  resize: vertical;
}

form textarea {
  min-height: 150px;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #b59c45;
  outline: none;
}

/* Bouton style conservé de la charte */
form button {
  background-color: #cbb990;
  color: white;
  font-weight: 400;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
  width: 100%;
  max-width: 170px;
  display: block;
}

form button:hover,
form button:focus,
form button:active {
  background-color: #B69E64;
  outline: none;
}

/* Responsive sur petits écrans */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  form button {
    max-width: 100%;
  }
}

/* fin formulaire */


/* En responsive tablette portrait (481px - 819px) et mobile portrait (max 480px) */

@media (max-width: 819px) {
  .cms-double-image-wrapper {
    max-width: calc(100% - 3rem);
  }

  /* Les deux images restent visibles côte à côte */
  .cms-double-image-wrapper img:nth-child(1),
  .cms-double-image-wrapper img:nth-child(2) {
    width: calc((100% - 1rem) / 2);
  }
}

/* Sur mobile très petit, les images s'empilent verticalement */
@media (max-width: 480px) {
  .cms-double-image-wrapper {
    flex-direction: column;
    max-width: 100%;
  }

  .cms-double-image-wrapper img:nth-child(1),
  .cms-double-image-wrapper img:nth-child(2) {
    width: 100%;
  }
}
/* fin Conteneur pour les deux images sous les listes */



/* Tablette paysage (768px - 1024px) - iPad paysage et tablettes similaires */
@media (min-width: 768px) and (max-width: 1024px) {
  .cms-custom,
  .cms-image-wrapper,
  .cms-paragraph {
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: calc(100% - 6rem);
    margin-left: auto;
    margin-right: auto;
  }

  .cms-paragraph {
    max-width: 87%; /* prend 87% de la largeur disponible */
  }
  
  .cms-custom h1,
  .cms-custom h2 {
    max-width: calc(100% - 5rem);
  }
}

/* iPad paysage : largeurs et paddings fluides */
@media (min-width: 820px) and (max-width: 1130px) {
  .cms-custom,
  .cms-image-wrapper,
  .cms-paragraph {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto !important;
  }

  .cms-custom h1,
  .cms-custom h2 {
    max-width: 100% !important;
  }

  .cms-paragraph {
    max-width: 90% !important;
  }
}


/* Tablette portrait (481px - 767px) - iPad portrait */
@media (min-width: 481px) and (max-width: 819px) {
  .cms-custom,
  .cms-image-wrapper,
  .cms-paragraph {
    padding-left: 2rem;
    padding-right: 1.5rem;
    max-width: calc(100% - 3rem);
    margin-left: auto;
    margin-right: auto;
  }
  
  .cms-paragraph {
    max-width: 87%;
  }

  .cms-custom h1,
  .cms-custom h2 {
    max-width: calc(100% - 3rem);
  }
}

/* Mobile portrait (max-width: 480px) */
@media (max-width: 480px) {
  .cms-custom,
  .cms-image-wrapper,
  .cms-paragraph {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
	margin-top:20px;
  }

  .cms-paragraph {
    max-width: 100%;
    font-size: 0.9rem; /* plus petit sur mobile */
  }

  .cms-custom h1 {
    font-size: 1.9rem;
  }

  .cms-custom h1,
  .cms-custom h2 {
    max-width: 100%;
  }
  .headerinterne a {display:none;}
}



/* Empêcher débordement horizontal global */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
