/* ===== RESPONSIVE camping-car-love.com ===== */

@media (max-width: 1100px) {

  /* ---- CONTENEURS PRINCIPAUX ---- */
  #conteneur,
  #conteneur_footer,
  #template-fond,
  #template-header,
  #template-body,
  #template-pied {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding-left: 10px !important;
    padding-right: 10px !important;
    float: none !important;
  }

  /* ---- LAYOUT GÉNÉRAL ---- */
  #template-centre,
  #template-gauche,
  #template-droite,
  #footer-centre,
  .centrer {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
    clear: both;
  }

  #template-gauche {
    margin-top: 15px;
  }

  /* ---- HEADER : logo + langues ---- */
  #h1 {
    float: none !important;
    text-align: center;
    margin: 10px auto !important;
    width: 100% !important;
  }
  #h1 img {
    max-width: 220px;
    height: auto;
  }

  /* ---- ZONE CONNEXION #h2 ---- */
  #h2 {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
    background: none !important;
    height: auto !important;
    text-align: center;
    padding: 10px 0 !important;
  }

  #login {
    float: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    text-align: center;
  }

  .password-register {
    float: none !important;
    display: block;
    width: 100% !important;
    margin: 6px 0 !important;
  }
  .password-register input {
    width: 90% !important;
    max-width: 320px;
    box-sizing: border-box;
    font-size: 16px !important;
    padding: 8px !important;
    margin: 0 auto;
    display: block;
  }

  /* Bouton Connexion */
  input.button-ok,
  .button-ok {
    display: block !important;
    float: none !important;
    margin: 10px auto !important;
    width: 90% !important;
    max-width: 320px;
    height: 44px !important;
    font-size: 16px !important;
    background: #FF0365 !important;
    color: white !important;
    border-radius: 6px;
    cursor: pointer;
  }

  /* Liens mot de passe oublié + inscription */
  .link-password-register {
    float: none !important;
    width: 100% !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .link-password-register a {
    font-size: 13px !important;
    margin: 0 !important;
    text-decoration: underline;
  }
  .link-password-register a:last-child {
    font-size: 15px !important;
    font-weight: bold;
    color: #FF0365 !important;
    background: #fff0f5;
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid #FF0365;
    text-decoration: none !important;
  }

  /* Zone membre connecté */
  #zone-membre {
    float: none !important;
    margin: 0 auto !important;
    text-align: center;
    width: 100% !important;
  }
  #zone-membre li {
    display: inline-block;
    margin: 4px 8px !important;
  }

  /* ---- MENU LANGUES ---- */
  #list_langues {
    float: none !important;
    text-align: center;
    width: 100% !important;
    margin: 8px 0 !important;
  }
  #list_langues li {
    display: inline-block;
    float: none !important;
    margin: 0 8px !important;
  }

  /* ---- MENU NAVIGATION ---- */
  #menu-root,
  #h3 {
    width: 100% !important;
    box-sizing: border-box;
    height: auto !important;
    padding: 8px 5px !important;
    text-align: center;
  }
  #menu-root li {
    float: none !important;
    display: inline-block;
    padding: 4px 6px !important;
  }

  /* ---- HOMEPAGE : toutes les boxes empilées ---- */
  #home_video,
  #home_box_1,
  #home_box_2,
  #home_box_3,
  #home_box_4 {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    margin: 8px 0 !important;
    padding: 8px !important;
  }

  #home_video {
    padding: 0 !important;
  }
  #home_video img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  #home_box_2 {
    text-align: center;
  }
  #home_box_2 img {
    width: auto !important;
    max-width: 280px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  /* ---- VIGNETTES PROFILS : grille 3 colonnes ---- */
  ul.advert-list,
  ul.article-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  ul.advert-list li,
  ul.article-list li {
    float: none !important;
    width: 31% !important;
    min-width: 80px;
    margin: 4px 1% !important;
    text-align: center;
    box-sizing: border-box;
  }
  .vignette {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .vignette_img {
    width: 100% !important;
    height: auto !important;
  }
  .vignette_img img {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }
  .vignette_pseudo,
  .vignette_pseudo_1,
  .vignette_pseudo_2,
  .vignette_pseudo_3 {
    float: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    box-sizing: border-box;
    font-size: 11px;
    background-position: top center !important;
    padding-top: 20px !important;
    text-align: center;
    margin: 3px 0 !important;
  }

  /* ---- FORMULAIRE RECHERCHE ---- */
  #search-form-wrapper {
    width: 100% !important;
    box-sizing: border-box;
    padding: 8px 0;
  }
  /* Titre "Recherche" */
  .title {
    height: auto !important;
    min-height: 30px;
    box-sizing: border-box;
    width: 100% !important;
  }
  .title span {
    float: none !important;
    display: block;
  }
  /* Table search : chaque ligne sur 2 colonnes label | champ */
  #search_box {
    width: 100% !important;
    box-sizing: border-box;
    table-layout: fixed;
  }
  #search_box th {
    width: 80px !important;
    font-weight: bold;
    font-size: 12px;
    text-align: right !important;
    padding: 5px 6px 5px 0 !important;
    vertical-align: middle;
    white-space: nowrap;
  }
  #search_box td {
    padding: 5px 0 !important;
    vertical-align: middle;
    width: auto !important;
  }
  #search_box select,
  #search_box input[type="text"] {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    height: 36px !important;
    padding: 4px !important;
    background-color: white !important;
    border: 1px solid #BEBEBE !important;
    color: #636363 !important;
  }
  #search_age_min,
  #search_age_max {
    width: 46% !important;
    font-size: 13px !important;
  }
  #search_box input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin-right: 6px;
  }
  #search_box input[type="submit"],
  #search_box .button-valider input,
  #search_box .button-valider {
    width: 100% !important;
    height: 44px !important;
    background: #FF0365 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin-top: 4px;
    display: block !important;
  }

  /* ---- FORMULAIRES GÉNÉRAUX (.register) ---- */
  .register table,
  .register tbody,
  .register tr,
  .register td,
  .register th {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    padding: 4px 0 !important;
  }
  .register select,
  .register input[type="text"],
  .register input[type="email"],
  .register input[type="password"],
  .register textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    margin-bottom: 6px;
    padding: 8px !important;
  }
  .register input[type="checkbox"],
  .register input[type="radio"] {
    width: auto !important;
  }
  .register th {
    font-weight: bold;
    padding-top: 8px !important;
  }

  /* ---- TABLE INFOS PROFIL (#infos-perso) ---- */
  /* Profil simple : th + td empilés */
  #infos-perso tr,
  #infos-perso th,
  #infos-perso td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    padding: 2px 5px !important;
  }
  #infos-perso th {
    font-weight: bold;
    color: #71655D;
    padding-top: 8px !important;
  }
  /* Profil couple : garder 3 colonnes (th + td rose + td bleu) */
  #infos-perso tr:has(td[style*="FF0B71"]) {
    display: table-row !important;
  }
  #infos-perso tr:has(td[style*="FF0B71"]) th,
  #infos-perso tr:has(td[style*="FF0B71"]) td {
    display: table-cell !important;
    width: auto !important;
    padding: 4px 6px !important;
    font-size: 12px;
  }

  /* ---- CALENDRIER jQuery Datepick ---- */
  #inlineDatepicker {
    width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  /* Masquer les 2e et 3e mois */
  .datepick-month:nth-child(n+2) {
    display: none !important;
  }
  .datepick-month {
    width: 100% !important;
    box-sizing: border-box;
    float: none !important;
    margin: 0 !important;
  }
  /* Rétablir l'affichage table normal dans le calendrier */
  .datepick-month table {
    display: table !important;
    width: 100% !important;
  }
  .datepick-month thead,
  .datepick-month tbody {
    display: table-row-group !important;
  }
  .datepick-month tr {
    display: table-row !important;
  }
  .datepick-month td,
  .datepick-month th {
    display: table-cell !important;
    width: auto !important;
    padding: 5px 3px !important;
    text-align: center !important;
    font-size: 13px;
  }
  .datepick-month-nav {
    width: 100% !important;
    box-sizing: border-box;
  }
  #calendar {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* ---- FOOTER ---- */
  #footer-liens,
  #footer-copyright,
  #footer-rs {
    float: none !important;
    width: 100% !important;
    margin: 5px 0 !important;
    padding: 0 !important;
    background-image: none !important;
    height: auto !important;
    text-align: center;
  }

  /* ---- IMAGES GÉNÉRALES ---- */
  img {
    max-width: 100%;
    height: auto;
  }

  /* ---- DIVERS ---- */
  .box {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #accueil-zm,
  #intro-accueil {
    float: none !important;
    margin-left: 5px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  h1, h2, h3 {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
    font-size: 1.1rem;
  }
  .envoyer_message a,
  .envoyer_flash a,
  .envoyer_favoris a {
    float: none !important;
    display: block !important;
    margin: 8px auto !important;
    width: 90% !important;
    max-width: 280px;
    text-align: center;
    background-size: contain !important;
    background-position: left center !important;
    padding-left: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    box-sizing: border-box;
  }
}
