@media (max-width: 768px) { /* 480px normalement */
  /* SMARTPHONE */
  body {
    width: 95%;
    font-size: 15pt;
    margin: 0 2vw 2vw 2vw;
  }
  div#message {
    position: relative;
  }
  h1 {
    margin-bottom: 0!important;
  }

  nav#nav-main a {
    display: block;
    margin: 2rem;    
  }

  img#banniere {
    width:100%;
  }

  /* form div.row div.field input {
    width: 90%;
  } */

  div#presents {display: none}

}

@media (min-width: 769px) {
  /* 
      ORDINATEUR + TABLETTE
  */
  h1 {
    margin-bottom: 0;
  }

  
  div#message {
    position:fixed;
    max-width: 100%;
    top: 0;
    left: 0;
    font-size: 0.85em;    
  }


  img#banniere {
    width:100%;
  }

  fieldset.commented-text {
    padding: 4vh 8vw;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* TABLETTE */
  body {
    max-width: 920px;
    font-size: 19.2pt;
    margin: 0 2vw 2vw 2vw;
  }
}

@media (min-width: 1024px) {
  /* ÉCRAN ORDINATEUR */
  body {
    max-width: 1000px;
    font-size: 19.2pt;
    margin: 0 4em 4em 4em;
  }
}



/* main.css */

.block {display: block!important;}
.hidden {display: none!important;}
.right {text-align: right;}
.left {text-align: left;}
.fright {float: right;}
.fleft {float: left;}
.italic {font-style: italic;}
.bold {font-weight: bold;}
.smaller { font-size: 0.85em; }
.bigger { font-size: 1.2em;}
.center { text-align: center; }
.border {
  border: 1px solid #CCCCCC;
  padding: 1vh 1vw;
}
.explication {
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.6;
}
.explication:hover { opacity: 1; }

/* Pour "margin top */
.mgt05 { margin-top: 2vh }
.mgt1 { margin-top: 4vh }
.mgt2 { margin-top: 8vh }
.mgb1 { margin-bottom: 4vh }
.mgb2 { margin-bottom: 8vh }

p, li {
  text-align: justify;
}

a, a:link, a:visited, a:hover {
  text-decoration: none;
  color: darkblue;
  color: rgb(209, 135, 0);
  cursor: pointer;
}

a.alert {
  color: red!important;
}


fieldset {
  border-radius: 0.5em;
  border-color: lightgrey;
  margin-bottom: 2em;
}

fieldset legend {
  font-family: Arial, Helvetica, Serif;
  font-size: 0.8em;
  opacity: 0.5;
}

form {
  background-color: #EEEEEE;
  padding-bottom: 1vh;
}

/* Pour les formulaires fermés avec bouton d'ouverture

  <form ... class="closed">
  <a class="btn-open">Formulaire de ceci cela</a> 
*/
form.closed {
  height: 40px;
  overflow: hidden;
}

form div.title {
  font-family: Arial, Helvetica, serif;
  padding: 8px 16px;
  color: white;
  background-color: #CCCCCC;
  font-size: 0.8em;
  letter-spacing: 0.4px;
}
form.closed *:not(.btn-open) {display:none;}
form.closed a.btn-open {display:block; float:right; font-size:0.8em;}
form:not(.closed) a.btn-open {display:none;}

form div.explication {
  /* margin-left: 185px; */
  padding: 0 12px;
}
form div.buttons {
  margin-top: 4vh;
  margin-bottom: 2vh;
  text-align: right;
  padding-right: 4%;
}

form label {
  font-family: Arial, Helvetica, Serif;
  opacity: 0.6;
  font-style: italic;
  font-size: 0.85em;
}

/* Pour un seul contenant qui prend toute la place */
.flex {display: flex}
.flex > input, .flex > textarea {flex: 1 1 auto;}

