/* ==========================================================================
   Adaptation mobile et tablette (responsive) - aufrinc.com
   Chargée après chasseetpeche.css. Les règles ne s'appliquent que sous
   1010 px de large : l'affichage sur ordinateur reste inchangé.
   ========================================================================== */

/* Bouton du menu : invisible sur ordinateur */
.menu-toggle {
  display: none;
}

@media (max-width: 1009px) {

  /* ---------- En-tête ---------- */
  .header-container {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 12px 0 16px 0;
    background-size: cover;
    background-position: center top;
    overflow: visible;
  }

  .menu-toggle {
    display: block;
    margin: 0 12px 0 auto;
    padding: 6px 14px;
    font-size: 26px;
    line-height: 1.2;
    font-family: "Open Sans", sans-serif;
    color: #fff;
    background-color: #412e15;
    border: 2px solid #fff;
    border-radius: 8px;
    cursor: pointer;
  }

  .menu-toggle-texte {
    font-size: 15px;
    text-transform: uppercase;
    vertical-align: middle;
    padding-left: 6px;
  }

  .menu {
    display: none;
    float: none;
    width: auto;
    height: auto;
    margin: 10px 12px 0 12px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
  }

  .menu-ouvert .menu {
    display: block;
  }

  .header-container .menu span {
    display: none;
  }

  .menu-item {
    display: block;
    height: auto;
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
  }

  .menu-item:last-child {
    border-bottom: 0;
  }

  .menu-item:hover, .menu-item.is-active {
    color: yellow;
    background: #412e15;
  }

  .header-logo {
    float: none;
    margin: 10px auto 0 auto;
    padding: 0;
    width: 150px;
  }

  .header-logo img {
    display: block;
    width: 150px;
    height: auto;
  }

  /* ---------- Contenu ---------- */
  .l-container {
    width: auto;
    min-height: 0;
    padding: 10px 16px 20px 16px;
    background-size: 100% 8px;
    overflow-x: auto;
  }

  .l-container img {
    max-width: 100%;
    height: auto;
  }

  h1 {
    font-size: 28px;
  }

  hr {
    margin: 40px 0;
  }

  /* ---------- Espace membres : connexion ---------- */
  .membres {
    display: block;
    width: auto;
    height: auto;
    margin-left: 0;
    box-sizing: border-box;
  }

  .column1, .column2 {
    float: none;
    width: auto;
    padding: 0 0 20px 0;
  }

  .column1 input[type="text"], .column1 input[type="password"] {
    width: 100%;
    box-sizing: border-box;
  }

  .membres-text {
    height: auto;
  }

  .floatright {
    float: none;
    text-align: right;
  }

  /* ---------- Espace membres : boutons des sections ---------- */
  .membresconn, .membresconn-active {
    float: none;
    padding-left: 0;
    margin-bottom: 14px;
  }

  .membresconn p, .membresconn-active p {
    margin: 0;
  }

  .membresconn .btnmembresconn, .membresconn-active .btnmembresconn {
    display: block;
    width: auto !important; /* remplace les largeurs fixes de menu.php */
    height: auto;
    padding: 16px 10px;
    font-size: 21px;
    box-shadow: #B3B3B3 6px 6px 8px;
  }

  .membresconn-active .btnmembresconn {
    color: yellow;
  }

  /* ---------- Tableaux (fichiers, liste des membres) ---------- */
  .Table {
    display: block;
    overflow-x: auto;
    box-shadow: 4px 4px 4px #888888;
  }

  .Table tbody {
    display: table;
    width: 100%;
  }

  .Table td {
    font-size: 13px;
  }

  /* ---------- Formulaire de contact ---------- */
  ._50 input[type="text"], ._100 input[type="text"], textarea, select {
    box-sizing: border-box;
  }

  /* ---------- Pied de page ---------- */
  .footer, .footer-container {
    height: auto;
  }

  .footer-container {
    width: auto;
    min-height: 100px;
    background-size: 100% 100%;
  }

  .footer-container .addthis_toolbox {
    padding-right: 10px !important;
  }
}

/* ---------- Téléphones ---------- */
@media (max-width: 600px) {

  /* Galeries : une seule colonne */
  .column {
    float: none;
    width: 100%;
    padding-left: 0;
  }

  /* Formulaire de contact : libellés au-dessus des champs */
  ._50, ._50_2, ._100, ._100_2 {
    float: none;
    display: block;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  ._50 p, ._100 p {
    margin-top: 4px;
    margin-bottom: 4px;
  }

  h1 {
    font-size: 24px;
  }
}
