/*
	Project		: svn eZPublish Actimage
	Author		: Maximilien LELEU <maximilien.leleu@actimage.com>
	Revision	: Décembre 2013
	Description	: Contient l’ensemble des règles pour la version mobile (méthode Responsive Web Design)
				 => Prise en compte si l'écran est plus grand que 0 ET plus petit ou égal à 480px

	Copyright	: ACTIMAGE
*/
/* Adaptation de la structure  */
#content .grid3.inbl-list .list > ul > li,
#content-3 .grid3 > div,
#content-1 .grid2 > *,
.article-intro,
.article-info,
.article-access > div,
#content .rubric .grid3.inbl-list > *,
#content .rubrics .grid3.inbl-list > *,
.full.preference .grid4 > * {
  display: block;
  width: 100%;
}
#language {
  width: 20%;
}
#header .js-toggle-group {
  display: block;
}
/* Styles du toggle menu RWD : début */
.toggle-menu,
.toggle-zone {
  display: block;
}
.toggle-menu {
  text-align: center;
}
.toggle-zone {
  background-color: #fba606;
  display: inline-block;
  margin: 10px 2% 2% 2%;
  width: 96%;
}
.toggle-zone > * {
  display: block;
  width: 98%;
  margin: 0;
}
.toggle-zone > a {
  background-color: #B11834;
  background-position: 10px center;
  border-radius: 5px;
  color: #FFF;
  font-size: 1.3em;
  padding: 5px;
  text-align: center;
}
.toggle-zone > a:hover,
.toggle-zone > a:focus {
  background-color: #333;
  text-decoration: underline;
}
#header .toggle-menu {
  background-color: #F0F0F0;
  border: 2px dotted #088106;
  margin: 0 auto 10px auto;
  padding: 1% 0;
  width: 96%;
}
#header .toggle-menu a {
  background-color: transparent;
  background-image: url(../../images/base/background/rwd-toggle-style3.png);
  background-repeat: no-repeat;
  display: inline-block;
  margin: 1% 0;
  min-height: 32px;
  min-width: 32px;
  vertical-align: top;
  width: 25%;
}
#header .toggle-menu a:hover {
  background-image: url(../../images/base/background/rwd-toggle-style2.png);
}
#header .toggle-menu a.active {
  background-image: url(../../images/base/background/rwd-toggle-style4.png);
}
#header .toggle-menu .newsletter-subscribe-toggle {
  background-position: center 0;
}
#header .toggle-menu .basket-toggle {
  background-position: center -32px;
}
#header .toggle-menu .login-form-toggle {
  background-position: center -64px;
}
#header .toggle-menu .quick-search-toggle {
  background-position: center -96px;
}
.toggle-zone,
.toggle-zone > * {
  display: none;
}
#header .toggle-zone > .active {
  display: block;
}
.toggle-active {
  display: inline-block;
}
.extras-login-form {
  background-color: #FFF;
}
/* Styles du toggle menu RWD : fin */
#header .advertise,
#header .advertise img {
  width: 100%;
}
#header .advertise {
  margin: 2%;
}
/* Footer */
#footer .container > *:not(script) {
  width: 100%;
}
/* Contenu */
.filter select {
  min-width: 0;
}
.insert,
.insert.style3,
blockquote {
  margin: 10px;
}
/* Formulaires */
#content form legend + .form-line {
  margin-top: 30px;
}
/* Préférences produits */
.full.preference li li input,
.full.preference li:not(.has-children) input {
  float: left;
}
#content.full.preference li li label,
#content.full.preference li:not(.has-children) label {
  display: block;
  padding-left: 15px;
}
#content.full.preference li:not(.has-children) label {
  padding-left: 30px;
}
/* Tableaux responsives : Force les tableaux à ne plus s'afficher sous forme de tableaux */
.rwd-table,
.rwd-table tfoot,
.rwd-table thead,
.rwd-table tbody,
.rwd-table th,
.rwd-table td,
.rwd-table tr {
  display: block;
}
/* Masquer les en-têtes (pas en display none pour l'accessibilité) */
.rwd-table {
  width: 100%;
}
.rwd-table thead tr {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
.rwd-table tr {
  border: 1px solid #ccc;
}
.rwd-table td {
  /* Behave  like a "row" */
  border: none;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 50%;
  white-space: normal;
  text-align: left;
}
.rwd-table tfoot td {
  padding-left: 0.5em;
}
.rwd-table td:before {
  /* Now like a table header */
  position: absolute;
  /* Top/left values mimic padding */
  top: 6px;
  left: 6px;
  width: 45%;
  padding-right: 10px;
  text-align: left;
  font-weight: bold;
}
/* Ajout des labels du tableaux sur les td */
.rwd-table td:before {
  content: attr(data-title);
}
.rwd-table tfoot td:before {
  content: "";
}
.rwd-table th {
  background-color: #B11834;
  color: #FFFFFF;
}
.rwd-table,
.rwd-table tbody tr {
  border: 1px;
}
.rwd-table tbody td {
  border-color: #eee;
  border-style: solid;
  border-width: 0 1px 1px 1px;
  margin: 0;
}
.rwd-table th .offset {
  position: static;
}
.rwd-table caption.offset {
  display: block;
  position: static;
}
.rwd-table td:empty {
  display: none;
}
/* Tableaux WYSIWYG */
.table-container {
  overflow-x: auto;
  position: relative;
}
.table-container.has-scroll:after {
  background-color: #FFF;
  content: url(../../images/base/icons/icon-drag-horizontal.png);
  display: block;
  height: 24px;
  opacity: 0.8;
  padding: 2px;
  position: absolute;
  right: 0;
  top: 5px;
  width: 48px;
}
.table-container:hover:after,
.table-container:focus:after {
  display: none;
}
/* Formulaires */
.msg-infos div {
  max-width: 80%;
}
.form-cirad .label-zone,
.form-cirad .input-zone,
.form-cirad fieldset fieldset legend,
.form-cirad .input-zone label {
  display: block;
  margin: 2%;
  text-align: left;
  width: 96%;
}
.form-cirad .input-zone.inline,
.form-cirad .form-line .input-zone.inline {
  margin: 2%;
}
.form-line,
.form-cirad fieldset.reset-fieldset.form-line,
.form-cirad fieldset fieldset.form-line {
  padding: 2%;
}
.form-cirad .three-cols-list li {
  width: 50%;
}
.form-cirad input[type=text],
.form-cirad textarea,
.form-cirad select,
.form-cirad input[type=password] {
  width: 100%;
}
.form-cirad .input-zone.two-cols-list li label,
.form-cirad .input-zone.three-cols-list li label,
.form-cirad .input-zone.inline label {
  display: inline;
}
.form-cirad form > fieldset > legend {
  margin-left: 10px;
}
/* A revoir */
figure,
figure img {
  float: none;
  max-width: 100% !important;
}
.note.full .article-info,
.note.full .article-intro {
  margin-top: 10px;
}
.note.full h1 {
  padding-right: 0;
}
.note.full h1 span {
  display: block;
  margin-top: 10px;
  position: static;
}
#sitemap > li > ul > li > ul > li,
.full.subscription .list .inbl-list.grid4 > * {
  width: 100%;
}
.box.js-autosize-target {
  height: auto !important;
}
.block.articles .grid3 > * {
  width: 100%;
  height: auto !important;
}
.produit-eco .grid2 > *,
.produit-tech .grid2 > *,
.produit-eco .grid3 > *,
.produit-tech .grid3 > * {
  width: 100%;
  height: auto !important;
}
.object-left,
.object-right {
  float: none;
  margin: 0 0 5px;
}