form div.row {
  display: flex;
  /* align-items: center;  C'est ça qui met le label au milieu verticalement */
  padding: 8px 16px;
  border-bottom: 1px solid #EEEEEE;
  min-height: 1.5em;
}
form div.row label {
  flex: 0 0 15vw;
}
form div.row input[type="checkbox"] + label {
  flex: none!important;
  margin-top: 6px;
}
form div.row div.field {
  flex: 1 1 auto;
}
form div.row:not(.checkboxed) div.field {
  display: flex
}
form div.row:not(.multifield) div.field > * {
  flex: 1 1 auto;
}

input, 
button,
textarea,
select, select option
{
  font-family: inherit;
  font-style: inherit;
}
textarea {
  resize: none;
  width: 90%;
  height: 100px;
}
input,
textarea,
select, select option {
  font-size: inherit;
}

input.phone { 
  width: 8em;
  flex: none!important;
}

button {
  font-size: 0.7em;
  border: none;
  cursor: pointer;
  padding: 12px 24px;
  background-color: rgb(32, 117, 218);
  color: white;
  font-weight: bold;
  font-family: Arial, Helvetica;
  letter-spacing: 3px;
  text-transform: uppercase;
}
button:active {
  background-color: rgb(12, 81, 164);
}
button.tiny {
  font-size: 0.6em;
  padding: 4px 18px;
  text-transform: none;
}
button.medium {
  font-size: 0.65em;
  letter-spacing: 1.5px;
  padding: 9px 18px;
}
button.lika {
  color: rgb(209, 135, 0);
  border: 1px solid;
  outline: none;
  background: none;
  font-size: 0.9rem;
}

input[type="checkbox"] {
  transform: scale(1.8);
}
input[type="text"], input[type="password"], select {
  outline: 2px solid transparent;
}
/* input[type="text"]:valid, 
input[type="password"]:valid,  */
/* select:valid {
  outline-color: green;
} */
input[type="checkbox"] + label { margin-left: 1vw; }

h1 {
  text-transform: uppercase;
  margin-top: 0;
  padding-top: 0;
  color: rgb(45, 116, 145);
}
h2 {
  font-weight: normal;
  font-size: 36pt;
}
h3 {
  margin-top: 5vh;
  font-size: 1.4em;
  font-weight: normal;
  border-top: 1px solid;
  padding-top: 16px;  
}

img.btn {cursor: pointer;}

span.blink {
  cursor: pointer;
  float:left;
  margin-right:0.5em;
  opacity:0.2;
}
span.blink:hover {opacity:1;}

span.blink img {
  transform:scale(0.9);
}

div.collapsable > *:first-child {cursor: pointer;}

div.buttons { text-align: right; }
div.buttons button {margin-left: 0.5em;}
div.tools a {
  border: 1px solid rgb(254, 201, 103);
  border-radius: 8px;
  padding: 0px 12px 4px;

}
.discret > * {opacity: 0.5;}
.discret  > *:hover {opacity: 1;}


.date {
  font-size: 0.85em;
  font-style: normal;
  font-family: Georgia, serif, "Times New Roman";
  opacity: 0.7;
  vertical-align: middle;
}
span.date + span {
  margin-left: 0.5em;
  vertical-align: middle;
}

img.photo {
  width: 150px;
  border-radius:50%;
}

/* Bouton pour revenir à un panneau précédent */
div.back-button {
  text-align: right;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-family: Arial, Helvetica, Serif;
  font-size: 13.5pt;
  color: orange;
  cursor: pointer;
}



#groupsio_embed_signup input {
  border:1px solid #999; 
  appearance: none;;
}
#groupsio_embed_signup label {display:block; font-size:16px; padding-bottom:10px; font-weight:bold;}
#groupsio_embed_signup .email {display:block; padding:8px 0; margin:0 4% 10px 0; text-indent:5px; width:58%; min-width:130px;}
#groupsio_embed_signup {
background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif;
}
#groupsio_embed_signup .button {

width:25%; margin:0 0 10px 0; min-width:90px;
background-image: linear-gradient(to bottom,#337ab7 0,#265a88 100%);
background-repeat: repeat-x;
border-color: #245580;
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
box-shadow: inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
color: #fff;
background-color: #337ab7;
display: inline-block;
margin-bottom: 0;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: middle;
}
