/* ==========================================================================
   DL Distribution - page Contact (charge uniquement sur 1115-contact.html)
   Refonte 2026-09-21 : l'ancienne mise en page placait les champs par position
   (p:nth-child) pour un formulaire plus long ; avec 3 champs, E-mail et Message
   se retrouvaient cote a cote, alignes par le bas. On passe sur une grille :
   Societe | E-mail, puis Message et le bouton sur toute la largeur.
   ========================================================================== */

#centreetdroite{
  width:1170px;
  max-width:100%;
  margin:auto;
}

/* Carte ------------------------------------------------------------------ */
#map_canvas{
  width:100%!important;
  margin:20px 0 40px;
  border-radius:10px;
  box-shadow:0 2px 14px rgba(15,38,92,.10);
}

/* Colonnes --------------------------------------------------------------- */
#contactgauche,
#contactdroite{
  display:inline-block;
  vertical-align:top;
  box-sizing:border-box;
  border-radius:10px;
}
#contactgauche,
#contactdroite{
  margin-bottom:60px;
}
#contactgauche{
  width:340px;
  margin-right:26px;
  padding:32px 30px;
  background:#0f265c;
  color:#ffffff;
}
#contactdroite{
  width:calc(100% - 370px);
  padding:32px 34px 26px;
  background:#ffffff;
  border:1px solid #e3e7ee;
  box-shadow:0 2px 14px rgba(15,38,92,.06);
}

/* Titres ----------------------------------------------------------------- */
#contactgauche h3,
.mdl_formulaire h3{
  display:block;
  position:relative;
  width:100%;
  margin:0 0 26px;
  font-size:24px;
  line-height:1.2;
}
#contactgauche h3,
#contactgauche h3 span{
  color:#ffffff;
  background-color:transparent;
}
#contactgauche h3 span{
  position:relative;
  width:100%;
  height:auto;
}
.mdl_formulaire h3{
  color:#0f265c;
}
#contactgauche h3 span:after,
.mdl_formulaire h3:after{
  content:'';
  display:block;
  width:60px;
  height:3px;
  background-color:#ef7e00;
  margin-top:14px;
}

/* Coordonnees ------------------------------------------------------------ */
#contactgauche p{
  margin:0;
  font-size:16px;
  line-height:1.8;
  color:#dfe6f5;
}
#contactgauche a{
  color:#ffffff;
}

/* Formulaire ------------------------------------------------------------- */
#contactdroite .mdl_formulaire > p:nth-child(1){
  display:none;
}
.mdl_formulaire form fieldset{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 20px;
  margin:0;
  padding:0;
  border:0;
  min-width:0;
}
.mdl_formulaire form fieldset > p{
  display:block!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  text-align:left;
}
/* Message, bouton et alerte JS sur toute la largeur */
.mdl_formulaire form fieldset > p.blocAlerte,
.mdl_formulaire form fieldset > p:last-child,
.mdl_formulaire form fieldset > p.row_formc_330,
.mdl_formulaire form fieldset > p:has(textarea){
  grid-column:1 / -1;
}

.mdl_formulaire form label{
  display:block;
  margin:0 0 7px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.3px;
  color:#0f265c;
}
.mdl_formulaire form label .obl{
  color:#ef7e00;
}

#contenu .mdl_formulaire input[type="text"],
#contenu .mdl_formulaire input[type="password"],
#contenu .mdl_formulaire select,
#contenu .mdl_formulaire textarea{
  display:block;
  width:100%!important;
  min-width:0;
  box-sizing:border-box;
  height:48px;
  margin:0!important;
  padding:12px 14px!important;
  font-family:'Roboto','Open Sans',Helvetica,Arial,sans-serif;
  font-size:15px;
  line-height:1.4;
  color:#1e1e1e;
  background:#f7f9fc;
  border:1px solid #d5dbe5;
  border-radius:6px;
  box-shadow:none;
  -webkit-transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
#contenu .mdl_formulaire textarea{
  height:170px!important;
  min-height:170px;
  resize:vertical;
}
#contenu .mdl_formulaire input[type="text"]:focus,
#contenu .mdl_formulaire input[type="password"]:focus,
#contenu .mdl_formulaire select:focus,
#contenu .mdl_formulaire textarea:focus{
  outline:none;
  background:#ffffff;
  border-color:#1564e5;
  box-shadow:0 0 0 3px rgba(21,100,229,.15);
}
/* Le libelle est affiche au-dessus du champ : le placeholder ferait doublon.
   Le script commun du site ecrit le placeholder DANS la valeur du champ (classe
   .placeholder, videe au focus et au clic sur Valider) : on masque ce texte. */
#contenu .mdl_formulaire input::placeholder,
#contenu .mdl_formulaire textarea::placeholder{
  color:transparent;
}
#contenu .mdl_formulaire input.placeholder,
#contenu .mdl_formulaire textarea.placeholder{
  color:transparent;
}

/* Bouton ----------------------------------------------------------------- */
input[type="submit"],
.submit{
  position:relative;
  display:inline-block;
  margin:6px 0 0;
  padding:16px 36px;
  border:0 none;
  border-radius:6px;
  background:#ef7e00;
  color:#ffffff;
  font-family:'Roboto','Open Sans',Helvetica,Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:1px;
  line-height:1;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  -webkit-transition:background-color .2s ease;
  transition:background-color .2s ease;
}
.submit:hover,
input[type="submit"]:hover{
  background-color:#0f265c;
  color:#ffffff!important;
}

form legend{
  font-family:'Titillium Web',sans-serif;
  font-size:1.25em;
  color:#543314;
  margin-top:0;
}

/* Tablette et mobile ----------------------------------------------------- */
@media screen and (max-width:1170px){
  #map_canvas{
    width:calc(100% - 30px)!important;
    margin:20px auto 30px;
  }
  #contactgauche,
  #contactdroite{
    display:block;
    width:auto!important;
    margin:0 15px 24px;
  }
  #contactgauche{
    padding:26px 24px;
  }
  #contactdroite{
    padding:26px 22px 20px;
  }
}
@media screen and (max-width:600px){
  .mdl_formulaire form fieldset{
    grid-template-columns:1fr;
  }
  .submit,
  input[type="submit"]{
    width:100%;
  }
}
